/**
 * @license RequireJS i18n 1.0.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
 */
/*******************************************************************************
 * @license
 * 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
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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). 
 * 
 ******************************************************************************/
/**
 * @license RequireJS domReady 1.0.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
 */
/*******************************************************************************
 * @license
 * 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
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 *******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 *******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 *******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 *******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 *******************************************************************************/
/*******************************************************************************
 * @license
 * 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). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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). 
 * 
 ******************************************************************************/
/**
 * @license RequireJS text 1.0.7 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
 */
/*******************************************************************************
 * @license
 * 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
 *******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 *******************************************************************************/
/*******************************************************************************
 * @license
 * 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). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 *******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 *******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 *******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 *******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 *******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 *******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 *******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 *******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 *******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 *******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 *******************************************************************************/
/*******************************************************************************
 * @license
 * 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: Anton McConville - IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 *******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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: Anton McConville - IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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: Anton McConville - IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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: Anton McConville - IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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: Anton McConville - IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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: Anton McConville - IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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: Anton McConville - IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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: Anton McConville - IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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: Anton McConville - IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 *******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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: Anton McConville - IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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: Anton McConville - IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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: Anton McConville - IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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: Anton McConville - IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 *******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 *******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 *******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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
 *******************************************************************************/
/*******************************************************************************
 * @license
 * 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: Anton McConville - IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * 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:
 *     Anton McConville (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) 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). 


 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). 

 RequireJS domReady 1.0.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) 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) 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) 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). 


 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). 

 RequireJS text 1.0.7 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) 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) 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). 


 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). 


 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). 


 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). 


 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). 


 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). 


 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). 


 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). 


 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, 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) 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) 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) 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) 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) 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, 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
 Andy Clement (vmware) - bug 344614

 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: Anton McConville - 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) 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: Anton McConville - 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) 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: Anton McConville - 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: Anton McConville - 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) 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: Anton McConville - 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: Anton McConville - 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: Anton McConville - 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: Anton McConville - 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: Anton McConville - 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) 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) 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: Anton McConville - 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: Anton McConville - 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: Anton McConville - 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: Anton McConville - 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) 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) 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) 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: Anton McConville - 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:
 Anton McConville (IBM Corporation) - initial API and implementation

 RequireJS i18n 1.0.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) 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) 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) 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
*/
(function(){function b(a,b,c,d,i,j){b[a]&&(c.push(a),(b[a]===!0||b[a]===1)&&d.push(i+a+"/"+j))}function d(a,b,c,d,i){b=d+b+"/"+i;require._fileExists(a.toUrl(b))&&c.push(b)}var a=/(^.*(^|\/)nls(\/|$))([^\/]*)\/?([^\/]*)/,c={};define("i18n",{version:"1.0.0",load:function(e,f,g,h){var h=h||{},i=a.exec(e),j=i[1],k=i[4],l=i[5],m=k.split("-"),n=[],p={},o,r,q="";i[5]?(j=i[1],e=j+l):(l=i[4],k=h.locale||(h.locale=typeof navigator==="undefined"?"root":(navigator.language||navigator.userLanguage||"root").toLowerCase()),
m=k.split("-"));if(h.isBuild){n.push(e);d(f,"root",n,j,l);for(o=0;r=m[o];o++)q+=(q?"-":"")+r,d(f,q,n,j,l);f(n,function(){g()})}else f([e],function(a){var e=[];b("root",a,e,n,j,l);for(o=0;r=m[o];o++)q+=(q?"-":"")+r,b(q,a,e,n,j,l);f(n,function(){var b,d;for(b=e.length-1;b>-1&&(r=e[b]);b--){d=a[r];if(d===!0||d===1)d=f(j+r+"/"+l);var i=p,h=void 0;for(h in d)!(h in c)&&!(h in i)&&(i[h]=d[h])}g(p)})})}})})();
define("orion/i18n",[],function(){return{load:function(b,d,a,c){var c=c||{},e=/(^.*(?:^|\/)nls(?:\/|$))([^\/]*)\/?([^\/]*)/,f=e.exec(b);if(f)if(d.defined(b))a(d(b));else if(c.isBuild||c.isTest)a({});else{var g=f[1],h=f[3]?f[2]:"",i=f[3]||f[2];d(["orion/bootstrap"],function(j){j.startup().then(function(j){var l=j.serviceRegistry,j=l.getServiceReferences("orion.i18n.message");if(h)j.some(function(c){return b===c.getProperty("name")?(l.getService(c).getMessageBundle().then(function(b){a(b)},function(){a({})}),
!0):!1})||a({});else{var m={},n;j.forEach(function(a){var b=a.getProperty("name");if((f=e.exec(b))&&g===f[1]&&i===(f[3]||f[2]))if(h=f[3]?f[2]:""){if((a=c.locale||(typeof navigator!=="undefined"?navigator.language||navigator.userLanguage:null))&&a.indexOf(h)===0)m[h]=!0,d.specified(b)||define(b,["orion/i18n!"+b],function(a){return a})}else n=a});d.specified(b)?a(m):n?l.getService(n).getMessageBundle().then(function(c){Object.keys(m).forEach(function(a){typeof c[a]==="undefined"&&(c[a]=m[a])});define(b,
[],c);a(c)},function(){define(b,[],m);a(m)}):(define(b,[],m),a(m))}})})}else a(null)}}});define("orion/settings/nls/messages",["orion/i18n!orion/settings/nls/messages"],function(b){var d={root:!0};Object.keys(b).forEach(function(a){typeof d[a]==="undefined"&&(d[a]=b[a])});return d});
define("orion/settings/nls/root/messages",{"Plugin Description":"Plugin Description",Create:"Create","Loading...":"Loading...","Label:":"Label:",Title:"Title",Plugins:"Plugins","User Profile":"User Profile","JavaScript Editor":"JavaScript Editor",General:"General",Navigation:"Navigation","Open in same tab":"Open in same tab","Open in new tab":"Open in new tab",Links:"Links",Font:"Font",Family:"Family","Sans Serif":"Sans Serif",Serif:"Serif",Size:"Size","8pt":"8pt","9pt":"9pt","10pt":"10pt","12pt":"12pt",
Color:"Color",Background:"Background",Strings:"Strings","String Types":"String Types",blue:"blue",Weight:"Weight",Normal:"Normal",Bold:"Bold",Comments:"Comments","Comment Types":"Comment Types",green:"green",Keywords:"Keywords","Keyword Types":"Keyword Types",darkred:"darkred",Categories:"Categories",Username:"Username","Full Name":"Full Name","Email Address":"Email Address",Account:"Account","Current Password":"Current Password","New Password":"New Password","Verify Password":"Verify Password",Password:"Password",
OpenId:"OpenId",AOL:"AOL",Yahoo:"Yahoo",Google:"Google",Unlink:"Unlink",Link:"Link",Unlinked:"Unlinked",Linked:"Linked","Linked Accounts":"Linked Accounts","Git Email Address":"Git Email Address","Git Username":"Git Username","Git Credentials":"Git Credentials",Update:"Update","Update Profile Settings":"Update Profile Settings","User profile data successfully reset.":"User profile data successfully reset.","Edit Plugin JavaScript":"Edit Plugin JavaScript","Install Plugin":"Install Plugin","Plugin Name:":"Plugin Name:",
"Author Name:":"Author Name:","Licence:":"Licence:","Description:":"Description:","A plugin for Eclipse Orion":"A plugin for Eclipse Orion","Plugin Link":"Plugin Link",Install:"Install","Install a plugin by specifying its URL":"Install a plugin by specifying its URL","Plugin URL:":"Plugin URL:","Reload all":"Reload all","Reload all installed plugins":"Reload all installed plugins","Create a new Orion Plugin":"Create a new Orion Plugin",Reload:"Reload","Reload the plugin":"Reload the plugin",Delete:"Delete",
"Delete this plugin from the configuration":"Delete this plugin from the configuration","Type a plugin url here ...":"Type a plugin url here ...","Installed ":"Installed ","Installing ":"Installing ","Already installed":"Already installed"," plugin":" plugin","Reloaded ":"Reloaded ","Uninstalled ":"Uninstalled ","Are you sure you want to uninstall '":"Are you sure you want to uninstall '",Services:"Services",Value:"Value","JavaScript Object":"JavaScript Object","click here, then check javascript console to drill down":"click here, then check javascript console to drill down"});
(function(){function b(a,b,e){(function(){if(typeof this.loadFirebugConsole=="function")this.loadFirebugConsole();else{this.console=this.console||{};for(var d="assert,count,debug,dir,dirxml,error,group,groupEnd,info,profile,profileEnd,time,timeEnd,trace,warn,log".split(","),g=0,h;h=d[g++];)console[h]||function(){var a=h+"";console[a]="log"in console?function(){var b=Array.apply({},arguments);b.unshift(a+":");console.log(b.join(" "))}:function(){};console[a]._fake=!0}()}typeof a=="undefined"&&(a={_scopeName:"dojo",
_scopePrefix:"",_scopePrefixArgs:"",_scopeSuffix:"",_scopeMap:{},_scopeMapRev:{}});var i=a;typeof b=="undefined"&&(b={_scopeName:"dijit"});typeof e=="undefined"&&(e={_scopeName:"dojox"});if(!i._scopeArgs)i._scopeArgs=[a,b,e];i.global=this;i.config={isDebug:!1,debugAtAllCosts:!1};if(d=typeof djConfig!="undefined"?djConfig:typeof dojoConfig!="undefined"?dojoConfig:null)for(var j in d)i.config[j]=d[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,m={};for(g in{toString:1}){k=[];break}a._extraNames=k=k||"hasOwnProperty,valueOf,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,constructor".split(",");l=k.length;a._mixin=function(a,b){var c,e,d;for(c in b)if(e=b[c],!(c in a)||a[c]!==e&&(!(c in m)||
m[c]!==e))a[c]=e;if(l&&b)for(d=0;d<l;++d)if(c=k[d],e=b[c],!(c in a)||a[c]!==e&&(!(c in m)||m[c]!==e))a[c]=e;return a};a.mixin=function(a,b){a||(a={});for(var c=1,e=arguments.length;c<e;c++)i._mixin(a,arguments[c]);return a};a._getProp=function(a,b,c){for(var c=c||i.global,e=0,d;c&&(d=a[e]);e++)e==0&&i._scopeMap[d]&&(d=i._scopeMap[d]),c=d in c?c[d]:b?c[d]={}:void 0;return c};a.setObject=function(a,b,c){var e=a.split("."),a=e.pop();return(c=i._getProp(e,!0,c))&&a?c[a]=b:void 0};a.getObject=function(a,
b,c){return i._getProp(a.split("."),b,c)};a.exists=function(a,b){return i.getObject(a,!1,b)!==void 0};a.eval=function(a){return i.global.eval?i.global.eval(a):eval(a)};i.deprecated=i.experimental=function(){}})();return{dojo:a,dijit:b,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("domReady",[],function(){function b(a){for(var b=0,c;c=a[b];b++)c(g)}function d(){var a=h,c=i;f&&(a.length&&(h=[],b(a)),j.resourcesDone&&c.length&&(i=[],b(c)))}function a(){f||(f=!0,l&&clearInterval(l),d())}function c(a){f?a(g):h.push(a);return c}var e=typeof window!=="undefined"&&window.document,f=!e,g=e?document:null,h=[],i=[],j=requirejs||require||{},k=j.resourcesReady,l;if("resourcesReady"in j)j.resourcesReady=function(a){k&&k(a);a&&d()};e&&(document.addEventListener?(document.addEventListener("DOMContentLoaded",
a,!1),window.addEventListener("load",a,!1)):window.attachEvent&&(window.attachEvent("onload",a),self===self.top&&(l=setInterval(function(){try{document.body&&(document.documentElement.doScroll("left"),a())}catch(b){}},30))),document.readyState==="complete"&&a());c.withResources=function(a){f&&j.resourcesDone?a(g):i.push(a);return c};c.version="1.0.0";c.load=function(a,b,e,d){d.isBuild?e(null):c(e)};return c});
define("dojo/lib/backCompat",["require","dojo/_base/_loader/bootstrap","domReady"],function(b,d,a){var c="_moduleHasPrefix,_loadPath,_loadUri,_loadUriAndCheck,loaded,_callLoaded,_getModuleSymbols,_loadModule,require,provide,platformRequire,requireIf,requireAfterIf,registerModulePath".split(","),e,f;for(e=0;e<c.length;)f=c[e++],d[f]=function(a){return function(){console.warn("dojo."+a+" not available when using an AMD loader.")}}(f);var g=function(a){var b=[],c;for(c=0;c<a.length;)b.push(a[c++]);return b},
h=function(a,b){return b?typeof b=="string"?function(){a[b]()}:function(){b.call(a)}:a};d.ready=d.addOnLoad=function(b,c){a(c?h(b,c):b)};d.addOnLoad(function(){d.postLoad=d.config.afterOnLoad=!0});if(c=d.config.addOnLoad)d.addOnLoad[c instanceof Array?"apply":"call"](d,c);var i=d._loaders=[],j=function(){var a=i.slice(0);for(Array.prototype.splice.apply(i,[0,i.length]);a.length;)a.shift().call()};i.unshift=function(){Array.prototype.unshift.apply(i,g(arguments));a(j)};i.splice=function(){Array.prototype.splice.apply(i,
g(arguments));a(j)};var k=d._unloaders=[];d.unloaded=function(){for(;k.length;)k.pop().call()};d._onto=function(a,b,c){a.push(c?h(b,c):b)};d._modulesLoaded=function(){};d.loadInit=function(a){a()};d.getL10nName=function(a,b,c){c=c?c.toLowerCase():d.locale;a="i18n!"+a.replace(/\./g,"/");return/root/i.test(c)?a+"/nls/"+b:a+"/nls/"+c+"/"+b};d.requireLocalization=function(a,c,e){b.vendor!="altoviso.com"&&(e=!e||e.toLowerCase()===d.locale?"root":e);return b(d.getL10nName(a,c,e))};d.i18n={getLocalization:d.requireLocalization,
normalizeLocale:function(a){a=a?a.toLowerCase():d.locale;a=="root"&&(a="ROOT");return a}};var l=/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/,m=/^((([^\[:]+):)?([^@]+)@)?(\[([^\]]+)\]|([^\[:]*))(:([0-9]+))?$/;d._Url=function(){for(var a=arguments,b=[a[0]],c=1;c<a.length;c++)if(a[c]){var e=new d._Url(a[c]+""),b=new d._Url(b[0]+"");if(e.path==""&&!e.scheme&&!e.authority&&!e.query){if(e.fragment!=null)b.fragment=e.fragment;e=b}else if(!e.scheme&&(e.scheme=b.scheme,!e.authority&&(e.authority=
b.authority,e.path.charAt(0)!="/"))){for(var b=(b.path.substring(0,b.path.lastIndexOf("/")+1)+e.path).split("/"),f=0;f<b.length;f++)b[f]=="."?f==b.length-1?b[f]="":(b.splice(f,1),f--):f>0&&!(f==1&&b[0]=="")&&b[f]==".."&&b[f-1]!=".."&&(f==b.length-1?(b.splice(f,1),b[f-1]=""):(b.splice(f-1,2),f-=2));e.path=b.join("/")}b=[];e.scheme&&b.push(e.scheme,":");e.authority&&b.push("//",e.authority);b.push(e.path);e.query&&b.push("?",e.query);e.fragment&&b.push("#",e.fragment)}this.uri=b.join("");a=this.uri.match(l);
this.scheme=a[2]||(a[1]?"":null);this.authority=a[4]||(a[3]?"":null);this.path=a[5];this.query=a[7]||(a[6]?"":null);this.fragment=a[9]||(a[8]?"":null);if(this.authority!=null)a=this.authority.match(m),this.user=a[3]||null,this.password=a[4]||null,this.host=a[6]||a[7],this.port=a[9]||null};d._Url.prototype.toString=function(){return this.uri};d.moduleUrl=function(a,c){if(!a)return null;var a=a.replace(/\./g,"/")+(c?"/"+c:""),e="",f=a.match(/(.+)(\.[^\/]*)$/);f&&(a=f[1],e=f[2]);return new d._Url(b.nameToUrl(a,
e))};return d});
define("dojo/_base/_loader/hostenv_browser",["dojo/lib/backCompat"],function(b){if(typeof window!="undefined"){b.isBrowser=!0;b._name="browser";(function(){var a=b;if(document&&document.getElementsByTagName)for(var c=document.getElementsByTagName("script"),e=/dojo(\.xd)?\.js(\W|$)/i,d=0;d<c.length;d++){var g=c[d].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[d].getAttribute("djConfig")||c[d].getAttribute("data-dojo-config")){var c=eval("({ "+
c+" })"),i;for(i in c)b.config[i]=c[i]}break}}}a.baseUrl=a.config.baseUrl;i=navigator;c=i.userAgent;e=i.appVersion;d=parseFloat(e);if(c.indexOf("Opera")>=0)a.isOpera=d;if(c.indexOf("AdobeAIR")>=0)a.isAIR=1;a.isKhtml=e.indexOf("Konqueror")>=0?d:0;a.isWebKit=parseFloat(c.split("WebKit/")[1])||void 0;a.isChrome=parseFloat(c.split("Chrome/")[1])||void 0;a.isMac=e.indexOf("Macintosh")>=0;if((g=Math.max(e.indexOf("WebKit"),e.indexOf("Safari"),0))&&!b.isChrome)if(a.isSafari=parseFloat(e.split("Version/")[1]),
!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=d;if(a.isMoz)a.isFF=parseFloat(c.split("Firefox/")[1]||c.split("Minefield/")[1])||void 0;if(document.all&&!a.isOpera&&(a.isIE=parseFloat(e.split("MSIE ")[1])||void 0,(c=document.documentMode)&&c!=5&&Math.floor(a.isIE)!=c))a.isIE=c;if(b.isIE&&window.location.protocol==="file:")b.config.ieForceActiveXXhr=!0;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 c,e;if(!b.isIE||!b.config.ieForceActiveXXhr)try{c=new XMLHttpRequest}catch(d){}if(!c)for(var f=0;f<3;++f){var g=a._XMLHTTP_PROGIDS[f];try{c=new ActiveXObject(g)}catch(i){e=i}if(c){a._XMLHTTP_PROGIDS=[g];break}}if(!c)throw Error("XMLHTTP not available: "+e);return c};a._isDocumentOk=function(a){var a=a.status||0,b=location.protocol;return a>=200&&
a<300||a==304||a==1223||!a&&(b=="file:"||b=="chrome:"||b=="chrome-extension:"||b=="app:")};var j=window.location+"",k=(i=document.getElementsByTagName("base"))&&i.length>0;a._getText=function(c,e){var d=a._xhrObj();!k&&b._Url&&(c=(new b._Url(j,c)).toString());a.config.cacheBust&&(c+="",c+=(c.indexOf("?")==-1?"?":"&")+String(a.config.cacheBust).replace(/\W+/g,""));d.open("GET",c,!1);try{if(d.send(null),!a._isDocumentOk(d)){var f=Error("Unable to load "+c+" status:"+d.status);f.status=d.status;f.responseText=
d.responseText;throw f;}}catch(g){if(e)return null;throw g;}return d.responseText};var l=window,m=function(a,b){var c=l.attachEvent||l.addEventListener,a=l.attachEvent?a:a.substring(2);c(a,function(){b.apply(l,arguments)},!1)};a._windowUnloaders=[];a.windowUnloaded=function(){for(var b=a._windowUnloaders;b.length;)b.pop()();a=null};var n=0;a.addOnWindowUnload=function(b,c){a._onto(a._windowUnloaders,b,c);n||(n=1,m("onunload",a.windowUnloaded))};var p=0;a.addOnUnload=function(c,e){a._onto(a._unloaders,
c,e);p||(p=1,m("onbeforeunload",b.unloaded))}})();b._initFired=!1;b._loadInit=function(){if(b._scrollIntervalId)clearInterval(b._scrollIntervalId),b._scrollIntervalId=0;if(!b._initFired)b._initFired=!0,!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,!1),window.addEventListener("load",b._loadInit,!1);else if(window.attachEvent&&
(window.attachEvent("onload",b._loadInit),!b.config.skipIeDomLoaded&&self===self.top))b._scrollIntervalId=setInterval(function(){try{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".split(","),c=0,e=1,d=document.createStyleSheet();if(b.isIE>=8)c=1,e=a.length;for(;c<e;++c)d.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");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(a){return typeof a=="string"||a instanceof String};b.isArray=function(a){return a&&(a instanceof Array||typeof a=="array")};b.isFunction=function(a){return d.call(a)==="[object Function]"};b.isObject=function(a){return a!==void 0&&(a===null||typeof a=="object"||b.isArray(a)||b.isFunction(a))};b.isArrayLike=function(a){return a&&a!==void 0&&!b.isString(a)&&!b.isFunction(a)&&!(a.tagName&&
a.tagName.toLowerCase()=="form")&&(b.isArray(a)||isFinite(a.length))};b.isAlien=function(a){return a&&!b.isFunction(a)&&/\{\s*\[native code\]\s*\}/.test(String(a))};b.extend=function(a,c){for(var e=1,d=arguments.length;e<d;e++)b._mixin(a.prototype,arguments[e]);return a};b._hitchArgs=function(a,c){var e=b._toArray(arguments,2),d=b.isString(c);return function(){var f=b._toArray(arguments),g=d?(a||b.global)[c]:c;return g&&g.apply(a||this,e.concat(f))}};b.hitch=function(a,c){if(arguments.length>2)return b._hitchArgs.apply(b,
arguments);c||(c=a,a=null);if(b.isString(c)){a=a||b.global;if(!a[c])throw['dojo.hitch: scope["',c,'"] is null (scope="',a,'")'].join("");return function(){return a[c].apply(a,arguments||[])}}return!a?c:function(){return c.apply(a,arguments||[])}};b.delegate=b._delegate=function(){function a(){}return function(c,e){a.prototype=c;var d=new a;a.prototype=null;e&&b._mixin(d,e);return d}}();var a=function(a,b,c){return(c||[]).concat(Array.prototype.slice.call(a,b||0))},c=function(a,b,c){c=c||[];for(b=
b||0;b<a.length;b++)c.push(a[b]);return c};b._toArray=b.isIE?function(b){return(b.item?c:a).apply(this,arguments)}:a;b.partial=function(a){return b.hitch.apply(b,[null].concat(b._toArray(arguments)))};var e=b._extraNames,f=e.length,g={};b.clone=function(a){if(!a||typeof a!="object"||b.isFunction(a))return a;if(a.nodeType&&"cloneNode"in a)return a.cloneNode(!0);if(a instanceof Date)return new Date(a.getTime());if(a instanceof RegExp)return RegExp(a);var c,d,h,m;if(b.isArray(a)){c=[];for(d=0,h=a.length;d<
h;++d)d in a&&c.push(b.clone(a[d]))}else c=a.constructor?new a.constructor:{};for(m in a)if(h=a[m],!(m in c)||c[m]!==h&&(!(m in g)||g[m]!==h))c[m]=b.clone(h);if(f)for(d=0;d<f;++d)if(m=e[d],h=a[m],!(m in c)||c[m]!==h&&(!(m in g)||g[m]!==h))c[m]=h;return c};b.trim=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};var h=/\{([^\}]+)\}/g;b.replace=function(a,c,e){return a.replace(e||h,b.isFunction(c)?c:function(a,e){return b.getObject(e,
!1,c)})}})();return b});
define("dojo/_base/array",["dojo/lib/kernel","dojo/_base/lang"],function(b){(function(){var d=function(a,e,d){return[typeof a=="string"?a.split(""):a,e||b.global,typeof d=="string"?new Function("item","index","array",d):d]},a=function(a,b,f,g){for(var f=d(b,g,f),b=f[0],g=0,h=b.length;g<h;++g){var i=!!f[2].call(f[1],b[g],g,b);if(a^i)return i}return a};b.mixin(b,{indexOf:function(a,b,d,g){var h=1,i=a.length||0,j=0;g&&(j=i-1,h=i=-1);d!=void 0&&(j=d);if(g&&j>i||j<i)for(;j!=i;j+=h)if(a[j]==b)return j;
return-1},lastIndexOf:function(a,e,d){return b.indexOf(a,e,d,!0)},forEach:function(a,b,f){if(a&&a.length)for(var b=d(a,f,b),a=b[0],f=0,g=a.length;f<g;++f)b[2].call(b[1],a[f],f,a)},every:function(b,e,d){return a(!0,b,e,d)},some:function(b,e,d){return a(!1,b,e,d)},map:function(a,b,f,g){for(var b=d(a,f,b),a=b[0],g=g?new g:[],f=0,h=a.length;f<h;++f)g.push(b[2].call(b[1],a[f],f,a));return g},filter:function(a,b,f){for(var b=d(a,f,b),a=b[0],f=[],g=0,h=a.length;g<h;++g)b[2].call(b[1],a[g],g,a)&&f.push(a[g]);
return f}})})();return b});
define("dojo/_base/declare",["dojo/lib/kernel","dojo/_base/lang","dojo/_base/array"],function(b){(function(){function d(a,b){throw Error("declare"+(b?" "+b:"")+": "+a);}function a(a,b,c){var e,f,g,h,i,j,k,l=this._inherited=this._inherited||{};typeof a=="string"&&(e=a,a=b,b=c);c=0;h=a.callee;(e=e||h.nom)||d("can't deduce a name to call inherited()",this.declaredClass);i=this.constructor._meta;g=i.bases;k=l.p;if(e!=t){if(l.c!==h&&(k=0,j=g[0],i=j._meta,i.hidden[e]!==h)){(f=i.chains)&&typeof f[e]=="string"&&
d("calling chained method with inherited: "+e,this.declaredClass);do if(i=j._meta,f=j.prototype,i&&(f[e]===h&&f.hasOwnProperty(e)||i.hidden[e]===h))break;while(j=g[++k]);k=j?k:-1}if(j=g[++k])if(f=j.prototype,j._meta&&f.hasOwnProperty(e))c=f[e];else{h=r[e];do if(f=j.prototype,(c=f[e])&&(j._meta?f.hasOwnProperty(e):c!==h))break;while(j=g[++k])}c=j&&c||r[e]}else{if(l.c!==h&&(k=0,(i=g[0]._meta)&&i.ctor!==h)){f=i.chains;for((!f||f.constructor!=="manual")&&d("calling chained constructor with inherited",
this.declaredClass);j=g[++k];)if((i=j._meta)&&i.ctor===h)break;k=j?k:-1}for(;j=g[++k];)if(c=(i=j._meta)?i.ctor:j)break;c=j&&c}l.c=c;l.p=k;if(c)return b===!0?c:c.apply(this,b||a)}function c(a,b){return typeof a=="string"?this.inherited(a,b,!0):this.inherited(a,!0)}function e(a){for(var b=this.constructor._meta.bases,c=0,e=b.length;c<e;++c)if(b[c]===a)return!0;return this instanceof a}function f(a,b){var c,e=0,d=p._extraNames.length;for(c in b)c!=t&&b.hasOwnProperty(c)&&(a[c]=b[c]);for(;e<d;++e)c=p._extraNames[e],
c!=t&&b.hasOwnProperty(c)&&(a[c]=b[c])}function g(a,b){var c,e,d=0,f=p._extraNames.length;for(c in b)if(e=b[c],(e!==r[c]||!(c in r))&&c!=t){if(q.call(e)=="[object Function]")e.nom=c;a[c]=e}for(;d<f;++d)if(c=p._extraNames[d],e=b[c],(e!==r[c]||!(c in r))&&c!=t){if(q.call(e)=="[object Function]")e.nom=c;a[c]=e}return a}function h(a){g(this.prototype,a);return this}function i(a,b){return function(){var u;var c=arguments,e=c,d=c[0],f,g;g=a.length;var h;if(!(this instanceof c.callee))return n(c);if(b&&
(d&&d.preamble||this.preamble)){h=Array(a.length);h[0]=c;for(f=0;;){if(d=c[0])(d=d.preamble)&&(c=d.apply(this,c)||c);d=a[f].prototype;(d=d.hasOwnProperty("preamble")&&d.preamble)&&(c=d.apply(this,c)||c);if(++f==g)break;h[f]=c}}for(f=g-1;f>=0;--f)d=a[f],(u=(g=d._meta)?g.ctor:d,d=u)&&d.apply(this,h?h[f]:c);(d=this.postscript)&&d.apply(this,e)}}function j(a,b){return function(){var c=arguments,e=c,d=c[0];if(!(this instanceof c.callee))return n(c);if(b){if(d)(d=d.preamble)&&(e=d.apply(this,e)||e);(d=
this.preamble)&&d.apply(this,e)}a&&a.apply(this,c);(d=this.postscript)&&d.apply(this,c)}}function k(a){return function(){var u;var b=arguments,c=0,e,d;if(!(this instanceof b.callee))return n(b);for(;e=a[c];++c)if(u=(d=e._meta)?d.ctor:e,e=u){e.apply(this,b);break}(e=this.postscript)&&e.apply(this,b)}}function l(a,b,c){return function(){var e,d,f=0,g=1;c&&(f=b.length-1,g=-1);for(;e=b[f];f+=g)d=e._meta,(e=(d?d.hidden:e.prototype)[a])&&e.apply(this,arguments)}}function m(a){s.prototype=a.prototype;a=
new s;s.prototype=null;return a}function n(a){var b=a.callee,c=m(b);b.apply(c,a);return c}var p=b,o=p._mixin,r=Object.prototype,q=r.toString,s=new Function,w=0,t="constructor";p.declare=function(b,n,s){typeof b!="string"&&(s=n,n=b,b="");var s=s||{},C,A,v,u,J,D,y,H=1,K=n;if(q.call(n)=="[object Array]"){H=b;v=[];u=[{cls:0,refs:[]}];D={};for(var x=1,E=n.length,L=0,F,M,I,N;L<E;++L){(F=n[L])?q.call(F)!="[object Function]"&&d("mixin #"+L+" is not a callable constructor.",H):d("mixin #"+L+" is unknown. Did you use dojo.require to pull it in?",
H);M=F._meta?F._meta.bases:[F];I=0;for(F=M.length-1;F>=0;--F){N=M[F].prototype;if(!N.hasOwnProperty("declaredClass"))N.declaredClass="uniqName_"+w++;N=N.declaredClass;D.hasOwnProperty(N)||(D[N]={count:0,refs:[],cls:M[F]},++x);N=D[N];I&&I!==N&&(N.refs.push(I),++I.count);I=N}++I.count;u[0].refs.push(I)}for(;u.length;){I=u.pop();v.push(I.cls);for(--x;A=I.refs,A.length==1;){I=A[0];if(!I||--I.count){I=0;break}v.push(I.cls);--x}if(I)for(L=0,E=A.length;L<E;++L)I=A[L],--I.count||u.push(I)}x&&d("can't build consistent linearization",
H);F=n[0];v[0]=F?F._meta&&F===v[v.length-F._meta.bases.length]?F._meta.bases.length:1:0;D=v;v=D[0];H=D.length-v;n=D[H]}else D=[0],n?q.call(n)=="[object Function]"?(v=n._meta,D=D.concat(v?v.bases:n)):d("base class is not a callable constructor.",b):n!==null&&d("unknown base class. Did you use dojo.require to pull it in?",b);if(n)for(A=H-1;;--A){C=m(n);if(!A)break;v=D[A];(v._meta?f:o)(C,v.prototype);u=new Function;u.superclass=n;u.prototype=C;n=C.constructor=u}else C={};g(C,s);v=s.constructor;if(v!==
r.constructor)v.nom=t,C.constructor=v;for(A=H-1;A;--A)(v=D[A]._meta)&&v.chains&&(y=o(y||{},v.chains));C["-chains-"]&&(y=o(y||{},C["-chains-"]));v=!y||!y.hasOwnProperty(t);D[0]=u=y&&y.constructor==="manual"?k(D):D.length==1?j(s.constructor,v):i(D,v);u._meta={bases:D,hidden:s,chains:y,parents:K,ctor:s.constructor};u.superclass=n&&n.prototype;u.extend=h;u.prototype=C;C.constructor=u;C.getInherited=c;C.inherited=a;C.isInstanceOf=e;if(b)C.declaredClass=b,p.setObject(b,u);if(y)for(J in y)if(C[J]&&typeof y[J]==
"string"&&J!=t)v=C[J]=l(J,D,y[J]==="after"),v.nom=J;return u};p.safeMixin=g})();return b.declare});
define("dojo/_base/connect",["dojo/lib/kernel","dojo/_base/lang"],function(b){b._listener={getDispatcher:function(){return function(){var b=Array.prototype,a=arguments.callee,c=a._listeners,a=(a=a.target)&&a.apply(this,arguments),e,c=[].concat(c);for(e in c)e in b||c[e].apply(this,arguments);return a}},add:function(d,a,c){var d=d||b.global,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(d,a,c,e,f){var g=arguments,h=[],i=0;h.push(b.isString(g[0])?null:g[i++],g[i++]);var j=g[i+1];h.push(b.isString(j)||b.isFunction(j)?g[i++]:null,g[i++]);for(j=g.length;i<j;i++)h.push(g[i]);return b._connect.apply(this,h)};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){d&&d[0]!==void 0&&(b._disconnect.apply(this,d),delete d[0])};b._disconnect=function(b,a,c,e){e.remove(b,
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){var c=b._topics[d];c&&c.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 a,b,c,d,i=!1,j=function(){};return function(k){if(i)a?(b.next={task:k,next:null},b=b.next):b=a={task:k,next:null};else{i=!0;do try{for(;k;){k();if(c)a?b.next=c:a=c,b=d;a?(c=a.next,d=b,k=a.task,a=b=null):k=null}i=!1}catch(l){k=j,console.error(l)}while(i)}}}();b.Deferred=function(e){function f(a){if(i)throw Error("This deferred has already been resolved");
h=a;i=!0;c(g)}function g(){for(var a;!a&&l;){var c=l;l=l.next;if(a=c.progress==d)i=!1;var e=j?c.error:c.resolved;if(e)try{var f=e(h);f&&typeof f.then==="function"?f.then(b.hitch(c.deferred,"resolve"),b.hitch(c.deferred,"reject"),b.hitch(c.deferred,"progress")):(e=a&&f===void 0,a&&!e&&(j=f instanceof Error),c.deferred[e&&j?"reject":"resolve"](e?h:f))}catch(g){c.deferred.reject(g)}else j?c.deferred.reject(h):c.deferred.resolve(h)}}var h,i,j,k,l,m=this.promise={};this.resolve=this.callback=function(a){this.fired=
0;this.results=[a,null];f(a)};this.reject=this.errback=function(a){j=!0;this.fired=1;f(a);this.results=[null,a];if(!a||a.log!==!1)(b.config.deferredOnError||function(a){console.error(a)})(a)};this.progress=function(a){for(var b=l;b;){var c=b.progress;c&&c(a);b=b.next}};this.addCallbacks=function(a,b){this.then(a,b,d);return this};this.then=m.then=function(a,e,f){var h=f==d?this:new b.Deferred(m.cancel),a={resolved:a,error:e,progress:f,deferred:h};l?k=k.next=a:l=k=a;i&&c(g);return h.promise};var n=
this;this.cancel=m.cancel=function(){if(!i){var a=e&&e(n);if(!i)a instanceof Error||(a=Error(a)),a.log=!1,n.reject(a)}};a(m)};b.extend(b.Deferred,{addCallback:function(a){return this.addCallbacks(b.hitch.apply(b,arguments))},addErrback:function(a){return this.addCallbacks(null,b.hitch.apply(b,arguments))},addBoth:function(a){var c=b.hitch.apply(b,arguments);return this.addCallbacks(c,c)},fired:-1})})();b.when=function(b,a,c,e){return b&&typeof b.then==="function"?b.then(a,c,e):a(b)};return b.Deferred});
define("dojo/_base/json",["dojo/lib/kernel"],function(b){b.fromJson=function(b){return eval("("+b+")")};b._escapeString=function(b){return('"'+b.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===void 0)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||"",h=a?c+b.toJsonIndentStr:"";g=d.__json__||d.json;if(b.isFunction(g)&&(g=g.call(d),d!==g))return f(g,a,h);if(d.nodeType&&d.cloneNode)throw Error("Can't serialize DOM nodes");g=a?" ":"";var i=a?"\n":"";if(b.isArray(d))return"["+b.map(d,function(b){b=f(b,a,h);typeof b!="string"&&(b="undefined");return i+h+b}).join(","+g)+i+c+"]";if(e=="function")return null;var e=[],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(b){b&&this.setColor(b)};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(b,a,c,e){this.r=b;this.g=a;this.b=c;this.a=e},setColor:function(d){b.isString(d)?b.colorFromString(d,this):b.isArray(d)?b.colorFromArray(d,this):(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(b){b=this[b].toString(16);return b.length<2?"0"+
b:b},this).join("")},toCss:function(b){var a=this.r+", "+this.g+", "+this.b;return(b?"rgba("+a+", "+this.a:"rgb("+a)+")"},toString:function(){return this.toCss(!0)}});b.blendColors=function(d,a,c,e){var f=e||new b.Color;b.forEach(["r","g","b","a"],function(b){f[b]=d[b]+(a[b]-d[b])*c;b!="a"&&(f[b]=Math.round(f[b]))});return f.sanitize()};b.colorFromRgb=function(d,a){var c=d.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return c&&b.colorFromArray(c[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(a){var b=d&f;d>>=e;c[a]=e==4?17*b:b});c.a=1;return c};b.colorFromArray=function(d,a){var c=a||new b.Color;c._set(Number(d[0]),Number(d[1]),Number(d[2]),Number(d[3]));if(isNaN(c.a))c.a=1;return c.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{return b.global=d,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{return b.doc=d,delete b._bodyLtr,b.isQuirks=b.doc.compatMode=="BackCompat",c&&typeof a=="string"&&
(a=c[a]),a.apply(c,e||[])}finally{b.doc=f;delete b._bodyLtr;if(g!==void 0)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(a,c,e){if(a){c=d._normalizeEventName(c);e=d._fixCallback(c,e);if(!b.isIE&&(c=="mouseenter"||c=="mouseleave"))var f=e,c=c=="mouseenter"?"mouseover":"mouseout",e=function(c){if(!b.isDescendant(c.relatedTarget,a))return f.call(this,c)};a.addEventListener(c,e,!1);return e}},remove:function(a,c,e){if(a){c=d._normalizeEventName(c);if(!b.isIE&&(c=="mouseenter"||c=="mouseleave"))c=
c=="mouseenter"?"mouseover":"mouseout";a.removeEventListener(c,e,!1)}},_normalizeEventName:function(a){return a.slice(0,2)=="on"?a.slice(2):a},_fixCallback:function(a,b){return a!="keypress"?b:function(a){return b.call(this,d._fixEvent(a,this))}},_fixEvent:function(a){switch(a.type){case "keypress":d._setKeyChar(a)}return a},_setKeyChar:function(a){a.keyChar=a.charCode>=32?String.fromCharCode(a.charCode):"";a.charOrCode=a.keyChar||a.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(a,b){return d._fixEvent(a,b)};b.stopEvent=function(a){a.preventDefault();a.stopPropagation()};var a=b._listener;b._connect=function(c,e,f,g,h){h=c&&(c.nodeType||c.attachEvent||c.addEventListener)?h?2:1:0;f=[b._listener,d,a][h].add(c,e,b.hitch(f,g));return[c,e,f,h]};b._disconnect=function(c,e,f,g){[b._listener,d,a][g].remove(c,e,f)};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(a){return a[c]};b.mouseButtons=b.isIE<9||b.isIE&&b.isQuirks?{LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(a,b){return a.button&b},isLeft:function(a){return a.button&1},isMiddle:function(a){return a.button&4},isRight:function(a){return a.button&2}}:{LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(a,b){return a.button==b},isLeft:function(a){return a.button==
0},isMiddle:function(a){return a.button==1},isRight:function(a){return a.button==2}};if(b.isIE){var e=function(a,b){try{return a.keyCode=b}catch(c){return 0}},f=b._listener,g=b._ieListenersName="_"+b._scopeName+"_listeners";if(!b.config._allow_leaks)var a=f=b._ie_listener={handlers:[],add:function(a,c,e){var a=a||b.global,d=a[c];if(!d||!d[g]){var f=b._getIeDispatcher();f.target=d&&h.push(d)-1;f[g]=[];d=a[c]=f}return d[g].push(h.push(e)-1)},remove:function(a,c,e){var i;i=(a=(a||b.global)[c])&&a[g],
c=i;a&&c&&e--&&(delete h[c[e]],delete c[e])}},h=f.handlers;b.mixin(d,{add:function(a,b,c){if(a){b=d._normalizeEventName(b);if(b=="onkeypress"){var e=a.onkeydown;if(!e||!e[g]||!e._stealthKeydownHandle){var h=d.add(a,"onkeydown",d._stealthKeyDown),e=a.onkeydown;e._stealthKeydownHandle=h;e._stealthKeydownRefs=1}else e._stealthKeydownRefs++}return f.add(a,b,d._fixCallback(c))}},remove:function(a,b,c){b=d._normalizeEventName(b);f.remove(a,b,c);if(b=="onkeypress")b=a.onkeydown,--b._stealthKeydownRefs<=
0&&(f.remove(a,"onkeydown",b._stealthKeydownHandle),delete b._stealthKeydownHandle)},_normalizeEventName:function(a){return a.slice(0,2)!="on"?"on"+a:a},_nop:function(){},_fixEvent:function(a,c){if(!a)a=(c&&(c.ownerDocument||c.document||c).parentWindow||window).event;if(!a)return a;a.target=a.srcElement;a.currentTarget=c||a.srcElement;a.layerX=a.offsetX;a.layerY=a.offsetY;var e=a.srcElement,e=e&&e.ownerDocument||document,e=b.isIE<6||e.compatMode=="BackCompat"?e.body:e.documentElement,f=b._getIeDocumentElementOffset();
a.pageX=a.clientX+b._fixIeBiDiScrollLeft(e.scrollLeft||0)-f.x;a.pageY=a.clientY+(e.scrollTop||0)-f.y;if(a.type=="mouseover")a.relatedTarget=a.fromElement;if(a.type=="mouseout")a.relatedTarget=a.toElement;if(b.isIE<9||b.isQuirks)a.stopPropagation=d._stopPropagation,a.preventDefault=d._preventDefault;return d._fixKeys(a)},_fixKeys:function(a){switch(a.type){case "keypress":var b="charCode"in a?a.charCode:a.keyCode;b==10?(b=0,a.keyCode=13):b==13||b==27?b=0:b==3&&(b=99);a.charCode=b;d._setKeyChar(a)}return a},
_stealthKeyDown:function(a){var c=a.currentTarget.onkeypress;if(c&&c[g]){var f=a.keyCode,h=(f!=13||b.isIE>=9&&!b.isQuirks)&&f!=32&&f!=27&&(f<48||f>90)&&(f<96||f>111)&&(f<186||f>192)&&(f<219||f>222);if(h||a.ctrlKey){h=h?0:f;if(a.ctrlKey)if(f==3||f==13)return;else h>95&&h<106?h-=48:!a.shiftKey&&h>=65&&h<=90?h+=32:h=d._punctMap[h]||h;f=d._synthesizeEvent(a,{type:"keypress",faux:!0,charCode:h});c.call(a.currentTarget,f);if(b.isIE<9||b.isIE&&b.isQuirks)a.cancelBubble=f.cancelBubble;a.returnValue=f.returnValue;
e(a,f.keyCode)}}},_stopPropagation:function(){this.cancelBubble=!0},_preventDefault:function(){this.bubbledKeyCode=this.keyCode;this.ctrlKey&&e(this,0);this.returnValue=!1}});b.stopEvent=b.isIE<9||b.isQuirks?function(a){a=a||window.event;d._stopPropagation.call(a);d._preventDefault.call(a)}:b.stopEvent}d._synthesizeEvent=function(a,c){var e=b.mixin({},a,c);d._setKeyChar(e);e.preventDefault=function(){a.preventDefault()};e.stopPropagation=function(){a.stopPropagation()};return e};b.isOpera&&b.mixin(d,
{_fixEvent:function(a){switch(a.type){case "keypress":var b=a.which;b==3&&(b=99);b=b<41&&!a.shiftKey?0:b;a.ctrlKey&&!a.shiftKey&&b>=65&&b<=90&&(b+=32);return d._synthesizeEvent(a,{charCode:b})}return a}});if(b.isWebKit)d._add=d.add,d._remove=d.remove,b.mixin(d,{add:function(a,b,c){if(a){var e=d._add(a,b,c);if(d._normalizeEventName(b)=="keypress")e._stealthKeyDownHandle=d._add(a,"keydown",function(a){var b=a.keyCode,e=b!=13&&b!=32&&(b<48||b>90)&&(b<96||b>111)&&(b<186||b>192)&&(b<219||b>222);if(e||
a.ctrlKey){e=e?0:b;if(a.ctrlKey)if(b==3||b==13)return;else e>95&&e<106?e-=48:!a.shiftKey&&e>=65&&e<=90?e+=32:e=d._punctMap[e]||e;b=d._synthesizeEvent(a,{type:"keypress",faux:!0,charCode:e});c.call(a.currentTarget,b)}});return e}},remove:function(a,b,c){a&&(c._stealthKeyDownHandle&&d._remove(a,"keydown",c._stealthKeyDownHandle),d._remove(a,b,c))},_fixEvent:function(a){switch(a.type){case "keypress":if(a.faux)break;var b=a.charCode;return d._synthesizeEvent(a,{charCode:b>=32?b:0,faux:!0})}return a}})})();
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),h;for(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(b){return d.call(this,a(b,this))}};return b.connect});
define("dojo/_base/html",["dojo/lib/kernel","dojo/_base/lang"],function(b){try{document.execCommand("BackgroundImageCache",!1,!0)}catch(d){}b.byId=b.isIE?function(a,c){if(typeof a!="string")return a;var e=c||b.doc,d=e.getElementById(a);if(d&&(d.attributes.id.value==a||d.id==a))return d;else{e=e.all[a];if(!e||e.nodeName)e=[e];for(var g=0;d=e[g++];)if(d.attributes&&d.attributes.id&&d.attributes.id.value==a||d.id==a)return d}}: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(b){b=a(b);try{var d=b.ownerDocument;if(!c||e!=d)c=d.createElement("div"),e=d;c.appendChild(b.parentNode?b.parentNode.removeChild(b):b);c.innerHTML=""}catch(f){}};b.isDescendant=function(b,c){try{b=a(b);for(c=a(c);b;){if(b==c)return!0;b=b.parentNode}}catch(e){}return!1};b.setSelectable=function(c,e){c=a(c);if(b.isMozilla)c.style.MozUserSelect=e?"":"none";else if(b.isKhtml||b.isWebKit)c.style.KhtmlUserSelect=
e?"auto":"none";else if(b.isIE){var d=c.unselectable=e?"":"on";b.query("*",c).forEach("item.unselectable = '"+d+"'")}};var d=function(a,b){var c=b.parentNode;c&&c.insertBefore(a,b)};b.place=function(c,e,g){e=a(e);typeof c=="string"&&(c=/^\s*</.test(c)?b._toDom(c,e.ownerDocument):a(c));if(typeof g=="number"){var h=e.childNodes;!h.length||h.length<=g?e.appendChild(c):d(c,h[g<0?0:g])}else switch(g){case "before":d(c,e);break;case "after":g=c;(h=e.parentNode)&&(h.lastChild==e?h.appendChild(g):h.insertBefore(g,
e.nextSibling));break;case "replace":e.parentNode.replaceChild(c,e);break;case "only":b.empty(e);e.appendChild(c);break;case "first":if(e.firstChild){d(c,e.firstChild);break}default:e.appendChild(c)}return c};b.boxModel="content-box";if(b.isIE)b.boxModel=document.compatMode=="BackCompat"?"border-box":"content-box";var g;g=b.isWebKit?function(a){var b;if(a.nodeType==1){var c=a.ownerDocument.defaultView;b=c.getComputedStyle(a,null);if(!b&&a.style)a.style.display="",b=c.getComputedStyle(a,null)}return b||
{}}:b.isIE?function(a){return a.nodeType==1?a.currentStyle:{}}:function(a){return a.nodeType==1?a.ownerDocument.defaultView.getComputedStyle(a,null):{}};b.getComputedStyle=g;b._toPixelValue=b.isIE?function(a,b){if(!b)return 0;if(b=="medium")return 4;if(b.slice&&b.slice(-2)=="px")return parseFloat(b);with(a){var c=style.left,e=runtimeStyle.left;runtimeStyle.left=currentStyle.left;try{style.left=b,b=style.pixelLeft}catch(d){b=0}style.left=c;runtimeStyle.left=e}return b}:function(a,b){return parseFloat(b)||
0};var h=b._toPixelValue,i=function(a,b){try{return a.filters.item("DXImageTransform.Microsoft.Alpha")}catch(c){return b?{}:null}};b._getOpacity=b.isIE<9?function(a){try{return i(a).Opacity/100}catch(b){return 1}}:function(a){return g(a).opacity};b._setOpacity=b.isIE<9?function(a,c){var e=c*100,d=c==1;a.style.zoom=d?"":1;if(i(a))i(a,1).Opacity=e;else{if(d)return c;a.style.filter+=" progid:DXImageTransform.Microsoft.Alpha(Opacity="+e+")"}i(a,1).Enabled=!d;a.nodeName.toLowerCase()=="tr"&&b.query("> td",
a).forEach(function(a){b._setOpacity(a,c)});return c}:function(a,b){return a.style.opacity=b};var j={left:!0,top:!0},k=/margin|padding|width|height|max|min|offset/,l=function(a,c,e){c=c.toLowerCase();if(b.isIE){if(e=="auto"){if(c=="height")return a.offsetHeight;if(c=="width")return a.offsetWidth}if(c=="fontweight")switch(e){case 700:return"bold";default:return"normal"}}c in j||(j[c]=k.test(c));return j[c]?h(a,e):e},m=b.isIE?"styleFloat":"cssFloat",n={cssFloat:m,styleFloat:m,"float":m};b.style=function(c,
e,d){var f=a(c),h=arguments.length,i=e=="opacity",e=n[e]||e;if(h==3)return i?b._setOpacity(f,d):f.style[e]=d;if(h==2&&i)return b._getOpacity(f);i=g(f);if(h==2&&typeof e!="string"){for(var j in e)b.style(c,j,e[j]);return i}return h==1?i:l(f,e,i[e]||f.style[e])};b._getPadExtents=function(a,b){var c=b||g(a),e=h(a,c.paddingLeft),d=h(a,c.paddingTop);return{l:e,t:d,w:e+h(a,c.paddingRight),h:d+h(a,c.paddingBottom)}};b._getBorderExtents=function(a,b){var c=b||g(a),e=c.borderLeftStyle!="none"?h(a,c.borderLeftWidth):
0,d=c.borderTopStyle!="none"?h(a,c.borderTopWidth):0;return{l:e,t:d,w:e+(c.borderRightStyle!="none"?h(a,c.borderRightWidth):0),h:d+(c.borderBottomStyle!="none"?h(a,c.borderBottomWidth):0)}};b._getPadBorderExtents=function(a,c){var e=c||g(a),d=b._getPadExtents(a,e),e=b._getBorderExtents(a,e);return{l:d.l+e.l,t:d.t+e.t,w:d.w+e.w,h:d.h+e.h}};b._getMarginExtents=function(a,c){var e=c||g(a),d=h(a,e.marginLeft),f=h(a,e.marginTop),i=h(a,e.marginRight),j=h(a,e.marginBottom);b.isWebKit&&e.position!="absolute"&&
(i=d);return{l:d,t:f,w:d+i,h:f+j}};b._getMarginBox=function(a,c){var e=c||g(a),d=b._getMarginExtents(a,e),f=a.offsetLeft-d.l,h=a.offsetTop-d.t,i=a.parentNode;if(b.isMoz){var j=parseFloat(e.left),e=parseFloat(e.top);!isNaN(j)&&!isNaN(e)?(f=j,h=e):i&&i.style&&(j=g(i),j.overflow!="visible"&&(i=b._getBorderExtents(i,j),f+=i.l,h+=i.t))}else if((b.isOpera||b.isIE>7&&!b.isQuirks)&&i)i=b._getBorderExtents(i),f-=i.l,h-=i.t;return{l:f,t:h,w:a.offsetWidth+d.w,h:a.offsetHeight+d.h}};b._getMarginSize=function(c,
e){var c=a(c),d=b._getMarginExtents(c,e||g(c)),f=c.getBoundingClientRect();return{w:f.right-f.left+d.w,h:f.bottom-f.top+d.h}};b._getContentBox=function(a,c){var e=c||g(a),d=b._getPadExtents(a,e),e=b._getBorderExtents(a,e),f=a.clientWidth,h;f?(h=a.clientHeight,e.w=e.h=0):(f=a.offsetWidth,h=a.offsetHeight);b.isOpera&&(d.l+=e.l,d.t+=e.t);return{l:d.l,t:d.t,w:f-d.w-e.w,h:h-d.h-e.h}};b._getBorderBox=function(a,c){var e=c||g(a),d=b._getPadExtents(a,e),e=b._getContentBox(a,e);return{l:e.l-d.l,t:e.t-d.t,
w:e.w+d.w,h:e.h+d.h}};b._setBox=function(a,b,c,e,d,f){f=f||"px";a=a.style;if(!isNaN(b))a.left=b+f;if(!isNaN(c))a.top=c+f;if(e>=0)a.width=e+f;if(d>=0)a.height=d+f};b._isButtonTag=function(a){return a.tagName=="BUTTON"||a.tagName=="INPUT"&&(a.getAttribute("type")||"").toUpperCase()=="BUTTON"};b._usesBorderBox=function(a){var c=a.tagName;return b.boxModel=="border-box"||c=="TABLE"||b._isButtonTag(a)};b._setContentSize=function(a,c,e,d){b._usesBorderBox(a)&&(d=b._getPadBorderExtents(a,d),c>=0&&(c+=d.w),
e>=0&&(e+=d.h));b._setBox(a,NaN,NaN,c,e)};b._setMarginBox=function(a,c,e,d,f,h){var i=h||g(a),h=b._usesBorderBox(a)?p:b._getPadBorderExtents(a,i);if(b.isWebKit&&b._isButtonTag(a)){var j=a.style;if(d>=0&&!j.width)j.width="4px";if(f>=0&&!j.height)j.height="4px"}i=b._getMarginExtents(a,i);d>=0&&(d=Math.max(d-h.w-i.w,0));f>=0&&(f=Math.max(f-h.h-i.h,0));b._setBox(a,c,e,d,f)};var p={l:0,t:0,w:0,h:0};b.marginBox=function(c,e){var d=a(c),f=g(d);return!e?b._getMarginBox(d,f):b._setMarginBox(d,e.l,e.t,e.w,
e.h,f)};b.contentBox=function(c,e){var d=a(c),f=g(d);return!e?b._getContentBox(d,f):b._setContentSize(d,e.w,e.h,f)};b._docScroll=function(){var a=b.global;return"pageXOffset"in a?{x:a.pageXOffset,y:a.pageYOffset}:(a=b.isQuirks?b.doc.body:b.doc.documentElement,{x:b._fixIeBiDiScrollLeft(a.scrollLeft||0),y:a.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 a=
b.doc.documentElement;if(b.isIE<8){var c=a.getBoundingClientRect(),e=c.left,c=c.top;b.isIE<7&&(e+=a.clientLeft,c+=a.clientTop);return{x:e<0?0:e,y:c<0?0:c}}else return{x:0,y:0}};b._fixIeBiDiScrollLeft=function(a){var c=b.isIE;if(c&&!b._isBodyLtr()){var e=b.isQuirks,d=e?b.doc.body:b.doc.documentElement;c==6&&!e&&b.global.frameElement&&d.scrollHeight>d.clientHeight&&(a+=d.clientLeft);return c<8||e?a+d.clientWidth-d.scrollWidth:-a}return a};b._abs=b.position=function(c,e){var c=a(c),d=b.body(),f=d.parentNode,
i=c.getBoundingClientRect(),i={x:i.left,y:i.top,w:i.right-i.left,h:i.bottom-i.top};b.isIE?(f=b._getIeDocumentElementOffset(),i.x-=f.x+(b.isQuirks?d.clientLeft+d.offsetLeft:0),i.y-=f.y+(b.isQuirks?d.clientTop+d.offsetTop:0)):b.isFF==3&&(d=g(f),i.x-=h(f,d.marginLeft)+h(f,d.borderLeftWidth),i.y-=h(f,d.marginTop)+h(f,d.borderTopWidth));e&&(d=b._docScroll(),i.x+=d.x,i.y+=d.y);return i};b.coords=function(c,e){var d=a(c),f=g(d),f=b._getMarginBox(d,f),d=b.position(d,e);f.x=d.x;f.y=d.y;return f};var o={"class":"className",
"for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},r={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},q={innerHTML:1,className:1,htmlFor:b.isIE,value:1},s=function(a,b){var c=a.getAttributeNode&&a.getAttributeNode(b);return c&&c.specified};b.hasAttr=function(b,c){var e=c.toLowerCase();return q[o[e]||c]||s(a(b),r[e]||c)};var w={},t=0,z=b._scopeName+"attrid",B={col:1,colgroup:1,table:1,
tbody:1,tfoot:1,thead:1,tr:1,title:1};b.attr=function(c,e,d){var c=a(c),f=arguments.length;if(f==2&&typeof e!="string"){for(var g in e)b.attr(c,g,e[g]);return c}var h=e.toLowerCase();g=o[h]||e;var i=q[g],h=r[h]||e;if(f==3){if(g=="style"&&typeof d!="string")b.style(c,d);else if(g=="innerHTML")b.isIE&&c.tagName.toLowerCase()in B?(b.empty(c),c.appendChild(b._toDom(d,c.ownerDocument))):c[g]=d;else if(b.isFunction(d)){f=b.attr(c,z);f||(f=t++,b.attr(c,z,f));w[f]||(w[f]={});if(i=w[f][g])b.disconnect(i);
else try{delete c[g]}catch(j){}w[f][g]=b.connect(c,g,d)}else i||typeof d=="boolean"?c[g]=d:c.setAttribute(h,d);return c}d=c[g];return i&&typeof d!="undefined"?d:g!="href"&&(typeof d=="boolean"||b.isFunction(d))?d:s(c,h)?c.getAttribute(h):null};b.removeAttr=function(b,c){a(b).removeAttribute(r[c.toLowerCase()]||c)};b.getNodeProp=function(b,c){var b=a(b),e=c.toLowerCase(),d=o[e]||c;if(d in b&&d!="href")return b[d];e=r[e]||c;return s(b,e)?b.getAttribute(e):null};b.create=function(c,e,d,f){var g=b.doc;
if(d)d=a(d),g=d.ownerDocument;typeof c=="string"&&(c=g.createElement(c));e&&b.attr(c,e);d&&b.place(c,d,f);return c};b.empty=b.isIE?function(c){for(var c=a(c),e;e=c.lastChild;)b.destroy(e)}:function(b){a(b).innerHTML=""};var G={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"]},C=/<\s*([\w\:]+)/,A={},v=0,u="__"+b._scopeName+
"ToDomId",J;for(J in G)if(G.hasOwnProperty(J))m=G[J],m.pre=J=="option"?'<select multiple="multiple">':"<"+m.join("><")+">",m.post="</"+m.reverse().join("></")+">";b._toDom=function(a,c){var c=c||b.doc,e=c[u];e||(c[u]=e=++v+"",A[e]=c.createElement("div"));a+="";var d=a.match(C),f=d?d[1].toLowerCase():"",e=A[e];if(d&&G[f]){d=G[f];e.innerHTML=d.pre+a+d.post;for(d=d.length;d;--d)e=e.firstChild}else e.innerHTML=a;if(e.childNodes.length==1)return e.removeChild(e.firstChild);for(f=c.createDocumentFragment();d=
e.firstChild;)f.appendChild(d);return f};b.hasClass=function(b,c){return(" "+a(b).className+" ").indexOf(" "+c+" ")>=0};var D=/\s+/,y=[""],H={},K=function(a){return typeof a=="string"||a instanceof String?a.indexOf(" ")<0?(y[0]=a,y):a.split(D):a||""};b.addClass=function(b,c){var b=a(b),c=K(c),e=b.className,d,e=e?" "+e+" ":" ";d=e.length;for(var f=0,g=c.length,h;f<g;++f)(h=c[f])&&e.indexOf(" "+h+" ")<0&&(e+=h+" ");d<e.length&&(b.className=e.substr(1,e.length-2))};b.removeClass=function(c,e){var c=
a(c),d;if(e!==void 0){e=K(e);d=" "+c.className+" ";for(var f=0,g=e.length;f<g;++f)d=d.replace(" "+e[f]+" "," ");d=b.trim(d)}else d="";c.className!=d&&(c.className=d)};b.replaceClass=function(c,e,d){c=a(c);H.className=c.className;b.removeClass(H,d);b.addClass(H,e);if(c.className!==H.className)c.className=H.className};b.toggleClass=function(a,c,e){e===void 0&&(e=!b.hasClass(a,c));b[e?"addClass":"removeClass"](a,c)}})();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(c,e,d){c.sort||(c=a.call(c,0));d=d||this._NodeListCtor||b._NodeListCtor;c.constructor=d;b._mixin(c,d.prototype);c._NodeListCtor=d;return e?c._stash(e):c},f=function(c,e,d){e=[0].concat(a.call(e,0));d=d||b.global;return function(a){e[0]=a;return c.apply(d,e)}},g=function(a,b){return function(){this.forEach(f(a,
arguments,b));return this}},h=function(a,b){return function(){return this.map(f(a,arguments,b))}},i=function(a,c,e){return function(){var d=arguments,g=f(a,d,e);if(c.call(e||b.global,d))return this.map(g);this.forEach(g);return this}},j=function(a){return a.length==1&&typeof a[0]=="string"},k=function(a){var b=a.parentNode;b&&b.removeChild(a)};b.NodeList=function(){return e(Array.apply(null,arguments))};var l=b._NodeListCtor=b.NodeList,m=l.prototype;l._wrap=m._wrap=e;l._adaptAsMap=h;l._adaptAsForEach=
g;l._adaptAsFilter=function(a,b){return function(){return this.filter(f(a,arguments,b))}};l._adaptWithCondition=i;b.forEach(["slice","splice"],function(a){var b=d[a];m[a]=function(){return this._wrap(b.apply(this,arguments),a=="slice"?this:null)}});b.forEach(["indexOf","lastIndexOf","every","some"],function(c){var e=b[c];m[c]=function(){return e.apply(b,[this].concat(a.call(arguments,0)))}});b.forEach(["attr","style"],function(a){m[a]=i(b[a],j)});b.forEach("connect,addClass,removeClass,replaceClass,toggleClass,empty,removeAttr".split(","),
function(a){m[a]=g(b[a])});b.extend(b.NodeList,{_normalize:function(a,c){var e=a.parse===!0?!0:!1;if(typeof a.template=="string")var d=a.templateFunc||b.string&&b.string.substitute,a=d?d(a.template,a):a;d=typeof a;d=="string"||d=="number"?(a=b._toDom(a,c&&c.ownerDocument),a=a.nodeType==11?b._toArray(a.childNodes):[a]):b.isArrayLike(a)?b.isArray(a)||(a=b._toArray(a)):a=[a];if(e)a._runParse=!0;return a},_cloneNode:function(a){return a.cloneNode(!0)},_place:function(a,c,e,d){if(!(c.nodeType!=1&&e=="only"))for(var f,
g=a.length,h=g-1;h>=0;h--){var i=d?this._cloneNode(a[h]):a[h];if(a._runParse&&b.parser&&b.parser.parse){f||(f=c.ownerDocument.createElement("div"));f.appendChild(i);b.parser.parse(f);for(i=f.firstChild;f.firstChild;)f.removeChild(f.firstChild)}h==g-1?b.place(i,c,e):c.parentNode.insertBefore(i,c);c=i}},_stash:function(a){this._parent=a;return this},end:function(){return this._parent?this._parent:new this._NodeListCtor},concat:function(e){var d=b.isArray(this)?this:a.call(this,0),f=b.map(arguments,
function(c){return c&&!b.isArray(c)&&(typeof NodeList!="undefined"&&c.constructor===NodeList||c.constructor===this._NodeListCtor)?a.call(c,0):c});return this._wrap(c.apply(d,f),this)},map:function(a,c){return this._wrap(b.map(this,a,c),this)},forEach:function(a,c){b.forEach(this,a,c);return this},coords:h(b.coords),position:h(b.position),place:function(a,c){var e=b.query(a)[0];return this.forEach(function(a){b.place(a,e,c)})},orphan:function(a){return(a?b._filterQueryResult(this,a):this).forEach(k)},
adopt:function(a,c){return b.query(a).place(this[0],c)._stash(this)},query:function(a){if(!a)return this;var e=this.map(function(c){return b.query(a,c).filter(function(a){return a!==void 0})});return this._wrap(c.apply([],e),this)},filter:function(a){var c=arguments,e=this,d=0;if(typeof a=="string"){e=b._filterQueryResult(this,c[0]);if(c.length==1)return e._stash(this);d=1}return this._wrap(b.filter(e,c[d],c[d+1]),this)},addContent:function(a,b){for(var a=this._normalize(a,this[0]),c=0,e;e=this[c];c++)this._place(a,
e,b,c>0);return this},instantiate:function(a,c){var e=b.isFunction(a)?a:b.getObject(a),c=c||{};return this.forEach(function(a){new e(c,a)})},at:function(){var a=new this._NodeListCtor;b.forEach(arguments,function(b){b<0&&(b=this.length+b);this[b]&&a.push(this[b])},this);return a._stash(this)}});l.events="blur,focus,change,click,error,keydown,keypress,keyup,load,mousedown,mouseenter,mouseleave,mousemove,mouseout,mouseover,mouseup,submit".split(",");b.forEach(l.events,function(a){var b="on"+a;m[b]=
function(a,c){return this.connect(b,a,c)}})})();return b.NodeList});
(function(){var b=function(a){var b=a.trim,e=a.forEach,d=a._NodeListCtor=a.NodeList,g=(a.isWebKit||a.isMozilla)&&a.doc.compatMode=="BackCompat",h=a.doc.firstChild.children?"children":"childNodes",i=!1,j=function(){return!0},k=function(a){a+=">~+".indexOf(a.slice(-1))>=0?" * ":" ";for(var e=function(e,d){return b(a.slice(e,d))},d=[],f=-1,g=-1,h=-1,j=-1,k=-1,l=-1,m=-1,p="",n="",w,o=0,q=a.length,t=null,r=null,s=function(){if(l>=0)t.id=e(l,o).replace(/\\/g,""),l=-1;if(m>=0){var a=m==o?null:e(m,o);t[">~+".indexOf(a)<
0?"tag":"oper"]=a;m=-1}k>=0&&(t.classes.push(e(k+1,o).replace(/\\/g,"")),k=-1)};p=n,n=a.charAt(o),o<q;o++)if(p!="\\")if(t||(w=o,t={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return i?this.otag:this.tag}},m=o),f>=0)if(n=="]"){r.attr?r.matchFor=e(h||f+1,o):r.attr=e(f+1,o);if((f=r.matchFor)&&(f.charAt(0)=='"'||f.charAt(0)=="'"))r.matchFor=f.slice(1,-1);t.attrs.push(r);r=null;f=h=-1}else{if(n=="=")h="|~^$*".indexOf(p)>=0?p:"",r.type=h+n,r.attr=e(f+1,o-h.length),
h=o+1}else if(g>=0){if(n==")"){if(j>=0)r.value=e(g+1,o);j=g=-1}}else if(n=="#")s(),l=o+1;else if(n==".")s(),k=o;else if(n==":")s(),j=o;else if(n=="[")s(),f=o,r={};else if(n=="(")j>=0&&(r={name:e(j+1,o),value:null},t.pseudos.push(r)),g=o;else if(n==" "&&p!=n){s();j>=0&&t.pseudos.push({name:e(j+1,o)});t.loops=t.pseudos.length||t.attrs.length||t.classes.length;t.oquery=t.query=e(w,o);t.otag=t.tag=t.oper?null:t.tag||"*";if(t.tag)t.tag=t.tag.toUpperCase();if(d.length&&d[d.length-1].oper)t.infixOper=d.pop(),
t.query=t.infixOper.query+" "+t.query;d.push(t);t=null}return d},l=function(a,b){return!a?b:!b?a:function(){return a.apply(window,arguments)&&b.apply(window,arguments)}},m=function(a,b){var c=b||[];a&&c.push(a);return c},n=function(a){return 1==a.nodeType},p=function(a,b){return!a?"":b=="class"?a.className||"":b=="for"?a.htmlFor||"":b=="style"?a.style.cssText||"":(i?a.getAttribute(b):a.getAttribute(b,2))||""},o={"*=":function(a,b){return function(c){return p(c,a).indexOf(b)>=0}},"^=":function(a,b){return function(c){return p(c,
a).indexOf(b)==0}},"$=":function(a,b){return function(c){c=" "+p(c,a);return c.lastIndexOf(b)==c.length-b.length}},"~=":function(a,b){var c=" "+b+" ";return function(b){return(" "+p(b,a)+" ").indexOf(c)>=0}},"|=":function(a,b){var c=" "+b+"-";return function(e){e=" "+p(e,a);return e==b||e.indexOf(c)==0}},"=":function(a,b){return function(c){return p(c,a)==b}}},r=typeof a.doc.firstChild.nextElementSibling=="undefined",q=!r?"nextElementSibling":"nextSibling",s=!r?"previousElementSibling":"previousSibling",
w=r?n:j,t=function(a){for(;a=a[s];)if(w(a))return!1;return!0},z=function(a){for(;a=a[q];)if(w(a))return!1;return!0},B=function(a){var b=a.parentNode,c=0,e=b[h],d=a._i||-1,f=b._l||-1;if(!e)return-1;e=e.length;if(f==e&&d>=0&&f>=0)return d;b._l=e;d=-1;for(b=b.firstElementChild||b.firstChild;b;b=b[q])if(w(b))b._i=++c,a===b&&(d=c);return d},G=function(a){return!(B(a)%2)},C=function(a){return B(a)%2},A={checked:function(){return function(a){return!!("checked"in a?a.checked:a.selected)}},"first-child":function(){return t},
"last-child":function(){return z},"only-child":function(){return function(a){return!t(a)?!1:!z(a)?!1:!0}},empty:function(){return function(a){for(var b=a.childNodes,a=a.childNodes.length-1;a>=0;a--){var c=b[a].nodeType;if(c===1||c==3)return!1}return!0}},contains:function(a,b){var c=b.charAt(0);if(c=='"'||c=="'")b=b.slice(1,-1);return function(a){return a.innerHTML.indexOf(b)>=0}},not:function(a,b){var c=k(b)[0],e={el:1};if(c.tag!="*")e.tag=1;if(!c.classes.length)e.classes=1;var d=u(c,e);return function(a){return!d(a)}},
"nth-child":function(a,b){var c=parseInt;if(b=="odd")return C;else if(b=="even")return G;if(b.indexOf("n")!=-1){var e=b.split("n",2),d=e[0]?e[0]=="-"?-1:c(e[0]):1,f=e[1]?c(e[1]):0,g=0,h=-1;d>0?f<0?f=f%d&&d+f%d:f>0&&(f>=d&&(g=f-f%d),f%=d):d<0&&(d*=-1,f>0&&(h=f,f%=d));if(d>0)return function(a){a=B(a);return a>=g&&(h<0||a<=h)&&a%d==f};else b=f}var i=c(b);return function(a){return B(a)==i}}},v=a.isIE<9||dojo.isIE&&dojo.isQuirks?function(a){var b=a.toLowerCase();b=="class"&&(a="className");return function(c){return i?
c.getAttribute(a):c[a]||c[b]}}:function(a){return function(b){return b&&b.getAttribute&&b.hasAttribute(a)}},u=function(a,b){if(!a)return j;var b=b||{},c=null;"el"in b||(c=l(c,n));"tag"in b||a.tag!="*"&&(c=l(c,function(b){return b&&b.tagName==a.getTag()}));"classes"in b||e(a.classes,function(a,b){var e=RegExp("(?:^|\\s)"+a+"(?:\\s|$)");c=l(c,function(a){return e.test(a.className)});c.count=b});"pseudos"in b||e(a.pseudos,function(a){var b=a.name;A[b]&&(c=l(c,A[b](b,a.value)))});"attrs"in b||e(a.attrs,
function(a){var b,e=a.attr;a.type&&o[a.type]?b=o[a.type](e,a.matchFor):e.length&&(b=v(e));b&&(c=l(c,b))});"id"in b||a.id&&(c=l(c,function(b){return!!b&&b.id==a.id}));c||"default"in b||(c=j);return c},J=function(a){return function(b,c,e){for(;b=b[q];)if(!r||n(b)){(!e||Q(b,e))&&a(b)&&c.push(b);break}return c}},D=function(a){return function(b,c,e){for(b=b[q];b;){if(w(b)){if(e&&!Q(b,e))break;a(b)&&c.push(b)}b=b[q]}return c}},y=function(a){a=a||j;return function(b,c,e){for(var d=0,f=b[h];b=f[d++];)w(b)&&
(!e||Q(b,e))&&a(b,d)&&c.push(b);return c}},H={},K=function(b){var c=H[b.query];if(c)return c;var e=b.infixOper,e=e?e.oper:"",d=u(b,{el:1}),f="*"==b.tag,h=a.doc.getElementsByClassName;if(e){h={el:1};if(f)h.tag=1;d=u(b,h);"+"==e?c=J(d):"~"==e?c=D(d):">"==e&&(c=y(d))}else if(b.id)d=!b.loops&&f?j:u(b,{el:1,id:1}),c=function(c,e){var f=a.byId(b.id,c.ownerDocument||c);if(f&&d(f))if(9==c.nodeType)return m(f,e);else{for(var g=f.parentNode;g;){if(g==c)break;g=g.parentNode}if(g)return m(f,e)}};else if(h&&/\{\s*\[native code\]\s*\}/.test(String(h))&&
b.classes.length&&!g)var d=u(b,{el:1,classes:1,id:1}),i=b.classes.join(" "),c=function(a,b,c){for(var b=m(0,b),e,f=0,g=a.getElementsByClassName(i);e=g[f++];)d(e,a)&&Q(e,c)&&b.push(e);return b};else!f&&!b.loops?c=function(a,c,e){for(var c=m(0,c),d=0,f=a.getElementsByTagName(b.getTag());a=f[d++];)Q(a,e)&&c.push(a);return c}:(d=u(b,{el:1,tag:1,id:1}),c=function(a,c,e){for(var c=m(0,c),f,g=0,h=a.getElementsByTagName(b.getTag());f=h[g++];)d(f,a)&&Q(f,e)&&c.push(f);return c});return H[b.query]=c},x={},
E={},L=function(a){var e=k(b(a));if(e.length==1){var g=K(e[0]);return function(a){if(a=g(a,new d))a.nozip=!0;return a}}return function(a){for(var a=m(a),b,c,d=e.length,f,g,h=0;h<d;h++){g=[];b=e[h];c=a.length-1;if(c>0)f={},g.nozip=!0;c=K(b);for(var i=0;b=a[i];i++)c(b,g,f);if(!g.length)break;a=g}return g}},F=navigator.userAgent,F=a.isWebKit&&F.indexOf("WebKit/")>0&&parseFloat(F.split("WebKit/")[1])>528,M=a.isIE?"commentStrip":"nozip",I=!!a.doc.querySelectorAll&&(!a.isSafari||a.isSafari>3.1||F),N=/n\+\d|([^ ])?([>~+])([^ =])?/g,
T=function(a,b,c,e){return c?(b?b+" ":"")+c+(e?" "+e:""):a},S=function(b,c){b=b.replace(N,T);if(I){var e=E[b];if(e&&!c)return e}if(e=x[b])return e;var e=b.charAt(0),d=-1==b.indexOf(" ");b.indexOf("#")>=0&&d&&(c=!0);if(I&&!c&&">~+".indexOf(e)==-1&&(!a.isIE||b.indexOf(":")==-1)&&!(g&&b.indexOf(".")>=0)&&b.indexOf(":contains")==-1&&b.indexOf(":checked")==-1&&b.indexOf("|=")==-1){var f=">~+".indexOf(b.charAt(b.length-1))>=0?b+" *":b;return E[b]=function(a){try{if(!(9==a.nodeType||d))throw"";var c=a.querySelectorAll(f);
c[M]=!0;return c}catch(e){return S(b,!0)(a)}}}else{var h=b.split(/\s*,\s*/);return x[b]=h.length<2?L(b):function(a){for(var b=0,c=[],e;e=h[b++];)c=c.concat(L(e)(a));return c}}},P=0,U=a.isIE?function(a){return i?a.getAttribute("_uid")||a.setAttribute("_uid",++P)||P:a.uniqueID}:function(a){return a._uid||(a._uid=++P)},Q=function(a,b){if(!b)return 1;var c=U(a);return!b[c]?b[c]=1:0},V=function(b){if(b&&b.nozip)return d._wrap?d._wrap(b):b;var c=new d;if(!b||!b.length)return c;b[0]&&c.push(b[0]);if(b.length<
2)return c;P++;if(a.isIE&&i){var e=P+"";b[0].setAttribute("_zipIdx",e);for(var g=1,h;h=b[g];g++)b[g].getAttribute("_zipIdx")!=e&&c.push(h),h.setAttribute("_zipIdx",e)}else if(a.isIE&&b.commentStrip)try{for(g=1;h=b[g];g++)n(h)&&c.push(h)}catch(j){}else{b[0]&&(b[0]._zipIdx=P);for(g=1;h=b[g];g++)b[g]._zipIdx!=P&&c.push(h),h._zipIdx=P}return c};a.query=function(b,c){d=a._NodeListCtor;if(!b)return new d;if(b.constructor==d)return b;if(typeof b!="string")return new d(b);if(typeof c=="string"&&(c=a.byId(c),
!c))return new d;var c=c||a.doc,e=c.ownerDocument||c.documentElement;i=c.contentType&&c.contentType=="application/xml"||a.isOpera&&(c.doctype||e.toString()=="[object XMLDocument]")||!!e&&(a.isIE?e.xml:c.xmlVersion||e.xmlVersion);return(e=S(b)(c))&&e.nozip&&!d._wrap?e:V(e)};a.query.pseudos=A;a._filterQueryResult=function(b,c,e){for(var d=new a._NodeListCtor,f=k(c),f=f.length==1&&!/[^\w#\.]/.test(c)?u(f[0]):function(a){return dojo.query(c,e).indexOf(a)!=-1},g=0,h;h=b[g];g++)f(h)&&d.push(h);return d}},
d=function(){acme={trim:function(a){for(var a=a.replace(/^\s+/,""),b=a.length-1;b>=0;b--)if(/\S/.test(a.charAt(b))){a=a.substring(0,b+1);break}return a},forEach:function(a,b,c){if(a&&a.length)for(var e=0,d=a.length;e<d;++e)b.call(c||window,a[e],e,a)},byId:function(a,b){return typeof a=="string"?(b||document).getElementById(a):a},doc:document,NodeList:Array};var a=navigator,b=a.userAgent,a=a.appVersion,e=parseFloat(a);acme.isOpera=b.indexOf("Opera")>=0?e:void 0;acme.isKhtml=a.indexOf("Konqueror")>=
0?e:void 0;acme.isWebKit=parseFloat(b.split("WebKit/")[1])||void 0;acme.isChrome=parseFloat(b.split("Chrome/")[1])||void 0;if((b=Math.max(a.indexOf("WebKit"),a.indexOf("Safari"),0))&&!acme.isChrome)if(acme.isSafari=parseFloat(a.split("Version/")[1]),!acme.isSafari||parseFloat(a.substr(b+7))<=419.3)acme.isSafari=2;if(document.all&&!acme.isOpera)acme.isIE=parseFloat(a.split("MSIE ")[1])||void 0;Array._wrap=function(a){return a};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)});typeof define!="function"&&(this.dojo?(dojo.provide("dojo._base.query"),dojo.require("dojo._base.NodeList"),dojo.require("dojo._base.lang"),b(this.queryPortability||this.acme||dojo)):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(){var d=b.config;b.fieldToObject=function(a){var c=null;if(a=b.byId(a)){var e=a.name,d=(a.type||"").toLowerCase();if(e&&d&&!a.disabled)if(d=="radio"||d=="checkbox"){if(a.checked)c=a.value}else a.multiple?(c=[],b.query("option",a).forEach(function(a){a.selected&&c.push(a.value)})):c=a.value}return c};b.formToObject=function(a){var c={};b.forEach(b.byId(a).elements,
function(a){var e=a.name,d=(a.type||"").toLowerCase();if(e&&d&&"file|submit|image|reset|button|".indexOf(d)==-1&&!a.disabled){a=b.fieldToObject(a);if(a!==null){var f=c[e];typeof f=="string"?c[e]=[f,a]:b.isArray(f)?f.push(a):c[e]=a}if(d=="image")c[e+".x"]=c[e+".y"]=c[e].x=c[e].y=0}});return c};b.objectToQuery=function(a){var c=encodeURIComponent,e=[],d={},f;for(f in a){var g=a[f];if(g!=d[f]){var h=c(f)+"=";if(b.isArray(g))for(var i=0;i<g.length;i++)e.push(h+c(g[i]));else e.push(h+c(g))}}return e.join("&")};
b.formToQuery=function(a){return b.objectToQuery(b.formToObject(a))};b.formToJson=function(a,c){return b.toJson(b.formToObject(a),c)};b.queryToObject=function(a){var c={},a=a.split("&"),e=decodeURIComponent;b.forEach(a,function(a){if(a.length){var d=a.split("="),a=e(d.shift()),d=e(d.join("="));typeof c[a]=="string"&&(c[a]=[c[a]]);b.isArray(c[a])?c[a].push(d):c[a]=d}});return c};b._blockAsync=!1;var a=b._contentHandlers=b.contentHandlers={text:function(a){return a.responseText},json:function(a){return b.fromJson(a.responseText||
null)},"json-comment-filtered":function(a){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.");var a=a.responseText,c=a.indexOf("/*"),e=a.lastIndexOf("*/");if(c==-1||e==-1)throw Error("JSON was not comment filtered");return b.fromJson(a.substring(c+
2,e))},javascript:function(a){return b.eval(a.responseText)},xml:function(a){var c=a.responseXML;if(b.isIE&&(!c||!c.documentElement)){var e=function(a){return"MSXML"+a+".DOMDocument"},e=["Microsoft.XMLDOM",e(6),e(4),e(3),e(2)];b.some(e,function(b){try{var e=new ActiveXObject(b);e.async=!1;e.loadXML(a.responseText);c=e}catch(d){return!1}return!0})}return c},"json-comment-optional":function(b){return b.responseText&&/^[^{\[]*\/\*/.test(b.responseText)?a["json-comment-filtered"](b):a.json(b)}};b._ioSetArgs=
function(a,c,e,f){var g={args:a,url:a.url},h=null;if(a.form){var h=b.byId(a.form),i=h.getAttributeNode("action");g.url=g.url||(i?i.value:null);h=b.formToObject(h)}i=[{}];h&&i.push(h);a.content&&i.push(a.content);a.preventCache&&i.push({"dojo.preventCache":(new Date).valueOf()});g.query=b.objectToQuery(b.mixin.apply(null,i));g.handleAs=a.handleAs||"text";var j=new b.Deferred(c);j.addCallbacks(e,function(a){return f(a,j)});var k=a.load;k&&b.isFunction(k)&&j.addCallback(function(b){return k.call(a,b,
g)});var l=a.error;l&&b.isFunction(l)&&j.addErrback(function(b){return l.call(a,b,g)});var m=a.handle;m&&b.isFunction(m)&&j.addBoth(function(b){return m.call(a,b,g)});d.ioPublish&&b.publish&&g.args.ioPublish!==!1&&(j.addCallbacks(function(a){b.publish("/dojo/io/load",[j,a]);return a},function(a){b.publish("/dojo/io/error",[j,a]);return a}),j.addBoth(function(a){b.publish("/dojo/io/done",[j,a]);return a}));j.ioArgs=g;return j};var c=function(a){a.canceled=!0;var b=a.ioArgs.xhr,c=typeof b.abort;(c==
"function"||c=="object"||c=="unknown")&&b.abort();a=a.ioArgs.error;if(!a)a=Error("xhr cancelled"),a.dojoType="cancel";return a},e=function(b){b=a[b.ioArgs.handleAs](b.ioArgs.xhr);return b===void 0?null:b},f=function(a,b){b.ioArgs.args.failOk||console.error(a);return a},g=null,h=[],i=0,j=function(a){i<=0&&(i=0,d.ioPublish&&b.publish&&(!a||a&&a.ioArgs.args.ioPublish!==!1)&&b.publish("/dojo/io/stop"))},k=function(){var a=(new Date).getTime();if(!b._blockAsync)for(var c=0,e;c<h.length&&(e=h[c]);c++){var d=
e.dfd,f=function(){if(!d||d.canceled||!e.validCheck(d))h.splice(c--,1),i-=1;else if(e.ioCheck(d))h.splice(c--,1),e.resHandle(d),i-=1;else if(d.startTime&&d.startTime+(d.ioArgs.args.timeout||0)<a){h.splice(c--,1);var b=Error("timeout exceeded");b.dojoType="timeout";d.errback(b);d.cancel();i-=1}};if(b.config.debugAtAllCosts)f.call(this);else try{f.call(this)}catch(k){d.errback(k)}}j(d);h.length||(clearInterval(g),g=null)};b._ioCancelAll=function(){try{b.forEach(h,function(a){try{a.dfd.cancel()}catch(b){}})}catch(a){}};
b.isIE&&b.addOnWindowUnload(b._ioCancelAll);b._ioNotifyStart=function(a){d.ioPublish&&b.publish&&a.ioArgs.args.ioPublish!==!1&&(i||b.publish("/dojo/io/start"),i+=1,b.publish("/dojo/io/send",[a]))};b._ioWatch=function(a,b,c,e){var d=a.ioArgs.args;if(d.timeout)a.startTime=(new Date).getTime();h.push({dfd:a,validCheck:b,ioCheck:c,resHandle:e});g||(g=setInterval(k,50));d.sync&&k()};var l=function(a){return a.ioArgs.xhr.readyState},m=function(a){return 4==a.ioArgs.xhr.readyState},n=function(a){var c=a.ioArgs.xhr;
if(b._isDocumentOk(c))a.callback(a);else{var e=Error("Unable to load "+a.ioArgs.url+" status:"+c.status);e.status=c.status;e.responseText=c.responseText;a.errback(e)}};b._ioAddQueryToUrl=function(a){if(a.query.length)a.url+=(a.url.indexOf("?")==-1?"?":"&")+a.query,a.query=null};b.xhr=function(a,d,g){var h=b._ioSetArgs(d,c,e,f),i=h.ioArgs,j=i.xhr=b._xhrObj(i.args);if(!j)return h.cancel(),h;"postData"in d?i.query=d.postData:"putData"in d?i.query=d.putData:"rawBody"in d?i.query=d.rawBody:(arguments.length>
2&&!g||"POST|PUT".indexOf(a.toUpperCase())==-1)&&b._ioAddQueryToUrl(i);j.open(a,i.url,d.sync!==!0,d.user||void 0,d.password||void 0);if(d.headers)for(var k in d.headers)k.toLowerCase()==="content-type"&&!d.contentType?d.contentType=d.headers[k]:d.headers[k]&&j.setRequestHeader(k,d.headers[k]);j.setRequestHeader("Content-Type",d.contentType||"application/x-www-form-urlencoded");(!d.headers||!("X-Requested-With"in d.headers))&&j.setRequestHeader("X-Requested-With","XMLHttpRequest");b._ioNotifyStart(h);
if(b.config.debugAtAllCosts)j.send(i.query);else try{j.send(i.query)}catch(z){i.error=z,h.cancel()}b._ioWatch(h,l,m,n);return h};b.xhrGet=function(a){return b.xhr("GET",a)};b.rawXhrPost=b.xhrPost=function(a){return b.xhr("POST",a,!0)};b.rawXhrPut=b.xhrPut=function(a){return b.xhr("PUT",a,!0)};b.xhrDelete=function(a){return b.xhr("DELETE",a)}})();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(a,b){this.start=a;this.end=b};b._Line.prototype.getValue=function(a){return(this.end-this.start)*a+this.start};b.Animation=function(a){d(this,a);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 a=this._percent,b=this.easing;return b?b(a):a},_fire:function(a,c){var e=c||[];if(this[a])if(b.config.debugAtAllCosts)this[a].apply(this,e);else try{this[a].apply(this,e)}catch(d){console.error("exception in animation handler for:",a),console.error(d)}return this},play:function(a,c){this._delayTimer&&this._clearTimer();if(c)this._stopTimer(),this._active=this._paused=!1,this._percent=0;else if(this._active&&!this._paused)return this;this._fire("beforeBegin",[this.node]);var e=
a||this.delay,d=b.hitch(this,"_play",c);if(e>0)return this._delayTimer=setTimeout(d,e),this;d();return this},_play:function(){this._delayTimer&&this._clearTimer();this._startTime=(new Date).valueOf();this._paused&&(this._startTime-=this.duration*this._percent);this._active=!0;this._paused=!1;var a=this.curve.getValue(this._getStep());if(!this._percent){if(!this._startRepeatCount)this._startRepeatCount=this.repeat;this._fire("onBegin",[a])}this._fire("onPlay",[a]);this._cycle();return this},pause:function(){this._delayTimer&&
this._clearTimer();this._stopTimer();if(!this._active)return this;this._paused=!0;this._fire("onPause",[this.curve.getValue(this._getStep())]);return this},gotoPercent:function(a,b){this._stopTimer();this._active=this._paused=!0;this._percent=a;b&&this.play();return this},stop:function(a){this._delayTimer&&this._clearTimer();if(!this._timer)return this;this._stopTimer();if(a)this._percent=1;this._fire("onStop",[this.curve.getValue(this._getStep())]);this._active=this._paused=!1;return this},status:function(){return this._active?
this._paused?"paused":"playing":"stopped"},_cycle:function(){if(this._active){var a=((new Date).valueOf()-this._startTime)/this.duration;a>=1&&(a=1);this._percent=a;this.easing&&(a=this.easing(a));this._fire("onAnimate",[this.curve.getValue(a)]);if(this._percent<1)this._startTimer();else{this._active=!1;if(this.repeat>0)this.repeat--,this.play(null,!0);else if(this.repeat==-1)this.play(null,!0);else if(this._startRepeatCount)this.repeat=this._startRepeatCount,this._startRepeatCount=0;this._percent=
0;this._fire("onEnd",[this.node]);!this.repeat&&this._stopTimer()}}return this},_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--;a<=0&&(clearInterval(c),c=null,a=0)}});var f=b.isIE?function(a){var c=
a.style;if(!c.width.length&&b.style(a,"width")=="auto")c.width="auto"}:function(){};b._fade=function(a){a.node=b.byId(a.node);var c=d({properties:{}},a),a=c.properties.opacity={};a.start=!("start"in c)?function(){return+b.style(c.node,"opacity")||0}:c.start;a.end=c.end;a=b.animateProperty(c);b.connect(a,"beforeBegin",b.partial(f,c.node));return a};b.fadeIn=function(a){return b._fade(d({end:1},a))};b.fadeOut=function(a){return b._fade(d({end:0},a))};b._defaultEasing=function(a){return 0.5+Math.sin((a+
1.5)*Math.PI)/2};var g=function(a){this._properties=a;for(var c in a){var e=a[c];if(e.start instanceof b.Color)e.tempColor=new b.Color}};g.prototype.getValue=function(a){var c={},e;for(e in this._properties){var d=this._properties[e],f=d.start;f instanceof b.Color?c[e]=b.blendColors(f,d.end,a,d.tempColor).toCss():b.isArray(f)||(c[e]=(d.end-f)*a+f+(e!="opacity"?d.units||"px":0))}return c};b.animateProperty=function(a){var c=a.node=b.byId(a.node);if(!a.easing)a.easing=b._defaultEasing;a=new b.Animation(a);
b.connect(a,"beforeBegin",a,function(){var a={},e;for(e in this.properties){if(e=="width"||e=="height")this.node.display="block";var f=this.properties[e];b.isFunction(f)&&(f=f(c));f=a[e]=d({},b.isObject(f)?f:{end:f});if(b.isFunction(f.start))f.start=f.start(c);if(b.isFunction(f.end))f.end=f.end(c);var h=e.toLowerCase().indexOf("color")>=0,n=function(a,c){var e={height:a.offsetHeight,width:a.offsetWidth}[c];if(e!==void 0)return e;e=b.style(a,c);return c=="opacity"?+e:h?e:parseFloat(e)};if("end"in f){if(!("start"in
f))f.start=n(c,e)}else f.end=n(c,e);h?(f.start=new b.Color(f.start),f.end=new b.Color(f.end)):f.start=e=="opacity"?+f.start:parseFloat(f.start)}this.curve=new g(a)});b.connect(a,"onAnimate",b.hitch(b,"style",a.node));return a};b.anim=function(a,c,e,d,f,g){return b.animateProperty({node:a,duration:e||b.Animation.prototype.duration,properties:c,easing:d,onEnd:f}).play(g||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".split(","),function(b){return b});(function(){var b=this;if(!b.define)b.define=function(d){b.orion=b.orion||{};b.orion.Deferred=d();delete b.define}})();
define("orion/Deferred",[],function(){function b(b){if(g)a?(c.next={notify:b,next:null},c=c.next):c=a={notify:b,next:null};else{g=!0;do{for(;b;){b();if(e)a?c.next=e:a=e,c=f;a?(e=a.next,f=c,b=a.notify,a=c=null):b=null}g=!1}while(g)}}function d(){function a(){for(;f;){var b=f;f=f.next;var d=b.deferred;if(b[e])try{var h=b[e](c);h&&typeof h.then==="function"?h.then(d.resolve,d.reject,d.update):d.resolve(h)}catch(o){d.reject(o)}else d[e](c)}f=g=null}var c,e,f,g;this.resolve=function(d){if(e)throw Error("'"+
e+"' already called");e="resolve";c=d;b(a)};this.reject=function(d){if(e)throw Error("'"+e+"' already called");e="reject";c=d;b(a)};this.update=this.progress=this.notify=function(a){for(var b=f;b;){if(b.update)try{b.update(a)}catch(c){}b=b.next}};this.then=function(c,i,p){c={resolve:c,reject:i,update:p,deferred:new d};f?g.next=c:f=c;g=c;e&&b(a);return c.deferred.promise};this.promise={then:this.then};this.state=function(){return e||"wait"};this.all=function(a,b){function c(a,b){e||(g[a]=b,--f===0&&
h.resolve(g))}function d(a,f){if(!e){if(b)try{c(a,b(f));return}catch(g){f=g}h.reject(f)}}var f=a.length,g=[],h=this;f===0?this.resolve(g):a.forEach(function(a,b){a.then(c.bind(null,b),d.bind(null,b))});return this.promise}}var a,c,e,f,g=!1;d.when=function(a,b,c,e){var f;if(!(a&&typeof a.then==="function"))f=new d,f.resolve(a),a=f.promise;return a.then(b,c,e)};return d});
define("orion/serviceregistry",["orion/Deferred"],function(b){function d(a,b,c){this.serviceId=a;this.name=b;this.properties=c}function a(a,b,c){this.serviceId=a;this.serviceReference=b;this.internalRegistry=c}function c(a,c,e,d){return function(){var f;if(a.isRegistered(c)){try{var g=e[d].apply(e,Array.prototype.slice.call(arguments));if(g&&typeof g.then==="function")return g;else f=new b,f.resolve(g)}catch(n){f=new b,f.reject(n)}return f.promise}throw Error("Service was unregistered");}}function e(a,
b,e){this.serviceId=a;this.implementation=b;this.internalRegistry=e;for(var d in b)typeof b[d]==="function"&&(this[d]=c(e,a,b,d))}function f(){this._namedlisteners={}}function g(){this._entries=[];this._namedReferences={};this._serviceEventTarget=new f;var a=this;this.internalRegistry={isRegistered:function(b){return a._entries[b]?!0:!1},unregisterService:function(b){var c=a._entries[b];if(c){for(var e=c.reference,d=a._namedReferences[e.getName()],f=0;f<d.length;f++)if(d[f]===e){d.length===1?delete a._namedReferences[e.getName()]:
d.splice(f,1);break}a._entries[b]=null;a._serviceEventTarget.dispatchEvent("serviceRemoved",e,c.service)}},dispatchEvent:function(b,c){var e=a._entries[b];e&&e.eventTarget.dispatchEvent.apply(e.eventTarget,[c].concat(Array.prototype.slice.call(arguments,2)))},addEventListener:function(b,c,e){(b=a._entries[b])&&b.eventTarget.addEventListener(c,e)},removeEventListener:function(b,c,e){(b=a._entries[b])&&b.eventTarget.removeEventListener(c,e)}}}d.prototype={getServiceId:function(){return this.serviceId},
getName:function(){return this.name},getPropertyNames:function(){var a=[],b;for(b in this.properties)this.properties.hasOwnProperty(b)&&a.push(b);return a},getProperty:function(a){return this.properties[a]}};d.prototype.constructor=d;a.prototype={unregister:function(){this.internalRegistry.unregisterService(this.serviceId)},dispatchEvent:function(a){this.internalRegistry.dispatchEvent.apply(this.internalRegistry,[this.serviceId,a].concat(Array.prototype.slice.call(arguments,1)))},getServiceReference:function(){return this.serviceReference}};
a.prototype.constructor=a;e.prototype={addEventListener:function(a,b){this.internalRegistry.addEventListener(this.serviceId,a,b)},removeEventListener:function(a,b){this.internalRegistry.removeEventListener(this.serviceId,a,b)}};e.prototype.constructor=e;f.prototype={dispatchEvent:function(a){var b=this._namedlisteners[a];if(b)for(var c=0;c<b.length;c++)try{var e=Array.prototype.slice.call(arguments,1);b[c].apply(null,e)}catch(d){console.log(d)}},addEventListener:function(a,b){this._namedlisteners[a]=
this._namedlisteners[a]||[];this._namedlisteners[a].push(b)},removeEventListener:function(a,b){var c=this._namedlisteners[a];if(c)for(var e=0;e<c.length;e++)if(c[e]===b){c.length===1?delete this._namedlisteners[a]:c.splice(e,1);break}}};f.prototype.constructor=f;g.prototype={getService:function(a){var b;if(typeof a==="string"){if(this._namedReferences[a])for(var c=0;c<this._namedReferences[a].length;c++)if(b=this._entries[this._namedReferences[a][c].getServiceId()].service)break}else b=this._entries[a.getServiceId()].service;
return b},getServiceReferences:function(a){if(a)return this._namedReferences[a]?this._namedReferences[a]:[];for(var a=[],b=0;b<this._entries.length;b++)this._entries[b]&&a.push(this._entries[b].reference);return a},registerService:function(b,c,g){var k=this._entries.length,g=new d(k,b,g),c=new e(k,c,this.internalRegistry);this._namedReferences[b]=this._namedReferences[b]||[];this._namedReferences[b].push(g);this._entries.push({reference:g,service:c,eventTarget:new f});this._serviceEventTarget.dispatchEvent("serviceAdded",
g,c);return new a(k,g,this.internalRegistry)},addEventListener:function(a,b){this._serviceEventTarget.addEventListener(a,b)},removeEventListener:function(a,b){this._serviceEventTarget.removeEventListener(a,b)}};g.prototype.constructor=g;return{ServiceReference:d,ServiceRegistration:a,Service:e,EventTarget:f,ServiceRegistry:g}});
define("orion/xhr",["orion/Deferred"],function(b){function d(a){return encodeURIComponent(a).replace(/[!'()*]/g,function(a){return"%"+a.charCodeAt(0).toString(16).toUpperCase()})}return function(a,c,e){var e=e||{},f=arguments.length>3&&arguments[3]?arguments[3]:new XMLHttpRequest,g=new b,h=e.headers||{},i=e.log||!1,j,k;typeof h["X-Requested-With"]==="undefined"&&(h["X-Requested-With"]="XMLHttpRequest");if(e.query&&typeof e.query==="object"){var l=e.query,m=Object.keys(l),n=[];for(k=0;k<m.length;k++){var p=
m[k],o=l[p];n.push(d(p)+"="+d(o))}n.length&&(l=c.split("#"),l[0]+=(l[0].indexOf("?")===-1?"?":"&")+n.join("&"),c=l.join("#"))}if(typeof e.data!=="undefined"&&(a==="POST"||a==="PUT"))j=e.data;if(typeof e.responseType==="string")f.responseType=e.responseType;f.onreadystatechange=function(){if(f.readyState===4){var a=f.status,b=typeof f.response!=="undefined"?f.response:f.responseText,b={args:e,response:b,responseText:typeof b==="string"?b:null,status:a,url:c,xhr:f};200<=a&&a<400?g.resolve(b):(i&&console&&
console.log(Error(f.statusText)),g.reject(b))}};try{f.open(a,c,!0);if(typeof e.timeout==="number")f.timeout=e.timeout,f.addEventListener("timeout",function(a){g.reject("Timeout exceeded: "+a)});var r=Object.keys(h);for(k=0;k<r.length;k++){var q=r[k];f.setRequestHeader(q,h[q])}f.send(j)}catch(s){g.reject(s)}return g}});
define("orion/es5shim",[],function(){if(!Function.prototype.bind)Function.prototype.bind=function(b){var d=this,a=Array.prototype.slice.call(arguments,1);return a.length?function(){return arguments.length?d.apply(b,a.concat(Array.prototype.slice.call(arguments))):d.apply(b,a)}:function(){return arguments.length?d.apply(b,arguments):d.call(b)}}});
define("orion/preferences",["require","orion/Deferred","orion/xhr","orion/es5shim"],function(b,d,a){function c(a,b){this._name=a;this._providers=b;this._flushPending=!1;this._cached=null;this._stores=[];this._dirty=[]}function e(a,b){return{get:function(c,e){if(b===0)return null;var d=localStorage.getItem(a+c);if(d===null)return null;d=JSON.parse(d);return e||b===-1||d._expires&&d._expires>(new Date).getTime()?(delete d._expires,d):null},set:function(c,e){if(b!==0){if(b!==-1)e._expires=(new Date).getTime()+
1E3*b;if(Object.keys(e).length===0)localStorage.removeItem(a+c);else{var d=JSON.stringify(e);localStorage.setItem(a+c,d);delete e._expires}}},remove:function(b){localStorage.removeItem(a+b)}}}function f(a){this._currentPromises={};this._cache=new e("/orion/preferences/user",3600);this._service=null;this.available=function(){if(!this._service){var b=a.getServiceReferences("orion.core.preference.provider");if(b.length>0)this._service=a.getService(b[0])}return!!this._service}}function g(a){this._location=
a;this._currentPromise=null;this._cache=new e("/orion/preferences/default",3600)}function h(){this._cache=new e("/orion/preferences/local",-1)}function i(a,c){this._userProvider=new f(a);this._localProvider=new h;c=c||"defaults.pref";c.indexOf("://")===-1&&(c=b.toUrl(c));this._defaultsProvider=new g(c);this._serviceRegistration=a.registerService("orion.core.preference",this)}c.prototype={_flush:function(){for(var a=[],b=0;b<this._stores.length;++b){var c=this._stores[b];this._dirty.indexOf(c)!==-1&&
a.push(this._providers[b].put(this._name,c))}this._dirty=[];return(new d).all(a)},_scheduleFlush:function(a){this._dirty.indexOf(a)===-1&&this._dirty.push(a);if(!this._flushPending)this._flushPending=!0,window.setTimeout(function(){if(this._flushPending)this._flushPending=!1,this._flush()}.bind(this),0)},_getCached:function(){if(!this._cached){this._cached={};for(var a=0;a<this._stores.length;++a){var b=this._stores[a],c;for(c in b)b.hasOwnProperty(c)&&typeof this._cached[c]==="undefined"&&(this._cached[c]=
b[c])}}return this._cached},keys:function(){return Object.keys(this._getCached())},get:function(a){return this._getCached()[a]},put:function(a,b){if(this._stores.length!==0){var c=this._stores[0];if(c[a]!==b)c[a]=b,this._cached=null,this._scheduleFlush(c)}},remove:function(a){for(var b=0;b<this._stores.length;++b){var c=this._stores[b];if(c.hasOwnProperty(a))return delete c[a],this._cached=null,this._scheduleFlush(c),!0}return!1},clear:function(){for(var a=0;a<this._stores.length;++a)this._stores[a]=
{},this._scheduleFlush(this._stores[a]);this._cached=null},sync:function(a){if(this._flushPending)return this._flushPending=!1,this._flush();for(var b=this,c=[],e=0;e<this._providers.length;++e)c.push(this._providers[e].get(this._name,a).then(function(a){return function(c){b._stores[a]=c}}(e)));return(new d).all(c).then(function(){b._cached=null;b._getCached()})},flush:function(){this._flush()}};f.prototype={get:function(a,b){if(this._currentPromises[a])return this._currentPromises[a];var c=new d,
e=null;b?this._cache.remove(a):e=this._cache.get(a);if(e!==null)c.resolve(e);else{this._currentPromises[a]=c;var f=this;this._service.get(a).then(function(b){f._cache.set(a,b);delete f._currentPromises[a];c.resolve(b)},function(b){b.status===404?(b={},f._cache.set(a,b),delete f._currentPromises[a],c.resolve(b)):(delete f._currentPromises[a],c.resolve(f._cache.get(a,!0)||{}))})}return c},put:function(a,b){this._cache.set(a,b);return this._service.put(a,b)}};g.prototype={get:function(b,c){if(this._currentPromise)return this._currentPromise;
var e=new d,f=null;c?this._cache.remove(b):f=this._cache.get(b);if(f!==null)e.resolve(f);else{this._currentPromise=e;var g=this;a("GET",this._location,{headers:{"Orion-Version":"1"},timeout:15E3}).then(function(a){a=JSON.parse(a.response);g._cache.set(b,a[b]||{});g._currentPromise=null;e.resolve(a[b]||{})},function(a){a.xhr.status===401||a.xhr.status===404?(g._cache.set(b,{}),g._currentPromise=null,e.resolve({})):(g._currentPromise=null,a=g._cache.get(b,!0),a!==null?e.resolve(a[b]||{}):e.resolve({}))})}return e},
put:function(){var a=new d;a.resolve();return a}};h.prototype={get:function(a){var b=new d,a=this._cache.get(a);a!==null?b.resolve(a):b.resolve({});return b},put:function(a,b){var c=new d;this._cache.set(a,b);c.resolve();return c}};i.DEFAULT_SCOPE=1;i.LOCAL_SCOPE=2;i.USER_SCOPE=4;i.prototype={listenForChangedSettings:function(a){window.addEventListener("storage",a,!1);return"/orion/preferences/local/settings"},getPreferences:function(a,b){if(!b||typeof b!=="number"||b>7||b<1)b=i.DEFAULT_SCOPE|i.LOCAL_SCOPE|
i.USER_SCOPE;var e=[];i.USER_SCOPE&b&&this._userProvider.available()&&e.push(this._userProvider);i.LOCAL_SCOPE&b&&e.push(this._localProvider);i.DEFAULT_SCOPE&b&&e.push(this._defaultsProvider);var d=new c(a,e);return d.sync().then(function(){return d})},getSetting:function(a,b,c){for(var e,d=0;d<a.length;d++)if(a[d].label===b)for(var f=0;f<a[d].data.length;f++)if(a[d].data[f].label===c){e=a[d].data[f].value;break}return e}};return{PreferencesService:i}});
define("orion/pluginregistry",["orion/Deferred","orion/serviceregistry","orion/es5shim"],function(b,d){var a=a||{};a.Plugin=function(a,e,d){function g(a,c,e){if(!l)throw Error("plugin not connected");var g=o++,h=new b;r[String(g)]=h;d.postMessage({id:g,serviceId:a,method:c,params:e},l);return h.promise}function h(a){var b={};a.methods&&a.methods.forEach(function(c){b[c]=function(){var b=Array.prototype.slice.call(arguments);return p?g(a.serviceId,c,b):k._load().then(function(){return g(a.serviceId,
c,b)})}});return b}function i(){var a=e.services;a&&a.forEach(function(a){var b=h(a);q[a.serviceId]=d.registerService(a.type,b,a.properties)})}function j(b){var g,h;try{if(b.method)if("plugin"===b.method){if(e){if(JSON.stringify(e)!==JSON.stringify(b.params[0])){for(var j in q)q.hasOwnProperty(j)&&(q[j].unregister(),delete q[j]);e=b.params[0];i();d.updatePlugin(k)}}else e=b.params[0],i();p||(p=!0,d.dispatchEvent("pluginLoaded",k),m.resolve(k));n&&(n.resolve(k),n=null)}else"dispatchEvent"===b.method?
(g=q[b.serviceId],g.dispatchEvent.apply(g,b.params)):"progress"===b.method?(h=r[String(b.requestId)],h.update.apply(h,b.params)):(p||m.reject(Error("Load timeout for plugin: "+a)),n&&(n.reject(Error("Load timeout for plugin: "+a)),n=null));else h=r[String(b.id)],delete r[String(b.id)],b.error?h.reject(b.error):h.resolve(b.result)}catch(l){console.log(l)}}var k=this,l=null,m=new b,n=null,p=!1,o=0,r={},q={};this.getLocation=function(){return a};this.getData=function(){return e};this.uninstall=function(){for(var a in q)q.hasOwnProperty(a)&&
(q[a].unregister(),delete q[a]);l&&(d.disconnect(l),l=null);d.uninstallPlugin(this)};this.getServiceReferences=function(){var a=[],b;for(b in q)q.hasOwnProperty(b)&&a.push(q[b].getServiceReference());return a};this.update=function(){if(!p)return this._load();n===null&&(n=new b,d.disconnect(l),l=d.connect(a,j));return n.promise};this._load=function(b,g){l||(l=d.connect(a,j,g),m.then(null,function(){b||(e={},d.updatePlugin(k))}));return m.promise};if(typeof a!=="string")throw Error("invalid url:"+a);
e&&i()};a.PluginRegistry=function(c,e,f){function g(a){if(a.indexOf("://")===-1){var b=document.createElement("a");b.href=a;return b.href}return a}function h(a){a.getData()._expires=(new Date).getTime()+36E5;j["plugin."+a.getLocation()]=JSON.stringify(a.getData())}function i(a){var b=null,a=g(a);k.some(function(c){if(a===c.getLocation())return b=c,!0});return b}var j=e||localStorage||{},k=[],l=[],m=new d.EventTarget;addEventListener("message",function(a){var b=a.source;l.some(function(c){if(b===c.target){if(typeof c.useStructuredClone===
"undefined")c.useStructuredClone=typeof a.data!=="string";c.handler(c.useStructuredClone?a.data:JSON.parse(a.data));return!0}})},!1);var n={registerService:c.registerService.bind(c),connect:function(a,b,c){function e(){b({method:"timeout"})}var d={handler:b,url:a},g=setTimeout(e,c||15E3);if(a.match(/\.js$/)&&typeof Worker!=="undefined"){var h=new Worker(a);h.onmessage=function(a){if(typeof d.useStructuredClone==="undefined")d.useStructuredClone=typeof a.data!=="string";d.handler(d.useStructuredClone?
a.data:JSON.parse(a.data))};d.target=h;d.close=function(){h.terminate()}}else{var i=document.createElement("iframe");i.id=a;i.name=a;if(!f)i.style.display="none",i.style.visibility="hidden";i.src=a;i.onload=function(){clearTimeout(g);setTimeout(e,5E3)};i.sandbox="allow-scripts allow-same-origin";document.body.appendChild(i);d.target=i.contentWindow;d.close=function(){document.body.removeChild(i)}}l.push(d);return d},disconnect:function(a){for(var b=0;b<l.length;b++)if(a===l[b]){l.splice(b,1);try{a.close()}catch(c){}break}},
uninstallPlugin:function(a){delete j["plugin."+a.getLocation()];for(var b=0;b<k.length;b++)if(a===k[b]){k.splice(b,1);m.dispatchEvent("pluginRemoved",a);break}},updatePlugin:function(a){h(a);m.dispatchEvent("pluginUpdated",a)},postMessage:function(a,b){b.target.postMessage(b.useStructuredClone?a:JSON.stringify(a),b.url)},dispatchEvent:function(a,b){try{m.dispatchEvent(a,b)}catch(c){console&&console.log(c)}}};this.startup=function(c){var e=[];c.forEach(function(b){var b=g(b),c="plugin."+b,d=j[c]?JSON.parse(j[c]):
null;d&&d._expires&&d._expires>(new Date).getTime()?i(b)===null&&(delete d._expires,k.push(new a.Plugin(b,d,n))):(j[c]="{}",b=new a.Plugin(b,{},n),k.push(b),e.push(b._load(!1,5E3)))});return(new b).all(e,function(){})};this.shutdown=function(){l.forEach(function(a){try{a.close()}catch(b){}})};this.installPlugin=function(c,e){var c=g(c),d=new b,f=i(c);if(f)if(f.getData())d.resolve(f);else{var j=function(a){a.getLocation()===c&&(d.resolve(a),m.removeEventListener("pluginAdded",j))};m.addEventListener("pluginAdded",
j)}else f=new a.Plugin(c,e,n),k.push(f),f.getData()?(h(f),m.dispatchEvent("pluginAdded",f),d.resolve(f)):f._load(!0).then(function(){h(f);m.dispatchEvent("pluginAdded",f);d.resolve(f)},function(a){d.reject(a)});return d.promise};this.getPlugins=function(){var a=[];k.forEach(function(b){b.getData()&&a.push(b)});return a};this.getPlugin=function(a){return(a=i(a))&&a.getData()?a:null};this.addEventListener=function(a,b){m.addEventListener(a,b)};this.removeEventListener=function(a,b){m.removeEventListener(a,
b)}};return a});
define("orion/bootstrap",["require","orion/Deferred","orion/serviceregistry","orion/preferences","orion/pluginregistry"],function(b,d,a,c,e){var f;return{startup:function(){if(f)return f;f=new d;var g=new a.ServiceRegistry,h=new c.PreferencesService(g),i=new e.PluginRegistry(g);return h.getPreferences("/plugins").then(function(a){for(var a=a.keys(),c=0;c<a.length;++c)a[c].indexOf("://")===-1&&(a[c]=b.toUrl(a[c]));return i.startup(a)}).then(function(){if(g.getServiceReferences("orion.core.preference.provider").length>0)return h.getPreferences("/plugins",
h.USER_SCOPE).then(function(a){for(var a=a.keys(),c=0;c<a.length;++c)a[c].indexOf("://")===-1&&(a[c]=b.toUrl(a[c]));return i.startup(a)})}).then(function(){var a=g.getService("orion.core.auth");a&&a.getUser().then(function(b){b||a.getAuthForm(window.location.href).then(function(a){window.location=a})})}).then(function(){var a={serviceRegistry:g,preferences:h,pluginRegistry:i};f.resolve(a);return a})}}});define("dijit",["dojo"],function(b){return dijit=b._dijit||{}});
define("orion/nls/messages",["orion/i18n!orion/nls/messages"],function(b){var d={root:!0};Object.keys(b).forEach(function(a){typeof d[a]==="undefined"&&(d[a]=b[a])});return d});
define("orion/nls/root/messages",{Navigator:"Navigator",Sites:"Sites",Repositories:"Repositories",Console:"Console","Get Plugins":"Get Plugins",Global:"Global",Editor:"Editor","View on Site":"View on Site","View this file or folder on a web site hosted by Orion":"View this file or folder on a web site hosted by Orion","Show a list of all the keybindings on this page":"Show a list of all the keybindings on this page","Show Keys":"Show Keys","Hide or show the page banner and footer":"Hide or show the page banner and footer",
"Toggle banner and footer":"Toggle banner and footer","Choose a file by name and open an editor on it":"Choose a file by name and open an editor on it","Find File Named...":"Find File Named...","System Configuration Details":"System Configuration Details","System Config Tooltip":"Go to the System Configuration Details page","Background Operations":"Background Operations","Background Operations Tooltip":"Go to the Background Operations page","Operation status is unknown":"Operation status is unknown",
" is already a favorite.":" is already a favorite.","Add to the favorites list":"Add to the favorites list","Make Favorite":"Make Favorite","Unknown item":"Unknown item","Can't search: no search service is available":"Can't search: no search service is available","could not find banner parent, id was ":"could not find banner parent, id was "," has been added to the favorites list.":" has been added to the favorites list.",Related:"Related",Options:"Options",FAQ:"FAQ","Report a Bug":"Report a Bug",
"Privacy Policy":"Privacy Policy","Terms of Use":"Terms of Use","Copyright Agent":"Copyright Agent","Orion Logo":"Orion Logo","Type a keyword or wild card to search in root":"Type a keyword or wild card to search in root","Orion is in Beta. Please try it out but BEWARE your data may be lost.":"Beta build I20120622-1139. Please try it out but BEWARE your data may be lost.","Add this page to the favorites list":"Add this page to the favorites list","LOG: ":"LOG: ",Switch:"Switch","Switch the type of outliner used":"Switch the type of outliner used",
Outliner:"Outliner","no parent":"no parent","no tree model":"no tree model","no renderer":"no renderer","could not find table row ":"could not find table row ","Resource is out of sync with the server. Do you want to save it anyway?":"Resource is out of sync with the server. Do you want to save it anyway?","Orion Home":"Orion Home","Operations - Press spacebar to show current operations":"Operations - Press spacebar to show current operations",Operations:"Operations","Operations running":"Operations running",
"Some operations finished with warning":"Some operations finished with warning","Some operations finished with error":"Some operations finished with error","no service registry":"no service registry","Are you sure you want to delete '${0}' from the favorites?":"Are you sure you want to delete '${0}' from the favorites?","Are you sure you want to delete these ${0} favorites?":"Are you sure you want to delete these ${0} favorites?","You can create favorites by selecting any file or folder in the navigator and choosing ${0} from the More menu.":"You can create favorites by selecting any file or folder in the navigator and choosing ${0} from the More menu.",
Tasks:"Tasks",Close:"Close","Expand all":"Expand all","Collapse all":"Collapse all"});
(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=typeof location!=="undefined"&&location.href,e=c&&location.protocol&&location.protocol.replace(/\:/,""),f=c&&location.hostname,g=c&&(location.port||void 0),h=[];define("text",[],function(){var i,j,k;typeof window!=="undefined"&&window.navigator&&window.document?j=function(a,b){var c=i.createXhr();c.open("GET",a,!0);c.onreadystatechange=
function(){c.readyState===4&&b(c.responseText)};c.send(null)}:typeof process!=="undefined"&&process.versions&&process.versions.node?(k=require.nodeRequire("fs"),j=function(a,b){var c=k.readFileSync(a,"utf8");c.indexOf("\ufeff")===0&&(c=c.substring(1));b(c)}):typeof Packages!=="undefined"&&(j=function(a,b){var c=new java.io.File(a),e=java.lang.System.getProperty("line.separator"),c=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(c),"utf-8")),d,f,g="";try{d=new java.lang.StringBuffer;
(f=c.readLine())&&f.length()&&f.charAt(0)===65279&&(f=f.substring(1));for(d.append(f);(f=c.readLine())!==null;)d.append(e),d.append(f);g=String(d.toString())}finally{c.close()}b(g)});return i={version:"1.0.7",strip:function(b){if(b){var b=b.replace(d,""),c=b.match(a);c&&(b=c[1])}else b="";return b},jsEscape:function(a){return a.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 a,c,
e;if(typeof XMLHttpRequest!=="undefined")return new XMLHttpRequest;else for(c=0;c<3;c++){e=b[c];try{a=new ActiveXObject(e)}catch(d){}if(a){b=[e];break}}if(!a)throw Error("createXhr(): XMLHttpRequest not available");return a},get:j,parseName:function(a){var b=!1,c=a.indexOf("."),e=a.substring(0,c),a=a.substring(c+1,a.length),c=a.indexOf("!");c!==-1&&(b=a.substring(c+1,a.length),b=b==="strip",a=a.substring(0,c));return{moduleName:e,ext:a,strip:b}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(a,
b,c,e){var d=i.xdRegExp.exec(a),f;if(!d)return!0;a=d[2];d=d[3];d=d.split(":");f=d[1];d=d[0];return(!a||a===b)&&(!d||d===c)&&(!f&&!d||f===e)},finishLoad:function(a,b,c,e,d){c=b?i.strip(c):c;d.isBuild&&(h[a]=c);e(c)},load:function(a,b,d,h){if(h.isBuild&&!h.inlineText)d();else{var j=i.parseName(a),k=j.moduleName+"."+j.ext,q=b.toUrl(k),s=h&&h.text&&h.text.useXhr||i.useXhr;!c||s(q,e,f,g)?i.get(q,function(b){i.finishLoad(a,j.strip,b,d,h)}):b([k],function(a){i.finishLoad(j.moduleName+"."+j.ext,j.strip,a,
d,h)})}},write:function(a,b,c){if(b in h){var e=i.jsEscape(h[b]);c.asModule(a+"!"+b,"define(function () { return '"+e+"';});\n")}},writeFile:function(a,b,c,e,d){var b=i.parseName(b),f=b.moduleName+"."+b.ext,g=c.toUrl(b.moduleName+"."+b.ext)+".js";i.load(f,c,function(){var b=function(a){return e(g,a)};b.asModule=function(a,b){return e.asModule(a,g,b)};i.write(a,f,b,d)},d)}}})})();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",!0,d);d.i18n.getLocalization=d.i18n.getLocalization||function(a,c,e){var e=d.i18n.normalizeLocale(e),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]){for(var i,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)return a=function(){},a.prototype=i,new a}throw Error("Bundle not found: "+c+" in "+a+" , locale="+e);};d.i18n.normalizeLocale=function(a){a=a?a.toLowerCase():d.locale;a=="root"&&(a="ROOT");return a};d.i18n._requireLocalization=function(a,b,e,f){var e=d.i18n.normalizeLocale(e),g=[a,"nls",b].join("."),h="";if(f){for(var i=f.split(","),j=0;j<i.length;j++)e.indexOf(i[j])==0&&i[j].length>h.length&&(h=i[j]);h||(h="ROOT")}var i=f?h:e,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){var k=d.provide(g),l=d._getModuleSymbols(a).concat("nls").join("/"),m;d.i18n._searchLocalePath(i,f,function(a){var e=a.replace(/-/g,"_"),h=g+"."+e,i=!1;d._loadedModules[h]?i=!0:(d.provide(h),h=[l],a!="ROOT"&&h.push(a),h.push(b),a=h.join("/")+".js",i=d._loadPath(a,null,function(a){var a=a.root||a,b=function(){};b.prototype=m;k[e]=new b;for(var c in a)k[e][c]=a[c]}));i&&k[e]?m=k[e]:k[e]=m;if(f)return!0})}f&&e!=h&&(k[e.replace(/-/g,
"_")]=k[h.replace(/-/g,"_")])};(function(){var a=d.config.extraLocale;if(a){!a instanceof Array&&(a=[a]);var b=d.i18n._requireLocalization;d.i18n._requireLocalization=function(e,d,g,h){b(e,d,g,h);if(!g)for(g=0;g<a.length;g++)b(e,d,a[g],h)}}})();d.i18n._searchLocalePath=function(a,b,e){for(var a=d.i18n.normalizeLocale(a),f=a.split("-"),a=[],g=f.length;g>0;g--)a.push(f.slice(0,g).join("-"));a.push(!1);b&&a.reverse();for(b=a.length-1;b>=0;b--)if(e(a[b]||"ROOT"))break};d.i18n._preloadLocalizations=function(a,
b){function e(e){e=d.i18n.normalizeLocale(e);d.i18n._searchLocalePath(e,!0,function(e){for(var f=0;f<b.length;f++)if(b[f]==e)return d.require(a+"_"+e),!0;return!1})}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",!0,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{var d=b.byId(d),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(!1);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,k=j.clientWidth,l=j.clientHeight,m=
!b._isBodyLtr(),n=a||b.position(d),p=d.parentNode,j=function(a){return g<=6||g&&i?!1:b.style(a,"position").toLowerCase()=="fixed"};if(!j(d))for(;p;){p==e&&(p=c);var o=b.position(p),r=j(p);if(p==c){o.w=k;o.h=l;c==f&&g&&m&&(o.x+=c.offsetWidth-o.w);if(o.x<0||!g)o.x=0;if(o.y<0||!g)o.y=0}else{var q=b._getPadBorderExtents(p);o.w-=q.w;o.h-=q.h;o.x+=q.l;o.y+=q.t;var s=p.clientWidth,w=o.w-s;if(s>0&&w>0)o.w=s,o.x+=m&&(g||p.clientLeft>q.l)?w:0;s=p.clientHeight;w=o.h-s;if(s>0&&w>0)o.h=s}if(r){if(o.y<0)o.h+=o.y,
o.y=0;if(o.x<0)o.w+=o.x,o.x=0;if(o.y+o.h>l)o.h=l-o.y;if(o.x+o.w>k)o.w=k-o.x}var t=n.x-o.x,z=n.y-Math.max(o.y,0),B=t+n.w-o.w,G=z+n.h-o.h;if(B*t>0){var C=Math[t<0?"max":"min"](t,B);if(m&&(g==8&&!i||g>=9))C=-C;n.x+=p.scrollLeft;p.scrollLeft+=C;n.x-=p.scrollLeft}G*z>0&&(n.y+=p.scrollTop,p.scrollTop+=Math[z<0?"max":"min"](z,G),n.y-=p.scrollTop);p=p!=c&&!r&&p.parentNode}}}catch(A){console.error("scrollIntoView: "+A),d.scrollIntoView(!1)}};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 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){this._hash[a]&&(delete this._hash[a],this.length--)},forEach:function(a,c){var c=c||b.global,e=0,d;for(d in this._hash)a.call(c,this._hash[d],e++,this._hash);return this},filter:function(a,
c){var c=c||b.global,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 b=new d.WidgetSet,e,f;for(e in this._hash)f=this._hash[e],f.declaredClass==a&&b.add(f);return b},toArray:function(){var a=[],b;for(b in this._hash)a.push(this._hash[b]);return a},map:function(a,c){return b.map(this.toArray(),a,c)},every:function(a,c){var c=c||b.global,e=0,d;for(d in this._hash)if(!a.call(c,
this._hash[d],e++,this._hash))return!1;return!0},some:function(a,c){var c=c||b.global,e=0,d;for(d in this._hash)if(a.call(c,this._hash[d],e++,this._hash))return!0;return!1}});(function(){d.registry=new d.WidgetSet;var a=d.registry._hash,c=b.attr,e=b.hasAttr,f=b.style;d.byId=function(b){return typeof b=="string"?a[b]:b};var g={};d.getUniqueId=function(b){var c;do c=b+"_"+(b in g?++g[b]:g[b]=0);while(a[c]);return d._scopeName=="dijit"?c:d._scopeName+"_"+c};d.findWidgets=function(b){function c(b){for(b=
b.firstChild;b;b=b.nextSibling)if(b.nodeType==1){var d=b.getAttribute("widgetId");d?(d=a[d])&&e.push(d):c(b)}}var e=[];c(b);return e};d._destroyAll=function(){d._curFocus=null;d._prevFocus=null;d._activeStack=[];b.forEach(d.findWidgets(b.body()),function(a){a._destroyed||(a.destroyRecursive?a.destroyRecursive():a.destroy&&a.destroy())})};b.isIE&&b.addOnWindowUnload(function(){d._destroyAll()});d.byNode=function(b){return a[b.getAttribute("widgetId")]};d.getEnclosingWidget=function(b){for(;b;){var c=
b.getAttribute&&b.getAttribute("widgetId");if(c)return a[c];b=b.parentNode}return null};var h=d._isElementShown=function(a){var b=f(a);return b.visibility!="hidden"&&b.visibility!="collapsed"&&b.display!="none"&&c(a,"type")!="hidden"};d.hasDefaultTabStop=function(a){switch(a.nodeName.toLowerCase()){case "a":return e(a,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return!0;case "iframe":var b;try{var c=a.contentDocument;if("designMode"in c&&c.designMode==
"on")return!0;b=c.body}catch(d){try{b=a.contentWindow.document.body}catch(f){return!1}}return b.contentEditable=="true"||b.firstChild&&b.firstChild.contentEditable=="true";default:return a.contentEditable=="true"}};var i=d.isTabNavigable=function(a){return c(a,"disabled")?!1:e(a,"tabIndex")?c(a,"tabIndex")>=0:d.hasDefaultTabStop(a)};d._getTabNavigable=function(a){function d(a){return a&&a.tagName.toLowerCase()=="input"&&a.type&&a.type.toLowerCase()=="radio"&&a.name&&a.name.toLowerCase()}var f,g,n,
p,o,r,q={},s=function(a){b.query("> *",a).forEach(function(a){if(!(b.isIE&&a.scopeName!=="HTML")&&h(a)){if(i(a)){var j=c(a,"tabIndex");if(!e(a,"tabIndex")||j==0)f||(f=a),g=a;else if(j>0){if(!n||j<p)p=j,n=a;if(!o||j>=r)r=j,o=a}j=d(a);b.attr(a,"checked")&&j&&(q[j]=a)}a.nodeName.toUpperCase()!="SELECT"&&s(a)}})};h(a)&&s(a);return{first:q[d(f)]||f,last:q[d(g)]||g,lowest:q[d(n)]||n,highest:q[d(o)]||o}};d.getFirstInTabbingOrder=function(a){a=d._getTabNavigable(b.byId(a));return a.lowest?a.lowest:a.first};
d.getLastInTabbingOrder=function(a){a=d._getTabNavigable(b.byId(a));return a.last?a.last:a.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(b){return this[b]},set:function(b,a){if(typeof b==="object"){for(var c in b)this.set(c,b[c]);return this}c=this[b];this[b]=a;this._watchCallbacks&&this._watchCallbacks(b,c,a);return this},watch:function(d,a){var c=this._watchCallbacks;if(!c)var e=this,c=this._watchCallbacks=function(a,b,d,f){var k=function(c){if(c)for(var c=c.slice(),f=0,j=c.length;f<j;f++)try{c[f].call(e,
a,b,d)}catch(k){console.error(k)}};k(c["_"+a]);f||k(c["*"])};!a&&typeof d==="function"?(a=d,d="*"):d="_"+d;var f=c[d];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,b){this.create(a,b)},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();var e=this.srcNodeRef;e&&e.parentNode&&this.domNode!==e&&e.parentNode.replaceChild(this.domNode,e)}this.domNode&&this.domNode.setAttribute("widgetId",
this.id);this.postCreate();this.srcNodeRef&&!this.srcNodeRef.parentNode&&delete this.srcNodeRef;this._created=!0},_applyAttributes:function(){var a=function(a,b){(b.params&&a in b.params||b[a])&&b.set(a,b[a])},c;for(c in this.attributeMap)a(c,this);b.forEach(this._getSetterAttributes(),function(b){b in this.attributeMap||a(b,this)},this)},_getSetterAttributes:function(){var a=this.constructor;if(!a._setterAttrs){var c=a._setterAttrs=[],e,d=a.prototype,g;for(g in d)b.isFunction(d[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(a){return a+"Rtl"})));b.addClass(this.domNode,a)}},postCreate:function(){},startup:function(){this._started=!0},destroyRecursive:function(a){this._beingDestroyed=!0;this.destroyDescendants(a);this.destroy(a)},
destroy:function(a){this._beingDestroyed=!0;this.uninitialize();var c=b.forEach,e=b.unsubscribe;c(this._connects,function(a){c(a,b.disconnect)});c(this._subscribes,function(a){e(a)});c(this._supportingWidgets||[],function(a){a.destroyRecursive?a.destroyRecursive():a.destroy&&a.destroy()});this.destroyRendering(a);d.registry.remove(this.id);this._destroyed=!0},destroyRendering:function(a){this.bgIframe&&(this.bgIframe.destroy(a),delete this.bgIframe);this.domNode&&(a?b.removeAttr(this.domNode,"widgetId"):
b.destroy(this.domNode),delete this.domNode);this.srcNodeRef&&(a||b.destroy(this.srcNodeRef),delete this.srcNodeRef)},destroyDescendants:function(a){b.forEach(this.getChildren(),function(b){b.destroyRecursive&&b.destroyRecursive(a)})},uninitialize:function(){return!1},_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"];b.isObject(a)?b.style(c,a):c.style.cssText?
c.style.cssText+="; "+a: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(e){var d=this[e.node||e||"domNode"];switch(e.type||"attribute"){case "attribute":b.isFunction(c)&&(c=b.hitch(this,c));e=e.attribute?e.attribute:/^on[A-Z][a-zA-Z]*$/.test(a)?a.toLowerCase():a;b.attr(d,e,c);break;case "innerText":d.innerHTML="";d.appendChild(b.doc.createTextNode(c));break;case "innerHTML":d.innerHTML=c;break;case "class":b.replaceClass(d,
c,this[a])}},this)},get:function(a){var b=this._getAttrNames(a);return this[b.g]?this[b.g]():this[a]},set:function(a,b){if(typeof a==="object"){for(var e in a)this.set(e,a[e]);return this}e=this._getAttrNames(a);if(this[e.s])var d=this[e.s].apply(this,Array.prototype.slice.call(arguments,1));else a in this.attributeMap&&this._attrToDom(a,b),this._set(a,b);return d||this},_attrPairNames:{},_getAttrNames:function(a){var b=this._attrPairNames;if(b[a])return b[a];var e=a.charAt(0).toUpperCase()+a.substr(1);
return b[a]={n:a+"Node",s:"_set"+e+"Attr",g:"_get"+e+"Attr"}},_set:function(a,b){var e=this[a];this[a]=b;this._watchCallbacks&&this._created&&b!==e&&this._watchCallbacks(a,e,b)},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);break}},subscribe:function(a,c){var e=b.subscribe(a,this,c);this._subscribes.push(e);return e},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);break}},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:"")if(a=a.toLowerCase(),a=="textarea"||a=="input"&&(!f.type||f.type.toLowerCase()=="text"))return e={start:f.selectionStart,end:f.selectionEnd,node:f,pRange:!0},
{isCollapsed:e.end<=e.start,mark:e};a={isCollapsed:!0};if(e.rangeCount)a.mark=e.getRangeAt(0).cloneRange()}else c=e.getRangeAt(0),a={isCollapsed:!1,mark:c.cloneRange()}}else if(e){a=f?f.tagName:"";a=a.toLowerCase();if(f&&a&&(a=="button"||a=="textarea"||a=="input"))return e.type&&e.type.toLowerCase()=="none"?{isCollapsed:!0,mark:null}:(c=e.createRange(),{isCollapsed:c.text&&c.text.length?!1:!0,mark:{range:c,pRange:!0}});a={};try{c=e.createRange(),a.isCollapsed=!(e.type=="Text"?c.htmlText.length:c.length)}catch(g){return a.isCollapsed=
!0,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=!0,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)(c=b.global.getSelection())&&c.removeAllRanges?a.pRange?(c=a.node,c.selectionStart=a.start,c.selectionEnd=a.end):(c.removeAllRanges(),c.addRange(a)):console.warn("No idea how to restore selection for this browser!");
else if(c.selection&&a){var e;a.pRange?e=a.range:b.isArray(a)?(e=c.body.createControlRange(),b.forEach(a,function(a){e.addElement(a)})):(e=c.body.createTextRange(),e.moveToBookmark(a));e.select()}},getFocus:function(a,c){var e=!d._curFocus||a&&b.isDescendant(d._curFocus,a.domNode)?d._prevFocus:d._curFocus;return{node:e,bookmark:e==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,f=e?e.isCollapsed:
!1;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(a){d._justMouseDowned=!0;setTimeout(function(){d._justMouseDowned=!1},
0);if(!b.isIE||!a||!(a.srcElement&&a.srcElement.parentNode==null))d._onTouchNode(c||a.target||a.srcElement,"mouse")},f=b.isIE?a.document.documentElement:a.document;if(f)if(b.isIE){a.document.body.attachEvent("onmousedown",e);var g=function(a){a.srcElement.tagName.toLowerCase()!="#document"&&d.isTabNavigable(a.srcElement)?d._onFocusNode(c||a.srcElement):d._onTouchNode(c||a.srcElement)};f.attachEvent("onactivate",g);var h=function(a){d._onBlurNode(c||a.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,!0);var i=function(a){d._onFocusNode(c||a.target)};f.addEventListener("focus",i,!0);var j=function(a){d._onBlurNode(c||a.target)};f.addEventListener("blur",j,!0);return function(){f.body.removeEventListener("mousedown",e,!0);f.removeEventListener("focus",i,!0);f.removeEventListener("blur",j,!0);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){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&&a.nodeType!=9&&(d._onTouchNode(a),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=!1,g.set("focused",!1),g._hasBeenBlurred=!0,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=!0,g.set("focused",!0),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(b){this.pairs=[];this.returnWrappers=b||!1};b.extend(b.AdapterRegistry,{register:function(b,a,c,e,f){this.pairs[f?"unshift":"push"]([b,a,c,e])},match:function(){for(var b=0;b<this.pairs.length;b++){var a=this.pairs[b];if(a[1].apply(this,arguments))return a[3]||this.returnWrappers?a[2]:a[2].apply(this,arguments)}throw Error("No match found");},unregister:function(b){for(var a=0;a<this.pairs.length;a++)if(this.pairs[a][0]==
b)return this.pairs.splice(a,1),!0;return!1}});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(a){var b={corner:a,pos:{x:c.x,y:c.y}};f&&(b.pos.x+=a.charAt(1)=="L"?f.x:-f.x,b.pos.y+=a.charAt(0)=="T"?f.y:-f.y);return b});return d._place(a,e)};d._place=function(a,c,e,d){var g=b.window.getBox();(!a.parentNode||String(a.parentNode.tagName).toLowerCase()!="body")&&b.body().appendChild(a);var h=null;b.some(c,
function(c){var i=c.corner,l=c.pos,m=0,n={w:i.charAt(1)=="L"?g.l+g.w-l.x:l.x-g.l,h:i.charAt(1)=="T"?g.t+g.h-l.y:l.y-g.t};e&&(m=e(a,c.aroundCorner,i,n,d),m=typeof m=="undefined"?0:m);var p=a.style,o=p.display,r=p.visibility;p.visibility="hidden";p.display="";var q=b.marginBox(a);p.display=o;p.visibility=r;p=Math.max(g.l,i.charAt(1)=="L"?l.x:l.x-q.w);o=Math.max(g.t,i.charAt(0)=="T"?l.y:l.y-q.h);r=Math.min(g.l+g.w,i.charAt(1)=="L"?p+q.w:l.x);l=Math.min(g.t+g.h,i.charAt(0)=="T"?o+q.h:l.y);r-=p;l-=o;m+=
q.w-r+(q.h-l);if(h==null||m<h.overflow)h={corner:i,aroundCorner:c.aroundCorner,x:p,y:o,w:r,h:l,overflow:m,spaceAvailable:n};return!m});h.overflow&&e&&e(a,h.aroundCorner,h.corner,h.spaceAvailable,d);var c=b._isBodyLtr(),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,!0);return d._placeOnScreenAroundRect(a,c.x,c.y,c.w,c.h,e,f)};d.placeOnScreenAroundRectangle=function(a,b,e,f){return d._placeOnScreenAroundRect(a,
b.x,b.y,b.width,b.height,e,f)};d._placeOnScreenAroundRect=function(a,b,e,f,g,h,i){var j=[],k;for(k in h)j.push({aroundCorner:k,corner:h[k],pos:{x:b+(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,b){return typeof b=="object"&&typeof b.offsetWidth!="undefined"&&typeof b.offsetHeight!="undefined"},d.placeOnScreenAroundNode);d.placementRegistry.register("rect",function(a,b){return typeof b==
"object"&&"x"in b&&"y"in b&&"width"in b&&"height"in b},d.placeOnScreenAroundRectangle);d.placeOnScreenAroundElement=function(a,b,e,f){return d.placementRegistry.match.apply(d.placementRegistry,arguments)};d.getPopupAroundAlignment=function(a,c){var e={};b.forEach(a,function(a){switch(a){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;default:e[c?
"TL":"TR"]=c?"BL":"BR",e[c?"TR":"TL"]=c?"BR":"BL"}});return e};return d});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]=!0;var h="",i;for(i in a)a[i]&&(h+=i+" ");d.className=b.trim(d.className+" "+h);b._loaders.unshift(function(){if(!b._isBodyLtr()){var a=
"dj_rtl dijitRtl "+h.replace(/ /g,"-rtl ");d.className=b.trim(d.className+" "+a)}})})();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,d,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,d),this._fireEventAndReload(),this._evt=b.mixin({faux:!0},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){j.charOrCode==c.charOrCode&&(c.ctrlKey===void 0||c.ctrlKey==j.ctrlKey)&&(c.altKey===void 0||c.altKey==j.altKey)&&(c.metaKey===void 0||c.metaKey==(j.metaKey||!1))&&(c.shiftKey===void 0||c.shiftKey==j.shiftKey)?(b.stopEvent(j),d.typematic.trigger(j,e,a,
f,c,g,h,i)):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(i){b.stopEvent(i);d.typematic.trigger(i,c,a,e,a,f,g,h)}),i(a,"mouseup",this,function(a){b.stopEvent(a);d.typematic.stop()}),i(a,"mouseout",this,function(a){b.stopEvent(a);d.typematic.stop()}),i(a,"mousemove",this,function(a){a.preventDefault()}),i(a,"dblclick",this,function(i){b.stopEvent(i);
b.isIE&&(d.typematic.trigger(i,c,a,e,a,f,g,h),setTimeout(b.hitch(this,d.typematic.stop),50))})]},addListener:function(a,b,e,d,g,h,i,j){return this.addKeyListener(b,e,d,g,h,i,j).concat(this.addMouseListener(a,d,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");b.isIE?a.outerHTML="":b.body().removeChild(a)}}};(b.isIE||b.isMoz)&&b._loaders.unshift(d.wai.onload);b.mixin(d,{hasWaiRole:function(a,b){var e=this.getWaiRole(a);return b?e.indexOf(b)>-1:e.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");e&&(c?(e=b.trim((" "+e+" ").replace(" "+c+" "," ")),b.attr(a,"role",e)):a.removeAttribute("role"))},hasWaiState:function(a,
b){return a.hasAttribute?a.hasAttribute("aria-"+b):!!a.getAttribute("aria-"+b)},getWaiState:function(a,b){return a.getAttribute("aria-"+b)||""},setWaiState:function(a,b,e){a.setAttribute("aria-"+b,e)},removeWaiState:function(a,b){a.removeAttribute("aria-"+b)}});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",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,b=a.length-1;b>0&&a[b].parent===a[b-1].widget;b--);return a[b]},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)&&!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(c){if(c.charOrCode==b.keys.ESCAPE&&a.onCancel)b.stopEvent(c),a.onCancel();else if(c.charOrCode===b.keys.TAB&&(b.stopEvent(c),(c=this.getTopPopup())&&c.onCancel))c.onCancel()}));e.onCancel&&
g.push(b.connect(e,"onCancel",a.onCancel));g.push(b.connect(e,e.onExecute?"onExecute":"onChange",this,function(){var a=this.getTopPopup();if(a&&a.onExecute)a.onExecute()}));c.push({widget:e,parent:a.parent,onExecute:a.onExecute,onCancel:a.onCancel,onClose:a.onClose,handlers:g});if(e.onOpen)e.onOpen(f);return f},close:function(a){for(var c=this._stack;a&&b.some(c,function(b){return b.widget==a})||!a&&c.length;){var e=c.pop(),d=e.widget,g=e.onClose;if(d.onClose)d.onClose();b.forEach(e.handlers,b.disconnect);
d&&d.domNode&&this.hide(d);g&&g()}}};d._frames=new function(){var a=[];this.pop=function(){var c;a.length?(c=a.pop(),c.style.display=""):(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)):(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(b){b.style.display="none";a.push(b)}};d.BackgroundIframe=function(a){if(!a.id)throw Error("no id");if(b.isIE||b.isMoz){var c=this.iframe=d._frames.pop();a.appendChild(c);b.isIE<7||b.isQuirks?(this.resize(a),this._conn=b.connect(a,"onresize",this,function(){this.resize(a)})):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;this.iframe&&(d._frames.push(this.iframe),delete this.iframe)}});return d.popup});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".split(","),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(a){d._lastKeyDownNode=a.srcElement};b.doc.attachEvent("onkeydown",a);b.addOnWindowUnload(function(){b.doc.detachEvent("onkeydown",a)})}():b.doc.addEventListener("keydown",function(a){d._lastKeyDownNode=a.target},!0);(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(a,c){this._deferredConnects=b.clone(this._deferredConnects);for(var e in this.attributeMap)delete this._deferredConnects[e];for(e in this._deferredConnects)this[e]!==d._connectOnUseEventHandler&&delete this._deferredConnects[e];this.inherited(arguments);if(this.domNode)for(e in this.params)this._onConnect(e)},_onConnect:function(a){a in
this._deferredConnects&&(this.connect(this[this._deferredConnects[a]||"domNode"],a.toLowerCase(),a),delete this._deferredConnects[a])},focused:!1,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,
c){if(b.config.isDebug){var e=arguments.callee._ach||(arguments.callee._ach={}),d=(arguments.callee.caller||"unknown caller").toString();e[d]||(b.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+d,"","2.0"),e[d]=!0)}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"&&b.indexOf(this.nodesWithKeyClick,a.nodeName.toLowerCase())==-1){var h=b.hitch(this,e);g.push(f(a,"onkeydown",this,function(c){if((c.keyCode==b.keys.ENTER||c.keyCode==b.keys.SPACE)&&!c.ctrlKey&&!c.shiftKey&&!c.altKey&&!c.metaKey)d._lastKeyDownNode=c.target,"openDropDown"in this&&a==this._buttonNode||c.preventDefault()}),f(a,"onkeyup",this,function(a){if((a.keyCode==b.keys.ENTER||a.keyCode==b.keys.SPACE)&&a.target==d._lastKeyDownNode&&!a.ctrlKey&&!a.shiftKey&&!a.altKey&&!a.metaKey)return d._lastKeyDownNode=
null,h(a)}))}return g},_onShow:function(){this.onShow()},onShow:function(){},onHide:function(){},onClose:function(){return!0}})})();return d._Widget});
define("dojo/string",["dojo"],function(b){b.getObject("string",!0,b);b.string.rep=function(b,a){if(a<=0||!b)return"";for(var c=[];;){a&1&&c.push(b);if(!(a>>=1))break;b+=b}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(a){return a};return d.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(d,g,h){d=b.getObject(g,!1,a);h&&
(d=b.getObject(h,!1,e).call(e,d,g));return c(d,g).toString()})};b.string.trim=String.prototype.trim?b.trim:function(b){for(var b=b.replace(/^\s+/,""),a=b.length-1;a>=0;a--)if(/\S/.test(b.charAt(a))){b=b.substring(0,a+1);break}return b};return b.string});
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;var f=f.toString(),g=e;e!=void 0&&!b.isString(e)&&(g="value"in e?e.value:void 0);e=e&&e.sanitize?!0:!1;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=void 0;if(b.isFunction(require)&&b.isString(a))try{var h=(a?a.replace(/\./g,"/")+"/":"")+c,g=require("text!"+h)}catch(i){}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){var a=a.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,""),b=a.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);b&&(a=b[1])}else a="";return a};return b.cache});
define("dijit/_CssStateMixin",["dojo","dijit"],function(b,d){b.declare("dijit._CssStateMixin",[],{cssStateNodes:{},hovering:!1,active:!1,_applyAttributes:function(){this.inherited(arguments);b.forEach(["onmouseenter","onmouseleave","onmousedown"],function(a){this.connect(this.domNode,a,"_cssMouseEvent")},this);b.forEach("disabled,readOnly,checked,selected,focused,state,hovering,active".split(","),function(a){this.watch(a,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",!0);this._set("active",this._mouseDown);break;case "mouseleave":case "mouseout":this._set("hovering",!1);this._set("active",!1);break;case "mousedown":this._set("active",!0);this._mouseDown=!0;var c=this.connect(b.body(),"onmouseup",function(){this._mouseDown=!1;this._set("active",!1);this.disconnect(c)})}},_setStateClass:function(){function a(a){c=
c.concat(b.map(c,function(b){return b+a}),"dijit"+a)}var c=this.baseClass.split(" ");this.isLeftToRight()||a("Rtl");this.checked&&a("Checked");this.state&&a(this.state);this.selected&&a("Selected");this.disabled?a("Disabled"):this.readOnly?a("ReadOnly"):this.active?a("Active"):this.hovering&&a("Hover");this._focused&&a("Focused");var e=this.stateNode||this.domNode,d={};b.forEach(e.className.split(" "),function(a){d[a]=!0});"_stateClasses"in this&&b.forEach(this._stateClasses,function(a){delete d[a]});
b.forEach(c,function(a){d[a]=!0});var g=[],h;for(h in d)g.push(h);e.className=g.join(" ");this._stateClasses=c},_trackMouseState:function(a,c){function e(){var e="disabled"in i&&i.disabled||"readonly"in i&&i.readonly;b.toggleClass(a,c+"Hover",d&&!g&&!e);b.toggleClass(a,c+"Active",g&&!e);b.toggleClass(a,c+"Focused",h&&!e)}var d=!1,g=!1,h=!1,i=this,j=b.hitch(this,"connect",a);j("onmouseenter",function(){d=!0;e()});j("onmouseleave",function(){g=d=!1;e()});j("onmousedown",function(){g=!0;e()});j("onmouseup",
function(){g=!1;e()});j("onfocus",function(){h=!0;e()});j("onblur",function(){h=!1;e()});this.watch("disabled",e);this.watch("readOnly",e)}});return d._CssStateMixin});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/form/nls/validate",{root:{invalidMessage:"The value entered is not valid.",missingMessage:"This value is required.",rangeMessage:"This value is out of range."},zh:!0,"zh-tw":!0,tr:!0,th:!0,sv:!0,sl:!0,sk:!0,ru:!0,ro:!0,pt:!0,"pt-pt":!0,pl:!0,nl:!0,nb:!0,ko:!0,kk:!0,ja:!0,it:!0,hu:!0,he:!0,fr:!0,fi:!0,es:!0,el:!0,de:!0,da:!0,cs:!0,ca:!0,ar:!0});
define("orion/PageUtil",[],function(){return{matchResourceParameters:function(b){var b=b||window.location.toString(),d={resource:""},a=b.indexOf("#");if(a!==-1&&(b=b.substring(a+1),b.length!==0)){b=b.split(",");d.resource=decodeURIComponent(b[0]);for(a=1;a<b.length;a++){var c=b[a].split("="),e=decodeURIComponent(c[0]),c=c.length===2?decodeURIComponent(c[1]):null;c!==null&&e!=="resource"&&(d[e]=c)}}return d}}});
define("orion/navigationUtils",["dojo"],function(b){function d(c,e,d,g){!a&&c&&(d?(c.push({domNode:e,widget:d,onClick:g}),b.attr(d,"tabIndex",-1)):(c.push({domNode:e}),b.attr(e,"tabIndex",-1),b.style(e,"outline","none")))}var a=navigator.userAgent.indexOf("iPad")!==-1;return{addNavGrid:function(a,b,f,g,h){a&&(a=a.getGridNavHolder(b,!0))&&d(a,f,g,h)},generateNavGrid:d,removeNavGrid:function(a,b){if(a)for(var d=0;d<a.length;d++)if(a[d].domNode===b){a.splice(d,1);break}}}});
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:!0,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 d=this.getChildren();if(d&&d.length>=c)e=d[c-1].domNode,c="after"}b.place(a.domNode,e,c);this._started&&!a._started&&a.startup()},removeChild:function(a){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(b){b.destroyRecursive(a)})},_getSiblingOfChild:function(a,b){var e=a.domNode,f=b>0?"nextSibling":"previousSibling";do e=e[f];while(e&&(e.nodeType!=1||!d.byNode(e)));return e&&d.byNode(e)},getIndexOfChild:function(a){return b.indexOf(this.getChildren(),a)},startup:function(){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={},d=b.hitch(this,this.focusPrev),g=b.hitch(this,this.focusNext);b.forEach(a,function(a){e[a]=d});b.forEach(c,function(a){e[a]=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,b){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),!0)},focusChild:function(a,b){this.focusedChild&&a!==this.focusedChild&&this._onChildBlur(this.focusedChild);a.set("tabIndex",this.tabIndex);a.focus(b?"end":"start");this._set("focusedChild",a)},_startupChild:function(a){a.set("tabIndex","-1");this.connect(a,"_onFocus",function(){a.set("tabIndex",this.tabIndex)});this.connect(a,"_onBlur",function(){a.set("tabIndex","-1")})},_onContainerFocus:function(a){a.target===
this.domNode&&(this.focusFirstChild(),b.attr(this.domNode,"tabIndex","-1"))},_onBlur:function(a){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];c&&(c(),b.stopEvent(a))}},_onChildBlur:function(){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1)},_getLastFocusableChild:function(){return this._getNextFocusableChild(null,-1)},_getNextFocusableChild:function(a,
b){a&&(a=this._getSiblingOfChild(a,b));for(var e=this.getChildren(),d=0;d<e.length;d++){a||(a=e[b>0?0:e.length-1]);if(a.isFocusable())return a;a=this._getSiblingOfChild(a,b)}return null}});return d._KeyNavContainer});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("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 b=this.domNode;do b=b[a+"Sibling"];while(b&&b.nodeType!=1);return b&&d.byNode(b)},getPreviousSibling:function(){return this._getSibling("previous")},getNextSibling:function(){return this._getSibling("next")},getIndexInParent:function(){var a=this.getParent();return!a||!a.getIndexOfChild?
-1:a.getIndexOfChild(this)}});return d._Contained});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("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/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=!1;return b.every(b.map(this.getDescendants(),function(c){c._hasBeenBlurred=!0;var e=c.disabled||!c.validate||c.validate();!e&&!a&&(b.window.scrollIntoView(c.containerNode||c.domNode),c.focus(),a=!0);return e}),function(a){return a})},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(a){a.name&&(c[a.name]||(c[a.name]=[])).push(a)});for(var e in c)if(c.hasOwnProperty(e)){var d=c[e],g=b.getObject(e,!1,a);g!==void 0&&(b.isArray(g)||(g=[g]),typeof d[0].checked=="boolean"?b.forEach(d,function(a){a.set("value",b.indexOf(g,a.value)!=-1)}):d[0].multiple?d[0].set("value",g):b.forEach(d,function(a,b){a.set("value",
g[b])}))}},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 d=c.get("value");typeof c.checked=="boolean"?/Radio/.test(c.declaredClass)?d!==!1?b.setObject(e,d,a):(d=b.getObject(e,!1,a),d===void 0&&b.setObject(e,null,a)):(c=b.getObject(e,!1,a),c||(c=[],b.setObject(e,c,a)),d!==!1&&c.push(d)):
(c=b.getObject(e,!1,a),typeof c!="undefined"?b.isArray(c)?c.push(d):b.setObject(e,[c,d],a):b.setObject(e,d,a))}});return a},isValid:function(){return this.state==""},onValidStateChange:function(){},_getState:function(){var a=b.map(this._descendants,function(a){return a.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(a,b){c[a]=b}:b.hitch(this,"_set");a("value",this.get("value"));a("state",this._getState());var e=this._childConnections=[],d=this._childWatches=[];b.forEach(b.filter(this._descendants,function(a){return a.validate}),function(a){b.forEach(["state","disabled"],function(b){d.push(a.watch(b,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(a){return a.onChange}),function(a){e.push(c.connect(a,"onChange",g));d.push(a.watch("disabled",g))})},startup:function(){this.inherited(arguments);this.connectChildren(!0);this.watch("state",function(a,b,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("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/nls/messages",["orion/i18n!orion/widgets/nls/messages"],function(b){var d={root:!0};Object.keys(b).forEach(function(a){typeof d[a]==="undefined"&&(d[a]=b[a])});return d});
define("orion/widgets/nls/root/messages",{"no input":"no input","no output":"no output","Choose a Folder":"Choose a Folder",OK:"OK",Profile:"Profile","Sign out":"Sign out","N/A":"N/A","logged in since ":"logged in since ","Sign in":"Sign in","Authentication required!":"Authentication required!","Name:":"Name:","Plug-ins":"Plug-ins"," <No available services or timed out, check URL and try reloading>":" <No available services or timed out, check URL and try reloading>",Properties:"Properties"," (Service Id: ":" (Service Id: ",
Services:"Services","SFTP Transfer":"SFTP Transfer","Remote host:":"Remote host:","Remote path:":"Remote path:","User name:":"User name:","Password:":"Password:","Start Transfer":"Start Transfer","Location:":"Location:","orion.sftpConnections":"orion.sftpConnections","Drag a File or Zip here":"Drag a File or Zip here","or if you prefer":"or if you prefer","Browse...":"Browse...","Import a file or zip":"Import a file or zip","Missing required argument: searchRenderer":"Missing required argument: searchRenderer",
"Missing required argument: favService":"Missing required argument: favService","Find File Named":"Find File Named","Type the name of a file to open (? = any character, * = any string):":"Type the name of a file to open (? = any character, * = any string):",Search:"Search","Populating favorites&#x2026;":"Populating favorites&#x2026;",Favorite:"Favorite","Searching&#x2026;":"Searching&#x2026;",name:"name","orion.widgets.UserMenu":"orion.widgets.UserMenu",test:"test","Sign Out":"Sign Out","Sign Out ":"Sign Out ",
"</a>":"</a>",">":">","Sign In To ":"Sign In To ","Sign In":"Sign In",Help:"Help","Keyboard Shortcuts":"Keyboard Shortcuts",Settings:"Settings","View profile of ":"View profile of ",Profiles:"Profiles","Information Needed":"Information Needed",Cancel:"Cancel","Sorry, the Console is not supported on your browser.":"Sorry, the Console is not supported on your browser."});
define("orion/operations/nls/messages",["orion/i18n!orion/operations/nls/messages"],function(b){var d={root:!0};Object.keys(b).forEach(function(a){typeof d[a]==="undefined"&&(d[a]=b[a])});return d});
define("orion/operations/nls/root/messages",{More:"More","No Matching OperationService for location:":"No Matching OperationService for location:","No operations services registered.":"No operations services registered.","could not find toolbar ":"could not find toolbar ","Remove Completed":"Remove Completed","Remove all completed operations":"Remove all completed operations",Remove:"Remove","Remove operations from the operations list.":"Remove operations from the operations list.",Cancel:"Cancel",
"Cancel operations from the operations list.":"Cancel operations from the operations list.","Operation resulted in a warning.":"Operation resulted in a warning.","Operation resulted in an error.":"Operation resulted in an error.","Operation is running.":"Operation is running.","Operation is canceled.":"Operation is canceled.","Operation failed.":"Operation failed.",Name:"Name",Actions:"Actions",Status:"Status",Scheduled:"Scheduled"});
define("orion/navigate/nls/messages",["orion/i18n!orion/navigate/nls/messages"],function(b){var d={root:!0};Object.keys(b).forEach(function(a){typeof d[a]==="undefined"&&(d[a]=b[a])});return d});
define("orion/navigate/nls/root/messages",{"Click one of the tasks below to create an Orion folder.  You can upload, import, or generate files.":"Click one of the tasks below to create an Orion folder.  You can upload, import, or generate files.","Toggle Left Pane":"Toggle Left Pane","Open or close the left pane":"Open or close the left pane",Navigator:"Navigator","Strings Xtrnalizr":"Strings Xtrnalizr","Externalize Strings from JavaScript files in this folder":"Externalize Strings from JavaScript files in this folder",
"Choose a Folder":"Choose a Folder","could not find toolbar ":"could not find toolbar ","Copy of ${0}":"Copy of ${0}","Enter a new name for '${0}'":"Enter a new name for '${0}'","Choose folder...":"Choose folder...",Rename:"Rename","Rename the selected files or folders":"Rename the selected files or folders",Delete:"Delete","Unknown item":"Unknown item","Make Favorite":"Make Favorite","Delete the selected files or folders":"Delete the selected files or folders","Are you sure you want to delete these ${0} items?":"Are you sure you want to delete these ${0} items?",
"Are you sure you want to delete '${0}'?":"Are you sure you want to delete '${0}'?","Are you sure you want to delete '${0}' from the favorites?":"Are you sure you want to delete '${0}' from the favorites?","Are you sure you want to delete these ${0} favorites?":"Are you sure you want to delete these ${0} favorites?","You can create favorites by selecting any file or folder in the navigator and choosing ${0} from the More menu.":"You can create favorites by selecting any file or folder in the navigator and choosing ${0} from the More menu.",
"Export as zip":"Export as zip","Create a zip file of the folder contents and download it":"Create a zip file of the folder contents and download it","New File":"New File","Create a new file":"Create a new file","New Folder":"New Folder","Folder name:":"Folder name:","Create a new folder":"Create a new folder","Creating folder":"Creating folder",Folder:"Folder","Create an empty folder":"Create an empty folder","Create an empty folder on the Orion server.  You can import, upload, or create content in the editor.":"Create an empty folder on the Orion server.  You can import, upload, or create content in the editor.",
"Sample HTML5 Site":"Sample HTML5 Site","Generate a sample":"Generate a sample",'Generate an HTML5 "Hello World" website, including JavaScript, HTML, and CSS files.':'Generate an HTML5 "Hello World" website, including JavaScript, HTML, and CSS files.',"Creating a folder for ${0}":"Creating a folder for ${0}","SFTP Import":"SFTP Import","Import content from SFTP":"Import content from SFTP","Import content from an SFTP location into an Orion folder.  You will be prompted for the SFTP location and credentials.":"Import content from an SFTP location into an Orion folder.  You will be prompted for the SFTP location and credentials.",
"Imported Content":"Imported Content","Upload a Zip":"Upload a Zip","Upload content from a local zip file":"Upload content from a local zip file","Upload content from a local zip file into an Orion folder.  You will be prompted for the local zip file.":"Upload content from a local zip file into an Orion folder.  You will be prompted for the local zip file.","Uploaded Content":"Uploaded Content","Creating an upload folder for ":"Creating an upload folder for ","Clone Git Repository":"Clone Git Repository",
"Clone a git repository":"Clone a git repository","Go to the Orion repositories page to provide a git repository URL.  Once the repository is created, it will appear in the Navigator.":"Go to the Orion repositories page to provide a git repository URL.  Once the repository is created, it will appear in the Navigator.","Link to Server":"Link to Server","Link to existing content on the server":"Link to existing content on the server","Create a folder that links to an existing folder on the server.":"Create a folder that links to an existing folder on the server.",
"Server path:":"Server path:","The name and server location were not specified.":"The name and server location were not specified.","Go Up":"Go Up","Move up to the parent folder":"Move up to the parent folder","Import local file...":"Import local file...","Copy files and folders from your local file system":"Copy files and folders from your local file system","SFTP from...":"SFTP from...","Copy files and folders from a specified SFTP connection":"Copy files and folders from a specified SFTP connection",
"Importing from ":"Importing from ","SFTP to...":"SFTP to...","Copy files and folders to a specified SFTP location":"Copy files and folders to a specified SFTP location","Exporting from ":"Exporting from ","Copy to":"Copy to","Move to":"Move to","Move files and folders to a new location":"Move files and folders to a new location","Copy Items":"Copy Items","Copy the selected items to the copy/paste buffer":"Copy the selected items to the copy/paste buffer","Paste Items":"Paste Items","Paste items from the copy/paste buffer":"Paste items from the copy/paste buffer",
"Cannot paste into the Workspace root":"Cannot paste into the Workspace root","Open With":"Open With","Loading ":"Loading ",New:"New","Click on an item to make a selection, then use this menu to see what actions are available.":"Click on an item to make a selection, then use this menu to see what actions are available.",Actions:"Actions"});
define("orion/search/nls/messages",["orion/i18n!orion/search/nls/messages"],function(b){var d={root:!0};Object.keys(b).forEach(function(a){typeof d[a]==="undefined"&&(d[a]=b[a])});return d});
define("orion/search/nls/root/messages",{"Find:":"Find:","Find With":"Find With","ReplaceWith:":"ReplaceWith:","Replace With":"Replace With","Show all":"Show all","Case sensitive":"Case sensitive","Wrap search":"Wrap search","Incremental search":"Incremental search","Whole Word":"Whole Word","Regular expression":"Regular expression","Find after replace":"Find after replace",Options:"Options","Find next match":"Find next match","Find previous match":"Find previous match",Replace:"Replace","Replace All":"Replace All",
"Not found":"Not found","Replacing all...":"Replacing all..."," matches":" matches","Replaced ":"Replaced ","Nothing replaced":"Nothing replaced","Search ":"Search ","Type a keyword or wild card to search in ":"Type a keyword or wild card to search in ","Search failed.":"Search failed.","No matches found for ":"No matches found for ","Searching...":"Searching...","Resource has been changed by others.":"Resource has been changed by others.","Failed to write file.":"Failed to write file.",Results:"Results",
"Files ${0} of ${1} matching ${2}":"Files ${0} of ${1} matching ${2}","Replace ${0} with ${1} for files ${2} of ${3}":"Replace ${0} with ${1} for files ${2} of ${3}",Location:"Location","Click to compare":"Click to compare",'Search again in this folder with "${0}"':'Search again in this folder with "${0}"',"Files replaced":"Files replaced",Status:"Status","${0} out of ${1}  matches replaced.":"${0} out of ${1}  matches replaced.","Save Search":"Save Search","Save search query":"Save search query",
"Replace all matches with...":"Replace all matches with...","Apply Changes":"Apply Changes","Replace all selected matches":"Replace all selected matches","Hide Compare":"Hide Compare","Hide compare view of changes":"Hide compare view of changes","Show Compare":"Show Compare","Show compare view of changes":"Show compare view of changes","Search Again":"Search Again","Search again":"Search again","< Previous Page":"< Previous Page","Show previous page of search result":"Show previous page of search result",
"Next Page >":"Next Page >","Show next page of search result":"Show next page of search result","Next result":"Next result","Previous result":"Previous result","Expand all results":"Expand all results","Collapse all results":"Collapse all results","Writing files...":"Writing files...","Preparing preview...":"Preparing preview...","Replaced File (${0})":"Replaced File (${0})","Original File (${0})":"Original File (${0})","Sort by Name":"Sort by Name","Compare changes":"Compare changes","Search Results":"Search Results",
"Replace All Matches":"Replace All Matches","No matches":"No matches",Rename:"Rename",Searches:"Searches","You can save frequently used by searches by choosing ${0} in the search toolbar.":"You can save frequently used by searches by choosing ${0} in the search toolbar."});define("orion/editor/regex",[],function(){return{escape:function(b){return b.replace(/([\\$\^*\/+?\.\(\)|{}\[\]])/g,"\\$&")},parse:function(b){return(b=/^\s*\/(.+)\/([gim]{0,3})\s*$/.exec(b))?{pattern:b[1],flags:b[2]}:null}}});
define("orion/dialogs",[],function(){function b(b){this._serviceRegistry=b;this._serviceRegistration=b.registerService("orion.page.dialog",this)}b.prototype={confirm:function(b,a){a(window.confirm(b))},openFiles:function(){}};b.prototype.constructor=b;return{DialogService:b}});
define("orion/commonHTMLFragments",["i18n!orion/nls/messages","require"],function(b,d){function a(a){return'<div id="'+a+'slideContainer" class="layoutBlock slideParameters slideContainer"><span id="'+a+'pageParameterArea" class="slide"><span id="'+a+'pageCommandParameters" class="layoutLeft parameters"></span><span id="'+a+'pageCommandDismiss" class="layoutRight parametersDismiss"></span></span></div>'}var c='<header role="banner"><div id="staticBanner" class="layoutBlock topRowBanner"><a id="home" class="layoutLeft logo" href="'+
d.toUrl("navigate/table.html")+'" aria-label="'+b["Orion Home"]+'"></a><nav id="primaryNav" class="layoutLeft primaryNav" role="navigation"></nav><div class="layoutRight"><div id="globalActions" class="spacingLeft layoutLeft"></div><div id="relatedLinks" class="spacingLeft layoutLeft" style="padding-top:1px;"></div><input type="text" id="search" placeholder="Search" title="'+b["Type a keyword or wild card to search in root"]+'" class="layoutLeft spacingLeft searchbox" role="search"><div id="userMenu" class="spacingLeft layoutLeft"></div></div></div><div id="titleArea" class="layoutBlock titleArea"><div class="layoutLeft pageTitle"></div><div class="clear" style="padding-bottom:5px;display:inline;"><span id="location" class="currentLocation"></span><span id="dirty" class="currentLocation"></span></div><div class="layoutRight pageNav"><span id="pageFavorite" tabindex="0" role="button" aria-label="'+
b["Add this page to the favorites list"]+'" class="spacingLeft layoutLeft imageSprite core-sprite-favorite_sml"></span></div></div></header>',e='<footer id="footerContent" class="layoutBlock" role="contentinfo"><div class="footerBlock">'+b["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">'+b.FAQ+'</a> | <a href="https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Orion&version=0.5" target="_blank">'+
b["Report a Bug"]+'</a> | <a href="http://www.eclipse.org/legal/privacy.php" target="_blank">'+b["Privacy Policy"]+'</a> | <a href="http://www.eclipse.org/legal/termsofuse.php" target="_blank">'+b["Terms of Use"]+'</a> | <a href="http://www.eclipse.org/legal/copyright.php" target="_blank">'+b["Copyright Agent"]+"</a></div></footer>",f='<ul class="layoutLeft commandList pageActions" id="pageActions"></ul><ul class="layoutLeft commandList pageActions" id="selectionTools"></ul><img class="layoutRight progressPane" src="'+
d.toUrl("images/none.png")+'" id="progressPane" tabindex="0" role="progressbar" aria-label="'+b["Operations - Press spacebar to show current operations"]+'"></img><div class="layoutRight status" id="statusPane" role="status" aria-live="off"></div><ul class="layoutRight commandList pageActions" id="pageNavigationActions"></ul><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" aria-label="Close notification" class="layoutRight core-sprite-close imageSprite" id="closeNotifications"></span></div></div>'+
a("mainToolbar");return{topHTMLFragment:c,bottomHTMLFragment:e,toolbarHTMLFragment:f,slideoutHTMLFragment:a}});
define("orion/i18nUtil",["require","orion/Deferred"],function(b,d){function a(a){if(a=localStorage.getItem("orion/messageBundle/"+a))if(a=JSON.parse(a),a._expires&&a._expires>(new Date).getTime())return delete a._expires,a;return null}var c={};return{getMessageBundle:function(e){function f(){b(["i18n!"+e],function(a){if(a){var b=e;a._expires=(new Date).getTime()+9E5;localStorage.setItem("orion/messageBundle/"+b,JSON.stringify(a));delete a._expires}g.resolve(a)})}if(c[e])return c[e];var g=new d;c[e]=
g;var h=a(e);if(h)return g.resolve(h),g;try{b([e],f)}catch(i){b(["orion/i18n!"+e],f)}return g},formatMessage:function(a){var b=arguments;return a.replace(/\$\{([^\}]+)\}/g,function(a,c){return b[(c<<0)+1]})}}});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",!0,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(b){b=b.target;if(b.nodeType==3)b=b.parentNode;return" button textarea input select option ".indexOf(" "+b.tagName.toLowerCase()+" ")>=0};return b.dnd});
define("dojo/dnd/autoscroll",["dojo","dojo/window"],function(b){b.getObject("dnd",!0,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,!0),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;h>0&&h<e.w&&(h<f?c=-f:h>e.w-f&&(c=f));i>0&&i<e.h&&(i<g?j=-g: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)];if(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){(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)}this.marginBox.l=c-this.marginBox.l;this.marginBox.t=a-this.marginBox.t;if(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;if(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:!1,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){(!this.skip||!b.dnd.isFormElement(d))&&
b.stopEvent(d)},onDragDetected:function(b){new this.mover(this.node,b,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(b,a){this.onMoving(b,a);var c=b.node.style;c.left=a.l+"px";c.top=a.t+"px";this.onMoved(b,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:!1,markupFactory:function(d,a){return new b.dnd.move.constrainedMoveable(a,d)},constructor:function(b,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;this.within&&(d=b._getMarginSize(d.node),a.r-=d.w,a.b-=
d.h)},onMove:function(b,a){var c=this.constraintBox,e=b.node.style;this.onMoving(b,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(b,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(b,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 a=this.node.parentNode,d=b.getComputedStyle(a),g=b._getMarginBox(a,d);if(c=="margin")return g;var h=b._getMarginExtents(a,d);g.l+=h.l;g.t+=h.t;g.w-=h.w;g.h-=h.h;if(c=="border")return g;h=b._getBorderExtents(a,d);g.l+=h.l;g.t+=h.t;g.w-=h.w;g.h-=h.h;if(c=="padding")return g;h=b._getPadExtents(a,d);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,b){b||(b={});if(b.timeout&&typeof b.timeout=="number"&&b.timeout>=0)this.timeout=b.timeout},markupFactory:function(a,c){return new b.dnd.TimedMoveable(c,a)},onMoveStop:function(a){a._timer&&(clearTimeout(a._timer),d.call(this,a,a._leftTop));b.dnd.Moveable.prototype.onMoveStop.apply(this,arguments)},
onMove:function(a,b){a._leftTop=b;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){b.mixin(this,d);this.node=d.node;this._showArgs=b.mixin({},d);this._showArgs.node=this.node;this._showArgs.duration=this.showDuration;this.showAnim=this.showFunc(this._showArgs);this._hideArgs=b.mixin({},d);this._hideArgs.node=this.node;this._hideArgs.duration=this.hideDuration;this.hideAnim=this.hideFunc(this._hideArgs);
b.connect(this.showAnim,"beforeBegin",b.hitch(this.hideAnim,"stop",!0));b.connect(this.hideAnim,"beforeBegin",b.hitch(this.showAnim,"stop",!0))},show:function(b){return this.showAnim.play(b||0)},hide:function(b){return this.hideAnim.play(b||0)}});return b.fx.Toggler});
define("dojo/fx",["dojo","dojo/fx/Toggler"],function(b){(function(){var d={_fire:function(a,b){this[a]&&this[a].apply(this,b||[]);return this}},a=function(a){this._index=-1;this._animations=a||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;b.forEach(this._animations,function(a){this.duration+=a.duration;a.delay&&(this.duration+=a.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;this._index+1==this._animations.length?this._fire("onEnd"):(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,!0))},play:function(a,c){if(!this._current)this._current=this._animations[this._index=0];if(!c&&this._current.status()=="playing")return this;var d=b.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin")}),
h=b.connect(this._current,"onBegin",this,function(a){this._fire("onBegin",arguments)}),i=b.connect(this._current,"onPlay",this,function(a){this._fire("onPlay",arguments);b.disconnect(d);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 a=b.connect(this._current,"onPause",this,function(c){this._fire("onPause",arguments);b.disconnect(a)});this._current.pause()}return this},gotoPercent:function(a,c){this.pause();var d=this.duration*a;this._current=null;b.some(this._animations,function(a){if(a.duration<=d)return this._current=a,!0;d-=a.duration;return!1});this._current&&this._current.gotoPercent(d/this._current.duration,c);return this},stop:function(a){if(this._current){if(a){for(;this._index+
1<this._animations.length;++this._index)this._animations[this._index].stop(!0);this._current=this._animations[this._index]}var c=b.connect(this._current,"onStop",this,function(a){this._fire("onStop",arguments);b.disconnect(c)});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(b){return new a(b)};
var c=function(a){this._animations=a||[];this._connects=[];this.duration=this._finished=0;b.forEach(a,function(a){var c=a.duration;a.delay&&(c+=a.delay);if(this.duration<c)this.duration=c;this._connects.push(b.connect(a,"onEnd",this,"_onEnd"))},this);this._pseudoAnimation=new b.Animation({curve:[0,1],duration:this.duration});var c=this;b.forEach("beforeBegin,onBegin,onPlay,onAnimate,onPause,onStop,onEnd".split(","),function(a){c._connects.push(b.connect(c._pseudoAnimation,a,function(){c._fire(a,arguments)}))})};
b.extend(c,{_doAction:function(a,c){b.forEach(this._animations,function(b){b[a].apply(b,c)});return this},_onEnd:function(){++this._finished>this._animations.length&&this._fire("onEnd")},_call:function(a,b){var c=this._pseudoAnimation;c[a].apply(c,b)},play:function(a,b){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(a,c){var d=this.duration*
a;b.forEach(this._animations,function(a){a.gotoPercent(a.duration<d?1:d/a.duration,c)});this._call("gotoPercent",arguments);return this},stop:function(a){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(a){return new c(a)};b.fx.wipeIn=function(a){var c=a.node=b.byId(a.node),d=c.style,h,a=b.animateProperty(b.mixin({properties:{height:{start:function(){h=
d.overflow;d.overflow="hidden";if(d.visibility=="hidden"||d.display=="none")return d.height="1px",d.display="",d.visibility="",1;else{var a=b.style(c,"height");return Math.max(a,1)}},end:function(){return c.scrollHeight}}}},a));b.connect(a,"onEnd",function(){d.height="auto";d.overflow=h});return a};b.fx.wipeOut=function(a){var c=(a.node=b.byId(a.node)).style,d,a=b.animateProperty(b.mixin({properties:{height:{end:1}}},a));b.connect(a,"beforeBegin",function(){d=c.overflow;c.overflow="hidden";c.display=
""});b.connect(a,"onEnd",function(){c.overflow=d;c.height="auto";c.display="none"});return a};b.fx.slideTo=function(a){var c=null,d=null,h=function(a){return function(){var e=b.getComputedStyle(a),h=e.position;c=h=="absolute"?a.offsetTop:parseInt(e.top)||0;d=h=="absolute"?a.offsetLeft:parseInt(e.left)||0;if(h!="absolute"&&h!="relative")e=b.position(a,!0),c=e.y,d=e.x,a.style.position="absolute",a.style.top=c+"px",a.style.left=d+"px"}}(a.node=b.byId(a.node));h();a=b.animateProperty(b.mixin({properties:{top:a.top||
0,left:a.left||0}},a));b.connect(a,"beforeBegin",a,h);return a}})();return b.fx});define("dijit/nls/common",{root:{buttonOk:"OK",buttonCancel:"Cancel",buttonSave:"Save",itemClose:"Close"},zh:!0,"zh-tw":!0,tr:!0,th:!0,sv:!0,sl:!0,sk:!0,ru:!0,ro:!0,pt:!0,"pt-pt":!0,pl:!0,nl:!0,nb:!0,ko:!0,kk:!0,ja:!0,it:!0,hu:!0,he:!0,fr:!0,fi:!0,es:!0,el:!0,de:!0,da:!0,cs:!0,ca:!0,ar:!0});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/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:!0,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"}var d=c||{};b.mixin(d,a||{});if(!("h"in d)||!("w"in d))d=b.mixin(b.marginBox(e),d);var g=b.getComputedStyle(e),h=b._getMarginExtents(e,g),i=b._getBorderExtents(e,g),d=this._borderBox={w:d.w-(h.w+i.w),h:d.h-(h.h+i.h)},h=b._getPadExtents(e,g);this._contentBox={l:b._toPixelValue(e,g.paddingLeft),t:b._toPixelValue(e,g.paddingTop),
w:d.w-h.w,h:d.h-h.h};this.layout()},layout:function(){},_setupChild:function(a){b.addClass(a.domNode,this.baseClass+"-child "+(a.baseClass?this.baseClass+"-"+a.baseClass:""))},addChild:function(a,b){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),d=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-(d.w+g.w),h:c.h-(d.h+g.h)}};(function(){var a=function(a,e){var d=a.resize?a.resize(e):b.marginBox(a.domNode,e);d?b.mixin(a,d):(b.mixin(a,b.marginBox(a.domNode)),b.mixin(a,e))};d.layout.layoutChildren=function(c,e,d,g,h){e=b.mixin({},e);b.addClass(c,"dijitLayoutContainer");d=b.filter(d,function(a){return a.region!="center"&&a.layoutAlign!="client"}).concat(b.filter(d,function(a){return a.region==
"center"||a.layoutAlign=="client"}));b.forEach(d,function(c){var d=c.domNode,f=c.region||c.layoutAlign,l=d.style;l.left=e.l+"px";l.top=e.t+"px";l.position="absolute";b.addClass(d,"dijitAlign"+(f.substring(0,1).toUpperCase()+f.substring(1)));d={};g&&g==c.id&&(d[c.region=="top"||c.region=="bottom"?"h":"w"]=h);f=="top"||f=="bottom"?(d.w=e.w,a(c,d),e.h-=c.h,f=="top"?e.t+=c.h:l.top=e.t+e.h+"px"):f=="left"||f=="right"?(d.h=e.h,a(c,d),e.w-=c.w,f=="left"?e.l+=c.w:l.left=e.l+e.w+"px"):(f=="client"||f=="center")&&
a(c,e)})}})();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:!0,isContainer:!0,isLayoutContainer:!0,_startChildren:function(){b.forEach(this.getChildren(),function(a){a.startup();a._started=!0})},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(a){return a.tagName!=="SCRIPT"}),c=a.filter(function(a){return b.hasAttr(a,"data-dojo-type")||b.hasAttr(a,"dojoType")||b.hasAttr(a,"widgetId")}),e=b.filter(c.map(d.byNode),function(a){return a&&
a.domNode&&a.resize});a.length==c.length&&e.length==1?this._singleChild=e[0]:delete this._singleChild;b.toggleClass(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild)},resize:function(a,b){!this._wasShown&&this.open!==!1&&this._onShow();this._resizeCalled=!0;this._scheduleLayout(a,b)},_scheduleLayout:function(a,b){this._isShown()?this._layout(a,b):(this._needLayout=!0,this._changeSize=a,this._resultSize=b)},_layout:function(a,c){a&&b.marginBox(this.domNode,a);var e=this.containerNode;
if(e===this.domNode){var f=c||{};b.mixin(f,a||{});if(!("h"in f)||!("w"in f))f=b.mixin(b.marginBox(e),f);this._contentBox=d.layout.marginBox2contentBox(e,f)}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(a){a.resize&&
a.resize()})},_isShown:function(){if(this._childOfLayoutWidget)return this._resizeCalled&&"open"in this?this.open: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=!0}});return d.layout._ContentPaneResizeMixin});
define("dojo/data/util/filter",["dojo"],function(b){b.getObject("data.util.filter",!0,b);b.data.util.filter.patternToRegExp=function(b,a){for(var c="^",e=null,f=0;f<b.length;f++)switch(e=b.charAt(f),e){case "\\":c+=e;f++;c+=b.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?RegExp(c,"mi"):RegExp(c,"m")};return b.data.util.filter});
define("dojo/data/util/sorter",["dojo"],function(b){b.getObject("data.util.sorter",!0,b);b.data.util.sorter.basicComparator=function(b,a){var c=-1;b===null&&(b=void 0);a===null&&(a=void 0);if(b==a)c=0;else if(b>a||b==null)c=1;return c};b.data.util.sorter.createSortFunction=function(d,a){function c(a,b,c,e){return function(d,f){var g=e.getValue(d,a),h=e.getValue(f,a);return b*c(g,h)}}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;g&&(typeof j!=="string"&&"toString"in j&&(j=j.toString()),k=g[j]||h);e.push(c(j,f,k,a))}}return function(a,b){for(var c=0;c<e.length;){var d=e[c++](a,b);if(d!==0)return d}return 0}};return b.data.util.sorter});
define("dojo/data/util/simpleFetch",["dojo","dojo/data/util/sorter"],function(b){b.getObject("data.util.simpleFetch",!0,b);b.data.util.simpleFetch.fetch=function(d){d=d||{};if(!d.store)d.store=this;var a=this;this._fetchItems(d,function(c,e){var d=e.abort||null,g=!1,h=e.start?e.start:0,i=e.count&&e.count!==Infinity?h+e.count:c.length;e.abort=function(){g=!0;d&&d.call(e)};var j=e.scope||b.global;if(!e.store)e.store=a;e.onBegin&&e.onBegin.call(j,c.length,e);e.sort&&c.sort(b.data.util.sorter.createSortFunction(e.sort,
a));if(e.onItem)for(var k=h;k<c.length&&k<i;++k){var l=c[k];g||e.onItem.call(j,l,e)}e.onComplete&&!g&&(k=null,e.onItem||(k=c.slice(h,i)),e.onComplete.call(j,k,e))},function(a,e){e.onError&&e.onError.call(e.scope||b.global,a,e)});return d};return b.data.util.simpleFetch});
define("dojo/date/stamp",["dojo"],function(b){b.getObject("date.stamp",!0,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),e=null;if(c){c.shift();c[1]&&c[1]--;c[6]&&(c[6]*=1E3);a&&(a=new Date(a),b.forEach(b.map("FullYear,Month,Date,Hours,Minutes,Seconds,Milliseconds".split(","),function(b){return a["get"+
b]()}),function(a,b){c[b]=c[b]||a}));e=new Date(c[0]||1970,c[1]||0,c[2]||1,c[3]||0,c[4]||0,c[5]||0,c[6]||0);c[0]<100&&e.setFullYear(c[0]||1970);var f=0,g=c[7]&&c[7].charAt(0);g!="Z"&&(f=(c[8]||0)*60+(Number(c[9])||0),g!="-"&&(f*=-1));g&&(f-=e.getTimezoneOffset());f&&e.setTime(e.getTime()+f*6E4)}return e};b.date.stamp.toISOString=function(b,a){var c=function(a){return a<10?"0"+a:a},a=a||{},e=[],f=a.zulu?"getUTC":"get",g="";a.selector!="time"&&(g=b[f+"FullYear"](),g=["0000".substr((g+"").length)+g,
c(b[f+"Month"]()+1),c(b[f+"Date"]())].join("-"));e.push(g);if(a.selector!="date"){g=[c(b[f+"Hours"]()),c(b[f+"Minutes"]()),c(b[f+"Seconds"]())].join(":");f=b[f+"Milliseconds"]();a.milliseconds&&(g+="."+(f<100?"0":"")+c(f));if(a.zulu)g+="Z";else if(a.selector!="time"){var f=b.getTimezoneOffset(),h=Math.abs(f);g+=(f>0?"-":"+")+c(Math.floor(h/60))+":"+c(h%60)}e.push(g)}return e.join("T")};return b.date.stamp});
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=!1;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":!0,"dojo.data.api.Identity":!0};this._itemsByIdentity=null;this._storeRefPropName="_S";this._itemNumPropName="_0";this._rootItemPropName="_RI";this._reverseRefMap="_RRM";this._loadInProgress=!1;this._queuedFetches=[];if(d.urlPreventCache!==void 0)this.urlPreventCache=d.urlPreventCache?!0:!1;if(d.hierarchical!==void 0)this.hierarchical=d.hierarchical?!0:!1;if(d.clearOnClose)this.clearOnClose=!0;if("failOk"in d)this.failOk=d.failOk?!0:!1},url:"",_ccUrl:"",data:null,
typeMap:null,clearOnClose:!1,urlPreventCache:!1,failOk:!1,hierarchical:!0,_assertIsItem:function(b){if(!this.isItem(b))throw Error("dojo.data.ItemFileReadStore: Invalid item argument.");},_assertIsAttribute:function(b){if(typeof b!=="string")throw Error("dojo.data.ItemFileReadStore: Invalid attribute argument.");},getValue:function(b,a,c){b=this.getValues(b,a);return b.length>0?b[0]:c},getValues:function(b,a){this._assertIsItem(b);this._assertIsAttribute(a);return(b[a]||[]).slice(0)},getAttributes:function(b){this._assertIsItem(b);
var a=[],c;for(c in b)c!==this._storeRefPropName&&c!==this._itemNumPropName&&c!==this._rootItemPropName&&c!==this._reverseRefMap&&a.push(c);return a},hasAttribute:function(b,a){this._assertIsItem(b);this._assertIsAttribute(a);return a in b},containsValue:function(d,a,c){var e=void 0;typeof c==="string"&&(e=b.data.util.filter.patternToRegExp(c,!1));return this._containsValue(d,a,c,e)},_containsValue:function(d,a,c,e){return b.some(this.getValues(d,a),function(a){if(a!==null&&!b.isObject(a)&&e){if(a.toString().match(e))return!0}else if(c===
a)return!0})},isItem:function(b){return b&&b[this._storeRefPropName]===this&&this._arrayOfAllItems[b[this._itemNumPropName]]===b?!0:!1},isItemLoaded:function(b){return this.isItem(b)},loadItem:function(b){this._assertIsItem(b.item)},getFeatures:function(){return this._features},getLabel:function(b){if(this._labelAttr&&this.isItem(b))return this.getValue(b,this._labelAttr)},getLabelAttributes:function(){return this._labelAttr?[this._labelAttr]:null},_fetchItems:function(d,a,c){var e=this,f=function(c,
d){var f=[],g,h;if(c.query){var i;g=c.queryOptions?c.queryOptions.ignoreCase:!1;var o={};for(h in c.query)i=c.query[h],typeof i==="string"?o[h]=b.data.util.filter.patternToRegExp(i,g):i instanceof RegExp&&(o[h]=i);for(g=0;g<d.length;++g){var r=!0,q=d[g];if(q===null)r=!1;else for(h in c.query)i=c.query[h],e._containsValue(q,h,i,o[h])||(r=!1);r&&f.push(q)}}else for(g=0;g<d.length;++g)h=d[g],h!==null&&f.push(h);a(f,c)};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=!0;var g=b.xhrGet({url:e._jsonFileUrl,handleAs:"json-comment-optional",
preventCache:this.urlPreventCache,failOk:this.failOk});g.addCallback(function(a){try{e._getItemsFromLoadedData(a),e._loadFinished=!0,e._loadInProgress=!1,f(d,e._getItemsArray(d.queryOptions)),e._handleQueuedFetches()}catch(b){e._loadFinished=!0,e._loadInProgress=!1,c(b,d)}});g.addErrback(function(a){e._loadInProgress=!1;c(a,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=!0,this._getItemsFromLoadedData(this._jsonData),
this._jsonData=null,f(d,this._getItemsArray(d.queryOptions))}catch(i){c(i,d)}else c(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 b=0;b<this._queuedFetches.length;b++){var a=this._queuedFetches[b],c=a.args;(a=a.filter)?a(c,this._getItemsArray(c.queryOptions)):this.fetchItemByIdentity(c)}this._queuedFetches=[]}},_getItemsArray:function(b){return b&&b.deep?
this._arrayOfAllItems:this._arrayOfTopLevelItems},close:function(){if(this.clearOnClose&&this._loadFinished&&!this._loadInProgress)(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=!1,this._itemsByIdentity=
null,this._loadInProgress=!1,this._queuedFetches=[]},_getItemsFromLoadedData:function(d){function a(a){return a!==null&&typeof a==="object"&&(!b.isArray(a)||e)&&!b.isFunction(a)&&(a.constructor==Object||b.isArray(a))&&typeof a._reference==="undefined"&&typeof a._type==="undefined"&&typeof a._value==="undefined"&&f.hierarchical}function c(e){f._arrayOfAllItems.push(e);for(var d in e){var g=e[d];if(g)if(b.isArray(g))for(var h=0;h<g.length;++h){var i=g[h];a(i)&&c(i)}else a(g)&&c(g)}}var e=!1,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],b.isArray(h)&&(e=!0),c(h),h[this._rootItemPropName]=!0;var i={},j;for(g=0;g<this._arrayOfAllItems.length;++g)for(j in h=this._arrayOfAllItems[g],h){if(j!==this._rootItemPropName){var k=h[j];k!==null?b.isArray(k)||(h[j]=[k]):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)if(h=this._arrayOfAllItems[g],d=h[i],d=d[0],Object.hasOwnProperty.call(this._itemsByIdentity,d))if(this._jsonFileUrl)throw 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 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)for(j in h=this._arrayOfAllItems[g],h){d=h[j];for(i=0;i<d.length;++i)if(k=d[i],k!==null&&typeof k=="object"){if("_type"in k&&"_value"in k){var l=k._type,m=this._datatypeMap[l];if(m)if(b.isFunction(m))d[i]=new m(k._value);
else if(b.isFunction(m.deserialize))d[i]=m.deserialize(k._value);else throw Error("dojo.data.ItemFileReadStore: Value provided in typeMap was neither a constructor, nor a an object with a deserialize function");else throw Error("dojo.data.ItemFileReadStore: in the typeMap constructor arg, no object class was specified for the datatype '"+l+"'");}if(k._reference){k=k._reference;if(b.isObject(k))for(l=0;l<this._arrayOfAllItems.length;++l){var m=this._arrayOfAllItems[l],n=!0,p;for(p in k)m[p]!=k[p]&&
(n=!1);n&&(d[i]=m)}else d[i]=this._getItemByIdentity(k);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(b){var a=this._features["dojo.data.api.Identity"];if(a===Number)return b[this._itemNumPropName];else if(b=b[a])return b[0];return null},fetchItemByIdentity:function(d){var a,c;if(this._loadFinished)a=this._getItemByIdentity(d.identity),
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)this._loadInProgress?
this._queuedFetches.push({args:d}):(this._loadInProgress=!0,c=b.xhrGet({url:e._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk}),c.addCallback(function(c){var g=d.scope?d.scope:b.global;try{e._getItemsFromLoadedData(c),e._loadFinished=!0,e._loadInProgress=!1,a=e._getItemByIdentity(d.identity),d.onItem&&d.onItem.call(g,a),e._handleQueuedFetches()}catch(h){e._loadInProgress=!1,d.onError&&d.onError.call(g,h)}}),c.addErrback(function(a){e._loadInProgress=
!1;d.onError&&d.onError.call(d.scope?d.scope:b.global,a)}));else if(this._jsonData)e._getItemsFromLoadedData(e._jsonData),e._jsonData=null,e._loadFinished=!0,a=e._getItemByIdentity(d.identity),d.onItem&&(c=d.scope?d.scope:b.global,d.onItem.call(c,a))}},_getItemByIdentity:function(b){var a=null;this._itemsByIdentity&&Object.hasOwnProperty.call(this._itemsByIdentity,b)?a=this._itemsByIdentity[b]:Object.hasOwnProperty.call(this._arrayOfAllItems,b)&&(a=this._arrayOfAllItems[b]);a===void 0&&(a=null);return a},
getIdentityAttributes:function(){var b=this._features["dojo.data.api.Identity"];return b===Number?null:[b]},_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:!0});a.addCallback(function(a){try{if(d._loadInProgress!==!0&&!d._loadFinished)d._getItemsFromLoadedData(a),d._loadFinished=!0;else if(d._loadInProgress)throw Error("dojo.data.ItemFileReadStore:  Unable to perform a synchronous load, an async load is in progress.");}catch(b){throw console.log(b),b;}});a.addErrback(function(a){throw a;})}else if(this._jsonData)d._getItemsFromLoadedData(d._jsonData),
d._jsonData=null,d._loadFinished=!0}});b.extend(b.data.ItemFileReadStore,b.data.util.simpleFetch);return b.data.ItemFileReadStore});
define("orion/widgets/_OrionDialogMixin",["i18n!orion/widgets/nls/messages","dojo","dijit"],function(b,d,a){d.declare("orion.widgets._OrionDialogMixin",null,{postMixInProperties:function(){this.inherited(arguments);this.title=this.options.title||b["Information Needed"];this.buttonCancel=b.Cancel},postCreate:function(){this.inherited(arguments);d.connect(this,"onKeyPress",d.hitch(this,function(a){a.keyCode===d.keys.ENTER&&this._onSubmit()}))},onHide:function(){this.inherited(arguments);setTimeout(d.hitch(this,
function(){if(d.isDescendant(a._curFocus,this.domNode))a._curFocus=null;if(d.isDescendant(a._prevFocus,this.domNode))a._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("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(b,j){function k(a,b){f[j]=[a,b];h++;h===d.length&&g.resolve(f)}b.then(function(b){a?g.resolve([j,b]):k(!0,b)},function(a){c?g.reject(a):k(!1,a);if(e)return null;throw a;})})};b.DeferredList.prototype=new b.Deferred;b.DeferredList.prototype.gatherResults=function(d){d=new b.DeferredList(d,!1,!0,!1);d.addCallback(function(a){var c=
[];b.forEach(a,function(a){c.push(a[1])});return c});return d};return b.DeferredList});
define("dojo/regexp",["dojo"],function(b){b.getObject("regexp",!0,b);b.regexp.escapeString=function(b,a){return b.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(b){return a&&a.indexOf(b)!=-1?b:"\\"+b})};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(b,a){return"("+(a?"?:":"")+b+")"};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(RegExp("(?:^|; )"+b.regexp.escapeString(d)+"=([^;]*)"));return f?decodeURIComponent(f[1]):void 0}else{c=c||{};e=c.expires;if(typeof e=="number"){var g=new Date;g.setTime(g.getTime()+e*864E5);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],g!==!0&&(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:!1,constructor:function(a){b.mixin(this,a);this.connects=[];a=this.store;if(!a.getFeatures()["dojo.data.api.Identity"])throw 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(c){if(c.length!=1)throw Error(this.declaredClass+": query "+b.toJson(this.query)+" returned "+c.length+" items, but must return exactly one item");this.root=c[0];a(this.root)}),onError:c})},mayHaveChildren:function(a){return b.some(this.childrenAttrs,
function(b){return this.store.hasAttribute(a,b)},this)},getChildren:function(a,c,e){var d=this.store;if(d.isItemLoaded(a)){for(var g=[],h=0;h<this.childrenAttrs.length;h++)var i=d.getValues(a,this.childrenAttrs[h]),g=g.concat(i);var j=0;this.deferItemLoadingUntilExpand||b.forEach(g,function(a){d.isItemLoaded(a)||j++});j==0?c(g):b.forEach(g,function(a,b){d.isItemLoaded(a)||d.loadItem({item:a,onItem:function(a){g[b]=a;--j==0&&c(g)},onError:e})})}else{var k=b.hitch(this,arguments.callee);d.loadItem({item:a,
onItem:function(a){k(a,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,b,e){var d={parent:b,attribute:this.childrenAttrs[0]},g;this.newItemIdAttr&&a[this.newItemIdAttr]?this.fetchItemByIdentity({identity:a[this.newItemIdAttr],scope:this,
onItem:function(h){h?this.pasteItem(h,null,b,!0,e):(g=this.store.newItem(a,d))&&e!=void 0&&this.pasteItem(g,b,b,!1,e)}}):(g=this.store.newItem(a,d))&&e!=void 0&&this.pasteItem(g,b,b,!1,e)},pasteItem:function(a,c,e,d,g){var h=this.store,i=this.childrenAttrs[0];c&&b.forEach(this.childrenAttrs,function(e){if(h.containsValue(c,e,a)){if(!d){var g=b.filter(h.getValues(c,e),function(b){return b!=a});h.setValues(c,e,g)}i=e}});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(a){this.onChildrenChange(c.item,a)}))},onDeleteItem:function(a){this.onDelete(a)},onSetItem:function(a,c){if(b.indexOf(this.childrenAttrs,c)!=-1)this.getChildren(a,b.hitch(this,function(b){this.onChildrenChange(a,b)}));else 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:!0,id:a.rootId,label:a.rootLabel,children:a.rootChildren}},mayHaveChildren:function(a){return a===this.root||this.inherited(arguments)},getChildren:function(a,c,e){a===this.root?this.root.children?c(this.root.children):this.store.fetch({query:this.query,
onComplete:b.hitch(this,function(a){this.root.children=a;c(a)}),onError:e}):this.inherited(arguments)},isItem:function(a){return a===this.root?!0: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,b,e){return b===this.root?(this.onNewRootItem(a),this.store.newItem(a)):this.inherited(arguments)},onNewRootItem:function(){},pasteItem:function(a,b,e,f,g){if(b===this.root&&!f)this.onLeaveRoot(a);d.tree.TreeStoreModel.prototype.pasteItem.call(this,a,b===this.root?null:b,e===this.root?null:e,f,g);if(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(a,b){return c[b]!=a}))this.onChildrenChange(this.root,c)})})},onNewItem:function(a,b){this._requeryTop();this.inherited(arguments)},onDeleteItem:function(a){b.indexOf(this.root.children,a)!=-1&&this._requeryTop();this.inherited(arguments)},onSetItem:function(a,b,e,d){this._requeryTop();this.inherited(arguments)}});
return d.tree.ForestStoreModel});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("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("dojox",["dojo"],function(b){return dojox=b._dojox||{}});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:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,"en-au":!0,"en-gb":!0,es:!0,fi:!0,fr:!0,"fr-ch":!0,he:!0,hu:!0,it:!0,ja:!0,ko:!0,nb:!0,nl:!0,pl:!0,pt:!0,"pt-pt":!0,ro:!0,ru:!0,sk:!0,sl:!0,sv:!0,th:!0,tr:!0,zh:!0,"zh-hant":!0,"zh-hk":!0});
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",!0,b);b.number.format=function(d,a){var a=b.mixin({},a||{}),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"];return isNaN(d)||Math.abs(d)==Infinity?null:b.number._applyPattern(d,c,a)};b.number._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;b.number._applyPattern=function(d,a,c){var c=
c||{},e=c.customs.group,f=c.customs.decimal,a=a.split(";"),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(a){return c[["symbol","currency","displayName"][a.length-1]]||c.currency||""});else if(a.indexOf("E")!=-1)throw Error("exponential notation not supported");var h=b.number._numberPatternRE,g=g.match(h);if(!g)throw Error("unable to find a number expression in pattern: "+
a);if(c.fractional===!1)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(b,a,c){c=10/(c||10);return(c*+b).toFixed(a)/c};(0.9).toFixed()==0&&function(){var d=b.number.round;b.number.round=function(a,b,e){var f=Math.pow(10,-b||0),g=Math.abs(a);if(!a||g>=f||g*Math.pow(10,b+1)<5)f=0;return d(a,b,e)+(a>0?f:-f)}}();b.number._formatAbsolute=function(d,a,c){c=c||{};if(c.places===!0)c.places=0;if(c.places===Infinity)c.places=
6;var a=a.split("."),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));var d=String(Math.abs(d)).split("."),g=d[1]||"";if(a[1]||c.places){if(e)c.places=c.places.substring(0,e);e=c.places!==void 0?c.places:a[1]&&a[1].lastIndexOf("0")+1;e>g.length&&(d[1]=b.string.pad(g,e,"0",!0));f<g.length&&(d[1]=g.substr(0,f))}else d[1]&&d.pop();f=a[0].replace(",","");e=f.indexOf("0");e!=-1&&(e=
f.length-e,e>d[0].length&&(d[0]=b.string.pad(d[0],e)),f.indexOf("#")==-1&&(d[0]=d[0].substr(d[0].length-e)));var f=a[0].lastIndexOf(","),h,i;f!=-1&&(h=a[0].length-f-1,a=a[0].substr(0,f),f=a.lastIndexOf(","),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):"",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){var d=
d||{},a=b.i18n.normalizeLocale(d.locale),a=b.i18n.getLocalization("dojo.cldr","number",a),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;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(a){a="(?:"+b.regexp.escapeString(a,".")+")";return a.replace(b.number._numberPatternRE,function(a){var c={signed:!1,
separator:d.strict?e:[e,""],fractional:d.fractional,decimal:f,exponent:!1},a=a.split("."),h=d.places;a.length==1&&g!=1&&(a[1]="###");if(a.length==1||h===0)c.fractional=!1;else{h===void 0&&(h=d.pattern?a[1].lastIndexOf("0")+1:Infinity);if(h&&d.fractional==void 0)c.fractional=!0;!d.places&&h<a[1].length&&(h+=","+a[1].length);c.places=h}a=a[0].split(",");if(a.length>1&&(c.groupSize=a.pop().length,a.length>1))c.groupSize2=a.pop().length;return"("+b.number._realNumberRegexp(c)+")"})},!0);h&&(a=a.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g,
function(a,c,e,f){a=b.regexp.escapeString(d[["symbol","currency","displayName"][e.length-1]]||d.currency||"");c=c?"[\\s\\xa0]":"";f=f?"[\\s\\xa0]":"";return!d.strict?(c&&(c+="*"),f&&(f+="*"),"(?:"+c+a+f+")?"):c+a+f}));return{regexp:a.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:e,decimal:f,factor:g}};b.number.parse=function(d,a){var c=b.number._parseInfo(a),e=RegExp("^"+c.regexp+"$").exec(d);if(!e)return NaN;var f=e[1];if(!e[1]){if(!e[2])return NaN;f=e[2];c.factor*=-1}f=f.replace(RegExp("["+c.group+"\\s\\xa0]",
"g"),"").replace(c.decimal,".");return f*c.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=[!0,!1];if(!("exponent"in d))d.exponent=[!0,!1];if(!("eSigned"in d))d.eSigned=[!0,!1];var a=b.number._integerRegexp(d),c=b.regexp.buildGroupRE(d.fractional,function(a){var b="";a&&d.places!==0&&(b="\\"+d.decimal,d.places==Infinity?b="(?:"+b+"\\d+)?":b+="\\d{"+d.places+
"}");return b},!0),e=b.regexp.buildGroupRE(d.exponent,function(a){return a?"([eE]"+b.number._integerRegexp({signed:d.eSigned})+")":""});a+=c;c&&(a="(?:(?:"+a+")|(?:"+c+"))");return a+e};b.number._integerRegexp=function(d){d=d||{};if(!("signed"in d))d.signed=[!0,!1];if("separator"in d){if(!("groupSize"in d))d.groupSize=3}else d.separator="";var a=b.regexp.buildGroupRE(d.signed,function(a){return a?"[-+]":""},!0),c=b.regexp.buildGroupRE(d.separator,function(a){if(!a)return"(?:\\d+)";a=b.regexp.escapeString(a);
a==" "?a="\\s":a=="\u00a0"&&(a="\\s\\xa0");var c=d.groupSize,g=d.groupSize2;return g?(a="(?:0|[1-9]\\d{0,"+(g-1)+"}(?:["+a+"]\\d{"+g+"})*["+a+"]\\d{"+c+"})",c-g>0?"(?:"+a+"|(?:0|[1-9]\\d{0,"+(c-1)+"}))":a):"(?:0|[1-9]\\d{0,"+(c-1)+"}(?:["+a+"]\\d{"+c+"})*)"},!0);return a+c};return b.number});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("dojo/io/iframe",["dojo"],function(b){b.getObject("io",!0,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||(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;(e=b.isIE||b.isWebKit?d.contentWindow.document:d.contentWindow)?e.location.replace(a):d.location=a}else b.isWebKit?d.location=a: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=!0;a.ioArgs._callNext()},function(a){var c=null;try{var e=a.ioArgs,d=b.io.iframe,g=d.doc(d._frame),h=e.handleAs,c=g;if(h!="html")if(h=="xml"){if(b.isIE<
9||b.isIE&&b.isQuirks){b.query("a",d._frame.contentWindow.document.documentElement).orphan();var i=d._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,h=="json"?c=b.fromJson(c):h=="javascript"&&(c=b.eval(c))}catch(j){c=j}finally{e._callNext()}return c},function(a,b){b.ioArgs._hasError=!0;b.ioArgs._callNext();return a});d.ioArgs._callNext=function(){if(!this._calledNext)this._calledNext=
!0,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(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(c,d){b.create("input",{type:"hidden",name:c,value:d},e);a._contentToClean.push(c)},h;for(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 e[h]?e[h].value=i:g(h,i)}}var k=e.getAttributeNode("action"),l=e.getAttributeNode("method"),m=e.getAttributeNode("target");
if(c.url)a._originalAction=k?k.value:null,k?k.value=c.url:e.setAttribute("action",c.url);if(!l||!l.value)l?l.value=c.method?c.method:"post":e.setAttribute("method",c.method?c.method:"post");a._originalTarget=m?m.value:null;m?m.value=this._iframeName: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,!0)}}}catch(n){d.errback(n)}},_iframeOnload:function(){var d=
this._currentDfd;if(d){var d=d.ioArgs,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=!0}else this._fireNextRequest()}};return b.io.iframe});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/_HasDropDown",["dojo","dijit","dijit/_Widget"],function(b,d){b.declare("dijit._HasDropDown",null,{_buttonNode:null,_arrowWrapperNode:null,_popupStateNode:null,_aroundNode:null,dropDown:null,autoWidth:!0,forceWidth:!1,maxHeight:0,dropDownPosition:["below","above"],_stopClickEvents:!0,_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=!1;if(a&&this._opened){var f=b.position(this._buttonNode,!0);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;)b.hasClass(f,"dijitPopup")?e=!0:f=f.parentNode;if(e){f=a.target;if(c.onItemClick){for(var g;f&&!(g=d.byNode(f));)f=f.parentNode;if(g&&g.onClick&&g.getParent)g.getParent().onItemClick(g,a)}return}}}this._opened&&c.focus&&c.autoFocus!==!1&&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(){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&&c.handleKey(a)===!1)b.stopEvent(a);else 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=!0,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!0},loadDropDown:function(a){a()},toggleDropDown:function(){!this.disabled&&!this.readOnly&&(this._opened?this.closeDropDown():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=!0;if(c.style.width)this._explicitDDWidth=!0;if(c.style.height)this._explicitDDHeight=!0}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)var g=b.window.getBox(),h=b.position(e,!1),g=Math.floor(Math.max(h.y,g.h-(h.y+h.h)));a.startup&&!a._started&&
a.startup();d.popup.moveOffScreen(a);var h=b._getMarginSize(c),i=g&&h.h>g;b.style(c,{overflowX:"hidden",overflowY:i?"auto":"hidden"});i?(h.h=g,"w"in h&&(h.w+=16)):delete h.h;this.forceWidth?h.w=e.offsetWidth:this.autoWidth?h.w=Math.max(h.w,e.offsetWidth):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(!0)},onCancel:function(){f.closeDropDown(!0)},onClose:function(){b.attr(f._popupStateNode,"popupActive",!1);b.removeClass(f._popupStateNode,"dijitHasDropDownOpen");f._opened=!1}});b.attr(this._popupStateNode,"popupActive","true");b.addClass(f._popupStateNode,"dijitHasDropDownOpen");this._opened=!0;return a},closeDropDown:function(a){if(this._opened)a&&this.focus(),d.popup.close(this.dropDown),this._opened=!1}});return d._HasDropDown});
define("dijit/form/nls/ComboBox",{root:{previousMessage:"Previous choices",nextMessage:"More choices"},zh:!0,"zh-tw":!0,tr:!0,th:!0,sv:!0,sl:!0,sk:!0,ru:!0,ro:!0,pt:!0,"pt-pt":!0,pl:!0,nl:!0,nb:!0,ko:!0,kk:!0,ja:!0,it:!0,hu:!0,he:!0,fr:!0,fi:!0,es:!0,el:!0,de:!0,da:!0,cs:!0,ca:!0,ar:!0});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/textview/keyBinding",[],function(){function b(a,b,e,d,g){this.keyCode=typeof a==="string"?a.toUpperCase().charCodeAt(0):a;this.mod1=b!==void 0&&b!==null?b:!1;this.mod2=e!==void 0&&e!==null?e:!1;this.mod3=d!==void 0&&d!==null?d:!1;this.mod4=g!==void 0&&g!==null?g:!1}var d=window.navigator.platform.indexOf("Mac")!==-1;b.prototype={match:function(a){return this.keyCode===a.keyCode?this.mod1!==(d?a.metaKey:a.ctrlKey)?!1:this.mod2!==a.shiftKey?!1:this.mod3!==a.altKey?!1:d&&this.mod4!==a.ctrlKey?
!1:!0:!1},equals:function(a){return!a?!1:this.keyCode!==a.keyCode?!1:this.mod1!==a.mod1?!1:this.mod2!==a.mod2?!1:this.mod3!==a.mod3?!1:this.mod4!==a.mod4?!1:!0}};return{KeyBinding:b}});
define("orion/contentTypes",[],function(){function b(a,b){function c(a,b,e,d){var e=b.filename.indexOf(e)>=0,f=b.extension.indexOf(d)>=0;if(e||f)if(!a||e&&a.extension.indexOf(d)>=0)return b;return a}for(var e=a&&a.split(".").pop(),d=null,k=0;k<b.length;k++){var l=b[k];c(d,l,a,e)===l&&(d=l)}return d}function d(b){this.serviceRegistry=b;this.map=function(a){function b(a){return a===null||typeof a==="undefined"?[]:a instanceof Array?a:[a]}for(var a=a.getServiceReferences(c).concat(a.getServiceReferences(e)),
d={},f=0;f<a.length;f++)for(var k=b(a[f].getProperty("contentTypes")),l=0;l<k.length;l++){var m=k[l];d[m.id]||(d[m.id]={id:m.id,name:m.name,image:m.image,"extends":m["extends"],extension:b(m.extension),filename:b(m.filename)})}return d}(b);b.registerService(a,this)}var a="orion.core.contenttypes",c="orion.core.contenttype",e="orion.file.contenttype";d.prototype={getContentTypes:function(){var a=this.getContentTypesMap(),b=[],c;for(c in a)a.hasOwnProperty(c)&&b.push(a[c]);return b},getContentTypesMap:function(){return this.map},
getFileContentType:function(a){return b(a.Name,this.getContentTypes())},getFilenameContentType:function(a){return b(a,this.getContentTypes())},getContentType:function(a){return this.map[a]||null},isExtensionOf:function(a,b){a=typeof a==="string"?this.getContentType(a):a;b=typeof b==="string"?this.getContentType(b):b;if(!a||!b)return!1;if(a.id===b.id)return!0;else for(var c=a,e={};c&&(c=this.getContentType(c["extends"]));){if(c.id===b.id)return!0;if(e[c.id])throw Error("Cycle: "+c.id);e[c.id]=!0}return!1},
isSomeExtensionOf:function(a,b){for(var c=0;c<b.length;c++)if(this.isExtensionOf(a,b[c]))return!0;return!1}};return{ContentTypeService:d,getFilenameContentType:b}});
define("orion/URITemplate",[],function(){function b(a){this._text=a}function d(a,b){if(b==="U")return encodeURIComponent(a).replace(/[!'()*]/g,function(a){return"%"+a.charCodeAt(0).toString(16).toUpperCase()});if(b==="U+R")return encodeURI(a).replace(/%5B/g,"[").replace(/%5D/g,"]");if(b==="U+R-,")return encodeURI(a).replace(/%5B/g,"[").replace(/%5D/g,"]").replace(/,/g,"%2C");throw Error("Unknown allowed character set: "+b);}function a(a,b,c){for(var e=[],f=0;f<a.length;f++)typeof a[f]!=="undefined"&&
e.push(d(a[f],b));return e.join(c)}function c(a,b,c,e){for(var f=Object.keys(a),g=[],h=0;h<f.length;h++)typeof a[f[h]]!=="undefined"&&g.push(d(f[h],b)+c+d(a[f[h]],b));return g.join(e)}function e(a){if(a.length===0)throw Error("Invalid Expression: 0 length expression");(this._operator=g[a[0]])?a=a.substring(1):this._operator=g.NUL;for(var b=[],c=a.split(","),e=0;e<c.length;e++){var d=c[e].match(h);if(d===null)throw Error("Bad VarSpec: "+a);b.push({name:d[1],explode:!!d[2],prefix:d[3]?parseInt(d[3],
10):-1})}this._varSpecList=b}function f(a){for(var c=[],d=0,f=a.indexOf("{",d);f!==-1;){c.push(new b(a.substring(d,f)));d=a.indexOf("}",f+1);if(d===-1)throw Error("Invalid template: "+a);c.push(new e(a.substring(f+1,d)));d+=1;f=a.indexOf("{",d)}c.push(new b(a.substring(d)));this._templateComponents=c}var g={NUL:{first:"",sep:",",named:!1,ifemp:"",allow:"U"},"+":{first:"",sep:",",named:!1,ifemp:"",allow:"U+R"},".":{first:".",sep:",",named:!1,ifemp:"",allow:"U"},"/":{first:"/",sep:"/",named:!1,ifemp:"",
allow:"U"},";":{first:";",sep:";",named:!0,ifemp:"",allow:"U"},"?":{first:"?",sep:"&",named:!0,ifemp:"=",allow:"U"},"&":{first:"&",sep:"&",named:!0,ifemp:"=",allow:"U"},"#":{first:"#",sep:",",named:!1,ifemp:"",allow:"U+R"},",":{first:"",sep:",",named:!1,ifemp:"",allow:"U+R-,"}},h=/^((?:(?:[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)}};e.prototype={expand:function(b){for(var e=[],f=
0;f<this._varSpecList.length;f++){var g=this._varSpecList[f],h=g.name,n=b[h],p=typeof n;if(p!=="undefined"&&n!==null){var o=e.length===0?this._operator.first:this._operator.sep;if(p==="string")this._operator.named&&(o+=d(h,"U+R"),o+=n.length===0?this._operator.ifemp:"="),g.prefix!==-1&&g.prefix<n.length&&(n=n.substring(0,g.prefix)),o+=d(n,this._operator.allow);else if(Array.isArray(n))g.explode?o+=a(n,this._operator.allow,this._operator.sep):(this._operator.named&&(o+=d(h,"U+R"),o+=n.length===0?this._operator.ifemp:
"="),o+=a(n,this._operator.allow,","));else if(p==="object")g.explode?o+=c(n,this._operator.allow,"=",this._operator.sep):(this._operator.named&&(o+=d(h,"U+R"),o+=Object.keys(n).length===0?this._operator.ifemp:"="),o+=c(n,this._operator.allow,",",","));else throw Error("bad param type: "+h+" : "+p);e.push(o)}}return e.join("")}};f.prototype={expand:function(a){for(var b=[],c=0;c<this._templateComponents.length;c++)b.push(this._templateComponents[c].expand(a));return b.join("")}};return f});
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" role="search">\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="findfileSearchBox" 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 id="findfileSearchBox" 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;" aria-live="off"></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("dojo/parser",["dojo","dojo/date/stamp"],function(b){b.parser=new function(){function d(a,b){switch(b){case "string":return a;case "number":return a.length?Number(a):NaN;case "boolean":return typeof a=="boolean"?a:a.toLowerCase()!="false";case "function":e.isFunction(a)&&(a=a.toString(),a=e.trim(a.substring(a.indexOf("{")+1,a.length-1)));try{return a===""||a.search(/[^\w\.]+/i)!=-1?new Function(a):e.getObject(a,!1)||new Function(a)}catch(c){return new Function}case "array":return a?a.split(/\s*,\s*/):
[];case "date":switch(a){case "":return new Date("");case "now":return new Date;default:return e.date.stamp.fromISOString(a)}case "url":return e.baseUrl+a;default:return e.fromJson(a)}}function a(a,b){for(var c in a)if(c.charAt(0)!="_"&&!(c in f)){var d=b,g=c,m;m=a[c];m=e.isString(m)?"string":typeof m=="number"?"number":typeof m=="boolean"?"boolean":e.isFunction(m)?"function":e.isArray(m)?"array":m instanceof Date?"date":m instanceof e._Url?"url":"object";d[g]=m}return b}function c(b,c){var d=g[b];
if(d){if(!c&&!d.params)d.params=a(d.cls.prototype,{})}else{var d=e.getObject(b),f=null;if(!d)return null;c||(f=a(d.prototype,{}));d={cls:d,params:f}}return d}var e=b,f={},g={};e.connect(e,"extend",function(){g={}});this._functionFromScript=function(a,b){var c="",d="",f=a.getAttribute(b+"args")||a.getAttribute("args");f&&e.forEach(f.split(/\s*,\s*/),function(a,b){c+="var "+a+" = arguments["+b+"]; "});(f=a.getAttribute("with"))&&f.length&&e.forEach(f.split(/\s*,\s*/),function(a){c+="with("+a+"){";d+=
"}"});return new Function(c+a.innerHTML+d)};this.instantiate=function(a,f,g){var k=[],f=f||{},g=g||{},l=(g.scope||e._scopeName)+"Type",m="data-"+(g.scope||e._scopeName)+"-";e.forEach(a,function(a){if(a){var h,o,r,q,s,w;a.node?(h=a.node,o=a.type,w=a.fastpath,q=(r=a.clsInfo||o&&c(o,w))&&r.cls,s=a.scripts):(h=a,s=(q=(r=(o=l in f?f[l]:h.getAttribute(l))&&c(o))&&r.cls)&&(q._noScript||q.prototype._noScript)?[]:e.query("> script[type^='dojo/']",h));if(!r)throw Error("Could not load class '"+o);var t={};
g.defaults&&e._mixin(t,g.defaults);a.inherited&&e._mixin(t,a.inherited);if(w){if((r=h.getAttribute(m+"props"))&&r.length)try{r=e.fromJson.call(g.propsThis,"{"+r+"}"),e._mixin(t,r)}catch(z){throw Error(z.toString()+" in data-dojo-props='"+r+"'");}if(r=h.getAttribute(m+"attach-point"))t.dojoAttachPoint=r;if(r=h.getAttribute(m+"attach-event"))t.dojoAttachEvent=r;b.mixin(t,f)}else{var a=h.attributes,B;for(B in r.params)if((o=B in f?{value:f[B],specified:!0}:a.getNamedItem(B))&&(o.specified||b.isIE&&B.toLowerCase()==
"value")){o=o.value;switch(B){case "class":o="className"in f?f.className:h.className;break;case "style":o="style"in f?f.style:h.style&&h.style.cssText}w=r.params[B];t[B]=typeof o=="string"?d(o,w):o}}var G=[],C=[];e.forEach(s,function(a){h.removeChild(a);var b=a.getAttribute(m+"event")||a.getAttribute("event"),c=a.getAttribute("type"),a=e.parser._functionFromScript(a,m);b?c=="dojo/connect"?G.push({event:b,func:a}):t[b]=a:C.push(a)});var A=(s=q.markupFactory||q.prototype&&q.prototype.markupFactory)?
s(t,h,q):new q(t,h);k.push(A);(q=h.getAttribute(m+"id")||h.getAttribute("jsId"))&&e.setObject(q,A);e.forEach(G,function(a){e.connect(A,a.event,null,a.func)});e.forEach(C,function(a){a.call(A)})}});f._started||e.forEach(k,function(a){!g.noStart&&a&&b.isFunction(a.startup)&&!a._started&&(!a.getParent||!a.getParent())&&a.startup()});return k};this.parse=function(a,d){function f(a,e){var g=b.clone(a.inherited);b.forEach(["dir","lang"],function(b){var c=a.node.getAttribute(b);c&&(g[b]=c)});for(var h=a.clsInfo&&
!a.clsInfo.cls.prototype._noScript?a.scripts:null,k=!a.clsInfo||!a.clsInfo.cls.prototype.stopParser||d&&d.template,n=a.node.firstChild;n;n=n.nextSibling)if(n.nodeType==1){var p,B=k&&n.getAttribute(m+"type");p=B?B:k&&n.getAttribute(l);B=B==p;p?(p={type:p,fastpath:B,clsInfo:c(p,B),node:n,scripts:[],inherited:g},e.push(p),f(p,e)):h&&n.nodeName.toLowerCase()=="script"?(p=n.getAttribute("type"))&&/^dojo\/\w/i.test(p)&&h.push(n):k&&f({node:n,inherited:g},e)}}var g;!d&&a&&a.rootNode?(d=a,g=d.rootNode):g=
a;g=g?b.byId(g):b.body();var d=d||{},l=(d.scope||e._scopeName)+"Type",m="data-"+(d.scope||e._scopeName)+"-",n={};if(d&&d.inherited)for(var p in d.inherited)d.inherited[p]&&(n[p]=d.inherited[p]);p=[];f({node:g,inherited:n},p);return this.instantiate(p,d&&d.template?{template:!0}:null,d)}};(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("dijit/_Templated","dojo,dijit,dijit/_Widget,dojo/string,dojo/parser,dojo/cache".split(","),function(b,d){b.declare("dijit._Templated",null,{templateString:null,templatePath:null,widgetsInTemplate:!1,_skipNodeCache:!1,_earlyTemplatedStartup:!1,constructor:function(){this._attachPoints=[];this._attachEvents=[]},_stringRepl:function(a){var c=this.declaredClass,e=this;return b.string.substitute(a,this,function(a,d){d.charAt(0)=="!"&&(a=b.getObject(d.substr(1),!1,e));if(typeof a=="undefined")throw Error(c+
" template:"+d);return a==null?"":d.charAt(0)=="!"?a:a.toString().replace(/"/g,"&quot;")},this)},buildRendering:function(){var a=d._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache),c;if(b.isString(a)){if(c=b._toDom(this._stringRepl(a)),c.nodeType!=1)throw Error("Invalid template: "+a);}else c=a.cloneNode(!0);this.domNode=c;this.inherited(arguments);this._attachTemplateNodes(c);if(this.widgetsInTemplate)a=this._startupWidgets=b.parser.parse(c,{noStart:!this._earlyTemplatedStartup,
template:!0,inherited:{dir:this.dir,lang:this.lang},propsThis:this,scope:"dojo"}),this._supportingWidgets=d.findWidgets(c),this._attachTemplateNodes(a,function(a,b){return a[b]});this._fillContent(this.srcNodeRef)},_fillContent:function(a){var b=this.containerNode;if(a&&b)for(;a.hasChildNodes();)b.appendChild(a.firstChild)},_attachTemplateNodes:function(a,c){for(var c=c||function(a,b){return a.getAttribute(b)},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();)b.isArray(this[h])?this[h].push(g):this[h]=g,this._attachPoints.push(h);if(h=c(g,"dojoAttachEvent")||c(g,"data-dojo-attach-event"))for(var i=h.split(/\s*,\s*/),j=b.trim;h=i.shift();)if(h){var k=null;h.indexOf(":")!=-1?(k=h.split(":"),h=j(k[0]),k=j(k[1])):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(a){a.indexOf("-")!=-1&&(a=a.split("-"),d.setWaiState(g,a[0],a[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:!0}));c=b.string.trim(c);if(e||c.match(/\$\{([^\}]+)\}/g))return f[g]=c;else{a=b._toDom(c);if(a.nodeType!=1)throw Error("Invalid template: "+c);return f[g]=a}};b.isIE&&b.addOnWindowUnload(function(){var a=d._Templated._templateCache,c;for(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/form/_FormWidget","dojo,dijit,dojo/window,dijit/_Widget,dijit/_Templated,dijit/_CssStateMixin".split(","),function(b,d){b.declare("dijit.form._FormWidget",[d._Widget,d._Templated,d._CssStateMixin],{name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:!1,intermediateChanges:!1,scrollOnFocus:!0,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);a?(this._set("hovering",!1),this._set("active",!1),a="tabIndex"in this.attributeMap?this.attributeMap.tabIndex:"focusNode",b.forEach(b.isArray(a)?
a:[a],function(a){a=this[a];b.isWebKit||d.hasDefaultTabStop(a)?a.setAttribute("tabIndex","-1"):a.removeAttribute("tabIndex")},this)):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(a){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,b){return typeof a=="number"&&typeof b=="number"?isNaN(a)&&isNaN(b)?0:a-b:a>b?1:a<b?-1:0},onChange:function(){},_onChangeActive:!1,_handleOnChange:function(a,c){if(this._lastValueReported==void 0&&(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===void 0)&&this._pendingOnChange)if(this._lastValueReported=a,this._pendingOnChange=!1,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=!0},destroy:function(){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:!1,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===void 0)this._lastValueReported=this._resetValue=this.value},_setValueAttr:function(a,
b){this._handleOnChange(a,b)},_handleOnChange:function(a,b){this._set("value",a);this.inherited(arguments)},undo:function(){this._setValueAttr(this._lastValueReported,!1)},reset:function(){this._hasBeenBlurred=!1;this._setValueAttr(this._resetValue,!0)},_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,d=e.style.filter,g=this;c&&c.clientHeight==0;)(function(){var a=g.connect(c,"onscroll",function(){g.disconnect(a);e.style.filter=(new Date).getMilliseconds();setTimeout(function(){e.style.filter=d},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:!1,uppercase:!1,lowercase:!1,propercase:!1,maxLength:"",selectOnClick:!1,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,
b,e){var d;a!==void 0&&(d=this.filter(a),typeof e!="string"&&(e=d!==null&&(typeof d!="number"||!isNaN(d))?this.filter(this.format(d,this.constraints)):""));if(e!=null&&e!=void 0&&(typeof e!="number"||!isNaN(e))&&this.textbox.value!=e)this.textbox.value=e,this._set("displayedValue",this.get("displayedValue"));this._updatePlaceHolder();this.inherited(arguments,[d,b])},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){a===null||a===void 0?a="":typeof a!="string"&&(a=String(a));this.textbox.value=a;this._setValueAttr(this.get("value"),void 0);this._set("displayedValue",this.get("displayedValue"))},
format:function(a){return a==null||a==void 0?"":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"),!1)},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&&(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);b.isMoz||b.isOpera?this.connect(this.textbox,"oninput","_onInput"):(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;this.trim&&(a=b.trim(a));this.uppercase&&(a=a.toUpperCase());this.lowercase&&(a=a.toLowerCase());this.propercase&&(a=a.replace(/[^\s]+/g,function(a){return a.substring(0,1).toUpperCase()+a.substring(1)}));return a},_setBlurValue:function(){this._setValueAttr(this.get("value"),!0)},_onBlur:function(a){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=void 0;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 a;b.isIE?(a=b.doc.selection.createRange(),a=a.parentElement()==this.textbox&&a.text.length==0):a=this.textbox.selectionStart==
this.textbox.selectionEnd;a&&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);isNaN(c)&&(c=0);isNaN(e)&&(e=a.value?a.value.length:0);d.focus(a);g.selection&&b.body().createTextRange?a.createTextRange&&(a=a.createTextRange(),a.collapse(!0),a.moveStart("character",-99999),a.moveStart("character",c),a.moveEnd("character",
e-c),a.select()):f.getSelection&&a.setSelectionRange&&a.setSelectionRange(c,e)};return d.form.TextBox});
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",this.fadeOut.status()=="playing"?this._onDeck=arguments:(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=!0,this.aroundNode=c)},orient:function(a,c,e,d,g){this.connectorNode.style.top=
"";var h=d.w-this.connectorNode.offsetWidth;a.className="dijitTooltip "+{"BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft"}[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",k>j))k=k+b.style(this.domNode,"paddingLeft")+b.style(this.domNode,"paddingRight"),this.domNode.style.width=k+"px";e.charAt(0)=="B"&&c.charAt(0)=="B"?(a=b.marginBox(a),c=this.connectorNode.offsetHeight,a.h>d.h?(this.connectorNode.style.top=d.h-g.h/2-c/2+"px",this.connectorNode.style.bottom=""):(this.connectorNode.style.bottom=Math.min(Math.max(g.h/2-c/2,0),a.h-c)+"px",this.connectorNode.style.top="")):(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=!1,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,b,e,f){if(!d._masterTT)d._masterTT=
new d._MasterTooltip;return d._masterTT.show(a,b,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(a){b.forEach(a,b.hitch(this,"disconnect"))},this);var c=b.isArrayLike(a)?a:a?[a]:[];this._connections=b.map(c,function(a){return(a=b.byId(a))?[this.connect(a,"onmouseenter","_onTargetMouseEnter"),
this.connect(a,"onmouseleave","_onTargetMouseLeave"),this.connect(a,"onfocus","_onTargetFocus"),this.connect(a,"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);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=!0;this._onHover(a)},_onTargetBlur:function(a){this._focus=!1;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(){this._focus||(this._showTimer&&(clearTimeout(this._showTimer),delete this._showTimer),this.close())},open:function(a){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(){this._connectNode&&(d.hideTooltip(this._connectNode),delete this._connectNode,this.onHide());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});
define("dijit/form/ValidationTextBox","dojo,dijit,text!dijit/form/templates/ValidationTextBox.html,dojo/i18n,dijit/form/TextBox,dijit/Tooltip,i18n!dijit/form/nls/validate".split(","),function(b,d){b.declare("dijit.form.ValidationTextBox",d.form.TextBox,{templateString:b.cache("dijit.form","templates/ValidationTextBox.html"),baseClass:"dijitTextBox dijitValidationTextBox",required:!1,promptMessage:"",invalidMessage:"$_unset_$",missingMessage:"$_unset_$",message:"",constraints:{},regExp:".*",regExpGen:function(){return this.regExp},
state:"",tooltipPosition:[],_setValueAttr:function(){this.inherited(arguments);this.validate(this._focused)},validator:function(a,b){return RegExp("^(?:"+this.regExpGen(b)+")"+(this.required?"":"?")+"$").test(a)&&(!this.required||!this._isEmpty(a))&&(this._isEmpty(a)||this.parse(a,b)!==void 0)},_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:!0,validate:function(a){var b="",e=this.disabled||this.isValid(a);if(e)this._maskValidSubsetError=!0;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");this.state=="Error"?(this._maskValidSubsetError=a&&g,b=this.getErrorMessage(a)):this.state=="Incomplete"?(b=this.getPromptMessage(a),this._maskValidSubsetError=!this._hasBeenBlurred||a):f&&(b=this.getPromptMessage(a));this.set("message",b);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 b="";a!=".*"&&this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(a){switch(a.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":b+=a;break;case ")":b+="|$)";break;default:b+="(?:"+a+"|$)"}});
try{"".search(b)}catch(e){b=this.regExp,console.warn("RegExp error in "+this.declaredClass+": "+this.regExp)}this._partialre="^(?:"+b+")$"},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(a){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=!0;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,b){return("min"in b?this.compare(a,b.min)>=0:!0)&&("max"in b?this.compare(a,b.max)<=0:!0)},isInRange:function(){return this.rangeCheck(this.get("value"),this.constraints)},_isDefinitelyOutOfRange:function(){var a=this.get("value"),b=!1,e=!1;
if("min"in this.constraints)b=this.constraints.min,b=this.compare(a,typeof b=="number"&&b>=0&&a!=0?0:b),b=typeof b=="number"&&b<0;if("max"in this.constraints)e=this.constraints.max,e=this.compare(a,typeof e!="number"||e>0?e:0),e=typeof e=="number"&&e>0;return b||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 b=
this.get("value");return b!==null&&b!==""&&b!==void 0&&(typeof b!="number"||!isNaN(b))&&!this.isInRange(a)?this.rangeMessage: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(a){this.inherited(arguments);this.focusNode&&(this.constraints.min!==void 0?d.setWaiState(this.focusNode,"valuemin",this.constraints.min):
d.removeWaiState(this.focusNode,"valuemin"),this.constraints.max!==void 0?d.setWaiState(this.focusNode,"valuemax",this.constraints.max):d.removeWaiState(this.focusNode,"valuemax"))},_setValueAttr:function(a,b){d.setWaiState(this.focusNode,"valuenow",a);this.inherited(arguments)}});return d.form.ValidationTextBox});
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".split(","),function(b,d){b.declare("dijit.form.ComboBoxMixin",d._HasDropDown,{item:null,pageSize:Infinity,store:null,fetchProperties:{},query:{},autoComplete:!0,highlightMatch:"first",searchDelay:100,searchAttr:"name",labelAttr:"",
labelType:"text",queryExpr:"${0}*",ignoreCase:!0,hasDownArrow:!0,templateString:b.cache("dijit.form","templates/DropDownBox.html"),baseClass:"dijitTextBox dijitComboBox",dropDownClass:"dijit.form._ComboBoxMenu",cssStateNodes:{_buttonNode:"dijitDownArrowButton"},maxHeight:-1,_stopClickEvents:!1,_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(d){}}return c},_setCaretPos:function(a,b){b=parseInt(b);d.selectInputText(a,b,b)},_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=!1,d=this.dropDown,g=b.keys,h=null;this._prev_key_backspace=!1;this._abortQuery();this.inherited(arguments);this._opened&&(h=d.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==d.nextButton){this._nextSearch(1);b.stopEvent(a);break}else{if(h==d.previousButton){this._nextSearch(-1);b.stopEvent(a);break}}else this._setBlurValue(),this._setCaretPos(this.focusNode,this.focusNode.value.length);(this._opened||this._fetchHandle)&&a.preventDefault();case g.TAB:c=this.get("displayedValue");if(d&&(c==d._messages.previousMessage||c==d._messages.nextMessage))break;h&&this._selectOption();if(this._opened)this._lastQuery=
null,this.closeDropDown();break;case " ":h?(b.stopEvent(a),this._selectOption(),this.closeDropDown()):e=!0;break;case g.DELETE:case g.BACKSPACE:e=this._prev_key_backspace=!0;break;default:e=typeof c=="string"||c==229}if(e)this.item=void 0,this.searchTimer=setTimeout(b.hitch(this,"_startSearchFromInput"),1)}},_autoCompleteText:function(a){var b=this.focusNode;d.selectInputText(b,b.value.length);var e=this.ignoreCase?"toLowerCase":"substr";if(a[e](0).indexOf(this.focusNode.value[e](0))==0){if(e=this._getCaretPos(b),
e+1>b.value.length)b.value=a,d.selectInputText(b,e)}else b.value=a,d.selectInputText(b)},_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;var d=this.dropDown.createOptions(a,c,b.hitch(this,
"_getMenuLabelFromItem"));this._showResultList();c.direction?(1==c.direction?this.dropDown.highlightFirstOption():-1==c.direction&&this.dropDown.highlightLastOption(),e&&this._announceOption(this.dropDown.getHighlightedOption())):this.autoComplete&&!this._prev_key_backspace&&!/^[*]+$/.test(c.query[this.searchAttr])&&this._announceOption(d[1])}}},_showResultList:function(){this.closeDropDown(!0);this.displayMessage("");this.openDropDown();d.setWaiState(this.domNode,"expanded","true")},loadDropDown:function(){this._startSearchAll()},
isLoaded:function(){return!1},closeDropDown:function(){this._abortQuery();this._opened&&(this.inherited(arguments),d.setWaiState(this.domNode,"expanded","false"),d.removeWaiState(this.focusNode,"activedescendant"))},_setBlurValue:function(){var a=this.get("displayedValue"),b=this.dropDown;b&&(a==b._messages.previousMessage||a==b._messages.nextMessage)?this._setValueAttr(this._lastValueReported,!0):typeof this.item=="undefined"?(this.item=null,this.set("displayedValue",a)):(this.value!=this._lastValueReported&&
d.form._FormValueWidget.prototype._setValueAttr.call(this,this.value,!0),this._refreshState())},_onBlur:function(){this.closeDropDown();this.inherited(arguments)},_setItemAttr:function(a,b,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,b,e)},_announceOption:function(a){if(a){var c;a==this.dropDown.nextButton||a==this.dropDown.previousButton?(c=a.innerHTML,
this.item=void 0,this.value=""):(c=this.store.getValue(a.item,this.searchAttr).toString(),this.set("item",a.item,!1,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,
!0)},_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,!1))({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(a,c){this.searchTimer=null;var d={queryOptions:{ignoreCase:this.ignoreCase,deep:!0},query:a,onBegin:b.hitch(this,"_setMaxOptions"),onComplete:b.hitch(this,"_openResultList"),onError:function(a){c._fetchHandle=null;console.error("dijit.form.ComboBox: "+a);c.closeDropDown()},start:0,count:this.pageSize};b.mixin(d,c.fetchProperties);this._fetchHandle=
c.store.fetch(d);this._nextSearch=this.dropDown.onPage=b.hitch(this,function(a,b){a.start+=a.count*b;a.direction=b;this._fetchHandle=this.store.fetch(a);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),!("value"in this.params))){var a=
this.item=this.store.fetchSelectedItem();if(a){var b=this._getValueField();this.value=this.store.getValue(a,b)}}this.inherited(arguments)},postCreate:function(){var a=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){var a=this.labelFunc(a,this.store),b=this.labelType;this.highlightMatch!=
"none"&&this.labelType=="text"&&this._lastInput&&(a=this.doHighlight(a,this._escapeHtml(this._lastInput)),b="html");return{html:b=="html",label:a}},doHighlight:function(a,c){var e=(this.ignoreCase?"i":"")+(this.highlightMatch=="all"?"g":""),d=this.queryExpr.indexOf("${0}"),c=b.regexp.escapeString(c);return this._escapeHtml(a).replace(RegExp((d==0?"^":"")+"("+c+")"+(d==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,b){return b.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"}),d=c(a);d.html?e.innerHTML=d.label:e.appendChild(b.doc.createTextNode(d.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(a,c){var d=this._createOption(a,e);b.attr(d,"id",this.id+c);this.domNode.insertBefore(d,
this.nextButton)},this);var d=!1;c._maxOptions&&c._maxOptions!=-1?c.start+c.count<c._maxOptions?d=!0:c.start+c.count>c._maxOptions&&c.count==a.length&&(d=!0):c.count==a.length&&(d=!0);this.nextButton.style.display=d?"":"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},!0)}},_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,d=b.style(this.domNode,"height");for(this.getHighlightedOption()||this._highlightNextOption();c<d;){if(a){if(!this.getHighlightedOption().previousSibling||this._highlighted_option.previousSibling.style.display==
"none")break;this._highlightPrevOption()}else{if(!this.getHighlightedOption().nextSibling||this._highlighted_option.nextSibling.style.display=="none")break;this._highlightNextOption()}var g=this.domNode.scrollTop;c+=(g-e)*(a?-1:1);e=g}},pageUp:function(){this._page(!0)},pageDown:function(){this._page(!1)},getHighlightedOption:function(){var a=this._highlighted_option;return a&&a.parentNode?a:null},handleKey:function(a){switch(a.charOrCode){case b.keys.DOWN_ARROW:return this._highlightNextOption(),
!1;case b.keys.PAGE_DOWN:return this.pageDown(),!1;case b.keys.UP_ARROW:return this._highlightPrevOption(),!1;case b.keys.PAGE_UP:return this.pageUp(),!1;default:return!0}}});b.declare("dijit.form.ComboBox",[d.form.ValidationTextBox,d.form.ComboBoxMixin],{_setValueAttr:function(a,b,e){this._set("item",null);a||(a="");d.form.ValidationTextBox.prototype._setValueAttr.call(this,a,b,e)}});b.declare("dijit.form._ComboBoxDataStore",null,{constructor:function(a){this.root=a;if(a.tagName!="SELECT"&&a.firstChild)a=
b.query("select",a),a.length>0?a=a[0]:(this.root.innerHTML="<SELECT>"+this.root.innerHTML+"</SELECT>",a=this.root.firstChild),this.root=a;b.query("> option",a).forEach(function(a){a.innerHTML=b.trim(a.innerHTML)})},getValue:function(a,b){return b=="value"?a.value:a.innerText||a.textContent||""},isItemLoaded:function(){return!0},getFeatures:function(){return{"dojo.data.api.Read":!0,"dojo.data.api.Identity":!0}},_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),d=b.query("> option",this.root).filter(function(a){return(a.innerText||a.textContent||"").match(e)});a.sort&&d.sort(b.data.util.sorter.createSortFunction(a.sort,this));c(d,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("dijit/MenuItem","dojo,dijit,text!dijit/templates/MenuItem.html,dijit/_Widget,dijit/_Templated,dijit/_Contained,dijit/_CssStateMixin".split(","),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:!1,_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);this.accelKeyNode&&(b.attr(this.accelKeyNode,"id",this.id+"_accel"),a+=" "+this.id+"_accel");d.setWaiState(this.domNode,"labelledby",a);b.setSelectable(this.domNode,!1)},_onHover:function(){this.getParent().onItemHover(this)},_onUnhover:function(){this.getParent().onItemUnhover(this);
this._set("hovering",!1)},_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(!0);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/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:!1,_setCheckedAttr:function(a){b.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",a);d.setWaiState(this.domNode,"checked",a);this._set("checked",a)},onChange:function(){},_onClick:function(a){this.disabled||(this.set("checked",!this.checked),this.onChange(this.checked));
this.inherited(arguments)}});return d.CheckedMenuItem});
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(){this.popup&&(this.popup._destroyed||this.popup.destroyRecursive(),delete this.popup);this.inherited(arguments)}});return d.PopupMenuItem});
define("dijit/MenuSeparator","dojo,dijit,text!dijit/templates/MenuSeparator.html,dijit/_Widget,dijit/_Templated,dijit/_Contained".split(","),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,!1)},isFocusable:function(){return!1}});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".split(","),function(b,d){b.declare("dijit._MenuBase",[d._Widget,d._Templated,d._KeyNavContainer],{parentMenu:null,popupDelay:500,startup:function(){this._started||(b.forEach(this.getChildren(),function(a){a.startup()}),this.startupKeyNavChildren(),this.inherited(arguments))},onExecute:function(){},
onCancel:function(){},_moveToPopup:function(a){this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled?this.focusedChild._onClick(a):(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(!1);a.focusedChild=this.currentPopup.from_item;a.focusedChild._setSelected(!0);this._stopPendingCloseTimer(this.currentPopup)}},onItemHover:function(a){if(this.isActive&&
(this.focusChild(a),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(!1);var b=a.popup;if(b)this._stopPendingCloseTimer(b),b._pendingClose_timer=setTimeout(function(){b._pendingClose_timer=null;if(b.parentMenu)b.parentMenu.currentPopup=null;d.popup.close(b)},this.popupDelay)},onItemUnhover:function(a){this.isActive&&
this._stopPopupTimer();if(this._hoveredChild==a)this._hoveredChild=null},_stopPopupTimer:function(){if(this.hover_timer)clearTimeout(this.hover_timer),this.hover_timer=null},_stopPendingCloseTimer:function(a){if(a._pendingClose_timer)clearTimeout(a._pendingClose_timer),a._pendingClose_timer=null},_stopFocusTimer:function(){if(this._focus_timer)clearTimeout(this._focus_timer),this._focus_timer=null},_getTopMenu:function(){for(var a=this;a.parentMenu;a=a.parentMenu);return a},onItemClick:function(a,
b){typeof this.isShowingNow=="undefined"&&this._markActive();this.focusChild(a);if(a.disabled)return!1;a.popup?this._openPopup():(this.onExecute(),a.onClick(b))},_openPopup:function(){this._stopPopupTimer();var a=this.focusedChild;if(a){var c=a.popup;if(!c.isShowingNow){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(!0);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=!0;b.replaceClass(this.domNode,"dijitMenuActive","dijitMenuPassive")},onOpen:function(){this.isShowingNow=
!0;this._markActive()},_markInactive:function(){this.isActive=!1;b.replaceClass(this.domNode,"dijitMenuPassive","dijitMenuActive")},onClose:function(){this._stopFocusTimer();this._markInactive();this.isShowingNow=!1;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(!1),
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:!1,
leftClickToOpen:!1,refocus:!0,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)if(this.parentMenu._isMenuBar)this.parentMenu.focusPrev();
else this.onCancel(!1);else b.stopEvent(a)}},_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){var a=b.byId(a),c;if(a.tagName.toLowerCase()=="iframe"){var e=a,d=this._iframeContentWindow(e);c=
b.withGlobal(d,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(a){return[b.connect(a,this.leftClickToOpen?"onclick":"oncontextmenu",this,function(a){b.stopEvent(a);this._scheduleOpen(a.target,e,{x:a.pageX,y:a.pageY})}),b.connect(a,"onkeydown",this,function(a){a.shiftKey&&a.keyCode==b.keys.F10&&(b.stopEvent(a),this._scheduleOpen(a.target,e))})]});g.connects=c?h(c):[];if(e)g.onloadHandler=b.hitch(this,
function(){var a=this._iframeContentWindow(e);c=b.withGlobal(a,b.body);g.connects=h(c)}),e.addEventListener?e.addEventListener("load",g.onloadHandler,!1):e.attachEvent("onload",g.onloadHandler)},unBindDomNode:function(a){var c;try{c=b.byId(a)}catch(d){return}a="_dijitMenu"+this.id;if(c&&b.hasAttr(c,a)){var f=b.attr(c,a)-1,g=this._bindings[f];b.forEach(g.connects,b.disconnect);var h=g.iframe;h&&(h.removeEventListener?h.removeEventListener("load",g.onloadHandler,!1):h.detachEvent("onload",g.onloadHandler));
b.removeAttr(c,a);delete this._bindings[f]}},_scheduleOpen:function(a,c,d){if(!this._openTimer)this._openTimer=setTimeout(b.hitch(this,function(){delete this._openTimer;this._openMyself({target:a,iframe:c,coords:d})}),1)},_openMyself:function(a){function c(){k.refocus&&d.focus(l);d.popup.close(k)}var e=a.target,f=a.iframe;if(a=a.coords){if(f){var e=b.position(f,!0),g=this._iframeContentWindow(f),g=b.withGlobal(g,"_docScroll",b),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,!0),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("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 d=b.window.getBox();c.top=d.t+"px";c.left=d.l+"px";a.width=d.w+"px";a.height=d.h+"px";c.display="block"},show:function(){this.domNode.style.display="block";this.layout();this.bgIframe=new d.BackgroundIframe(this.domNode)},hide:function(){this.bgIframe.destroy();delete this.bgIframe;this.domNode.style.display="none"}});return d.DialogUnderlay});
define("dijit/form/Form","dojo,dijit,dijit/_Widget,dijit/_Templated,dijit/form/_FormMixin,dijit/layout/_ContentPaneResizeMixin".split(","),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 b={returnValue:!0,preventDefault:function(){this.returnValue=!1},stopPropagation:function(){},currentTarget:a?a.target:this.domNode,target:a?a.target:this.domNode};this.onReset(b)!==!1&&b.returnValue&&this.inherited(arguments,[])},onReset:function(){return!0},_onReset:function(a){this.reset(a);b.stopEvent(a);return!1},_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)===!1&&b.stopEvent(a)},onSubmit:function(){return this.isValid()},submit:function(){this.onSubmit()!==!1&&this.containerNode.submit()}});return d.form.Form});
define("dijit/ProgressBar","dojo,dijit,text!dijit/templates/ProgressBar.html,dojo/fx,dojo/number,dijit/_Widget,dijit/_Templated".split(","),function(b,d){b.declare("dijit.ProgressBar",[d._Widget,d._Templated],{progress:"0",value:"",maximum:100,places:0,indeterminate:!1,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||{});var a=this.internalProgress,c=this.domNode,e=1;this.indeterminate?(d.removeWaiState(c,"valuenow"),d.removeWaiState(c,"valuemin"),d.removeWaiState(c,"valuemax")):(String(this.progress).indexOf("%")!=-1?(e=Math.min(parseFloat(this.progress)/
100,1),this.progress=e*this.maximum):(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:!0}):this.update({indeterminate:!1,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("dojo/dnd/Container",["dojo","dojo/dnd/common","dojo/parser"],function(b){b.declare("dojo.dnd.Container",null,{skipForm:!1,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(b){return this.map[b]},setItem:function(b,a){this.map[b]=a},delItem:function(b){delete this.map[b]},forInItems:function(d,a){var a=a||b.global,c=this.map,e=b.dnd._empty,f;for(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();var c=a.getAttribute("dndType"),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(b,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<b.length;++a){var e=this._normalizedCreator(b[a]);
this.setItem(e.node.id,{data:e.data,type:e.type});this.parent.insertBefore(e.node,c)}else for(a=0;a<b.length;++a)e=this._normalizedCreator(b[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=!0;return new b.dnd.Container(a,d)},startup:function(){if(!this.parent&&(this.parent=this.node,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(b){for(var a=b.relatedTarget;a;){if(a==this.node)break;try{a=a.parentNode}catch(c){a=null}}a||(this._changeState("Container","Over"),this.onOverEvent());a=this._getChildByEvent(b);if(this.current!=a)this.current&&this._removeItemClass(this.current,"Over"),a&&this._addItemClass(a,"Over"),this.current=a},onMouseOut:function(b){for(b=
b.relatedTarget;b;){if(b==this.node)return;try{b=b.parentNode}catch(a){b=null}}if(this.current)this._removeItemClass(this.current,"Over"),this.current=null;this._changeState("Container","");this.onOutEvent()},onSelectStart:function(d){(!this.skipForm||!b.dnd.isFormElement(d))&&b.stopEvent(d)},onOverEvent:function(){},onOutEvent:function(){},_changeState:function(d,a){var c="dojoDnd"+d,e=d.toLowerCase()+"State";b.replaceClass(this.node,c+a,c+this[e]);this[e]=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){var c=(this.creator||this.defaultCreator).call(this,d,a);if(!b.isArray(c.type))c.type=["text"];if(!c.node.id)c.node.id=b.dnd.getUniqueId();b.addClass(c.node,"dojoDndItem");return c}});b.dnd._createNode=function(d){return!d?b.dnd._createSpan:
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){var d=d.tagName.toLowerCase(),a=d=="tbody"||d=="thead"?b.dnd._createTrTd:b.dnd._createNode(b.dnd._defaultCreatorNodes[d]);return function(c,e){var d=c&&b.isObject(c),g,h;d&&c.tagName&&c.nodeType&&
c.getAttribute?(g=c.getAttribute("dndData")||c.innerHTML,d=(d=c.getAttribute("dndType"))?d.split(/\s*,\s*/):["text"],h=c):(g=d&&c.data?c.data:c,d=d&&c.type?c.type:["text"],h=(e=="avatar"?b.dnd._createSpan:a)(String(g)));if(!h.id)h.id=b.dnd.getUniqueId();return{node:h,data:g,type:d}}};return b.dnd.Container});
define("dijit/tree/_dndContainer",["dojo","dijit","dojo/dnd/common","dojo/dnd/Container"],function(b,d){b.getObject("tree",!0,b);d.tree._compareNodes=function(a,b){if(a===b)return 0;if("sourceIndex"in document.documentElement)return a.sourceIndex-b.sourceIndex;else if("compareDocumentPosition"in document.documentElement)return a.compareDocumentPosition(b)&2?1:-1;else if(document.createRange){var d=doc.createRange();d.setStartBefore(a);var f=doc.createRange();f.setStartBefore(b);return d.compareBoundaryPoints(d.END_TO_END,
f)}else throw Error("dijit.tree._compareNodes don't know how to compare two different nodes in this browser");};b.declare("dijit.tree._dndContainer",null,{constructor:function(a,c){this.tree=a;this.node=a.domNode;b.mixin(this,c);this.map={};this.current=null;this.containerState="";b.addClass(this.node,"dojoDndContainer");this.events=[b.connect(this.node,"onmouseenter",this,"onOverEvent"),b.connect(this.node,"onmouseleave",this,"onOutEvent"),b.connect(this.tree,"_onNodeMouseEnter",this,"onMouseOver"),
b.connect(this.tree,"_onNodeMouseLeave",this,"onMouseOut"),b.connect(this.node,"ondragstart",b,"stopEvent"),b.connect(this.node,"onselectstart",b,"stopEvent")]},getItem:function(a){return{data:this.selection[a],type:["treeNode"]}},destroy:function(){b.forEach(this.events,b.disconnect);this.node=this.parent=null},onMouseOver:function(a){this.current=a},onMouseOut:function(){this.current=null},_changeState:function(a,c){var d="dojoDnd"+a,f=a.toLowerCase()+"State";b.replaceClass(this.node,d+c,d+this[f]);
this[f]=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:!1,getSelectedTreeNodes:function(){var a=
[],b=this.selection,d;for(d in b)a.push(b[d]);return a},selectNone:function(){this.setSelection([]);return this},destroy:function(){this.inherited(arguments);this.selection=this.anchor=null},addTreeNode:function(a,b){this.setSelection(this.getSelectedTreeNodes().concat([a]));if(b)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(a){a.setSelected(!1);this.anchor==a&&delete this.anchor;delete this.selection[a.id]}));b.forEach(this._setDifference(a,c),b.hitch(this,function(a){a.setSelected(!0);this.selection[a.id]=a}));this._updateSelectionProperties()},_setDifference:function(a,c){b.forEach(c,function(a){a.__exclude__=!0});var d=b.filter(a,function(a){return!a.__exclude__});b.forEach(c,function(a){delete a.__exclude__});return d},_updateSelectionProperties:function(){var a=
this.getSelectedTreeNodes(),c=[],d=[];b.forEach(a,function(a){d.push(a);c.push(a.getTreePath())});a=b.map(d,function(a){return a.item});this.tree._set("paths",c);this.tree._set("path",c[0]||[]);this.tree._set("selectedNodes",d);this.tree._set("selectedNode",d[0]||null);this.tree._set("selectedItems",a);this.tree._set("selectedItem",a[0]||null)},onMouseDown:function(a){if(this.current&&!this.tree.isExpandoNode(a.target,this.current)&&a.button!=b.mouseButtons.RIGHT){b.stopEvent(a);var c=this.current,
d=b.isCopyKey(a),f=c.id;!this.singular&&!a.shiftKey&&this.selection[f]?this._doDeselect=!0:(this._doDeselect=!1,this.userSelect(c,d,a.shiftKey))}},onMouseUp:function(a){if(this._doDeselect)this._doDeselect=!1,this.userSelect(this.current,b.isCopyKey(a),a.shiftKey)},onMouseMove:function(){this._doDeselect=!1},userSelect:function(a,b,e){if(this.singular)this.anchor==a&&b?this.selectNone():(this.setSelection([a]),this.anchor=a);else if(e&&this.anchor){e=this.anchor;d.tree._compareNodes(this.anchor.rowNode,
a.rowNode)<0?b=e:(b=a,a=e);for(nodes=[];b!=a;)nodes.push(b),b=this.tree._getNextNode(b);nodes.push(a);this.setSelection(nodes)}else this.selection[a.id]&&b?this.removeTreeNode(a):b?this.addTreeNode(a,!0):(this.setSelection([a]),this.anchor=a)},forInSelectedItems:function(a,c){var c=c||b.global,d;for(d in this.selection)a.call(c,this.getItem(d),d,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".split(","),function(b,d){b.declare("dijit._TreeNode",[d._Widget,d._Templated,d._Container,d._Contained,d._CssStateMixin],{item:null,isTreeNode:!0,label:"",isExpandable:null,isExpanded:!1,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(!1)},
_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(b){b.set("indent",a+1)});this._set("indent",a)},markProcessing:function(){this.state="LOADING";this._setExpando(!0)},unmarkProcessing:function(){this._setExpando(!1)},_updateItemClasses:function(a){var b=this.tree,d=b.model;b._v10Compat&&a===d.root&&(a=null);
this._applyClassAndStyle(a,"icon","Icon");this._applyClassAndStyle(a,"label","Label");this._applyClassAndStyle(a,"row","Row")},_applyClassAndStyle:function(a,c,d){var f="_"+c+"Class";c+="Node";var g=this[f];this[f]=this.tree["get"+d+"Class"](a,this.isExpanded);b.replaceClass(this[c],this[f]||"",g||"");b.style(this[c],this.tree["get"+d+"Style"](a,this.isExpanded)||{})},_updateLayout:function(){var a=this.getParent();!a||a.rowNode.style.display=="none"?b.addClass(this.domNode,"dijitTreeIsRoot"):b.toggleClass(this.domNode,
"dijitTreeIsLast",!this.getNextSibling())},_setExpando:function(a){var c=["dijitTreeExpandoLoading","dijitTreeExpandoOpened","dijitTreeExpandoClosed","dijitTreeExpandoLeaf"],a=a?0:this.isExpandable?this.isExpanded?1:2:3;b.replaceClass(this.expandoNode,c[a],c);this.expandoNodeText.innerHTML=["*","-","+","*"][a]},expand:function(){if(this._expandDeferred)return this._expandDeferred;this._wipeOut&&this._wipeOut.stop();this.isExpanded=!0;d.setWaiState(this.labelNode,"expanded","true");(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(!0)}});a=this._expandDeferred=new b.Deferred(function(){c.stop()});c.play();return a},collapse:function(){if(this.isExpanded){this._expandDeferred&&
(this._expandDeferred.cancel(),delete this._expandDeferred);this.isExpanded=!1;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(a){d._Container.prototype.removeChild.call(this,a)},this);this.state="LOADED";a&&a.length>0?(this.isExpandable=!0,b.forEach(a,function(a){var b=e.getIdentity(a),d=c._itemNodesMap[b],j;if(d)for(var k=0;k<d.length;k++)if(d[k]&&!d[k].getParent()){j=d[k];j.set("indent",this.indent+1);break}j||(j=this.tree._createTreeNode({item:a,tree:c,isExpandable:e.mayHaveChildren(a),label:c.getLabel(a),tooltip:c.getTooltip(a),dir:c.dir,lang:c.lang,indent:this.indent+1}),d?
d.push(j):c._itemNodesMap[b]=[j]);this.addChild(j);(this.tree.autoExpand||this.tree._state(a))&&f.push(c._expandNode(j))},this),b.forEach(this.getChildren(),function(a){a._updateLayout()})):this.isExpandable=!1;this._setExpando&&this._setExpando(!1);this._updateItemClasses(this.item);if(this==c.rootNode)(a=this.tree.showRoot?this:this.getChildren()[0])?(a.setFocusable(!0),c.lastFocused=a):c.domNode.setAttribute("tabIndex","0");return new b.DeferredList(f)},getTreePath:function(){for(var a=this,b=
[];a&&a!==this.tree.rootNode;)b.unshift(a.item),a=a.getParent();b.unshift(this.tree.rootNode.item);return b},getIdentity:function(){return this.tree.model.getIdentity(this.item)},removeChild:function(a){this.inherited(arguments);var c=this.getChildren();if(c.length==0)this.isExpandable=!1,this.collapse();b.forEach(c,function(a){a._updateLayout()})},makeExpandable:function(){this.isExpandable=!0;this._setExpando(!1)},_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:!0,childrenAttr:["children"],
paths:[],path:[],selectedItems:null,selectedItem:null,openOnClick:!1,openOnDblClick:!1,templateString:b.cache("dijit","templates/Tree.html"),persist:!0,autoExpand:!1,dndController:"dijit.tree._dndSelector",dndParams:"onDndDrop,itemCreator,onDndCancel,checkAcceptance,checkItemAcceptance,dragThreshold,betweenThreshold".split(","),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=!1;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++)this[this.dndParams[c]]&&(a[this.dndParams[c]]=this[this.dndParams[c]]);this.dndController=new this.dndController(this,a)}},_store2model:function(){this._v10Compat=!0;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(a,b,d){this.getItemChildren(this._v10Compat&&a===this.model.root?null:a,b,d)});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:!0,
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);this._itemNodesMap[a]?this._itemNodesMap[a].push(c):this._itemNodesMap[a]=[c];c._updateLayout();this._expandNode(c).addCallback(b.hitch(this,function(){this._loadDeferred.callback(!0);this.onLoad()}))}),function(a){console.error(this,
": error loading root: ",a)})},getNodesByItem:function(a){return!a?[]:[].concat(this._itemNodesMap[b.isString(a)?a:this.model.getIdentity(a)])},_setSelectedItemAttr:function(a){this.set("selectedItems",[a])},_setSelectedItemsAttr:function(a){var c=this;this._loadDeferred.addCallback(b.hitch(this,function(){var d=b.map(a,function(a){return!a||b.isString(a)?a:c.model.getIdentity(a)}),f=[];b.forEach(d,function(a){f=f.concat(c._itemNodesMap[a]||[])});this.set("selectedNodes",f)}))},_setPathAttr:function(a){return a.length?
this.set("paths",[a]):this.set("paths",[])},_setPathsAttr:function(a){function c(a,g,h){var i=a.shift(),j=b.filter(g,function(a){return a.getIdentity()==i})[0];j?a.length?d._expandNode(j).addCallback(function(){c(a,j.getChildren(),h)}):h.callback(j):h.errback("Could not expand path at "+i)}var d=this;return(new b.DeferredList(b.map(a,function(a){var g=new b.Deferred,a=b.map(a,function(a){return b.isString(a)?a:d.model.getIdentity(a)});a.length?d._loadDeferred.addCallback(function(){c(a,[d.rootNode],
g)}):g.errback("Empty path");return g}))).addCallback(function(a){d.set("selectedNodes",b.map(b.filter(a,function(a){return a[0]}),function(a){return a[1]}))})},_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,b){return!a||this.model.mayHaveChildren(a)?
b?"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!=" ")!a.altKey&&!a.ctrlKey&&!a.shiftKey&&!a.metaKey&&(this._onLetterKeyNav({node:e,key:f.toLowerCase()}),b.stopEvent(a));else{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;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){var a=a.node,b=a.getPreviousSibling();if(b)for(a=b;a.isExpandable&&a.isExpanded&&a.hasChildren();)a=a.getChildren(),a=a[a.length-1];else if(b=a.getParent(),this.showRoot||b!==this.rootNode)a=b;a&&a.isTreeNode&&this.focusNode(a)},_onRightArrow:function(a){a=
a.node;a.isExpandable&&!a.isExpanded?this._expandNode(a):a.hasChildren()&&(a=a.getChildren()[0])&&a.isTreeNode&&this.focusNode(a)},_onLeftArrow:function(a){a=a.node;a.isExpandable&&a.isExpanded?this._collapseNode(a):(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 b=this._curSearch;b?(b.pattern+=a.key,clearTimeout(b.timer)):b=this._curSearch={pattern:a.key,startNode:a.node};var d=this;b.timer=setTimeout(function(){delete d._curSearch},this.multiCharSearchDuration);a=b.startNode;do(a=this._getNextNode(a))||(a=this._getRootOrFirstNode());while(a!==b.startNode&&a.label.toLowerCase().substr(0,b.pattern.length)!=b.pattern);a&&a.isTreeNode&&a!==b.startNode&&this.focusNode(a)},isExpandoNode:function(a,c){return b.isDescendant(a,
c.expandoNode)},_onClick:function(a,c){var d=this.isExpandoNode(c.target,a);this.openOnClick&&a.isExpandable||d?a.isExpandable&&this._onExpandoClick({node:a}):(this._publish("execute",{item:a.item,node:a,evt:c}),this.onClick(a.item,a,c),this.focusNode(a));b.stopEvent(c)},_onDblClick:function(a,c){var d=c.target,d=d==a.expandoNode||d==a.expandoNodeText;this.openOnDblClick&&a.isExpandable||d?a.isExpandable&&this._onExpandoClick({node:a}):(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 b=a.getNextSibling();if(b)return b;a=a.getParent()}return null}},_getRootOrFirstNode:function(){return this.showRoot?this.rootNode:this.rootNode.getChildren()[0]},
_collapseNode:function(a){a._expandNodeDeferred&&delete a._expandNodeDeferred;a.isExpandable&&a.state!="LOADING"&&(a.collapse(),this.onClose(a.item,a),a.item&&(this._state(a.item,!1),this._saveState()))},_expandNode:function(a,c){if(a._expandNodeDeferred&&!c)return a._expandNodeDeferred;var d=this.model,f=a.item,g=this;switch(a.state){case "UNCHECKED":a.markProcessing();var h=a._expandNodeDeferred=new b.Deferred;d.getChildren(f,function(b){a.unmarkProcessing();var b=a.setChildItems(b),c=g._expandNode(a,
!0);b.addCallback(function(){c.addCallback(function(){h.callback()})})},function(a){console.error(g,": error loading root children: ",a)});break;default:h=a._expandNodeDeferred=a.expand(),this.onOpen(a.item,a),f&&(this._state(f,!0),this._saveState())}return h},focusNode:function(a){d.focus(a.labelNode)},_onNodeFocus:function(a){if(a&&a!=this.lastFocused)this.lastFocused&&!this.lastFocused._destroyed&&this.lastFocused.setFocusable(!1),a.setFocusable(!0),this.lastFocused=a},_onNodeMouseEnter:function(){},
_onNodeMouseLeave:function(){},_onItemChange:function(a){var c=this._itemNodesMap[this.model.getIdentity(a)];if(c){var d=this.getLabel(a),f=this.getTooltip(a);b.forEach(c,function(b){b.set({item:a,label:d,tooltip:f});b._updateItemClasses(a)})}},_onItemChildrenChange:function(a,c){var d=this._itemNodesMap[this.model.getIdentity(a)];d&&b.forEach(d,function(a){a.setChildItems(c)})},_onItemDelete:function(a){var a=this.model.getIdentity(a),c=this._itemNodesMap[a];c&&(b.forEach(c,function(a){this.dndController.removeTreeNode(a);
var b=a.getParent();b&&b.removeChild(a);a.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(a){this._openedItemIds[a]=!0},this)}},_state:function(a,b){if(!this.persist)return!1;var d=this.model.getIdentity(a);if(arguments.length===1)return this._openedItemIds[d];b?this._openedItemIds[d]=!0:delete this._openedItemIds[d]},_saveState:function(){if(this.persist){var a=
[],c;for(c in this._openedItemIds)a.push(c);b.cookie(this.cookieName,a.join(","),{expires:365})}},destroy:function(){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;
this.tree.rootNode&&this.tree.rootNode.set("indent",this.showRoot?0:-1)},_createTreeNode:function(a){return new d._TreeNode(a)}});return d.Tree});
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(b,d){a.push(d.item)});return a},_getSelectedNodes:function(){var a=[];this._forEachSelectedNode(function(b,d){a.push(d)});
return a},_forEachSelectedNode:function(a){var b=this.selectedNodes,d;for(d in b)b.hasOwnProperty(d)&&a(d,b[d])},_createTreeNode:function(a){return new orion.widgets._ExplorerTreeNode(a)},_eatSelectionEvent:function(a){(b.isCopyKey(a)||a.shiftKey)&&b.stopEvent(a)},_onClick:function(a,c){var d=c.target,f=d===a.expandoNode||d===a.expandoNodeText,d=d===a.followNode;if(b.isCopyKey(c))this._toggleSelectNode(a),this.focusNode(a);else if(c.shiftKey)this.selectedNode&&(this._selectRange(this.selectedNode,
a),this.focusNode(a));else{if(d)this.onFollowClick(a.item,a,c);else this.openOnClick&&a.isExpandable||f?a.isExpandable&&this._onExpandoClick({node:a}):(this._publish("execute",{item:a.item,node:a,evt:c}),this.onClick(a.item,a,c),this.focusNode(a));!f&&!d&&this._selectNode(a)}d||b.stopEvent(c)},_onItemDelete:function(a){var c=this._itemNodesMap[this.model.getIdentity(a)];if(c){var d=this;b.forEach(c,function(a){d._removeFromSelection(a)})}this.inherited(arguments)},_getVisibleAncestor:function(a){if(!a)return null;
for(var b=a.getParent();b&&(!b.isExpandable||!b.isExpanded);)a=b,b=b.getParent();return a},_toggleSelectNode:function(a){this.selectedNodes[a.get("id")]?(a.setSelected(!1),this._removeFromSelection(a)):(a.setSelected(!0),this._addToSelection(a))},_addToSelection:function(a){this.selectedNodes[a.get("id")]=a},_removeFromSelection:function(a){delete this.selectedNodes[a.get("id")]},_selectRange:function(a,b){function d(a,b){var c=[],e=a;do c.push(e),e=h._getNextNode(e);while(e&&e!==b);return e===b?
(c.push(b),c):null}var f=this._getVisibleAncestor(a),g=this._getVisibleAncestor(b);if(f&&g)if(f===g)this._selectNode(f);else{var h=this,i=d(f,g);i?this._selectNodes(i.reverse(),!0):(i=d(g,f))?this._selectNodes(i,!0):console.debug("Warning: couldn't select range from "+f.label+" to "+g.label)}},_selectNode:function(a){this._selectNodes(a?[a]:null)},_selectNodes:function(a){this._forEachSelectedNode(function(a,b){b._destroyed||b.setSelected(!1)});this.selectedNodes={};if(a)for(var b=0;b<a.length;b++){var d=
a[b];d.setSelected(!0);this._addToSelection(d);this.selectedNode=d}}})});
define("dojo/hash",["dojo"],function(b){(function(){function d(a,b){var c=a.indexOf(b);return c>=0?a.substring(c+1):""}function a(){return d(location.href,"#")}function c(){b.publish("/dojo/hashchange",[a()])}function e(){a()!==h&&(h=a(),c())}function f(a){if(i)if(i.isTransitioning())setTimeout(b.hitch(null,f,a),k);else{var c=i.iframe.location.href,d=c.indexOf("?");i.iframe.location.replace(c.substring(0,d)+"?"+a)}else location.replace("#"+a),!j&&e()}function g(){function e(){h=a();i=s?h:d(w.href,
"?");j=!1;r=null}var f=document.createElement("iframe"),g=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");f.id="dojo-hash-iframe";f.src=g+"?"+a();f.style.display="none";document.body.appendChild(f);this.iframe=b.global["dojo-hash-iframe"];
var i,j,r,q,s,w=this.iframe.location;this.isTransitioning=function(){return j};this.pollLocation=function(){if(!s)try{var t=d(w.href,"?");if(document.title!=q)q=this.iframe.document.title=document.title}catch(z){s=!0,console.error("dojo.hash: Error adding history entry. Server unreachable.")}var B=a();if(j&&h===B)if(s||t===r)e(),c();else{setTimeout(b.hitch(this,this.pollLocation),0);return}else if(!(h===B&&(s||i===t)))if(h!==B){h=B;j=!0;r=B;f.src=g+"?"+r;s=!1;setTimeout(b.hitch(this,this.pollLocation),
0);return}else if(!s)location.href="#"+w.search.substring(1),e(),c();setTimeout(b.hitch(this,this.pollLocation),k)};e();setTimeout(b.hitch(this,this.pollLocation),k)}b.hash=function(b,c){if(!arguments.length)return a();b.charAt(0)=="#"&&(b=b.substring(1));c?f(b):location.href="#"+b;return b};var h,i,j,k=b.config.hashPollFrequency||100;b.addOnLoad(function(){"onhashchange"in b.global&&(!b.isIE||b.isIE>=8&&document.compatMode!="BackCompat")?j=b.connect(b.global,"onhashchange",c):document.addEventListener?
(h=a(),setInterval(e,k)):document.attachEvent&&(i=new g)})})();return b.hash});
define("orion/util",["i18n!orion/nls/messages","dojo","dijit","dojo/hash","dijit/form/ValidationTextBox"],function(b,d,a){function c(a){var b=window.navigator.platform.indexOf("Mac")!==-1;return b&&a.metaKey||!b&&a.ctrlKey}function e(a){return typeof a.textContent!=="undefined"?a.textContent:a.innerText}return{getUserKeyString:function(a){var b="",c=navigator.platform.indexOf("Mac")!==-1;a.mod1&&(b+=c?"Cmd+":"Ctrl+");a.mod2&&(b+="Shift+");a.mod3&&(b+="Alt+");a.mod4&&c&&(b+="Ctrl+");if(a.alphaKey)return b+
a.alphaKey;for(var e in d.keys)if(typeof(d.keys[e]==="number")&&d.keys[e]===a.keyCode)return b+e;var j;switch(a.keyCode){case 59:j=a.mod2?":":";";break;case 61:j=a.mod2?"+":"=";break;case 188:j=a.mod2?"<":",";break;case 190:j=a.mod2?">":".";break;case 191:j=a.mod2?"?":"/";break;case 192:j=a.mod2?"~":"`";break;case 219:j=a.mod2?"{":"[";break;case 220:j=a.mod2?"|":"\\";break;case 221:j=a.mod2?"}":"]";break;case 222:j=a.mod2?'"':"'"}return j?b+j:b+String.fromCharCode(a.keyCode)},openDialog:function(b,
c){b.startup();if(typeof c==="string"){var e=d.byId(c);if(!e&&(e=a.byId(c)))e=e.domNode;c=e?e:null}c&&(e=d.position(c),b._setStyleAttr("left:"+(e.x+16)+"px !important;"),b._setStyleAttr("top:"+(e.y+16)+"px !important;"));b.show()},getUserText:function(b,c,e,i,j,k,l,m,n){var l=function(l){return function(m){var q=a.byId(b),p=q.get("value");l&&m.keyCode===d.keys.ESCAPE?(e&&d.style(c,"display","inline"),q.destroyRecursive(),k&&k()):l&&m.keyCode!==d.keys.ENTER||(!q.isValid()||!n&&p===i?e&&d.style(c,"display",
"inline"):j(p),q.destroyRecursive(),k&&k())}},p=new a.form.ValidationTextBox({id:b,required:!0,value:i||""});d.place(p.domNode,c,"after");d.addClass(p.domNode,"userEditBoxPrompt");e&&d.style(c,"display","none");d.connect(p,"onKeyDown",l(!0));d.connect(p,"onBlur",l(!1));window.setTimeout(function(){p.focus();if(i){var c=d.byId(b),e=m?i.indexOf(m):-1;e>0?a.selectInputText(c,0,e):c.select()}},0)},openInNewWindow:c,followLink:function(a,b){b&&c(b)?window.open(a):window.location=a},makeRelative:function(a){if(!a)return a;
var b=window.location.protocol+"//"+window.location.host;return a.indexOf(b)===0?a.substring(b.length):a},makeFullPath:function(a){if(!a)return a;var b=window.location.protocol+"//"+window.location.host;a.charAt(0)!=="/"&&(a="/"+a);return b+a},isAtRoot:function(a){return this.makeRelative(a).indexOf("/workspace")===0},processNavigatorParent:function(a,b){a.children=b;for(var c in b)b[c].parent=a;a.children.sort(function(a,b){var c=a.Directory;if(c!==b.Directory)return c?-1:1;var c=a.Name&&a.Name.toLowerCase(),
d=b.Name&&b.Name.toLowerCase();return c<d?-1:c>d?1:0})},getText:e,safeText:function(a){return e(document.createTextNode(a))},setText:function(a,b){typeof a.textContent!=="undefined"?a.textContent=b:a.innerText=b},forceLayout:function(b){for(typeof b==="string"&&(b=d.byId(b));b;){var c=a.byId(b.id);if(c&&typeof c.layout==="function"){c.layout();break}b=b.parentNode}},saveFileContents:function(a,c,d,e){a.write(c.Location,d,{ETag:c.ETag}).then(function(){e&&e()},function(j){j.status===412?window.confirm(b["Resource is out of sync with the server. Do you want to save it anyway?"])&&
a.write(c.Location,d).then(function(a){c.ETag=a.ETag;e&&e()}):j.log=!0})},splitFile:function(a){for(var b=0,c=0,d=0,e=0,k=[];;){b!==-1&&b<=d&&(b=a.indexOf("\r",d));c!==-1&&c<=d&&(c=a.indexOf("\n",d));if(c===-1&&b===-1){k.push(a.substring(e));break}var l=1;b!==-1&&c!==-1?b+1===c?(l=2,d=c+1):d=(b<c?b:c)+1:d=b!==-1?b+1:c+1;k.push(a.substring(e,d-l));e=d}return k}}});
define("orion/status",["require","dojo","orion/util"],function(b,d,a){function c(a,b,c,d,e){this._serviceRegistry=a;this._serviceRegistration=a.registerService("orion.page.message",this);this._operationsClient=b;this.notificationContainerDomId=e;this.domId=c;this.progressDomId=d||c;this._hookedClose=!1}function e(a,b,c,e){this.statusService=a;this.progressId=b;if(c){this.deferred=c;this.begin(e);var j=this;c.then(function(){d.hitch(j,j.done)()},function(){d.hitch(j,j.done)()})}}c.prototype={_init:function(){var a=
d.byId("closeNotifications");a&&!this._hookedClose&&(d.connect(a,"onclick",this,function(){this.setProgressMessage("");d.removeClass(this.notificationContainerDomId,"slideContainerActive")}),d.connect(a,"onkeypress",this,function(a){if(a.keyCode===d.keys.ENTER||a.keyCode===d.keys.SPACE)this.setProgressMessage(""),d.removeClass(this.notificationContainerDomId,"slideContainerActive")}))},setMessage:function(a,b,c){this._init();this.currentMessage=a;if(typeof c==="boolean"){var e=this,j=d.byId(this.domId),
k=d.attr(j,"aria-live");d.attr(j,"aria-live",c?"polite":"off");window.setTimeout(function(){d.place(window.document.createTextNode(a),e.domId,"only")},100);window.setTimeout(function(){d.attr(j,"aria-live",k)},200)}else d.place(window.document.createTextNode(a),this.domId,"only");typeof b==="number"&&(e=this,window.setTimeout(function(){var b=d.byId(e.domId);(typeof b.textContent==="string"?b.textContent:b.innerText)===a&&d.place(window.document.createTextNode(""),e.domId,"only")},b))},setErrorMessage:function(a){this.currentMessage=
a;this._init();var b=a.responseText||a.message||a;try{b=JSON.parse(b)}catch(c){}var a=b.Message||b,e="red";if(b.Severity)switch(b.Severity){case "Warning":e="#FFCC00";break;case "Error":e="red";break;case "Info":case "Ok":e="green"}b=d.create("span",{style:{color:e}});d.place(window.document.createTextNode(a),b);d.place(b,this.domId,"only")},setProgressMessage:function(b){this._init();this.currentMessage=b;var c=d.create("span",{"class":"imageSprite core-sprite-progress"});d.place(c,this.progressDomId,
"only");d.place(window.document.createTextNode(b),this.progressDomId,"last");d.addClass(this.notificationContainerDomId,"progressNormal");b&&b.length>0?d.addClass(this.notificationContainerDomId,"slideContainerActive"):this._progressMonitors&&this._progressMonitors.length>0?this._renderOngoingMonitors():d.removeClass(this.notificationContainerDomId,"slideContainerActive");a.forceLayout(this.notificationContainerDomId)},setProgressResult:function(b){this.currentMessage=b;b=b.responseText||b;try{b=
JSON.parse(b)}catch(c){}this._init();var e=b.Message||b,i="imageSprite core-sprite-info",j="progressInfo",k="progressWarning progressError progressNormal";if(b.Severity)switch(b.Severity){case "Warning":i="imageSprite core-sprite-warning";j="progressWarning";k="progressInfo progressError progressNormal";break;case "Error":i="imageSprite core-sprite-error",j="progressError",k="progressWarning progressInfo progressNormal"}i=d.create("span",{"class":i});d.place(i,this.progressDomId,"only");b.HTML?d.place(e,
this.progressDomId,"last"):(d.place(window.document.createTextNode("   "+e),this.progressDomId,"last"),j&&this.progressDomId!==this.domId&&(d.addClass(this.notificationContainerDomId,j),d.removeClass(this.notificationContainerDomId,k)));d.addClass(this.notificationContainerDomId,"slideContainerActive");a.forceLayout(this.notificationContainerDomId)},showWhile:function(a,b){var c=this;b&&(c.setProgressMessage(b),a.addBoth(function(){b===c.currentMessage&&c.setProgressMessage("")}));return a},_lastProgressId:0,
_progressMonitors:{length:0},createProgressMonitor:function(a,b){return new e(this,++this._lastProgressId,a,b)},_renderOngoingMonitors:function(){if(this._progressMonitors.length>0){var a="",b=!0,c;for(c in this._progressMonitors)this._progressMonitors[c].status&&(b||(a+=", "),a+=this._progressMonitors[c].status,b=!1);this.setProgressMessage(a)}else this.setProgressMessage("")},_beginProgressMonitor:function(a){this._progressMonitors[a.progressId]=a;this._progressMonitors.length++;this._renderOngoingMonitors()},
_workedProgressMonitor:function(a){this._progressMonitors[a.progressId]=a;this._renderOngoingMonitors()},_doneProgressMonitor:function(a){delete this._progressMonitors[a.progressId];this._progressMonitors.length--;a.status?this.setProgressResult(a.status):this._renderOngoingMonitors()}};c.prototype.constructor=c;e.prototype=new d.Deferred;e.prototype.begin=function(a){this.status=a;this.statusService._beginProgressMonitor(this)};e.prototype.done=function(a){this.status=a;this.statusService._doneProgressMonitor(this)};
e.prototype.worked=function(a){this.status=a;this.statusService._workedProgressMonitor(this)};e.prototype.constructor=e;return{StatusReportingService:c,ProgressMonitor:e}});
define("orion/searchUtils",["require","dojo","orion/editor/regex","orion/util"],function(b,d,a,c){var e=e||{};e.searchUtils=e.searchUtils||{};e.searchUtils.parseQueryStr=function(a){var b=a.indexOf("?"),c=a.indexOf("q=");b<c&&c>0&&(a=a.substring(b+1));b=a.split("&");a={queryStr:a,start:0,rows:10,sort:"Path asc",replace:null};for(c=0;c<b.length;c++){var d=b[c].indexOf("q="),j=b[c].indexOf("replace=");if(d>=0)e.searchUtils.parseLocationAndSearchStr(b[c].substring(d+2),a);else if(j>=0)a.replace=b[c].substring(j+
8);else if(d=b[c].split("="),d.length===2)if(d[0]==="rows")a.rows=parseInt(d[1]);else if(d[0]==="start")a.start=parseInt(d[1]);else if(d[0]==="sort")a.sort=d[1]}return a};e.searchUtils.copyQueryParams=function(a,b){return{sort:a.sort,rows:a.rows,start:a.start,searchStr:a.searchStr,location:a.location,replace:b?a.replace:null}};e.searchUtils.generateSearchHref=function(a){return b.toUrl("search/search.html")+"#"+e.searchUtils.generateSearchQuery(a)};e.searchUtils.generateSearchQuery=function(a){var b=
"Path asc",c=40,d=0,e="",k="",l="";if(a){if(a.sort)b=a.sort;if(a.rows)c=a.rows;if(a.start)d=a.start;if(a.searchStr)e=a.searchStr,e=e.split(" ").join("");if(a.location)k=a.location,k.length>0&&k[k.length-1]!=="*"&&(k+="*"),k!==""&&(k="+Location:"+k);a.replace!==null&&a.replace!==void 0&&(l="&replace="+a.replace)}return"?sort="+b+"&rows="+c+"&start="+d+"&q="+e+k+l};e.searchUtils.parseLocationAndSearchStr=function(a,b){var c=a.indexOf("+Location:")>-1;b.location="";b.searchStr=a;if(c&&(c=a.split("+Location:"),
c.length===2)){var d=c[1];d.length>0&&d[d.length-1]==="*"&&(d=d.substring(0,d.length-1));b.location=d;b.searchStr=c[0].split(" ").join("")}b.searchStrTitle=b.searchStr.split("\\").join("");b.inFileQuery=e.searchUtils.generateInFileQuery(b.searchStr)};e.searchUtils.generateInFileQuery=function(b){var c={};c.originalSearchStr=b;var d=b.indexOf("*")>-1,e=b.indexOf("?")>-1;d&&(b=b.split("*").join(".*"));e&&(b=b.split("?").join("."));if(!d&&!e)c.searchStr=b.split("\\").join("").toLowerCase(),c.wildCard=
!1;else if(c.searchStr=b.toLowerCase(),d=a.parse("/"+c.searchStr+"/"))b=d.pattern,d=d.flags,d+=d.indexOf("i")===-1?"i":"",c.regExp={pattern:b,flags:d},c.wildCard=!0;c.searchStrLength=c.searchStr.length;return c};e.searchUtils.generateFindURLBinding=function(a,b,c){a=",find="+a.originalSearchStr;typeof c==="string"&&(a=a+"@@replaceWith@@"+c);typeof b==="number"&&(a=a+"@@atLine@@"+b);return a};e.searchUtils.parseFindURLBinding=function(a){var b=null,c=a.split("@@atLine@@");c.length>1&&(b=parseInt(c[1]),
b<1&&(b=1));var a=null,c=c[0].split("@@replaceWith@@"),d=c[0];c.length>1&&(a=c[1]);c=e.searchUtils.generateInFileQuery(d);return{searchStr:c.searchStr,replaceStr:a,lineNumber:b,useRegExp:c.wildCard}};e.searchUtils.replaceRegEx=function(a,b,c){return a.replace(RegExp(b.pattern,b.flags),c)};e.searchUtils.replaceStringLiteral=function(b,c,d){c=a.parse("/"+c+"/gim");return e.searchUtils.replaceRegEx(b,c,d)};e.searchUtils.searchOnelineLiteral=function(a,b,c){var d;d=0;for(var e=!1,k=[];;)if(d=b.indexOf(a.searchStr,
d),d<0)break;else{k.push({startIndex:d});e=!0;if(c)break;d+=a.searchStrLength}return e?k:null};e.searchUtils.findRegExp=function(a,b,c,d){if(!b)return null;c=c||"";c+=(c.indexOf("g")===-1?"g":"")+(c.indexOf("m")===-1?"m":"");var e=null;return(e=RegExp(b,c).exec(a.substring(d)))&&{startIndex:e.index+d,length:e[0].length}};e.searchUtils.searchOnelineRegEx=function(a,b,c){for(var d=0,j=!1,k=[];;)if(d=e.searchUtils.findRegExp(b,a.regExp.pattern,a.regExp.flags,d)){k.push(d);j=!0;if(c)break;d=d.startIndex+
d.length}else break;return j?k:null};e.searchUtils.generateNewContents=function(a,b,c,d,j){if(c&&a){var k;k=b.length>0?!0:!1;for(var l=0;l<a.length;l++){for(var m=a[l],n=!1,p=!1,o=[],r,q=0,s=0;s<c.children.length;s++)if(c.children[s].lineNumber-1===l){q=s;for(n=0;n<c.children[s].matches.length;n++)c.children[s+n].checked!==!1&&o.push(n);p=o.length>0;r=c.children[s].matches;n=!0;break}if(n){if(p){o=e.searchUtils.replaceCheckedMatches(m,d,r,o,j);m=o.replacedStr;for(n=0;n<c.children[q].matches.length;n++)c.children[q+
n].newMatches=o.newMatches}else for(n=0;n<c.children[q].matches.length;n++)c.children[q+n].newMatches=c.children[q+n].matches;k?b[l]=m:b.push(m)}else k||b.push(m)}}};e.searchUtils.generateMatchContext=function(a,b,c){var d=[],e=a*2+1,k;b.length<=e?(k=0,a=b.length-1):(k=c-a,k<0?(k=0,a=k+e-1):(a=c+a,a>b.length-1&&(a=b.length-1,k=a-e+1)));for(e=k;e<=a;e++)d.push({context:b[e],current:e===c});return d};e.searchUtils.searchWithinFile=function(a,b,d,i,j,k){d=c.splitFile(d);if(j)b.contents=d;if(b){b.children=
[];for(var l=i=0;l<d.length;l++){var m=d[l];if(m&&m.length>0){var n=k?m:m.toLowerCase();if(n=a.wildCard?e.searchUtils.searchOnelineRegEx(a,n):e.searchUtils.searchOnelineLiteral(a,n)){var p=l+1;if(j)for(var o=0;o<n.length;o++){var r=o+1,r={parent:b,checked:b.checked,type:"detail",matches:n,lineNumber:p,matchNumber:r,name:m,location:b.location+"-"+p+"-"+r};b.children.push(r)}else r={parent:b,context:e.searchUtils.generateMatchContext(2,d,l),checked:b.checked,type:"detail",matches:n,lineNumber:p,name:m,
location:b.location+"-"+p},b.children.push(r);i+=n.length}}}b.totalMatches=i}};e.searchUtils.replaceCheckedMatches=function(a,b,c,d,e){for(var k=0,l="",m=[],n=0;n<c.length;n++){k!==c[n].startIndex&&(l+=a.substring(k,c[n].startIndex));if(c[n].length)e=c[n].length;for(var k=!1,p=0;p<d.length;p++)if(d[p]===n){k=!0;break}k?(m.push({startIndex:l.length,length:b.length}),l+=b):(m.push({startIndex:l.length,length:e}),l+=a.substring(c[n].startIndex,c[n].startIndex+e));k=c[n].startIndex+e}k<a.length&&(l+=
a.substring(k));return{replacedStr:l,newMatches:m}};e.searchUtils.fullPathNameByMeta=function(a){var b=a.length,c="";if(b>0)for(b-=1;b>-1;b--)c=c+(c===""?"":"/")+a[b].Name;return c};e.searchUtils.path2FolderName=function(a,b,c){return a.substring(0,a.length-b.length-(c?0:1))};return e.searchUtils});
define("orion/breadcrumbs",["require","dojo","orion/util"],function(b,d,a){function c(a){this._init(a)}c.prototype={_init:function(a){var b=a.container;typeof b==="string"&&(b=d.byId(b));if(!b)throw"no parent container";this._container=b;d.removeClass(b,"currentLocation");this._id=a.id||"eclipse.breadcrumbs";this._resource=a.resource||null;this._rootSegmentName=a.rootSegmentName;this._workspaceRootSegmentName=a.workspaceRootSegmentName;this._makeHref=a.makeHref;this.path="";this.render()},getNavigatorWorkspaceRootSegment:function(){if(this._workspaceRootSegmentName){var a;
this._resource&&this._resource.Parents?(a=document.createElement("a"),this._makeHref?this._makeHref(a,""):a.href=b.toUrl("navigate/table.html")+"#"):a=document.createElement("span");d.place(document.createTextNode(this._workspaceRootSegmentName),a,"only");return a}return null},render:function(){var c=this._container,f=d.byId(this._id);f?d.empty(f):(f=document.createElement("span"),f.id=this._id,c.appendChild(f));var g;if(g=this.getNavigatorWorkspaceRootSegment())if(d.addClass(g,"breadcrumb"),f.appendChild(g),
this._resource&&this._resource.Parents)g=document.createElement("span"),d.place(document.createTextNode(" / "),g,"only"),this.path+="/",d.addClass(g,"breadcrumbSeparator"),f.appendChild(g);else{g.href="";d.removeClass(g,"breadcrumb");d.addClass(g,"currentLocation");a.forceLayout(c);return}var h=this._rootSegmentName;if(this._resource){if(this._resource.Parents)for(var i=this._resource.Parents,j=i.length;--j>=0;)g=document.createElement("a"),d.addClass(g,"breadcrumb"),h?(d.place(document.createTextNode(h),
g,"only"),h=null):d.place(document.createTextNode(i[j].Name),g,"only"),this.path+=i[j].Name,this._makeHref?this._makeHref(g,i[j].Location):g.href=b.toUrl("navigate/table.html")+"#"+i[j].ChildrenLocation,f.appendChild(g),g=document.createElement("span"),d.place(document.createTextNode(" / "),g,"only"),this.path+="/",d.addClass(g,"breadcrumbSeparator"),f.appendChild(g);g=document.createElement("span");h?(d.place(document.createTextNode(h),g,"only"),h=null):d.place(document.createTextNode(this._resource.Name),
g,"only");d.addClass(g,"currentLocation");this.path+=this._resource.Name;f.appendChild(g)}f.childNodes.length===0&&(g=document.createElement("a"),d.place(document.createTextNode(h||document.title),g,"only"),d.addClass(g,"breadcrumb"),d.addClass(g,"currentLocation"),f.appendChild(g));a.forceLayout(c)}};c.prototype.constructor=c;return{BreadCrumbs:c}});
define("orion/favorites",["require","dojo","orion/util"],function(b,d,a){function c(a){this._favorites=[];this._init(a);this._initializeFavorites()}c.prototype={_init:function(a){this._registry=a.serviceRegistry;this._serviceRegistration=this._registry.registerService("orion.core.favorite",this)},_notifyListeners:function(){this._serviceRegistration.dispatchEvent("favoritesChanged",{navigator:this._favorites,registry:this._registry})},makeFavorites:function(b){for(var b=d.isArray(b)?b:[b],c=0;c<b.length;c++){var g=
b[c],h=g.ChildrenLocation?g.ChildrenLocation:g.Location,h=a.makeRelative(h);this.addFavorite(g.Name,h,g.Directory)}this._storeFavorites();this._notifyListeners()},addFavoriteUrl:function(a){this.addFavorite(a,a,!1,!0)},addFavorite:function(a,b,c){this._favorites.push({name:a,path:b,directory:c,isFavorite:!0});this._favorites.sort(this._sorter);this._storeFavorites();this._notifyListeners()},removeFavorite:function(a){for(var b in this._favorites)if(this._favorites[b].path===a){this._favorites.splice(b,
1);break}this._favorites.sort(this._sorter);this._storeFavorites();this._notifyListeners()},renameFavorite:function(a,b){var c=!1,d;for(d in this._favorites)if(this._favorites[d].path===a){var i=this._favorites[d];if(i.name!==b)i.name=b,c=!0}c&&(this._favorites.sort(this._sorter),this._storeFavorites(),this._notifyListeners())},hasFavorite:function(a){for(var b in this._favorites)if(this._favorites[b].path===a)return!0;return!1},_SPECIAL_CHARS:"^$\\+[]().",queryFavorites:function(a){var b;if(!a)return this._favorites;
var c="";for(b=0;b<a.length;b++){var d=a.charAt(b);c+=d==="*"?".*":d==="?"?".?":this._SPECIAL_CHARS.indexOf(d)>=0?"\\"+d:d}c+=".*";a=RegExp(c);c=[];for(b in this._favorites)this._favorites[b].name.search(a)===0&&c.push(this._favorites[b]);return c},_initializeFavorites:function(){var a=this;this._registry.getService("orion.core.preference").getPreferences("/window/favorites").then(function(b){var c,b=b.get("navigate");typeof b==="string"&&(b=JSON.parse(b));if(b)for(c in b)b[c].isFavorite=!0,a._favorites.push(b[c]);
a._favorites.sort(a._sorter);a._notifyListeners()})},_storeFavorites:function(){var a=this._favorites;this._registry.getService("orion.core.preference").getPreferences("/window/favorites").then(function(b){b.put("navigate",a)})},_sorter:function(a,b){var c=a.name.toLowerCase(),d=b.name.toLowerCase();return c>d?1:c<d?-1:0},getFavorites:function(){return{navigator:this._favorites}}};c.prototype.constructor=c;return{FavoritesService:c}});
define("dojo/date",["dojo"],function(b){b.getObject("date",!0,b);b.date.getDaysInMonth=function(d){var a=d.getMonth(),c=[31,28,31,30,31,30,31,31,30,31,30,31];return a==1&&b.date.isLeapYear(d)?29:c[a]};b.date.isLeapYear=function(b){b=b.getFullYear();return!(b%400)||!(b%4)&&!!(b%100)};b.date.getTimezoneName=function(b){var a=b.toString(),c="",e=a.indexOf("(");if(e>-1)c=a.substring(++e,a.indexOf(")"));else if(e=/([A-Z\/]+) \d{4}$/,a=a.match(e))c=a[1];else if(a=b.toLocaleString(),e=/ ([A-Z\/]+)$/,a=a.match(e))c=
a[1];return c=="AM"||c=="PM"?"":c};b.date.compare=function(b,a,c){b=new Date(+b);a=new Date(+(a||new Date));c=="date"?(b.setHours(0,0,0,0),a.setHours(0,0,0,0)):c=="time"&&(b.setFullYear(0,0,0),a.setFullYear(0,0,0));return b>a?1:b<a?-1:0};b.date.add=function(b,a,c){var e=new Date(+b),f=!1,g="Date";switch(a){case "day":break;case "weekday":var h;(a=c%5)?h=parseInt(c/5):(a=c>0?5:-5,h=c>0?(c-5)/5:(c+5)/5);var i=b.getDay(),j=0;i==6&&c>0?j=1:i==0&&c<0&&(j=-1);i+=a;if(i==0||i==6)j=c>0?2:-2;c=7*h+a+j;break;
case "year":g="FullYear";f=!0;break;case "week":c*=7;break;case "quarter":c*=3;case "month":f=!0;g="Month";break;default:g="UTC"+a.charAt(0).toUpperCase()+a.substring(1)+"s"}if(g)e["set"+g](e["get"+g]()+c);f&&e.getDate()<b.getDate()&&e.setDate(0);return e};b.date.difference=function(d,a,c){var a=a||new Date,c=c||"day",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"));if(e%7==0)e=c*5;else{var f=0,g=d.getDay(),h=a.getDay(),c=parseInt(e/7),a=e%7,d=new Date(d);d.setDate(d.getDate()+c*7);d=d.getDay();if(e>0)switch(!0){case g==6:f=-1;break;case g==0:f=0;break;case h==6:f=-1;break;case h==0:f=-2;break;case d+a>5:f=-2}else if(e<0)switch(!0){case g==6:f=0;break;case g==0:f=1;break;case h==6:f=2;break;case h==0:f=1;break;case d+a<0:f=2}e+=f;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",!0,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===void 0?
1:d};b.cldr.supplemental._region=function(d){var d=b.i18n.normalizeLocale(d),d=d.split("-"),a=d[1];a?a.length==4&&(a=d[2]):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];d===void 0&&(d=6);a===void 0&&(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".split(","),"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".split(","),"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".split(","),"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".split(","),"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".split(","),"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".split(","),"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".split(","),"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".split(","),"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".split(","),"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".split(","),eraNames:["BCE","CE"],"days-format-narrow":"1,2,3,4,5,6,7".split(","),"days-standAlone-narrow":"1,2,3,4,5,6,7".split(","),
"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:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,"en-au":!0,"en-ca":!0,"en-gb":!0,es:!0,fi:!0,fr:!0,"fr-ch":!0,he:!0,hu:!0,it:!0,ja:!0,ko:!0,nb:!0,nl:!0,pl:!0,pt:!0,"pt-pt":!0,ro:!0,ru:!0,sk:!0,sl:!0,sv:!0,th:!0,tr:!0,zh:!0,"zh-hant":!0,"zh-hk":!0,"zh-tw":!0});
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".split(","),
"dateFormatItem-MMM":"LLL","months-standAlone-narrow":"J,F,M,A,M,J,J,A,S,O,N,D".split(","),"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".split(","),"dateFormatItem-yMMM":"MMM y","field-day-relative+0":"Today","field-day-relative+1":"Tomorrow","days-standAlone-narrow":"S,M,T,W,T,F,S".split(","),
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".split(","),
"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".split(","),"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".split(","),"dateFormatItem-M":"L","days-format-narrow":"S,M,T,W,T,F,S".split(","),"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".split(","),
"dateFormatItem-hm":"h:mm a","days-standAlone-abbr":"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),"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".split(","),"dateFormatItem-d":"d","quarters-format-wide":["1st quarter","2nd quarter","3rd quarter","4th quarter"],"days-format-wide":"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),
eraNarrow:["B","A"]});
define("dojo/date/locale","dojo,dojo/date,dojo/cldr/supplemental,dojo/regexp,dojo/string,dojo/i18n,i18n!dojo/cldr/nls/gregorian".split(","),function(b){b.getObject("date.locale",!0,b);(function(){function d(a,c,d,h){return h.replace(/([a-z])\1*/ig,function(i){var j,k,l=i.charAt(0),i=i.length,m=["abbr","wide","narrow"];switch(l){case "G":j=c[i<4?"eraAbbr":"eraNames"][a.getFullYear()<0?0:1];break;case "y":j=a.getFullYear();switch(i){case 1:break;case 2:if(!d.fullYear){j=String(j);j=j.substr(j.length-
2);break}default:k=!0}break;case "Q":case "q":j=Math.ceil((a.getMonth()+1)/3);k=!0;break;case "M":j=a.getMonth();i<3?(j+=1,k=!0):(l=["months-format",m[i-3]].join("-"),j=c[l][j]);break;case "w":j=b.date.locale._getWeekOfYear(a,0);k=!0;break;case "d":j=a.getDate();k=!0;break;case "D":j=b.date.locale._getDayOfYear(a);k=!0;break;case "E":j=a.getDay();i<3?(j+=1,k=!0):(l=["days-format",m[i-3]].join("-"),j=c[l][j]);break;case "a":j=a.getHours()<12?"am":"pm";j=d[j]||c["dayPeriods-format-wide-"+j];break;case "h":case "H":case "K":case "k":k=
a.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}k=!0;break;case "m":j=a.getMinutes();k=!0;break;case "s":j=a.getSeconds();k=!0;break;case "S":j=Math.round(a.getMilliseconds()*Math.pow(10,i-3));k=!0;break;case "v":case "z":if(j=b.date.locale._getZone(a,!0,d))break;i=4;case "Z":j=b.date.locale._getZone(a,!1,d);j=[j<=0?"+":"-",b.string.pad(Math.floor(Math.abs(j)/60),2),b.string.pad(Math.abs(j)%60,2)];i==4&&(j.splice(0,0,"GMT"),j.splice(3,0,":"));
j=j.join("");break;default:throw Error("dojo.date.locale.format: invalid pattern char: "+h);}k&&(j=b.string.pad(j,i));return j})}function a(a,c,d,h){var i=function(a){return a},c=c||i,d=d||i,h=h||i,j=a.match(/(''|[^'])+/g),k=a.charAt(0)=="'";b.forEach(j,function(a,b){a?(j[b]=(k?d:c)(a.replace(/''/g,"'")),k=!k):j[b]=""});return h(j.join(""))}function c(a,c,d,h){h=b.regexp.escapeString(h);d.strict||(h=h.replace(" a"," ?a"));return h.replace(/([a-z])\1*/ig,function(b){var h;h=b.charAt(0);var k=b.length,
l="",m="";d.strict?(k>1&&(l="0{"+(k-1)+"}"),k>2&&(m="0{"+(k-2)+"}")):(l="0?",m="0{0,2}");switch(h){case "y":h="\\d{2,4}";break;case "M":h=k>2?"\\S+?":"1[0-2]|"+l+"[1-9]";break;case "D":h="[12][0-9][0-9]|3[0-5][0-9]|36[0-6]|"+m+"[1-9][0-9]|"+l+"[1-9]";break;case "d":h="3[01]|[12]\\d|"+l+"[1-9]";break;case "w":h="[1-4][0-9]|5[0-3]|"+l+"[1-9]";break;case "E":h="\\S+";break;case "h":h="1[0-2]|"+l+"[1-9]";break;case "k":h="1[01]|"+l+"\\d";break;case "H":h="1\\d|2[0-3]|"+l+"\\d";break;case "K":h="1\\d|2[0-4]|"+
l+"[1-9]";break;case "m":case "s":h="[0-5]\\d";break;case "S":h="\\d{"+k+"}";break;case "a":k=d.am||c["dayPeriods-format-wide-am"];l=d.pm||c["dayPeriods-format-wide-pm"];h=k+"|"+l;d.strict||(k!=k.toLowerCase()&&(h+="|"+k.toLowerCase()),l!=l.toLowerCase()&&(h+="|"+l.toLowerCase()),h.indexOf(".")!=-1&&(h+="|"+h.replace(/\./g,"")));h=h.replace(/\./g,"\\.");break;default:h=".*"}a&&a.push(b);return"("+h+")"}).replace(/[\xa0 ]/g,"[\\s\\xa0]")}b.date.locale._getZone=function(a,c){return c?b.date.getTimezoneName(a):
a.getTimezoneOffset()};b.date.locale.format=function(c,f){var f=f||{},g=b.i18n.normalizeLocale(f.locale),h=f.formatLength||"short",g=b.date.locale._getGregorianBundle(g),i=[],j=b.hitch(this,d,c,g,f);if(f.selector=="year")return a(g["dateFormatItem-yyyy"]||"yyyy",j);var k;f.selector!="date"&&(k=f.timePattern||g["timeFormat-"+h])&&i.push(a(k,j));f.selector!="time"&&(k=f.datePattern||g["dateFormat-"+h])&&i.push(a(k,j));return i.length==1?i[0]:g["dateTimeFormat-"+h].replace(/\{(\d+)\}/g,function(a,b){return i[b]})};
b.date.locale.regexp=function(a){return b.date.locale._parseInfo(a).regexp};b.date.locale._parseInfo=function(d){var d=d||{},f=b.i18n.normalizeLocale(d.locale),f=b.date.locale._getGregorianBundle(f),g=d.formatLength||"short",h=d.datePattern||f["dateFormat-"+g],i=d.timePattern||f["timeFormat-"+g],g=d.selector=="date"?h:d.selector=="time"?i:f["dateTimeFormat-"+g].replace(/\{(\d+)\}/g,function(a,b){return[i,h][b]}),j=[];return{regexp:a(g,b.hitch(this,c,j,f,d)),tokens:j,bundle:f}};b.date.locale.parse=
function(a,c){var d=/[\u200E\u200F\u202A\u202E]/g,h=b.date.locale._parseInfo(c),i=h.tokens,j=h.bundle,d=RegExp("^"+h.regexp.replace(d,"")+"$",h.strict?"":"i").exec(a&&a.replace(d,""));if(!d)return null;var k=["abbr","wide","narrow"],l=[1970,0,1,0,0,0,0],m="",d=b.every(d,function(a,d){if(!d)return!0;var e=i[d-1],g=e.length;switch(e.charAt(0)){case "y":if(g!=2&&c.strict)l[0]=a;else if(a<100)a=Number(a),g=""+(new Date).getFullYear(),e=g.substring(0,2)*100,g=Math.min(Number(g.substring(2,4))+20,99),l[0]=
a<g?e+a:e-100+a;else{if(c.strict)return!1;l[0]=a}break;case "M":if(g>2){if(e=j["months-format-"+k[g-3]].concat(),c.strict||(a=a.replace(".","").toLowerCase(),e=b.map(e,function(a){return a.replace(".","").toLowerCase()})),a=b.indexOf(e,a),a==-1)return!1}else a--;l[1]=a;break;case "E":case "e":e=j["days-format-"+k[g-3]].concat();c.strict||(a=a.toLowerCase(),e=b.map(e,function(a){return a.toLowerCase()}));a=b.indexOf(e,a);if(a==-1)return!1;break;case "D":l[1]=0;case "d":l[2]=a;break;case "a":e=c.am||
j["dayPeriods-format-wide-am"];g=c.pm||j["dayPeriods-format-wide-pm"];if(!c.strict)var h=/\./g,a=a.replace(h,"").toLowerCase(),e=e.replace(h,"").toLowerCase(),g=g.replace(h,"").toLowerCase();if(c.strict&&a!=e&&a!=g)return!1;m=a==g?"p":a==e?"a":"";break;case "K":a==24&&(a=0);case "h":case "H":case "k":if(a>23)return!1;l[3]=a;break;case "m":l[4]=a;break;case "s":l[5]=a;break;case "S":l[6]=a}return!0}),h=+l[3];m==="p"&&h<12?l[3]=h+12:m==="a"&&h==12&&(l[3]=0);h=new Date(l[0],l[1],l[2],l[3],l[4],l[5],
l[6]);c.strict&&h.setFullYear(l[0]);var n=i.join(""),p=n.indexOf("d")!=-1,n=n.indexOf("M")!=-1;if(!d||n&&h.getMonth()>l[1]||p&&h.getDate()>l[2])return null;if(n&&h.getMonth()<l[1]||p&&h.getDate()<l[2])h=b.date.add(h,"hour",1);return h}})();(function(){var d=[];b.date.locale.addCustomFormats=function(a,b){d.push({pkg:a,name:b})};b.date.locale._getGregorianBundle=function(a){var c={};b.forEach(d,function(d){d=b.i18n.getLocalization(d.pkg,d.name,a);c=b.mixin(c,d)},this);return c}})();b.date.locale.addCustomFormats("dojo.cldr",
"gregorian");b.date.locale.getNames=function(d,a,c,e){var f,e=b.date.locale._getGregorianBundle(e),d=[d,c,a];c=="standAlone"&&(c=d.join("-"),f=e[c],f[0]==1&&(f=void 0));d[1]="format";return(f||e[d.join("-")]).concat()};b.date.locale.isWeekend=function(d,a){var c=b.cldr.supplemental.getWeekend(a),e=(d||new Date).getDay();c.end<c.start&&(c.end+=7,e<c.start&&(e+=7));return e>=c.start&&e<=c.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){arguments.length==1&&(a=0);var c=(new Date(d.getFullYear(),0,1)).getDay(),e=Math.floor((b.date.locale._getDayOfYear(d)+(c-a+7)%7-1)/7);c==a&&e++;return e};return b.date.locale});
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:!0,liveSplitters:!0,persist:!1,baseClass:"dijitBorderContainer",_splitterClass:"dijit.layout._Splitter",postMixInProperties:function(){this.gutters||(this.baseClass+="NoGutter");this.inherited(arguments)},startup:function(){this._started||(b.forEach(this.getChildren(),this._setupChild,
this),this.inherited(arguments))},_setupChild:function(a){var c=a.region;if(c){this.inherited(arguments);b.addClass(a.domNode,this.baseClass+"Pane");var d=this.isLeftToRight();c=="leading"&&(c=d?"left":"right");c=="trailing"&&(c=d?"right":"left");if(c!="center"&&(a.splitter||this.gutters)&&!a._splitterWidget)d=new (b.getObject(a.splitter?this._splitterClass:"dijit.layout._Gutter"))({id:a.id+"_splitter",container:this,child:a,region:c,live:this.liveSplitters}),d.isSplitter=!0,a._splitterWidget=d,b.place(d.domNode,
a.domNode,"after"),d.startup();a.region=c}},layout:function(){this._layoutChildren()},addChild:function(a,b){this.inherited(arguments);this._started&&this.layout()},removeChild:function(a){var c=a.region,d=a._splitterWidget;d&&(d.destroy(),delete a._splitterWidget);this.inherited(arguments);this._started&&this._layoutChildren();b.removeClass(a.domNode,this.baseClass+"Pane");b.style(a.domNode,{top:"auto",bottom:"auto",left:"auto",right:"auto",position:"static"});b.style(a.domNode,c=="top"||c=="bottom"?
"width":"height","auto")},getChildren:function(){return b.filter(this.inherited(arguments),function(a){return!a.isSplitter})},getSplitter:function(a){return b.filter(this.getChildren(),function(b){return b.region==a})[0]._splitterWidget},resize:function(a,c){if(!this.cs||!this.pe){var d=this.domNode;this.cs=b.getComputedStyle(d);this.pe=b._getPadExtents(d,this.cs);this.pe.r=b._toPixelValue(d,this.cs.paddingRight);this.pe.b=b._toPixelValue(d,this.cs.paddingBottom);b.style(d,"padding","0px")}this.inherited(arguments)},
_layoutChildren:function(a,c){if(this._borderBox&&this._borderBox.h){var e=b.map(this.getChildren(),function(a,b){return{pane:a,weight:[a.region=="center"?Infinity:0,a.layoutPriority,(this.design=="sidebar"?1:-1)*(/top|bottom/.test(a.region)?1:-1),b]}},this);e.sort(function(a,b){for(var c=a.weight,d=b.weight,e=0;e<c.length;e++)if(c[e]!=d[e])return c[e]-d[e];return 0});var f=[];b.forEach(e,function(a){a=a.pane;f.push(a);a._splitterWidget&&f.push(a._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 b=a._splitterWidget;b&&b.destroy();delete a._splitterWidget});this.inherited(arguments)}});b.extend(d._Widget,{region:"",layoutPriority:0,splitter:!1,minSize:0,maxSize:Infinity});b.declare("dijit.layout._Splitter",[d._Widget,d._Templated],{live:!0,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);a&&(this.child.domNode.style[this.horizontal?"height":"width"]=a)}},_computeMaxSize:function(){var a=this.horizontal?"h":
"w",c=b.marginBox(this.child.domNode)[a],d=b.filter(this.container.getChildren(),function(a){return a.region=="center"})[0],a=b.marginBox(d.domNode)[a];return Math.min(this.child.maxSize,c+a)},_startDrag:function(a){if(!this.cover)this.cover=b.doc.createElement("div"),b.addClass(this.cover,"dijitSplitterCover"),b.place(this.cover,this.child.domNode,"after");b.addClass(this.cover,"dijitSplitterCoverActive");this.fake&&b.destroy(this.fake);if(!(this._resize=this.live))(this.fake=this.domNode.cloneNode(!0)).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");this.fake&&b.removeClass(this.fake,"dijitSplitterHover dijitSplitter"+(this.horizontal?"H":"V")+"Hover");var c=this._factor,d=this.horizontal,f=d?"pageY":"pageX",g=a[f],h=this.domNode.style,i=b.marginBox(this.child.domNode)[d?"h":"w"],j=this._computeMaxSize(),k=this.child.minSize||20,d=this.region,l=d=="top"||d=="bottom"?
"top":"left",m=parseInt(h[l],10),n=this._resize,p=b.hitch(this.container,"_layoutChildren",this.child.id),d=b.doc;this._handlers=(this._handlers||[]).concat([b.connect(d,"onmousemove",this._drag=function(a,b){var d=a[f]-g,e=c*d+i,w=Math.max(Math.min(e,j),k);(n||b)&&p(w);h[l]=d+m+c*(w-e)+"px"}),b.connect(d,"ondragstart",b.stopEvent),b.connect(b.body(),"onselectstart",b.stopEvent),b.connect(d,"onmouseup",this,"_stopDrag")]);b.stopEvent(a)},_onMouse:function(a){a=a.type=="mouseover"||a.type=="mouseenter";
b.toggleClass(this.domNode,"dijitSplitterHover",a);b.toggleClass(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V")+"Hover",a)},_stopDrag:function(a){try{this.cover&&b.removeClass(this.cover,"dijitSplitterCoverActive"),this.fake&&b.destroy(this.fake),b.removeClass(this.domNode,"dijitSplitterActive dijitSplitter"+(this.horizontal?"H":"V")+"Active dijitSplitterShadow"),this._drag(a),this._drag(a,!0)}finally{this._cleanupHandlers(),delete this._drag}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=!0;var c=this.horizontal,d=1,f=b.keys;switch(a.charOrCode){case c?f.UP_ARROW:f.LEFT_ARROW:d*=-1;case c?f.DOWN_ARROW:f.RIGHT_ARROW:break;default:return}c=b._getMarginSize(this.child.domNode)[c?"h":"w"]+this._factor*d;this.container._layoutChildren(this.child.id,Math.max(Math.min(c,this._computeMaxSize()),
this.child.minSize));b.stopEvent(a)},destroy:function(){this._cleanupHandlers();delete this.child;delete this.container;delete this.cover;delete this.fake;this.inherited(arguments)}});b.declare("dijit.layout._Gutter",[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("dojo/html",["dojo","dojo/parser"],function(b){b.getObject("html",!0,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)),!c.nodeType&&b.isArrayLike(c))for(var d=c.length,f=0;f<c.length;f=d==c.length?f+1:0)b.place(c[f],a,"last");else b.place(c,a,"last");return a};b.declare("dojo.html._ContentSetter",
null,{node:"",content:"",id:"",cleanContent:!1,extractContent:!1,parseContent:!1,parserScope:b._scopeName,startup:!0,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,b){if(void 0!==a)this.content=a;b&&this._mixin(b);this.onBegin();this.setContent();this.onEnd();return this.node},setContent:function(){var a=this.node;if(!a)throw Error(this.declaredClass+": setContent given no node");try{a=
b.html._setNodeContent(a,this.content)}catch(c){var d=this.onContentError(c);try{a.innerHTML=d}catch(f){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+f.message,f)}}this.node=a},empty:function(){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)&&(this.cleanContent&&(a=b.html._secureForInnerHtml(a)),
this.extractContent)){var c=a.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);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 b={},d;for(d in a)d in b||(this[d]=a[d])},_parse:function(){var a=this.node;try{var c={};b.forEach(["dir","lang","textDir"],
function(a){this[a]&&(c[a]=this[a])},this);this.parseResults=b.parser.parse({rootNode:a,noStart:!this.startup,inherited:c,scope:this.parserScope})}catch(d){this._onError("Content",d,"Error parsing in _ContentSetter#"+this.id)}},_onError:function(a,c,d){a=this["on"+a+"Error"].call(this,c);d?console.error(d,c):a&&b.html._setNodeContent(this.node,a,!0)}});b.html.set=function(a,c,d){void 0==c&&(console.warn("dojo.html.set: no cont argument provided, using empty string"),c="");return d?(new b.html._ContentSetter(b.mixin(d,
{content:c,node:a}))).set():b.html._setNodeContent(a,c,!0)}})();return b.html});define("dijit/nls/loading",{root:{loadingState:"Loading...",errorState:"Sorry, an error occurred"},zh:!0,"zh-tw":!0,tr:!0,th:!0,sv:!0,sl:!0,sk:!0,ru:!0,ro:!0,pt:!0,"pt-pt":!0,pl:!0,nl:!0,nb:!0,ko:!0,kk:!0,ja:!0,it:!0,hu:!0,he:!0,fr:!0,fi:!0,es:!0,el:!0,de:!0,da:!0,cs:!0,ca:!0,ar:!0});
define("dijit/layout/ContentPane","dojo,dijit,dijit/_Widget,dijit/layout/_ContentPaneResizeMixin,dojo/string,dojo/html,i18n!dijit/nls/loading".split(","),function(b,d){b.declare("dijit.layout.ContentPane",[d._Widget,d.layout._ContentPaneResizeMixin],{href:"",extractContent:!1,parseOnLoad:!0,parserScope:b._scopeName,preventCache:!1,preload:!1,refreshOnShow:!1,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",
isLoaded:!1,baseClass:"dijitContentPane",ioArgs:{},onLoadDeferred:null,attributeMap:b.delegate(d._Widget.prototype.attributeMap,{title:[]}),stopParser:!0,template:!1,create:function(a,c){if((!a||!a.template)&&c&&!("href"in a)&&!("content"in a)){for(var d=b.doc.createDocumentFragment(),c=b.byId(c);c.firstChild;)d.appendChild(c.firstChild);a=b.delegate(a,{content:d})}this.inherited(arguments,[a,c])},postMixInProperties:function(){this.inherited(arguments);var a=b.i18n.getLocalization("dijit","loading",
this.lang);this.loadingMessage=b.string.substitute(this.loadingMessage,a);this.errorMessage=b.string.substitute(this.errorMessage,a)},buildRendering:function(){this.inherited(arguments);if(!this.containerNode)this.containerNode=this.domNode;this.domNode.title="";b.attr(this.domNode,"role")||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=!0},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);this.preload||this._created&&this._isShown()?this._load():this._hrefChanged=!0;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=!1;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(a){this._beingDestroyed||this.inherited(arguments)},_onShow:function(){this.inherited(arguments);if(this.href&&!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(),
!0);var a=this,c={preventCache:this.preventCache||this.refreshOnShow,url:this.href,handleAs:"text"};b.isObject(this.ioArgs)&&b.mixin(c,this.ioArgs);var d=this._xhrDfd=(this.ioMethod||b.xhrGet)(c);d.addCallback(function(b){try{a._isDownloaded=!0,a._setContent(b,!1),a.onDownloadEnd()}catch(c){a._onError("Content",c)}delete a._xhrDfd;return b});d.addErrback(function(b){d.canceled||a._onError("Download",b);delete a._xhrDfd;return b});delete this._hrefChanged},_onLoadHandler:function(a){this._set("isLoaded",
!0);try{this.onLoadDeferred.callback(a)}catch(b){console.error("Error "+this.widgetId+" running custom onLoad code: "+b.message)}},_onUnloadHandler:function(){this._set("isLoaded",!1);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(a){a.destroyRecursive&&a.destroyRecursive()});a&&(b.forEach(a.parseResults,
function(a){a.destroyRecursive&&a.domNode&&a.domNode.parentNode==b.body()&&a.destroyRecursive()}),delete a.parseResults);b.html._emptyNode(this.containerNode);delete this._singleChild},_setContent:function(a,c){this.destroyDescendants();var d=this._contentSetter;if(!(d&&d instanceof b.html._ContentSetter))d=this._contentSetter=new b.html._ContentSetter({node:this.containerNode,_onError:b.hitch(this,this._onError),onContentError:b.hitch(this,function(a){a=this.onContentError(a);try{this.containerNode.innerHTML=
a}catch(b){console.error("Fatal "+this.id+" could not change content due to "+b.message,b)}})});var f=b.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad,parserScope:this.parserScope,startup:!1,dir:this.dir,lang:this.lang},this._contentSetterParams||{});d.set(b.isObject(a)&&a.domNode?a.domNode:a,f);delete this._contentSetterParams;this.doLayout&&this._checkIfSingleChild();c||(this._started&&(this._startChildren(),this._scheduleLayout()),this._onLoadHandler(a))},
_onError:function(a,b,d){this.onLoadDeferred.errback(b);a=this["on"+a+"Error"].call(this,b);d?console.error(d,b):a&&this._setContent(a,!0)},onLoad:function(){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage},onContentError:function(){},onDownloadError:function(){return this.errorMessage},onDownloadEnd:function(){}});return d.layout.ContentPane});
define("dijit/TooltipDialog","dojo,dijit,text!dijit/templates/TooltipDialog.html,dijit/layout/ContentPane,dijit/_Templated,dijit/form/_FormMixin,dijit/_DialogMixin".split(","),function(b,d){b.declare("dijit.TooltipDialog",[d.layout.ContentPane,d._Templated,d.form._FormMixin,d._DialogMixin],{title:"",doLayout:!1,autofocus:!0,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:b.cache("dijit","templates/TooltipDialog.html"),_setTitleAttr:function(a){this.containerNode.title=
a;this._set("title",a)},postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey")},orient:function(a,c,d){a="dijitTooltipAB"+(d.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(d.charAt(0)=="T"?"Below":"Above");b.replaceClass(this.domNode,a,this._currentOrientClass||"");this._currentOrientClass=a},focus:function(){this._getFocusItems(this.containerNode);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;a.charOrCode==e.ESCAPE?(setTimeout(b.hitch(this,"onCancel"),0),b.stopEvent(a)):c==this._firstFocusItem&&a.shiftKey&&a.charOrCode===e.TAB?(f||d.focus(this._lastFocusItem),b.stopEvent(a)):c==this._lastFocusItem&&a.charOrCode===e.TAB&&!a.shiftKey?(f||d.focus(this._firstFocusItem),b.stopEvent(a)):a.charOrCode===e.TAB&&
a.stopPropagation()}});return d.TooltipDialog});
define("orion/widgets/LoginDialog","i18n!orion/widgets/nls/messages,require,dojo,dijit,orion/util,dijit/TooltipDialog,text!orion/widgets/templates/LoginDialog.html".split(","),function(b,d,a,c){a.declare("orion.widgets.LoginDialog",[c.TooltipDialog],{widgetsInTemplate:!0,templateString:a.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 b=this;a.addClass(this.closeLink,"imageSprite");a.addClass(this.closeLink,"core-sprite-close");a.connect(this.closeLink,"onmouseover",this.closeLink,function(){b.closeLink.style.cursor="pointer"});a.connect(this.closeLink,"onmouseout",this.closeLink,function(){b.closeLink.style.cursor="default"});a.connect(this.closeLink,"onclick",function(){a.hitch(b,b.closeDialog)()})},setPendingAuthentication:function(a){for(var b in this.unauthenticatedServices)delete this.unauthenticatedServices[b].pending;
for(b in a)this.unauthenticatedServices[a[b].SignInKey]?this.unauthenticatedServices[a[b].SignInKey].pending=!0:this.authenticatedServices[a[b].SignInKey]?(this.unauthenticatedServices[a[b].SignInKey]=this.authenticatedServices[a[b].SignInKey],this.unauthenticatedServices[a[b].SignInKey].pending=!0,delete this.authenticatedServices[a[b].SignInKey]):this.unauthenticatedServices[a[b].SignInKey]={label:a[b].label,SignInLocation:a[b].SignInLocation,pending:!0};this.renderUnauthenticatedServices();this.renderAuthenticatedServices()},
authenticatedService:function(a){this.unauthenticatedServices[a]&&!this.unauthenticatedServices[a].authService&&(this.authenticatedServices[a]=this.unauthenticatedServices[a],delete this.unauthenticatedServices[a])},addUserItem:function(b,c,d,h){h?(this.unauthenticatedServices[b]&&delete this.unauthenticatedServices[b],this.authenticatedServices[b]={authService:c,label:d,data:h}):(this.authenticatedServices[b]&&delete this.authenticatedServices[b],this.unauthenticatedServices[b]=this.unauthenticatedServices[b]?
{authService:c,label:d,pending:this.unauthenticatedServices[b].pending}:{authService:c,label:d});a.hitch(this,this.renderAuthenticatedServices)();a.hitch(this,this.renderUnauthenticatedServices)()},renderAuthenticatedServices:function(){a.empty(this.authenticatedList);this.authenticated.style.display=this.isEmpty(this.authenticatedServices)?"none":"";var c=this,f=!0,g;for(g in this.authenticatedServices){if(!f){var h=a.create("tr",null,this.authenticatedList);a.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;'>"},h)}var f=!1,h=a.create("tr",{className:"navTableHeading"}),i=this.authenticatedServices[g].authService,j=a.create("td",null,h,"only"),k=a.create("h2",null,j,"only");if(i)i.getAuthForm?a.hitch(c,function(a,b){i.getAuthForm(eclipse.globalCommandUtils.notifyAuthenticationSite).then(function(d){if(c.authenticatedServices[b].label)a.innerHTML=c.authenticatedServices[b].label+
"<br>";a.innerHTML+=c.getHostname(d)})})(k,g):k.innerHTML=this.authenticatedServices[g].label?this.authenticatedServices[g].label:g;else{var l=this.authenticatedServices[g].SignInLocation;if(this.authenticatedServices[g].label)k.innerHTML=this.authenticatedServices[g].label+"<br>";k.innerHTML+=this.getHostname(l)}a.addClass(j,"LoginWindowLeft");j=a.create("td",{style:"text-align: right"},h,"last");a.addClass(j,"LoginWindowRight");k=this.authenticatedServices[g].data;i=this.authenticatedServices[g].authService;
if(!i){a.place(h,this.authenticatedList,"last");break}k.Location&&a.create("a",{href:d.toUrl("profile/user-profile.html")+"#"+k.Location,innerHTML:b.Profile},j,"last");a.place(document.createTextNode(" "),j,"last");if(i.logout){var m=a.create("a",{innerHTML:b["Sign out"]},j,"last");a.connect(m,"onmouseover",m,function(){m.style.cursor="pointer"});a.connect(m,"onmouseout",m,function(){m.style.cursor="default"});a.connect(m,"onclick",a.hitch(c,function(b,d){return function(){b.logout().then(a.hitch(c,
function(){this.addUserItem(d,b,this.authenticatedServices[d].label);this.isSingleService()&&this.closeDialog();localStorage.removeItem(d)}))}})(i,g))}a.place(h,this.authenticatedList,"last");j=b["N/A"];k&&k.lastlogintimestamp&&(j=a.date.locale.format(new Date(k.lastlogintimestamp),{formatLength:"short"}));k=k.Name&&k.Name.replace(/^\s+|\s+$/g,"")!==""?k.Name:k.login;h=a.create("tr");j=k.length>40?a.create("td",{innerHTML:k.substring(0,30)+"... "+b["logged in since "]+j,colspan:2,title:k+" "+b["logged in since "]+
j},h,"only"):a.create("td",{innerHTML:k+" "+b["logged in since "]+j,colspan:2},h,"only");a.addClass(j,"LoginWindowLeft");a.addClass(j,"LoginWindowRight");a.addClass(j,"LoginWindowComment");a.place(h,this.authenticatedList,"last")}},renderUnauthenticatedServices:function(){this.emptyListInfo.style.display=this.unauthenticatedServices.length===0&&this.authenticatedServices.length===0?"":"none";a.empty(this.otherUnauthenticatedList);var e=this;this.otherUnauthenticated.style.display=this.isEmpty(this.unauthenticatedServices)?
"none":"";var f=!0,g;for(g in this.unauthenticatedServices){if(!f||!this.isEmpty(this.authenticatedServices)){var h=a.create("tr",null,this.otherUnauthenticatedList);a.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;'>"},h)}var f=!1,h=a.create("tr",{className:"navTableHeading"}),i=a.create("td",null,h,"only");a.addClass(i,"LoginWindowLeft");var j=a.create("h2",null,i,"only"),i=
a.create("td",{style:"text-align: right"},h,"last");a.addClass(i,"LoginWindowRight");var k=this.unauthenticatedServices[g].authService,l=eclipse.globalCommandUtils.notifyAuthenticationSite,m=l+(l.indexOf("?")===-1?"?":"&")+"key="+g;if(k)if(k.getAuthForm)a.hitch(e,function(c,d){k.getAuthForm(m).then(function(f){a.create("a",{target:"_blank",href:f,innerHTML:b["Sign in"]},c,"last");if(e.unauthenticatedServices[d].label)j.innerHTML=e.unauthenticatedServices[d].label+"<br>";j.innerHTML+=e.getHostname(f)})})(i,
g);else{if(k.login){a.place(document.createTextNode(this.unauthenticatedServices[g].label?this.unauthenticatedServices[g].label:g),j,"only");var n=a.create("a",{innerHTML:b["Sign in"],style:"cursor: hand;"},i,"last");a.connect(n,"onmouseover",n,function(){n.style.cursor="pointer"});a.connect(n,"onmouseout",n,function(){n.style.cursor="default"});a.connect(n,"onclick",a.hitch(e,function(a){return function(){a.login(m).then(function(){e.isSingleService()&&c.popup.hide&&c.popup.hide(e);c.popup.close(e)})}})(k))}}else{l=
this.unauthenticatedServices[g].SignInLocation;l.indexOf("?")===-1?a.create("a",{target:"_blank",href:l+"?redirect="+encodeURIComponent(m),innerHTML:b["Sign in"]},i,"last"):a.create("a",{target:"_blank",href:l+"&redirect="+encodeURIComponent(m),innerHTML:b["Sign in"]},i,"last");if(this.unauthenticatedServices[g].label)j.innerHTML=this.unauthenticatedServices[g].label+"<br>";j.innerHTML+=this.getHostname(l)}a.place(h,this.otherUnauthenticatedList,"last");this.unauthenticatedServices[g].pending&&(h=
a.create("tr"),i=a.create("td",{innerHTML:b["Authentication required!"],style:"padding-left: 10px",colspan:2},h,"only"),a.addClass(i,"LoginWindowLeft"),a.addClass(i,"LoginWindowRight"),a.create("img",{src:d.toUrl("images/warning.gif"),style:"padding-right: 4px; vertical-align: bottom; padding-bottom: 2px;"},i,"first"),a.place(h,this.otherUnauthenticatedList,"last"))}},isSingleService:function(){return this.length(this.unauthenticatedServices)+this.length(this.authenticatedServices)===1},isEmpty:function(a){for(var b in a)if(a.hasOwnProperty(b))return!1;
return!0},length:function(a){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b},getHostname:function(a){var b=document.createElement("a");b.href=a;a=b.href;return a.match(/^(?:f|ht)tp(?:s)?:\/\/([^/]+)/im)[1].toString()},closeDialog:function(){c.popup.hide&&c.popup.hide(this);c.popup.close(this)}})});
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".split(","),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:!1,duration:d.defaultDuration,refocus:!0,autofocus:!0,_firstFocusItem:null,_lastFocusItem:null,doLayout:!1,draggable:!0,"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();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;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")):b.addClass(a,"dijitDialogFixed");this.underlayAttrs={dialogId:this.id,"class":b.map(this["class"].split(/\s/),function(a){return a+"_underlay"}).join(" ")}},_size:function(){this._checkIfSingleChild();if(this._singleChild){if(this._singleChildOriginalStyle)this._singleChild.domNode.style.cssText=
this._singleChildOriginalStyle;delete this._singleChildOriginalStyle}else b.style(this.containerNode,{width:"auto",height:"auto"});var a=b._getMarginSize(this.domNode),c=b.window.getBox();if(a.w>=c.w||a.h>=c.h){var d=Math.min(a.w,Math.floor(c.w*0.75)),a=Math.min(a.h,Math.floor(c.h*0.75));this._singleChild&&this._singleChild.resize?(this._singleChildOriginalStyle=this._singleChild.domNode.style.cssText,this._singleChild.resize({w:d,h:a})):b.style(this.containerNode,{width:d+"px",height:a+"px",overflow:"auto",
position:"relative"})}else this._singleChild&&this._singleChild.resize&&this._singleChild.resize()},_position:function(){if(!b.hasClass(b.body(),"dojoMove")){var a=this.domNode,c=b.window.getBox(),d=this._relativePosition,f=d?null:b._getBorderBox(a);b.style(a,{left:Math.floor(c.l+(d?d.x:(c.w-f.w)/2))+"px",top:Math.floor(c.t+(d?d.y:(c.h-f.h)/2))+"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=!0;this._fadeOutDeferred&&this._fadeOutDeferred.cancel();this._modalconnects.push(b.connect(window,"onscroll",this,"layout"));this._modalconnects.push(b.connect(window,"onresize",this,function(){var a=b.window.getBox();if(!this._oldViewport||a.h!=this._oldViewport.h||a.w!=this._oldViewport.w)this.layout(),this._oldViewport=a}));this._modalconnects.push(b.connect(this.domNode,"onkeypress",this,"_onKey"));b.style(this.domNode,
{opacity:0,display:""});this._set("open",!0);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(){this.autofocus&&d._DialogLevelManager.isTop(this)&&(this._getFocusItems(this.domNode),d.focus(this._firstFocusItem));this._fadeInDeferred.callback(!0);
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(!0);delete this._fadeOutDeferred})}).play();
if(this._scrollConnected)this._scrollConnected=!1;b.forEach(this._modalconnects,b.disconnect);this._modalconnects=[];this._relativePosition&&delete this._relativePosition;this._set("open",!1);return this._fadeOutDeferred}},layout:function(){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;!f||f._destroyed?f=d._underlay=new d.DialogUnderlay(c):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];c.length==1?d._underlay._destroyed||d._underlay.hide():(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(a){return a.dialog}),a),e!=-1&&c.splice(e,1)},isTop:function(a){var b=d._dialogStack;return b[b.length-1].dialog==a}};d._dialogStack=[{dialog:null,focus:null,underlayAttrs:null}];return d.Dialog});
define("orion/widgets/OpenResourceDialog","i18n!orion/widgets/nls/messages,require,dojo,dijit,dijit/Dialog,dijit/form/TextBox,orion/widgets/_OrionDialogMixin,text!orion/widgets/templates/OpenResourceDialog.html".split(","),function(b,d,a,c){return a.declare("orion.widgets.OpenResourceDialog",[c.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:!0,templateString:a.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 Error("Missing required argument: searcher");this.searchRenderer=this.options&&this.options.searchRenderer;if(!this.searchRenderer||typeof this.searchRenderer.makeRenderFunction!=="function")throw Error(b["Missing required argument: searchRenderer"]);this.favService=this.options.favoriteService;
if(!this.favService)throw Error(b["Missing required argument: favService"]);},postMixInProperties:function(){this.options.title=this.options.title||b["Find File Named"];this.selectFile=b["Type the name of a file to open (? = any character, * = any string):"];this.searchPlaceHolder=b.Search;this.inherited(arguments)},postCreate:function(){this.inherited(arguments);a.connect(this.resourceName,"onChange",this,function(){this.time=+new Date;clearTimeout(this.timeoutId);this.timeoutId=setTimeout(a.hitch(this,
this.checkSearch),0)});a.connect(this.resourceName,"onKeyPress",this,function(b){b.keyCode===a.keys.ENTER&&this.results&&(b=a.query("a",this.results),b.length>0&&(window.open(b[0].href),this.hide()))});a.connect(this,"onKeyPress",this,function(b){var d,g,h,i,j;if(b.keyCode===a.keys.DOWN_ARROW||b.keyCode===a.keys.UP_ARROW)g=a.query("a",this.results),d=a.query("a",this.favresults),h=c.getFocus(),j=g.indexOf(h.node),i=d.indexOf(h.node),b.keyCode===a.keys.DOWN_ARROW?i>=0?c.focus(i<d.length-1?d[i+1]:g.length>
0?g[0]:d[0]):j>=0?c.focus(j<g.length-1?g[j+1]:d.length>0?d[0]:g[0]):(g.length>0||d.length>0)&&c.focus(-1<d.length-1?d[0]:g[0]):i>=0?(h=this.resourceName&&this.resourceName.get("textbox"),c.focus(i>0?d[i-1]:h)):j>=0?(h=this.resourceName&&this.resourceName.get("textbox"),c.focus(j>0?g[j-1]:d.length>0?d[d.length-1]:h)):g.length>0?c.focus(g[g.length-1]):d.length>0&&c.focus(d[d.length-1]),a.stopEvent(b)});a.connect(this,"onMouseUp",function(a){a.target.focus()});this.populateFavorites()},populateFavorites:function(){a.place("<div>"+
b["Populating favorites&#x2026;"]+"</div>",this.favresults,"only");this.favService.getFavorites().then(this.showFavorites());this.favService.addEventListener("favoritesChanged",this.showFavorites())},showFavorites:function(){var b=this;return function(c){if(c.navigator)c=c.navigator;b.searchRenderer.makeRenderFunction(b.favresults,!1,a.hitch(b,b.decorateResult),b.showFavoritesImage)(c);c&&c.length>0&&a.place("<hr/>",b.favresults,"last")}},showFavoritesImage:function(c){var f=new Image;a.addClass(f,
"modelDecorationSprite");a.addClass(f,"core-sprite-makeFavorite");f.src=d.toUrl("images/none.png");f.title=b.Favorite;c.appendChild(f);a.style(f,"verticalAlign","middle")},checkSearch:function(){clearTimeout(this.timeoutId);var b=(new Date).getTime();b-this.time>this.SEARCH_DELAY?(this.time=b,this.doSearch()):this.timeoutId=setTimeout(a.hitch(this,"checkSearch"),50)},doSearch:function(){var c=this.resourceName&&this.resourceName.get("value"),d=this.showFavorites();this.favService.queryFavorites(c).then(function(a){d(a)});
if(c){a.place("<div>"+b["Searching&#x2026;"]+"</div>",this.results,"only");var g=this;setTimeout(function(){var b=g.searcher.createSearchQuery(null,c,"NameLower"),d=g.searchRenderer.makeRenderFunction(g.results,!1,a.hitch(g,g.decorateResult));g.searcher.search(b,!1,d)},0)}},decorateResult:function(b){var c=this;a.query("a",b).forEach(function(b){a.connect(b,"onmouseup",function(b){!a.mouseButtons.isMiddle(b)&&!a.isCopyKey(b)&&c.hide()});a.connect(b,"onkeyup",c,function(b){b.keyCode===a.keys.ENTER&&
c.hide()})})},show:function(){this.inherited(arguments);this.resourceName.focus()},onHide:function(){clearTimeout(this.timeoutId);this.inherited(arguments)}})});
define("orion/widgets/plugin/ServiceCarousel","i18n!orion/settings/nls/messages,require,dojo,dijit,orion/util,dijit/TooltipDialog,dojo/fx".split(","),function(b,d,a,c){a.declare("orion.widgets.plugin.ServiceCarousel",[c._Widget,c._Templated],{serviceState:!1,pointer:0,box:null,closedIcon:"data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAwAAAANCAYAAACdKY9CAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9wCCQ46FewKfYYAAAF4SURBVCjPbZEvyFNhGMV/590ciANhjNs2nC66osHiJ8b9cdVgN4uKyWbRaDGZBIvwYRB2723WBUEEy5igYeZxYQzd7t2x7IUFn/bAOec55zxK05TxeEyWZZds3wEeAXeBP8An4I3tr5PJZJemKQLIsiyxfQ6c8f95V1XVw+l0utdsNrsInEsaA5akE6Btx/3Vfr9/HiTdOIIBKMsS29gGOCU/bTQanWD7QVQry1Lz+ZzFYsFutyOEgCQkGbhg+1Zd0vRIkG2KomC5XLJarej3+3S7XUII8dJZHehIihaQxHq9ZrvdUhQFzWaTdrvNEXO1DvwCrkSjh8OBJEnodrv0ej1arVZMD/CjLumj7SexoSRJGAwGdDodarVaBFqSbH9WlmU3gS9RHSCEgG1iw8fW/gLXAvDd9gfbhBAIIThmOf4hZnux2Wx+CyDP88tVVb2XdC9mOVUHXo9Go8eSCFmWMRwOC+A+cBt4C/y0/c32S+C6pGeSyPOcfyAyt4A7QPcNAAAAAElFTkSuQmCC",openIcon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAMCAYAAAC5tzfZAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9wCCQ46NddkXU4AAAFuSURBVCjPXZG/q9NwFMU/5yYQOhVKoF1SDK9OOjl1URxcQl+G5/LgLeJf4K7wRjdBxMXRxcFR6TfZ3e3iUGe3DKXYQSEk10GjwbPdy+X8uEdVVVEUBVVVJcBt4MrdHwI3gG/u/lHSO3f/vNlsfoQQEEBd19O+799IunR3JAHg7gxw92Bmj4uiaLTdbifAe0nnkvDfl+IfxvMnSUUs6Q5wLom+7+m6TmMFSYrjeFjcdfd7MfBozLjb7WiaBjPD3ZlOp6zXa8VxPNh9YsCDgdTMmM/nHI9H9vs9TdOQpilRFI3cct+A7+PgWZaxXC5JkoQsy8jznP/w04Aw2JNEFEXkec5isWC1WjGZTIZvDrk+KIRwC/jyJzQAfd9zOByYzWZ/s42wNklfgZejXtzMSNMUMxsrALx1952G46qqnrr7tZklQ8EjhRZ40XXddVmWrdV1jSROp9Nz4MzdL4BX7h6A18ClpJtt2z4ry7INIfAL982ks01Z8EgAAAAASUVORK5CYII=",
templateString:'<div class="plugin-service-item" tabindex="-1"><span style="line-height:14px;"><div class="serviceContainerClosed" data-dojo-attach-point="serviceLabel" data-dojo-attach-event="onclick:showServices,onkeypress:onServiceClick" tabindex="0" role="button" aria-pressed="false">'+b.Services+'</div><div class="serviceCount" data-dojo-attach-point="serviceCount">0</div></span><div class="serviceRailsHidden" data-dojo-attach-point="rails"  data-dojo-attach-event="onmouseenter:showButtons,onmouseleave:hideButtons,onfocus:showButtons,onblur:hideButtons, onkeypress:handleKeypress" tabindex="0" role="group"><div class="leftButtonArea" data-dojo-attach-point="leftbutton" role="presentation"><span class="carouselControl" data-dojo-attach-event="onclick:slideLeft">&lt;</span></div><div class="listContainer" data-dojo-attach-point="listContainer" role="presentation"><ul class="serviceList" data-dojo-attach-point="testlist"></ul></div><div class="rightButtonArea" data-dojo-attach-point="rightbutton" role="presentation"><span class="carouselControl" data-dojo-attach-event="onclick:slideRight">&gt;</span></div></div></div>',
constructor:function(){this.inherited(arguments)},postCreate:function(){var c=a.marginBox(this.domNode.parentNode);this.addData(this.serviceData);this.serviceLabel.innerHTML=b.Services;this.serviceCount.innerHTML=this.serviceData.length;a.style(this.domNode,"width",c.w-63+"px")},show:function(){a.removeClass(this.rails,"serviceRailsHidden");a.addClass(this.rails,"serviceRailsVisible");a.removeClass(this.serviceLabel,"serviceContainerClosed");a.addClass(this.serviceLabel,"serviceContainerOpen");this.serviceState=
!0},hide:function(){a.removeClass(this.serviceLabel,"serviceContainerOpen");a.addClass(this.serviceLabel,"serviceContainerClosed");a.removeClass(this.rails,"serviceRailsVisible");a.addClass(this.rails,"serviceRailsHidden");this.serviceState=!1},showServices:function(){this.serviceState===!1?(this.show(),this.box?a.marginBox(this.rails,this.box):this.box=a.marginBox(this.rails)):(a.marginBox(this.rails,{h:0}),this.hide())},onServiceClick:function(b){if(b.keyCode===a.keys.ENTER||b.charCode===a.keys.SPACE)this.showServices(),
this.serviceState===!1?a.attr(b.target,"aria-pressed","true"):a.attr(b.target,"aria-pressed","false"),b.preventDefault()},showButtons:function(){this.serviceData.length>1&&this.pointer>0?a.style(this.leftbutton,"visibility","visible"):a.style(this.leftbutton,"visibility","hidden");this.serviceData.length>1&&this.pointer<this.serviceData.length-1?a.style(this.rightbutton,"visibility","visible"):a.style(this.rightbutton,"visibility","hidden");var b=a.marginBox(this.rails),c=a.marginBox(this.leftbutton.firstChild),
b=Math.round(b.h/2)-Math.round(c.h)+"px";a.style(this.leftbutton.firstChild,"top",b);a.style(this.rightbutton.firstChild,"top",b)},hideButtons:function(){a.style(this.leftbutton,"visibility","hidden");a.style(this.rightbutton,"visibility","hidden")},slideRight:function(){this.box=a.marginBox(this.rails);if(this.pointer<this.serviceData.length-1){this.pointer+=1;for(var b=0;b<this.pointer;b++)a.style(this.listContainer.childNodes[0].childNodes[b],"display","none");a.marginBox(this.rails,this.box)}this.showButtons()},
slideLeft:function(){this.box=a.marginBox(this.rails);this.pointer>0&&(this.pointer-=1,a.style(this.listContainer.childNodes[0].childNodes[this.pointer],"display",""));this.showButtons();a.marginBox(this.rails,this.box)},consoleOutput:function(a){console.log("Service: "+a.title+" Element: "+a.item+":");console.log(a.value)},createServiceTable:function(c,d){var g=a.create("li",{"class":"serviceData"},d),g=a.create("div",{"class":"listEntry"},g),h=a.create("div",{"class":"tablecontainer"},g),h=a.create("table",
{"class":"serviceTable"},h);a.place('<thead><tr><th scope="col" id="...">Item</th><th scope="col" id="...">'+b.Value+"</th></tr></thead>",h);a.place("<tfoot><tr><td></td></tr></tfoot>",h);var h=a.create("tbody",null,h),i;for(i=0;i<c.items.length;i++){var j=a.create("tr",null,h);a.create("td",{innerHTML:c.items[i].item},j);var k=c.items[i].value,j=a.create("td",null,j);typeof k==="object"?a.create("span",{"class":"objectLink",title:b["click here, then check javascript console to drill down"],onclick:a.hitch(this,
"consoleOutput",{title:c.service,item:c.items[i].item,value:k}),innerHTML:b["JavaScript Object"]},j):j.innerHTML=k}a.create("div",{innerHTML:c.service,"class":"listTitle"},g)},addData:function(a){var b;for(b=0;b<a.length;b++)this.createServiceTable(a[b],this.testlist)},handleKeypress:function(b){b.keyCode===a.keys.LEFT_ARROW&&a.style(this.leftbutton,"visibility")!=="hidden"?this.slideLeft():b.keyCode===a.keys.RIGHT_ARROW&&a.style(this.rightbutton,"visibility")!=="hidden"&&this.slideRight()},startup:function(){this.inherited(arguments)}})});
define("orion/selection",["dojo"],function(b){function d(a,b){b||(b="orion.page.selection");this._serviceRegistry=a;this._serviceRegistration=a.registerService(b,this);this._selections=[]}d.prototype={getSelection:function(a){a(this._getSingleSelection())},getSelections:function(a){a(this._selections)},_getSingleSelection:function(){return this._selections&&this._selections.length>0?this._selections[0]:null},setSelections:function(a){this._selections=b.isArray(a)?a:a?[a]:null;this._serviceRegistration.dispatchEvent("selectionChanged",
this._getSingleSelection(),this._selections)}};d.prototype.constructor=d;return{Selection:d}});var eclipse=eclipse||{};
eclipse.UsersService=function(){function b(b){if(b)this._serviceRegistry=b,this._serviceRegistration=b.registerService("orion.core.user",this)}b.prototype={getUsersList:function(b){var a=this;return dojo.xhrGet({url:"../users",headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,load:function(c,e){b&&(typeof b==="function"?b(c,e):a._serviceRegistration.dispatchEvent(b,c));return c.users},error:function(b){var d=this;a.info||handleAuthenticationError(b,function(){dojo.xhrGet(d)});return b}})},
deleteUser:function(b,a){var c=this;return dojo.xhrDelete({url:b,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,load:function(b,d){a&&(typeof a==="function"?a(b,d):c._serviceRegistration.dispatchEvent(a,b))},error:function(a){var b=this;c.info||handleAuthenticationError(a,function(){dojo.xhrDelete(b)});return a}})},createUser:function(b,a,c,e){var f=this;return dojo.xhrPost({url:"../users",headers:{"Orion-Version":"1"},content:{login:b,password:a},handleAs:"text",timeout:15E3,load:function(a,
b){c&&(typeof c==="function"?c(a,b):f._serviceRegistration.dispatchEvent(c,a));return a},error:function(a,b){e&&e(a,b);return a}})},getUserInfo:function(b,a){var c=this;return dojo.xhrGet({url:b,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,load:function(b,d){a&&(typeof a==="function"?a(b,d):c._serviceRegistration.dispatchEvent(a,b))},error:function(a){var b=this;c.info||handleAuthenticationError(a,function(){dojo.xhrGet(b)});return a}})},updateUserInfo:function(b,a,c){var e=this;return a.password!==
a.passwordRetype?(b=new dojo.Deferred,b.errback({message:messages["Passwords do not match!"]}),b):dojo.xhrPut({url:b,headers:{"Orion-Version":"1"},handleAs:"json",putData:dojo.toJson(a),timeout:15E3,load:function(a,b){return c?typeof c==="function"?c(a,b):(e._serviceRegistration.dispatchEvent(c,a),a):a},error:function(a){var b=this;e.info||handleAuthenticationError(a,function(){dojo.xhrPut(b)});return a}})},resetUserPassword:function(b,a,c){return dojo.xhrPost({url:"../users",headers:{"Orion-Version":"1"},
content:{reset:!0,login:b,password:a},handleAs:"json",timeout:15E3,load:function(a,b){c&&(typeof c==="function"?c(a,b):service._serviceRegistration.dispatchEvent(c,a));return a},error:function(a){return a}})}};return b}();define("profile/UsersService",function(){});
define("orion/widgets/settings/Section",["i18n!orion/settings/nls/messages","require","dojo","dijit","orion/util"],function(b,d,a,c){a.declare("orion.widgets.settings.Section",[c._Widget,c._Templated],{templateString:'<section role="region" aria-labelledby="Navigation-header"><h3 data-dojo-attach-point="titleNode">'+b.Title+'</h3><div data-dojo-attach-point="sectionContent"></div></section>',postCreate:function(){this.titleNode.innerHTML=this.sectionName;this.container&&this.container.appendChild(this.domNode);
if(this.sections)for(var a=0;a<this.sections.length;a++)this.sectionContent.appendChild(this.sections[a].domNode),this.sections[a].startup()},addContent:function(a){this.sectionContent.appendChild(a)}})});define("text!dijit/form/templates/Select.html",[],function(){return'<table class="dijit dijitReset dijitInline dijitLeft"\n\tdojoAttachPoint="_buttonNode,tableNode,focusNode" cellspacing=\'0\' cellpadding=\'0\'\n\trole="combobox" aria-haspopup="true"\n\t><tbody role="presentation"><tr role="presentation"\n\t\t><td class="dijitReset dijitStretch dijitButtonContents dijitButtonNode" role="presentation"\n\t\t\t><span class="dijitReset dijitInline dijitButtonText"  dojoAttachPoint="containerNode,_popupStateNode"></span\n\t\t\t><input type="hidden" ${!nameAttrSetting} dojoAttachPoint="valueNode" value="${value}" aria-hidden="true"\n\t\t/></td><td class="dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton"\n\t\t\t\tdojoAttachPoint="titleNode" role="presentation"\n\t\t\t><div class="dijitReset dijitArrowButtonInner" role="presentation"></div\n\t\t\t><div class="dijitReset dijitArrowButtonChar" role="presentation">&#9660;</div\n\t\t></td\n\t></tr></tbody\n></table>'});
define("dijit/form/_FormSelectWidget",["dojo","dijit","dijit/form/_FormWidget","dojo/data/util/sorter"],function(b,d){b.declare("dijit.form._FormSelectWidget",d.form._FormValueWidget,{multiple:!1,options:null,store:null,query:null,queryOptions:null,onFetch:null,sortByLabel:!0,loadChildrenOnOpen:!1,getOptions:function(a){var c=a,d=this.options||[],f=d.length;if(c===void 0)return d;if(b.isArray(c))return b.map(c,"return this.getOptions(item);",this);b.isObject(a)&&(b.some(this.options,function(a,b){return a===
c||a.value&&a.value===c.value?(c=b,!0):!1})||(c=-1));if(typeof c=="string")for(a=0;a<f;a++)if(d[a].value===c){c=a;break}return typeof c=="number"&&c>=0&&c<f?this.options[c]:null},addOption:function(a){b.isArray(a)||(a=[a]);b.forEach(a,function(a){a&&b.isObject(a)&&this.options.push(a)},this);this._loadChildren()},removeOption:function(a){b.isArray(a)||(a=[a]);a=this.getOptions(a);b.forEach(a,function(a){if(a)this.options=b.filter(this.options,function(b){return b.value!==a.value||b.label!==a.label}),
this._removeOptionItem(a)},this);this._loadChildren()},updateOption:function(a){b.isArray(a)||(a=[a]);b.forEach(a,function(a){var b=this.getOptions(a),d;if(b)for(d in a)b[d]=a[d]},this);this._loadChildren()},setStore:function(a,c,d){var f=this.store,d=d||{};if(f!==a){b.forEach(this._notifyConnections||[],b.disconnect);delete this._notifyConnections;if(a&&a.getFeatures()["dojo.data.api.Notification"])this._notifyConnections=[b.connect(a,"onNew",this,"_onNewItem"),b.connect(a,"onDelete",this,"_onDeleteItem"),
b.connect(a,"onSet",this,"_onSetItem")];this._set("store",a)}this._onChangeActive=!1;this.options&&this.options.length&&this.removeOption(this.options);a?(this._loadingStore=!0,a.fetch(b.delegate(d,{onComplete:function(f,h){this.sortByLabel&&!d.sort&&f.length&&f.sort(b.data.util.sorter.createSortFunction([{attribute:a.getLabelAttributes(f[0])[0]}],a));d.onFetch&&(f=d.onFetch.call(this,f,h));b.forEach(f,function(a){this._addOptionForItem(a)},this);this._loadingStore=!1;this.set("value","_pendingValue"in
this?this._pendingValue:c);delete this._pendingValue;this.loadChildrenOnOpen?this._pseudoLoadChildren(f):this._loadChildren();this._fetchedWith=h;this._lastValueReported=this.multiple?[]:null;this._onChangeActive=!0;this.onSetStore();this._handleOnChange(this.value)},scope:this}))):delete this._fetchedWith;return f},_setValueAttr:function(a,c){if(this._loadingStore)this._pendingValue=a;else{var d=this.getOptions()||[];b.isArray(a)||(a=[a]);b.forEach(a,function(c,f){b.isObject(c)||(c+="");typeof c===
"string"&&(a[f]=b.filter(d,function(a){return a.value===c})[0]||{value:"",label:""})},this);a=b.filter(a,function(a){return a&&a.value});if(!this.multiple&&(!a[0]||!a[0].value)&&d.length)a[0]=d[0];b.forEach(d,function(c){c.selected=b.some(a,function(a){return a.value===c.value})});var f=b.map(a,function(a){return a.value}),g=b.map(a,function(a){return a.label});this._set("value",this.multiple?f:f[0]);this._setDisplay(this.multiple?g:g[0]);this._updateSelection();this._handleOnChange(this.value,c)}},
_getDisplayedValueAttr:function(){var a=this.get("value");b.isArray(a)||(a=[a]);a=b.map(this.getOptions(a),function(a){if(a&&"label"in a)return a.label;else if(a)return a.value;return null},this);return this.multiple?a:a[0]},_loadChildren:function(){this._loadingStore||(b.forEach(this._getChildren(),function(a){a.destroyRecursive()}),b.forEach(this.options,this._addOptionItem,this),this._updateSelection())},_updateSelection:function(){this._set("value",this._getValueFromOpts());var a=this.value;b.isArray(a)||
(a=[a]);a&&a[0]&&b.forEach(this._getChildren(),function(c){var e=b.some(a,function(a){return c.option&&a===c.option.value});b.toggleClass(c.domNode,this.baseClass+"SelectedOption",e);d.setWaiState(c.domNode,"selected",e)},this)},_getValueFromOpts:function(){var a=this.getOptions()||[];if(!this.multiple&&a.length){var c=b.filter(a,function(a){return a.selected})[0];return c&&c.value?c.value:(a[0].selected=!0,a[0].value)}else if(this.multiple)return b.map(b.filter(a,function(a){return a.selected}),
function(a){return a.value})||[];return""},_onNewItem:function(a,b){(!b||!b.parent)&&this._addOptionForItem(a)},_onDeleteItem:function(a){this.removeOption(this.store.getIdentity(a))},_onSetItem:function(a){this.updateOption(this._getOptionObjForItem(a))},_getOptionObjForItem:function(a){var b=this.store,d=b.getLabel(a);return{value:d?b.getIdentity(a):null,label:d,item:a}},_addOptionForItem:function(a){var b=this.store;b.isItemLoaded(a)?this.addOption(this._getOptionObjForItem(a)):b.loadItem({item:a,
onComplete:function(){this._addOptionForItem(a)},scope:this})},constructor:function(a){this._oValue=(a||{}).value||null},buildRendering:function(){this.inherited(arguments);b.setSelectable(this.focusNode,!1)},_fillContent:function(){var a=this.options;if(!a)a=this.options=this.srcNodeRef?b.query(">",this.srcNodeRef).map(function(a){return a.getAttribute("type")==="separator"?{value:"",label:"",selected:!1,disabled:!1}:{value:a.getAttribute("data-"+b._scopeName+"-value")||a.getAttribute("value"),label:String(a.innerHTML),
selected:a.getAttribute("selected")||!1,disabled:a.getAttribute("disabled")||!1}},this):[];this.value?this.multiple&&typeof this.value=="string"&&this_set("value",this.value.split(",")):this._set("value",this._getValueFromOpts())},postCreate:function(){this.inherited(arguments);this.connect(this,"onChange","_updateSelection");this.connect(this,"startup","_loadChildren");this._setValueAttr(this.value,null)},startup:function(){this.inherited(arguments);var a=this.store,c={};b.forEach(["query","queryOptions",
"onFetch"],function(a){this[a]&&(c[a]=this[a]);delete this[a]},this);if(a&&a.getFeatures()["dojo.data.api.Identity"])this.store=null,this.setStore(a,this._oValue,c)},destroy:function(){b.forEach(this._notifyConnections||[],b.disconnect);this.inherited(arguments)},_addOptionItem:function(){},_removeOptionItem:function(){},_setDisplay:function(){},_getChildren:function(){return[]},_getSelectedOptionsAttr:function(){return this.getOptions(this.get("value"))},_pseudoLoadChildren:function(){},onSetStore:function(){}});
return d.form._FormSelectWidget});
define("dijit/form/Select","dojo,dijit,text!dijit/form/templates/Select.html,dijit/form/_FormSelectWidget,dijit/_HasDropDown,dijit/Menu,dijit/Tooltip,i18n!dijit/form/nls/validate".split(","),function(b,d){b.declare("dijit.form._SelectMenu",d.Menu,{buildRendering:function(){this.inherited(arguments);var a=this.menuTableNode=this.domNode,c=this.domNode=b.create("div",{style:{overflowX:"hidden",overflowY:"scroll"}});a.parentNode&&a.parentNode.replaceChild(c,a);b.removeClass(a,"dijitMenuTable");c.className=
a.className+" dijitSelectMenu";a.className="dijitReset dijitMenuTable";d.setWaiRole(a,"listbox");d.setWaiRole(c,"presentation");c.appendChild(a)},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onmousemove",b.stopEvent)},resize:function(a){if(a&&(b.marginBox(this.domNode,a),"w"in a))this.menuTableNode.style.width="100%"}});b.declare("dijit.form.Select",[d.form._FormSelectWidget,d._HasDropDown],{baseClass:"dijitSelect",templateString:b.cache("dijit.form","templates/Select.html"),
attributeMap:b.mixin(b.clone(d.form._FormSelectWidget.prototype.attributeMap),{style:"tableNode"}),required:!1,state:"",message:"",tooltipPosition:[],emptyLabel:"&nbsp;",_isLoaded:!1,_childrenLoaded:!1,_fillContent:function(){this.inherited(arguments);if(this.options.length&&!this.value&&this.srcNodeRef){var a=this.srcNodeRef.selectedIndex||0;this.value=this.options[a>=0?a:0].value}this.dropDown=new d.form._SelectMenu({id:this.id+"_menu"});b.addClass(this.dropDown.domNode,this.baseClass+"Menu")},
_getMenuItemForOption:function(a){if(!a.value&&!a.label)return new d.MenuSeparator;else{var c=b.hitch(this,"_setValueAttr",a),a=new d.MenuItem({option:a,label:a.label||this.emptyLabel,onClick:c,disabled:a.disabled||!1});d.setWaiRole(a.focusNode,"listitem");return a}},_addOptionItem:function(a){this.dropDown&&this.dropDown.addChild(this._getMenuItemForOption(a))},_getChildren:function(){return!this.dropDown?[]:this.dropDown.getChildren()},_loadChildren:function(a){a===!0?(this.dropDown&&delete this.dropDown.focusedChild,
this.options.length?this.inherited(arguments):(b.forEach(this._getChildren(),function(a){a.destroyRecursive()}),this.dropDown.addChild(new d.MenuItem({label:"&nbsp;"})))):this._updateSelection();this._isLoaded=!1;this._childrenLoaded=!0;this._loadingStore||this._setValueAttr(this.value)},_setValueAttr:function(a){this.inherited(arguments);b.attr(this.valueNode,"value",this.get("value"))},_setDisplay:function(a){a=a||this.emptyLabel;this.containerNode.innerHTML='<span class="dijitReset dijitInline '+
this.baseClass+'Label">'+a+"</span>";d.setWaiState(this.focusNode,"valuetext",a)},validate:function(a){a=this.isValid(a);this._set("state",a?"":"Error");d.setWaiState(this.focusNode,"invalid",a?"false":"true");var b=a?"":this._missingMsg;this.message!==b&&(this._set("message",b),d.hideTooltip(this.domNode),b&&d.showTooltip(b,this.domNode,this.tooltipPosition,!this.isLeftToRight()));return a},isValid:function(){return!this.required||this.value===0||!/^\s*$/.test(this.value||"")},reset:function(){this.inherited(arguments);
d.hideTooltip(this.domNode);this._set("state","");this._set("message","")},postMixInProperties:function(){this.inherited(arguments);this._missingMsg=b.i18n.getLocalization("dijit.form","validate",this.lang).missingMessage},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onmousemove",b.stopEvent)},_setStyleAttr:function(a){this.inherited(arguments);b.toggleClass(this.domNode,this.baseClass+"FixedWidth",!!this.tableNode.style.width)},isLoaded:function(){return this._isLoaded},
loadDropDown:function(a){this._loadChildren(!0);this._isLoaded=!0;a()},closeDropDown:function(){this.inherited(arguments);if(this.dropDown&&this.dropDown.menuTableNode)this.dropDown.menuTableNode.style.width=""},uninitialize:function(a){this.dropDown&&!this.dropDown._destroyed&&(this.dropDown.destroyRecursive(a),delete this.dropDown);this.inherited(arguments)}});return d.form.Select});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/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".split(","),function(b,d){b.declare("dijit.form.Button",d.form._FormWidget,{label:"",showLabel:!0,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!1;this._clicked();return this.onClick(a)},_onButtonClick:function(a){if(this._onClick(a)===!1)a.preventDefault();else if(this.type=="submit"&&!(this.valueNode||this.focusNode).form)for(var b=this.domNode;b.parentNode;b=b.parentNode){var e=d.byNode(b);if(e&&typeof e._onSubmit=="function"){e._onSubmit(a);break}}else this.valueNode&&(this.valueNode.click(),a.preventDefault())},buildRendering:function(){this.inherited(arguments);b.setSelectable(this.focusNode,
!1)},_fillContent:function(a){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!0},_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==!1&&!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:!1,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=!1;this.set("checked",this.params.checked||!1)}});return d.form.Button});define("dijit/form/DropDownButton",["dojo","dijit","dijit/form/Button"],function(b,d){return d.form.DropDownButton});
define("orion/commands","i18n!orion/nls/messages,require,dojo,dijit,orion/util,orion/PageUtil,orion/navigationUtils,dijit/Menu,dijit/form/DropDownButton,dijit/MenuItem,dijit/PopupMenuItem,dijit/MenuSeparator,dijit/Tooltip,dijit/TooltipDialog".split(","),function(b,d,a,c,e,f,g){function h(b,c,d){var e=function(){d&&a.addClass(this,d)},f=function(){d&&a.removeClass(this,d)};a.connect(b,"onmouseover",b,e);a.connect(c,"onfocus",b,e);a.connect(b,"onmouseout",b,f);a.connect(c,"onblur",b,f)}function i(a,
b,c,d,e){this.commandService=a;this.handler=b;this.items=c;this.userData=d;this.command=e;if(e.parameters)this.parameters=e.parameters.makeCopy();this.id=e.id}function j(a){this._commandList={};this._contributionsByScopeId={};this._activeBindings={};this._urlBindings={};this._init(a);this._parameterCollector=null;this.showMenuIcons=!1}function k(b,c,d){a.addClass(c,"commandImage");var e;b.imageClass?(e=a.create("span",{},c,"last"),a.addClass(e,b.spriteClass),a.addClass(e,b.imageClass)):(e=new Image,
e.alt=b.name,e.name=d,e.id=d,e.src=b.image,a.place(e,c,"last"));return e}function l(a){this._init(a)}function m(b,c,d,e,f,g,h){this.keyCode=typeof b==="string"?b.toUpperCase().charCodeAt(0):b;this.mod1=c!==void 0&&c!==null?c:!1;this.mod2=d!==void 0&&d!==null?d:!1;this.mod3=e!==void 0&&e!==null?e:!1;this.mod4=f!==void 0&&f!==null?f:!1;typeof g==="string"?(this.domScope=a.byId(g),this.scopeName=h||g):(this.domScope=g,this.scopeName=h||g?g.id:null)}function n(a,b){this.token=a;this.parameterName=b}function p(a,
b,c,d,e){this.name=a;this.type=b;this.label=c;this.value=d;this.lines=e||1}function o(a,b,c){this._storeParameters(a);this._hasOptionalParameters=b&&b.hasOptionalParameters;this._clientCollect=b&&b.clientCollect;this._options=b;this.optionsRequested=!1;this.getParameters=c}i.prototype={collectsParameters:function(){return this.commandService&&this.commandService.collectsParameters()},makeCopy:function(){var a=new i(this.commandService,this.handler,this.items,this.userData,this.command);a.domNode=
this.domNode;a.domParent=this.domParent;if(this.parameters)a.parameters=this.parameters.makeCopy();return a}};i.prototype.constructor=i;var r=a.declare(c.MenuItem,{constructor:function(){var b=arguments[0]||{};b.onKeyDown=a.hitch(this,function(b){if((b.keyCode===a.keys.ENTER||b.keyCode===a.keys.SPACE)&&this._anchorLocation)b.ctrlKey?window.open(this._anchorLocation):window.location=this._anchorLocation});this.inherited(arguments||[b])},postCreate:function(){var b=a.query("a",this.domNode)[0];if(b)a.addClass(b,
"commandMenuItemAnchor"),this._anchorLocation=b.href},setLink:function(a,b){this.set("label","<a class='commandMenuItemAnchor' href='"+a+"'>"+b+"</a>");this._anchorLocation=a},_onClick:function(a){this.hasLink||this.inherited(arguments)}}),q=a.declare(c.Tooltip,{constructor:function(){this.inherited(arguments);this.options=arguments[0]||{};this.showDelay=1E3},_onUnHover:function(){this._showTimer&&(window.clearTimeout(this._showTimer),delete this._showTimer);this.polling=!1;this.close()},_onHover:function(b){this.inherited(arguments);
this.polling=!0;this.pollForMissingTarget();window.setTimeout(function(){c._masterTT&&a.removeAttr(c._masterTT.containerNode,"role")},this.showDelay+1)},pollForMissingTarget:function(){this.polling&&window.setTimeout(a.hitch(this,function(){this._stillInDocument(this._connectNode)?this.pollForMissingTarget():(this.polling=!1,this.close())}),this.showDelay+500)},_stillInDocument:function(a){for(;a;){if(a===window.document)return!0;a=a.parentNode}return!1},postMixInProperties:function(){this.inherited(arguments);
this.options.commandParent&&c.byId(this.options.commandParent.id)&&a.connect(this.options.commandParent,"onClose",a.hitch(this,function(){this.close()}))}});j.prototype={_init:function(b){this._registry=b.serviceRegistry;this._serviceRegistration=this._registry.registerService("orion.page.command",this);this._defaultSelectionService=b.selection;a.connect(window.document,"onkeydown",a.hitch(this,function(a){a=a||window.event;if(a.target.contentEditable!=="true"){var b=a.target.nodeName.toLowerCase();
if(b==="input")switch(a.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(b==="textarea")return;this._processKey(a)}}))},_processKey:function(b){function c(a){window.document.all?a.keyCode=0:(a.preventDefault(),a.stopPropagation())}for(var d in this._activeBindings)if(this._activeBindings[d]&&this._activeBindings[d].keyBinding&&
this._activeBindings[d].command&&this._activeBindings[d].keyBinding.match(b)){var e=this._activeBindings[d],f=e.invocation;if(f)if(e=e.command,e.hrefCallback){c(b);b=e.hrefCallback.call(f.handler||window,f);b.then?b.then(function(a){window.open(a)}):window.open(b);break}else if(e.callback){c(b);window.setTimeout(a.hitch(this,function(){this._invoke(f)}),0);break}}},processURL:function(b){for(var c in this._urlBindings)if(this._urlBindings[c]&&this._urlBindings[c].urlBinding&&this._urlBindings[c].command){var d=
this._urlBindings[c].urlBinding.match(b);if(d){var e=this._urlBindings[c],f=e.command,g=e.invocation;if(g&&g.parameters&&f.callback){g.parameters.setValue(d.parameterName,d.parameterValue);window.setTimeout(a.hitch(this,function(){this._invoke(g)}),0);break}}}},findCommand:function(a){return this._commandList[a]},runCommand:function(b,c,d){if(c){var e=this._commandList[b];(e.visibleWhen?e.visibleWhen(c):1)&&e.callback&&window.setTimeout(a.hitch(this,function(){this._invoke(new i(this,d,c,null,e))}),
0)}else{var f=this._urlBindings[b];f&&f.command&&f.command.callback&&window.setTimeout(a.hitch(this,function(){this._invoke(f.invocation)}),0)}},getSelectionService:function(){return this._defaultSelectionService},setParameterCollector:function(a){this._parameterCollector=a},openParameterCollector:function(a,b,c){this._parameterCollector&&(this._parameterCollector.close(),this._parameterCollector.open(a,b,c))},closeParameterCollector:function(){this._parameterCollector&&this._parameterCollector.close()},
collectsParameters:function(){return this._parameterCollector},_invoke:function(a){return this._collectAndInvoke(a.makeCopy(),!1)},_collectAndInvoke:function(b,d){if(b)if(this._parameterCollector&&b.parameters&&b.parameters.hasParameters()&&(d||b.parameters.shouldCollectParameters())){var e=!1;b.parameters.updateParameters(b);e=this._parameterCollector.collectParameters(b);if(!e){var f=new c.TooltipDialog({onBlur:function(){c.popup.close(f)}}),g=a.create("div"),h=window.document.activeElement,i=this._parameterCollector.getFillFunction(b,
function(){c.popup.close(f);f.destroyRecursive();h&&h.focus()})(g);f.set("content",g);g=(g=c.byId(b.domParent.id))?a.position(g.eclipseScopeId,!0):a.position(b.domNode,!0);g.x&&g.y&&g.w&&(c.popup.open({popup:f,x:g.x+g.w-8,y:g.y+8}),window.setTimeout(function(){i.focus();i.select()},0),e=!0)}if(!e)b.parameters=null,b.command.callback.call(b.handler||window,b)}else b.command.callback.call(b.handler||window,b);else window.console.log("Client attempted to invoke command without an available (rendered) command invocation")},
collectParameters:function(a){this._collectAndInvoke(a,!0)},showKeyBindings:function(b){var c={},d,f,g;for(g in this._activeBindings)if((f=this._activeBindings[g])&&f.keyBinding&&f.command)f.keyBinding.scopeName?(c[f.keyBinding.scopeName]||(c[f.keyBinding.scopeName]=[]),c[f.keyBinding.scopeName].push(f)):(d=e.getUserKeyString(f.keyBinding),a.place("<span role='listitem'>"+d+" = "+f.command.name+"<br></span>",b,"last"));for(var h in c)if(c[h].length&&c[h].length>0){a.place("<h2>"+h+"</h2>",b,"last");
for(g=0;g<c[h].length;g++)f=c[h][g],d=e.getUserKeyString(f.keyBinding),a.place("<span role='listitem'>"+d+" = "+f.command.name+"<br></span>",b,"last")}},addCommand:function(a){this._commandList[a.id]=a},addCommandGroup:function(a,b,c,d,e,f){this._contributionsByScopeId[a]||(this._contributionsByScopeId[a]={});a=this._contributionsByScopeId[a];e&&(a=this._createEntryForPath(a,e));if(a[b]){if(d)a[b].title=d;if(c)a[b].position=c;a[b].emptyGroupMessage=f}else a[b]={title:d,position:c,emptyGroupMessage:f,
children:{}},a.sortedContributions=null},_createEntryForPath:function(a,b){if(b)for(var c=b.split("/"),d=0;d<c.length;d++)if(c[d].length>1)a[c[d]]||(a[c[d]]={position:0,children:{}}),a=a[c[d]].children;return a},registerSelectionService:function(a,b){this._contributionsByScopeId[a]||(this._contributionsByScopeId[a]={});this._contributionsByScopeId[a].localSelectionService=b},registerCommandContribution:function(a,b,c,d,e,f,g){this._contributionsByScopeId[a]||(this._contributionsByScopeId[a]={});a=
this._contributionsByScopeId[a];d&&(a=this._createEntryForPath(a,d));a[b]={position:c};f&&(c=this._commandList[b])&&(this._activeBindings[b]={command:c,keyBinding:f,bindingOnly:e});g&&(c=this._commandList[b])&&(this._urlBindings[b]={command:c,urlBinding:g,bindingOnly:e});a.sortedContributions=null},_isLastChildSeparator:function(b,d){if(d==="tool"||d==="button")return b.childNodes.length>0&&a.hasClass(b.childNodes[b.childNodes.length-1],"commandSeparator");if(d==="menu"){var e=b.getChildren();return e.length>
0&&e[e.length-1]instanceof c.MenuSeparator}return!1},renderCommands:function(b,c,d,f,g,h,i){if(typeof b!=="string")throw"a scope id for rendering must be specified";typeof c==="string"&&(c=a.byId(c));if(!c)throw"no parent";var j=this._contributionsByScopeId[b];if(!d&&j){var d=j.localSelectionService||this._defaultSelectionService,k=this;d&&d.getSelections(function(a){k.renderCommands(b,c,a,f,g,h)})}else j&&(this._render(this._contributionsByScopeId[b],c,d,f,g,h,i),g==="tool"||g==="button"?this._isLastChildSeparator(c,
g)&&c.removeChild(c.childNodes[c.childNodes.length-1]):g==="menu"&&this._isLastChildSeparator(c,g)&&(d=c.getChildren()[c.getChildren().length-1],c.removeChild(d),d.destroy()),e.forceLayout(c))},destroy:function(b){typeof b==="string"&&(b=a.byId(b));if(!b)throw"no parent";var d=c.findWidgets(b);a.forEach(d,function(a){a.destroyRecursive()});a.empty(b)},_render:function(d,e,f,j,k,l,m){var n=d.sortedContributions;if(!n){var n=[],q=!1,p;for(p in d)if(!d.hasOwnProperty||d.hasOwnProperty(p)){var o=d[p];
if(o&&typeof o.position==="number")o.id=p,n.push(o),q=!0}if(q)n.sort(function(a,b){return a.position-b.position}),d.sortedContributions=n}for(d=0;d<n.length;d++){var r,s;if(n[d].children&&Object.getOwnPropertyNames(n[d].children).length>0){p=n[d];var K,q=n[d].children,x=this;if(k==="tool"||k==="button")if(p.title){var E=new c.Menu({style:"display: none;"});r=new c.form.DropDownButton({label:p.title==="*"?b.Actions:p.title,showLabel:p.title!=="*",style:"visibility: hidden;",dropDown:E});a.addClass(r.domNode,
"commandMenu");m&&g.generateNavGrid(m,r.domNode,r);o=e;e.nodeName.toLowerCase()==="ul"?o=a.create("li",{},e):a.addClass(r.domNode,"commandMargins");a.removeAttr(r.titleNode,"title");a.destroy(r.valueNode);h(r.domNode,r.focusNode);a.place(r.domNode,o,"last");E.eclipseScopeId=e.eclipseScopeId||e.id;window.setTimeout(a.hitch({contributions:q,emptyGroupMessage:p.emptyGroupMessage},function(){if(!E._destroyed){x._render(this.contributions,E,f,j,"menu",l,m);K=E.getChildren();if(x._isLastChildSeparator(E,
"menu")){var b=K[K.length-1];E.removeChild(b);b.destroy();K=E.getChildren()}K.length===0?this.emptyGroupMessage?(a.connect(r.focusNode,"onclick",this,function(){var a=new c.TooltipDialog({content:"<p>"+this.emptyGroupMessage+"</p>",onMouseLeave:function(){c.popup.close(a);a.destroyRecursive()}});c.popup.open({popup:a,around:r.domNode});window.setTimeout(function(){c.popup.close(a);a.destroyRecursive()},15E3)}),a.style(r.domNode,"visibility","visible")):(m&&g.removeNavGrid(m,r.domNode),r.destroyRecursive()):
a.style(r.domNode,"visibility","visible")}}),0)}else{var L;e.childNodes.length>0&&!this._isLastChildSeparator(e,k)&&(L=this.generateSeparatorImage(e));x._render(q,e,f,j,k,l,m);e.childNodes.length>0&&e.childNodes[e.childNodes.length-1]!==L&&(L=this.generateSeparatorImage(e))}else if(p.title)o=new c.Menu,p=new c.PopupMenuItem({label:p.title,popup:o}),e.addChild(p),x._render(q,o,f,j,k,l,m),o.getChildren().length===0&&(p.set("label","removeme"),e.removeChild(p),p.destroyRecursive());else{var F;e.getChildren().length>
0&&!this._isLastChildSeparator(e,k)&&(F=new c.MenuSeparator,e.addChild(F));x._render(q,e,f,j,k,l,m);q=e.getChildren();q[q.length-1]!==F&&(F=new c.MenuSeparator,e.addChild(F))}}else{p=(q=this._commandList[n[d].id])?!0:!1;var M=null,M=null;if(q){s=new i(this,j,f,l,q);s.domParent=e;o=p&&(q.visibleWhen?q.visibleWhen(f):!0);if(this._activeBindings[q.id]&&this._activeBindings[q.id].keyBinding)M=this._activeBindings[q.id],M.invocation=o?s:null,M.bindingOnly&&(p=!1);if(this._urlBindings[q.id]&&this._urlBindings[q.id].urlBinding)M=
this._urlBindings[q.id],M.invocation=o?s:null,M.bindingOnly&&(p=!1);p=p&&o}if(p)if(q.choiceCallback)if(p=new c.Menu({style:"display: none;"}),k==="tool"||k==="button"){r=new c.form.DropDownButton({label:q.name,dropDown:p});a.addClass(r.domNode,"commandMenu");a.removeAttr(r.titleNode,"title");a.destroy(r.valueNode);if(q.image)a.addClass(r.iconNode,"commandImage"),r.iconNode.src=q.image;a.place(r.domNode,e,"last");r.eclipseCommand=q;r.eclipseChoices=p;a.connect(r,"onClick",r,function(){this.eclipseCommand.populateChoicesMenu(this.eclipseChoices,
f,j,l)})}else{if(k==="menu")o=new c.PopupMenuItem({label:q.name,popup:p}),e.addChild(o),o.eclipseCommand=q,o.eclipseChoices=p,a.connect(e,"_openPopup",o,function(){this.eclipseCommand.populateChoicesMenu(this.eclipseChoices,f,j,l)})}else k==="tool"?(p="tool"+q.id+d,q._addTool(e,p,s,m)):k==="button"?(p="button"+q.id+d,q._addButton(e,p,s,m)):k==="menu"&&q._addMenuItem(e,s,m)}}},generateSeparatorImage:function(b){b=b.nodeName.toLowerCase()==="ul"?a.create("li",null,b,"last"):a.create("span",null,b,"last");
a.addClass(b,"core-sprite-sep");a.addClass(b,"imageSprite");a.addClass(b,"commandSeparator");return b}};j.prototype.constructor=j;l.prototype={_init:function(a){this.id=a.id;this.name=a.name;this.tooltip=a.tooltip||a.name;this.callback=a.callback;this.hrefCallback=a.hrefCallback;this.choiceCallback=a.choiceCallback;this.image=a.image||d.toUrl("images/none.png");this.imageClass=a.imageClass;this.spriteClass=a.spriteClass||"commandSprite";this.visibleWhen=a.visibleWhen;this.parameters=a.parameters;
this.description=a.description},_addTool:function(b,c,d,e){d.handler=d.handler||this;var f,i;if(this.hrefCallback){if(f=this._makeLink(d),!f)return}else f=a.create("span",{tabindex:e?"-1":"0",role:"button"}),this.hasImage()?(i=k(this,f,c),this._addAccessibleLabel(f)):(c=window.document.createTextNode(this.name),a.place(c,f,"last"),a.addClass(f,"commandMissingImageButton commandButton")),this._hookCallback(f,d),h(f,f,i?"commandImageOver":"commandButtonOver");d.domNode=f;d.domParent=b;this.tooltip&&
new q({connectId:[f],label:this.tooltip,position:["above","left","right","below"],commandParent:b,commandService:d.commandService});b.nodeName.toLowerCase()==="ul"?b=a.create("li",{},b):a.addClass(f,"commandMargins");a.place(f,b,"last");g.generateNavGrid(e,d.domNode)},_addButton:function(b,c,d,e){d.handler=d.handler||this;var f;if(this.hrefCallback){if(f=this._makeLink(d),!f)return}else{f=a.create("span",{tabindex:"0",role:"button"});this._hookCallback(f,d);var i;this.name?(a.place(window.document.createTextNode(this.name),
f,"last"),a.addClass(f,"commandButton"),i="commandButtonOver"):(k(this,f,c),i="commandImageOver",this._addAccessibleLabel(f));h(f,f,i)}f.id=c;this.tooltip&&new q({connectId:[f],label:this.tooltip,position:["above","left","right","below"],commandParent:b,commandService:d.commandService});d.domParent=b;d.domNode=f;b.nodeName.toLowerCase()==="ul"?b=a.create("li",{},b):a.addClass(f,"commandMargins");a.place(f,b,"last");g.generateNavGrid(e,d.domNode)},_addMenuItem:function(b,c,d){var e=c.commandService.showMenuIcons;
c.domParent=b.domNode;var f=new r({labelType:this.hrefCallback?"html":"text",label:this.name,iconClass:e?this.imageClass:null,hasLink:!!this.hrefCallback});this.tooltip&&new q({connectId:[f.domNode],label:this.tooltip,commandParent:b,commandService:c.commandService});if(this.hrefCallback){var h=this.hrefCallback.call(c.handler,c);if(h)if(h.then)h.then(a.hitch(this,function(a){f.setLink(a,this.name)}));else if(h)f.setLink(h,this.name);else return}else if(this.callback)f.onClick=a.hitch(this,function(){c.commandService._invoke(c)});
f.eclipseCommand=this;b.addChild(f);if(e)if(this.imageClass)a.addClass(f.iconNode,this.spriteClass);else if(this.image)a.addClass(f.iconNode,"commandMenuItem"),f.iconNode.src=this.image;c.domNode=f.domNode;g.generateNavGrid(d,c.domNode)},_makeLink:function(b){var c=a.create("a",{tabindex:"0"});a.addClass(c,"commandLink");a.place(window.document.createTextNode(this.name),c,"last");b=this.hrefCallback.call(b.handler,b);if(b.then)b.then(function(a){c.href=a});else if(b)c.href=b;else return null;return c},
_hookCallback:function(b,c){a.connect(b,"onclick",this,function(){c.commandService._invoke(c)});a.connect(b,"onkeypress",this,function(b){(b.keyCode===a.keys.ENTER||b.charCode===a.keys.SPACE)&&c.commandService._invoke(c)})},_addAccessibleLabel:function(b){var c=this.name||this.tooltip;c&&a.attr(b,"aria-label",c)},populateChoicesMenu:function(b,d,e,f){b.focusedChild=null;a.forEach(b.getChildren(),function(a){b.removeChild(a);a.destroy()});for(var e=this.getChoices(d,e,f),f=this.showMenuIcons,g=0;g<
e.length;g++){var h=e[g],i;if(h.name){if(i=new c.MenuItem({label:h.name,iconClass:f?h.imageClass:null,onClick:this.makeChoiceCallback(h,d)}),f)if(h.imageClass)a.addClass(i.iconNode,h.spriteClass||"commandSprite");else if(h.image)a.addClass(i.iconNode,"commandImage"),i.iconNode.src=h.image}else i=new c.MenuSeparator;b.addChild(i)}},getChoices:function(a,b,c){return this.choiceCallback?this.choiceCallback.call(b,a,c):null},makeChoiceCallback:function(a,b){return function(c){a.callback&&a.callback.call(a,
b,c)}},hasImage:function(){return this.imageClass||this.image!==d.toUrl("images/none.png")}};l.prototype.constructor=l;var s=window.navigator.platform.indexOf("Mac")!==-1;m.prototype={match:function(a){if(this.keyCode===a.keyCode){if(this.mod1!==(s?a.metaKey:a.ctrlKey))return!1;if(this.mod2!==a.shiftKey)return!1;if(this.mod3!==a.altKey)return!1;if(s&&this.mod4!==a.ctrlKey)return!1;if(!this.domScope)return!0;for(a=a.target;a;){if(a===window.document)break;if(a===this.domScope)return!0;a=a.parentNode}}return!1},
equals:function(a){return!a?!1:this.keyCode!==a.keyCode?!1:this.mod1!==a.mod1?!1:this.mod2!==a.mod2?!1:this.mod3!==a.mod3?!1:this.mod4!==a.mod4?!1:this.domScope!==a.domScope?!1:!0}};m.prototype.constructor=m;n.prototype={match:function(a){a=f.matchResourceParameters(a);return typeof a[this.token]!=="undefined"?(this.parameterValue=a[this.token],this):null}};n.prototype.constructor=n;p.prototype={optionsRequested:function(){return this.optionsRequested}};p.prototype.constructor=p;o.prototype={_storeParameters:function(a){this.parameterTable=
null;if(a){this.parameterTable={};for(var b=0;b<a.length;b++)this.parameterTable[a[b].name]=a[b]}},updateParameters:function(a){typeof this.getParameters==="function"&&this._storeParameters(this.getParameters(a))},hasParameters:function(){return this.parameterTable!==null},shouldCollectParameters:function(){return!this._clientCollect&&this.hasParameters()},parameterNamed:function(a){return this.parameterTable[a]},valueFor:function(a){return(a=this.parameterTable[a])?a.value:null},setValue:function(a,
b){var c=this.parameterTable[a];if(c)c.value=b},forEach:function(a){for(var b in this.parameterTable)this.parameterTable[b].type&&this.parameterTable[b].name&&a(this.parameterTable[b])},makeCopy:function(){var a=[];this.forEach(function(b){b=new p(b.name,b.type,b.label,b.value,b.lines);a.push(b)});return new o(a,this._options,this.getParameters)},hasOptionalParameters:function(){return this._hasOptionalParameters}};o.prototype.constructor=o;return{CommandService:j,CommandKeyBinding:m,Command:l,CommandInvocation:i,
CommandMenuItem:r,URLBinding:n,ParametersDescription:o,CommandParameter:p,CommandTooltip:q}});
define("orion/widgets/UserMenu","i18n!orion/widgets/nls/messages,require,dojo,dijit,orion/commands,orion/util,dijit/Menu".split(","),function(b,d,a,c,e){a.declare("orion.widgets.UserMenu",[c.Menu],{widgetsInTemplate:!1,id:"userMenu",templateString:'<table role="menu" tabIndex="${tabIndex}" dojoAttachEvent="onkeypress:_onKeyPress" cellspacing="0"><tbody class="dijitReset" dojoAttachPoint="containerNode"></tbody></table>',label:b.test,postCreate:function(){this.inherited(arguments);a.style(this.domNode,
"border-radius","3px");a.style(this.domNode,"border","1px solid #DDD")},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(a){var b=0,c;for(c in a)a.hasOwnProperty(c)&&
b++;return b},_renderAuthenticatedService:function(c,d,h){var i=this;(d=this.authenticatedServices[c].authService)&&d.logout&&this.addChild(new e.CommandMenuItem({label:h?b["Sign Out "]+h:b["Sign Out"],onClick:a.hitch(this,function(b,c){return function(){b.logout().then(a.hitch(i,function(){this.addUserItem(c,b,this.authenticatedServices[c].label);localStorage.removeItem(c);for(var a=0,d=localStorage.length;a<d;a++){var e=localStorage.key(a);e&&e.indexOf("/orion/preferences/user")===0&&localStorage.removeItem(e)}b.getAuthForm(window.location.href).then(function(a){window.location=
a})}))}})(d,c)}))},_renderUnauthenticatedService:function(c,d,h){var i=this,j=this.unauthenticatedServices[c].authService;if(j)j.getAuthForm?a.hitch(i,function(a){j.getAuthForm(eclipse.globalCommandUtils.notifyAuthenticationSite).then(function(c){c+=c.indexOf("?")===-1?"?redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+a:"&redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+a;i.addChild(new e.CommandMenuItem({label:h?"<a target='_blank' href="+c+">"+b["Sign In To "]+
h+"</a>":"<a target='_blank' href="+c+">"+b["Sign In"]+"</a>",hasLink:!0}),d)})})(c):j.login&&this.addChild(new e.CommandMenuItem({label:h?"Sign In To "+h:"Sign In",onClick:a.hitch(i,function(a){return function(){a.login(eclipse.globalCommandUtils.notifyAuthenticationSite)}})(j)}),d);else{var k=this.unauthenticatedServices[c].SignInLocation;k+=k.indexOf("?")===-1?"?redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+c:"&redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+
"?key="+c;this.addChild(new e.Command.MenuItem({label:h?"<a target='_blank' href="+k+">"+b["Sign In To "]+h+"</a>":"<a target='_blank' href="+k+">"+b["Sign In"]+"</a>",hasLink:!0}),d)}},renderServices:function(){for(var a=this.getChildren(),g=0;g<a.length;g++)this.removeChild(a[g]);this.addChild(new e.CommandMenuItem({label:"<a href="+d.toUrl("help/index.jsp")+">"+b.Help+"</a>",hasLink:!0}));this.keyAssistFunction&&this.addChild(new e.CommandMenuItem({label:b["Keyboard Shortcuts"],onClick:this.keyAssistFunction}));
this.addChild(new c.MenuSeparator);this.addChild(new e.CommandMenuItem({label:"<a href="+d.toUrl("settings/settings.html")+">"+b.Settings+"</a>",hasLink:!0}));if(this.isSingleService())for(g in this.authenticatedServices)this._renderAuthenticatedService(g,0)},getUserLabel:function(a){if(a.data){var b=a.data.Name&&a.data.Name.replace(/^\s+|\s+$/g,"")!==""?a.data.Name:a.data.login;b.length>40&&(b=b.substring(0,30)+"...");b+=" ("+a.label+")";return b}else return a.label},setUserName:function(){},setKeyAssist:function(a){this.keyAssistFunction=
a;this.renderServices()},addUserItem:function(f,g,h,i){var j=this;i?(this.unauthenticatedServices[f]&&delete this.unauthenticatedServices[f],this.authenticatedServices[f]={authService:g,label:h,data:i}):(this.authenticatedServices[f]&&delete this.authenticatedServices[f],this.unauthenticatedServices[f]=this.unauthenticatedServices[f]?{authService:g,label:h,pending:this.unauthenticatedServices[f].pending}:{authService:g,label:h});a.hitch(this,this.renderServices)();if(a.byId("userInfo"))if(this.isSingleService()&&
i)h=f=i.Name&&i.Name.replace(/^\s+|\s+$/g,"")!==""?i.Name:i.login,h.length>40&&(h=h.substring(0,30)+"..."),i=a.create("a",{innerHTML:h,href:d.toUrl("profile/user-profile.html")+"#"+i.Location,"aria-label":b["View profile of "]+f,style:"margin-right: 0px"},a.byId("userInfo"),"only"),new e.CommandTooltip({connectId:[i],label:b["View profile of "]+f,position:["above","left","right","below"]});else if(this.isSingleService()&&!i)if(g.getAuthForm)a.hitch(this,function(c){g.getAuthForm(eclipse.globalCommandUtils.notifyAuthenticationSite).then(function(d){d+=
d.indexOf("?")===-1?"?redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+c:"&redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+c;a.create("a",{innerHTML:b["Sign In"],href:d,style:"margin-right: 0px",target:"_blank"},a.byId("userInfo"),"only")})})(f);else{if(g.login){var k=a.create("a",{innerHTML:b["Sign In"],style:"margin-right: 0px"},a.byId("userInfo"),"only");a.connect(k,"onmouseover",k,function(){k.style.cursor="pointer"});a.connect(k,"onmouseout",k,function(){k.style.cursor=
"default"});a.connect(k,"onclick",function(){g.login(eclipse.globalCommandUtils.notifyAuthenticationSite)})}}else this.hasServices()?(k=a.create("a",{innerHTML:b.Profiles,style:"margin-right: 0px"},a.byId("userInfo"),"only"),a.connect(k,"onmouseover",k,function(){k.style.cursor="pointer"}),a.connect(k,"onmouseout",k,function(){k.style.cursor="default"}),a.connect(k,"onclick",function(){try{c.popup.open({popup:j.options.loginDialog,around:a.byId("userInfo")})}catch(b){}c.focus(j.options.loginDialog.domNode)})):
a.empty(a.byId("userInfo"))}})});
define("orion/widgets/plugin/PluginEntry","i18n!orion/settings/nls/messages,require,dojo,dijit,orion/util,orion/commands,dijit/TooltipDialog,orion/widgets/plugin/ServiceCarousel".split(","),function(b,d,a,c){a.declare("orion.widgets.plugin.PluginEntry",[c._Widget,c._Templated],{iconSource:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9wBFxMFB6T1TK0AAAfOSURBVGjevZpLbFzlGYaf9x87DnZCyLUhCSSOY9PgmdwQdxrRVqhR1aYgpVXUTbvohgqRtrQCsWjFolSqBIUKCXXRsmkFCygiUpu2QgkFWkoIGOKZQIRj5yYSUifNhdiO7TlvF/+Mb4zt8bGTszmamXP+//2+7/2u/4gZulxgAYmWWl4kWG6zVGI+5gLQjziOOeYQzmgwOar19AMkpyEsTL+v0ryUAKEMfD8PWNqBvExWLVADyAI8YgcDOEEaxB5A2if5Z2rlHQDnQdnLLIALoFZwO3cgHsTahsiAsbGkqtazbYGMQHwi/AeLp0Irp/0BaP0MCpDsBhozhMYiyX41EPxXoc3YIM0I+2yXVtLDlp8OWS5Va5GqESR5PS57B1J93HFm0I8SBAtzWLBdOd5O8hCy07VAnvkyO4G7jCwx08DHmgMhkB9SlieT9kDIJVMXwAUArnWiDqBeGuWSl1MASyX/MDtDzt8q+16lK4y7UMJyzH7J9eDxwSeG2ZtKj0z/itSUsS15a5Jnl1ohOabJBUjypXuBBZKO2CwEUZHvdoyNjbugaR/U3zVjQpTkENEKW5zXK+E6k+yfRAD1LI73hD1AZlI/nX0TzNkSgTe+Bg1fHi2EDUVPVzAbtrqdHWFdzBcVBUjeA9/8X5zX7yzW4Uk4L0HPu3BseylLBWjcDXNLAtlQ1wI3fAj1t6UWQpIUHeMpt3PL2NA6CmDyAdeR4ahQ9Q5rQ8NmaPwnQ7mh83YYPAktXaVnivBxC/R3psodZcfGdGLWOtBfDq+jKZTRv+QpZmgJPnsdujZHS9iw+i1oenfYEspAc0dqSwz5A6wm6IGRuWEIqNv5PuK5qZQEn7fE3dC4hwmzdEcW+grpLAGWLcRcxGdqhZB8VPpRejA1+PLV1wZJX0kvrhC1gKb3oSFlxLJLq+on5bwgAB+giSIdFbVS3mgiuWyoXQ5rCpCZR1V10uGvwWf/SGMJ2xwJOTe6UPIBF3nW44GvawHVTLxkzSJoOVod+LJCVv0drro5jSUkWOUC69QKwQXmSnxJY21uw7xt0HwQVvwpZlxXoEVmITS1g0J1mi//bkPTXpi1JkVsNSR6LEahJFxvq6Zi5Fn0SLzP+w6sfHkY5Eja3PAp1C6dnGZjBZegdy8MHEqTHWz5nuRDFKzki+Caiprquh362uPnq++FVa+P0PyCyPmRQk0F/IW/QOcdaROcQDUUw/UBs35czXkQDq2D3rb4ueFOWLkTZq2Elo7qHXasYi7sgiPfiM1pyqAnuwYnC4NQ9nMhb0zwpWPTsCXmfBOaOyEzn1RdmQfhxP3TL7tRRmJJQCybCD8SBEHnLdESItKGlC2lamDVaxPqrFpD2iwOmPpJCwcbMtdAXfP0Bhplvl98FWYtn1aVWirWFoeqNg1XQdN7EOak37RMt/M749bXfA9UO20hAvjSpNqc1QyZJelpUwZ/7nk4/xIMnopRbPU76SkUlzwbkLon1IIEffuh8zZwMqLG8dTA9xWg5y2Ytz3ScdFD0F+Yli8YzgXsfFXZs3cfdN0J7p+wRa4I/uIb0P04zM7F+L/gfujZC2efTz8mkBPM8WCRr0oLEvS8DUe+Du4bw8QxTpr0Db8zcBy6fw2LH4Oef8OyZ6IlMvNh8aPTiUODks4ErAJQrL552R1r+qS3RCmN1nbPW/BxI5x7EYoX4fh3YfHP4cQDsPy5SKVZzTGi9f4nFYVsGzxAxp/IeRYBx0B1U2ojr9oEq/ZAZm4ppgkuvgmH744tpIHMbFjxPJx7Aa57AQaOQjIAdY3DzeCnj8KpX8X3VX1QsPR+yHpjUJZuW8ewp9ZG9rVB560RrASXDsLhrw6XB0GRakfvg+L/4vOHNkCxGw7Mg+KFuNYXHodlvy31QK56fyX+5VA2Stq1RfKuKXuUDXVro1OefAg8wLhNkUc0agJqV0DzRxAa4jNnnoXjP4SMqok+F0LWV8cR0H4ozVu6QQtSpdhUNZEh1MfJRc2S+N3pp+HEjyYpzQ3m98rxA4AQ1g2t9xtwytJQ6d5JeuDjtcNRa+EOWPHHcR3bjicLFk+4fURBk+wGFtGAdF5yuAIz3NGWqFkaxzC1y+J33U/AyZ+Ooxy/qCzfrliROc8WrF3mssz/Jy/ybjgeu7zBM3Dw2pg0SzAcqXMWa7mCezR2sJXkgd66vxn2quJc5DJeZV0d2hCTZcfaUeDL+CV+EdYNg69YEydt1KmGs0AdV9IKI8f1GhZqaKyIXlLW28ae2oymUDsoB0leNwH7xJU51JhsCAQ6ReJV6lvSq1tPVXlCk+c+W3/mSvvD2HwLh12kNaynp+oTGneBsrwsfK8keeg044ppPWYW6zyBDaqpDH5cAdQI3gPK8YrNTZhL2IrrXn61A8J+04mX6UbOjXc+VnVjm7RRR61ex9wSj990WbQe5+gewHpSOT9SzXuT9sRuh7CRS+qvvVXB98gaiCfzM2eNEtmFnWeAJcr5EXdlYoKdrgDKlTap60etvGp7geFhxCe2cUphht6xQbxha2vIkdNGzia7QY1FwleqGtFNQ3MFbXbCM8hrhGYBmRKBS8lVpflNjO1RyQbUjzwIvESGH4e1nE6dA1ODPwC6cSiLzwetxG4BsqCsxBzwEuCSrTOCbnAbIm+HLik5omzpLzedEFanw/F/byy0oCz4lroAAAAASUVORK5CYII=",templateString:'<list style="overflow:hidden;"><div class="plugin-list-item"><div data-dojo-attach-point="pluginContainer"><div class="plugin-icon"></div><div class="stretch" data-dojo-attach-point="detailsView"><span data-dojo-attach-point="pluginTitle" class="plugin-title"></span><div></div><span class="plugin-description">'+
b["A plugin for Eclipse Orion"]+'</span><a class="plugin-link" style="font-size:11px" data-dojo-attach-point="pluginLink">'+b["Plugin Link"]+'</a></div><span class="plugin-commands" data-dojo-attach-point="commandSpan"></span></div></div><div class="plugin-service-item" data-dojo-attach-point="serviceContainer"></div></list>',services:null,serviceDescriptions:null,formatPluginName:function(a){var b=a.split("/"),b=b[b.length-1],b=b.split(".html")[0],b=b.replace(/([a-z])([A-Z])/,"$1 $2"),b=function(a){return a.toLowerCase().replace(/\b[a-z]/g,
function(a){return a.toUpperCase()})}(b),b=b.replace("plugin",""),b=b.replace("Plugin","");b===""&&(b=a);return b},getServiceDescriptions:function(){this.services=this.plugin.getServiceReferences();var a=0;for(this.serviceDescriptions=[];a<this.services.length;a++){var b={service:this.services[a].name},c=[],d=this.services[a].properties,i;for(i in d)i&&c.push({item:i,value:d[i]});b.items=c;this.serviceDescriptions.push(b)}},postCreate:function(){this.getServiceDescriptions();var a=this.plugin.getLocation(),
b=this.formatPluginName(a);this.pluginTitle.innerHTML=b;this.pluginLink.href=a;this.commandSpan.id=b;this.commandService.renderCommands("pluginCommand",this.commandSpan,a,this,"tool");this.carousel=new orion.widgets.plugin.ServiceCarousel({serviceData:this.serviceDescriptions},this.serviceContainer);this.carousel.startup()}})});
define("orion/widgets/plugin/PluginList","i18n!orion/settings/nls/messages,require,dojo,dijit,orion/util,orion/commands,orion/commonHTMLFragments,dijit/TooltipDialog,orion/widgets/plugin/PluginEntry".split(","),function(b,d,a,c,e,f,g){a.declare("orion.widgets.plugin.PluginList",[c._Widget,c._Templated],{templateString:'<div><div id="pluginSectionHeader" data-dojo-attach-point="pluginSectionHeader" class="sectionWrapper sectionWrapperAux toolComposite"><div class="sectionAnchor sectionTitle layoutLeft" data-dojo-attach-point="pluginTitle"></div><div class="pluginCount layoutLeft" data-dojo-attach-point="pluginCount">0</div><div id="pluginCommands" data-dojo-attach-point="pluginCommands" class="layoutRight sectionActions"></div></div><div class="displaytable layoutBlock"><div class="plugin-settings"><list style="overflow:hidden;" data-dojo-attach-point="pluginSettingsList"></list></div></div></div>',
pluginDialogState:!1,includeMaker:!1,target:"_self",postCreate:function(){if(this.pluginSectionHeader){var b=g.slideoutHTMLFragment("pluginSectionHeader");a.place(b,this.pluginSectionHeader)}this.addRows();this.setTarget();this.storageKey=this.preferences.listenForChangedSettings(a.hitch(this,"onStorage"))},updateToolbar:function(){this.pluginCommands&&a.empty(this.pluginCommands)},startup:function(){this.updateToolbar();this.commandService.addCommand(new f.Command({name:b.Install,tooltip:b["Install a plugin by specifying its URL"],
id:"orion.installPlugin",parameters:new f.ParametersDescription([new f.CommandParameter("url","url",b["Plugin URL:"],"")]),callback:a.hitch(this,function(a){a.parameters&&(a=a.parameters.valueFor("url"))&&this.installHandler(a)})}));this.commandService.registerCommandContribution("pluginCommands","orion.installPlugin",1,null,!1,null,new f.URLBinding("installPlugin","url"));this.commandService.addCommand(new f.Command({name:b["Reload all"],tooltip:b["Reload all installed plugins"],id:"orion.reloadAllPlugins",
callback:a.hitch(this,function(){this.reloadPlugins()})}));this.commandService.registerCommandContribution("pluginCommands","orion.reloadAllPlugins",2);this.commandService.addCommand(new f.Command({name:b.Create,tooltip:b["Create a new Orion Plugin"],id:"orion.createPlugin",callback:a.hitch(this,function(a){this.createPlugin(a.items)})}));this.includeMaker===!0&&this.commandService.registerCommandContribution("pluginCommands","orion.createPlugin",2);this.commandService.renderCommands("pluginCommands",
"pluginCommands",this,this,"button")},addRows:function(c){this.commandService.addCommand(new f.Command({name:b.Reload,tooltip:b["Reload the plugin"],id:"orion.reloadPlugin",imageClass:"core-sprite-refresh",visibleWhen:function(a){return typeof a==="string"},callback:a.hitch(this,function(a){this.reloadPlugin(a.items)})}));this.commandService.registerCommandContribution("pluginCommand","orion.reloadPlugin",1);this.commandService.addCommand(new f.Command({name:b.Delete,tooltip:b["Delete this plugin from the configuration"],
imageClass:"core-sprite-delete",id:"orion.uninstallPlugin",visibleWhen:function(a){return typeof a==="string"},callback:a.hitch(this,function(a){this.removePlugin(a.items)})}));this.commandService.registerCommandContribution("pluginCommand","orion.uninstallPlugin",2);var d=this.pluginSettingsList;if(c)d=c.pluginSettingsList;a.empty(d);c=this.settings.pluginRegistry.getPlugins();this.pluginTitle.innerHTML=b.Plugins;this.pluginCount.innerHTML=c.length;for(var e=0;e<c.length;e++){var g=new orion.widgets.plugin.PluginEntry({plugin:c[e],
commandService:this.commandService});d.appendChild(g.domNode);g.startup()}},pluginURLFocus:function(){this.pluginUrlEntry.value="";a.style(this.pluginUrlEntry,"color","")},pluginURLBlur:function(){if(this.pluginUrlEntry.value==="")this.pluginUrlEntry.value=b["Type a plugin url here ..."],a.style(this.pluginUrlEntry,"color","#AAA")},createPlugin:function(){var a=d.toUrl("settings/maker.html");window.open(a,this.target)},addPlugin:function(a){this.statusService.setMessage(b["Installed "]+a.getLocation(),
5E3,!0);this.settings.preferences.getPreferences("/plugins").then(function(b){b.put(a.getLocation(),!0)});this.addRows()},pluginError:function(a){this.statusService.setErrorMessage(a)},installHandler:function(c){/^\S+$/.test(a.trim(c))&&(this.statusService.setMessage(b["Installing "]+c+"...",null,!0),this.settings.pluginRegistry.getPlugin(c)?this.statusService.setErrorMessage(b["Already installed"]):this.settings.pluginRegistry.installPlugin(c).then(a.hitch(this,"addPlugin"),a.hitch(this,"pluginError")))},
reloaded:function(){var a=this.settings.pluginRegistry.getPlugins();this.statusService.setMessage(b["Reloaded "]+a.length+b[" plugin"]+(a.length===1?"":"s")+".",5E3,!0);this.addRows()},reloadPlugin:function(a){for(var c=this.settings.pluginRegistry.getPlugins(),d=0;d<c.length;d++)if(c[d].getLocation()===a){c[d].update();this.statusService.setMessage(b["Reloaded "]+a,5E3,!0);break}},reloadPlugins:function(){for(var b=this.settings.pluginRegistry.getPlugins(),c=0,d=new a.Deferred,e=0;e<b.length;e++)b[e].update().then(function(){c++;
c===b.length&&d.resolve()});d.then(a.hitch(this,"reloaded"))},forceRemove:function(a){for(var c=this.settings,d=this.statusService,e=c.pluginRegistry.getPlugins(),f=this,g=0;g<e.length;g++)if(e[g].getLocation()===a){e[g].uninstall();d.setMessage(b["Uninstalled "]+a,5E3,!0);c.preferences.getPreferences("/plugins").then(function(b){b.remove(a);f.addRows(f)});this.addRows();this.addRows();break}},setTarget:function(){var a=this.preferences,c=this;this.preferences.getPreferences("/settings",2).then(function(d){d=
d.get("General");if(d!==void 0&&(d=JSON.parse(d)))d=a.getSetting(d,"Navigation",b.Links),d=d===b["Open in new tab"]?"_blank":"_self",c.target=d})},onStorage:function(a){a.key===this.storageKey&&this.setTarget()},removePlugin:function(a){window.confirm(b["Are you sure you want to uninstall '"]+a+"'?")&&this.forceRemove(a)}})});
define("orion/section",["dojo","orion/selection","orion/commands","orion/commonHTMLFragments"],function(b,d,a,c){function e(a,d){var e=this;this._expandImageClass="core-sprite-openarrow";this._collapseImageClass="core-sprite-closedarrow";this._twistieSpriteClass="modelDecorationSprite";if(!d.id)throw Error("Missing required argument: id");this.id=d.id;if(!d.title)throw Error("Missing required argument: title");this.domNode=b.create("div",{"class":(d.useAuxStyle?"sectionWrapper sectionWrapperAux":
"sectionWrapper")+" toolComposite",id:d.id},a);if(d.canHide)this.twistie=b.create("span",{"class":"modelDecorationSprite layoutLeft sectionTitle"},this.domNode),b.style(this.domNode,"cursor","pointer"),b.attr(this.domNode,"tabIndex","0"),b.connect(this.domNode,"onclick",function(a){(a.target===e.titleNode||a.target===e.twistie)&&e._changeExpandedState()}),b.connect(this.domNode,"onkeydown",function(a){a.keyCode===b.keys.ENTER&&(a.target===e.domNode||a.target===e.titleNode||a.target===e.twistie)&&
e._changeExpandedState()});if(d.iconClass){var f=b.create("span",{"class":"sectionIcon"},this.domNode);b.addClass(f,d.iconClass)}this.titleNode=b.create("div",{id:d.id+"Title","class":"sectionAnchor sectionTitle layoutLeft",innerHTML:d.title},this.domNode);this._progressNode=b.create("div",{id:d.id+"Progress","class":"sectionProgress sectionTitle layoutLeft",innerHTML:"..."},this.domNode);this._progressNode.style.visibility="hidden";this._toolActionsNode=b.create("div",{id:d.id+"ToolActionsArea",
"class":"layoutRight sectionActions"},this.domNode);this.actionsNode=b.create("div",{id:d.id+"ActionArea","class":"layoutRight sectionActions"},this.domNode);this.selectionNode=b.create("div",{id:d.id+"SelectionArea","class":"layoutRight sectionActions"},this.domNode);if(d.slideout)this.slideout=c.slideoutHTMLFragment(d.id),b.place(this.slideout,this.domNode);this._contentParent=b.create("div",{id:this.id+"Content",role:"region","class":"sectionTable","aria-labelledby":this.titleNode.id},a,"last");
d.content&&this.setContent(d.content);this.hidden=d.hidden;if(typeof d.onExpandCollapse==="function")this._onExpandCollapse=d.onExpandCollapse;this._preferenceService=d.preferenceService;b.style(this._contentParent,"display","none");this._preferenceService?this._preferenceService.getPreferences("/window/views").then(b.hitch(this,function(a){a=a.get(this.id);if(a!==void 0)this.hidden=!a;this.hidden||b.style(this._contentParent,"display","block");this._updateExpandedState(!this.hidden,!1)})):(this.hidden||
b.style(this._contentParent,"display","block"),this._updateExpandedState(!this.hidden,!1));this._commandService=d.commandService;this._lastMonitor=0;this._loading={}}function f(a){this._section=a;this._id=++a._lastMonitor}e.prototype={setTitle:function(a){this.titleNode.innerHTML=a},setContent:function(a){this._contentParent.innerHTML=a},createProgressMonitor:function(){return new f(this)},_setMonitorMessage:function(a,b){this._progressNode.style.visibility="visible";this._loading[a]=b;var c="",d;
for(d in this._loading)c!==""&&(c+="\n"),c+=this._loading[d];this._progressNode.title=c},_monitorDone:function(a){delete this._loading[a];var a="",b;for(b in this._loading)a!==""&&(a+="\n"),a+=this._loading[b];this._progressNode.title=a;if(a==="")this._progressNode.style.visibility="hidden"},_changeExpandedState:function(){var a=new b.fx.Toggler({node:this._contentParent.id,showDuration:500,hideDuration:500,showFunc:b.fx.wipeIn,hideFunc:b.fx.wipeOut});this.hidden?(a.show(),this.hidden=!1):(a.hide(),
this.hidden=!0);this._updateExpandedState(!this.hidden,!0)},_updateExpandedState:function(a,c){var d=this.twistie,e=this.id;d&&(b.addClass(d,a?this._expandImageClass:this._collapseImageClass),b.removeClass(d,a?this._collapseImageClass:this._expandImageClass));this._preferenceService&&c&&this._preferenceService.getPreferences("/window/views").then(function(b){b.put(e,a)});this._onExpandCollapse&&this._onExpandCollapse(a,this)}};e.prototype.constructor=e;f.prototype={begin:function(a){this.status=a;
this._section._setMonitorMessage(this.id,a)},worked:function(a){this.status=a;this._section._setMonitorMessage(this.id,a)},done:function(a){this.status=a;this._section._monitorDone(this.id)}};f.prototype.constructor=f;return{Section:e}});
define("orion/widgets/settings/LabeledTextfield","i18n!orion/settings/nls/messages,require,dojo,dijit,orion/util,orion/commands".split(","),function(b,d,a,c){a.declare("orion.widgets.settings.LabeledTextfield",[c._Widget,c._Templated],{templateString:'<div><label><span data-dojo-attach-point="mylabel">'+b["Label:"]+'</span><input type="text" name="myname" data-dojo-attach-point="myfield" data-dojo-attach-event="onchange:change"/></label></div>',setStorageItem:function(){},change:function(){this.setStorageItem(this.category,
this.item,this.element,this.myfield.value,this.ui)},setValue:function(a){this.myfield.value=a},getValue:function(){return this.myfield.value},postCreate:function(){this.mylabel.innerHTML=this.fieldlabel+":";if(this.inputType&&this.inputType==="password")this.myfield.type="password";this.editmode&&this.editmode==="readonly"&&a.attr(this.myfield,"readonly",!0)},startup:function(){}})});
define("orion/widgets/settings/LabeledCheckbox","i18n!orion/settings/nls/messages,require,dojo,dijit,orion/util,orion/commands".split(","),function(b,d,a,c){a.declare("orion.widgets.settings.LabeledCheckbox",[c._Widget,c._Templated],{templateString:'<div><label><span data-dojo-attach-point="mylabel">'+b["Label:"]+'</span><input class="settingsCheckbox" type="checkbox" name="myname" data-dojo-attach-point="myfield" data-dojo-attach-event="onchange:change"/></label></div>',setStorageItem:function(){},
change:function(){},postCreate:function(){this.inherited(arguments);this.mylabel.innerHTML=this.fieldlabel+":";a.style(this.myfield,"width","20px")},startup:function(){}})});
define("orion/widgets/settings/LabeledToggle","i18n!orion/settings/nls/messages,require,dojo,dijit,orion/util,orion/commands".split(","),function(b,d,a,c){a.declare("orion.widgets.settings.LabeledToggle",[c._Widget,c._Templated],{state:!1,templateString:'<div><label style="display:table;"><span data-dojo-attach-point="mylabel" style="display:table-cell; vertical-align:middle;" >'+b["Label:"]+'</span><span style="display:table-cell; vertical-align:middle;"><span class="toggleShell"><div data-dojo-attach-point="leftToggle" data-dojo-attach-event="onclick:toggle"></div><div data-dojo-attach-point="rightToggle" data-dojo-attach-event="onclick:toggle"></div><div data-dojo-attach-point="toggleSlide" class="toggleSlide"></div></span></span></label></div>',
onAction:function(){},styleSwitch:function(){this.state===!0?(this.leftToggle.innerHTML=this.toggleOnState,this.rightToggle.innerHTML=this.toggleOffSwitch,a.addClass(this.leftToggle,"toggleOn"),a.addClass(this.rightToggle,"toggleOff")):(this.leftToggle.innerHTML=this.toggleOnSwitch,this.rightToggle.innerHTML=this.toggleOffState,a.addClass(this.leftToggle,"toggleOff"),a.addClass(this.rightToggle,"toggleOn"))},toggle:function(){a.removeClass(this.leftToggle);a.removeClass(this.rightToggle);this.state===
!0?this.state=!1:(this.state=!0,this.onAction());this.styleSwitch()},postCreate:function(){this.inherited(arguments);this.mylabel.innerHTML=this.fieldlabel+":";this.styleSwitch()},startup:function(){}})});
define("orion/widgets/settings/UserSettings","i18n!orion/settings/nls/messages,require,dojo,dijit,orion/util,orion/commands,orion/section,orion/widgets/settings/LabeledTextfield,orion/widgets/settings/LabeledCheckbox,orion/widgets/settings/LabeledToggle,profile/UsersService,orion/widgets/settings/Section".split(","),function(b,d,a,c,e,f,g){a.declare("orion.widgets.settings.UserSettings",[c._Widget,c._Templated],{dispatch:!0,templateString:'<div><div data-dojo-attach-point="table"><div class="sectionWrapper toolComposite"><div class="sectionAnchor sectionTitle layoutLeft">'+
b["User Profile"]+'</div><div id="userCommands" class="layoutRight sectionActions"></div></div><div data-dojo-attach-point="sections"></sections><div></div></div><div data-dojo-attach-point="linkedSection"></div></div>',setHash:function(a,b){a.src=a.src.indexOf("#")>0?a.src.substr(0,a.src.indexOf("#"))+"#"+b:a.src+"#"+b},postCreate:function(){this.inherited(arguments);this.accountFields=[];this.accountFields.push(new orion.widgets.settings.LabeledTextfield({fieldlabel:b.Username,editmode:"readonly"}));
this.accountFields.push(new orion.widgets.settings.LabeledTextfield({fieldlabel:b["Full Name"]}));this.accountFields.push(new orion.widgets.settings.LabeledTextfield({fieldlabel:b["Email Address"]}));(new orion.widgets.settings.Section({sectionName:b.Account,container:this.sections,sections:this.accountFields})).startup();this.passwordFields=[];this.passwordFields.push(new orion.widgets.settings.LabeledTextfield({fieldlabel:b["Current Password"],inputType:"password"}));this.passwordFields.push(new orion.widgets.settings.LabeledTextfield({fieldlabel:b["New Password"],
inputType:"password"}));this.passwordFields.push(new orion.widgets.settings.LabeledTextfield({fieldlabel:b["Verify Password"],inputType:"password"}));new orion.widgets.settings.Section({sectionName:b.Password,container:this.sections,sections:this.passwordFields});this.gitFields=[];this.gitFields.push(new orion.widgets.settings.LabeledTextfield({fieldlabel:b["Git Email Address"]}));this.gitFields.push(new orion.widgets.settings.LabeledTextfield({fieldlabel:b["Git Username"]}));new orion.widgets.settings.Section({sectionName:b["Git Credentials"],
container:this.sections,sections:this.gitFields});this.commandService.addCommand(new f.Command({name:b.Update,tooltip:b["Update Profile Settings"],id:"orion.updateprofile",callback:a.hitch(this,function(a){this.update(a.items)})}));this.commandService.registerCommandContribution("profileCommands","orion.updateprofile",2);this.commandService.renderCommands("profileCommands",a.byId("userCommands"),this,this,"button");this.linkedAccountSection=new g.Section(this.linkedSection,{id:"linkedAccountSection",
title:"Linked Accounts",content:'<div id="iFrameContent"></div>',canHide:!0,useAuxStyle:!0,hidden:!0,slideout:!0});this.iframe=a.create("iframe",{src:"../mixlogin/manageopenids",style:"border: 0px; width: 500px"},a.byId("iFrameContent"));this.startUp()},confirmOpenId:function(a){if(a!==""&&a!==null)this.win=window.open("../mixlogin/manageopenids/openid?openid="+encodeURIComponent(a),"openid_popup","width=790,height=580")},update:function(){var a=[],d=this.registry.getServiceReferences("orion.core.auth"),
e=this.registry.getService("orion.page.message"),f=this.userService,g={};g.GitMail=this.gitFields[0].getValue();g.GitName=this.gitFields[1].getValue();g.login=this.accountFields[0].getValue();g.Name=this.accountFields[1].getValue();g.email=this.accountFields[2].getValue();var m=this.passwordFields[1].getValue(),n=this.passwordFields[2].getValue();if(m.length>0)m!==n?(e.setProgressResult("New password, and retyped password do not match"),this.dispatch=!1):this.passwordFields[0].getValue().length>0?
(g.oldPassword=this.passwordFields[0].getValue(),g.password=m,g.passwordRetype=n,this.dispatch=!0):(e.setProgressResult("Need to type your current password"),this.dispatch=!1);if(this.dispatch===!0)for(m=0;m<d.length;m++){var p=this.registry.getService(d[m]);p.getKey().then(function(d){a.push(d);p.getUser().then(function(a){f.updateUserInfo(a.Location,g).then(function(){e.setProgressResult(b["User profile data successfully reset."]);g.Name&&c.byId("logins").set("label",g.Name)})})})}},startUp:function(){this.userService=
this.registry.getService("orion.core.user");for(var a=[],b=this.registry.getServiceReferences("orion.core.auth"),c=this.userService,d=this,e=0;e<b.length;e++){var f=this.registry.getService(b[e]);f.getKey().then(function(b){a.push(b);f.getUser().then(function(a){c.getUserInfo(a.Location).then(function(a){d.accountFields[0].setValue(a.login);d.accountFields[1].setValue(a.Name);d.accountFields[2].setValue(a.email);a.GitMail&&d.gitFields[0].setValue(a.GitMail);a.GitName&&d.gitFields[1].setValue(a.GitName)});
d.setHash(d.iframe,a.Location)})})}}})});
define("orion/widgets/settings/TextField",["require","dojo","dijit","orion/util","orion/commands"],function(b,d,a){d.declare("orion.widgets.settings.TextField",[a._Widget,a._Templated],{category:null,item:null,element:null,ui:null,constructor:function(){this.inherited(arguments);console.log("c o n s t r u c t o r: "+this.ui)},setStorageItem:function(){console.log("TextField setStorageIem")},change:function(){this.setStorageItem(this.category,this.item,this.element,this.selection.value,this.ui)},postCreate:function(){this.inherited(arguments);
console.log("p o s t c r e a t e")}})});
define("orion/parameterCollectors","i18n!orion/nls/messages,require,dojo,dijit,orion/commands,orion/util,dijit/Menu,dijit/MenuItem,dijit/form/DropDownButton".split(","),function(b,d,a,c,e,f){function g(){this._activeContainer=null}g.prototype={close:function(){if(this._activeElements){this._activeElements.parameterArea&&a.empty(this._activeElements.parameterArea);this._activeElements.parameterContainer&&(a.removeClass(this._activeElements.parameterContainer,"slideActive"),a.removeClass(this._activeElements.slideContainer,
"slideContainerActive"));this._activeElements.dismissArea&&a.empty(this._activeElements.dismissArea);this._activeElements.commandNode&&a.removeClass(this._activeElements.commandNode,"activeCommand");f.forceLayout(this._activeElements.parameterContainer);if(this._activeElements.onClose)this._activeElements.onClose();if(this._oldFocusNode)this._oldFocusNode.focus(),this._oldFocusNode=null}this._activeElements=null},_findParameterElements:function(b){var c={},d=null;typeof b==="string"&&(b=a.byId(b));
for(var e=b;e;){if(a.hasClass(e,"toolComposite")){d=e;break}e=e.parentNode}if(a.hasClass(b,"commandMarker"))c.commandNode=b;if(d)c.slideContainer=a.query(".slideParameters",d)[0],c.parameterContainer=a.query(".slide",d)[0],c.parameterArea=a.query(".parameters",d)[0],c.dismissArea=a.query(".parametersDismiss",d)[0];return c},open:function(c,d,e){typeof c==="string"&&(c=a.byId(c));this.close();this._activeElements=null;if((this._activeElements=this._findParameterElements(c))&&this._activeElements.parameterArea&&
this._activeElements.slideContainer&&this._activeElements.parameterContainer){this._activeElements.onClose=e;var g=d(this._activeElements.parameterArea,this._activeElements.dismissArea),c=a.query("#closebox",this._activeElements.dismissArea||this._activeElements.parameterArea);if(c.length===0)c=a.create("span",{id:"closebox",role:"button",tabindex:"0"},this._activeElements.dismissArea||this._activeElements.parameterArea,"last"),a.addClass(c,"imageSprite"),a.addClass(c,"core-sprite-close"),a.addClass(c,
"dismiss"),c.title=b.Close,a.connect(c,"onclick",a.hitch(this,function(){this.close()})),a.connect(c,"onkeypress",a.hitch(this,function(b){(b.keyCode===a.keys.ENTER||b.charCode===a.keys.SPACE)&&this.close()}));a.addClass(this._activeElements.slideContainer,"slideContainerActive");a.addClass(this._activeElements.parameterContainer,"slideActive");f.forceLayout(this._activeElements.parameterContainer);if(g)this._oldFocusNode=window.document.activeElement,window.setTimeout(function(){g.focus();g.select()},
0);this._activeElements.commandNode&&a.addClass(this._activeElements.commandNode,"activeCommand");return!0}return!1},_collectAndCall:function(b,c){a.query("input",c).forEach(function(a){a.type==="checkbox"?b.parameters.setValue(a.parameterName,a.checked):a.type!=="button"&&b.parameters.setValue(a.parameterName,a.value.trim())});a.query("textArea",c).forEach(function(a){b.parameters.setValue(a.parameterName,a.value.trim())});b.command.callback&&b.command.callback.call(b.handler,b)},collectParameters:function(b){return b.parameters?
(b.domNode&&a.addClass(b.domNode,"commandMarker"),this.open(b.domNode||b.domParent,this.getFillFunction(b))):!1},getFillFunction:function(c,d){return a.hitch(this,function(e,f){var g=null,m=a.hitch(this,function(){d&&d();this.close()}),n=a.hitch(this,function(b){b.keyCode===a.keys.ENTER&&this._collectAndCall(c,e);if(b.keyCode===a.keys.ESCAPE||b.keyCode===a.keys.ENTER)m(),a.stopEvent(b)});c.parameters.forEach(function(b){b.label&&a.create("label",{innerHTML:b.label,"class":"parameterInput","for":b.name+
"parameterCollector"},e,"last");var c={type:b.type,id:b.name+"parameterCollector"},d;if(b.type==="text"&&typeof b.lines==="number"&&b.lines>1)c.rows=b.lines,c.type="textarea",d=a.create("textarea",c,e,"last"),n=a.hitch(this,function(b){b.keyCode===a.keys.ESCAPE&&(m(),a.stopEvent(b))});else if(b.type==="boolean"){if(c.type="checkbox",b.value)c.checked=!0}else if(b.value)c.value=b.value;d||(d=a.create("input",c,e,"last"));a.addClass(d,"parameterInput parameterInput"+c.type);d.setAttribute("speech",
"speech");d.setAttribute("x-webkit-speech","x-webkit-speech");d.parameterName=b.name;g||(g=d);a.connect(d,"onkeypress",n)});var p=f||e,o=function(a){a._collectAndCall(c,e);m()};if(c.parameters.hasOptionalParameters()){c.parameters.optionsRequested=!1;var r=a.create("span",{role:"button",tabindex:"0"},p,"last");a.place(window.document.createTextNode("More"),r,"last");a.addClass(r,"dismiss");a.connect(r,"onclick",a.hitch(this,function(){c.parameters.optionsRequested=!0;o(this)}));a.connect(r,"onkeypress",
a.hitch(this,function(b){if(b.keyCode===a.keys.ENTER||b.charCode===a.keys.SPACE)c.parameters.optionsRequested=!0,o(this)}))}r=a.create("span",{role:"button",tabindex:"0"},p,"last");a.place(window.document.createTextNode("Submit"),r,"last");a.addClass(r,"dismiss");a.connect(r,"onclick",a.hitch(this,function(){o(this)}));a.connect(r,"onkeypress",a.hitch(this,function(b){(b.keyCode===a.keys.ENTER||b.charCode===a.keys.SPACE)&&o(this)}));p=a.create("span",{id:"closebox",role:"button",tabindex:"0"},p,"last");
a.addClass(p,"imageSprite");a.addClass(p,"core-sprite-close");a.addClass(p,"dismiss");p.title=b.Close;a.connect(p,"onclick",a.hitch(this,function(){m()}));a.connect(p,"onkeypress",a.hitch(this,function(b){(b.keyCode===a.keys.ENTER||b.charCode===a.keys.SPACE)&&m()}));return g})}};g.prototype.constructor=g;return{CommandParameterCollector:g}});
define("orion/widgets/UserMenuDropDown","require,dojo,dijit,orion/commands,orion/util,dijit/form/DropDownButton".split(","),function(b,d,a){d.declare("orion.widgets.UserMenuDropDown",[a.form.DropDownButton],{templateString:'<span class="dijit dijitReset dijitInline" style="padding-top: 3px;"><span class="primaryNav" dojoAttachEvent="ondijitclick:_onButtonClick" dojoAttachPoint="_buttonNode"><span class="dijitReset dijitStretch dijitButtonContents" dojoAttachPoint="focusNode,titleNode,_arrowWrapperNode"  role="button" aria-haspopup="true" aria-labelledby="${id}_label"><span class="dijitReset dijitInline dijitIcon" dojoAttachPoint="iconNode"></span><span class="dijitReset dijitInline dijitButtonText" dojoAttachPoint="containerNode,_popupStateNode" id="${id}_label" style="padding-right:3px"></span><span class="dijitReset dijitInline dijitArrowButtonInner"></span><span class="dijitReset dijitInline dijitArrowButtonChar">&#9660;</span></span></span><input ${!nameAttrSetting} type="${type}" value="${value}" class="dijitOffScreen" dojoAttachPoint="valueNode"/></span>'})});
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:!1,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){typeof a=="string"&&(this._set("value",a),b.attr(this.focusNode,"value",a),a=!0);this._created&&this.set("checked",a,c)},_getValueAttr:function(){return this.checked?this.value:!1},_setLabelAttr:void 0,postMixInProperties:function(){if(this.value=="")this.value="on";this.checkedAttrSetting=this.checked?"checked":"";this.inherited(arguments)},_fillContent:function(){},reset:function(){this._hasBeenBlurred=!1;this.set("checked",this.params.checked||!1);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){return this.readOnly?(b.stopEvent(a),!1):this.inherited(arguments)}});b.declare("dijit.form.RadioButton",d.form.CheckBox,{type:"radio",baseClass:"dijitRadio",_setCheckedAttr:function(a){this.inherited(arguments);
if(this._created&&a){var c=this;b.query("INPUT[type=radio]",this.focusNode.form||b.doc).forEach(function(a){a.name==c.name&&a!=c.focusNode&&a.form==c.focusNode.form&&(a=d.getEnclosingWidget(a))&&a.checked&&a.set("checked",!1)})}},_clicked:function(){this.checked||this.set("checked",!0)}});return d.form.CheckBox});
define("orion/widgets/NewItemDialog","i18n!orion/widgets/nls/messages,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".split(","),function(b,d,a){d.declare("orion.widgets.NewItemDialog",[a.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:!0,templateString:d.cache("orion","widgets/templates/NewItemDialog.html"),constructor:function(a){this.options=
a||{};this.options.advanced=this.options.advanced||!1},postMixInProperties:function(){this.inherited(arguments);this.itemNameLabelText=this.options.label||b["Name:"]},postCreate:function(){this.inherited(arguments);this.options.advanced?(this.itemAdvancedInfo.style.display="table-row",this.itemAdvancedInfo1.style.display="table-row",d.connect(this.itemURL,"onkeyup",null,d.hitch(this,this.onURLChange))):(this.itemAdvancedInfo.style.display="none",this.itemAdvancedInfo1.style.display="none")},execute:function(){var a,
b;this.newItemButton.focus();this.options.advanced&&(a=this.itemURL.value.replace(/^\s+|\s+$/g,""),b=this.createCheckbox.get("disabled")?!1:this.createCheckbox.get("checked"));this.options.func(this.itemName.value,a&&a!==""?a:void 0,b)},onURLChange:function(){var a=this.itemURL.value;a.match(/^file:\/\//)?this.createCheckbox.set("disabled",!1):a.match(/^[a-zA-Z][a-zA-Z]+:\/\/.+/)?this.createCheckbox.set("disabled",!0):this.createCheckbox.set("disabled",!1)}})});
define("orion/widgets/SFTPConnectionDialog","i18n!orion/widgets/nls/messages,dojo,dijit,dijit/Dialog,dijit/form/CheckBox,dijit/form/ComboBox,dojo/data/ItemFileReadStore,orion/widgets/_OrionDialogMixin,text!orion/widgets/templates/SFTPConnectionDialog.html".split(","),function(b,d,a){localStorage.getItem("orion.sftpConnections")||localStorage.setItem("orion.sftpConnections",JSON.stringify({identifier:"name",label:b.name,items:[]}));window.sftpConnectionStoreData=JSON.parse(localStorage.getItem("orion.sftpConnections"));
d.declare("orion.widgets.SFTPConnectionDialog",[a.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:!0,templateString:d.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=b["Remote host:"];this.sftpPathLabelText=b["Remote path:"];this.sftpUserLabelText=b["User name:"];this.sftpPasswordLabelText=
b["Password:"];this.buttonOk=b["Start Transfer"];this.locationLabelText=b["Location:"];sftpConnectionStoreData=JSON.parse(localStorage.getItem("orion.sftpConnections"))},postCreate:function(){this.inherited(arguments);d.connect(this.addSFTPConnection,"onClick",null,d.hitch(this,this.onAddConnection))},execute:function(){var a=this.sftpConnectionList.value.split("@");if(a.length===2){var b=a[0],d=a[1].indexOf("/");if(!(d<=0)){var g=a[1].substring(0,d),a=a[1].substring(d);this.options.func(g,a,b,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},b=JSON.parse(localStorage.getItem("orion.sftpConnections")),d=!1,g=0;g<b.items.length;g++)if(b.items[g].name===a.name){d=!0;break}d||(b.items.unshift(a),localStorage.setItem("orion.sftpConnections",JSON.stringify(b)),
this.sftpConnectionList.set("value",a.name))}})});
define("orion/widgets/DirectoryPrompterDialog","i18n!orion/widgets/nls/messages,dojo,dijit,orion/util,dijit/Dialog,dijit/form/Button,orion/widgets/ExplorerTree,orion/widgets/_OrionDialogMixin,text!orion/widgets/templates/DirectoryPrompterDialog.html".split(","),function(b,d,a,c){d.declare("orion.widgets.DirectoryPrompterDialog",[a.Dialog,orion.widgets._OrionDialogMixin],{treeWidget:null,treeRoot:{},widgetsInTemplate:!0,templateString:d.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||b["Choose a Folder"];this.buttonOk=b.OK;this.message=this.options.message||""},postCreate:function(){this.inherited(arguments);this.loadFolderList("/");this.message||d.style(this.messageCell,{display:"none"})},loadFolderList:function(a){a=c.makeRelative(a);this.treeRoot.Location=a;this.options.fileClient.loadWorkspace(a).then(d.hitch(this,
function(a){for(var b in a)this.treeRoot[b]=a[b];c.processNavigatorParent(this.treeRoot,a.Children);this.createTree()}))},createTree:function(){var a=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:a,showRoot:!1,persist:!1,openOnClick:!1,getLabel:function(a){return a.Name},getIconClass:function(){return"folderItem"}});this.treeWidget.startup();
d.byId(this.treeContentPane.id).appendChild(this.treeWidget.domNode)},execute:function(){var a=this.treeWidget.getSelectedItems();this.onHide();this.options.func(a[0])}});orion.widgets.DirectoryTreeModel=function(){function a(b,c,d){this.registry=b;this.root=c;this.fileClient=d}a.prototype={destroy:function(){},getRoot:function(a){a(this.root)},mayHaveChildren:function(){return!0},getChildren:function(a,b){a.children?b(a.children):a.Directory!==void 0&&a.Directory===!1?b([]):a.Location?this.fileClient.fetchChildren(a.ChildrenLocation).then(d.hitch(this,
function(d){for(var e=[],j=0;j<d.length;j++)d[j].Directory&&e.push(d[j]);c.processNavigatorParent(a,e);b(e)})):b([])},getIdentity:function(a){return a.Name?a.Location:"ROOT"},getLabel:function(a){return a.Name},onChildrenChange:function(){}};return a}()});define("text!dijit/templates/ColorPalette.html",[],function(){return'<div class="dijitInline dijitColorPalette">\n\t<table class="dijitPaletteTable" cellSpacing="0" cellPadding="0">\n\t\t<tbody dojoAttachPoint="gridNode"></tbody>\n\t</table>\n</div>'});
define("dojo/colors",["dojo"],function(b){b.getObject("colors",!0,b);(function(){var d=function(a,b,d){d<0&&++d;d>1&&--d;var g=6*d;return g<1?a+(b-a)*g:2*d<1?b:3*d<2?a+(b-a)*(2/3-d)*6:a};b.colorFromRgb=function(a,e){var f=a.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(f){var g=f[2].split(/\s*,\s*/),h=g.length,f=f[1];if(f=="rgb"&&h==3||f=="rgba"&&h==4){f=g[0];return f.charAt(f.length-1)=="%"?(f=b.map(g,function(a){return parseFloat(a)*2.56}),h==4&&(f[3]=g[3]),b.colorFromArray(f,e)):
b.colorFromArray(g,e)}if(f=="hsl"&&h==3||f=="hsla"&&h==4){var f=(parseFloat(g[0])%360+360)%360/360,i=parseFloat(g[1])/100,j=parseFloat(g[2])/100,i=j<=0.5?j*(i+1):j+i-j*i,j=2*j-i,f=[d(j,i,f+1/3)*256,d(j,i,f)*256,d(j,i,f-1/3)*256,1];h==4&&(f[3]=g[3]);return b.colorFromArray(f,e)}}return null};var a=function(a,b,d){a=Number(a);return isNaN(a)?d:a<b?b:a>d?d:a};b.Color.prototype.sanitize=function(){this.r=Math.round(a(this.r,0,255));this.g=Math.round(a(this.g,0,255));this.b=Math.round(a(this.b,0,255));
this.a=a(this.a,0,1);return this}})();b.colors.makeGrey=function(d,a){return b.colorFromArray([d,d,d,a])};b.mixin(b.Color.named,{aliceblue:[240,248,255],antiquewhite:[250,235,215],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],blanchedalmond:[255,235,205],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],
crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,
20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],
lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],mediumaquamarine:[102,
205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],oldlace:[253,245,230],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,
152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,
127],steelblue:[70,130,180],tan:[210,180,140],thistle:[216,191,216],tomato:[255,99,71],transparent:[0,0,0,0],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],whitesmoke:[245,245,245],yellowgreen:[154,205,50]});return b.colors});
define("dijit/_PaletteMixin",["dojo","dijit","dijit/_CssStateMixin"],function(b,d){b.declare("dijit._PaletteMixin",[d._CssStateMixin],{defaultTimeout:500,timeoutChangeRate:0.9,value:null,_selectedCell:-1,tabIndex:"0",cellClass:"dijitPaletteCell",dyeClass:"",_preparePalette:function(a,c,e){this._cells=[];for(var f=this._blankGif,e=e||b.getObject(this.dyeClass),g=0;g<a.length;g++)for(var h=b.create("tr",{tabIndex:"-1"},this.gridNode),i=0;i<a[g].length;i++){var j=a[g][i];if(j){var k=new e(j,g,i),j=b.create("td",
{"class":this.cellClass,tabIndex:"-1",title:c[j]});k.fillCell(j,f);this.connect(j,"ondijitclick","_onCellClick");this._trackMouseState(j,this.cellClass);b.place(j,h);j.index=this._cells.length;this._cells.push({node:j,dye:k})}}this._xDim=a[0].length;this._yDim=a.length;var l={UP_ARROW:-this._xDim,DOWN_ARROW:this._xDim,RIGHT_ARROW:this.isLeftToRight()?1:-1,LEFT_ARROW:this.isLeftToRight()?-1:1},m;for(m in l)this._connects.push(d.typematic.addKeyListener(this.domNode,{charOrCode:b.keys[m],ctrlKey:!1,
altKey:!1,shiftKey:!1},this,function(){var a=l[m];return function(b){this._navigateByKey(a,b)}}(),this.timeoutChangeRate,this.defaultTimeout))},postCreate:function(){this.inherited(arguments);this._setCurrent(this._cells[0].node)},focus:function(){d.focus(this._currentFocus)},_onCellClick:function(a){var c=a.currentTarget,e=this._getDye(c).getValue();this._setCurrent(c);setTimeout(b.hitch(this,function(){d.focus(c);this._setValueAttr(e,!0)}));b.removeClass(c,"dijitPaletteCellHover");b.stopEvent(a)},
_setCurrent:function(a){"_currentFocus"in this&&b.attr(this._currentFocus,"tabIndex","-1");(this._currentFocus=a)&&b.attr(a,"tabIndex",this.tabIndex)},_setValueAttr:function(a,c){this._selectedCell>=0&&b.removeClass(this._cells[this._selectedCell].node,"dijitPaletteCellSelected");this._selectedCell=-1;if(a)for(var d=0;d<this._cells.length;d++)if(a==this._cells[d].dye.getValue()){this._selectedCell=d;b.addClass(this._cells[d].node,"dijitPaletteCellSelected");break}this._set("value",this._selectedCell>=
0?a:null);if(c||c===void 0)this.onChange(a)},onChange:function(){},_navigateByKey:function(a,c){if(c!=-1){var e=this._currentFocus.index+a;if(e<this._cells.length&&e>-1)e=this._cells[e].node,this._setCurrent(e),setTimeout(b.hitch(d,"focus",e),0)}},_getDye:function(a){return this._cells[a.index].dye}});return d._PaletteMixin});
define("dojo/nls/colors",{root:{aliceblue:"alice blue",antiquewhite:"antique white",aqua:"aqua",aquamarine:"aquamarine",azure:"azure",beige:"beige",bisque:"bisque",black:"black",blanchedalmond:"blanched almond",blue:"blue",blueviolet:"blue-violet",brown:"brown",burlywood:"burlywood",cadetblue:"cadet blue",chartreuse:"chartreuse",chocolate:"chocolate",coral:"coral",cornflowerblue:"cornflower blue",cornsilk:"cornsilk",crimson:"crimson",cyan:"cyan",darkblue:"dark blue",darkcyan:"dark cyan",darkgoldenrod:"dark goldenrod",
darkgray:"dark gray",darkgreen:"dark green",darkgrey:"dark gray",darkkhaki:"dark khaki",darkmagenta:"dark magenta",darkolivegreen:"dark olive green",darkorange:"dark orange",darkorchid:"dark orchid",darkred:"dark red",darksalmon:"dark salmon",darkseagreen:"dark sea green",darkslateblue:"dark slate blue",darkslategray:"dark slate gray",darkslategrey:"dark slate gray",darkturquoise:"dark turquoise",darkviolet:"dark violet",deeppink:"deep pink",deepskyblue:"deep sky blue",dimgray:"dim gray",dimgrey:"dim gray",
dodgerblue:"dodger blue",firebrick:"fire brick",floralwhite:"floral white",forestgreen:"forest green",fuchsia:"fuchsia",gainsboro:"gainsboro",ghostwhite:"ghost white",gold:"gold",goldenrod:"goldenrod",gray:"gray",green:"green",greenyellow:"green-yellow",grey:"gray",honeydew:"honeydew",hotpink:"hot pink",indianred:"indian red",indigo:"indigo",ivory:"ivory",khaki:"khaki",lavender:"lavender",lavenderblush:"lavender blush",lawngreen:"lawn green",lemonchiffon:"lemon chiffon",lightblue:"light blue",lightcoral:"light coral",
lightcyan:"light cyan",lightgoldenrodyellow:"light goldenrod yellow",lightgray:"light gray",lightgreen:"light green",lightgrey:"light gray",lightpink:"light pink",lightsalmon:"light salmon",lightseagreen:"light sea green",lightskyblue:"light sky blue",lightslategray:"light slate gray",lightslategrey:"light slate gray",lightsteelblue:"light steel blue",lightyellow:"light yellow",lime:"lime",limegreen:"lime green",linen:"linen",magenta:"magenta",maroon:"maroon",mediumaquamarine:"medium aquamarine",
mediumblue:"medium blue",mediumorchid:"medium orchid",mediumpurple:"medium purple",mediumseagreen:"medium sea green",mediumslateblue:"medium slate blue",mediumspringgreen:"medium spring green",mediumturquoise:"medium turquoise",mediumvioletred:"medium violet-red",midnightblue:"midnight blue",mintcream:"mint cream",mistyrose:"misty rose",moccasin:"moccasin",navajowhite:"navajo white",navy:"navy",oldlace:"old lace",olive:"olive",olivedrab:"olive drab",orange:"orange",orangered:"orange red",orchid:"orchid",
palegoldenrod:"pale goldenrod",palegreen:"pale green",paleturquoise:"pale turquoise",palevioletred:"pale violet-red",papayawhip:"papaya whip",peachpuff:"peach puff",peru:"peru",pink:"pink",plum:"plum",powderblue:"powder blue",purple:"purple",red:"red",rosybrown:"rosy brown",royalblue:"royal blue",saddlebrown:"saddle brown",salmon:"salmon",sandybrown:"sandy brown",seagreen:"sea green",seashell:"seashell",sienna:"sienna",silver:"silver",skyblue:"sky blue",slateblue:"slate blue",slategray:"slate gray",
slategrey:"slate gray",snow:"snow",springgreen:"spring green",steelblue:"steel blue",tan:"tan",teal:"teal",thistle:"thistle",tomato:"tomato",turquoise:"turquoise",violet:"violet",wheat:"wheat",white:"white",whitesmoke:"white smoke",yellow:"yellow",yellowgreen:"yellow green"},zh:!0,"zh-tw":!0,tr:!0,th:!0,sv:!0,sl:!0,sk:!0,ru:!0,ro:!0,pt:!0,"pt-pt":!0,pl:!0,nl:!0,nb:!0,ko:!0,kk:!0,ja:!0,it:!0,hu:!0,he:!0,fr:!0,fi:!0,es:!0,el:!0,de:!0,da:!0,cs:!0,ca:!0,ar:!0});
define("dijit/ColorPalette","dojo,dijit,text!dijit/templates/ColorPalette.html,dijit/_Widget,dijit/_Templated,dojo/colors,dojo/i18n,dojo/string,dijit/_PaletteMixin,i18n!dojo/nls/colors".split(","),function(b,d){b.declare("dijit.ColorPalette",[d._Widget,d._Templated,d._PaletteMixin],{palette:"7x10",_palettes:{"7x10":["white,seashell,cornsilk,lemonchiffon,lightyellow,palegreen,paleturquoise,lightcyan,lavender,plum".split(","),"lightgray,pink,bisque,moccasin,khaki,lightgreen,lightseagreen,lightskyblue,cornflowerblue,violet".split(","),
"silver,lightcoral,sandybrown,orange,palegoldenrod,chartreuse,mediumturquoise,skyblue,mediumslateblue,orchid".split(","),"gray,red,orangered,darkorange,yellow,limegreen,darkseagreen,royalblue,slateblue,mediumorchid".split(","),"dimgray,crimson,chocolate,coral,gold,forestgreen,seagreen,blue,blueviolet,darkorchid".split(","),"darkslategray,firebrick,saddlebrown,sienna,olive,green,darkcyan,mediumblue,darkslateblue,darkmagenta".split(","),"black,darkred,maroon,brown,darkolivegreen,darkgreen,midnightblue,navy,indigo,purple".split(",")],
"3x4":[["white","lime","green","blue"],["silver","yellow","fuchsia","navy"],["gray","red","purple","black"]]},templateString:b.cache("dijit","templates/ColorPalette.html"),baseClass:"dijitColorPalette",buildRendering:function(){this.inherited(arguments);this._preparePalette(this._palettes[this.palette],b.i18n.getLocalization("dojo","colors",this.lang),b.declare(d._Color,{hc:b.hasClass(b.body(),"dijit_a11y"),palette:this.palette}))}});b.declare("dijit._Color",b.Color,{template:"<span class='dijitInline dijitPaletteImg'><img src='${blankGif}' alt='${alt}' class='dijitColorPaletteSwatch' style='background-color: ${color}'/></span>",
hcTemplate:"<span class='dijitInline dijitPaletteImg' style='position: relative; overflow: hidden; height: 12px; width: 14px;'><img src='${image}' alt='${alt}' style='position: absolute; left: ${left}px; top: ${top}px; ${size}'/></span>",_imagePaths:{"7x10":b.moduleUrl("dijit.themes","a11y/colors7x10.png"),"3x4":b.moduleUrl("dijit.themes","a11y/colors3x4.png")},constructor:function(a,c,d){this._alias=a;this._row=c;this._col=d;this.setColor(b.Color.named[a])},getValue:function(){return this.toHex()},
fillCell:function(a,c){var d=b.string.substitute(this.hc?this.hcTemplate:this.template,{color:this.toHex(),blankGif:c,alt:this._alias,image:this._imagePaths[this.palette].toString(),left:this._col*-20-5,top:this._row*-20-5,size:this.palette=="7x10"?"height: 145px; width: 206px":"height: 64px; width: 86px"});b.place(d,a)}});return d.ColorPalette});
define("orion/widgets/settings/Select","require,dojo,dijit,orion/util,orion/commands,dijit/form/Select,dijit/ColorPalette".split(","),function(b,d,a){d.declare("orion.widgets.settings.Select",[a._Widget,a._Templated],{templateString:'<select data-dojo-attach-point="selection" data-dojo-attach-event="onchange:change"></select>',category:null,item:null,element:null,ui:null,setStorageItem:function(){console.log("ColorPicker setStorageIem")},change:function(){this.setStorageItem(this.category,this.item,
this.element,this.selection.value,this.ui)},postCreate:function(){this.inherited(arguments);for(var a=0,a=0;a<this.options.length;a++)d.create("option",this.options[a],this.selection)}})});
define("orion/widgets/settings/ColorPicker","require,dojo,dijit,orion/util,orion/commands,dijit/form/DropDownButton,dijit/ColorPalette".split(","),function(b,d,a){d.declare("orion.widgets.settings.ColorPicker",a.form.DropDownButton,{setStorageItem:function(){console.log("ColorPicker setStorageIem")},postCreate:function(){this.inherited(arguments);this.dropDown=new a.ColorPalette({category:this.category,item:this.item,element:this.name,identifier:this.name,setStorageItem:d.hitch(this,"setStorageItem"),
colornode:this,onChange:function(a){this.setStorageItem(this.category,this.item,this.element,a,this.ui);this.colornode.set("label","");d.style(this.colornode.domNode.firstChild,"background",a)}});d.style(this.domNode.firstChild,"border","1px solid #AAA");d.style(this.domNode.firstChild,"padding","2px");d.style(this.domNode.firstChild,"padding-right","3px");d.style(this.domNode.firstChild,"background",this.setting);d.style(this.domNode.firstChild,"height","12px");d.style(this.domNode.firstChild,"width",
"12px");var b=d.query(".dijitArrowButtonInner",this.domNode);d.removeClass(b[0],"dijitArrowButtonInner")}})});
define("orion/widgets/settings/InputBuilder","require,dojo,dijit,orion/util,orion/commands,orion/widgets/settings/Select,orion/widgets/settings/TextField,orion/widgets/settings/ColorPicker".split(","),function(b,d){d.declare("orion.widgets.settings.InputBuilder",null,{constructor:function(a){this.preferences=a},setStorageItem:function(a,b,d,f,g){this.preferences.getPreferences("/settings",2).then(function(h){for(var i=JSON.parse(h.get(a)),j=0;j<i.length;j++)if(i[j].label===b)for(var k=0;k<i[j].data.length;k++)if(i[j].data[k].label===
d){i[j].data[k].value=f;i[j].data[k].ui=g;h.put(a,JSON.stringify(i));break}})},getStorageItem:function(a,b,e){var f,g=new d.Deferred;this.preferences.getPreferences("/settings",2).then(function(d){for(var d=JSON.parse(d.get(a)),i=0;i<d.length;i++)if(d[i].label===b)for(var j=0;j<d[i].data.length;j++)if(d[i].data[j].label===e){f=d[i].data[j].value;g.resolve(f);break}});return g},processInputType:function(a,b,e,f,g){var h=d.create("div",null,f),i=this;this.getStorageItem(a,b,e.label).then(function(f){switch(e.input){case "combo":for(var k=
[],l=0;l<e.values.length;l++){var m=e.values[l].label,n={value:m,innerHTML:m};if(m===f)n.selected="selected";k.push(n)}new orion.widgets.settings.Select({category:a,item:b,element:e.label,ui:g,options:k,setStorageItem:d.hitch(i,"setStorageItem")},h);break;case "color":new orion.widgets.settings.ColorPicker({label:"   ",name:e.label,category:a,item:b,setting:f,setStorageItem:d.hitch(i,"setStorageItem")},h);break;case "textfield":new orion.widgets.settings.TextField({category:a,item:b,element:e.label,
ui:g,setStorageItem:d.hitch(i,"setStorageItem")},h)}})}})});
define("orion/widgets/settings/SplitSelectionLayout","i18n!orion/settings/nls/messages,require,dojo,dijit,orion/util,orion/commands,orion/PageUtil,dijit/TooltipDialog,dijit/layout/BorderContainer,dijit/layout/ContentPane,orion/widgets/plugin/PluginList,orion/widgets/settings/InputBuilder".split(","),function(b,d,a,c){a.declare("orion.widgets.settings.SplitSelectionLayout",[c._Widget,c._Templated],{widgetsInTemplate:!0,templateString:'<div style="height:100%;"><div data-dojo-type="dijit.layout.BorderContainer" style="height:100%;" data-dojo-props="design:\'heading\', gutters:false, liveSplitters:false"><div class="auxpane" id="categories" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:\'leading\', splitter:false"  style="width: 150px;"><div id="categoryNode" class="auxPadding" style="padding-left:0;padding-top:10px;"><ul class="navbar" data-dojo-attach-point="navbar" role="tablist" aria-labelledby="content-title"></ul></div></div><div data-dojo-type="dijit.layout.ContentPane" class="mainpane"  data-dojo-props="region:\'center\'"><div data-dojo-attach-point="mainNode" class="settings" role="tabpanel"><div data-dojo-attach-point="table"></div><div id="pageToolbar" style="display:none"/></div>',itemToIndexMap:null,
constructor:function(){this.toolbar=a.byId(this.pageActions)},postCreate:function(){this.itemToIndexMap={};this.manageDefaultData(this.initialSettings);this.drawUserInterface(this.initialSettings);a.subscribe("/dojo/hashchange",this,"processHash")},updateToolbar:function(){this.toolbar&&a.empty(this.toolbar)},displaySettings:function(b){b=this.itemToIndexMap[b];a.empty(this.table);b=this.initialSettings[b].category;a.create("h1",{id:b,innerHTML:b},this.table)},addCategory:function(b,c){a.create("li",
b,this.navbar);this.itemToIndexMap[b.id]=c},selectCategory:function(b){if(this.selectedCategory)a.removeClass(this.selectedCategory,"navbar-item-selected"),a.attr(this.selectedCategory,"aria-selected","false"),this.selectedCategory.tabIndex=-1;this.selectedCategory=a.byId(b);a.addClass(this.selectedCategory,"navbar-item-selected");a.attr(this.selectedCategory,"aria-selected","true");a.attr(this.mainNode,"aria-labelledby",b);this.selectedCategory.tabIndex=0;this.selectedCategory.focus();this.updateToolbar(b);
this.displaySettings(b)},drawUserInterface:function(b){for(var c=0;c<b.length;c++){var d=b[c].category.replace(/\s/g,"").toLowerCase();this.addCategory({innerHTML:b[c].category,id:d,"class":"navbar-item",role:"tab",tabindex:-1,"aria-selected":"false",onclick:a.hitch(this,"selectCategory",d)},c)}var h=this;a.connect(this.navbar,"onkeypress",function(b){if(b.keyCode===a.keys.LEFT_ARROW||b.keyCode===a.keys.UP_ARROW)h.selectedCategory.previousSibling&&(b=document.createEvent("MouseEvents"),b.initMouseEvent("click",
!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),h.selectedCategory.previousSibling.dispatchEvent(b));else if((b.keyCode===a.keys.RIGHT_ARROW||b.keyCode===a.keys.DOWN_ARROW)&&h.selectedCategory.nextSibling)b=document.createEvent("MouseEvents"),b.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),h.selectedCategory.nextSibling.dispatchEvent(b)})}})});
define("dojox/form/uploader/Base","dojo,dijit,dojox,dojox/form/uploader/Base,dijit/_Widget,dijit/_Templated".split(","),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=!0,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")break;a=b.attr(this._hascache.testInput,"multiple");return a===!0||a===!1}return!1},getMimeType:function(){return"application/octet-stream"},getFileType:function(a){return a.substring(a.lastIndexOf(".")+1).toUpperCase()},convertBytes:function(a){var b=Math.round(a/1024*1E5)/1E5,d=Math.round(a/1048576*1E5)/1E5,f=Math.round(a/1073741824*1E5)/1E5,g=a;b>1&&(g=b.toFixed(1)+
" kb");d>1&&(g=d.toFixed(1)+" mb");f>1&&(g=f.toFixed(1)+" gb");return{kb:b,mb:d,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:!1,tabIndex:0,multiple:!1,label:"Upload...",url:"",name:"uploadedfile",flashFieldName:"",uploadType:"form",_nameIndex:0,widgetsInTemplate:!0,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 a=!1,d=this._getNodePosition(this.domNode);if(!this.btnSize.w||!this.btnSize.h)b.body().appendChild(this.domNode),this._getButtonStyle(this.domNode),a=!0;this._setButtonStyle();a&&b.place(this.domNode,d.node,d.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 a=[];this.supports("multiple")?b.forEach(this.inputNode.files,function(b,d){a.push({index:d,name:b.name,size:b.size,type:b.type})},this):b.forEach(this._inputs,function(b,d){a.push({index:d,name:b.value.substring(b.value.lastIndexOf("\\")+1),size:0,type:b.value.substring(b.value.lastIndexOf(".")+1)})},this);return a},_getValueAttr:function(){return this.getFileList()},
_setValueAttr:function(){console.error("Uploader value is read only")},_getDisabledAttr:function(){return this._disabled},_setDisabledAttr:function(a){this._disabled!=a&&(this.button.set("disabled",a),b.style(this.inputNode,"display",a?"none":"block"))},_getNodePosition:function(a){return a.previousSibling?{node:a.previousSibling,pos:"after"}:{node:a.nextSibling,pos:"before"}},_getButtonStyle:function(a){this.btnSize=a?b.marginBox(a):{w:80,h:25}},_setButtonStyle:function(){var a=!0;if(!this.domNode.parentNode||
!this.domNode.parentNode.tagName)document.body.appendChild(this.domNode),a=!1;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"});a||document.body.removeChild(this.domNode)},
_createInput:function(){this._inputs.length&&(b.style(this.inputNode,{top:"500px"}),this._disconnectButton(),this._nameIndex++);var a;a=this.supports("multiple")?this.name+"s[]":this.name+(this.multiple?this._nameIndex:"");this.inputNode=b.create("input",{type:"file",name:a,className:"dojoxInputNode"},this.domNode,"first");this.supports("multiple")&&this.multiple&&b.attr(this.inputNode,"multiple",!0);this._inputs.push(this.inputNode);b.style(this.inputNode,{fontSize:this.inputNodeFontSize+"em"});
a=b.marginBox(this.inputNode);b.style(this.inputNode,{position:"absolute",top:"-2px",left:"-"+(a.w-this.btnSize.w-2)+"px",opacity:0});this._connectButton()},_connectButton:function(){this._cons=[];var a=b.hitch(this,function(a){this._cons.push(b.connect(this.inputNode,a,this,function(){this.button._cssMouseEvent({type:a})}))});a("mouseover");a("mouseout");a("mousedown");this._cons.push(b.connect(this.inputNode,"change",this,function(a){this.onChange(this.getFileList(a));!this.supports("multiple")&&
this.multiple&&this._createInput()}));this.button.set("tabIndex",-1);if(this.tabIndex>-1){this.inputNode.tabIndex=this.tabIndex;var d=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",d)}))}},_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(a){c.push(a);b.declare("dojox.form.Uploader",c,{})}})()});
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(a){this.onBegin(this.getFileList());this.supports("FormData")?this.uploadWithFormData(a):this.supports("sendAsBinary")&&this.sendAsBinary(a)},
submit:function(a){a=a?a.tagName?a:this.getForm():this.getForm();a=b.formToObject(a);console.log("form data:",a);this.upload(a)},sendAsBinary:function(a){if(this.getUrl()){var b="---------------------------"+(new Date).getTime(),d=this.createXhr();d.setRequestHeader("Content-Type","multipart/form-data; boundary="+b);if(a=this._buildRequestBody(a,b))d.sendAsBinary(a);else this.onError(this.errMsg)}else console.error("No upload url found.",this)},uploadWithFormData:function(a){if(this.getUrl()){var d=
new FormData;b.forEach(this.inputNode.files,function(a){d.append(this.name+"s[]",a)},this);if(a)for(var f in a)d.append(f,a[f]);this.createXhr().send(d)}else console.error("No upload url found.",this)},_xhrProgress:function(a){if(a.lengthComputable){var b={bytesLoaded:a.loaded,bytesTotal:a.total,type:a.type,timeStamp:a.timeStamp};a.type=="load"?(b.percent="100%",b.decimal=1):(b.decimal=a.loaded/a.total,b.percent=Math.ceil(a.loaded/a.total*100)+"%");this.onProgress(b)}},createXhr:function(){var a=
new XMLHttpRequest,d;a.upload.addEventListener("progress",b.hitch(this,"_xhrProgress"),!1);a.addEventListener("load",b.hitch(this,"_xhrProgress"),!1);a.addEventListener("error",b.hitch(this,function(a){this.onError(a);clearInterval(d)}),!1);a.addEventListener("abort",b.hitch(this,function(a){this.onAbort(a);clearInterval(d)}),!1);a.onreadystatechange=b.hitch(this,function(){a.readyState===4&&(console.info("COMPLETE"),clearInterval(d),this.onComplete(b.eval(a.responseText)))});a.open("POST",this.getUrl());
d=setInterval(b.hitch(this,function(){}),250);return a},_buildRequestBody:function(a,d){var f="",d="--"+d,g=[];b.forEach(this.inputNode.files,function(a,b){var c=this.name+"s[]",h=this.inputNode.files[b].fileName,m;try{m=this.inputNode.files[b].getAsBinary()+"\r\n",f+=d+"\r\n",f+="Content-Disposition: form-data; ",f+='name="'+c+'"; ',f+='filename="'+h+'"\r\n',f+="Content-Type: "+this.getMimeType()+"\r\n\r\n",f+=m}catch(n){g.push({index:b,name:h})}},this);g.length&&g.length>=this.inputNode.files.length&&
(this.onError({message:this.errMsg,filesInError:g}),f=!1);if(!f)return!1;if(a)for(var h in a)f+=d+"\r\n",f+="Content-Disposition: form-data; ",f+='name="'+h+'"\r\n\r\n',f+=a[h]+"\r\n";f+=d+"--\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".split(","),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(a){if(!this.supports("multiple")||this.force=="iframe")this.uploadIFrame(a),b.stopEvent(a)},uploadIFrame:function(){this.getUrl();b.io.iframe.send({url:this.getUrl(),
form:this.form,handleAs:"json",error:b.hitch(this,function(a){console.error("HTML Upload Error:"+a.message)}),load:b.hitch(this,function(a){this.onComplete(a)})})}});a.form.addUploaderPlugin(a.form.uploader.plugins.IFrame)});
define("dojox/form/uploader/FileList","dojo,dijit,dojox,dojox/form/uploader/Base,dijit/_Widget,dijit/_Templated".split(","),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 a=0;a<this.rowAmt;a++)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}this.uploader?(this.connect(this.uploader,"onChange","_onUploaderChange"),
this.connect(this.uploader,"reset","reset"),this.connect(this.uploader,"onBegin",function(){this.showProgress(!0)}),this.connect(this.uploader,"onProgress","_progress"),this.connect(this.uploader,"onComplete",function(){setTimeout(b.hitch(this,function(){this.hideProgress(!0)}),1250)})):(this._upCheckCnt++,setTimeout(b.hitch(this,"setUploader"),250))},hideProgress:function(a){this._hideShowProgress(a?{ani:!0,endDisp:"none",beg:15,end:0}:{endDisp:"none",ani:!1})},showProgress:function(a){this._hideShowProgress(a?
{ani:!0,endDisp:"block",beg:0,end:15}:{endDisp:"block",ani:!1})},_progress:function(a){this.percentTextNode.innerHTML=a.percent;b.style(this.percentBarNode,"width",a.percent)},_hideShowProgress:function(a){var d=this.progressNode,f=function(){b.style(d,"display",a.endDisp)};a.ani?(b.style(d,"display","block"),b.animateProperty({node:d,properties:{height:{start:a.beg,end:a.end,units:"px"}},onEnd:f}).play()):f()},_onUploaderChange:function(a){this.reset();b.forEach(a,function(a,b){this._addRow(b+1,
this.getFileType(a.name),a.name,a.size)},this)},_addRow:function(a,d,f,g){var h,i=this.listNode.insertRow(-1);h=i.insertCell(-1);b.addClass(h,"dojoxUploaderIndex");h.innerHTML=a;h=i.insertCell(-1);b.addClass(h,"dojoxUploaderIcon");h.innerHTML=d;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("orion/widgets/ImportDialog","i18n!orion/widgets/nls/messages,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,dojo/io/iframe".split(","),function(b,d,a){d.declare("orion.widgets.ImportDialog",[a.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:!0,templateString:'<div class="dijitDialog" tabindex="-1" waiRole="dialog" waiState="labelledby-${id}_title"><div data-dojo-attach-point="titleBar" class="dijitDialogTitleBar"><span data-dojo-attach-point="titleNode" class="dijitDialogTitle" id="${id}_title"></span><span data-dojo-attach-point="closeButtonNode" class="dijitDialogCloseIcon" data-dojo-attach-event="onclick:onCancel" title="${buttonCancel}"><span data-dojo-attach-point="closeText" class="closeText" title="${buttonCancel}">x</span></span></div><div ondragover="event.preventDefault()" data-dojo-attach-point="containerNode" class="dijitDialogPaneContent"><div class="uploadContainer" data-dojo-attach-event="drop:drop,dragenter:dragEnter,dragexit:dragExit,dragover:dragOver"><div class="dottedOutline"><div data-dojo-attach-point="dragArea" class="floatingSection"><div class="uploadInstruction">'+
b["Drag a File or Zip here"]+'</div><div class="tipInstruction">'+b["or if you prefer"]+'</div><form data-dojo-attach-point="importform" method="post" id="importDialog.myForm" enctype="multipart/form-data" ><input class="uploadBrowser" data-dojo-attach-point="importloader" name="uploadedfile" multiple="false" type="file" id="importLoader" force="iframe" data-dojo-type="dojox.form.Uploader" style="height: 20px" label="'+b["Browse..."]+'" ><input type="submit" label="Finish" value="OK" dojoType="dijit.form.Button" style="visibility:hidden;padding: 20 0 10 0; float: right; clear: both;"/></form></div></div></div></div></div>',
constructor:function(){this.inherited(arguments);this.options=arguments[0]||{}},postMixInProperties:function(){this.inherited(arguments);this.title=b["Import a file or zip"]},handleReadyState:function(){this.req.readyState===4&&(this.hide(),this.options.func())},uploadDroppedFiles:function(a){this.req=new XMLHttpRequest;this.req.open("post",this.options.importLocation,!0);this.req.setRequestHeader("X-Requested-With","XMLHttpRequest");this.req.setRequestHeader("Slug",a.name);a.name.indexOf(".zip")!==
a.name.length-4&&this.req.setRequestHeader("X-Xfer-Options","raw");this.req.setRequestHeader("Content-Type",a.type);this.req.onreadystatechange=d.hitch(this,"handleReadyState");this.req.send(a)},upload:function(a){a&&this.importloader.upload(a)},handleFiles:function(a){for(this.importloader.form[0].files=a;0<a.length;a++)this.uploadDroppedFiles(a[0])},dragEnter:function(){return!1},dragExit:function(){return!1},dragOver:function(){return!1},drop:function(a){a.preventDefault();a.stopPropagation();
a=a.dataTransfer.files;a.length>0&&this.handleFiles(a)},postCreate:function(){this.inherited(arguments);d.style(this.importloader.domNode,"left","100px");d.style(this.titleBar,"padding","10px 10px 10px");this.importloader.force="iframe";this.importloader.preventDefault=function(){};this.importloader.stopPropagation=function(){};this.importform.action=this.options.importLocation;this.importloader.url=this.options.importLocation;d.connect(this.importloader,"onChange",d.hitch(this,function(){this.importloader.upload({preventDefault:function(){},
stopPropagation:function(){}})}));d.connect(this.importloader,"onError",d.hitch(this,function(){setTimeout(d.hitch(this,function(){this.hide()}),2E3)}));d.connect(this.importloader,"onComplete",d.hitch(this,function(){setTimeout(d.hitch(this,function(){this.hide();this.options.func()}),2E3)}));d.connect(this.importloader,"onKeyPress",function(a){a.keyCode===d.keys.ENTER&&a.stopPropagation()})}})});
define("orion/extensionCommands","require,dojo,orion/util,orion/commands,orion/editor/regex,orion/contentTypes,orion/URITemplate,orion/i18nUtil,orion/widgets/NewItemDialog,orion/widgets/DirectoryPrompterDialog,orion/widgets/ImportDialog,orion/widgets/SFTPConnectionDialog".split(","),function(b,d,a,c,e,f,g,h){var i={},b=window.location.href.split("#")[0],j=b.substring(0,b.length-window.location.pathname.length);i._cloneItemWithoutChildren=function l(a){if(a===null||typeof a!=="object")return a;var b=
a.constructor(),c;for(c in a)c!=="children"&&c!=="Children"&&(b[c]=l(a[c]));return b};i._createOpenWithCommands=function(a){function b(a,c){for(var d=a.getServiceReferences("orion.navigate.openWith"),e=[],f=0;f<d.length;f++){var g=d[f];g.getProperty("editor")===c.id&&(g=g.getProperty("contentType"),g instanceof Array?e=e.concat(g):g!==null&&typeof g!=="undefined"&&e.push(g))}return e}for(var c=function(){for(var b=a.getServiceReferences("orion.edit.editor"),c=[],d=0;d<b.length;d++){var e=b[d],f=e.getProperty("id");
c.push({id:f,name:e.getProperty("name"),nameKey:e.getProperty("nameKey"),nls:e.getProperty("nls"),uriTemplate:e.getProperty("orionTemplate")||e.getProperty("uriTemplate")})}return c}(),d=function(a){for(a=a.getServiceReferences("orion.navigate.openWith.default");0<a.length;)return{editor:a[0].getProperty("editor")};return null}(a),e=[],f=0;f<c.length;f++){var g=c[f],h=d&&d.editor===g.id,i=b(a,g);i.length&&e.push({properties:{name:g.name||g.id,nameKey:g.nameKey,id:"eclipse.openWithCommand."+g.id,tooltip:g.name,
tooltipKey:g.nameKey,contentType:i,uriTemplate:g.uriTemplate,nls:g.nls,forceSingleItem:!0,isEditor:h?"default":"editor"},service:{}})}return e};i._makeValidator=function(a,b,c,e){function h(a,b,c,d){var e=c.match,f;if(b.indexOf("|")>=0)return f=b.substring(0,b.indexOf("|")),b=b.substring(b.indexOf("|")+1),h(a,f,c,d)?!0:h(a,b,c,d);else if(b.indexOf(":")>=0)return f=b.substring(0,b.indexOf(":")),b=b.substring(b.indexOf(":")+1),a[f]?h(a[f],b,c,d):!1;else{a:{f=!1;var g;if(a[b]){if(e)if(typeof e==="string"){if(!typeof(a[b]===
"string")){c=!1;break a}if(c.variableName){if(e=RegExp(e).exec(a[b]))f=e[0],g=c.variableMatchPosition==="before"?a[b].substring(0,e.index):c.variableMatchPosition==="after"?a[b].substring(e.index+f.length):c.variableMatchPosition==="only"?f:a[b],f=!0}else{c=RegExp(e).test(a[b]);break a}}else a[b]===e&&(g=a[b],f=!0);else g=a[b],f=!0;if(f&&c.variableName&&(d[c.variableName]=g,d.itemCached=a,c.replacements))for(a=0;a<c.replacements.length;a++)b=!1,c.replacements[a].pattern?d[c.variableName]=d[c.variableName].replace(RegExp(c.replacements[a].pattern),
c.replacements[a].replacement||""):b=!0,b&&window.console.log("Invalid replacements specified in validation property.  "+c.replacements[a]);c=f}else c=!1}return c}}b={info:a};b.validationFunction=d.hitch(b,function(b){typeof e==="function"&&(b=e.call(this,b));if(b){if(d.isArray(b)){if((this.info.forceSingleItem||this.info.uriTemplate)&&b.length!==1)return!1;if(b.length<1)return!1}else b=[b];for(var g=0;g<b.length;g++){var i;a:{var j=b[g],m=c;if(this.info.validationProperties)for(i=0;i<this.info.validationProperties.length;i++){var z=
this.info.validationProperties[i];if(z.source){if(!h(j,z.source,z,this)){i=!1;break a}}else{window.console.log("Invalid validationProperties in "+a.id+".  No source property specified.");i=!1;break a}}if(this.info.contentType&&m){z=!1;if(j=f.getFilenameContentType(j.Name,m))for(i=0;i<this.info.contentType.length;i++)if(j.id===this.info.contentType[i]){z=!0;break}i=z}else i=!0}if(!i)return!1}return!0}return!1});b.generatesURI=d.hitch(b,function(){return!!this.info.uriTemplate});b.getURI=d.hitch(b,
function(a){if(this.info.uriTemplate){var b={},c;for(c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);if(this.info.validationProperties)for(c=0;c<this.info.validationProperties.length;c++){var d=this.info.validationProperties[c];d.source&&d.variableName&&(this.itemCached===a&&this[d.variableName]||h(a,d.source,d,this),a[d.variableName]?window.console.log("Variable name "+d.variableName+" in the extension "+this.info.id+" conflicts with an existing property in the item metadata."):b[d.variableName]=this[d.variableName])}b.OrionHome=
j;a=new g(this.info.uriTemplate);return window.decodeURIComponent(a.expand(b))}return null});return b};i._createCommandOptions=function(a,b,c,e,f,g){function j(h,q){var s=i._makeValidator(a,c,e,g);h.visibleWhen=s.validationFunction;if(f)s.generatesURI()?h.hrefCallback=d.hitch(s,function(a){return this.getURI(d.isArray(a.items)?a.items[0]:a.items)}):h.callback=d.hitch(a,function(a){var e;if(this.forceSingleItem)a=d.isArray()?a.items[0]:a.items,e=i._cloneItemWithoutChildren(a);else if(d.isArray(a.items)){e=
[];for(var f=0;f<a.items.length;f++)e.push(i._cloneItemWithoutChildren(a.items[f]))}else e=i._cloneItemWithoutChildren(a.items);b.run?b.run(e):c&&c.getService(b).run(e)});q.resolve(h)}var s=new d.Deferred;a.nls?h.getMessageBundle(a.nls).then(function(b){j({name:a.nameKey?b[a.nameKey]:a.name,image:a.image,id:a.id||a.name,tooltip:a.tooltipKey?b[a.tooltipKey]:a.tooltip,isEditor:a.isEditor},s)}):j({name:a.name,image:a.image,id:a.id||a.name,tooltip:a.tooltip,isEditor:a.isEditor},s);return s};i.getOpenWithCommands=
function(a){var b=[],c;for(c in a._commandList){var d=a._commandList[c];d.isEditor&&b.push(d)}return b};return i});
define("orion/globalCommands","i18n!orion/nls/messages,require,dojo,dijit,orion/commonHTMLFragments,orion/commands,orion/parameterCollectors,orion/extensionCommands,orion/util,orion/textview/keyBinding,orion/breadcrumbs,orion/favorites,orion/contentTypes,orion/URITemplate,orion/PageUtil,dijit/Menu,dijit/MenuItem,dijit/form/DropDownButton,orion/widgets/OpenResourceDialog,orion/widgets/LoginDialog,orion/widgets/UserMenu,orion/widgets/UserMenuDropDown".split(","),function(b,d,a,c,e,f,g,h,i,j,k,l,m,n,
p){function o(b,c){if(b.getLabel)return b.getLabel();else{var d=new a.Deferred;d.callback(c.properties.name);return d}}function r(b){(b=b.getService("orion.page.progress"))&&a.hitch(b,b.init)("progressPane")}function q(a,b){var c=a.getService("orion.core.auth");c!==null&&c.getUser().then(function(a){a.Name?b.set("label",a.Name):a.login&&b.set("label",a.login)})}function s(d){var e=d.getServiceReferences("orion.core.auth");D=[];var g=a.byId("userMenu");if(g){if(!c.byId("logins")){var h=new orion.widgets.UserMenuDropDown({id:"logins",
dropDown:J,label:b.Options,showLabel:!0});a.place(h.domNode,g,"only");h.valueNode&&a.destroy(h.valueNode);h.titleNode&&a.attr(h.titleNode,"title")&&a.removeAttr(h.titleNode,"title");new f.CommandTooltip({connectId:[h.focusNode],label:b.Options,position:["above","left","right","below"]});q(d,h)}for(g=0;g<e.length;g++){var h=e[g],i=d.getService(h);a.hitch(this,function(a,b){o(a,b).then(function(b){a.getKey().then(function(c){D.push(c);a.getUser().then(function(d){u.addUserItem(c,a,b,d);J.addUserItem(c,
a,b,d)},function(d,e){u.addUserItem(c,a,b);J.addUserItem(c,a,b,e)});window.addEventListener("storage",function(){v[c]!==localStorage.getItem(c)&&(v[c]=localStorage.getItem(c),a.getUser().then(function(d){u.addUserItem(c,a,b,d);J.addUserItem(c,a,b,d)},function(){u.addUserItem(c,a,b);J.addUserItem(c,a,b)}))},!1)})})})(i,h)}}}function w(){if(a.byId("relatedLinks")&&y){var b=c.byId("related");b&&b.closeDropDown();y.focusedChild=null;a.forEach(y.getChildren(),function(a){y.removeChild(a);a.destroy()})}}
function t(d,e){y||(y=new c.Menu({style:"display: none;padding:3px;border-radius:3px;",id:"relatedLinksMenu"}));d._addMenuItem(y,e);var f=c.byId("related"),g=a.byId("relatedLinks");g&&!f&&(f=new orion.widgets.UserMenuDropDown({id:"related",label:b.Related,dropDown:y}),a.addClass(f.domNode,"bannerMenu"),a.place(f.domNode,g,"only"),i.forceLayout(g))}function z(b,c,d,e,g){var j,k=b.getServiceReferences("orion.page.link.related");if(!(k.length<=0)){var l=a.byId("relatedLinks");l&&a.when(function(){if(j)return j;
var a=b.getService("orion.core.contenttypes");a||(a=new m.ContentTypeService(b),a=b.getService("orion.core.contenttypes"));return a.getContentTypes().then(function(a){return j=a})}(),a.hitch(this,function(){var m;w();for(var n=[],p=0;p<k.length;p++){var o={},q,r=k[p].getPropertyNames();for(q=0;q<r.length;q++)o[r[q]]=k[p].getProperty(r[q]);if(o.id){var s=function(b){if(b)if(!b.visibleWhen||b.visibleWhen(c)){var d=new f.CommandInvocation(e,c,c,null,b);t(b,d)}else typeof g==="function"&&(m||(m=g()),
a.when(m,a.hitch(b,function(a){a&&c===H&&(!this.visibleWhen||this.visibleWhen(a))&&t(this,new f.CommandInvocation(e,a,a,null,this))})))},u=null;if(a.indexOf(d,o.id)<0)if((o.nls&&o.nameKey||o.name)&&o.uriTemplate)q=h._createCommandOptions(o,k[p],b,j,!0),n.push(q),q.then(a.hitch(this,function(a){a=new f.Command(a);s(a)}));else{if(!u&&(u=e.findCommand(o.id))){s(u);continue}if(!u){var v=b.getServiceReferences("orion.navigate.command");for(q=0;q<v.length;q++)if(v[q].getProperty("id")===o.id){for(var o=
{},r=v[q].getPropertyNames(),A=0;A<r.length;A++)o[r[A]]=v[q].getProperty(r[A]);q=h._createCommandOptions(o,v[q],b,j,!0);n.push(q);q.then(a.hitch(this,function(a){u=new f.Command(a);s(u)}));break}}}}}(new a.DeferredList(n)).addBoth(a.hitch(this,function(){var b=a.byId("relatedLinks");y&&b&&(y.getChildren().length===0?a.style(b,"visibility","hidden"):a.style(b,"visibility","visible"));i.forceLayout(l)}))}))}}function B(b){var c=a.byId("globalActions");c&&(a.empty(c),b.renderCommands(c.id,c,{},{},"tool"))}
function G(a){var c=a.getService("orion.core.favorite");c||(c=new l.FavoritesService({serviceRegistry:a}),c=a.getService("orion.core.favorite"));x&&x.Location&&c.hasFavorite(x.ChildrenLocation||x.Location).then(function(d){d?a.getService("orion.page.message").setMessage(x.Name+b[" is already a favorite."],2E3):(c.makeFavorites([x]),a.getService("orion.page.message").setMessage(x.Name+b[" has been added to the favorites list."],2E3))})}function C(c,d){var e=a.byId("pageFavorite");e&&(x&&x.Location?
(a.addClass(e,"bannerButton"),a.connect(e,"onclick",this,function(){G(c)}),a.connect(e,"onkeypress",this,function(b){b.keyCode===a.keys.ENTER&&G(c)}),new f.CommandTooltip({connectId:[e],label:b["Add to the favorites list"],position:["below","left","right","above"],commandService:d}),a.style(e,"visibility","visible")):a.style(e,"visibility","hidden"))}var A=function(a){var b=document.createElement("a");b.href=a;return b.href}(d.toUrl("auth/NotifyAuthentication.html")),v={},u=new orion.widgets.LoginDialog,
J=new orion.widgets.UserMenu({loginDialog:u}),D=[],y,H,K=[],x=null,E;return{generateUserInfo:s,generateRelatedLinks:z,generateDomCommandsInBanner:function(b,c,d,e,f,g,h){b.closeParameterCollector();if(g=a.byId("pageActions"))a.empty(g),(g=b.renderCommands(g.id,g,d||c,c,"button"))&&g.then?g.then(function(){b.processURL(window.location.href)}):b.processURL(window.location.href);if(!h&&(g=a.byId("pageNavigationActions")))a.empty(g),b.renderCommands(g.id,g,f||d||c,e||c,"button")},generateBanner:function(h,
k,m,o,q,t,u,v){function w(b){a.query(".targetSelector").forEach(function(a){a.target=b})}function A(){o.getPreferences("/settings",2).then(function(a){a=a.get("General");if(a!==void 0&&(a=JSON.parse(a)))a=o.getSetting(a,"Navigation","Links"),w(a==="Open in new tab"?"_blank":"_self")})}var z,y=a.byId(h);if(!y)throw b["could not find banner parent, id was "]+h;a.byId("staticBanner")||a.place(e.topHTMLFragment,y,"only");(h=a.byId("pageToolbar"))?(a.place(e.toolbarHTMLFragment,h,"only"),a.addClass(h,
"toolComposite")):(h=a.create("div",{id:"pageToolbar","class":"toolbar toolComposite layoutBlock"},"titleArea","after"),a.place(e.toolbarHTMLFragment,h,"only"));a.byId("footerContent")||(h=a.byId("footer"))&&a.place(e.bottomHTMLFragment,h,"only");m.setParameterCollector(new g.CommandParameterCollector);a.place('<div id="keyAssist" style="display: none" class="keyAssistFloat" role="list" aria-atomic="true" aria-live="assertive"></div>',document.body,"last");var D=a.byId("primaryNav");if(D)for(var h=
k.getServiceReferences("orion.page.link"),t=p.matchResourceParameters(window.location.href),E={OrionHome:window.location.protocol+"//"+window.location.host,Location:t.resource},t=0;t<h.length;t++){for(var x={},G=h[t].getPropertyNames(),H=0;H<G.length;H++)x[G[H]]=h[t].getProperty(G[H]);x.uriTemplate&&x.nls&&(x.name||x.nameKey)?d(["i18n!"+x.nls],function(b){var c=new n(x.uriTemplate),c=window.decodeURIComponent(c.expand(E)),c=a.create("a",{href:c,target:"_self","class":"targetSelector"},D,"last");z=
document.createTextNode(x.nameKey?b[x.nameKey]:x.name);a.place(z,c,"only")}):x.uriTemplate&&x.name&&(G=new n(x.uriTemplate),G=window.decodeURIComponent(G.expand(E)),G=a.create("a",{href:G,target:"_self","class":"targetSelector"},D,"last"),z=document.createTextNode(x.name),a.place(z,G,"only"))}var K=a.byId("search");if(!K)throw"failed to generate HTML for banner";a.connect(K,"onkeypress",function(c){if(c.charOrCode===a.keys.ENTER)if(q){if(K.value.length>0)c=q.createSearchQuery(K.value),window.location=
d.toUrl("search/search.html")+"#"+c}else window.alert(b["Can't search: no search service is available"])});h=new f.Command({name:b["Make Favorite"],tooltip:b["Add to the favorites list"],imageClass:"core-sprite-makeFavorite",id:"orion.makeFavorite",visibleWhen:function(b){b=a.isArray(b)?b:[b];if(b.length===0)return!1;for(var c=0;c<b.length;c++)if(!b[c].Location)return!1;return!0},callback:function(c){for(var c=a.isArray(c.items)?c.items:[c.items],d=k.getService("orion.core.favorite"),e=function(a){return function(c){c?
k.getService("orion.page.message").setMessage(a.Name+b[" is already a favorite."],2E3):d.makeFavorites(a)}},f=0;f<c.length;f++){var g=c[f];d.hasFavorite(g.ChildrenLocation||g.Location).then(e(g))}}});m.addCommand(h);var R=function(b,c,d){var e=c.getService("orion.core.favorite");e||(e=new l.FavoritesService({serviceRegistry:c}),e=c.getService("orion.core.favorite"));var f=new orion.widgets.OpenResourceDialog({searcher:b,searchRenderer:b.defaultRenderer,favoriteService:e});d&&a.connect(f,"onHide",
function(){d.getTextView().focus()});window.setTimeout(function(){f.show()},0)},h=new f.Command({name:b["Find File Named..."],tooltip:b["Choose a file by name and open an editor on it"],id:"eclipse.openResource",callback:function(){R(q,k,u)}});u&&(u.getTextView().setKeyBinding(new j.KeyBinding("f",!0,!0,!1),h.id),u.getTextView().setAction(h.id,function(){R(q,k,u);return!0},h));m.addCommand(h);m.registerCommandContribution("globalActions","eclipse.openResource",100,null,!0,new f.CommandKeyBinding("f",
!0,!0));h=new f.Command({name:b["Toggle banner and footer"],tooltip:b["Hide or show the page banner and footer"],id:"orion.toggleTrim",callback:function(){var b=c.byId(y.parentNode.id);if(b){var d=a.byId("footer");y.style.display==="none"?(y.style.display="block",d.style.display="block"):(y.style.display="none",d.style.display="none");b.layout()}return!0}});m.addCommand(h);m.registerCommandContribution("globalActions","orion.toggleTrim",100,null,!0,new f.CommandKeyBinding("m",!0,!0));u&&(u.getTextView().setKeyBinding(new f.CommandKeyBinding("m",
!0,!0),h.id),u.getTextView().setAction(h.id,h.callback,h));var O=a.byId("keyAssist");a.connect(document,"onkeypress",a.hitch(this,function(b){if(b.charOrCode===a.keys.ESCAPE)O.style.display="none"}));a.connect(document,"onclick",a.hitch(this,function(a){if((a=a.target||a.originalTarget||a.srcElement)&&a.id!=="keyAssist")O.style.display="none"}));u&&u.getTextView().addEventListener("MouseDown",function(){O.style.display="none"});v&&v.addHandler({isActive:function(){return O.style.display==="block"},
cancel:function(){return this.isActive()?(O.style.display="none",!0):!1}});v=new f.Command({name:b["System Configuration Details"],tooltip:b["System Config Tooltip"],id:"orion.configDetailsPage",hrefCallback:function(){return d.toUrl("help/about.html")}});m.addCommand(v);m.registerCommandContribution("globalActions","orion.configDetailsPage",100,null,!0,new f.CommandKeyBinding(112,!0,!0));v=new f.Command({name:b["Background Operations"],tooltip:b["Background Operations Tooltip"],id:"orion.backgroundOperations",
hrefCallback:function(){return d.toUrl("operations/list.html")}});m.addCommand(v);m.registerCommandContribution("globalActions","orion.backgroundOperations",100,null,!0,new f.CommandKeyBinding("o",!0,!0));v=new f.Command({name:b["Show Keys"],tooltip:b["Show a list of all the keybindings on this page"],id:"eclipse.keyAssist",callback:function(){if(O.style.display==="none"){a.empty(O);if(u){a.place("<h2>"+b.Editor+"</h2>",O,"last");for(var c=u.getTextView().getActions(!1),d=0;d<c.length;d++){var e=
c[d],f=e,g=u.getTextView(),h=g.getActionDescription(e);if(h&&h.name)f=h.name;e=g.getKeyBindings(e);for(g=0;g<e.length;g++)a.place('<span role="listitem">'+i.getUserKeyString(e[g])+" = "+f+"<br></span>",O,"last")}}a.place("<h2>"+b.Global+"</h2>",O,"last");m.showKeyBindings(O);O.style.display="block"}else O.style.display="none";return!0}});m.addCommand(v);m.registerCommandContribution("globalActions","eclipse.keyAssist",100,null,!0,new f.CommandKeyBinding(191,!1,!0));u&&(h=window.navigator.platform.indexOf("Mac")!==
-1,u.getTextView().setKeyBinding(new f.CommandKeyBinding(191,!1,!0,!h,h),v.id),u.getTextView().setAction(v.id,v.callback,v));J.setKeyAssist(v.callback);C(k,m);B(m);s(k);r(k);i.forceLayout(y.parentNode);a.subscribe("/dojo/hashchange",m,function(){m.processURL(window.location.href)});window.setTimeout(function(){A()},0)},notifyAuthenticationSite:A,setPendingAuthentication:function(b){u.setPendingAuthentication(b);for(var d in b)if(b.hasOwnProperty(d)){var e=a.byId("userMenu");if(e.innerHTML)try{c.popup.open({popup:u,
around:e})}catch(f){}else window.setTimeout(function(){try{c.popup.open({popup:u,around:e})}catch(a){}},500);return}c.popup.hide&&c.popup.hide(u);c.popup.close(u)},getAuthenticationIds:function(){return D},setPageTarget:function(b){var c,d,e=b.breadcrumbRootName;b.target?(b.searchService&&b.searchService.setLocationByMetaData(b.target),b.fileService&&!b.breadcrumbTarget&&(d=e?e+" ":"",d+=b.fileService.fileServiceName(b.target.Location),e=null),c=b.name||b.target.Name,H=b.target,z(b.serviceRegistry,
b.target,K,b.commandService,b.makeAlternate)):(b.breadcrumbTarget||(e=e||b.task||b.name),c=b.name);(E=b.title)||(E=c?c+" - "+b.task:b.task);window.document.title=E;a.empty("location");new k.BreadCrumbs({container:"location",resource:b.breadcrumbTarget||b.target,rootSegmentName:e,workspaceRootSegmentName:d,makeHref:b.makeBreadcrumbLink});x=b.target&&b.isFavoriteTarget?b.target:null;C(b.serviceRegistry,b.commandService)},setDirtyIndicator:function(b){if(E)E.charAt(0)==="*"&&!b&&(E=E.substring(1)),b&&
E.charAt(0)!=="*"&&(E="*"+E),window.document.title=E;var c=a.byId("dirty");if(c)c.innerHTML=b?"*":""},setPageCommandExclusions:function(a){K=a},authenticatedService:function(a){u.authenticatedService(a)}}});
define("orion/auth","i18n!orion/nls/messages,dojo,dijit,orion/globalCommands,dojo/date/locale,orion/widgets/LoginDialog".split(","),function(b,d,a,c){var e,f={};d.addOnLoad(function(){window.dojo=d;window.eclipse=window.eclipse||{};eclipse.globalCommandUtils=c});return{handleAuthenticationError:function(d,h){if(d.status===403){typeof e==="undefined"&&(e=new a.Dialog({title:b["Forbidden access"]}));var i=d.message;d.responseText&&(i=JSON.parse(d.responseText).Message||d.message);e.set("content",i);
e.show()}else if(d.status===401)try{var j=JSON.parse(d.responseText);if(!j.SignInKey)return j;var k=localStorage.getItem(j.SignInKey),l=function(){var a=localStorage.getItem(j.SignInKey);k!==a&&(window.removeEventListener("storage",l,!1),delete f[j.SignInKey],c.setPendingAuthentication(f),c.authenticatedService(j.SignInKey),h&&h())};window.addEventListener("storage",l,!1);j.SignInKey&&(f[j.SignInKey]=j,c.setPendingAuthentication(f))}catch(m){}else try{return JSON.parse(d.responseText)}catch(n){return{Message:d.Message,
HttpCode:d.status}}}}});
define("orion/profile/usersClient",["dojo","orion/auth"],function(b,d){function a(a){this.serviceRegistry=a}a.prototype={getUserInfo:function(a,b){return this._doServiceCall("getUserInfo",arguments)},getUsersList:function(a){return this._doServiceCall("getUsersList",arguments)},deleteUser:function(a,b){return this._doServiceCall("deleteUser",arguments)},createUser:function(a,b,d,g){return this._doServiceCall("createUser",arguments)},updateUserInfo:function(a,b,d){return this._doServiceCall("updateUserInfo",arguments)},
resetUserPassword:function(a,b,d){return this._doServiceCall("resetUserPassword",arguments)},initProfile:function(a,b,d){return this._doServiceCall("initProfile",arguments)},fire:function(a,b,d){return this._doServiceCall("fire",arguments)},getDivContent:function(){return this._doServiceCall("getDivContent",arguments)},_doServiceCall:function(a,e){var f=new b.Deferred,g=this.serviceRegistry.getService("orion.core.user");g[a].apply(g,e).then(function(a){f.callback(a)},function(b){b.status===401||b.status===
403?d.handleAuthenticationError(b,function(){g[a].apply(g,e).then(function(a){f.callback(a)},function(a){f.errback(a)})}):f.errback(b)});return f}};a.prototype.constructor=a;return{UsersClient:a}});
define("orion/operationsClient",["i18n!orion/operations/nls/messages","orion/auth","orion/Deferred"],function(b,d,a){function c(b,c,e){var f=new a;b[c].apply(b,e).then(function(a){f.resolve(a)},function(a){a.status===401?d.handleAuthenticationError(a,function(){b[c].apply(b,e).then(function(a){f.resolve(a)},function(a){f.reject(a)})}):f.reject(a)});return f}function e(a){this._location=a}function f(){var c=new a;c.reject(b["No Matching OperationService for location:"]+this._location);return c}function g(a){this._services=
[];this._patterns=[];this._operationListeners=[];this._currentLongpollingIds=[];for(var b=a.getServiceReferences("orion.core.operation"),c=0;c<b.length;c++){var d=a.getService(b[c]);this._services[c]=d;d=b[c].getProperty("pattern")||".*";d[0]!=="^"&&(d="^"+d);this._patterns[c]=RegExp(d)}this._getService=function(a){if(!a)return this._services[0];for(var b=0;b<this._patterns.length;++b)if(this._patterns[b].test(a))return this._services[b];return new e(a)}}function h(a){for(var b={Children:[]},c=0;c<
a.length;c++)b.Children=b.Children.concat(a[c].Children);return b}function i(a,b,d){var e=this,f={Longpolling:!0};if(d)f.LongpollingId=d;c(a,"getOperations",[f]).then(function(c){d&&e._currentLongpollingIds.indexOf(d)<0||(b(c,d),c.LongpollingId?(e._currentLongpollingIds.push(c.LongpollingId),i.bind(e)(a,b,c.LongpollingId)):i.bind(e)(a,b,d))},function(c){d&&e._currentLongpollingIds.indexOf(d)<0||("timeout"===c.dojoType?i.bind(e)(a,b,d):setTimeout(function(){i.bind(e)(a,b,d)},2E3))})}function j(a){for(var b=
0;b<this._operationListeners.length;b++)this._operationListeners[b](a)}e.prototype={getOperation:f,getOperations:f,removeCompletedOperations:f,removeOperation:f,cancelOperation:f};e.prototype.constructor=e;g.prototype={getOperations:function(){for(var b=new a,d=[],e=0;e<this._services.length;e++)d[e]=c(this._services[e],"getOperations",[void 0]);(new a).all(d).then(function(a){b.resolve(h(a))});return b},getRunningOperations:function(){for(var b=new a,d=[],e=0;e<this._services.length;e++)d[e]=c(this._services[e],
"getOperations",[{RunningOnly:!0}]);(new a).all(d).then(function(a){b.resolve(h(a))});return b},getOperation:function(a){return c(this._getService(a),"getOperation",arguments)},removeCompletedOperations:function(){for(var b=[],d=0;d<this._services.length;d++)b[d]=c(this._services[d],"removeCompletedOperations");return(new a).all(b)},removeOperation:function(a){return c(this._getService(a),"removeOperation",arguments)},cancelOperation:function(a){return c(this._getService(a),"cancelOperation",arguments)},
addOperationChangeListener:function(a){this._operationListeners.push(a);if(this._operationListeners.length===1){if(this._services.length<1)throw b["No operations services registered."];for(a=0;a<this._services.length;a++)i.bind(this)(this._services[a],j.bind(this))}},removeOperationChangeListener:function(a){for(var b=0;b<this._operationListeners.length;b++)if(this._operationListeners[b]===a){this._operationListeners.splice(b,1);break}if(this._operationListeners.length===0)this._currentLongpollingIds=
[]},resetChangeListeners:function(){this._currentLongpollingIds=[];if(this._services.length<1)throw b["No operations services registered."];for(var a=0;a<this._services.length;a++)i.bind(this)(this._services[a],j.bind(this))}};g.prototype.constructor=g;return{OperationsClient:g}});
define("orion/fileClient",["i18n!orion/navigate/nls/messages","orion/Deferred","orion/auth"],function(b,d,a){function c(c,e,f){if(!c[e])throw e+b[" is not supportted in this file system"];var j=new d;c[e].apply(c,f).then(function(a){j.resolve(a)},function(b){b.status===401?a.handleAuthenticationError(b,function(){c[e].apply(c,f).then(function(a){j.resolve(a)},function(a){j.reject(a)})}):j.reject(b)});return j}function e(a,f,i,j){if(!a.readBlob)throw b["source file service does not support binary read"];
if(!i.writeBlob)throw b["target file service does not support binary write"];if(f[f.length-1]!=="/")return c(a,"readBlob",[f]).then(function(a){return c(i,"writeBlob",[j,a])});var k=j.substring(0,j.length-1),l=decodeURIComponent(k.substring(k.lastIndexOf("/")+1)),k=k.substring(0,k.lastIndexOf("/")+1);return c(i,"createFolder",[k,l]).then(function(){},function(){}).then(function(){f.indexOf("/")===0&&(f+="?depth=1");return c(a,"fetchChildren",[f]).then(function(b){for(var c=[],f=0;f<b.length;++f){var h=
b[f].Location,k=h;b[f].Directory&&(k=h.substring(0,h.length-1));k=decodeURIComponent(k.substring(k.lastIndexOf("/")+1));k=j+encodeURIComponent(k);b[f].Directory&&(k+="/");c[f]=e(a,h,i,k)}return(new d).all(c)})})}function f(a,c){function e(a){var c=new d;c.reject(b["No Matching FileService for location:"]+a);return c}var f=a.getServiceReferences("orion.core.file"),k=f;if(c)for(var k=[],l=0;l<f.length;++l)c(f[l])&&k.push(f[l]);for(var m=[],n=[],p=[],o=[],r={fetchChildren:function(){var a=new d;a.resolve(o);
return a},createWorkspace:function(){var a=new d;a.reject(b["no file service"]);return a},loadWorkspaces:function(){var a=new d;a.reject(b["no file service"]);return a},loadWorkspace:function(){var a=new d;window.setTimeout(function(){a.resolve({Directory:!0,Length:0,LocalTimeStamp:0,Name:b["File Servers"],Location:"/",Children:o,ChildrenLocation:"/"})},100);return a},search:e,createProject:e,createFolder:e,createFile:e,deleteFile:e,moveFile:e,copyFile:e,read:e,write:e},f=0;f<k.length;++f)o[f]={Directory:!0,
Length:0,LocalTimeStamp:0,Location:k[f].getProperty("top"),ChildrenLocation:k[f].getProperty("top"),Name:k[f].getProperty("Name")},l=k[f].getProperty("pattern")||".*",l[0]!=="^"&&(l="^"+l),m[f]=RegExp(l),n[f]=a.getService(k[f]),p[f]=k[f].getProperty("Name");this._getServiceIndex=function(a){if(a==="/")return-1;else if(!a||a.length&&a.length===0)return n[0]?0:-1;for(var c=0;c<m.length;++c)if(m[c].test(a))return c;throw b["No Matching FileService for location:"]+a;};this._getService=function(a){a=this._getServiceIndex(a);
return a===-1?r:n[a]};this._getServiceName=function(a){a=this._getServiceIndex(a);return a===-1?r.Name:p[a]}}f.prototype={fileServiceName:function(a){return this._getServiceName(a)},fetchChildren:function(a){return c(this._getService(a),"fetchChildren",arguments)},createWorkspace:function(a){return c(this._getService(),"createWorkspace",arguments)},loadWorkspaces:function(){return c(this._getService(),"loadWorkspaces",arguments)},loadWorkspace:function(a){return c(this._getService(a),"loadWorkspace",
arguments)},createProject:function(a,b,d,e){return c(this._getService(a),"createProject",arguments)},createFolder:function(a,b){return c(this._getService(a),"createFolder",arguments)},createFile:function(a,b){return c(this._getService(a),"createFile",arguments)},deleteFile:function(a){return c(this._getService(a),"deleteFile",arguments)},moveFile:function(a,b,d){var f=this._getService(a),k=this._getService(b);if(f===k)return c(f,"moveFile",arguments);var l=a[a.length-1]==="/",m=b;m[m.length-1]!==
"/"&&(m+="/");if(d)m+=encodeURIComponent(d);else{var n=a;l&&(n=n.substring(0,n.length-1));m+=n.substring(n.lastIndexOf("/")+1)}l&&m[m.length-1]!=="/"&&(m+="/");return e(f,a,k,m).then(function(){return c(f,"deleteFile",[a])})},copyFile:function(a,b,d){var f=this._getService(a),k=this._getService(b);if(f===k)return c(f,"copyFile",arguments);var l=a[a.length-1]==="/",m=b;m[m.length-1]!=="/"&&(m+="/");if(d)m+=encodeURIComponent(d);else{var n=a;l&&(n=n.substring(0,n.length-1));m+=n.substring(n.lastIndexOf("/")+
1)}l&&m[m.length-1]!=="/"&&(m+="/");return e(f,a,k,m)},read:function(a,b){return c(this._getService(a),"read",arguments)},write:function(a,b,d){return c(this._getService(a),"write",arguments)},remoteImport:function(a,b){return c(this._getService(a),"remoteImport",arguments)},remoteExport:function(a,b){return c(this._getService(a),"remoteExport",arguments)},search:function(a,b){return c(this._getService(a),"search",arguments)}};f.prototype.constructor=f;return{FileClient:f}});
define("orion/searchClient","i18n!orion/search/nls/messages,require,dojo,dijit,orion/auth,orion/util,orion/searchUtils,dijit/form/Button,dijit/layout/BorderContainer,dijit/layout/ContentPane".split(","),function(b,d,a,c,e,f,g){function h(a){this.registry=a.serviceRegistry;this._commandService=a.commandService;(this._fileService=a.fileService)||console.error("No file service on search client")}h.prototype={search:function(a,b,c){b=g.parseQueryStr(a);try{this._fileService.search(b.location,a).then(function(a){var b=
a.responseHeader.params.q,b=b.substring(b.indexOf("}")+1),b=b.substring(b.indexOf(":")+1);c(function(a){for(var b=[],c=0;c<a.response.docs.length;c++){var d=a.response.docs[c];b.push({name:d.Name,path:d.Location,folderName:g.path2FolderName(d.Path,d.Name),directory:d.Directory,lineNumber:d.LineNumber})}return b}(a),b)},function(a){c(null,null,a)})}catch(d){this.registry.getService("orion.page.message").setErrorMessage(d)}},handleError:function(b,c){console.error(b);var d=document.createTextNode(b);
a.place(d,c,"only");return b},setLocationByMetaData:function(c,d){var e="",f=null;d&&c&&c.Parents&&c.Parents.length>0?f=d.index==="last"?c.Parents[c.Parents.length-1]:c.Parents[0]:c&&c.Directory&&c.Location&&c.Parents&&(f=c);f?(this.setLocationByURL(f.Location),e=f.Name):c&&(e=this._fileService.fileServiceName(c&&c.Location));f=a.byId("search");e||(e="");if(f&&f.placeholder)f.value="",f.placeholder=e.length>23?b["Search "]+e.substring(0,20)+"...":b["Search "]+e;if(f&&f.title)f.title=b["Type a keyword or wild card to search in "]+
e},setLocationByURL:function(a){this.location=a},createSearchQuery:function(a,b,c,d){c||(c="Path");c+=" asc";return b?(a=/\*$/.test(b)?"":"*",g.generateSearchQuery({sort:c,rows:100,start:0,searchStr:"NameLower:"+this._luceneEscape(b,!0)+a})):g.generateSearchQuery({sort:c,rows:40,start:0,searchStr:this._luceneEscape(a,!0),location:d?"":this.location})},_luceneEscape:function(a,b){for(var c="",d='+-&|!(){}[]^"~:\\'+(!b?"*?":""),e=0;e<a.length;e++){var f=a.charAt(e);d.indexOf(f)>=0&&(c+="\\");c+=f}return c},
defaultRenderer:{makeRenderFunction:function(c,e,f,g){return function(h,n,p){if(p)a.place("<div>"+b["Search failed."]+"</div>",c,"only"),typeof f==="function"&&f(c);else{var p=function(){function a(b,c){var d=c.folderName?c.folderName:c.path,e=document.createElement("span");e.id=d.replace(/[^a-zA-Z0-9_\.:\-]/g,"");e.appendChild(document.createTextNode(" - "+d+" "));b.appendChild(e)}var b={};return function(c,d){var e=d.name;if(b.hasOwnProperty(e)){a(c,d);var f=b[e];typeof f==="function"&&(b[e]=null,
f())}else b[e]=function(){a(c,d)}}}(),o=!1;a.empty(c);if(h&&h.length>0){var r=document.createElement("table");r.setAttribute("role","presentation");for(var q=0;q<h.length;q++){var s=h[q],w;if(!o&&(o=!0,e))w=r.insertRow(0).insertCell(0),w.innerHTML=e;w=r.insertRow(-1).insertCell(0);w.colspan=2;g&&g(w);var t=document.createElement("a");a.place(document.createTextNode(s.name),t);s.LineNumber&&a.place(document.createTextNode(" (Line "+s.LineNumber+")"),t);var z=s.location;s.isExternalResource?z=s.path:
(z=s.directory?d.toUrl("navigate/table.html")+"#"+s.path:d.toUrl("edit/edit.html")+"#"+s.path,z==="#"&&(z=""));t.setAttribute("href",z);t.setAttribute("aria-describedby",(s.folderName?s.folderName:s.path).replace(/[^a-zA-Z0-9_\.:\-]/g,""));a.style(t,"verticalAlign","middle");w.appendChild(t);p(w,s)}a.place(r,c,"last");typeof f==="function"&&f(c)}!o&&n&&(h=a.place("<div>"+b["No matches found for "]+"</div>",c,"only"),h=a.create("b",null,h,"last"),a.place(document.createTextNode(n),h,"only"),typeof f===
"function"&&f(c))}}}}};h.prototype.constructor=h;return{Searcher:h}});
define("orion/widgets/settings/SettingsContainer","i18n!orion/settings/nls/messages,require,dojo,dijit,orion/util,orion/commands,orion/globalCommands,orion/PageUtil,dijit/TooltipDialog,dijit/layout/BorderContainer,dijit/layout/ContentPane,orion/widgets/plugin/PluginList,orion/widgets/settings/SplitSelectionLayout,orion/widgets/settings/UserSettings,orion/widgets/settings/InputBuilder".split(","),function(b,d,a,c,e,f,g,h){a.declare("orion.widgets.settings.SettingsContainer",[orion.widgets.settings.SplitSelectionLayout],
{constructor:function(){},postCreate:function(){this.itemToIndexMap={};this.toolbar=a.byId(this.pageActions);this.manageDefaultData(this.initialSettings);this.drawUserInterface(this.initialSettings);this.inputBuilder=new orion.widgets.settings.InputBuilder(this.preferences);a.subscribe("/dojo/hashchange",this,"processHash");g.setPageTarget({task:"Settings"})},processHash:function(){this.showById(h.matchResourceParameters().category||"userSettings");window.setTimeout(a.hitch(this,function(){this.commandService.processURL(window.location.href)}),
0)},displaySettings:function(b){var c=this.itemToIndexMap[b];a.empty(this.table);var b=this.initialSettings[c].category,d=a.create("div",{"class":"sectionWrapper sectionWrapperAux toolComposite"},this.table);a.create("div",{id:b,innerHTML:b,"class":"sectionAnchor"},d);c=this.initialSettings[c].subcategory;for(d=0;d<c.length;d++){var e=a.create("section",{id:c[d].label,role:"region","aria-labelledby":c[d].label.replace(/ /g,"")+"-header"},this.table);a.create("h3",{id:c[d].label.replace(/ /g,"")+"-header",
innerHTML:c[d].ui},e);for(var e=a.create("div",null,e),f=0;f<c[d].items.length;f++){var g=a.create("div",null,e),g=a.create("label",null,g);a.create("span",{innerHTML:c[d].items[f].label+":"},g);this.inputBuilder.processInputType(b,c[d].label,c[d].items[f],g,c[d].ui)}}},addPlugins:function(){this.addCategory({id:"plugins",innerHTML:b.Plugins,"class":"navbar-item",role:"tab",tabindex:-1,"aria-selected":"false",onclick:a.hitch(this,"showPlugins","plugins")},this.initialSettings.length)},addUserSettings:function(){this.addCategory({id:"userSettings",
innerHTML:b["User Profile"],"class":"navbar-item",role:"tab",tabindex:-1,"aria-selected":"false",onclick:a.hitch(this,"showUserSettings","userSettings")},this.initialSettings.length)},showUserSettings:function(c){this.preferences.getPreferences("/settings",2).then(function(a){a.get(b["JavaScript Editor"])});if(this.selectedCategory)a.removeClass(this.selectedCategory,"navbar-item-selected"),a.attr(this.selectedCategory,"aria-selected","false"),this.selectedCategory.tabIndex=-1;if(c)this.selectedCategory=
a.byId(c);a.addClass(this.selectedCategory,"navbar-item-selected");a.attr(this.selectedCategory,"aria-selected","true");a.attr(this.mainNode,"aria-labelledby",c);this.selectedCategory.tabIndex=0;this.selectedCategory.focus();a.empty(this.table);this.userWidget&&this.userWidget.destroyRecursive(!0);this.updateToolbar(c);c=a.create("div",null,this.table);this.userWidget=new orion.widgets.settings.UserSettings({registry:this.registry,settings:this.settingsCore,preferences:this.preferences,statusService:this.preferencesStatusService,
dialogService:this.preferenceDialogService,commandService:this.commandService,userClient:this.userClient},c);this.userWidget.startUp()},initPlugins:function(){a.empty(this.table);this.pluginWidget&&this.pluginWidget.destroyRecursive(!0);var b=a.create("div",null,this.table);this.pluginWidget=new orion.widgets.plugin.PluginList({settings:this.settingsCore,preferences:this.preferences,statusService:this.preferencesStatusService,dialogService:this.preferenceDialogService,commandService:this.commandService},
b);this.pluginWidget.startup()},showPlugins:function(c){this.preferences.getPreferences("/settings",2).then(function(a){a.get(b["JavaScript Editor"])});if(this.selectedCategory)a.removeClass(this.selectedCategory,"navbar-item-selected"),a.attr(this.selectedCategory,"aria-selected","false"),this.selectedCategory.tabIndex=-1;if(c)this.selectedCategory=a.byId(c);a.addClass(this.selectedCategory,"navbar-item-selected");a.attr(this.selectedCategory,"aria-selected","true");a.attr(this.mainNode,"aria-labelledby",
c);this.selectedCategory.tabIndex=0;this.selectedCategory.focus();this.initPlugins(c)},showById:function(a){this.updateToolbar(a);switch(a){case "plugins":this.showPlugins(a);break;case "userSettings":this.showUserSettings(a);break;default:this.selectCategory(a)}},drawUserInterface:function(b){this.inherited(arguments);this.addUserSettings();this.addPlugins();this.processHash();a.style(this.mainNode,"maxWidth","700px");a.style(this.mainNode,"minWidth","500px")},handleError:function(a){console.log(a)},
manageDefaultData:function(a){this.preferences.getPreferences("/settings",2).then(function(b){for(var c=0;c<a.length;c++){var d=a[c].category;if(b.get(d)===void 0){for(var e=[],f=a[c].subcategory,g=0;g<f.length;g++){for(var h=[],r=0;r<f[g].items.length;r++){var q={};q.label=f[g].items[r].label;q.value=f[g].items[r].setting;h.push(q)}e.push({label:f[g].label,data:h})}b.put(d,JSON.stringify(e))}}})},initialSettings:[{category:b.General,subcategory:[{ui:b.Navigation,label:b.Navigation,items:[{ui:b.Links,
label:b.Links,input:"combo",values:[{label:b["Open in same tab"]},{label:b["Open in new tab"]}],setting:b["Open in same tab"]}]}]},{category:b["JavaScript Editor"],subcategory:[{ui:b.Font,label:b.Font,items:[{ui:b.Family,label:b.Family,input:"combo",values:[{label:b["Sans Serif"]},{label:b.Serif}],setting:b.Serif},{ui:b.Size,label:b.Size,input:"combo",values:[{label:b["8pt"]},{label:b["9pt"]},{label:b["10pt"]},{label:"11pt"},{label:b["12pt"]}],setting:b["10pt"]},{ui:b.Color,label:b.Color,input:"color",
setting:"#000000"},{ui:b.Background,label:b.Background,input:"color",setting:"#FFFFFF"}]},{ui:b.Strings,label:b["String Types"],items:[{ui:b.Color,label:b.Color,input:"color",setting:b.blue},{ui:b.Weight,label:b.Weight,input:"combo",values:[{label:b.Normal},{label:b.Bold}],setting:b.Normal}]},{ui:b.Comments,label:b["Comment Types"],items:[{ui:b.Color,label:b.Color,input:"color",setting:b.green},{ui:b.Weight,label:b.Weight,input:"combo",values:[{label:b.Normal},{label:b.Bold}],setting:b.Normal}]},
{ui:b.Keywords,label:b["Keyword Types"],items:[{ui:b.Color,label:b.Color,input:"color",setting:b.darkred},{label:b.Weight,input:"combo",values:[{label:b.Normal},{label:b.Bold}],setting:b.Bold}]}]}]})});
define("settings/settings","i18n!orion/settings/nls/messages,require,dojo,orion/bootstrap,orion/status,orion/commands,orion/profile/usersClient,orion/operationsClient,orion/fileClient,orion/searchClient,orion/dialogs,orion/globalCommands,dojo/parser,dojo/hash,dojo/date/locale,dijit/layout/BorderContainer,dijit/layout/ContentPane,orion/widgets/settings/SettingsContainer,dijit/form/Button,dijit/ColorPalette".split(","),function(b,d,a,c,e,f,g,h,i,j,k,l){a.addOnLoad(function(){c.startup().then(function(c){var d=
c.serviceRegistry,p=c.preferences,o=c.pluginRegistry;document.body.style.visibility="visible";a.parser.parse();var r=new h.OperationsClient(d),r=new e.StatusReportingService(d,r,"statusPane","notifications","notificationArea"),q=new f.CommandService({serviceRegistry:d}),s=new i.FileClient(d),s=new j.Searcher({serviceRegistry:d,commandService:q,fileService:s}),o=new g.UsersClient(d,o),w=new k.DialogService(d);l.generateBanner("banner",d,q,p,s);r.setMessage(b["Loading..."]);(new orion.widgets.settings.SettingsContainer({preferences:p,
registry:d,preferencesStatusService:r,commandService:q,preferenceDialogService:w,settingsCore:c,pageActions:"pageActions",userClient:o},a.byId("selectionAgent"))).startup();r.setMessage("")})})});