/**
 * @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). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @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). 
 *
 * 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) 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). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @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) 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) 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) 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) 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) 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, 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,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) 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: 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) 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) 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
 ******************************************************************************/
/******************************************************************************* 
 * @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, 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: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2004, 2011, The Dojo Foundation and others. All Rights Reserved.
 *	Available via Academic Free License >= 2.1 OR the modified BSD license.
 *	see: http://dojotoolkit.org/license for details
 *
 * Contributors:
 *     Dojo Foundation: _handleOnChange function, and cookie management code
 *     IBM Corporation: Initial API and implementation of the remainder of the script
 *******************************************************************************/
/*******************************************************************************
 * @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) 2009, 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) 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) 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, 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) 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, 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
 ******************************************************************************/
/*

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


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

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


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

 Contributors: IBM Corporation - initial API and implementation

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

 Contributors: IBM Corporation - initial API and implementation

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

 Contributors:
 IBM Corporation - initial API and implementation

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

 Contributors: IBM Corporation - initial API and implementation

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

 Contributors:
 IBM Corporation - initial API and implementation

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

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

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 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, 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: IBM Corporation - initial API and implementation

 Copyright (c) 2004, 2011, The Dojo Foundation and others. All Rights Reserved.
 Available via Academic Free License >= 2.1 OR the modified BSD license.
 see: http://dojotoolkit.org/license for details

 Contributors:
 Dojo Foundation: _handleOnChange function, and cookie management code
 IBM Corporation: Initial API and implementation of the remainder of the script

 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) 2009, 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) 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) 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, 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, 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, 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, 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
 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) 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, 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
*/
(function(){function c(a,c,e,d,j,k){c[a]&&(e.push(a),(c[a]===!0||c[a]===1)&&d.push(j+a+"/"+k))}function d(a,c,e,d,j){c=d+c+"/"+j;require._fileExists(a.toUrl(c))&&e.push(c)}var a=/(^.*(^|\/)nls(\/|$))([^\/]*)\/?([^\/]*)/,e={};define("i18n",{version:"1.0.0",load:function(g,f,h,i){var i=i||{},j=a.exec(g),k=j[1],l=j[4],m=j[5],o=l.split("-"),n=[],p={},r,s,q="";j[5]?(k=j[1],g=k+m):(m=j[4],l=i.locale||(i.locale=typeof navigator==="undefined"?"root":(navigator.language||navigator.userLanguage||"root").toLowerCase()),
o=l.split("-"));if(i.isBuild){n.push(g);d(f,"root",n,k,m);for(r=0;s=o[r];r++)q+=(q?"-":"")+s,d(f,q,n,k,m);f(n,function(){h()})}else f([g],function(a){var d=[];c("root",a,d,n,k,m);for(r=0;s=o[r];r++)q+=(q?"-":"")+s,c(q,a,d,n,k,m);f(n,function(){var c,g;for(c=d.length-1;c>-1&&(s=d[c]);c--){g=a[s];if(g===!0||g===1)g=f(k+s+"/"+m);var j=p,i=void 0;for(i in g)!(i in e)&&!(i in j)&&(j[i]=g[i])}h(p)})})}})})();
define("orion/i18n",[],function(){return{load:function(c,d,a,e){var e=e||{},g=/(^.*(?:^|\/)nls(?:\/|$))([^\/]*)\/?([^\/]*)/,f=g.exec(c);if(f)if(d.defined(c))a(d(c));else if(e.isBuild||e.isTest)a({});else{var h=f[1],i=f[3]?f[2]:"",j=f[3]||f[2];d(["orion/bootstrap"],function(k){k.startup().then(function(k){var m=k.serviceRegistry,k=m.getServiceReferences("orion.i18n.message");if(i)k.some(function(e){return c===e.getProperty("name")?(m.getService(e).getMessageBundle().then(function(c){a(c)},function(){a({})}),
!0):!1})||a({});else{var o={},n;k.forEach(function(a){var c=a.getProperty("name");if((f=g.exec(c))&&h===f[1]&&j===(f[3]||f[2]))if(i=f[3]?f[2]:""){if((a=e.locale||(typeof navigator!=="undefined"?navigator.language||navigator.userLanguage:null))&&a.indexOf(i)===0)o[i]=!0,d.specified(c)||define(c,["orion/i18n!"+c],function(a){return a})}else n=a});d.specified(c)?a(o):n?m.getService(n).getMessageBundle().then(function(e){Object.keys(o).forEach(function(a){typeof e[a]==="undefined"&&(e[a]=o[a])});define(c,
[],e);a(e)},function(){define(c,[],o);a(o)}):(define(c,[],o),a(o))}})})}else a(null)}}});define("git/nls/gitmessages",["orion/i18n!git/nls/gitmessages"],function(c){var d={root:!0};Object.keys(c).forEach(function(a){typeof d[a]==="undefined"&&(d[a]=c[a])});return d});
define("git/nls/root/gitmessages",{Compare:"Compare","View the side-by-side compare":"View the side-by-side compare","Working Directory Version":"Working Directory Version","View the working directory version of the file":"View the working directory version of the file","Loading...":"Loading...",Repositories:"Repositories","0 on 1 - Git":"${0} on ${1} - Git",Git:"Git","Show in eclipse.org":"Show in eclipse.org","Show this repository at eclipse.org":"Show this repository at eclipse.org","Show in GitHub":"Show in GitHub",
"Show this repository at GitHub":"Show this repository at GitHub","Commit Details":"Commit Details","No Commits":"No Commits","commit: 0":"commit: ${0}","parent: 0":"parent: ${0}","authored by 0 (1) on 2":"authored by ${0} (${1}) on ${2}","committed by 0 (1)":"committed by ${0} (${1})","Tags:":"Tags:","No Tags":"No Tags",Diffs:"Changes",More:"More","Loading git log...":"Loading git log...",local:"local",remote:"remote","Git Log for ${0} branch ${1} on ":"Git Log for ${0} branch ${1} on ","Git Log for ${0} branch ${1}":"Git Log for ${0} branch ${1}",
"Log for branch ${0} - Git":"Log for branch ${0} - Git","Log for ${0} on ${1} - Git":"Log for ${0} on ${1} - Git","View All":"View All","Error ${0}: ":"Error ${0}: ","Loading ":"Loading ",Message:"Message",Author:"Author",Date:"Date",Actions:"Actions",Branches:"Branches",Tags:"Tags",Stage:"Stage","Unstaged removal":"Unstaged removal",Unstage:"Unstage","Staged removal":"Staged removal","Unstaged change":"Unstaged change","Staged change":"Staged change","Unstaged add":"Unstaged add","Staged add":"Staged add",
"Resolve Conflict":"Resolve Conflict",Conflicting:"Conflicting","Commit message":"Commit message","Record changes in the active branch":"Record changes in the active branch",Commit:"Commit","Amend last commit":"Amend last commit"," Amend":" Amend","Rebase in progress. Choose action:":"Rebase in progress. Choose action:","Committer name:":"Committer name:","email:":"email:","Author name: ":"Author name: ","Select a file on the left to compare...":"Select a file on the left to compare...",Unstaged:"Unstaged",
Staged:"Staged","Recent commits on":"Recent commits on","Git Status":"Git Status","Go to Git Status":"Go to Git Status","Recent commits on ${0}":"Recent commits on ${0}","Status for ${0} - Git":"Status for ${0} - Git","Status (${0})":"Status (${0})","Getting git incoming changes...":"Getting git incoming changes...","Loading recent commits...":"Loading recent commits...","Show the side-by-side compare":"Show the side-by-side compare","Change Committer or Author":"Change Committer or Author","Use Default Committer and Author":"Use Default Committer and Author",
Checkout:"Checkout","Checkout the file, discarding the unstaged change":"Checkout the file, discarding the unstaged change","Your changes to the file will be lost. Are you sure you want to checkout?":"Your changes to the file will be lost. Are you sure you want to checkout?","Checking out...":"Checking out...","Stage the change":"Stage the change","Stage the selected changes":"Stage the selected changes","Staging...":"Staging...","Checkout all the selected files, discarding all changes":"Checkout all the selected files, discarding all changes",
"Your changes to all the selected files will be lost. Are you sure you want to checkout?":"Your changes to all the selected files will be lost. Are you sure you want to checkout?","Save Patch":"Save Patch","Save workspace changes as a patch":"Save workspace changes as a patch","Unstage the change":"Unstage the change","Unstaging...":"Unstaging...",Reset:"Reset","Reset the branch, discarding all staged and unstaged changes":"Reset the branch, discarding all staged and unstaged changes","All unstaged and staged changes in the working directory and index will be discarded and cannot be recovered.":"All unstaged and staged changes in the working directory and index will be discarded and cannot be recovered.",
"Are you sure you want to continue?":"Are you sure you want to continue?","Resetting local changes...":"Resetting local changes...","Continue rebase...":"Continue rebase...","Skipping patch...":"Skipping patch...","Aborting rebase...":"Aborting rebase...","Complete log":"Complete log","local VS index":"local VS index","index VS HEAD":"index VS HEAD","Compare(${0} : ${1})":"Compare(${0} : ${1})","Loading status...":"Loading status...","Committing...":"Committing...","The committer name is required.":"The committer name is required.",
"The committer mail is required.":"The committer mail is required.","The author name is required.":"The author name is required.","The author mail is required.":"The author mail is required.",". Repository still contains conflicts.":". Repository still contains conflicts.",". Repository contains unmerged paths. Resolve conflicts first.":". Repository contains unmerged paths. Resolve conflicts first.","Rendering ${0}":"Rendering ${0}",Configuration:"Configuration"," - Git":" - Git","Repositories - Git":"Repositories - Git",
Repository:"Repository","Repository Not Found":"Repository Not Found","No Repositories":"No Repositories","Loading repository":"Loading repository","Loading repositories":"Loading repositories","(no remote)":"(no remote)","location: ":"location: ","${0} file(s) to stage and ${1} file(s) to commit.":"${0} file(s) to stage and ${1} file(s) to commit.","Nothing to commit.":"Nothing to commit.","Nothing to push.":"Nothing to push."," commit(s) to push.":" commit(s) to push.","You have no changes to commit.":"You have no changes to commit.",
"You have changes to commit in your workspace!":"You have changes to commit in your workspace!","View all local and remote tracking branches":"View all local and remote tracking branches","tracks no branch, ":"tracks no branch, ","tracks ${0}, ":"tracks ${0}, ","last modified ${0} by ${1}":"last modified ${0} by ${1}","No Remote Branches":"No Remote Branches","Rendering branches":"Rendering branches",Commits:"Commits","Getting current branch":"Getting current branch","See Full Log":"See Full Log",
'Getting commits for "${0}" branch':'Getting commits for "${0}" branch',"Rendering commits":"Rendering commits","Getting outgoing commits":"Getting outgoing commits","The branch is up to date.":"The branch is up to date.","You have no outgoing or incoming commits.":"You have no outgoing or incoming commits.",") by ":") by "," (SHA ":" (SHA ","Getting tags":"Getting tags","View all tags":"View all tags"," on ":" on "," by ":" by ",Remotes:"Remotes","Rendering remotes":"Rendering remotes","No Remotes":"No Remotes",
"Getting confituration":"Getting confituration","View all configuration entries":"View all configuration entries","Unstaged addition":"Unstaged addition","Staged addition":"Staged addition"," (Rebase in Progress)":" (Rebase in Progress)",Status:"Status","Status for ${0} - Git ":"Status for ${0} - Git ","No Unstaged Changes":"No Unstaged Changes","No Staged Changes":"No Staged Changes",'Commits for "${0}" branch':'Commits for "${0}" branch',"Add Remote":"Add Remote","Remote Name:":"Remote Name:","Remote URI:":"Remote URI:",
"Apply Patch":"Apply Patch","Git Repository":"Git Repository","Go to the git repository":"Go to the git repository","Clone Git Repository":"Clone Git Repository","Repository URL:":"Repository URL:","Existing directory:":"Existing directory:","New folder:":"New folder:","Choose a Folder":"Choose a Folder","Commit Changes":"Commit Changes","Message:":"Message:","Amend:":"Amend:","Committer Name:":"Committer Name:","Committer Email:":"Committer Email:","Author Name:":"Author Name:","Author Email:":"Author Email:",
"The commit message is required.":"The commit message is required.","Git Credentials":"Git Credentials","Username:":"Username:","Ssh password:":"Ssh password:","Private key:":"Private key:","Passphrase (optional):":"Passphrase (optional):"," commit: ":" commit: ","parent: ":"parent: "," authored by ${0} {${1}) on ${2}":" authored by ${0} {${1}) on ${2}",Content:"Content","Go to ${0} section":"Go to ${0} section","Find Commit":"Find Commit","Type the commit name (sha1):":"Type the commit name (sha1):",
Search:"Search","Searching&#x2026;":"Searching&#x2026;","Looking for the commit":"Looking for the commit"," authored by ${0} (${1})) on ${2}":" authored by ${0} (${1})) on ${2}","New Branch:":"New Branch:",OK:"OK"," [New branch]":" [New branch]","Would you like to add ${0} key for host ${1} to continue operation? Key fingerpt is ${2}.":"Would you like to add ${0} key for host ${1} to continue operation? Key fingerpt is ${2}.","Link Repository":"Link Repository","Folder name:":"Folder name:","Repository was linked to ":"Repository was linked to ",
"Checkout the current tag, creating a local branch based on its contents.":"Checkout the current tag, creating a local branch based on its contents.","Checking out tag ${0}":"Checking out tag ${0}","Checkout the branch or corresponding local branch and make it active. If the remote tracking branch does not have a corresponding local branch, the local branch will be created first.":"Checkout the branch or corresponding local branch and make it active. If the remote tracking branch does not have a corresponding local branch, the local branch will be created first.",
"Checking out branch...":"Checking out branch...","Checking out branch ${0}...":"Checking out branch ${0}...","Branch checked out.":"Branch checked out.","New Branch":"New Branch","Add a new local branch to the repository":"Add a new local branch to the repository","Branch name":"Branch name",Delete:"Delete","Delete the local branch from the repository":"Delete the local branch from the repository","Are you sure you want to delete branch ${0}?":"Are you sure you want to delete branch ${0}?","Delete the remote tracking branch from the repository":"Delete the remote tracking branch from the repository",
"Are you sure?":"Are you sure?","You're going to delete remote branch ${0} and push the change.":"You're going to delete remote branch ${0} and push the change.","Removing remote branch: ":"Removing remote branch: ","Delete Remote Branch":"Delete Remote Branch","New Remote":"New Remote","Git Remote":"Git Remote","Go to Git Remote":"Go to Git Remote","Add a new remote to the repository":"Add a new remote to the repository","Delete the remote from the repository":"Delete the remote from the repository",
"Are you sure you want to delete remote ${0}?":"Are you sure you want to delete remote ${0}?",Pull:"Pull","Pull from the repository":"Pull from the repository","Pulling : ":"Pulling : ","Pull Git Repository":"Pull Git Repository","Git Log":"Git Log","Go to Git Log":"Go to Git Log","Open the log for the branch":"Open the log for the branch","Open the log for the repository":"Open the log for the repository","Open the status for the repository":"Open the status for the repository","Show in Navigator":"Show in Navigator",
"Show the repository folder in the file navigator":"Show the repository folder in the file navigator","Compare With Each Other":"Compare With Each Other","Compare With Working Tree":"Compare With Working Tree",Open:"Open",Fetch:"Fetch","Fetch from the remote":"Fetch from the remote","SSH Password:":"SSH Password:","SSH User Name:":"SSH User Name:","Fetching remote: ":"Fetching remote: ","Force Fetch":"Force Fetch","Fetch from the remote branch into your remote tracking branch overriding its current content":"Fetch from the remote branch into your remote tracking branch overriding its current content",
"You're going to override content of the remote tracking branch. This can cause the branch to lose commits.":"You're going to override content of the remote tracking branch. This can cause the branch to lose commits.",Merge:"Merge","Merge the content from the branch to your active branch":"Merge the content from the branch to your active branch",". Go to ${0}.":". Go to ${0}.","Git Status page":"Git Status page",Rebase:"Rebase","Rebase your commits by removing them from the active branch, starting the active branch again based on the latest state of the selected branch ":"Rebase your commits by removing them from the active branch, starting the active branch again based on the latest state of the selected branch ",
"Rebase on top of ":"Rebase on top of ",". Some conflicts occurred. Please resolve them and continue, skip patch or abort rebasing":". Some conflicts occurred. Please resolve them and continue, skip patch or abort rebasing",". Repository state is invalid (i.e. already during rebasing)":". Repository state is invalid (i.e. already during rebasing)",". Repository contains unmerged paths":". Repository contains unmerged paths",". Repository contains pending changes. Please commit or stash them":". Repository contains pending changes. Please commit or stash them",
"Rebase your commits by removing them from the active branch, ":"Rebase your commits by removing them from the active branch, ","starting the active branch again based on the latest state of '":"starting the active branch again based on the latest state of '","and applying each commit again to the updated active branch.":"and applying each commit again to the updated active branch.","Push All":"Push All","Push commits and tags from your local branch into the remote branch":"Push commits and tags from your local branch into the remote branch",
"Pushing remote: ":"Pushing remote: ","Choose Branch":"Choose Branch","Force Push All":"Force Push All","Push commits and tags from your local branch into the remote branch overriding its current content":"Push commits and tags from your local branch into the remote branch overriding its current content","You're going to override content of the remote branch. This can cause the remote repository to lose commits.":"You're going to override content of the remote branch. This can cause the remote repository to lose commits.",
"< Previous Page":"< Previous Page","Show previous page of git log":"Show previous page of git log","Next Page >":"Next Page >","Show next page of git log":"Show next page of git log","Push to...":"Push to...","Push from your local branch into the selected remote branch":"Push from your local branch into the selected remote branch","Reset your active branch to the state of the selected branch. Discard all staged and unstaged changes.":"Reset your active branch to the state of the selected branch. Discard all staged and unstaged changes.",
"The content of your active branch will be replaced with ":"The content of your active branch will be replaced with ","All unstaged and staged changes will be discarded and cannot be recovered. Are you sure?":"All unstaged and staged changes will be discarded and cannot be recovered. Are you sure?","Resetting index...":"Resetting index...","Name:":"Name:",Tag:"Tag","Create a tag for the commit":"Create a tag for the commit","Tag name":"Tag name","Delete the tag from the repository":"Delete the tag from the repository",
"Are you sure you want to delete tag ${0}?":"Are you sure you want to delete tag ${0}?","Cherry-Pick":"Cherry-Pick","Apply the change introduced by the commit to your active branch":"Apply the change introduced by the commit to your active branch","Nothing changed.":"Nothing changed.",". Some conflicts occurred":". Some conflicts occurred","Fetch from the remote branch into your remote tracking branch":"Fetch from the remote branch into your remote tracking branch","Fetch Git Repository":"Fetch Git Repository",
Push:"Push","Push from your local branch into the remote branch":"Push from your local branch into the remote branch","Push Git Repository":"Push Git Repository","Key:":"Key:","Value:":"Value:","New Configuration Entry":"New Configuration Entry",Edit:"Edit","Edit the configuration entry":"Edit the configuration entry","Delete the configuration entry":"Delete the configuration entry","Are you sure you want to delete ${0}?":"Are you sure you want to delete ${0}?","Clone Repository":"Clone Repository",
"Clone an existing Git repository to a folder":"Clone an existing Git repository to a folder","Cloning repository: ":"Cloning repository: ","Init Repository":"Init Repository","Create a new Git repository in a new folder":"Create a new Git repository in a new folder","Initializing repository: ":"Initializing repository: ","Init Git Repository":"Init Git Repository","Delete the repository":"Delete the repository","Are you sure you want do delete ${0} repositories?":"Are you sure you want do delete ${0} repositories?",
"Apply a patch on the selected repository":"Apply a patch on the selected repository","Show content":"Show content","Commit name:":"Commit name:","Open Commit":"Open Commit","Open the commit with the given name":"Open the commit with the given name","No commits found":"No commits found","Staging changes":"Staging changes","Commit message:":"Commit message:","Committing changes":"Committing changes","Resetting local changes":"Resetting local changes","Checkout files, discarding all changes":"Checkout files, discarding all changes",
"Show Patch":"Show Patch","Show workspace changes as a patch":"Show workspace changes as a patch",Continue:"Continue","Contibue Rebase":"Contibue Rebase","Skip Patch":"Skip Patch",Abort:"Abort","Abort Rebase":"Abort Rebase","Your changes to the selected files will be discarded and cannot be recovered.":"Your changes to the selected files will be discarded and cannot be recovered.","Active Branch Log":"Git Log (Active Branch)","Show the log for the active local branch":"Show the log for the active local branch",
"Remote Branch Log":"Git Log (Remote Branch)","Show the log for the corresponding remote tracking branch":"Show the log for the corresponding remote tracking branch"});
(function(){function c(a,c,d){(function(){if(typeof this.loadFirebugConsole=="function")this.loadFirebugConsole();else{this.console=this.console||{};for(var f="assert,count,debug,dir,dirxml,error,group,groupEnd,info,profile,profileEnd,time,timeEnd,trace,warn,log".split(","),h=0,i;i=f[h++];)console[i]||function(){var a=i+"";console[a]="log"in console?function(){var c=Array.apply({},arguments);c.unshift(a+":");console.log(c.join(" "))}:function(){};console[a]._fake=!0}()}typeof a=="undefined"&&(a={_scopeName:"dojo",
_scopePrefix:"",_scopePrefixArgs:"",_scopeSuffix:"",_scopeMap:{},_scopeMapRev:{}});var j=a;typeof c=="undefined"&&(c={_scopeName:"dijit"});typeof d=="undefined"&&(d={_scopeName:"dojox"});if(!j._scopeArgs)j._scopeArgs=[a,c,d];j.global=this;j.config={isDebug:!1,debugAtAllCosts:!1};if(f=typeof djConfig!="undefined"?djConfig:typeof dojoConfig!="undefined"?dojoConfig:null)for(var k in f)j.config[k]=f[k];a.locale=j.config.locale;k="$Rev: 24595 $".match(/\d+/);a.version={major:1,minor:6,patch:1,flag:"",
revision:k?+k[0]:NaN,toString:function(){with(j.version)return major+"."+minor+"."+patch+flag+" ("+revision+")"}};typeof OpenAjax!="undefined"&&OpenAjax.hub.registerLibrary(a._scopeName,"http://dojotoolkit.org",j.version.toString());var l,m,o={};for(h in{toString:1}){l=[];break}a._extraNames=l=l||"hasOwnProperty,valueOf,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,constructor".split(",");m=l.length;a._mixin=function(a,c){var e,d,f;for(e in c)if(d=c[e],!(e in a)||a[e]!==d&&(!(e in o)||
o[e]!==d))a[e]=d;if(m&&c)for(f=0;f<m;++f)if(e=l[f],d=c[e],!(e in a)||a[e]!==d&&(!(e in o)||o[e]!==d))a[e]=d;return a};a.mixin=function(a,c){a||(a={});for(var e=1,d=arguments.length;e<d;e++)j._mixin(a,arguments[e]);return a};a._getProp=function(a,c,e){for(var e=e||j.global,d=0,f;e&&(f=a[d]);d++)d==0&&j._scopeMap[f]&&(f=j._scopeMap[f]),e=f in e?e[f]:c?e[f]={}:void 0;return e};a.setObject=function(a,c,e){var d=a.split("."),a=d.pop();return(e=j._getProp(d,!0,e))&&a?e[a]=c:void 0};a.getObject=function(a,
c,e){return j._getProp(a.split("."),c,e)};a.exists=function(a,c){return j.getObject(a,!1,c)!==void 0};a.eval=function(a){return j.global.eval?j.global.eval(a):eval(a)};j.deprecated=j.experimental=function(){}})();return{dojo:a,dijit:c,dojox:d}}if(this.define)define("dojo/_base/_loader/bootstrap",[],function(){var a=c();a.dojo._dijit=a.dijit;a.dojo._dojox=a.dojox;return a.dojo});else{var d=c();dojo=d.dojo;dijit=d.dijit;dojox=d.dojox}})();
define("domReady",[],function(){function c(a){for(var c=0,e;e=a[c];c++)e(h)}function d(){var a=i,e=j;f&&(a.length&&(i=[],c(a)),k.resourcesDone&&e.length&&(j=[],c(e)))}function a(){f||(f=!0,m&&clearInterval(m),d())}function e(a){f?a(h):i.push(a);return e}var g=typeof window!=="undefined"&&window.document,f=!g,h=g?document:null,i=[],j=[],k=requirejs||require||{},l=k.resourcesReady,m;if("resourcesReady"in k)k.resourcesReady=function(a){l&&l(a);a&&d()};g&&(document.addEventListener?(document.addEventListener("DOMContentLoaded",
a,!1),window.addEventListener("load",a,!1)):window.attachEvent&&(window.attachEvent("onload",a),self===self.top&&(m=setInterval(function(){try{document.body&&(document.documentElement.doScroll("left"),a())}catch(c){}},30))),document.readyState==="complete"&&a());e.withResources=function(a){f&&k.resourcesDone?a(h):j.push(a);return e};e.version="1.0.0";e.load=function(a,c,d,f){f.isBuild?d(null):e(d)};return e});
define("dojo/lib/backCompat",["require","dojo/_base/_loader/bootstrap","domReady"],function(c,d,a){var e="_moduleHasPrefix,_loadPath,_loadUri,_loadUriAndCheck,loaded,_callLoaded,_getModuleSymbols,_loadModule,require,provide,platformRequire,requireIf,requireAfterIf,registerModulePath".split(","),g,f;for(g=0;g<e.length;)f=e[g++],d[f]=function(a){return function(){console.warn("dojo."+a+" not available when using an AMD loader.")}}(f);var h=function(a){var c=[],e;for(e=0;e<a.length;)c.push(a[e++]);return c},
i=function(a,c){return c?typeof c=="string"?function(){a[c]()}:function(){c.call(a)}:a};d.ready=d.addOnLoad=function(c,e){a(e?i(c,e):c)};d.addOnLoad(function(){d.postLoad=d.config.afterOnLoad=!0});if(e=d.config.addOnLoad)d.addOnLoad[e instanceof Array?"apply":"call"](d,e);var j=d._loaders=[],k=function(){var a=j.slice(0);for(Array.prototype.splice.apply(j,[0,j.length]);a.length;)a.shift().call()};j.unshift=function(){Array.prototype.unshift.apply(j,h(arguments));a(k)};j.splice=function(){Array.prototype.splice.apply(j,
h(arguments));a(k)};var l=d._unloaders=[];d.unloaded=function(){for(;l.length;)l.pop().call()};d._onto=function(a,c,e){a.push(e?i(c,e):c)};d._modulesLoaded=function(){};d.loadInit=function(a){a()};d.getL10nName=function(a,c,e){e=e?e.toLowerCase():d.locale;a="i18n!"+a.replace(/\./g,"/");return/root/i.test(e)?a+"/nls/"+c:a+"/nls/"+e+"/"+c};d.requireLocalization=function(a,e,f){c.vendor!="altoviso.com"&&(f=!f||f.toLowerCase()===d.locale?"root":f);return c(d.getL10nName(a,e,f))};d.i18n={getLocalization:d.requireLocalization,
normalizeLocale:function(a){a=a?a.toLowerCase():d.locale;a=="root"&&(a="ROOT");return a}};var m=/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/,o=/^((([^\[:]+):)?([^@]+)@)?(\[([^\]]+)\]|([^\[:]*))(:([0-9]+))?$/;d._Url=function(){for(var a=arguments,c=[a[0]],e=1;e<a.length;e++)if(a[e]){var f=new d._Url(a[e]+""),c=new d._Url(c[0]+"");if(f.path==""&&!f.scheme&&!f.authority&&!f.query){if(f.fragment!=null)c.fragment=f.fragment;f=c}else if(!f.scheme&&(f.scheme=c.scheme,!f.authority&&(f.authority=
c.authority,f.path.charAt(0)!="/"))){for(var c=(c.path.substring(0,c.path.lastIndexOf("/")+1)+f.path).split("/"),g=0;g<c.length;g++)c[g]=="."?g==c.length-1?c[g]="":(c.splice(g,1),g--):g>0&&!(g==1&&c[0]=="")&&c[g]==".."&&c[g-1]!=".."&&(g==c.length-1?(c.splice(g,1),c[g-1]=""):(c.splice(g-1,2),g-=2));f.path=c.join("/")}c=[];f.scheme&&c.push(f.scheme,":");f.authority&&c.push("//",f.authority);c.push(f.path);f.query&&c.push("?",f.query);f.fragment&&c.push("#",f.fragment)}this.uri=c.join("");a=this.uri.match(m);
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(o),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,e){if(!a)return null;var a=a.replace(/\./g,"/")+(e?"/"+e:""),f="",g=a.match(/(.+)(\.[^\/]*)$/);g&&(a=g[1],f=g[2]);return new d._Url(c.nameToUrl(a,
f))};return d});
define("dojo/_base/_loader/hostenv_browser",["dojo/lib/backCompat"],function(c){if(typeof window!="undefined"){c.isBrowser=!0;c._name="browser";(function(){var a=c;if(document&&document.getElementsByTagName)for(var e=document.getElementsByTagName("script"),d=/dojo(\.xd)?\.js(\W|$)/i,f=0;f<e.length;f++){var h=e[f].getAttribute("src");if(h){var i=h.match(d);if(i){if(!a.config.baseUrl)a.config.baseUrl=h.substring(0,i.index);if(e=e[f].getAttribute("djConfig")||e[f].getAttribute("data-dojo-config")){var e=eval("({ "+
e+" })"),j;for(j in e)c.config[j]=e[j]}break}}}a.baseUrl=a.config.baseUrl;j=navigator;e=j.userAgent;d=j.appVersion;f=parseFloat(d);if(e.indexOf("Opera")>=0)a.isOpera=f;if(e.indexOf("AdobeAIR")>=0)a.isAIR=1;a.isKhtml=d.indexOf("Konqueror")>=0?f:0;a.isWebKit=parseFloat(e.split("WebKit/")[1])||void 0;a.isChrome=parseFloat(e.split("Chrome/")[1])||void 0;a.isMac=d.indexOf("Macintosh")>=0;if((h=Math.max(d.indexOf("WebKit"),d.indexOf("Safari"),0))&&!c.isChrome)if(a.isSafari=parseFloat(d.split("Version/")[1]),
!a.isSafari||parseFloat(d.substr(h+7))<=419.3)a.isSafari=2;if(e.indexOf("Gecko")>=0&&!a.isKhtml&&!a.isWebKit)a.isMozilla=a.isMoz=f;if(a.isMoz)a.isFF=parseFloat(e.split("Firefox/")[1]||e.split("Minefield/")[1])||void 0;if(document.all&&!a.isOpera&&(a.isIE=parseFloat(d.split("MSIE ")[1])||void 0,(e=document.documentMode)&&e!=5&&Math.floor(a.isIE)!=e))a.isIE=e;if(c.isIE&&window.location.protocol==="file:")c.config.ieForceActiveXXhr=!0;a.isQuirks=document.compatMode=="BackCompat";a.locale=c.config.locale||
(a.isIE?j.userLanguage:j.language).toLowerCase();a._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];a._xhrObj=function(){var e,d;if(!c.isIE||!c.config.ieForceActiveXXhr)try{e=new XMLHttpRequest}catch(f){}if(!e)for(var g=0;g<3;++g){var h=a._XMLHTTP_PROGIDS[g];try{e=new ActiveXObject(h)}catch(j){d=j}if(e){a._XMLHTTP_PROGIDS=[h];break}}if(!e)throw Error("XMLHTTP not available: "+d);return e};a._isDocumentOk=function(a){var a=a.status||0,c=location.protocol;return a>=200&&
a<300||a==304||a==1223||!a&&(c=="file:"||c=="chrome:"||c=="chrome-extension:"||c=="app:")};var k=window.location+"",l=(j=document.getElementsByTagName("base"))&&j.length>0;a._getText=function(e,d){var f=a._xhrObj();!l&&c._Url&&(e=(new c._Url(k,e)).toString());a.config.cacheBust&&(e+="",e+=(e.indexOf("?")==-1?"?":"&")+String(a.config.cacheBust).replace(/\W+/g,""));f.open("GET",e,!1);try{if(f.send(null),!a._isDocumentOk(f)){var g=Error("Unable to load "+e+" status:"+f.status);g.status=f.status;g.responseText=
f.responseText;throw g;}}catch(h){if(d)return null;throw h;}return f.responseText};var m=window,o=function(a,c){var e=m.attachEvent||m.addEventListener,a=m.attachEvent?a:a.substring(2);e(a,function(){c.apply(m,arguments)},!1)};a._windowUnloaders=[];a.windowUnloaded=function(){for(var c=a._windowUnloaders;c.length;)c.pop()();a=null};var n=0;a.addOnWindowUnload=function(c,e){a._onto(a._windowUnloaders,c,e);n||(n=1,o("onunload",a.windowUnloaded))};var p=0;a.addOnUnload=function(e,d){a._onto(a._unloaders,
e,d);p||(p=1,o("onbeforeunload",c.unloaded))}})();c._initFired=!1;c._loadInit=function(){if(c._scrollIntervalId)clearInterval(c._scrollIntervalId),c._scrollIntervalId=0;if(!c._initFired)c._initFired=!0,!c.config.afterOnLoad&&window.detachEvent&&window.detachEvent("onload",c._loadInit),c._inFlightCount==0&&c._modulesLoaded()};if(!c.config.afterOnLoad)if(document.addEventListener)document.addEventListener("DOMContentLoaded",c._loadInit,!1),window.addEventListener("load",c._loadInit,!1);else if(window.attachEvent&&
(window.attachEvent("onload",c._loadInit),!c.config.skipIeDomLoaded&&self===self.top))c._scrollIntervalId=setInterval(function(){try{document.body&&(document.documentElement.doScroll("left"),c._loadInit())}catch(a){}},30);if(c.isIE)try{(function(){document.namespaces.add("v","urn:schemas-microsoft-com:vml");var a="*,group,roundrect,oval,shape,rect,imagedata,path,textpath,text".split(","),e=0,d=1,f=document.createStyleSheet();if(c.isIE>=8)e=1,d=a.length;for(;e<d;++e)f.addRule("v\\:"+a[e],"behavior:url(#default#VML); display:inline-block")})()}catch(d){}}(function(){var a=
c.config.modulePaths;if(a)for(var e in a)c.registerModulePath(e,a[e])})();c.config.isDebug&&c.require("dojo._firebug.firebug");c.config.debugAtAllCosts&&(c.require("dojo._base._loader.loader_debug"),c.require("dojo.i18n"));return c});define("dojo/lib/kernel",["dojo/_base/_loader/hostenv_browser"],function(c){return dojo=c});
define("dojo/_base/lang",["dojo/lib/kernel"],function(c){(function(){var d=Object.prototype.toString;c.isString=function(a){return typeof a=="string"||a instanceof String};c.isArray=function(a){return a&&(a instanceof Array||typeof a=="array")};c.isFunction=function(a){return d.call(a)==="[object Function]"};c.isObject=function(a){return a!==void 0&&(a===null||typeof a=="object"||c.isArray(a)||c.isFunction(a))};c.isArrayLike=function(a){return a&&a!==void 0&&!c.isString(a)&&!c.isFunction(a)&&!(a.tagName&&
a.tagName.toLowerCase()=="form")&&(c.isArray(a)||isFinite(a.length))};c.isAlien=function(a){return a&&!c.isFunction(a)&&/\{\s*\[native code\]\s*\}/.test(String(a))};c.extend=function(a,e){for(var d=1,f=arguments.length;d<f;d++)c._mixin(a.prototype,arguments[d]);return a};c._hitchArgs=function(a,e){var d=c._toArray(arguments,2),f=c.isString(e);return function(){var g=c._toArray(arguments),h=f?(a||c.global)[e]:e;return h&&h.apply(a||this,d.concat(g))}};c.hitch=function(a,e){if(arguments.length>2)return c._hitchArgs.apply(c,
arguments);e||(e=a,a=null);if(c.isString(e)){a=a||c.global;if(!a[e])throw['dojo.hitch: scope["',e,'"] is null (scope="',a,'")'].join("");return function(){return a[e].apply(a,arguments||[])}}return!a?e:function(){return e.apply(a,arguments||[])}};c.delegate=c._delegate=function(){function a(){}return function(e,d){a.prototype=e;var f=new a;a.prototype=null;d&&c._mixin(f,d);return f}}();var a=function(a,c,e){return(e||[]).concat(Array.prototype.slice.call(a,c||0))},e=function(a,c,e){e=e||[];for(c=
c||0;c<a.length;c++)e.push(a[c]);return e};c._toArray=c.isIE?function(c){return(c.item?e:a).apply(this,arguments)}:a;c.partial=function(a){return c.hitch.apply(c,[null].concat(c._toArray(arguments)))};var g=c._extraNames,f=g.length,h={};c.clone=function(a){if(!a||typeof a!="object"||c.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 e,d,i,o;if(c.isArray(a)){e=[];for(d=0,i=a.length;d<
i;++d)d in a&&e.push(c.clone(a[d]))}else e=a.constructor?new a.constructor:{};for(o in a)if(i=a[o],!(o in e)||e[o]!==i&&(!(o in h)||h[o]!==i))e[o]=c.clone(i);if(f)for(d=0;d<f;++d)if(o=g[d],i=a[o],!(o in e)||e[o]!==i&&(!(o in h)||h[o]!==i))e[o]=i;return e};c.trim=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};var i=/\{([^\}]+)\}/g;c.replace=function(a,e,d){return a.replace(d||i,c.isFunction(e)?e:function(a,d){return c.getObject(d,
!1,e)})}})();return c});
define("dojo/_base/array",["dojo/lib/kernel","dojo/_base/lang"],function(c){(function(){var d=function(a,d,f){return[typeof a=="string"?a.split(""):a,d||c.global,typeof f=="string"?new Function("item","index","array",f):f]},a=function(a,c,f,h){for(var f=d(c,h,f),c=f[0],h=0,i=c.length;h<i;++h){var j=!!f[2].call(f[1],c[h],h,c);if(a^j)return j}return a};c.mixin(c,{indexOf:function(a,c,d,h){var i=1,j=a.length||0,k=0;h&&(k=j-1,i=j=-1);d!=void 0&&(k=d);if(h&&k>j||k<j)for(;k!=j;k+=i)if(a[k]==c)return k;
return-1},lastIndexOf:function(a,d,f){return c.indexOf(a,d,f,!0)},forEach:function(a,c,f){if(a&&a.length)for(var c=d(a,f,c),a=c[0],f=0,h=a.length;f<h;++f)c[2].call(c[1],a[f],f,a)},every:function(c,d,f){return a(!0,c,d,f)},some:function(c,d,f){return a(!1,c,d,f)},map:function(a,c,f,h){for(var c=d(a,f,c),a=c[0],h=h?new h:[],f=0,i=a.length;f<i;++f)h.push(c[2].call(c[1],a[f],f,a));return h},filter:function(a,c,f){for(var c=d(a,f,c),a=c[0],f=[],h=0,i=a.length;h<i;++h)c[2].call(c[1],a[h],h,a)&&f.push(a[h]);
return f}})})();return c});
define("dojo/_base/declare",["dojo/lib/kernel","dojo/_base/lang","dojo/_base/array"],function(c){(function(){function d(a,c){throw Error("declare"+(c?" "+c:"")+": "+a);}function a(a,c,e){var f,g,h,i,j,k,l,m=this._inherited=this._inherited||{};typeof a=="string"&&(f=a,a=c,c=e);e=0;i=a.callee;(f=f||i.nom)||d("can't deduce a name to call inherited()",this.declaredClass);j=this.constructor._meta;h=j.bases;l=m.p;if(f!=v){if(m.c!==i&&(l=0,k=h[0],j=k._meta,j.hidden[f]!==i)){(g=j.chains)&&typeof g[f]=="string"&&
d("calling chained method with inherited: "+f,this.declaredClass);do if(j=k._meta,g=k.prototype,j&&(g[f]===i&&g.hasOwnProperty(f)||j.hidden[f]===i))break;while(k=h[++l]);l=k?l:-1}if(k=h[++l])if(g=k.prototype,k._meta&&g.hasOwnProperty(f))e=g[f];else{i=s[f];do if(g=k.prototype,(e=g[f])&&(k._meta?g.hasOwnProperty(f):e!==i))break;while(k=h[++l])}e=k&&e||s[f]}else{if(m.c!==i&&(l=0,(j=h[0]._meta)&&j.ctor!==i)){g=j.chains;for((!g||g.constructor!=="manual")&&d("calling chained constructor with inherited",
this.declaredClass);k=h[++l];)if((j=k._meta)&&j.ctor===i)break;l=k?l:-1}for(;k=h[++l];)if(e=(j=k._meta)?j.ctor:k)break;e=k&&e}m.c=e;m.p=l;if(e)return c===!0?e:e.apply(this,c||a)}function e(a,c){return typeof a=="string"?this.inherited(a,c,!0):this.inherited(a,!0)}function g(a){for(var c=this.constructor._meta.bases,e=0,d=c.length;e<d;++e)if(c[e]===a)return!0;return this instanceof a}function f(a,c){var e,d=0,f=p._extraNames.length;for(e in c)e!=v&&c.hasOwnProperty(e)&&(a[e]=c[e]);for(;d<f;++d)e=p._extraNames[d],
e!=v&&c.hasOwnProperty(e)&&(a[e]=c[e])}function h(a,c){var e,d,f=0,g=p._extraNames.length;for(e in c)if(d=c[e],(d!==s[e]||!(e in s))&&e!=v){if(q.call(d)=="[object Function]")d.nom=e;a[e]=d}for(;f<g;++f)if(e=p._extraNames[f],d=c[e],(d!==s[e]||!(e in s))&&e!=v){if(q.call(d)=="[object Function]")d.nom=e;a[e]=d}return a}function i(a){h(this.prototype,a);return this}function j(a,c){return function(){var w;var e=arguments,d=e,f=e[0],g,h;h=a.length;var i;if(!(this instanceof e.callee))return n(e);if(c&&
(f&&f.preamble||this.preamble)){i=Array(a.length);i[0]=e;for(g=0;;){if(f=e[0])(f=f.preamble)&&(e=f.apply(this,e)||e);f=a[g].prototype;(f=f.hasOwnProperty("preamble")&&f.preamble)&&(e=f.apply(this,e)||e);if(++g==h)break;i[g]=e}}for(g=h-1;g>=0;--g)f=a[g],(w=(h=f._meta)?h.ctor:f,f=w)&&f.apply(this,i?i[g]:e);(f=this.postscript)&&f.apply(this,d)}}function k(a,c){return function(){var e=arguments,d=e,f=e[0];if(!(this instanceof e.callee))return n(e);if(c){if(f)(f=f.preamble)&&(d=f.apply(this,d)||d);(f=
this.preamble)&&f.apply(this,d)}a&&a.apply(this,e);(f=this.postscript)&&f.apply(this,e)}}function l(a){return function(){var w;var c=arguments,e=0,d,f;if(!(this instanceof c.callee))return n(c);for(;d=a[e];++e)if(w=(f=d._meta)?f.ctor:d,d=w){d.apply(this,c);break}(d=this.postscript)&&d.apply(this,c)}}function m(a,c,e){return function(){var d,f,g=0,h=1;e&&(g=c.length-1,h=-1);for(;d=c[g];g+=h)f=d._meta,(d=(f?f.hidden:d.prototype)[a])&&d.apply(this,arguments)}}function o(a){t.prototype=a.prototype;a=
new t;t.prototype=null;return a}function n(a){var c=a.callee,e=o(c);c.apply(e,a);return e}var p=c,r=p._mixin,s=Object.prototype,q=s.toString,t=new Function,u=0,v="constructor";p.declare=function(c,n,t){typeof c!="string"&&(t=n,n=c,c="");var t=t||{},D,B,z,x,K,y,A,I=1,L=n;if(q.call(n)=="[object Array]"){I=c;z=[];x=[{cls:0,refs:[]}];y={};for(var E=1,F=n.length,M=0,G,N,J,O;M<F;++M){(G=n[M])?q.call(G)!="[object Function]"&&d("mixin #"+M+" is not a callable constructor.",I):d("mixin #"+M+" is unknown. Did you use dojo.require to pull it in?",
I);N=G._meta?G._meta.bases:[G];J=0;for(G=N.length-1;G>=0;--G){O=N[G].prototype;if(!O.hasOwnProperty("declaredClass"))O.declaredClass="uniqName_"+u++;O=O.declaredClass;y.hasOwnProperty(O)||(y[O]={count:0,refs:[],cls:N[G]},++E);O=y[O];J&&J!==O&&(O.refs.push(J),++J.count);J=O}++J.count;x[0].refs.push(J)}for(;x.length;){J=x.pop();z.push(J.cls);for(--E;B=J.refs,B.length==1;){J=B[0];if(!J||--J.count){J=0;break}z.push(J.cls);--E}if(J)for(M=0,F=B.length;M<F;++M)J=B[M],--J.count||x.push(J)}E&&d("can't build consistent linearization",
I);G=n[0];z[0]=G?G._meta&&G===z[z.length-G._meta.bases.length]?G._meta.bases.length:1:0;y=z;z=y[0];I=y.length-z;n=y[I]}else y=[0],n?q.call(n)=="[object Function]"?(z=n._meta,y=y.concat(z?z.bases:n)):d("base class is not a callable constructor.",c):n!==null&&d("unknown base class. Did you use dojo.require to pull it in?",c);if(n)for(B=I-1;;--B){D=o(n);if(!B)break;z=y[B];(z._meta?f:r)(D,z.prototype);x=new Function;x.superclass=n;x.prototype=D;n=D.constructor=x}else D={};h(D,t);z=t.constructor;if(z!==
s.constructor)z.nom=v,D.constructor=z;for(B=I-1;B;--B)(z=y[B]._meta)&&z.chains&&(A=r(A||{},z.chains));D["-chains-"]&&(A=r(A||{},D["-chains-"]));z=!A||!A.hasOwnProperty(v);y[0]=x=A&&A.constructor==="manual"?l(y):y.length==1?k(t.constructor,z):j(y,z);x._meta={bases:y,hidden:t,chains:A,parents:L,ctor:t.constructor};x.superclass=n&&n.prototype;x.extend=i;x.prototype=D;D.constructor=x;D.getInherited=e;D.inherited=a;D.isInstanceOf=g;if(c)D.declaredClass=c,p.setObject(c,x);if(A)for(K in A)if(D[K]&&typeof A[K]==
"string"&&K!=v)z=D[K]=m(K,y,A[K]==="after"),z.nom=K;return x};p.safeMixin=h})();return c.declare});
define("dojo/_base/connect",["dojo/lib/kernel","dojo/_base/lang"],function(c){c._listener={getDispatcher:function(){return function(){var c=Array.prototype,a=arguments.callee,e=a._listeners,a=(a=a.target)&&a.apply(this,arguments),g,e=[].concat(e);for(g in e)g in c||e[g].apply(this,arguments);return a}},add:function(d,a,e){var d=d||c.global,g=d[a];if(!g||!g._listeners){var f=c._listener.getDispatcher();f.target=g;f._listeners=[];g=d[a]=f}return g._listeners.push(e)},remove:function(d,a,e){(d=(d||c.global)[a])&&
d._listeners&&e--&&delete d._listeners[e]}};c.connect=function(d,a,e,g,f){var h=arguments,i=[],j=0;i.push(c.isString(h[0])?null:h[j++],h[j++]);var k=h[j+1];i.push(c.isString(k)||c.isFunction(k)?h[j++]:null,h[j++]);for(k=h.length;j<k;j++)i.push(h[j]);return c._connect.apply(this,i)};c._connect=function(d,a,e,g){var f=c._listener,e=f.add(d,a,c.hitch(e,g));return[d,a,e,f]};c.disconnect=function(d){d&&d[0]!==void 0&&(c._disconnect.apply(this,d),delete d[0])};c._disconnect=function(c,a,e,g){g.remove(c,
a,e)};c._topics={};c.subscribe=function(d,a,e){return[d,c._listener.add(c._topics,d,c.hitch(a,e))]};c.unsubscribe=function(d){d&&c._listener.remove(c._topics,d[0],d[1])};c.publish=function(d,a){var e=c._topics[d];e&&e.apply(this,a||[])};c.connectPublisher=function(d,a,e){var g=function(){c.publish(d,arguments)};return e?c.connect(a,e,g):c.connect(a,g)};return c.connect});
define("dojo/_base/Deferred",["dojo/lib/kernel","dojo/_base/lang"],function(c){(function(){var d=function(){},a=Object.freeze||function(){},e=function(){var a,c,e,d,j=!1,k=function(){};return function(l){if(j)a?(c.next={task:l,next:null},c=c.next):c=a={task:l,next:null};else{j=!0;do try{for(;l;){l();if(e)a?c.next=e:a=e,c=d;a?(e=a.next,d=c,l=a.task,a=c=null):l=null}j=!1}catch(m){l=k,console.error(m)}while(j)}}}();c.Deferred=function(g){function f(a){if(j)throw Error("This deferred has already been resolved");
i=a;j=!0;e(h)}function h(){for(var a;!a&&m;){var e=m;m=m.next;if(a=e.progress==d)j=!1;var f=k?e.error:e.resolved;if(f)try{var g=f(i);g&&typeof g.then==="function"?g.then(c.hitch(e.deferred,"resolve"),c.hitch(e.deferred,"reject"),c.hitch(e.deferred,"progress")):(f=a&&g===void 0,a&&!f&&(k=g instanceof Error),e.deferred[f&&k?"reject":"resolve"](f?i:g))}catch(h){e.deferred.reject(h)}else k?e.deferred.reject(i):e.deferred.resolve(i)}}var i,j,k,l,m,o=this.promise={};this.resolve=this.callback=function(a){this.fired=
0;this.results=[a,null];f(a)};this.reject=this.errback=function(a){k=!0;this.fired=1;f(a);this.results=[null,a];if(!a||a.log!==!1)(c.config.deferredOnError||function(a){console.error(a)})(a)};this.progress=function(a){for(var c=m;c;){var e=c.progress;e&&e(a);c=c.next}};this.addCallbacks=function(a,c){this.then(a,c,d);return this};this.then=o.then=function(a,f,g){var i=g==d?this:new c.Deferred(o.cancel),a={resolved:a,error:f,progress:g,deferred:i};m?l=l.next=a:m=l=a;j&&e(h);return i.promise};var n=
this;this.cancel=o.cancel=function(){if(!j){var a=g&&g(n);if(!j)a instanceof Error||(a=Error(a)),a.log=!1,n.reject(a)}};a(o)};c.extend(c.Deferred,{addCallback:function(a){return this.addCallbacks(c.hitch.apply(c,arguments))},addErrback:function(a){return this.addCallbacks(null,c.hitch.apply(c,arguments))},addBoth:function(a){var e=c.hitch.apply(c,arguments);return this.addCallbacks(e,e)},fired:-1})})();c.when=function(c,a,e,g){return c&&typeof c.then==="function"?c.then(a,e,g):a(c)};return c.Deferred});
define("dojo/_base/json",["dojo/lib/kernel"],function(c){c.fromJson=function(c){return eval("("+c+")")};c._escapeString=function(c){return('"'+c.replace(/(["\\])/g,"\\$1")+'"').replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")};c.toJsonIndentStr="\t";c.toJson=function(d,a,e){if(d===void 0)return"undefined";var g=typeof d;if(g=="number"||g=="boolean")return d+"";if(d===null)return"null";if(c.isString(d))return c._escapeString(d);var f=
arguments.callee,h,e=e||"",i=a?e+c.toJsonIndentStr:"";h=d.__json__||d.json;if(c.isFunction(h)&&(h=h.call(d),d!==h))return f(h,a,i);if(d.nodeType&&d.cloneNode)throw Error("Can't serialize DOM nodes");h=a?" ":"";var j=a?"\n":"";if(c.isArray(d))return"["+c.map(d,function(c){c=f(c,a,i);typeof c!="string"&&(c="undefined");return j+i+c}).join(","+h)+j+e+"]";if(g=="function")return null;var g=[],k;for(k in d){var l,m;if(typeof k=="number")l='"'+k+'"';else if(typeof k=="string")l=c._escapeString(k);else continue;
m=f(d[k],a,i);typeof m=="string"&&g.push(j+i+l+":"+h+m)}return"{"+g.join(","+h)+j+e+"}"};return c});
define("dojo/_base/Color",["dojo/lib/kernel","dojo/_base/array","dojo/_base/lang"],function(c){(function(){c.Color=function(c){c&&this.setColor(c)};c.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:c.config.transparentColor||[255,255,255]};c.extend(c.Color,
{r:255,g:255,b:255,a:1,_set:function(c,a,e,g){this.r=c;this.g=a;this.b=e;this.a=g},setColor:function(d){c.isString(d)?c.colorFromString(d,this):c.isArray(d)?c.colorFromArray(d,this):(this._set(d.r,d.g,d.b,d.a),d instanceof c.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"#"+c.map(["r","g","b"],function(c){c=this[c].toString(16);return c.length<2?"0"+
c:c},this).join("")},toCss:function(c){var a=this.r+", "+this.g+", "+this.b;return(c?"rgba("+a+", "+this.a:"rgb("+a)+")"},toString:function(){return this.toCss(!0)}});c.blendColors=function(d,a,e,g){var f=g||new c.Color;c.forEach(["r","g","b","a"],function(c){f[c]=d[c]+(a[c]-d[c])*e;c!="a"&&(f[c]=Math.round(f[c]))});return f.sanitize()};c.colorFromRgb=function(d,a){var e=d.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return e&&c.colorFromArray(e[1].split(/\s*,\s*/),a)};c.colorFromHex=function(d,
a){var e=a||new c.Color,g=d.length==4?4:8,f=(1<<g)-1,d=Number("0x"+d.substr(1));if(isNaN(d))return null;c.forEach(["b","g","r"],function(a){var c=d&f;d>>=g;e[a]=g==4?17*c:c});e.a=1;return e};c.colorFromArray=function(d,a){var e=a||new c.Color;e._set(Number(d[0]),Number(d[1]),Number(d[2]),Number(d[3]));if(isNaN(e.a))e.a=1;return e.sanitize()};c.colorFromString=function(d,a){var e=c.Color.named[d];return e&&c.colorFromArray(e,a)||c.colorFromRgb(d,a)||c.colorFromHex(d,a)}})();return c.Color});
define("dojo/_base/window",["dojo/lib/kernel"],function(c){c.doc=window.document||null;c.body=function(){return c.doc.body||c.doc.getElementsByTagName("body")[0]};c.setContext=function(d,a){c.global=d;c.doc=a};c.withGlobal=function(d,a,e,g){var f=c.global;try{return c.global=d,c.withDoc.call(null,d.document,a,e,g)}finally{c.global=f}};c.withDoc=function(d,a,e,g){var f=c.doc,h=c._bodyLtr,i=c.isQuirks;try{return c.doc=d,delete c._bodyLtr,c.isQuirks=c.doc.compatMode=="BackCompat",e&&typeof a=="string"&&
(a=e[a]),a.apply(e,g||[])}finally{c.doc=f;delete c._bodyLtr;if(h!==void 0)c._bodyLtr=h;c.isQuirks=i}};return c});
define("dojo/_base/event",["dojo/lib/kernel","dojo/_base/connect"],function(c){(function(){var d=c._event_listener={add:function(a,e,f){if(a){e=d._normalizeEventName(e);f=d._fixCallback(e,f);if(!c.isIE&&(e=="mouseenter"||e=="mouseleave"))var g=f,e=e=="mouseenter"?"mouseover":"mouseout",f=function(e){if(!c.isDescendant(e.relatedTarget,a))return g.call(this,e)};a.addEventListener(e,f,!1);return f}},remove:function(a,e,f){if(a){e=d._normalizeEventName(e);if(!c.isIE&&(e=="mouseenter"||e=="mouseleave"))e=
e=="mouseenter"?"mouseover":"mouseout";a.removeEventListener(e,f,!1)}},_normalizeEventName:function(a){return a.slice(0,2)=="on"?a.slice(2):a},_fixCallback:function(a,c){return a!="keypress"?c:function(a){return c.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}};c.fixEvent=function(a,c){return d._fixEvent(a,c)};c.stopEvent=function(a){a.preventDefault();a.stopPropagation()};var a=c._listener;c._connect=function(e,f,g,h,i){i=e&&(e.nodeType||e.attachEvent||e.addEventListener)?i?2:1:0;g=[c._listener,d,a][i].add(e,f,c.hitch(g,h));return[e,f,g,i]};c._disconnect=function(e,f,g,h){[c._listener,d,a][h].remove(e,f,g)};c.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:c.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:c.isMac&&!c.isAIR?c.isSafari?91:224:17};var e=c.isMac?"metaKey":"ctrlKey";c.isCopyKey=function(a){return a[e]};c.mouseButtons=c.isIE<9||c.isIE&&c.isQuirks?{LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(a,c){return a.button&c},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,c){return a.button==c},isLeft:function(a){return a.button==
0},isMiddle:function(a){return a.button==1},isRight:function(a){return a.button==2}};if(c.isIE){var g=function(a,c){try{return a.keyCode=c}catch(e){return 0}},f=c._listener,h=c._ieListenersName="_"+c._scopeName+"_listeners";if(!c.config._allow_leaks)var a=f=c._ie_listener={handlers:[],add:function(a,e,d){var a=a||c.global,f=a[e];if(!f||!f[h]){var g=c._getIeDispatcher();g.target=f&&i.push(f)-1;g[h]=[];f=a[e]=g}return f[h].push(i.push(d)-1)},remove:function(a,e,d){var j;j=(a=(a||c.global)[e])&&a[h],
e=j;a&&e&&d--&&(delete i[e[d]],delete e[d])}},i=f.handlers;c.mixin(d,{add:function(a,c,e){if(a){c=d._normalizeEventName(c);if(c=="onkeypress"){var g=a.onkeydown;if(!g||!g[h]||!g._stealthKeydownHandle){var i=d.add(a,"onkeydown",d._stealthKeyDown),g=a.onkeydown;g._stealthKeydownHandle=i;g._stealthKeydownRefs=1}else g._stealthKeydownRefs++}return f.add(a,c,d._fixCallback(e))}},remove:function(a,c,e){c=d._normalizeEventName(c);f.remove(a,c,e);if(c=="onkeypress")c=a.onkeydown,--c._stealthKeydownRefs<=
0&&(f.remove(a,"onkeydown",c._stealthKeydownHandle),delete c._stealthKeydownHandle)},_normalizeEventName:function(a){return a.slice(0,2)!="on"?"on"+a:a},_nop:function(){},_fixEvent:function(a,e){if(!a)a=(e&&(e.ownerDocument||e.document||e).parentWindow||window).event;if(!a)return a;a.target=a.srcElement;a.currentTarget=e||a.srcElement;a.layerX=a.offsetX;a.layerY=a.offsetY;var f=a.srcElement,f=f&&f.ownerDocument||document,f=c.isIE<6||f.compatMode=="BackCompat"?f.body:f.documentElement,g=c._getIeDocumentElementOffset();
a.pageX=a.clientX+c._fixIeBiDiScrollLeft(f.scrollLeft||0)-g.x;a.pageY=a.clientY+(f.scrollTop||0)-g.y;if(a.type=="mouseover")a.relatedTarget=a.fromElement;if(a.type=="mouseout")a.relatedTarget=a.toElement;if(c.isIE<9||c.isQuirks)a.stopPropagation=d._stopPropagation,a.preventDefault=d._preventDefault;return d._fixKeys(a)},_fixKeys:function(a){switch(a.type){case "keypress":var c="charCode"in a?a.charCode:a.keyCode;c==10?(c=0,a.keyCode=13):c==13||c==27?c=0:c==3&&(c=99);a.charCode=c;d._setKeyChar(a)}return a},
_stealthKeyDown:function(a){var e=a.currentTarget.onkeypress;if(e&&e[h]){var f=a.keyCode,i=(f!=13||c.isIE>=9&&!c.isQuirks)&&f!=32&&f!=27&&(f<48||f>90)&&(f<96||f>111)&&(f<186||f>192)&&(f<219||f>222);if(i||a.ctrlKey){i=i?0:f;if(a.ctrlKey)if(f==3||f==13)return;else i>95&&i<106?i-=48:!a.shiftKey&&i>=65&&i<=90?i+=32:i=d._punctMap[i]||i;f=d._synthesizeEvent(a,{type:"keypress",faux:!0,charCode:i});e.call(a.currentTarget,f);if(c.isIE<9||c.isIE&&c.isQuirks)a.cancelBubble=f.cancelBubble;a.returnValue=f.returnValue;
g(a,f.keyCode)}}},_stopPropagation:function(){this.cancelBubble=!0},_preventDefault:function(){this.bubbledKeyCode=this.keyCode;this.ctrlKey&&g(this,0);this.returnValue=!1}});c.stopEvent=c.isIE<9||c.isQuirks?function(a){a=a||window.event;d._stopPropagation.call(a);d._preventDefault.call(a)}:c.stopEvent}d._synthesizeEvent=function(a,e){var f=c.mixin({},a,e);d._setKeyChar(f);f.preventDefault=function(){a.preventDefault()};f.stopPropagation=function(){a.stopPropagation()};return f};c.isOpera&&c.mixin(d,
{_fixEvent:function(a){switch(a.type){case "keypress":var c=a.which;c==3&&(c=99);c=c<41&&!a.shiftKey?0:c;a.ctrlKey&&!a.shiftKey&&c>=65&&c<=90&&(c+=32);return d._synthesizeEvent(a,{charCode:c})}return a}});if(c.isWebKit)d._add=d.add,d._remove=d.remove,c.mixin(d,{add:function(a,c,e){if(a){var f=d._add(a,c,e);if(d._normalizeEventName(c)=="keypress")f._stealthKeyDownHandle=d._add(a,"keydown",function(a){var c=a.keyCode,f=c!=13&&c!=32&&(c<48||c>90)&&(c<96||c>111)&&(c<186||c>192)&&(c<219||c>222);if(f||
a.ctrlKey){f=f?0:c;if(a.ctrlKey)if(c==3||c==13)return;else f>95&&f<106?f-=48:!a.shiftKey&&f>=65&&f<=90?f+=32:f=d._punctMap[f]||f;c=d._synthesizeEvent(a,{type:"keypress",faux:!0,charCode:f});e.call(a.currentTarget,c)}});return f}},remove:function(a,c,e){a&&(e._stealthKeyDownHandle&&d._remove(a,"keydown",e._stealthKeyDownHandle),d._remove(a,c,e))},_fixEvent:function(a){switch(a.type){case "keypress":if(a.faux)break;var c=a.charCode;return d._synthesizeEvent(a,{charCode:c>=32?c:0,faux:!0})}return a}})})();
if(c.isIE)c._ieDispatcher=function(d,a){var e=Array.prototype,g=c._ie_listener.handlers,f=d.callee,h=f[c._ieListenersName],f=(f=g[f.target])&&f.apply(a,d),h=[].concat(h),i;for(i in h){var j=g[h[i]];!(i in e)&&j&&j.apply(a,d)}return f},c._getIeDispatcher=function(){return new Function(c._scopeName+"._ieDispatcher(arguments, this)")},c._event_listener._fixCallback=function(d){var a=c._event_listener._fixEvent;return function(c){return d.call(this,a(c,this))}};return c.connect});
define("dojo/_base/html",["dojo/lib/kernel","dojo/_base/lang"],function(c){try{document.execCommand("BackgroundImageCache",!1,!0)}catch(d){}c.byId=c.isIE?function(a,e){if(typeof a!="string")return a;var d=e||c.doc,f=d.getElementById(a);if(f&&(f.attributes.id.value==a||f.id==a))return f;else{d=d.all[a];if(!d||d.nodeName)d=[d];for(var h=0;f=d[h++];)if(f.attributes&&f.attributes.id&&f.attributes.id.value==a||f.id==a)return f}}:function(a,e){return(typeof a=="string"?(e||c.doc).getElementById(a):a)||
null};(function(){var a=c.byId,e=null,d;c.addOnWindowUnload(function(){e=null});c._destroyElement=c.destroy=function(c){c=a(c);try{var f=c.ownerDocument;if(!e||d!=f)e=f.createElement("div"),d=f;e.appendChild(c.parentNode?c.parentNode.removeChild(c):c);e.innerHTML=""}catch(h){}};c.isDescendant=function(c,e){try{c=a(c);for(e=a(e);c;){if(c==e)return!0;c=c.parentNode}}catch(d){}return!1};c.setSelectable=function(e,d){e=a(e);if(c.isMozilla)e.style.MozUserSelect=d?"":"none";else if(c.isKhtml||c.isWebKit)e.style.KhtmlUserSelect=
d?"auto":"none";else if(c.isIE){var f=e.unselectable=d?"":"on";c.query("*",e).forEach("item.unselectable = '"+f+"'")}};var f=function(a,c){var e=c.parentNode;e&&e.insertBefore(a,c)};c.place=function(e,d,g){d=a(d);typeof e=="string"&&(e=/^\s*</.test(e)?c._toDom(e,d.ownerDocument):a(e));if(typeof g=="number"){var h=d.childNodes;!h.length||h.length<=g?d.appendChild(e):f(e,h[g<0?0:g])}else switch(g){case "before":f(e,d);break;case "after":g=e;(h=d.parentNode)&&(h.lastChild==d?h.appendChild(g):h.insertBefore(g,
d.nextSibling));break;case "replace":d.parentNode.replaceChild(e,d);break;case "only":c.empty(d);d.appendChild(e);break;case "first":if(d.firstChild){f(e,d.firstChild);break}default:d.appendChild(e)}return e};c.boxModel="content-box";if(c.isIE)c.boxModel=document.compatMode=="BackCompat"?"border-box":"content-box";var h;h=c.isWebKit?function(a){var c;if(a.nodeType==1){var e=a.ownerDocument.defaultView;c=e.getComputedStyle(a,null);if(!c&&a.style)a.style.display="",c=e.getComputedStyle(a,null)}return c||
{}}:c.isIE?function(a){return a.nodeType==1?a.currentStyle:{}}:function(a){return a.nodeType==1?a.ownerDocument.defaultView.getComputedStyle(a,null):{}};c.getComputedStyle=h;c._toPixelValue=c.isIE?function(a,c){if(!c)return 0;if(c=="medium")return 4;if(c.slice&&c.slice(-2)=="px")return parseFloat(c);with(a){var e=style.left,d=runtimeStyle.left;runtimeStyle.left=currentStyle.left;try{style.left=c,c=style.pixelLeft}catch(f){c=0}style.left=e;runtimeStyle.left=d}return c}:function(a,c){return parseFloat(c)||
0};var i=c._toPixelValue,j=function(a,c){try{return a.filters.item("DXImageTransform.Microsoft.Alpha")}catch(e){return c?{}:null}};c._getOpacity=c.isIE<9?function(a){try{return j(a).Opacity/100}catch(c){return 1}}:function(a){return h(a).opacity};c._setOpacity=c.isIE<9?function(a,e){var d=e*100,f=e==1;a.style.zoom=f?"":1;if(j(a))j(a,1).Opacity=d;else{if(f)return e;a.style.filter+=" progid:DXImageTransform.Microsoft.Alpha(Opacity="+d+")"}j(a,1).Enabled=!f;a.nodeName.toLowerCase()=="tr"&&c.query("> td",
a).forEach(function(a){c._setOpacity(a,e)});return e}:function(a,c){return a.style.opacity=c};var k={left:!0,top:!0},l=/margin|padding|width|height|max|min|offset/,m=function(a,e,d){e=e.toLowerCase();if(c.isIE){if(d=="auto"){if(e=="height")return a.offsetHeight;if(e=="width")return a.offsetWidth}if(e=="fontweight")switch(d){case 700:return"bold";default:return"normal"}}e in k||(k[e]=l.test(e));return k[e]?i(a,d):d},o=c.isIE?"styleFloat":"cssFloat",n={cssFloat:o,styleFloat:o,"float":o};c.style=function(e,
d,f){var g=a(e),i=arguments.length,j=d=="opacity",d=n[d]||d;if(i==3)return j?c._setOpacity(g,f):g.style[d]=f;if(i==2&&j)return c._getOpacity(g);j=h(g);if(i==2&&typeof d!="string"){for(var k in d)c.style(e,k,d[k]);return j}return i==1?j:m(g,d,j[d]||g.style[d])};c._getPadExtents=function(a,c){var e=c||h(a),d=i(a,e.paddingLeft),f=i(a,e.paddingTop);return{l:d,t:f,w:d+i(a,e.paddingRight),h:f+i(a,e.paddingBottom)}};c._getBorderExtents=function(a,c){var e=c||h(a),d=e.borderLeftStyle!="none"?i(a,e.borderLeftWidth):
0,f=e.borderTopStyle!="none"?i(a,e.borderTopWidth):0;return{l:d,t:f,w:d+(e.borderRightStyle!="none"?i(a,e.borderRightWidth):0),h:f+(e.borderBottomStyle!="none"?i(a,e.borderBottomWidth):0)}};c._getPadBorderExtents=function(a,e){var d=e||h(a),f=c._getPadExtents(a,d),d=c._getBorderExtents(a,d);return{l:f.l+d.l,t:f.t+d.t,w:f.w+d.w,h:f.h+d.h}};c._getMarginExtents=function(a,e){var d=e||h(a),f=i(a,d.marginLeft),g=i(a,d.marginTop),j=i(a,d.marginRight),k=i(a,d.marginBottom);c.isWebKit&&d.position!="absolute"&&
(j=f);return{l:f,t:g,w:f+j,h:g+k}};c._getMarginBox=function(a,e){var d=e||h(a),f=c._getMarginExtents(a,d),g=a.offsetLeft-f.l,i=a.offsetTop-f.t,j=a.parentNode;if(c.isMoz){var k=parseFloat(d.left),d=parseFloat(d.top);!isNaN(k)&&!isNaN(d)?(g=k,i=d):j&&j.style&&(k=h(j),k.overflow!="visible"&&(j=c._getBorderExtents(j,k),g+=j.l,i+=j.t))}else if((c.isOpera||c.isIE>7&&!c.isQuirks)&&j)j=c._getBorderExtents(j),g-=j.l,i-=j.t;return{l:g,t:i,w:a.offsetWidth+f.w,h:a.offsetHeight+f.h}};c._getMarginSize=function(e,
d){var e=a(e),f=c._getMarginExtents(e,d||h(e)),g=e.getBoundingClientRect();return{w:g.right-g.left+f.w,h:g.bottom-g.top+f.h}};c._getContentBox=function(a,e){var d=e||h(a),f=c._getPadExtents(a,d),d=c._getBorderExtents(a,d),g=a.clientWidth,i;g?(i=a.clientHeight,d.w=d.h=0):(g=a.offsetWidth,i=a.offsetHeight);c.isOpera&&(f.l+=d.l,f.t+=d.t);return{l:f.l,t:f.t,w:g-f.w-d.w,h:i-f.h-d.h}};c._getBorderBox=function(a,e){var d=e||h(a),f=c._getPadExtents(a,d),d=c._getContentBox(a,d);return{l:d.l-f.l,t:d.t-f.t,
w:d.w+f.w,h:d.h+f.h}};c._setBox=function(a,c,e,d,f,g){g=g||"px";a=a.style;if(!isNaN(c))a.left=c+g;if(!isNaN(e))a.top=e+g;if(d>=0)a.width=d+g;if(f>=0)a.height=f+g};c._isButtonTag=function(a){return a.tagName=="BUTTON"||a.tagName=="INPUT"&&(a.getAttribute("type")||"").toUpperCase()=="BUTTON"};c._usesBorderBox=function(a){var e=a.tagName;return c.boxModel=="border-box"||e=="TABLE"||c._isButtonTag(a)};c._setContentSize=function(a,e,d,f){c._usesBorderBox(a)&&(f=c._getPadBorderExtents(a,f),e>=0&&(e+=f.w),
d>=0&&(d+=f.h));c._setBox(a,NaN,NaN,e,d)};c._setMarginBox=function(a,e,d,f,g,i){var j=i||h(a),i=c._usesBorderBox(a)?p:c._getPadBorderExtents(a,j);if(c.isWebKit&&c._isButtonTag(a)){var k=a.style;if(f>=0&&!k.width)k.width="4px";if(g>=0&&!k.height)k.height="4px"}j=c._getMarginExtents(a,j);f>=0&&(f=Math.max(f-i.w-j.w,0));g>=0&&(g=Math.max(g-i.h-j.h,0));c._setBox(a,e,d,f,g)};var p={l:0,t:0,w:0,h:0};c.marginBox=function(e,d){var f=a(e),g=h(f);return!d?c._getMarginBox(f,g):c._setMarginBox(f,d.l,d.t,d.w,
d.h,g)};c.contentBox=function(e,d){var f=a(e),g=h(f);return!d?c._getContentBox(f,g):c._setContentSize(f,d.w,d.h,g)};c._docScroll=function(){var a=c.global;return"pageXOffset"in a?{x:a.pageXOffset,y:a.pageYOffset}:(a=c.isQuirks?c.doc.body:c.doc.documentElement,{x:c._fixIeBiDiScrollLeft(a.scrollLeft||0),y:a.scrollTop||0})};c._isBodyLtr=function(){return"_bodyLtr"in c?c._bodyLtr:c._bodyLtr=(c.body().dir||c.doc.documentElement.dir||"ltr").toLowerCase()=="ltr"};c._getIeDocumentElementOffset=function(){var a=
c.doc.documentElement;if(c.isIE<8){var e=a.getBoundingClientRect(),d=e.left,e=e.top;c.isIE<7&&(d+=a.clientLeft,e+=a.clientTop);return{x:d<0?0:d,y:e<0?0:e}}else return{x:0,y:0}};c._fixIeBiDiScrollLeft=function(a){var e=c.isIE;if(e&&!c._isBodyLtr()){var d=c.isQuirks,f=d?c.doc.body:c.doc.documentElement;e==6&&!d&&c.global.frameElement&&f.scrollHeight>f.clientHeight&&(a+=f.clientLeft);return e<8||d?a+f.clientWidth-f.scrollWidth:-a}return a};c._abs=c.position=function(e,d){var e=a(e),f=c.body(),g=f.parentNode,
j=e.getBoundingClientRect(),j={x:j.left,y:j.top,w:j.right-j.left,h:j.bottom-j.top};c.isIE?(g=c._getIeDocumentElementOffset(),j.x-=g.x+(c.isQuirks?f.clientLeft+f.offsetLeft:0),j.y-=g.y+(c.isQuirks?f.clientTop+f.offsetTop:0)):c.isFF==3&&(f=h(g),j.x-=i(g,f.marginLeft)+i(g,f.borderLeftWidth),j.y-=i(g,f.marginTop)+i(g,f.borderTopWidth));d&&(f=c._docScroll(),j.x+=f.x,j.y+=f.y);return j};c.coords=function(e,d){var f=a(e),g=h(f),g=c._getMarginBox(f,g),f=c.position(f,d);g.x=f.x;g.y=f.y;return g};var r={"class":"className",
"for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},s={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},q={innerHTML:1,className:1,htmlFor:c.isIE,value:1},t=function(a,c){var e=a.getAttributeNode&&a.getAttributeNode(c);return e&&e.specified};c.hasAttr=function(c,e){var d=e.toLowerCase();return q[r[d]||e]||t(a(c),s[d]||e)};var u={},v=0,w=c._scopeName+"attrid",C={col:1,colgroup:1,table:1,
tbody:1,tfoot:1,thead:1,tr:1,title:1};c.attr=function(e,d,f){var e=a(e),g=arguments.length;if(g==2&&typeof d!="string"){for(var h in d)c.attr(e,h,d[h]);return e}var i=d.toLowerCase();h=r[i]||d;var j=q[h],i=s[i]||d;if(g==3){if(h=="style"&&typeof f!="string")c.style(e,f);else if(h=="innerHTML")c.isIE&&e.tagName.toLowerCase()in C?(c.empty(e),e.appendChild(c._toDom(f,e.ownerDocument))):e[h]=f;else if(c.isFunction(f)){g=c.attr(e,w);g||(g=v++,c.attr(e,w,g));u[g]||(u[g]={});if(j=u[g][h])c.disconnect(j);
else try{delete e[h]}catch(k){}u[g][h]=c.connect(e,h,f)}else j||typeof f=="boolean"?e[h]=f:e.setAttribute(i,f);return e}f=e[h];return j&&typeof f!="undefined"?f:h!="href"&&(typeof f=="boolean"||c.isFunction(f))?f:t(e,i)?e.getAttribute(i):null};c.removeAttr=function(c,e){a(c).removeAttribute(s[e.toLowerCase()]||e)};c.getNodeProp=function(c,e){var c=a(c),d=e.toLowerCase(),f=r[d]||e;if(f in c&&f!="href")return c[f];d=s[d]||e;return t(c,d)?c.getAttribute(d):null};c.create=function(e,d,f,g){var h=c.doc;
if(f)f=a(f),h=f.ownerDocument;typeof e=="string"&&(e=h.createElement(e));d&&c.attr(e,d);f&&c.place(e,f,g);return e};c.empty=c.isIE?function(e){for(var e=a(e),d;d=e.lastChild;)c.destroy(d)}:function(c){a(c).innerHTML=""};var H={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"]},D=/<\s*([\w\:]+)/,B={},z=0,x="__"+c._scopeName+
"ToDomId",K;for(K in H)if(H.hasOwnProperty(K))o=H[K],o.pre=K=="option"?'<select multiple="multiple">':"<"+o.join("><")+">",o.post="</"+o.reverse().join("></")+">";c._toDom=function(a,e){var e=e||c.doc,d=e[x];d||(e[x]=d=++z+"",B[d]=e.createElement("div"));a+="";var f=a.match(D),g=f?f[1].toLowerCase():"",d=B[d];if(f&&H[g]){f=H[g];d.innerHTML=f.pre+a+f.post;for(f=f.length;f;--f)d=d.firstChild}else d.innerHTML=a;if(d.childNodes.length==1)return d.removeChild(d.firstChild);for(g=e.createDocumentFragment();f=
d.firstChild;)g.appendChild(f);return g};c.hasClass=function(c,e){return(" "+a(c).className+" ").indexOf(" "+e+" ")>=0};var y=/\s+/,A=[""],I={},L=function(a){return typeof a=="string"||a instanceof String?a.indexOf(" ")<0?(A[0]=a,A):a.split(y):a||""};c.addClass=function(c,e){var c=a(c),e=L(e),d=c.className,f,d=d?" "+d+" ":" ";f=d.length;for(var g=0,h=e.length,i;g<h;++g)(i=e[g])&&d.indexOf(" "+i+" ")<0&&(d+=i+" ");f<d.length&&(c.className=d.substr(1,d.length-2))};c.removeClass=function(e,d){var e=
a(e),f;if(d!==void 0){d=L(d);f=" "+e.className+" ";for(var g=0,h=d.length;g<h;++g)f=f.replace(" "+d[g]+" "," ");f=c.trim(f)}else f="";e.className!=f&&(e.className=f)};c.replaceClass=function(e,d,f){e=a(e);I.className=e.className;c.removeClass(I,f);c.addClass(I,d);if(e.className!==I.className)e.className=I.className};c.toggleClass=function(a,e,d){d===void 0&&(d=!c.hasClass(a,e));c[d?"addClass":"removeClass"](a,e)}})();return c});
define("dojo/_base/NodeList",["dojo/lib/kernel","dojo/_base/lang","dojo/_base/array","dojo/_base/connect","dojo/_base/html"],function(c){(function(){var d=Array.prototype,a=d.slice,e=d.concat,g=function(e,d,f){e.sort||(e=a.call(e,0));f=f||this._NodeListCtor||c._NodeListCtor;e.constructor=f;c._mixin(e,f.prototype);e._NodeListCtor=f;return d?e._stash(d):e},f=function(e,d,f){d=[0].concat(a.call(d,0));f=f||c.global;return function(a){d[0]=a;return e.apply(f,d)}},h=function(a,c){return function(){this.forEach(f(a,
arguments,c));return this}},i=function(a,c){return function(){return this.map(f(a,arguments,c))}},j=function(a,e,d){return function(){var g=arguments,h=f(a,g,d);if(e.call(d||c.global,g))return this.map(h);this.forEach(h);return this}},k=function(a){return a.length==1&&typeof a[0]=="string"},l=function(a){var c=a.parentNode;c&&c.removeChild(a)};c.NodeList=function(){return g(Array.apply(null,arguments))};var m=c._NodeListCtor=c.NodeList,o=m.prototype;m._wrap=o._wrap=g;m._adaptAsMap=i;m._adaptAsForEach=
h;m._adaptAsFilter=function(a,c){return function(){return this.filter(f(a,arguments,c))}};m._adaptWithCondition=j;c.forEach(["slice","splice"],function(a){var c=d[a];o[a]=function(){return this._wrap(c.apply(this,arguments),a=="slice"?this:null)}});c.forEach(["indexOf","lastIndexOf","every","some"],function(e){var d=c[e];o[e]=function(){return d.apply(c,[this].concat(a.call(arguments,0)))}});c.forEach(["attr","style"],function(a){o[a]=j(c[a],k)});c.forEach("connect,addClass,removeClass,replaceClass,toggleClass,empty,removeAttr".split(","),
function(a){o[a]=h(c[a])});c.extend(c.NodeList,{_normalize:function(a,e){var d=a.parse===!0?!0:!1;if(typeof a.template=="string")var f=a.templateFunc||c.string&&c.string.substitute,a=f?f(a.template,a):a;f=typeof a;f=="string"||f=="number"?(a=c._toDom(a,e&&e.ownerDocument),a=a.nodeType==11?c._toArray(a.childNodes):[a]):c.isArrayLike(a)?c.isArray(a)||(a=c._toArray(a)):a=[a];if(d)a._runParse=!0;return a},_cloneNode:function(a){return a.cloneNode(!0)},_place:function(a,e,d,f){if(!(e.nodeType!=1&&d=="only"))for(var g,
h=a.length,i=h-1;i>=0;i--){var j=f?this._cloneNode(a[i]):a[i];if(a._runParse&&c.parser&&c.parser.parse){g||(g=e.ownerDocument.createElement("div"));g.appendChild(j);c.parser.parse(g);for(j=g.firstChild;g.firstChild;)g.removeChild(g.firstChild)}i==h-1?c.place(j,e,d):e.parentNode.insertBefore(j,e);e=j}},_stash:function(a){this._parent=a;return this},end:function(){return this._parent?this._parent:new this._NodeListCtor},concat:function(d){var f=c.isArray(this)?this:a.call(this,0),g=c.map(arguments,
function(e){return e&&!c.isArray(e)&&(typeof NodeList!="undefined"&&e.constructor===NodeList||e.constructor===this._NodeListCtor)?a.call(e,0):e});return this._wrap(e.apply(f,g),this)},map:function(a,e){return this._wrap(c.map(this,a,e),this)},forEach:function(a,e){c.forEach(this,a,e);return this},coords:i(c.coords),position:i(c.position),place:function(a,e){var d=c.query(a)[0];return this.forEach(function(a){c.place(a,d,e)})},orphan:function(a){return(a?c._filterQueryResult(this,a):this).forEach(l)},
adopt:function(a,e){return c.query(a).place(this[0],e)._stash(this)},query:function(a){if(!a)return this;var d=this.map(function(e){return c.query(a,e).filter(function(a){return a!==void 0})});return this._wrap(e.apply([],d),this)},filter:function(a){var e=arguments,d=this,f=0;if(typeof a=="string"){d=c._filterQueryResult(this,e[0]);if(e.length==1)return d._stash(this);f=1}return this._wrap(c.filter(d,e[f],e[f+1]),this)},addContent:function(a,c){for(var a=this._normalize(a,this[0]),e=0,d;d=this[e];e++)this._place(a,
d,c,e>0);return this},instantiate:function(a,e){var d=c.isFunction(a)?a:c.getObject(a),e=e||{};return this.forEach(function(a){new d(e,a)})},at:function(){var a=new this._NodeListCtor;c.forEach(arguments,function(c){c<0&&(c=this.length+c);this[c]&&a.push(this[c])},this);return a._stash(this)}});m.events="blur,focus,change,click,error,keydown,keypress,keyup,load,mousedown,mouseenter,mouseleave,mousemove,mouseout,mouseover,mouseup,submit".split(",");c.forEach(m.events,function(a){var c="on"+a;o[c]=
function(a,e){return this.connect(c,a,e)}})})();return c.NodeList});
(function(){var c=function(a){var c=a.trim,d=a.forEach,f=a._NodeListCtor=a.NodeList,h=(a.isWebKit||a.isMozilla)&&a.doc.compatMode=="BackCompat",i=a.doc.firstChild.children?"children":"childNodes",j=!1,k=function(){return!0},l=function(a){a+=">~+".indexOf(a.slice(-1))>=0?" * ":" ";for(var d=function(d,f){return c(a.slice(d,f))},f=[],g=-1,h=-1,i=-1,k=-1,l=-1,m=-1,o=-1,r="",u="",p,n=0,t=a.length,q=null,v=null,s=function(){if(m>=0)q.id=d(m,n).replace(/\\/g,""),m=-1;if(o>=0){var a=o==n?null:d(o,n);q[">~+".indexOf(a)<
0?"tag":"oper"]=a;o=-1}l>=0&&(q.classes.push(d(l+1,n).replace(/\\/g,"")),l=-1)};r=u,u=a.charAt(n),n<t;n++)if(r!="\\")if(q||(p=n,q={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return j?this.otag:this.tag}},o=n),g>=0)if(u=="]"){v.attr?v.matchFor=d(i||g+1,n):v.attr=d(g+1,n);if((g=v.matchFor)&&(g.charAt(0)=='"'||g.charAt(0)=="'"))v.matchFor=g.slice(1,-1);q.attrs.push(v);v=null;g=i=-1}else{if(u=="=")i="|~^$*".indexOf(r)>=0?r:"",v.type=i+u,v.attr=d(g+1,n-i.length),
i=n+1}else if(h>=0){if(u==")"){if(k>=0)v.value=d(h+1,n);k=h=-1}}else if(u=="#")s(),m=n+1;else if(u==".")s(),l=n;else if(u==":")s(),k=n;else if(u=="[")s(),g=n,v={};else if(u=="(")k>=0&&(v={name:d(k+1,n),value:null},q.pseudos.push(v)),h=n;else if(u==" "&&r!=u){s();k>=0&&q.pseudos.push({name:d(k+1,n)});q.loops=q.pseudos.length||q.attrs.length||q.classes.length;q.oquery=q.query=d(p,n);q.otag=q.tag=q.oper?null:q.tag||"*";if(q.tag)q.tag=q.tag.toUpperCase();if(f.length&&f[f.length-1].oper)q.infixOper=f.pop(),
q.query=q.infixOper.query+" "+q.query;f.push(q);q=null}return f},m=function(a,c){return!a?c:!c?a:function(){return a.apply(window,arguments)&&c.apply(window,arguments)}},o=function(a,c){var e=c||[];a&&e.push(a);return e},n=function(a){return 1==a.nodeType},p=function(a,c){return!a?"":c=="class"?a.className||"":c=="for"?a.htmlFor||"":c=="style"?a.style.cssText||"":(j?a.getAttribute(c):a.getAttribute(c,2))||""},r={"*=":function(a,c){return function(e){return p(e,a).indexOf(c)>=0}},"^=":function(a,c){return function(e){return p(e,
a).indexOf(c)==0}},"$=":function(a,c){return function(e){e=" "+p(e,a);return e.lastIndexOf(c)==e.length-c.length}},"~=":function(a,c){var e=" "+c+" ";return function(c){return(" "+p(c,a)+" ").indexOf(e)>=0}},"|=":function(a,c){var e=" "+c+"-";return function(d){d=" "+p(d,a);return d==c||d.indexOf(e)==0}},"=":function(a,c){return function(e){return p(e,a)==c}}},s=typeof a.doc.firstChild.nextElementSibling=="undefined",q=!s?"nextElementSibling":"nextSibling",t=!s?"previousElementSibling":"previousSibling",
u=s?n:k,v=function(a){for(;a=a[t];)if(u(a))return!1;return!0},w=function(a){for(;a=a[q];)if(u(a))return!1;return!0},C=function(a){var c=a.parentNode,e=0,d=c[i],f=a._i||-1,g=c._l||-1;if(!d)return-1;d=d.length;if(g==d&&f>=0&&g>=0)return f;c._l=d;f=-1;for(c=c.firstElementChild||c.firstChild;c;c=c[q])if(u(c))c._i=++e,a===c&&(f=e);return f},H=function(a){return!(C(a)%2)},D=function(a){return C(a)%2},B={checked:function(){return function(a){return!!("checked"in a?a.checked:a.selected)}},"first-child":function(){return v},
"last-child":function(){return w},"only-child":function(){return function(a){return!v(a)?!1:!w(a)?!1:!0}},empty:function(){return function(a){for(var c=a.childNodes,a=a.childNodes.length-1;a>=0;a--){var e=c[a].nodeType;if(e===1||e==3)return!1}return!0}},contains:function(a,c){var e=c.charAt(0);if(e=='"'||e=="'")c=c.slice(1,-1);return function(a){return a.innerHTML.indexOf(c)>=0}},not:function(a,c){var e=l(c)[0],d={el:1};if(e.tag!="*")d.tag=1;if(!e.classes.length)d.classes=1;var f=x(e,d);return function(a){return!f(a)}},
"nth-child":function(a,c){var e=parseInt;if(c=="odd")return D;else if(c=="even")return H;if(c.indexOf("n")!=-1){var d=c.split("n",2),f=d[0]?d[0]=="-"?-1:e(d[0]):1,g=d[1]?e(d[1]):0,h=0,i=-1;f>0?g<0?g=g%f&&f+g%f:g>0&&(g>=f&&(h=g-g%f),g%=f):f<0&&(f*=-1,g>0&&(i=g,g%=f));if(f>0)return function(a){a=C(a);return a>=h&&(i<0||a<=i)&&a%f==g};else c=g}var j=e(c);return function(a){return C(a)==j}}},z=a.isIE<9||dojo.isIE&&dojo.isQuirks?function(a){var c=a.toLowerCase();c=="class"&&(a="className");return function(e){return j?
e.getAttribute(a):e[a]||e[c]}}:function(a){return function(c){return c&&c.getAttribute&&c.hasAttribute(a)}},x=function(a,c){if(!a)return k;var c=c||{},e=null;"el"in c||(e=m(e,n));"tag"in c||a.tag!="*"&&(e=m(e,function(c){return c&&c.tagName==a.getTag()}));"classes"in c||d(a.classes,function(a,c){var d=RegExp("(?:^|\\s)"+a+"(?:\\s|$)");e=m(e,function(a){return d.test(a.className)});e.count=c});"pseudos"in c||d(a.pseudos,function(a){var c=a.name;B[c]&&(e=m(e,B[c](c,a.value)))});"attrs"in c||d(a.attrs,
function(a){var c,d=a.attr;a.type&&r[a.type]?c=r[a.type](d,a.matchFor):d.length&&(c=z(d));c&&(e=m(e,c))});"id"in c||a.id&&(e=m(e,function(c){return!!c&&c.id==a.id}));e||"default"in c||(e=k);return e},K=function(a){return function(c,e,d){for(;c=c[q];)if(!s||n(c)){(!d||R(c,d))&&a(c)&&e.push(c);break}return e}},y=function(a){return function(c,e,d){for(c=c[q];c;){if(u(c)){if(d&&!R(c,d))break;a(c)&&e.push(c)}c=c[q]}return e}},A=function(a){a=a||k;return function(c,e,d){for(var f=0,g=c[i];c=g[f++];)u(c)&&
(!d||R(c,d))&&a(c,f)&&e.push(c);return e}},I={},L=function(c){var e=I[c.query];if(e)return e;var d=c.infixOper,d=d?d.oper:"",f=x(c,{el:1}),g="*"==c.tag,i=a.doc.getElementsByClassName;if(d){i={el:1};if(g)i.tag=1;f=x(c,i);"+"==d?e=K(f):"~"==d?e=y(f):">"==d&&(e=A(f))}else if(c.id)f=!c.loops&&g?k:x(c,{el:1,id:1}),e=function(e,d){var g=a.byId(c.id,e.ownerDocument||e);if(g&&f(g))if(9==e.nodeType)return o(g,d);else{for(var h=g.parentNode;h;){if(h==e)break;h=h.parentNode}if(h)return o(g,d)}};else if(i&&/\{\s*\[native code\]\s*\}/.test(String(i))&&
c.classes.length&&!h)var f=x(c,{el:1,classes:1,id:1}),j=c.classes.join(" "),e=function(a,c,e){for(var c=o(0,c),d,g=0,h=a.getElementsByClassName(j);d=h[g++];)f(d,a)&&R(d,e)&&c.push(d);return c};else!g&&!c.loops?e=function(a,e,d){for(var e=o(0,e),f=0,g=a.getElementsByTagName(c.getTag());a=g[f++];)R(a,d)&&e.push(a);return e}:(f=x(c,{el:1,tag:1,id:1}),e=function(a,e,d){for(var e=o(0,e),g,h=0,i=a.getElementsByTagName(c.getTag());g=i[h++];)f(g,a)&&R(g,d)&&e.push(g);return e});return I[c.query]=e},E={},
F={},M=function(a){var d=l(c(a));if(d.length==1){var g=L(d[0]);return function(a){if(a=g(a,new f))a.nozip=!0;return a}}return function(a){for(var a=o(a),c,e,f=d.length,g,h,i=0;i<f;i++){h=[];c=d[i];e=a.length-1;if(e>0)g={},h.nozip=!0;e=L(c);for(var j=0;c=a[j];j++)e(c,h,g);if(!h.length)break;a=h}return h}},G=navigator.userAgent,G=a.isWebKit&&G.indexOf("WebKit/")>0&&parseFloat(G.split("WebKit/")[1])>528,N=a.isIE?"commentStrip":"nozip",J=!!a.doc.querySelectorAll&&(!a.isSafari||a.isSafari>3.1||G),O=/n\+\d|([^ ])?([>~+])([^ =])?/g,
U=function(a,c,e,d){return e?(c?c+" ":"")+e+(d?" "+d:""):a},T=function(c,e){c=c.replace(O,U);if(J){var d=F[c];if(d&&!e)return d}if(d=E[c])return d;var d=c.charAt(0),f=-1==c.indexOf(" ");c.indexOf("#")>=0&&f&&(e=!0);if(J&&!e&&">~+".indexOf(d)==-1&&(!a.isIE||c.indexOf(":")==-1)&&!(h&&c.indexOf(".")>=0)&&c.indexOf(":contains")==-1&&c.indexOf(":checked")==-1&&c.indexOf("|=")==-1){var g=">~+".indexOf(c.charAt(c.length-1))>=0?c+" *":c;return F[c]=function(a){try{if(!(9==a.nodeType||f))throw"";var e=a.querySelectorAll(g);
e[N]=!0;return e}catch(d){return T(c,!0)(a)}}}else{var i=c.split(/\s*,\s*/);return E[c]=i.length<2?M(c):function(a){for(var c=0,e=[],d;d=i[c++];)e=e.concat(M(d)(a));return e}}},Q=0,V=a.isIE?function(a){return j?a.getAttribute("_uid")||a.setAttribute("_uid",++Q)||Q:a.uniqueID}:function(a){return a._uid||(a._uid=++Q)},R=function(a,c){if(!c)return 1;var e=V(a);return!c[e]?c[e]=1:0},W=function(c){if(c&&c.nozip)return f._wrap?f._wrap(c):c;var e=new f;if(!c||!c.length)return e;c[0]&&e.push(c[0]);if(c.length<
2)return e;Q++;if(a.isIE&&j){var d=Q+"";c[0].setAttribute("_zipIdx",d);for(var g=1,h;h=c[g];g++)c[g].getAttribute("_zipIdx")!=d&&e.push(h),h.setAttribute("_zipIdx",d)}else if(a.isIE&&c.commentStrip)try{for(g=1;h=c[g];g++)n(h)&&e.push(h)}catch(i){}else{c[0]&&(c[0]._zipIdx=Q);for(g=1;h=c[g];g++)c[g]._zipIdx!=Q&&e.push(h),h._zipIdx=Q}return e};a.query=function(c,e){f=a._NodeListCtor;if(!c)return new f;if(c.constructor==f)return c;if(typeof c!="string")return new f(c);if(typeof e=="string"&&(e=a.byId(e),
!e))return new f;var e=e||a.doc,d=e.ownerDocument||e.documentElement;j=e.contentType&&e.contentType=="application/xml"||a.isOpera&&(e.doctype||d.toString()=="[object XMLDocument]")||!!d&&(a.isIE?d.xml:e.xmlVersion||d.xmlVersion);return(d=T(c)(e))&&d.nozip&&!f._wrap?d:W(d)};a.query.pseudos=B;a._filterQueryResult=function(c,e,d){for(var f=new a._NodeListCtor,g=l(e),g=g.length==1&&!/[^\w#\.]/.test(e)?x(g[0]):function(a){return dojo.query(e,d).indexOf(a)!=-1},h=0,i;i=c[h];h++)g(i)&&f.push(i);return f}},
d=function(){acme={trim:function(a){for(var a=a.replace(/^\s+/,""),c=a.length-1;c>=0;c--)if(/\S/.test(a.charAt(c))){a=a.substring(0,c+1);break}return a},forEach:function(a,c,e){if(a&&a.length)for(var d=0,g=a.length;d<g;++d)c.call(e||window,a[d],d,a)},byId:function(a,c){return typeof a=="string"?(c||document).getElementById(a):a},doc:document,NodeList:Array};var a=navigator,c=a.userAgent,a=a.appVersion,d=parseFloat(a);acme.isOpera=c.indexOf("Opera")>=0?d:void 0;acme.isKhtml=a.indexOf("Konqueror")>=
0?d:void 0;acme.isWebKit=parseFloat(c.split("WebKit/")[1])||void 0;acme.isChrome=parseFloat(c.split("Chrome/")[1])||void 0;if((c=Math.max(a.indexOf("WebKit"),a.indexOf("Safari"),0))&&!acme.isChrome)if(acme.isSafari=parseFloat(a.split("Version/")[1]),!acme.isSafari||parseFloat(a.substr(c+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){c(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"),c(this.queryPortability||this.acme||dojo)):c(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(c){(function(){var d=c.config;c.fieldToObject=function(a){var e=null;if(a=c.byId(a)){var d=a.name,f=(a.type||"").toLowerCase();if(d&&f&&!a.disabled)if(f=="radio"||f=="checkbox"){if(a.checked)e=a.value}else a.multiple?(e=[],c.query("option",a).forEach(function(a){a.selected&&e.push(a.value)})):e=a.value}return e};c.formToObject=function(a){var e={};c.forEach(c.byId(a).elements,
function(a){var d=a.name,f=(a.type||"").toLowerCase();if(d&&f&&"file|submit|image|reset|button|".indexOf(f)==-1&&!a.disabled){a=c.fieldToObject(a);if(a!==null){var g=e[d];typeof g=="string"?e[d]=[g,a]:c.isArray(g)?g.push(a):e[d]=a}if(f=="image")e[d+".x"]=e[d+".y"]=e[d].x=e[d].y=0}});return e};c.objectToQuery=function(a){var e=encodeURIComponent,d=[],f={},g;for(g in a){var h=a[g];if(h!=f[g]){var i=e(g)+"=";if(c.isArray(h))for(var j=0;j<h.length;j++)d.push(i+e(h[j]));else d.push(i+e(h))}}return d.join("&")};
c.formToQuery=function(a){return c.objectToQuery(c.formToObject(a))};c.formToJson=function(a,e){return c.toJson(c.formToObject(a),e)};c.queryToObject=function(a){var e={},a=a.split("&"),d=decodeURIComponent;c.forEach(a,function(a){if(a.length){var f=a.split("="),a=d(f.shift()),f=d(f.join("="));typeof e[a]=="string"&&(e[a]=[e[a]]);c.isArray(e[a])?e[a].push(f):e[a]=f}});return e};c._blockAsync=!1;var a=c._contentHandlers=c.contentHandlers={text:function(a){return a.responseText},json:function(a){return c.fromJson(a.responseText||
null)},"json-comment-filtered":function(a){c.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,e=a.indexOf("/*"),d=a.lastIndexOf("*/");if(e==-1||d==-1)throw Error("JSON was not comment filtered");return c.fromJson(a.substring(e+
2,d))},javascript:function(a){return c.eval(a.responseText)},xml:function(a){var e=a.responseXML;if(c.isIE&&(!e||!e.documentElement)){var d=function(a){return"MSXML"+a+".DOMDocument"},d=["Microsoft.XMLDOM",d(6),d(4),d(3),d(2)];c.some(d,function(c){try{var d=new ActiveXObject(c);d.async=!1;d.loadXML(a.responseText);e=d}catch(f){return!1}return!0})}return e},"json-comment-optional":function(c){return c.responseText&&/^[^{\[]*\/\*/.test(c.responseText)?a["json-comment-filtered"](c):a.json(c)}};c._ioSetArgs=
function(a,e,f,g){var h={args:a,url:a.url},i=null;if(a.form){var i=c.byId(a.form),j=i.getAttributeNode("action");h.url=h.url||(j?j.value:null);i=c.formToObject(i)}j=[{}];i&&j.push(i);a.content&&j.push(a.content);a.preventCache&&j.push({"dojo.preventCache":(new Date).valueOf()});h.query=c.objectToQuery(c.mixin.apply(null,j));h.handleAs=a.handleAs||"text";var k=new c.Deferred(e);k.addCallbacks(f,function(a){return g(a,k)});var l=a.load;l&&c.isFunction(l)&&k.addCallback(function(c){return l.call(a,c,
h)});var m=a.error;m&&c.isFunction(m)&&k.addErrback(function(c){return m.call(a,c,h)});var o=a.handle;o&&c.isFunction(o)&&k.addBoth(function(c){return o.call(a,c,h)});d.ioPublish&&c.publish&&h.args.ioPublish!==!1&&(k.addCallbacks(function(a){c.publish("/dojo/io/load",[k,a]);return a},function(a){c.publish("/dojo/io/error",[k,a]);return a}),k.addBoth(function(a){c.publish("/dojo/io/done",[k,a]);return a}));k.ioArgs=h;return k};var e=function(a){a.canceled=!0;var c=a.ioArgs.xhr,e=typeof c.abort;(e==
"function"||e=="object"||e=="unknown")&&c.abort();a=a.ioArgs.error;if(!a)a=Error("xhr cancelled"),a.dojoType="cancel";return a},g=function(c){c=a[c.ioArgs.handleAs](c.ioArgs.xhr);return c===void 0?null:c},f=function(a,c){c.ioArgs.args.failOk||console.error(a);return a},h=null,i=[],j=0,k=function(a){j<=0&&(j=0,d.ioPublish&&c.publish&&(!a||a&&a.ioArgs.args.ioPublish!==!1)&&c.publish("/dojo/io/stop"))},l=function(){var a=(new Date).getTime();if(!c._blockAsync)for(var e=0,d;e<i.length&&(d=i[e]);e++){var f=
d.dfd,g=function(){if(!f||f.canceled||!d.validCheck(f))i.splice(e--,1),j-=1;else if(d.ioCheck(f))i.splice(e--,1),d.resHandle(f),j-=1;else if(f.startTime&&f.startTime+(f.ioArgs.args.timeout||0)<a){i.splice(e--,1);var c=Error("timeout exceeded");c.dojoType="timeout";f.errback(c);f.cancel();j-=1}};if(c.config.debugAtAllCosts)g.call(this);else try{g.call(this)}catch(l){f.errback(l)}}k(f);i.length||(clearInterval(h),h=null)};c._ioCancelAll=function(){try{c.forEach(i,function(a){try{a.dfd.cancel()}catch(c){}})}catch(a){}};
c.isIE&&c.addOnWindowUnload(c._ioCancelAll);c._ioNotifyStart=function(a){d.ioPublish&&c.publish&&a.ioArgs.args.ioPublish!==!1&&(j||c.publish("/dojo/io/start"),j+=1,c.publish("/dojo/io/send",[a]))};c._ioWatch=function(a,c,e,d){var f=a.ioArgs.args;if(f.timeout)a.startTime=(new Date).getTime();i.push({dfd:a,validCheck:c,ioCheck:e,resHandle:d});h||(h=setInterval(l,50));f.sync&&l()};var m=function(a){return a.ioArgs.xhr.readyState},o=function(a){return 4==a.ioArgs.xhr.readyState},n=function(a){var e=a.ioArgs.xhr;
if(c._isDocumentOk(e))a.callback(a);else{var d=Error("Unable to load "+a.ioArgs.url+" status:"+e.status);d.status=e.status;d.responseText=e.responseText;a.errback(d)}};c._ioAddQueryToUrl=function(a){if(a.query.length)a.url+=(a.url.indexOf("?")==-1?"?":"&")+a.query,a.query=null};c.xhr=function(a,d,h){var i=c._ioSetArgs(d,e,g,f),j=i.ioArgs,k=j.xhr=c._xhrObj(j.args);if(!k)return i.cancel(),i;"postData"in d?j.query=d.postData:"putData"in d?j.query=d.putData:"rawBody"in d?j.query=d.rawBody:(arguments.length>
2&&!h||"POST|PUT".indexOf(a.toUpperCase())==-1)&&c._ioAddQueryToUrl(j);k.open(a,j.url,d.sync!==!0,d.user||void 0,d.password||void 0);if(d.headers)for(var l in d.headers)l.toLowerCase()==="content-type"&&!d.contentType?d.contentType=d.headers[l]:d.headers[l]&&k.setRequestHeader(l,d.headers[l]);k.setRequestHeader("Content-Type",d.contentType||"application/x-www-form-urlencoded");(!d.headers||!("X-Requested-With"in d.headers))&&k.setRequestHeader("X-Requested-With","XMLHttpRequest");c._ioNotifyStart(i);
if(c.config.debugAtAllCosts)k.send(j.query);else try{k.send(j.query)}catch(w){j.error=w,i.cancel()}c._ioWatch(i,m,o,n);return i};c.xhrGet=function(a){return c.xhr("GET",a)};c.rawXhrPost=c.xhrPost=function(a){return c.xhr("POST",a,!0)};c.rawXhrPut=c.xhrPut=function(a){return c.xhr("PUT",a,!0)};c.xhrDelete=function(a){return c.xhr("DELETE",a)}})();return c.xhr});
define("dojo/_base/fx",["dojo/lib/kernel","dojo/_base/Color","dojo/_base/connect","dojo/_base/lang","dojo/_base/html"],function(c){(function(){var d=c._mixin;c._Line=function(a,c){this.start=a;this.end=c};c._Line.prototype.getValue=function(a){return(this.end-this.start)*a+this.start};c.Animation=function(a){d(this,a);if(c.isArray(this.curve))this.curve=new c._Line(this.curve[0],this.curve[1])};c._Animation=c.Animation;c.extend(c.Animation,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,
_getStep:function(){var a=this._percent,c=this.easing;return c?c(a):a},_fire:function(a,e){var d=e||[];if(this[a])if(c.config.debugAtAllCosts)this[a].apply(this,d);else try{this[a].apply(this,d)}catch(f){console.error("exception in animation handler for:",a),console.error(f)}return this},play:function(a,e){this._delayTimer&&this._clearTimer();if(e)this._stopTimer(),this._active=this._paused=!1,this._percent=0;else if(this._active&&!this._paused)return this;this._fire("beforeBegin",[this.node]);var d=
a||this.delay,f=c.hitch(this,"_play",e);if(d>0)return this._delayTimer=setTimeout(f,d),this;f();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,c){this._stopTimer();this._active=this._paused=!0;this._percent=a;c&&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,e=null,g={run:function(){}};c.extend(c.Animation,{_startTimer:function(){if(!this._timer)this._timer=c.connect(g,"run",this,"_cycle"),a++;e||(e=setInterval(c.hitch(g,"run"),this.rate))},_stopTimer:function(){if(this._timer)c.disconnect(this._timer),this._timer=null,a--;a<=0&&(clearInterval(e),e=null,a=0)}});var f=c.isIE?function(a){var e=
a.style;if(!e.width.length&&c.style(a,"width")=="auto")e.width="auto"}:function(){};c._fade=function(a){a.node=c.byId(a.node);var e=d({properties:{}},a),a=e.properties.opacity={};a.start=!("start"in e)?function(){return+c.style(e.node,"opacity")||0}:e.start;a.end=e.end;a=c.animateProperty(e);c.connect(a,"beforeBegin",c.partial(f,e.node));return a};c.fadeIn=function(a){return c._fade(d({end:1},a))};c.fadeOut=function(a){return c._fade(d({end:0},a))};c._defaultEasing=function(a){return 0.5+Math.sin((a+
1.5)*Math.PI)/2};var h=function(a){this._properties=a;for(var e in a){var d=a[e];if(d.start instanceof c.Color)d.tempColor=new c.Color}};h.prototype.getValue=function(a){var e={},d;for(d in this._properties){var f=this._properties[d],g=f.start;g instanceof c.Color?e[d]=c.blendColors(g,f.end,a,f.tempColor).toCss():c.isArray(g)||(e[d]=(f.end-g)*a+g+(d!="opacity"?f.units||"px":0))}return e};c.animateProperty=function(a){var e=a.node=c.byId(a.node);if(!a.easing)a.easing=c._defaultEasing;a=new c.Animation(a);
c.connect(a,"beforeBegin",a,function(){var a={},f;for(f in this.properties){if(f=="width"||f=="height")this.node.display="block";var g=this.properties[f];c.isFunction(g)&&(g=g(e));g=a[f]=d({},c.isObject(g)?g:{end:g});if(c.isFunction(g.start))g.start=g.start(e);if(c.isFunction(g.end))g.end=g.end(e);var i=f.toLowerCase().indexOf("color")>=0,n=function(a,e){var d={height:a.offsetHeight,width:a.offsetWidth}[e];if(d!==void 0)return d;d=c.style(a,e);return e=="opacity"?+d:i?d:parseFloat(d)};if("end"in g){if(!("start"in
g))g.start=n(e,f)}else g.end=n(e,f);i?(g.start=new c.Color(g.start),g.end=new c.Color(g.end)):g.start=f=="opacity"?+g.start:parseFloat(g.start)}this.curve=new h(a)});c.connect(a,"onAnimate",c.hitch(c,"style",a.node));return a};c.anim=function(a,e,d,f,g,h){return c.animateProperty({node:a,duration:d||c.Animation.prototype.duration,properties:e,easing:f,onEnd:g}).play(h||0)}})();return c.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(c){return c});(function(){var c=this;if(!c.define)c.define=function(d){c.orion=c.orion||{};c.orion.Deferred=d();delete c.define}})();
define("orion/Deferred",[],function(){function c(c){if(h)a?(e.next={notify:c,next:null},e=e.next):e=a={notify:c,next:null};else{h=!0;do{for(;c;){c();if(g)a?e.next=g:a=g,e=f;a?(g=a.next,f=e,c=a.notify,a=e=null):c=null}h=!1}while(h)}}function d(){function a(){for(;g;){var c=g;g=g.next;var d=c.deferred;if(c[f])try{var i=c[f](e);i&&typeof i.then==="function"?i.then(d.resolve,d.reject,d.update):d.resolve(i)}catch(r){d.reject(r)}else d[f](e)}g=h=null}var e,f,g,h;this.resolve=function(d){if(f)throw Error("'"+
f+"' already called");f="resolve";e=d;c(a)};this.reject=function(d){if(f)throw Error("'"+f+"' already called");f="reject";e=d;c(a)};this.update=this.progress=this.notify=function(a){for(var c=g;c;){if(c.update)try{c.update(a)}catch(e){}c=c.next}};this.then=function(e,j,p){e={resolve:e,reject:j,update:p,deferred:new d};g?h.next=e:g=e;h=e;f&&c(a);return e.deferred.promise};this.promise={then:this.then};this.state=function(){return f||"wait"};this.all=function(a,c){function e(a,c){f||(h[a]=c,--g===0&&
i.resolve(h))}function d(a,g){if(!f){if(c)try{e(a,c(g));return}catch(h){g=h}i.reject(g)}}var g=a.length,h=[],i=this;g===0?this.resolve(h):a.forEach(function(a,c){a.then(e.bind(null,c),d.bind(null,c))});return this.promise}}var a,e,g,f,h=!1;d.when=function(a,c,e,f){var g;if(!(a&&typeof a.then==="function"))g=new d,g.resolve(a),a=g.promise;return a.then(c,e,f)};return d});
define("orion/serviceregistry",["orion/Deferred"],function(c){function d(a,c,e){this.serviceId=a;this.name=c;this.properties=e}function a(a,c,e){this.serviceId=a;this.serviceReference=c;this.internalRegistry=e}function e(a,e,d,f){return function(){var g;if(a.isRegistered(e)){try{var h=d[f].apply(d,Array.prototype.slice.call(arguments));if(h&&typeof h.then==="function")return h;else g=new c,g.resolve(h)}catch(n){g=new c,g.reject(n)}return g.promise}throw Error("Service was unregistered");}}function g(a,
c,d){this.serviceId=a;this.implementation=c;this.internalRegistry=d;for(var f in c)typeof c[f]==="function"&&(this[f]=e(d,a,c,f))}function f(){this._namedlisteners={}}function h(){this._entries=[];this._namedReferences={};this._serviceEventTarget=new f;var a=this;this.internalRegistry={isRegistered:function(c){return a._entries[c]?!0:!1},unregisterService:function(c){var e=a._entries[c];if(e){for(var d=e.reference,f=a._namedReferences[d.getName()],g=0;g<f.length;g++)if(f[g]===d){f.length===1?delete a._namedReferences[d.getName()]:
f.splice(g,1);break}a._entries[c]=null;a._serviceEventTarget.dispatchEvent("serviceRemoved",d,e.service)}},dispatchEvent:function(c,e){var d=a._entries[c];d&&d.eventTarget.dispatchEvent.apply(d.eventTarget,[e].concat(Array.prototype.slice.call(arguments,2)))},addEventListener:function(c,e,d){(c=a._entries[c])&&c.eventTarget.addEventListener(e,d)},removeEventListener:function(c,e,d){(c=a._entries[c])&&c.eventTarget.removeEventListener(e,d)}}}d.prototype={getServiceId:function(){return this.serviceId},
getName:function(){return this.name},getPropertyNames:function(){var a=[],c;for(c in this.properties)this.properties.hasOwnProperty(c)&&a.push(c);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;g.prototype={addEventListener:function(a,c){this.internalRegistry.addEventListener(this.serviceId,a,c)},removeEventListener:function(a,c){this.internalRegistry.removeEventListener(this.serviceId,a,c)}};g.prototype.constructor=g;f.prototype={dispatchEvent:function(a){var c=this._namedlisteners[a];if(c)for(var e=0;e<c.length;e++)try{var d=Array.prototype.slice.call(arguments,1);c[e].apply(null,d)}catch(f){console.log(f)}},addEventListener:function(a,c){this._namedlisteners[a]=
this._namedlisteners[a]||[];this._namedlisteners[a].push(c)},removeEventListener:function(a,c){var e=this._namedlisteners[a];if(e)for(var d=0;d<e.length;d++)if(e[d]===c){e.length===1?delete this._namedlisteners[a]:e.splice(d,1);break}}};f.prototype.constructor=f;h.prototype={getService:function(a){var c;if(typeof a==="string"){if(this._namedReferences[a])for(var e=0;e<this._namedReferences[a].length;e++)if(c=this._entries[this._namedReferences[a][e].getServiceId()].service)break}else c=this._entries[a.getServiceId()].service;
return c},getServiceReferences:function(a){if(a)return this._namedReferences[a]?this._namedReferences[a]:[];for(var a=[],c=0;c<this._entries.length;c++)this._entries[c]&&a.push(this._entries[c].reference);return a},registerService:function(c,e,h){var l=this._entries.length,h=new d(l,c,h),e=new g(l,e,this.internalRegistry);this._namedReferences[c]=this._namedReferences[c]||[];this._namedReferences[c].push(h);this._entries.push({reference:h,service:e,eventTarget:new f});this._serviceEventTarget.dispatchEvent("serviceAdded",
h,e);return new a(l,h,this.internalRegistry)},addEventListener:function(a,c){this._serviceEventTarget.addEventListener(a,c)},removeEventListener:function(a,c){this._serviceEventTarget.removeEventListener(a,c)}};h.prototype.constructor=h;return{ServiceReference:d,ServiceRegistration:a,Service:g,EventTarget:f,ServiceRegistry:h}});
define("orion/xhr",["orion/Deferred"],function(c){function d(a){return encodeURIComponent(a).replace(/[!'()*]/g,function(a){return"%"+a.charCodeAt(0).toString(16).toUpperCase()})}return function(a,e,g){var g=g||{},f=arguments.length>3&&arguments[3]?arguments[3]:new XMLHttpRequest,h=new c,i=g.headers||{},j=g.log||!1,k,l;typeof i["X-Requested-With"]==="undefined"&&(i["X-Requested-With"]="XMLHttpRequest");if(g.query&&typeof g.query==="object"){var m=g.query,o=Object.keys(m),n=[];for(l=0;l<o.length;l++){var p=
o[l],r=m[p];n.push(d(p)+"="+d(r))}n.length&&(m=e.split("#"),m[0]+=(m[0].indexOf("?")===-1?"?":"&")+n.join("&"),e=m.join("#"))}if(typeof g.data!=="undefined"&&(a==="POST"||a==="PUT"))k=g.data;if(typeof g.responseType==="string")f.responseType=g.responseType;f.onreadystatechange=function(){if(f.readyState===4){var a=f.status,c=typeof f.response!=="undefined"?f.response:f.responseText,c={args:g,response:c,responseText:typeof c==="string"?c:null,status:a,url:e,xhr:f};200<=a&&a<400?h.resolve(c):(j&&console&&
console.log(Error(f.statusText)),h.reject(c))}};try{f.open(a,e,!0);if(typeof g.timeout==="number")f.timeout=g.timeout,f.addEventListener("timeout",function(a){h.reject("Timeout exceeded: "+a)});var s=Object.keys(i);for(l=0;l<s.length;l++){var q=s[l];f.setRequestHeader(q,i[q])}f.send(k)}catch(t){h.reject(t)}return h}});
define("orion/es5shim",[],function(){if(!Function.prototype.bind)Function.prototype.bind=function(c){var d=this,a=Array.prototype.slice.call(arguments,1);return a.length?function(){return arguments.length?d.apply(c,a.concat(Array.prototype.slice.call(arguments))):d.apply(c,a)}:function(){return arguments.length?d.apply(c,arguments):d.call(c)}}});
define("orion/preferences",["require","orion/Deferred","orion/xhr","orion/es5shim"],function(c,d,a){function e(a,c){this._name=a;this._providers=c;this._flushPending=!1;this._cached=null;this._stores=[];this._dirty=[]}function g(a,c){return{get:function(e,d){if(c===0)return null;var f=localStorage.getItem(a+e);if(f===null)return null;f=JSON.parse(f);return d||c===-1||f._expires&&f._expires>(new Date).getTime()?(delete f._expires,f):null},set:function(e,d){if(c!==0){if(c!==-1)d._expires=(new Date).getTime()+
1E3*c;if(Object.keys(d).length===0)localStorage.removeItem(a+e);else{var f=JSON.stringify(d);localStorage.setItem(a+e,f);delete d._expires}}},remove:function(c){localStorage.removeItem(a+c)}}}function f(a){this._currentPromises={};this._cache=new g("/orion/preferences/user",3600);this._service=null;this.available=function(){if(!this._service){var c=a.getServiceReferences("orion.core.preference.provider");if(c.length>0)this._service=a.getService(c[0])}return!!this._service}}function h(a){this._location=
a;this._currentPromise=null;this._cache=new g("/orion/preferences/default",3600)}function i(){this._cache=new g("/orion/preferences/local",-1)}function j(a,e){this._userProvider=new f(a);this._localProvider=new i;e=e||"defaults.pref";e.indexOf("://")===-1&&(e=c.toUrl(e));this._defaultsProvider=new h(e);this._serviceRegistration=a.registerService("orion.core.preference",this)}e.prototype={_flush:function(){for(var a=[],c=0;c<this._stores.length;++c){var e=this._stores[c];this._dirty.indexOf(e)!==-1&&
a.push(this._providers[c].put(this._name,e))}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 c=this._stores[a],e;for(e in c)c.hasOwnProperty(e)&&typeof this._cached[e]==="undefined"&&(this._cached[e]=
c[e])}}return this._cached},keys:function(){return Object.keys(this._getCached())},get:function(a){return this._getCached()[a]},put:function(a,c){if(this._stores.length!==0){var e=this._stores[0];if(e[a]!==c)e[a]=c,this._cached=null,this._scheduleFlush(e)}},remove:function(a){for(var c=0;c<this._stores.length;++c){var e=this._stores[c];if(e.hasOwnProperty(a))return delete e[a],this._cached=null,this._scheduleFlush(e),!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 c=this,e=[],f=0;f<this._providers.length;++f)e.push(this._providers[f].get(this._name,a).then(function(a){return function(e){c._stores[a]=e}}(f)));return(new d).all(e).then(function(){c._cached=null;c._getCached()})},flush:function(){this._flush()}};f.prototype={get:function(a,c){if(this._currentPromises[a])return this._currentPromises[a];var e=new d,
f=null;c?this._cache.remove(a):f=this._cache.get(a);if(f!==null)e.resolve(f);else{this._currentPromises[a]=e;var g=this;this._service.get(a).then(function(c){g._cache.set(a,c);delete g._currentPromises[a];e.resolve(c)},function(c){c.status===404?(c={},g._cache.set(a,c),delete g._currentPromises[a],e.resolve(c)):(delete g._currentPromises[a],e.resolve(g._cache.get(a,!0)||{}))})}return e},put:function(a,c){this._cache.set(a,c);return this._service.put(a,c)}};h.prototype={get:function(c,e){if(this._currentPromise)return this._currentPromise;
var f=new d,g=null;e?this._cache.remove(c):g=this._cache.get(c);if(g!==null)f.resolve(g);else{this._currentPromise=f;var h=this;a("GET",this._location,{headers:{"Orion-Version":"1"},timeout:15E3}).then(function(a){a=JSON.parse(a.response);h._cache.set(c,a[c]||{});h._currentPromise=null;f.resolve(a[c]||{})},function(a){a.xhr.status===401||a.xhr.status===404?(h._cache.set(c,{}),h._currentPromise=null,f.resolve({})):(h._currentPromise=null,a=h._cache.get(c,!0),a!==null?f.resolve(a[c]||{}):f.resolve({}))})}return f},
put:function(){var a=new d;a.resolve();return a}};i.prototype={get:function(a){var c=new d,a=this._cache.get(a);a!==null?c.resolve(a):c.resolve({});return c},put:function(a,c){var e=new d;this._cache.set(a,c);e.resolve();return e}};j.DEFAULT_SCOPE=1;j.LOCAL_SCOPE=2;j.USER_SCOPE=4;j.prototype={listenForChangedSettings:function(a){window.addEventListener("storage",a,!1);return"/orion/preferences/local/settings"},getPreferences:function(a,c){if(!c||typeof c!=="number"||c>7||c<1)c=j.DEFAULT_SCOPE|j.LOCAL_SCOPE|
j.USER_SCOPE;var d=[];j.USER_SCOPE&c&&this._userProvider.available()&&d.push(this._userProvider);j.LOCAL_SCOPE&c&&d.push(this._localProvider);j.DEFAULT_SCOPE&c&&d.push(this._defaultsProvider);var f=new e(a,d);return f.sync().then(function(){return f})},getSetting:function(a,c,e){for(var d,f=0;f<a.length;f++)if(a[f].label===c)for(var g=0;g<a[f].data.length;g++)if(a[f].data[g].label===e){d=a[f].data[g].value;break}return d}};return{PreferencesService:j}});
define("orion/pluginregistry",["orion/Deferred","orion/serviceregistry","orion/es5shim"],function(c,d){var a=a||{};a.Plugin=function(a,d,f){function h(a,e,d){if(!m)throw Error("plugin not connected");var g=r++,h=new c;s[String(g)]=h;f.postMessage({id:g,serviceId:a,method:e,params:d},m);return h.promise}function i(a){var c={};a.methods&&a.methods.forEach(function(e){c[e]=function(){var c=Array.prototype.slice.call(arguments);return p?h(a.serviceId,e,c):l._load().then(function(){return h(a.serviceId,
e,c)})}});return c}function j(){var a=d.services;a&&a.forEach(function(a){var c=i(a);q[a.serviceId]=f.registerService(a.type,c,a.properties)})}function k(c){var h,i;try{if(c.method)if("plugin"===c.method){if(d){if(JSON.stringify(d)!==JSON.stringify(c.params[0])){for(var k in q)q.hasOwnProperty(k)&&(q[k].unregister(),delete q[k]);d=c.params[0];j();f.updatePlugin(l)}}else d=c.params[0],j();p||(p=!0,f.dispatchEvent("pluginLoaded",l),o.resolve(l));n&&(n.resolve(l),n=null)}else"dispatchEvent"===c.method?
(h=q[c.serviceId],h.dispatchEvent.apply(h,c.params)):"progress"===c.method?(i=s[String(c.requestId)],i.update.apply(i,c.params)):(p||o.reject(Error("Load timeout for plugin: "+a)),n&&(n.reject(Error("Load timeout for plugin: "+a)),n=null));else i=s[String(c.id)],delete s[String(c.id)],c.error?i.reject(c.error):i.resolve(c.result)}catch(m){console.log(m)}}var l=this,m=null,o=new c,n=null,p=!1,r=0,s={},q={};this.getLocation=function(){return a};this.getData=function(){return d};this.uninstall=function(){for(var a in q)q.hasOwnProperty(a)&&
(q[a].unregister(),delete q[a]);m&&(f.disconnect(m),m=null);f.uninstallPlugin(this)};this.getServiceReferences=function(){var a=[],c;for(c in q)q.hasOwnProperty(c)&&a.push(q[c].getServiceReference());return a};this.update=function(){if(!p)return this._load();n===null&&(n=new c,f.disconnect(m),m=f.connect(a,k));return n.promise};this._load=function(c,h){m||(m=f.connect(a,k,h),o.then(null,function(){c||(d={},f.updatePlugin(l))}));return o.promise};if(typeof a!=="string")throw Error("invalid url:"+a);
d&&j()};a.PluginRegistry=function(e,g,f){function h(a){if(a.indexOf("://")===-1){var c=document.createElement("a");c.href=a;return c.href}return a}function i(a){a.getData()._expires=(new Date).getTime()+36E5;k["plugin."+a.getLocation()]=JSON.stringify(a.getData())}function j(a){var c=null,a=h(a);l.some(function(e){if(a===e.getLocation())return c=e,!0});return c}var k=g||localStorage||{},l=[],m=[],o=new d.EventTarget;addEventListener("message",function(a){var c=a.source;m.some(function(e){if(c===e.target){if(typeof e.useStructuredClone===
"undefined")e.useStructuredClone=typeof a.data!=="string";e.handler(e.useStructuredClone?a.data:JSON.parse(a.data));return!0}})},!1);var n={registerService:e.registerService.bind(e),connect:function(a,c,e){function d(){c({method:"timeout"})}var g={handler:c,url:a},h=setTimeout(d,e||15E3);if(a.match(/\.js$/)&&typeof Worker!=="undefined"){var i=new Worker(a);i.onmessage=function(a){if(typeof g.useStructuredClone==="undefined")g.useStructuredClone=typeof a.data!=="string";g.handler(g.useStructuredClone?
a.data:JSON.parse(a.data))};g.target=i;g.close=function(){i.terminate()}}else{var j=document.createElement("iframe");j.id=a;j.name=a;if(!f)j.style.display="none",j.style.visibility="hidden";j.src=a;j.onload=function(){clearTimeout(h);setTimeout(d,5E3)};j.sandbox="allow-scripts allow-same-origin";document.body.appendChild(j);g.target=j.contentWindow;g.close=function(){document.body.removeChild(j)}}m.push(g);return g},disconnect:function(a){for(var c=0;c<m.length;c++)if(a===m[c]){m.splice(c,1);try{a.close()}catch(e){}break}},
uninstallPlugin:function(a){delete k["plugin."+a.getLocation()];for(var c=0;c<l.length;c++)if(a===l[c]){l.splice(c,1);o.dispatchEvent("pluginRemoved",a);break}},updatePlugin:function(a){i(a);o.dispatchEvent("pluginUpdated",a)},postMessage:function(a,c){c.target.postMessage(c.useStructuredClone?a:JSON.stringify(a),c.url)},dispatchEvent:function(a,c){try{o.dispatchEvent(a,c)}catch(e){console&&console.log(e)}}};this.startup=function(e){var d=[];e.forEach(function(c){var c=h(c),e="plugin."+c,f=k[e]?JSON.parse(k[e]):
null;f&&f._expires&&f._expires>(new Date).getTime()?j(c)===null&&(delete f._expires,l.push(new a.Plugin(c,f,n))):(k[e]="{}",c=new a.Plugin(c,{},n),l.push(c),d.push(c._load(!1,5E3)))});return(new c).all(d,function(){})};this.shutdown=function(){m.forEach(function(a){try{a.close()}catch(c){}})};this.installPlugin=function(e,d){var e=h(e),f=new c,g=j(e);if(g)if(g.getData())f.resolve(g);else{var k=function(a){a.getLocation()===e&&(f.resolve(a),o.removeEventListener("pluginAdded",k))};o.addEventListener("pluginAdded",
k)}else g=new a.Plugin(e,d,n),l.push(g),g.getData()?(i(g),o.dispatchEvent("pluginAdded",g),f.resolve(g)):g._load(!0).then(function(){i(g);o.dispatchEvent("pluginAdded",g);f.resolve(g)},function(a){f.reject(a)});return f.promise};this.getPlugins=function(){var a=[];l.forEach(function(c){c.getData()&&a.push(c)});return a};this.getPlugin=function(a){return(a=j(a))&&a.getData()?a:null};this.addEventListener=function(a,c){o.addEventListener(a,c)};this.removeEventListener=function(a,c){o.removeEventListener(a,
c)}};return a});
define("orion/bootstrap",["require","orion/Deferred","orion/serviceregistry","orion/preferences","orion/pluginregistry"],function(c,d,a,e,g){var f;return{startup:function(){if(f)return f;f=new d;var h=new a.ServiceRegistry,i=new e.PreferencesService(h),j=new g.PluginRegistry(h);return i.getPreferences("/plugins").then(function(a){for(var a=a.keys(),e=0;e<a.length;++e)a[e].indexOf("://")===-1&&(a[e]=c.toUrl(a[e]));return j.startup(a)}).then(function(){if(h.getServiceReferences("orion.core.preference.provider").length>0)return i.getPreferences("/plugins",
i.USER_SCOPE).then(function(a){for(var a=a.keys(),e=0;e<a.length;++e)a[e].indexOf("://")===-1&&(a[e]=c.toUrl(a[e]));return j.startup(a)})}).then(function(){var a=h.getService("orion.core.auth");a&&a.getUser().then(function(c){c||a.getAuthForm(window.location.href).then(function(a){window.location=a})})}).then(function(){var a={serviceRegistry:h,preferences:i,pluginRegistry:j};f.resolve(a);return a})}}});define("dijit",["dojo"],function(c){return dijit=c._dijit||{}});
define("orion/nls/messages",["orion/i18n!orion/nls/messages"],function(c){var d={root:!0};Object.keys(c).forEach(function(a){typeof d[a]==="undefined"&&(d[a]=c[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 c=["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,e=typeof location!=="undefined"&&location.href,g=e&&location.protocol&&location.protocol.replace(/\:/,""),f=e&&location.hostname,h=e&&(location.port||void 0),i=[];define("text",[],function(){var j,k,l;typeof window!=="undefined"&&window.navigator&&window.document?k=function(a,c){var e=j.createXhr();e.open("GET",a,!0);e.onreadystatechange=
function(){e.readyState===4&&c(e.responseText)};e.send(null)}:typeof process!=="undefined"&&process.versions&&process.versions.node?(l=require.nodeRequire("fs"),k=function(a,c){var e=l.readFileSync(a,"utf8");e.indexOf("\ufeff")===0&&(e=e.substring(1));c(e)}):typeof Packages!=="undefined"&&(k=function(a,c){var e=new java.io.File(a),d=java.lang.System.getProperty("line.separator"),e=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(e),"utf-8")),f,g,h="";try{f=new java.lang.StringBuffer;
(g=e.readLine())&&g.length()&&g.charAt(0)===65279&&(g=g.substring(1));for(f.append(g);(g=e.readLine())!==null;)f.append(d),f.append(g);h=String(f.toString())}finally{e.close()}c(h)});return j={version:"1.0.7",strip:function(c){if(c){var c=c.replace(d,""),e=c.match(a);e&&(c=e[1])}else c="";return c},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,e,
d;if(typeof XMLHttpRequest!=="undefined")return new XMLHttpRequest;else for(e=0;e<3;e++){d=c[e];try{a=new ActiveXObject(d)}catch(f){}if(a){c=[d];break}}if(!a)throw Error("createXhr(): XMLHttpRequest not available");return a},get:k,parseName:function(a){var c=!1,e=a.indexOf("."),d=a.substring(0,e),a=a.substring(e+1,a.length),e=a.indexOf("!");e!==-1&&(c=a.substring(e+1,a.length),c=c==="strip",a=a.substring(0,e));return{moduleName:d,ext:a,strip:c}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(a,
c,e,d){var f=j.xdRegExp.exec(a),g;if(!f)return!0;a=f[2];f=f[3];f=f.split(":");g=f[1];f=f[0];return(!a||a===c)&&(!f||f===e)&&(!g&&!f||g===d)},finishLoad:function(a,c,e,d,f){e=c?j.strip(e):e;f.isBuild&&(i[a]=e);d(e)},load:function(a,c,d,i){if(i.isBuild&&!i.inlineText)d();else{var k=j.parseName(a),l=k.moduleName+"."+k.ext,q=c.toUrl(l),t=i&&i.text&&i.text.useXhr||j.useXhr;!e||t(q,g,f,h)?j.get(q,function(c){j.finishLoad(a,k.strip,c,d,i)}):c([l],function(a){j.finishLoad(k.moduleName+"."+k.ext,k.strip,a,
d,i)})}},write:function(a,c,e){if(c in i){var d=j.jsEscape(i[c]);e.asModule(a+"!"+c,"define(function () { return '"+d+"';});\n")}},writeFile:function(a,c,e,d,f){var c=j.parseName(c),g=c.moduleName+"."+c.ext,h=e.toUrl(c.moduleName+"."+c.ext)+".js";j.load(g,e,function(){var c=function(a){return d(h,a)};c.asModule=function(a,c){return d.asModule(a,h,c)};j.write(a,g,c,f)},f)}}})})();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(c,d){d.getObject("i18n",!0,d);d.i18n.getLocalization=d.i18n.getLocalization||function(a,e,g){var g=d.i18n.normalizeLocale(g),f=g.split("-"),h=[a,"nls",e].join(".");if(typeof d.global.require!=="undefined"){var i=c("i18n!"+[a.replace(/\./g,"/"),"nls",e].join("/"));(d._loadedModules[h]=d._loadedModules[h]||{})[f.join("_")]=i.root||i}if(h=d._loadedModules[h]){for(var j,i=f.length;i>0;i--){var k=f.slice(0,i).join("_");if(h[k]){j=h[k];break}}if(!j)j=h.ROOT;
if(j)return a=function(){},a.prototype=j,new a}throw Error("Bundle not found: "+e+" in "+a+" , locale="+g);};d.i18n.normalizeLocale=function(a){a=a?a.toLowerCase():d.locale;a=="root"&&(a="ROOT");return a};d.i18n._requireLocalization=function(a,c,g,f){var g=d.i18n.normalizeLocale(g),h=[a,"nls",c].join("."),i="";if(f){for(var j=f.split(","),k=0;k<j.length;k++)g.indexOf(j[k])==0&&j[k].length>i.length&&(i=j[k]);i||(i="ROOT")}var j=f?i:g,l=d._loadedModules[h],k=null;if(l){if(d.config.localizationComplete&&
l._built)return;k=j.replace(/-/g,"_");k=d._loadedModules[h+"."+k]}if(!k){var l=d.provide(h),m=d._getModuleSymbols(a).concat("nls").join("/"),o;d.i18n._searchLocalePath(j,f,function(a){var g=a.replace(/-/g,"_"),i=h+"."+g,j=!1;d._loadedModules[i]?j=!0:(d.provide(i),i=[m],a!="ROOT"&&i.push(a),i.push(c),a=i.join("/")+".js",j=d._loadPath(a,null,function(a){var a=a.root||a,c=function(){};c.prototype=o;l[g]=new c;for(var e in a)l[g][e]=a[e]}));j&&l[g]?o=l[g]:l[g]=o;if(f)return!0})}f&&g!=i&&(l[g.replace(/-/g,
"_")]=l[i.replace(/-/g,"_")])};(function(){var a=d.config.extraLocale;if(a){!a instanceof Array&&(a=[a]);var c=d.i18n._requireLocalization;d.i18n._requireLocalization=function(d,f,h,i){c(d,f,h,i);if(!h)for(h=0;h<a.length;h++)c(d,f,a[h],i)}}})();d.i18n._searchLocalePath=function(a,c,g){for(var a=d.i18n.normalizeLocale(a),f=a.split("-"),a=[],h=f.length;h>0;h--)a.push(f.slice(0,h).join("-"));a.push(!1);c&&a.reverse();for(c=a.length-1;c>=0;c--)if(g(a[c]||"ROOT"))break};d.i18n._preloadLocalizations=function(a,
c){function g(f){f=d.i18n.normalizeLocale(f);d.i18n._searchLocalePath(f,!0,function(f){for(var g=0;g<c.length;g++)if(c[g]==f)return d.require(a+"_"+f),!0;return!1})}g();for(var f=d.config.extraLocale||[],h=0;h<f.length;h++)g(f[h])};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(c){c.getObject("window",!0,c);c.window.getBox=function(){var d=c.doc.compatMode=="BackCompat"?c.body():c.doc.documentElement,a=c._docScroll();return{w:d.clientWidth,h:d.clientHeight,l:a.x,t:a.y}};c.window.get=function(d){if(c.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};c.window.scrollIntoView=function(d,
a){try{var d=c.byId(d),e=d.ownerDocument||c.doc,g=e.body||c.body(),f=e.documentElement||g.parentNode,h=c.isIE,i=c.isWebKit;if((!c.isMoz&&!h&&!i&&!c.isOpera||d==g||d==f)&&typeof d.scrollIntoView!="undefined")d.scrollIntoView(!1);else{var j=e.compatMode=="BackCompat",k=h>=9&&d.ownerDocument.parentWindow.frameElement?f.clientHeight>0&&f.clientWidth>0&&(g.clientHeight==0||g.clientWidth==0||g.clientHeight>f.clientHeight||g.clientWidth>f.clientWidth)?f:g:j?g:f,e=i?g:k,l=k.clientWidth,m=k.clientHeight,o=
!c._isBodyLtr(),n=a||c.position(d),p=d.parentNode,k=function(a){return h<=6||h&&j?!1:c.style(a,"position").toLowerCase()=="fixed"};if(!k(d))for(;p;){p==g&&(p=e);var r=c.position(p),s=k(p);if(p==e){r.w=l;r.h=m;e==f&&h&&o&&(r.x+=e.offsetWidth-r.w);if(r.x<0||!h)r.x=0;if(r.y<0||!h)r.y=0}else{var q=c._getPadBorderExtents(p);r.w-=q.w;r.h-=q.h;r.x+=q.l;r.y+=q.t;var t=p.clientWidth,u=r.w-t;if(t>0&&u>0)r.w=t,r.x+=o&&(h||p.clientLeft>q.l)?u:0;t=p.clientHeight;u=r.h-t;if(t>0&&u>0)r.h=t}if(s){if(r.y<0)r.h+=r.y,
r.y=0;if(r.x<0)r.w+=r.x,r.x=0;if(r.y+r.h>m)r.h=m-r.y;if(r.x+r.w>l)r.w=l-r.x}var v=n.x-r.x,w=n.y-Math.max(r.y,0),C=v+n.w-r.w,H=w+n.h-r.h;if(C*v>0){var D=Math[v<0?"max":"min"](v,C);if(o&&(h==8&&!j||h>=9))D=-D;n.x+=p.scrollLeft;p.scrollLeft+=D;n.x-=p.scrollLeft}H*w>0&&(n.y+=p.scrollTop,p.scrollTop+=Math[w<0?"max":"min"](w,H),n.y-=p.scrollTop);p=p!=e&&!s&&p.parentNode}}}catch(B){console.error("scrollIntoView: "+B),d.scrollIntoView(!1)}};return c.window});
define("dijit/_base/manager",["dojo","dijit"],function(c,d){c.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,e){var e=e||c.global,d=0,f;for(f in this._hash)a.call(e,this._hash[f],d++,this._hash);return this},filter:function(a,
e){var e=e||c.global,g=new d.WidgetSet,f=0,h;for(h in this._hash){var i=this._hash[h];a.call(e,i,f++,this._hash)&&g.add(i)}return g},byId:function(a){return this._hash[a]},byClass:function(a){var c=new d.WidgetSet,g,f;for(g in this._hash)f=this._hash[g],f.declaredClass==a&&c.add(f);return c},toArray:function(){var a=[],c;for(c in this._hash)a.push(this._hash[c]);return a},map:function(a,e){return c.map(this.toArray(),a,e)},every:function(a,e){var e=e||c.global,d=0,f;for(f in this._hash)if(!a.call(e,
this._hash[f],d++,this._hash))return!1;return!0},some:function(a,e){var e=e||c.global,d=0,f;for(f in this._hash)if(a.call(e,this._hash[f],d++,this._hash))return!0;return!1}});(function(){d.registry=new d.WidgetSet;var a=d.registry._hash,e=c.attr,g=c.hasAttr,f=c.style;d.byId=function(c){return typeof c=="string"?a[c]:c};var h={};d.getUniqueId=function(c){var e;do e=c+"_"+(c in h?++h[c]:h[c]=0);while(a[e]);return d._scopeName=="dijit"?e:d._scopeName+"_"+e};d.findWidgets=function(c){function e(c){for(c=
c.firstChild;c;c=c.nextSibling)if(c.nodeType==1){var f=c.getAttribute("widgetId");f?(f=a[f])&&d.push(f):e(c)}}var d=[];e(c);return d};d._destroyAll=function(){d._curFocus=null;d._prevFocus=null;d._activeStack=[];c.forEach(d.findWidgets(c.body()),function(a){a._destroyed||(a.destroyRecursive?a.destroyRecursive():a.destroy&&a.destroy())})};c.isIE&&c.addOnWindowUnload(function(){d._destroyAll()});d.byNode=function(c){return a[c.getAttribute("widgetId")]};d.getEnclosingWidget=function(c){for(;c;){var e=
c.getAttribute&&c.getAttribute("widgetId");if(e)return a[e];c=c.parentNode}return null};var i=d._isElementShown=function(a){var c=f(a);return c.visibility!="hidden"&&c.visibility!="collapsed"&&c.display!="none"&&e(a,"type")!="hidden"};d.hasDefaultTabStop=function(a){switch(a.nodeName.toLowerCase()){case "a":return g(a,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return!0;case "iframe":var c;try{var e=a.contentDocument;if("designMode"in e&&e.designMode==
"on")return!0;c=e.body}catch(d){try{c=a.contentWindow.document.body}catch(f){return!1}}return c.contentEditable=="true"||c.firstChild&&c.firstChild.contentEditable=="true";default:return a.contentEditable=="true"}};var j=d.isTabNavigable=function(a){return e(a,"disabled")?!1:g(a,"tabIndex")?e(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,h,n,
p,r,s,q={},t=function(a){c.query("> *",a).forEach(function(a){if(!(c.isIE&&a.scopeName!=="HTML")&&i(a)){if(j(a)){var k=e(a,"tabIndex");if(!g(a,"tabIndex")||k==0)f||(f=a),h=a;else if(k>0){if(!n||k<p)p=k,n=a;if(!r||k>=s)s=k,r=a}k=d(a);c.attr(a,"checked")&&k&&(q[k]=a)}a.nodeName.toUpperCase()!="SELECT"&&t(a)}})};i(a)&&t(a);return{first:q[d(f)]||f,last:q[d(h)]||h,lowest:q[d(n)]||n,highest:q[d(r)]||r}};d.getFirstInTabbingOrder=function(a){a=d._getTabNavigable(c.byId(a));return a.lowest?a.lowest:a.first};
d.getLastInTabbingOrder=function(a){a=d._getTabNavigable(c.byId(a));return a.last?a.last:a.highest};d.defaultDuration=c.config.defaultDuration||200})();return d});
define("dojo/Stateful",["dojo"],function(c){c.declare("dojo.Stateful",null,{postscript:function(d){d&&c.mixin(this,d)},get:function(c){return this[c]},set:function(c,a){if(typeof c==="object"){for(var e in c)this.set(e,c[e]);return this}e=this[c];this[c]=a;this._watchCallbacks&&this._watchCallbacks(c,e,a);return this},watch:function(d,a){var e=this._watchCallbacks;if(!e)var g=this,e=this._watchCallbacks=function(a,c,d,f){var l=function(e){if(e)for(var e=e.slice(),f=0,k=e.length;f<k;f++)try{e[f].call(g,
a,c,d)}catch(l){console.error(l)}};l(e["_"+a]);f||l(e["*"])};!a&&typeof d==="function"?(a=d,d="*"):d="_"+d;var f=e[d];typeof f!=="object"&&(f=e[d]=[]);f.push(a);return{unwatch:function(){f.splice(c.indexOf(f,a),1)}}}});return c.Stateful});
define("dijit/_WidgetBase",["dojo","dijit","dijit/_base/manager","dojo/Stateful"],function(c,d){(function(){c.declare("dijit._WidgetBase",c.Stateful,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_blankGif:(c.config.blankGif||c.moduleUrl("dojo","resources/blank.gif")).toString(),postscript:function(a,c){this.create(a,c)},create:function(a,e){this.srcNodeRef=
c.byId(e);this._connects=[];this._subscribes=[];if(this.srcNodeRef&&typeof this.srcNodeRef.id=="string")this.id=this.srcNodeRef.id;if(a)this.params=a,c._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 g=this.srcNodeRef;g&&g.parentNode&&this.domNode!==g&&g.parentNode.replaceChild(this.domNode,g)}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,c){(c.params&&a in c.params||c[a])&&c.set(a,c[a])},e;for(e in this.attributeMap)a(e,this);c.forEach(this._getSetterAttributes(),function(c){c in this.attributeMap||a(c,this)},this)},_getSetterAttributes:function(){var a=this.constructor;if(!a._setterAttrs){var e=a._setterAttrs=[],d,f=a.prototype,h;for(h in f)c.isFunction(f[h])&&(d=h.match(/^_set([a-zA-Z]*)Attr$/))&&
d[1]&&e.push(d[1].charAt(0).toLowerCase()+d[1].substr(1))}return a._setterAttrs},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode)this.domNode=this.srcNodeRef||c.create("div");if(this.baseClass){var a=this.baseClass.split(" ");this.isLeftToRight()||(a=a.concat(c.map(a,function(a){return a+"Rtl"})));c.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 e=c.forEach,g=c.unsubscribe;e(this._connects,function(a){e(a,c.disconnect)});e(this._subscribes,function(a){g(a)});e(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?c.removeAttr(this.domNode,"widgetId"):
c.destroy(this.domNode),delete this.domNode);this.srcNodeRef&&(a||c.destroy(this.srcNodeRef),delete this.srcNodeRef)},destroyDescendants:function(a){c.forEach(this.getChildren(),function(c){c.destroyRecursive&&c.destroyRecursive(a)})},uninitialize:function(){return!1},_setClassAttr:function(a){c.replaceClass(this[this.attributeMap["class"]||"domNode"],a,this["class"]);this._set("class",a)},_setStyleAttr:function(a){var e=this[this.attributeMap.style||"domNode"];c.isObject(a)?c.style(e,a):e.style.cssText?
e.style.cssText+="; "+a:e.style.cssText=a;this._set("style",a)},_attrToDom:function(a,e){var d=this.attributeMap[a];c.forEach(c.isArray(d)?d:[d],function(d){var g=this[d.node||d||"domNode"];switch(d.type||"attribute"){case "attribute":c.isFunction(e)&&(e=c.hitch(this,e));d=d.attribute?d.attribute:/^on[A-Z][a-zA-Z]*$/.test(a)?a.toLowerCase():a;c.attr(g,d,e);break;case "innerText":g.innerHTML="";g.appendChild(c.doc.createTextNode(e));break;case "innerHTML":g.innerHTML=e;break;case "class":c.replaceClass(g,
e,this[a])}},this)},get:function(a){var c=this._getAttrNames(a);return this[c.g]?this[c.g]():this[a]},set:function(a,c){if(typeof a==="object"){for(var d in a)this.set(d,a[d]);return this}d=this._getAttrNames(a);if(this[d.s])var f=this[d.s].apply(this,Array.prototype.slice.call(arguments,1));else a in this.attributeMap&&this._attrToDom(a,c),this._set(a,c);return f||this},_attrPairNames:{},_getAttrNames:function(a){var c=this._attrPairNames;if(c[a])return c[a];var d=a.charAt(0).toUpperCase()+a.substr(1);
return c[a]={n:a+"Node",s:"_set"+d+"Attr",g:"_get"+d+"Attr"}},_set:function(a,c){var d=this[a];this[a]=c;this._watchCallbacks&&this._created&&c!==d&&this._watchCallbacks(a,d,c)},toString:function(){return"[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]"},getDescendants:function(){return this.containerNode?c.query("[widgetId]",this.containerNode).map(d.byNode):[]},getChildren:function(){return this.containerNode?d.findWidgets(this.containerNode):[]},connect:function(a,e,d){a=[c._connect(a,
e,this,d)];this._connects.push(a);return a},disconnect:function(a){for(var e=0;e<this._connects.length;e++)if(this._connects[e]==a){c.forEach(a,c.disconnect);this._connects.splice(e,1);break}},subscribe:function(a,e){var d=c.subscribe(a,this,e);this._subscribes.push(d);return d},unsubscribe:function(a){for(var e=0;e<this._subscribes.length;e++)if(this._subscribes[e]==a){c.unsubscribe(a);this._subscribes.splice(e,1);break}},isLeftToRight:function(){return this.dir?this.dir=="ltr":c._isBodyLtr()},placeAt:function(a,
e){a.declaredClass&&a.addChild?a.addChild(this,e):c.place(this.domNode,a,e);return this}})})();return d._WidgetBase});
define("dijit/_base/focus",["dojo","dijit","dojo/window","dijit/_base/manager"],function(c,d){c.mixin(d,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return d.getBookmark().isCollapsed},getBookmark:function(){var a,e,g=c.doc.selection,f=d._curFocus;if(c.global.getSelection){if(g=c.global.getSelection())if(g.isCollapsed){if(a=f?f.tagName:"")if(a=a.toLowerCase(),a=="textarea"||a=="input"&&(!f.type||f.type.toLowerCase()=="text"))return g={start:f.selectionStart,end:f.selectionEnd,node:f,pRange:!0},
{isCollapsed:g.end<=g.start,mark:g};a={isCollapsed:!0};if(g.rangeCount)a.mark=g.getRangeAt(0).cloneRange()}else e=g.getRangeAt(0),a={isCollapsed:!1,mark:e.cloneRange()}}else if(g){a=f?f.tagName:"";a=a.toLowerCase();if(f&&a&&(a=="button"||a=="textarea"||a=="input"))return g.type&&g.type.toLowerCase()=="none"?{isCollapsed:!0,mark:null}:(e=g.createRange(),{isCollapsed:e.text&&e.text.length?!1:!0,mark:{range:e,pRange:!0}});a={};try{e=g.createRange(),a.isCollapsed=!(g.type=="Text"?e.htmlText.length:e.length)}catch(h){return a.isCollapsed=
!0,a}if(g.type.toUpperCase()=="CONTROL")if(e.length){a.mark=[];g=0;for(f=e.length;g<f;)a.mark.push(e.item(g++))}else a.isCollapsed=!0,a.mark=null;else a.mark=e.getBookmark()}else console.warn("No idea how to store the current selection for this browser!");return a},moveToBookmark:function(a){var e=c.doc;if(a=a.mark)if(c.global.getSelection)(e=c.global.getSelection())&&e.removeAllRanges?a.pRange?(e=a.node,e.selectionStart=a.start,e.selectionEnd=a.end):(e.removeAllRanges(),e.addRange(a)):console.warn("No idea how to restore selection for this browser!");
else if(e.selection&&a){var d;a.pRange?d=a.range:c.isArray(a)?(d=e.body.createControlRange(),c.forEach(a,function(a){d.addElement(a)})):(d=e.body.createTextRange(),d.moveToBookmark(a));d.select()}},getFocus:function(a,e){var g=!d._curFocus||a&&c.isDescendant(d._curFocus,a.domNode)?d._prevFocus:d._curFocus;return{node:g,bookmark:g==d._curFocus&&c.withGlobal(e||c.global,d.getBookmark),openedForWindow:e}},focus:function(a){if(a){var e="node"in a?a.node:a,g=a.bookmark,a=a.openedForWindow,f=g?g.isCollapsed:
!1;if(e){var h=e.tagName.toLowerCase()=="iframe"?e.contentWindow:e;if(h&&h.focus)try{h.focus()}catch(i){}d._onFocusNode(e)}if(g&&c.withGlobal(a||c.global,d.isCollapsed)&&!f){a&&a.focus();try{c.withGlobal(a||c.global,d.moveToBookmark,null,[g])}catch(j){}}}},_activeStack:[],registerIframe:function(a){return d.registerWin(a.contentWindow,a)},unregisterIframe:function(a){d.unregisterWin(a)},registerWin:function(a,e){var g=function(a){d._justMouseDowned=!0;setTimeout(function(){d._justMouseDowned=!1},
0);if(!c.isIE||!a||!(a.srcElement&&a.srcElement.parentNode==null))d._onTouchNode(e||a.target||a.srcElement,"mouse")},f=c.isIE?a.document.documentElement:a.document;if(f)if(c.isIE){a.document.body.attachEvent("onmousedown",g);var h=function(a){a.srcElement.tagName.toLowerCase()!="#document"&&d.isTabNavigable(a.srcElement)?d._onFocusNode(e||a.srcElement):d._onTouchNode(e||a.srcElement)};f.attachEvent("onactivate",h);var i=function(a){d._onBlurNode(e||a.srcElement)};f.attachEvent("ondeactivate",i);return function(){a.document.detachEvent("onmousedown",
g);f.detachEvent("onactivate",h);f.detachEvent("ondeactivate",i);f=null}}else{f.body.addEventListener("mousedown",g,!0);var j=function(a){d._onFocusNode(e||a.target)};f.addEventListener("focus",j,!0);var k=function(a){d._onBlurNode(e||a.target)};f.addEventListener("blur",k,!0);return function(){f.body.removeEventListener("mousedown",g,!0);f.removeEventListener("focus",j,!0);f.removeEventListener("blur",k,!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,e){d._clearActiveWidgetsTimer&&(clearTimeout(d._clearActiveWidgetsTimer),delete d._clearActiveWidgetsTimer);var g=[];try{for(;a;){var f=c.attr(a,"dijitPopupParent");if(f)a=d.byId(f).domNode;else if(a.tagName&&a.tagName.toLowerCase()=="body"){if(a===
c.body())break;a=c.window.get(a.ownerDocument).frameElement}else{var h=a.getAttribute&&a.getAttribute("widgetId"),i=h&&d.byId(h);i&&!(e=="mouse"&&i.get("disabled"))&&g.unshift(h);a=a.parentNode}}}catch(j){}d._setStack(g,e)},_onFocusNode:function(a){if(a&&a.nodeType!=9&&(d._onTouchNode(a),a!=d._curFocus)){if(d._curFocus)d._prevFocus=d._curFocus;d._curFocus=a;c.publish("focusNode",[a])}},_setStack:function(a,e){var g=d._activeStack;d._activeStack=a;for(var f=0;f<Math.min(g.length,a.length);f++)if(g[f]!=
a[f])break;for(var h,i=g.length-1;i>=f;i--)if(h=d.byId(g[i]))h._focused=!1,h.set("focused",!1),h._hasBeenBlurred=!0,h._onBlur&&h._onBlur(e),c.publish("widgetBlur",[h,e]);for(i=f;i<a.length;i++)if(h=d.byId(a[i]))h._focused=!0,h.set("focused",!0),h._onFocus&&h._onFocus(e),c.publish("widgetFocus",[h,e])}});c.addOnLoad(function(){var a=d.registerWin(window);c.isIE&&c.addOnWindowUnload(function(){d.unregisterWin(a);a=null})});return d});
define("dojo/AdapterRegistry",["dojo"],function(c){c.AdapterRegistry=function(c){this.pairs=[];this.returnWrappers=c||!1};c.extend(c.AdapterRegistry,{register:function(c,a,e,g,f){this.pairs[f?"unshift":"push"]([c,a,e,g])},match:function(){for(var c=0;c<this.pairs.length;c++){var a=this.pairs[c];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(c){for(var a=0;a<this.pairs.length;a++)if(this.pairs[a][0]==
c)return this.pairs.splice(a,1),!0;return!1}});return c.AdapterRegistry});
define("dijit/_base/place",["dojo","dijit","dojo/window","dojo/AdapterRegistry"],function(c,d){d.getViewport=function(){return c.window.getBox()};d.placeOnScreen=function(a,e,g,f){g=c.map(g,function(a){var c={corner:a,pos:{x:e.x,y:e.y}};f&&(c.pos.x+=a.charAt(1)=="L"?f.x:-f.x,c.pos.y+=a.charAt(0)=="T"?f.y:-f.y);return c});return d._place(a,g)};d._place=function(a,e,d,f){var h=c.window.getBox();(!a.parentNode||String(a.parentNode.tagName).toLowerCase()!="body")&&c.body().appendChild(a);var i=null;c.some(e,
function(e){var j=e.corner,m=e.pos,o=0,n={w:j.charAt(1)=="L"?h.l+h.w-m.x:m.x-h.l,h:j.charAt(1)=="T"?h.t+h.h-m.y:m.y-h.t};d&&(o=d(a,e.aroundCorner,j,n,f),o=typeof o=="undefined"?0:o);var p=a.style,r=p.display,s=p.visibility;p.visibility="hidden";p.display="";var q=c.marginBox(a);p.display=r;p.visibility=s;p=Math.max(h.l,j.charAt(1)=="L"?m.x:m.x-q.w);r=Math.max(h.t,j.charAt(0)=="T"?m.y:m.y-q.h);s=Math.min(h.l+h.w,j.charAt(1)=="L"?p+q.w:m.x);m=Math.min(h.t+h.h,j.charAt(0)=="T"?r+q.h:m.y);s-=p;m-=r;o+=
q.w-s+(q.h-m);if(i==null||o<i.overflow)i={corner:j,aroundCorner:e.aroundCorner,x:p,y:r,w:s,h:m,overflow:o,spaceAvailable:n};return!o});i.overflow&&d&&d(a,i.aroundCorner,i.corner,i.spaceAvailable,f);var e=c._isBodyLtr(),j=a.style;j.top=i.y+"px";j[e?"left":"right"]=(e?i.x:h.w-i.x-i.w)+"px";return i};d.placeOnScreenAroundNode=function(a,e,g,f){e=c.byId(e);e=c.position(e,!0);return d._placeOnScreenAroundRect(a,e.x,e.y,e.w,e.h,g,f)};d.placeOnScreenAroundRectangle=function(a,c,g,f){return d._placeOnScreenAroundRect(a,
c.x,c.y,c.width,c.height,g,f)};d._placeOnScreenAroundRect=function(a,c,g,f,h,i,j){var k=[],l;for(l in i)k.push({aroundCorner:l,corner:i[l],pos:{x:c+(l.charAt(1)=="L"?0:f),y:g+(l.charAt(0)=="T"?0:h)}});return d._place(a,k,j,{w:f,h:h})};d.placementRegistry=new c.AdapterRegistry;d.placementRegistry.register("node",function(a,c){return typeof c=="object"&&typeof c.offsetWidth!="undefined"&&typeof c.offsetHeight!="undefined"},d.placeOnScreenAroundNode);d.placementRegistry.register("rect",function(a,c){return typeof c==
"object"&&"x"in c&&"y"in c&&"width"in c&&"height"in c},d.placeOnScreenAroundRectangle);d.placeOnScreenAroundElement=function(a,c,g,f){return d.placementRegistry.match.apply(d.placementRegistry,arguments)};d.getPopupAroundAlignment=function(a,e){var d={};c.forEach(a,function(a){switch(a){case "after":d[e?"BR":"BL"]=e?"BL":"BR";break;case "before":d[e?"BL":"BR"]=e?"BR":"BL";break;case "below-alt":e=!e;case "below":d[e?"BL":"BR"]=e?"TL":"TR";d[e?"BR":"BL"]=e?"TR":"TL";break;case "above-alt":e=!e;default:d[e?
"TL":"TR"]=e?"BL":"BR",d[e?"TR":"TL"]=e?"BR":"BL"}});return d};return d});define("dijit/_base/scroll",["dojo","dijit","dojo/window"],function(c,d){d.scrollIntoView=function(a,e){c.window.scrollIntoView(a,e)};return d.scrollIntoView});
define("dojo/uacss",["dojo"],function(c){(function(){var d=c.doc.documentElement,a=c.isIE,e=c.isOpera,g=Math.floor,f=c.isFF,h=c.boxModel.replace(/-/,""),a={dj_ie:a,dj_ie6:g(a)==6,dj_ie7:g(a)==7,dj_ie8:g(a)==8,dj_ie9:g(a)==9,dj_quirks:c.isQuirks,dj_iequirks:a&&c.isQuirks,dj_opera:e,dj_khtml:c.isKhtml,dj_webkit:c.isWebKit,dj_safari:c.isSafari,dj_chrome:c.isChrome,dj_gecko:c.isMozilla,dj_ff3:g(f)==3};a["dj_"+h]=!0;var i="",j;for(j in a)a[j]&&(i+=j+" ");d.className=c.trim(d.className+" "+i);c._loaders.unshift(function(){if(!c._isBodyLtr()){var a=
"dj_rtl dijitRtl "+i.replace(/ /g,"-rtl ");d.className=c.trim(d.className+" "+a)}})})();return c});define("dijit/_base/sniff",["dojo","dijit","dojo/uacss"],function(c,d){return d});
define("dijit/_base/typematic",["dojo","dijit"],function(c,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(c.hitch(this,"_fireEventAndReload"),this._currentTimeout)},trigger:function(a,e,d,f,h,i,j,k){if(h!=this._obj)this.stop(),
this._initialDelay=j||500,this._subsequentDelay=i||0.9,this._minDelay=k||10,this._obj=h,this._evt=a,this._node=d,this._count=this._currentTimeout=-1,this._callback=c.hitch(e,f),this._fireEventAndReload(),this._evt=c.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,e,g,f,h,i,j){if(e.keyCode)e.charOrCode=e.keyCode,c.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.",
"","2.0");else if(e.charCode)e.charOrCode=String.fromCharCode(e.charCode),c.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");return[c.connect(a,"onkeypress",this,function(k){k.charOrCode==e.charOrCode&&(e.ctrlKey===void 0||e.ctrlKey==k.ctrlKey)&&(e.altKey===void 0||e.altKey==k.altKey)&&(e.metaKey===void 0||e.metaKey==(k.metaKey||!1))&&(e.shiftKey===void 0||e.shiftKey==k.shiftKey)?(c.stopEvent(k),d.typematic.trigger(k,g,a,
f,e,h,i,j)):d.typematic._obj==e&&d.typematic.stop()}),c.connect(a,"onkeyup",this,function(){d.typematic._obj==e&&d.typematic.stop()})]},addMouseListener:function(a,e,g,f,h,i){var j=c.connect;return[j(a,"mousedown",this,function(j){c.stopEvent(j);d.typematic.trigger(j,e,a,g,a,f,h,i)}),j(a,"mouseup",this,function(a){c.stopEvent(a);d.typematic.stop()}),j(a,"mouseout",this,function(a){c.stopEvent(a);d.typematic.stop()}),j(a,"mousemove",this,function(a){a.preventDefault()}),j(a,"dblclick",this,function(j){c.stopEvent(j);
c.isIE&&(d.typematic.trigger(j,e,a,g,a,f,h,i),setTimeout(c.hitch(this,d.typematic.stop),50))})]},addListener:function(a,c,d,f,h,i,j,k){return this.addKeyListener(c,d,f,h,i,j,k).concat(this.addMouseListener(a,f,h,i,j,k))}};return d.typematic});
define("dijit/_base/wai",["dojo","dijit"],function(c,d){d.wai={onload:function(){var a=c.create("div",{id:"a11yTestNode",style:{cssText:'border: 1px solid;border-color:red green;position: absolute;height: 5px;top: -999px;background-image: url("'+(c.config.blankGif||c.moduleUrl("dojo","resources/blank.gif"))+'");'}},c.body()),e=c.getComputedStyle(a);if(e){var d=e.backgroundImage;c[e.borderTopColor==e.borderRightColor||d!=null&&(d=="none"||d=="url(invalid-url:)")?"addClass":"removeClass"](c.body(),
"dijit_a11y");c.isIE?a.outerHTML="":c.body().removeChild(a)}}};(c.isIE||c.isMoz)&&c._loaders.unshift(d.wai.onload);c.mixin(d,{hasWaiRole:function(a,c){var d=this.getWaiRole(a);return c?d.indexOf(c)>-1:d.length>0},getWaiRole:function(a){return c.trim((c.attr(a,"role")||"").replace("wairole:",""))},setWaiRole:function(a,e){c.attr(a,"role",e)},removeWaiRole:function(a,e){var d=c.attr(a,"role");d&&(e?(d=c.trim((" "+d+" ").replace(" "+e+" "," ")),c.attr(a,"role",d)):a.removeAttribute("role"))},hasWaiState:function(a,
c){return a.hasAttribute?a.hasAttribute("aria-"+c):!!a.getAttribute("aria-"+c)},getWaiState:function(a,c){return a.getAttribute("aria-"+c)||""},setWaiState:function(a,c,d){a.setAttribute("aria-"+c,d)},removeWaiState:function(a,c){a.removeAttribute("aria-"+c)}});return d});define("dijit/_base/window",["dojo","dijit","dojo/window"],function(c,d){d.getDocumentWindow=function(a){return c.window.get(a)};return d});
define("dijit/_base/popup",["dojo","dijit","dijit/_base/focus","dijit/_base/place","dijit/_base/window"],function(c,d){d.popup={_stack:[],_beginZIndex:1E3,_idGen:1,_createWrapper:function(a){var e=a.declaredClass?a._popupWrapper:a.parentNode&&c.hasClass(a.parentNode,"dijitPopup"),d=a.domNode||a;if(!e&&(e=c.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},c.body()),e.appendChild(d),d=d.style,d.display="",d.visibility="",d.position="",d.top="0px",a.declaredClass))a._popupWrapper=
e,c.connect(a,"destroy",function(){c.destroy(e);delete a._popupWrapper});return e},moveOffScreen:function(a){a=this._createWrapper(a);c.style(a,{visibility:"hidden",top:"-9999px",display:""})},hide:function(a){a=this._createWrapper(a);c.style(a,"display","none")},getTopPopup:function(){for(var a=this._stack,c=a.length-1;c>0&&a[c].parent===a[c-1].widget;c--);return a[c]},open:function(a){for(var e=this._stack,g=a.popup,f=a.orient||((a.parent?a.parent.isLeftToRight():c._isBodyLtr())?{BL:"TL",BR:"TR",
TL:"BL",TR:"BR"}:{BR:"TR",BL:"TL",TR:"BR",TL:"BL"}),h=a.around,i=a.around&&a.around.id?a.around.id+"_dropdown":"popup_"+this._idGen++;e.length&&(!a.parent||!c.isDescendant(a.parent.domNode,e[e.length-1].widget.domNode));)d.popup.close(e[e.length-1].widget);var j=this._createWrapper(g);c.attr(j,{id:i,style:{zIndex:this._beginZIndex+e.length},"class":"dijitPopup "+(g.baseClass||g["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:a.parent?a.parent.id:""});if((c.isIE||c.isMoz)&&!g.bgIframe)g.bgIframe=
new d.BackgroundIframe(j);f=h?d.placeOnScreenAroundElement(j,h,f,g.orient?c.hitch(g,"orient"):null):d.placeOnScreen(j,a,f=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],a.padding);j.style.display="";j.style.visibility="visible";g.domNode.style.visibility="visible";h=[];h.push(c.connect(j,"onkeypress",this,function(e){if(e.charOrCode==c.keys.ESCAPE&&a.onCancel)c.stopEvent(e),a.onCancel();else if(e.charOrCode===c.keys.TAB&&(c.stopEvent(e),(e=this.getTopPopup())&&e.onCancel))e.onCancel()}));g.onCancel&&
h.push(c.connect(g,"onCancel",a.onCancel));h.push(c.connect(g,g.onExecute?"onExecute":"onChange",this,function(){var a=this.getTopPopup();if(a&&a.onExecute)a.onExecute()}));e.push({widget:g,parent:a.parent,onExecute:a.onExecute,onCancel:a.onCancel,onClose:a.onClose,handlers:h});if(g.onOpen)g.onOpen(f);return f},close:function(a){for(var e=this._stack;a&&c.some(e,function(c){return c.widget==a})||!a&&e.length;){var d=e.pop(),f=d.widget,h=d.onClose;if(f.onClose)f.onClose();c.forEach(d.handlers,c.disconnect);
f&&f.domNode&&this.hide(f);h&&h()}}};d._frames=new function(){var a=[];this.pop=function(){var e;a.length?(e=a.pop(),e.style.display=""):(c.isIE<9?(e="<iframe src='"+(c.config.dojoBlankHtmlUrl||c.moduleUrl("dojo","resources/blank.html")+""||'javascript:""')+"' style='position: absolute; left: 0px; top: 0px;z-index: -1; filter:Alpha(Opacity=\"0\");'>",e=c.doc.createElement(e)):(e=c.create("iframe"),e.src='javascript:""',e.className="dijitBackgroundIframe",c.style(e,"opacity",0.1)),e.tabIndex=-1,d.setWaiRole(e,
"presentation"));return e};this.push=function(c){c.style.display="none";a.push(c)}};d.BackgroundIframe=function(a){if(!a.id)throw Error("no id");if(c.isIE||c.isMoz){var e=this.iframe=d._frames.pop();a.appendChild(e);c.isIE<7||c.isQuirks?(this.resize(a),this._conn=c.connect(a,"onresize",this,function(){this.resize(a)})):c.style(e,{width:"100%",height:"100%"})}};c.extend(d.BackgroundIframe,{resize:function(a){this.iframe&&c.style(this.iframe,{width:a.offsetWidth+"px",height:a.offsetHeight+"px"})},destroy:function(){if(this._conn)c.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(c,d){return d._base});
define("dijit/_Widget",["dojo","dijit","dijit/_WidgetBase","dijit/_base"],function(c,d){c.connect(c,"_connect",function(a,e){a&&c.isFunction(a._onConnect)&&a._onConnect(e)});d._connectOnUseEventHandler=function(){};d._lastKeyDownNode=null;c.isIE?function(){var a=function(a){d._lastKeyDownNode=a.srcElement};c.doc.attachEvent("onkeydown",a);c.addOnWindowUnload(function(){c.doc.detachEvent("onkeydown",a)})}():c.doc.addEventListener("keydown",function(a){d._lastKeyDownNode=a.target},!0);(function(){c.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,e){this._deferredConnects=c.clone(this._deferredConnects);for(var g in this.attributeMap)delete this._deferredConnects[g];for(g in this._deferredConnects)this[g]!==d._connectOnUseEventHandler&&delete this._deferredConnects[g];this.inherited(arguments);if(this.domNode)for(g in this.params)this._onConnect(g)},_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&&c.style(this.domNode,"display")!="none"},onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus()},_onBlur:function(){this.onBlur()},setAttribute:function(a,e){c.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(a,e)},attr:function(a,
e){if(c.config.isDebug){var d=arguments.callee._ach||(arguments.callee._ach={}),f=(arguments.callee.caller||"unknown caller").toString();d[f]||(c.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+f,"","2.0"),d[f]=!0)}return arguments.length>=2||typeof a==="object"?this.set.apply(this,arguments):this.get(a)},nodesWithKeyClick:["input","button"],connect:function(a,e,g){var f=c._connect,h=this.inherited(arguments,[a,e=="ondijitclick"?"onclick":e,g]);if(e==
"ondijitclick"&&c.indexOf(this.nodesWithKeyClick,a.nodeName.toLowerCase())==-1){var i=c.hitch(this,g);h.push(f(a,"onkeydown",this,function(e){if((e.keyCode==c.keys.ENTER||e.keyCode==c.keys.SPACE)&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey)d._lastKeyDownNode=e.target,"openDropDown"in this&&a==this._buttonNode||e.preventDefault()}),f(a,"onkeyup",this,function(a){if((a.keyCode==c.keys.ENTER||a.keyCode==c.keys.SPACE)&&a.target==d._lastKeyDownNode&&!a.ctrlKey&&!a.shiftKey&&!a.altKey&&!a.metaKey)return d._lastKeyDownNode=
null,i(a)}))}return h},_onShow:function(){this.onShow()},onShow:function(){},onHide:function(){},onClose:function(){return!0}})})();return d._Widget});
define("dojo/string",["dojo"],function(c){c.getObject("string",!0,c);c.string.rep=function(c,a){if(a<=0||!c)return"";for(var e=[];;){a&1&&e.push(c);if(!(a>>=1))break;c+=c}return e.join("")};c.string.pad=function(d,a,e,g){e||(e="0");d=String(d);a=c.string.rep(e,Math.ceil((a-d.length)/e.length));return g?d+a:a+d};c.string.substitute=function(d,a,e,g){g=g||c.global;e=e?c.hitch(g,e):function(a){return a};return d.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(d,h,i){d=c.getObject(h,!1,a);i&&
(d=c.getObject(i,!1,g).call(g,d,h));return e(d,h).toString()})};c.string.trim=String.prototype.trim?c.trim:function(c){for(var c=c.replace(/^\s+/,""),a=c.length-1;a>=0;a--)if(/\S/.test(c.charAt(a))){c=c.substring(0,a+1);break}return c};return c.string});
define("dojo/cache",["dojo"],function(c){var d={};c.cache=function(a,e,g){if(typeof a=="string")var f=c.moduleUrl(a,e);else f=a,g=e;var f=f.toString(),h=g;g!=void 0&&!c.isString(g)&&(h="value"in g?g.value:void 0);g=g&&g.sanitize?!0:!1;if(typeof h=="string")h=d[f]=g?c.cache._sanitize(h):h;else if(h===null)delete d[f];else{if(!(f in d)){h=void 0;if(c.isFunction(require)&&c.isString(a))try{var i=(a?a.replace(/\./g,"/")+"/":"")+e,h=require("text!"+i)}catch(j){}typeof h==="undefined"&&(h=c._getText(f));
d[f]=g?c.cache._sanitize(h):h}h=d[f]}return h};c.cache._sanitize=function(a){if(a){var a=a.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,""),c=a.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);c&&(a=c[1])}else a="";return a};return c.cache});
define("dijit/_CssStateMixin",["dojo","dijit"],function(c,d){c.declare("dijit._CssStateMixin",[],{cssStateNodes:{},hovering:!1,active:!1,_applyAttributes:function(){this.inherited(arguments);c.forEach(["onmouseenter","onmouseleave","onmousedown"],function(a){this.connect(this.domNode,a,"_cssMouseEvent")},this);c.forEach("disabled,readOnly,checked,selected,focused,state,hovering,active".split(","),function(a){this.watch(a,c.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 e=this.connect(c.body(),"onmouseup",function(){this._mouseDown=!1;this._set("active",!1);this.disconnect(e)})}},_setStateClass:function(){function a(a){e=
e.concat(c.map(e,function(c){return c+a}),"dijit"+a)}var e=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 d=this.stateNode||this.domNode,f={};c.forEach(d.className.split(" "),function(a){f[a]=!0});"_stateClasses"in this&&c.forEach(this._stateClasses,function(a){delete f[a]});
c.forEach(e,function(a){f[a]=!0});var h=[],i;for(i in f)h.push(i);d.className=h.join(" ");this._stateClasses=e},_trackMouseState:function(a,e){function d(){var g="disabled"in j&&j.disabled||"readonly"in j&&j.readonly;c.toggleClass(a,e+"Hover",f&&!h&&!g);c.toggleClass(a,e+"Active",h&&!g);c.toggleClass(a,e+"Focused",i&&!g)}var f=!1,h=!1,i=!1,j=this,k=c.hitch(this,"connect",a);k("onmouseenter",function(){f=!0;d()});k("onmouseleave",function(){h=f=!1;d()});k("onmousedown",function(){h=!0;d()});k("onmouseup",
function(){h=!1;d()});k("onfocus",function(){i=!0;d()});k("onblur",function(){i=!1;d()});this.watch("disabled",d);this.watch("readOnly",d)}});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/operations/nls/messages",["orion/i18n!orion/operations/nls/messages"],function(c){var d={root:!0};Object.keys(c).forEach(function(a){typeof d[a]==="undefined"&&(d[a]=c[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("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(c,d){c.declare("dijit.form._FormMixin",null,{state:"",reset:function(){c.forEach(this.getDescendants(),function(a){a.reset&&a.reset()})},validate:function(){var a=!1;return c.every(c.map(this.getDescendants(),function(e){e._hasBeenBlurred=!0;var d=e.disabled||!e.validate||e.validate();!d&&!a&&(c.window.scrollIntoView(e.containerNode||e.domNode),e.focus(),a=!0);return d}),function(a){return a})},setValues:function(a){c.deprecated(this.declaredClass+
"::setValues() is deprecated. Use set('value', val) instead.","","2.0");return this.set("value",a)},_setValueAttr:function(a){var e={};c.forEach(this.getDescendants(),function(a){a.name&&(e[a.name]||(e[a.name]=[])).push(a)});for(var d in e)if(e.hasOwnProperty(d)){var f=e[d],h=c.getObject(d,!1,a);h!==void 0&&(c.isArray(h)||(h=[h]),typeof f[0].checked=="boolean"?c.forEach(f,function(a){a.set("value",c.indexOf(h,a.value)!=-1)}):f[0].multiple?f[0].set("value",h):c.forEach(f,function(a,c){a.set("value",
h[c])}))}},getValues:function(){c.deprecated(this.declaredClass+"::getValues() is deprecated. Use get('value') instead.","","2.0");return this.get("value")},_getValueAttr:function(){var a={};c.forEach(this.getDescendants(),function(e){var d=e.name;if(d&&!e.disabled){var f=e.get("value");typeof e.checked=="boolean"?/Radio/.test(e.declaredClass)?f!==!1?c.setObject(d,f,a):(f=c.getObject(d,!1,a),f===void 0&&c.setObject(d,null,a)):(e=c.getObject(d,!1,a),e||(e=[],c.setObject(d,e,a)),f!==!1&&e.push(f)):
(e=c.getObject(d,!1,a),typeof e!="undefined"?c.isArray(e)?e.push(f):c.setObject(d,[e,f],a):c.setObject(d,f,a))}});return a},isValid:function(){return this.state==""},onValidStateChange:function(){},_getState:function(){var a=c.map(this._descendants,function(a){return a.get("state")||""});return c.indexOf(a,"Error")>=0?"Error":c.indexOf(a,"Incomplete")>=0?"Incomplete":""},disconnectChildren:function(){c.forEach(this._childConnections||[],c.hitch(this,"disconnect"));c.forEach(this._childWatches||[],
function(a){a.unwatch()})},connectChildren:function(a){var e=this;this.disconnectChildren();this._descendants=this.getDescendants();a=a?function(a,c){e[a]=c}:c.hitch(this,"_set");a("value",this.get("value"));a("state",this._getState());var d=this._childConnections=[],f=this._childWatches=[];c.forEach(c.filter(this._descendants,function(a){return a.validate}),function(a){c.forEach(["state","disabled"],function(c){f.push(a.watch(c,function(){e.set("state",e._getState())}))})});var h=function(){e._onChangeDelayTimer&&
clearTimeout(e._onChangeDelayTimer);e._onChangeDelayTimer=setTimeout(function(){delete e._onChangeDelayTimer;e._set("value",e.get("value"))},10)};c.forEach(c.filter(this._descendants,function(a){return a.onChange}),function(a){d.push(e.connect(a,"onChange",h));f.push(a.watch("disabled",h))})},startup:function(){this.inherited(arguments);this.connectChildren(!0);this.watch("state",function(a,c,d){this.onValidStateChange(d=="")})},destroy:function(){this.disconnectChildren();this.inherited(arguments)}});
return d.form._FormMixin});
define("dijit/_DialogMixin",["dojo","dijit","dijit/_Widget"],function(c,d){c.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/OperationsDialog.html",[],function(){return'\n<div>\n\t<div class="dijitTooltipContainer" role="presentation" style="padding: 0.5em; min-width: 300px;">\n\t\t<div class="dijitTooltipContents dijitTooltipFocusNode" role="status" aria-live="assertive"\n\t\t\tdojoattachpoint="containerNode" style="padding: 0">\n\t\t\t<table style="width: 100%;">\n\t\t\t\t<tr>\n\t\t\t\t\t<td><h2>Recent operations</h2></td>\n\t\t\t\t\t<td style="text-align: right;"><a dojoAttachPoint="allOperationsLink">All Operations</a></td>\n\t\t\t\t</tr>\n\t\t\t</table>\n\t\t\t<span dojoAttachPoint="operationsExist">\n\t\t\t\t<span class="secondaryColumn" dojoAttachPoint="myOperationsListEmpty">No operations running on this page.</span>\n\t\t\t\t<table dojoAttachPoint="myOperationsList" style="display: none;">\n\t\t\t\t</table>\n\t\t\t\t<span class="secondaryColumn" dojoAttachPoint="otherOperations"><br>Operations from other pages:</span>\n\t\t\t\t<table dojoAttachPoint="operationsList" style="display: none;">\n\t\t\t\t</table>\n\t\t\t</span>\n\t\t\t<span class="secondaryColumn" dojoAttachPoint="operationsDontExist">No operations running.</span>\n\t\t</div>\n\t</div>\n\t<div class="dijitTooltipConnector" role="presentation"></div>\n\n</div>'});
define("orion/PageUtil",[],function(){return{matchResourceParameters:function(c){var c=c||window.location.toString(),d={resource:""},a=c.indexOf("#");if(a!==-1&&(c=c.substring(a+1),c.length!==0)){c=c.split(",");d.resource=decodeURIComponent(c[0]);for(a=1;a<c.length;a++){var e=c[a].split("="),g=decodeURIComponent(e[0]),e=e.length===2?decodeURIComponent(e[1]):null;e!==null&&g!=="resource"&&(d[g]=e)}}return d}}});
define("orion/navigationUtils",["dojo"],function(c){function d(e,d,f,h){!a&&e&&(f?(e.push({domNode:d,widget:f,onClick:h}),c.attr(f,"tabIndex",-1)):(e.push({domNode:d}),c.attr(d,"tabIndex",-1),c.style(d,"outline","none")))}var a=navigator.userAgent.indexOf("iPad")!==-1;return{addNavGrid:function(a,c,f,h,i){a&&(a=a.getGridNavHolder(c,!0))&&d(a,f,h,i)},generateNavGrid:d,removeNavGrid:function(a,c){if(a)for(var d=0;d<a.length;d++)if(a[d].domNode===c){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(c,d){c.declare("dijit._Container",null,{isContainer:!0,buildRendering:function(){this.inherited(arguments);if(!this.containerNode)this.containerNode=this.domNode},addChild:function(a,e){var d=this.containerNode;if(e&&typeof e=="number"){var f=this.getChildren();if(f&&f.length>=e)d=f[e-1].domNode,e="after"}c.place(a.domNode,d,e);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){c.forEach(this.getChildren(),function(c){c.destroyRecursive(a)})},_getSiblingOfChild:function(a,c){var g=a.domNode,f=c>0?"nextSibling":"previousSibling";do g=g[f];while(g&&(g.nodeType!=1||!d.byNode(g)));return g&&d.byNode(g)},getIndexOfChild:function(a){return c.indexOf(this.getChildren(),a)},startup:function(){this._started||(c.forEach(this.getChildren(),
function(a){a.startup()}),this.inherited(arguments))}});return d._Container});
define("dijit/_KeyNavContainer",["dojo","dijit","dijit/_Container"],function(c,d){c.declare("dijit._KeyNavContainer",d._Container,{tabIndex:"0",_keyNavCodes:{},connectKeyNavHandlers:function(a,e){var d=this._keyNavCodes={},f=c.hitch(this,this.focusPrev),h=c.hitch(this,this.focusNext);c.forEach(a,function(a){d[a]=f});c.forEach(e,function(a){d[a]=h});d[c.keys.HOME]=c.hitch(this,"focusFirstChild");d[c.keys.END]=c.hitch(this,"focusLastChild");this.connect(this.domNode,"onkeypress","_onContainerKeypress");
this.connect(this.domNode,"onfocus","_onContainerFocus")},startupKeyNavChildren:function(){c.forEach(this.getChildren(),c.hitch(this,"_startupChild"))},addChild:function(a,c){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,c){this.focusedChild&&a!==this.focusedChild&&this._onChildBlur(this.focusedChild);a.set("tabIndex",this.tabIndex);a.focus(c?"end":"start");this._set("focusedChild",a)},_startupChild:function(a){a.set("tabIndex","-1");this.connect(a,"_onFocus",function(){a.set("tabIndex",this.tabIndex)});this.connect(a,"_onBlur",function(){a.set("tabIndex","-1")})},_onContainerFocus:function(a){a.target===
this.domNode&&(this.focusFirstChild(),c.attr(this.domNode,"tabIndex","-1"))},_onBlur:function(a){this.tabIndex&&c.attr(this.domNode,"tabIndex",this.tabIndex);this.inherited(arguments)},_onContainerKeypress:function(a){if(!a.ctrlKey&&!a.altKey){var e=this._keyNavCodes[a.charOrCode];e&&(e(),c.stopEvent(a))}},_onChildBlur:function(){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1)},_getLastFocusableChild:function(){return this._getNextFocusableChild(null,-1)},_getNextFocusableChild:function(a,
c){a&&(a=this._getSiblingOfChild(a,c));for(var d=this.getChildren(),f=0;f<d.length;f++){a||(a=d[c>0?0:d.length-1]);if(a.isFocusable())return a;a=this._getSiblingOfChild(a,c)}return null}});return 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/form/templates/Button.html",[],function(){return'<span class="dijit dijitReset dijitInline"\n\t><span class="dijitReset dijitInline dijitButtonNode"\n\t\tdojoAttachEvent="ondijitclick:_onButtonClick"\n\t\t><span class="dijitReset dijitStretch dijitButtonContents"\n\t\t\tdojoAttachPoint="titleNode,focusNode"\n\t\t\trole="button" aria-labelledby="${id}_label"\n\t\t\t><span class="dijitReset dijitInline dijitIcon" dojoAttachPoint="iconNode"></span\n\t\t\t><span class="dijitReset dijitToggleButtonIconChar">&#x25CF;</span\n\t\t\t><span class="dijitReset dijitInline dijitButtonText"\n\t\t\t\tid="${id}_label"\n\t\t\t\tdojoAttachPoint="containerNode"\n\t\t\t></span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type="${type}" value="${value}" class="dijitOffScreen" tabIndex="-1"\n\t\tdojoAttachPoint="valueNode"\n/></span>'});
define("text!dijit/form/templates/DropDownButton.html",[],function(){return'<span class="dijit dijitReset dijitInline"\n\t><span class=\'dijitReset dijitInline dijitButtonNode\'\n\t\tdojoAttachEvent="ondijitclick:_onButtonClick" dojoAttachPoint="_buttonNode"\n\t\t><span class="dijitReset dijitStretch dijitButtonContents"\n\t\t\tdojoAttachPoint="focusNode,titleNode,_arrowWrapperNode"\n\t\t\trole="button" aria-haspopup="true" aria-labelledby="${id}_label"\n\t\t\t><span class="dijitReset dijitInline dijitIcon"\n\t\t\t\tdojoAttachPoint="iconNode"\n\t\t\t></span\n\t\t\t><span class="dijitReset dijitInline dijitButtonText"\n\t\t\t\tdojoAttachPoint="containerNode,_popupStateNode"\n\t\t\t\tid="${id}_label"\n\t\t\t></span\n\t\t\t><span class="dijitReset dijitInline dijitArrowButtonInner"></span\n\t\t\t><span class="dijitReset dijitInline dijitArrowButtonChar">&#9660;</span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type="${type}" value="${value}" class="dijitOffScreen" tabIndex="-1"\n\t\tdojoAttachPoint="valueNode"\n/></span>'});
define("text!dijit/form/templates/ComboButton.html",[],function(){return'<table class="dijit dijitReset dijitInline dijitLeft"\n\tcellspacing=\'0\' cellpadding=\'0\' role="presentation"\n\t><tbody role="presentation"><tr role="presentation"\n\t\t><td class="dijitReset dijitStretch dijitButtonNode" dojoAttachPoint="buttonNode" dojoAttachEvent="ondijitclick:_onButtonClick,onkeypress:_onButtonKeyPress"\n\t\t><div id="${id}_button" class="dijitReset dijitButtonContents"\n\t\t\tdojoAttachPoint="titleNode"\n\t\t\trole="button" aria-labelledby="${id}_label"\n\t\t\t><div class="dijitReset dijitInline dijitIcon" dojoAttachPoint="iconNode" role="presentation"></div\n\t\t\t><div class="dijitReset dijitInline dijitButtonText" id="${id}_label" dojoAttachPoint="containerNode" role="presentation"></div\n\t\t></div\n\t\t></td\n\t\t><td id="${id}_arrow" class=\'dijitReset dijitRight dijitButtonNode dijitArrowButton\'\n\t\t\tdojoAttachPoint="_popupStateNode,focusNode,_buttonNode"\n\t\t\tdojoAttachEvent="onkeypress:_onArrowKeyPress"\n\t\t\ttitle="${optionsTitle}"\n\t\t\trole="button" aria-haspopup="true"\n\t\t\t><div class="dijitReset dijitArrowButtonInner" role="presentation"></div\n\t\t\t><div class="dijitReset dijitArrowButtonChar" role="presentation">&#9660;</div\n\t\t></td\n\t\t><td style="display:none !important;"\n\t\t\t><input ${!nameAttrSetting} type="${type}" value="${value}" dojoAttachPoint="valueNode"\n\t\t/></td></tr></tbody\n></table>'});
define("dijit/_HasDropDown",["dojo","dijit","dijit/_Widget"],function(c,d){c.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)c.stopEvent(a),this._docHandler=this.connect(c.doc,"onmouseup","_onDropDownMouseUp"),this.toggleDropDown()},_onDropDownMouseUp:function(a){a&&
this._docHandler&&this.disconnect(this._docHandler);var e=this.dropDown,g=!1;if(a&&this._opened){var f=c.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&&!g;)c.hasClass(f,"dijitPopup")?g=!0:f=f.parentNode;if(g){f=a.target;if(e.onItemClick){for(var h;f&&!(h=d.byNode(f));)f=f.parentNode;if(h&&h.onClick&&h.getParent)h.getParent().onItemClick(h,a)}return}}}this._opened&&e.focus&&e.autoFocus!==!1&&window.setTimeout(c.hitch(e,"focus"),
1)},_onDropDownClick:function(a){this._stopClickEvents&&c.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";c.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 e=this.dropDown,d=a.target;if(e&&this._opened&&e.handleKey&&e.handleKey(a)===!1)c.stopEvent(a);else if(e&&this._opened&&a.charOrCode==c.keys.ESCAPE)this.closeDropDown(),c.stopEvent(a);else if(!this._opened&&(a.charOrCode==c.keys.DOWN_ARROW||(a.charOrCode==c.keys.ENTER||a.charOrCode==" ")&&((d.tagName||"").toLowerCase()!=="input"||d.type&&d.type.toLowerCase()!=="text")))this._toggleOnKeyUp=!0,c.stopEvent(a)}},_onKeyUp:function(){if(this._toggleOnKeyUp){delete this._toggleOnKeyUp;
this.toggleDropDown();var a=this.dropDown;a&&a.focus&&setTimeout(c.hitch(a,"focus"),1)}},_onBlur:function(){this.closeDropDown(d._curFocus&&this.dropDown&&c.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(c.hitch(this,"openDropDown")))},openDropDown:function(){var a=
this.dropDown,e=a.domNode,g=this._aroundNode||this.domNode,f=this;if(!this._preparedNode){this._preparedNode=!0;if(e.style.width)this._explicitDDWidth=!0;if(e.style.height)this._explicitDDHeight=!0}if(this.maxHeight||this.forceWidth||this.autoWidth){var h={display:"",visibility:"hidden"};if(!this._explicitDDWidth)h.width="";if(!this._explicitDDHeight)h.height="";c.style(e,h);h=this.maxHeight;if(h==-1)var h=c.window.getBox(),i=c.position(g,!1),h=Math.floor(Math.max(i.y,h.h-(i.y+i.h)));a.startup&&!a._started&&
a.startup();d.popup.moveOffScreen(a);var i=c._getMarginSize(e),j=h&&i.h>h;c.style(e,{overflowX:"hidden",overflowY:j?"auto":"hidden"});j?(i.h=h,"w"in i&&(i.w+=16)):delete i.h;this.forceWidth?i.w=g.offsetWidth:this.autoWidth?i.w=Math.max(i.w,g.offsetWidth):delete i.w;c.isFunction(a.resize)?a.resize(i):c.marginBox(e,i)}a=d.popup.open({parent:this,popup:a,around:g,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(){c.attr(f._popupStateNode,"popupActive",!1);c.removeClass(f._popupStateNode,"dijitHasDropDownOpen");f._opened=!1}});c.attr(this._popupStateNode,"popupActive","true");c.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("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(c,d){c.declare("dijit._Contained",null,{getParent:function(){var a=d.getEnclosingWidget(this.domNode.parentNode);return a&&a.isContainer?a:null},_getSibling:function(a){var c=this.domNode;do c=c[a+"Sibling"];while(c&&c.nodeType!=1);return c&&d.byNode(c)},getPreviousSibling:function(){return this._getSibling("previous")},getNextSibling:function(){return this._getSibling("next")},getIndexInParent:function(){var a=this.getParent();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("dojo/date",["dojo"],function(c){c.getObject("date",!0,c);c.date.getDaysInMonth=function(d){var a=d.getMonth(),e=[31,28,31,30,31,30,31,31,30,31,30,31];return a==1&&c.date.isLeapYear(d)?29:e[a]};c.date.isLeapYear=function(c){c=c.getFullYear();return!(c%400)||!(c%4)&&!!(c%100)};c.date.getTimezoneName=function(c){var a=c.toString(),e="",g=a.indexOf("(");if(g>-1)e=a.substring(++g,a.indexOf(")"));else if(g=/([A-Z\/]+) \d{4}$/,a=a.match(g))e=a[1];else if(a=c.toLocaleString(),g=/ ([A-Z\/]+)$/,a=a.match(g))e=
a[1];return e=="AM"||e=="PM"?"":e};c.date.compare=function(c,a,e){c=new Date(+c);a=new Date(+(a||new Date));e=="date"?(c.setHours(0,0,0,0),a.setHours(0,0,0,0)):e=="time"&&(c.setFullYear(0,0,0),a.setFullYear(0,0,0));return c>a?1:c<a?-1:0};c.date.add=function(c,a,e){var g=new Date(+c),f=!1,h="Date";switch(a){case "day":break;case "weekday":var i;(a=e%5)?i=parseInt(e/5):(a=e>0?5:-5,i=e>0?(e-5)/5:(e+5)/5);var j=c.getDay(),k=0;j==6&&e>0?k=1:j==0&&e<0&&(k=-1);j+=a;if(j==0||j==6)k=e>0?2:-2;e=7*i+a+k;break;
case "year":h="FullYear";f=!0;break;case "week":e*=7;break;case "quarter":e*=3;case "month":f=!0;h="Month";break;default:h="UTC"+a.charAt(0).toUpperCase()+a.substring(1)+"s"}if(h)g["set"+h](g["get"+h]()+e);f&&g.getDate()<c.getDate()&&g.setDate(0);return g};c.date.difference=function(d,a,e){var a=a||new Date,e=e||"day",g=a.getFullYear()-d.getFullYear(),f=1;switch(e){case "quarter":d=d.getMonth();a=a.getMonth();d=Math.floor(d/3)+1;a=Math.floor(a/3)+1;a+=g*4;f=a-d;break;case "weekday":g=Math.round(c.date.difference(d,
a,"day"));e=parseInt(c.date.difference(d,a,"week"));if(g%7==0)g=e*5;else{var f=0,h=d.getDay(),i=a.getDay(),e=parseInt(g/7),a=g%7,d=new Date(d);d.setDate(d.getDate()+e*7);d=d.getDay();if(g>0)switch(!0){case h==6:f=-1;break;case h==0:f=0;break;case i==6:f=-1;break;case i==0:f=-2;break;case d+a>5:f=-2}else if(g<0)switch(!0){case h==6:f=0;break;case h==0:f=1;break;case i==6:f=2;break;case i==0:f=1;break;case d+a<0:f=2}g+=f;g-=e*2}f=g;break;case "year":f=g;break;case "month":f=a.getMonth()-d.getMonth()+
g*12;break;case "week":f=parseInt(c.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 c.date});
define("dojo/cldr/supplemental",["dojo","dojo/i18n"],function(c){c.getObject("cldr.supplemental",!0,c);c.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}[c.cldr.supplemental._region(d)];return d===void 0?
1:d};c.cldr.supplemental._region=function(d){var d=c.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};c.cldr.supplemental.getWeekend=function(d){var a=c.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 c.cldr.supplemental});
define("dojo/regexp",["dojo"],function(c){c.getObject("regexp",!0,c);c.regexp.escapeString=function(c,a){return c.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(c){return a&&a.indexOf(c)!=-1?c:"\\"+c})};c.regexp.buildGroupRE=function(d,a,e){if(!(d instanceof Array))return a(d);for(var g=[],f=0;f<d.length;f++)g.push(a(d[f]));return c.regexp.group(g.join("|"),e)};c.regexp.group=function(c,a){return"("+(a?"?:":"")+c+")"};return c.regexp});
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(c){c.getObject("date.locale",!0,c);(function(){function d(a,e,d,i){return i.replace(/([a-z])\1*/ig,function(j){var k,l,m=j.charAt(0),j=j.length,o=["abbr","wide","narrow"];switch(m){case "G":k=e[j<4?"eraAbbr":"eraNames"][a.getFullYear()<0?0:1];break;case "y":k=a.getFullYear();switch(j){case 1:break;case 2:if(!d.fullYear){k=String(k);k=k.substr(k.length-
2);break}default:l=!0}break;case "Q":case "q":k=Math.ceil((a.getMonth()+1)/3);l=!0;break;case "M":k=a.getMonth();j<3?(k+=1,l=!0):(m=["months-format",o[j-3]].join("-"),k=e[m][k]);break;case "w":k=c.date.locale._getWeekOfYear(a,0);l=!0;break;case "d":k=a.getDate();l=!0;break;case "D":k=c.date.locale._getDayOfYear(a);l=!0;break;case "E":k=a.getDay();j<3?(k+=1,l=!0):(m=["days-format",o[j-3]].join("-"),k=e[m][k]);break;case "a":k=a.getHours()<12?"am":"pm";k=d[k]||e["dayPeriods-format-wide-"+k];break;case "h":case "H":case "K":case "k":l=
a.getHours();switch(m){case "h":k=l%12||12;break;case "H":k=l;break;case "K":k=l%12;break;case "k":k=l||24}l=!0;break;case "m":k=a.getMinutes();l=!0;break;case "s":k=a.getSeconds();l=!0;break;case "S":k=Math.round(a.getMilliseconds()*Math.pow(10,j-3));l=!0;break;case "v":case "z":if(k=c.date.locale._getZone(a,!0,d))break;j=4;case "Z":k=c.date.locale._getZone(a,!1,d);k=[k<=0?"+":"-",c.string.pad(Math.floor(Math.abs(k)/60),2),c.string.pad(Math.abs(k)%60,2)];j==4&&(k.splice(0,0,"GMT"),k.splice(3,0,":"));
k=k.join("");break;default:throw Error("dojo.date.locale.format: invalid pattern char: "+i);}l&&(k=c.string.pad(k,j));return k})}function a(a,e,d,i){var j=function(a){return a},e=e||j,d=d||j,i=i||j,k=a.match(/(''|[^'])+/g),l=a.charAt(0)=="'";c.forEach(k,function(a,c){a?(k[c]=(l?d:e)(a.replace(/''/g,"'")),l=!l):k[c]=""});return i(k.join(""))}function e(a,e,d,i){i=c.regexp.escapeString(i);d.strict||(i=i.replace(" a"," ?a"));return i.replace(/([a-z])\1*/ig,function(c){var i;i=c.charAt(0);var l=c.length,
m="",o="";d.strict?(l>1&&(m="0{"+(l-1)+"}"),l>2&&(o="0{"+(l-2)+"}")):(m="0?",o="0{0,2}");switch(i){case "y":i="\\d{2,4}";break;case "M":i=l>2?"\\S+?":"1[0-2]|"+m+"[1-9]";break;case "D":i="[12][0-9][0-9]|3[0-5][0-9]|36[0-6]|"+o+"[1-9][0-9]|"+m+"[1-9]";break;case "d":i="3[01]|[12]\\d|"+m+"[1-9]";break;case "w":i="[1-4][0-9]|5[0-3]|"+m+"[1-9]";break;case "E":i="\\S+";break;case "h":i="1[0-2]|"+m+"[1-9]";break;case "k":i="1[01]|"+m+"\\d";break;case "H":i="1\\d|2[0-3]|"+m+"\\d";break;case "K":i="1\\d|2[0-4]|"+
m+"[1-9]";break;case "m":case "s":i="[0-5]\\d";break;case "S":i="\\d{"+l+"}";break;case "a":l=d.am||e["dayPeriods-format-wide-am"];m=d.pm||e["dayPeriods-format-wide-pm"];i=l+"|"+m;d.strict||(l!=l.toLowerCase()&&(i+="|"+l.toLowerCase()),m!=m.toLowerCase()&&(i+="|"+m.toLowerCase()),i.indexOf(".")!=-1&&(i+="|"+i.replace(/\./g,"")));i=i.replace(/\./g,"\\.");break;default:i=".*"}a&&a.push(c);return"("+i+")"}).replace(/[\xa0 ]/g,"[\\s\\xa0]")}c.date.locale._getZone=function(a,e){return e?c.date.getTimezoneName(a):
a.getTimezoneOffset()};c.date.locale.format=function(e,f){var f=f||{},h=c.i18n.normalizeLocale(f.locale),i=f.formatLength||"short",h=c.date.locale._getGregorianBundle(h),j=[],k=c.hitch(this,d,e,h,f);if(f.selector=="year")return a(h["dateFormatItem-yyyy"]||"yyyy",k);var l;f.selector!="date"&&(l=f.timePattern||h["timeFormat-"+i])&&j.push(a(l,k));f.selector!="time"&&(l=f.datePattern||h["dateFormat-"+i])&&j.push(a(l,k));return j.length==1?j[0]:h["dateTimeFormat-"+i].replace(/\{(\d+)\}/g,function(a,c){return j[c]})};
c.date.locale.regexp=function(a){return c.date.locale._parseInfo(a).regexp};c.date.locale._parseInfo=function(d){var d=d||{},f=c.i18n.normalizeLocale(d.locale),f=c.date.locale._getGregorianBundle(f),h=d.formatLength||"short",i=d.datePattern||f["dateFormat-"+h],j=d.timePattern||f["timeFormat-"+h],h=d.selector=="date"?i:d.selector=="time"?j:f["dateTimeFormat-"+h].replace(/\{(\d+)\}/g,function(a,c){return[j,i][c]}),k=[];return{regexp:a(h,c.hitch(this,e,k,f,d)),tokens:k,bundle:f}};c.date.locale.parse=
function(a,e){var d=/[\u200E\u200F\u202A\u202E]/g,i=c.date.locale._parseInfo(e),j=i.tokens,k=i.bundle,d=RegExp("^"+i.regexp.replace(d,"")+"$",i.strict?"":"i").exec(a&&a.replace(d,""));if(!d)return null;var l=["abbr","wide","narrow"],m=[1970,0,1,0,0,0,0],o="",d=c.every(d,function(a,d){if(!d)return!0;var g=j[d-1],h=g.length;switch(g.charAt(0)){case "y":if(h!=2&&e.strict)m[0]=a;else if(a<100)a=Number(a),h=""+(new Date).getFullYear(),g=h.substring(0,2)*100,h=Math.min(Number(h.substring(2,4))+20,99),m[0]=
a<h?g+a:g-100+a;else{if(e.strict)return!1;m[0]=a}break;case "M":if(h>2){if(g=k["months-format-"+l[h-3]].concat(),e.strict||(a=a.replace(".","").toLowerCase(),g=c.map(g,function(a){return a.replace(".","").toLowerCase()})),a=c.indexOf(g,a),a==-1)return!1}else a--;m[1]=a;break;case "E":case "e":g=k["days-format-"+l[h-3]].concat();e.strict||(a=a.toLowerCase(),g=c.map(g,function(a){return a.toLowerCase()}));a=c.indexOf(g,a);if(a==-1)return!1;break;case "D":m[1]=0;case "d":m[2]=a;break;case "a":g=e.am||
k["dayPeriods-format-wide-am"];h=e.pm||k["dayPeriods-format-wide-pm"];if(!e.strict)var i=/\./g,a=a.replace(i,"").toLowerCase(),g=g.replace(i,"").toLowerCase(),h=h.replace(i,"").toLowerCase();if(e.strict&&a!=g&&a!=h)return!1;o=a==h?"p":a==g?"a":"";break;case "K":a==24&&(a=0);case "h":case "H":case "k":if(a>23)return!1;m[3]=a;break;case "m":m[4]=a;break;case "s":m[5]=a;break;case "S":m[6]=a}return!0}),i=+m[3];o==="p"&&i<12?m[3]=i+12:o==="a"&&i==12&&(m[3]=0);i=new Date(m[0],m[1],m[2],m[3],m[4],m[5],
m[6]);e.strict&&i.setFullYear(m[0]);var n=j.join(""),p=n.indexOf("d")!=-1,n=n.indexOf("M")!=-1;if(!d||n&&i.getMonth()>m[1]||p&&i.getDate()>m[2])return null;if(n&&i.getMonth()<m[1]||p&&i.getDate()<m[2])i=c.date.add(i,"hour",1);return i}})();(function(){var d=[];c.date.locale.addCustomFormats=function(a,c){d.push({pkg:a,name:c})};c.date.locale._getGregorianBundle=function(a){var e={};c.forEach(d,function(d){d=c.i18n.getLocalization(d.pkg,d.name,a);e=c.mixin(e,d)},this);return e}})();c.date.locale.addCustomFormats("dojo.cldr",
"gregorian");c.date.locale.getNames=function(d,a,e,g){var f,g=c.date.locale._getGregorianBundle(g),d=[d,e,a];e=="standAlone"&&(e=d.join("-"),f=g[e],f[0]==1&&(f=void 0));d[1]="format";return(f||g[d.join("-")]).concat()};c.date.locale.isWeekend=function(d,a){var e=c.cldr.supplemental.getWeekend(a),g=(d||new Date).getDay();e.end<e.start&&(e.end+=7,g<e.start&&(g+=7));return g>=e.start&&g<=e.end};c.date.locale._getDayOfYear=function(d){return c.date.difference(new Date(d.getFullYear(),0,1,d.getHours()),
d)+1};c.date.locale._getWeekOfYear=function(d,a){arguments.length==1&&(a=0);var e=(new Date(d.getFullYear(),0,1)).getDay(),g=Math.floor((c.date.locale._getDayOfYear(d)+(e-a+7)%7-1)/7);e==a&&g++;return g};return c.date.locale});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(c){var d={root:!0};Object.keys(c).forEach(function(a){typeof d[a]==="undefined"&&(d[a]=c[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/dialogs",[],function(){function c(c){this._serviceRegistry=c;this._serviceRegistration=c.registerService("orion.page.dialog",this)}c.prototype={confirm:function(c,a){a(window.confirm(c))},openFiles:function(){}};c.prototype.constructor=c;return{DialogService:c}});
define("orion/selection",["dojo"],function(c){function d(a,c){c||(c="orion.page.selection");this._serviceRegistry=a;this._serviceRegistration=a.registerService(c,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=c.isArray(a)?a:a?[a]:null;this._serviceRegistration.dispatchEvent("selectionChanged",
this._getSingleSelection(),this._selections)}};d.prototype.constructor=d;return{Selection:d}});define("orion/navigate/nls/messages",["orion/i18n!orion/navigate/nls/messages"],function(c){var d={root:!0};Object.keys(c).forEach(function(a){typeof d[a]==="undefined"&&(d[a]=c[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(c){var d={root:!0};Object.keys(c).forEach(function(a){typeof d[a]==="undefined"&&(d[a]=c[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(c){return c.replace(/([\\$\^*\/+?\.\(\)|{}\[\]])/g,"\\$&")},parse:function(c){return(c=/^\s*\/(.+)\/([gim]{0,3})\s*$/.exec(c))?{pattern:c[1],flags:c[2]}:null}}});
define("orion/commonHTMLFragments",["i18n!orion/nls/messages","require"],function(c,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 e='<header role="banner"><div id="staticBanner" class="layoutBlock topRowBanner"><a id="home" class="layoutLeft logo" href="'+
d.toUrl("navigate/table.html")+'" aria-label="'+c["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="'+c["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="'+
c["Add this page to the favorites list"]+'" class="spacingLeft layoutLeft imageSprite core-sprite-favorite_sml"></span></div></div></header>',g='<footer id="footerContent" class="layoutBlock" role="contentinfo"><div class="footerBlock">'+c["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">'+c.FAQ+'</a> | <a href="https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Orion&version=0.5" target="_blank">'+
c["Report a Bug"]+'</a> | <a href="http://www.eclipse.org/legal/privacy.php" target="_blank">'+c["Privacy Policy"]+'</a> | <a href="http://www.eclipse.org/legal/termsofuse.php" target="_blank">'+c["Terms of Use"]+'</a> | <a href="http://www.eclipse.org/legal/copyright.php" target="_blank">'+c["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="'+c["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:e,bottomHTMLFragment:g,toolbarHTMLFragment:f,slideoutHTMLFragment:a}});
define("orion/i18nUtil",["require","orion/Deferred"],function(c,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 e={};return{getMessageBundle:function(g){function f(){c(["i18n!"+g],function(a){if(a){var c=g;a._expires=(new Date).getTime()+9E5;localStorage.setItem("orion/messageBundle/"+c,JSON.stringify(a));delete a._expires}h.resolve(a)})}if(e[g])return e[g];var h=new d;e[g]=
h;var i=a(g);if(i)return h.resolve(i),h;try{c([g],f)}catch(j){c(["orion/i18n!"+g],f)}return h},formatMessage:function(a){var c=arguments;return a.replace(/\$\{([^\}]+)\}/g,function(a,e){return c[(e<<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(c){c.getObject("dnd",!0,c);c.dnd.getCopyKeyState=c.isCopyKey;c.dnd._uniqueId=0;c.dnd.getUniqueId=function(){var d;do d=c._scopeName+"Unique"+ ++c.dnd._uniqueId;while(c.byId(d));return d};c.dnd._empty={};c.dnd.isFormElement=function(c){c=c.target;if(c.nodeType==3)c=c.parentNode;return" button textarea input select option ".indexOf(" "+c.tagName.toLowerCase()+" ")>=0};return c.dnd});
define("dojo/dnd/autoscroll",["dojo","dojo/window"],function(c){c.getObject("dnd",!0,c);c.dnd.getViewport=c.window.getBox;c.dnd.V_TRIGGER_AUTOSCROLL=32;c.dnd.H_TRIGGER_AUTOSCROLL=32;c.dnd.V_AUTOSCROLL_VALUE=16;c.dnd.H_AUTOSCROLL_VALUE=16;c.dnd.autoScroll=function(d){var a=c.window.getBox(),e=0,g=0;if(d.clientX<c.dnd.H_TRIGGER_AUTOSCROLL)e=-c.dnd.H_AUTOSCROLL_VALUE;else if(d.clientX>a.w-c.dnd.H_TRIGGER_AUTOSCROLL)e=c.dnd.H_AUTOSCROLL_VALUE;if(d.clientY<c.dnd.V_TRIGGER_AUTOSCROLL)g=-c.dnd.V_AUTOSCROLL_VALUE;
else if(d.clientY>a.h-c.dnd.V_TRIGGER_AUTOSCROLL)g=c.dnd.V_AUTOSCROLL_VALUE;window.scrollBy(e,g)};c.dnd._validNodes={div:1,p:1,td:1};c.dnd._validOverflow={auto:1,scroll:1};c.dnd.autoScrollNodes=function(d){for(var a=d.target;a;){if(a.nodeType==1&&a.tagName.toLowerCase()in c.dnd._validNodes){var e=c.getComputedStyle(a);if(e.overflow.toLowerCase()in c.dnd._validOverflow){var g=c._getContentBox(a,e),e=c.position(a,!0),f=Math.min(c.dnd.H_TRIGGER_AUTOSCROLL,g.w/2),h=Math.min(c.dnd.V_TRIGGER_AUTOSCROLL,
g.h/2),i=d.pageX-e.x,j=d.pageY-e.y,k=e=0;if(c.isWebKit||c.isOpera)i+=c.body().scrollLeft,j+=c.body().scrollTop;i>0&&i<g.w&&(i<f?e=-f:i>g.w-f&&(e=f));j>0&&j<g.h&&(j<h?k=-h:j>g.h-h&&(k=h));g=a.scrollLeft;f=a.scrollTop;a.scrollLeft+=e;a.scrollTop+=k;if(g!=a.scrollLeft||f!=a.scrollTop)return}}try{a=a.parentNode}catch(l){a=null}}c.dnd.autoScroll(d)};return c.dnd});
define("dojo/dnd/Mover",["dojo","dojo/dnd/common","dojo/dnd/autoscroll"],function(c){c.declare("dojo.dnd.Mover",null,{constructor:function(d,a,e){this.node=c.byId(d);var g=a.touches?a.touches[0]:a;this.marginBox={l:g.pageX,t:g.pageY};this.mouseButton=a.button;a=this.host=e;d=d.ownerDocument;this.events=[c.connect(d,"onmousemove",this,"onFirstMove"),c.connect(d,"ontouchmove",this,"onFirstMove"),c.connect(d,"onmousemove",this,"onMouseMove"),c.connect(d,"ontouchmove",this,"onMouseMove"),c.connect(d,
"onmouseup",this,"onMouseUp"),c.connect(d,"ontouchend",this,"onMouseUp"),c.connect(d,"ondragstart",c.stopEvent),c.connect(d.body,"onselectstart",c.stopEvent)];if(a&&a.onMoveStart)a.onMoveStart(this)},onMouseMove:function(d){c.dnd.autoScroll(d);var a=this.marginBox,e=d.touches?d.touches[0]:d;this.host.onMove(this,{l:a.l+e.pageX,t:a.t+e.pageY},d);c.stopEvent(d)},onMouseUp:function(d){(c.isWebKit&&c.isMac&&this.mouseButton==2?d.button==0:this.mouseButton==d.button)&&this.destroy();c.stopEvent(d)},onFirstMove:function(d){var a=
this.node.style,e,g=this.host;switch(a.position){case "relative":case "absolute":e=Math.round(parseFloat(a.left))||0;a=Math.round(parseFloat(a.top))||0;break;default:a.position="absolute";a=c.marginBox(this.node);e=c.doc.body;var f=c.getComputedStyle(e),h=c._getMarginBox(e,f),f=c._getContentBox(e,f);e=a.l-(f.l-h.l);a=a.t-(f.t-h.t)}this.marginBox.l=e-this.marginBox.l;this.marginBox.t=a-this.marginBox.t;if(g&&g.onFirstMove)g.onFirstMove(this,d);c.disconnect(this.events.shift());c.disconnect(this.events.shift())},
destroy:function(){c.forEach(this.events,c.disconnect);var d=this.host;if(d&&d.onMoveStop)d.onMoveStop(this);this.events=this.node=this.host=null}});return c.dnd.Mover});
define("dojo/dnd/Moveable",["dojo","dojo/dnd/Mover"],function(c){c.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:!1,constructor:function(d,a){this.node=c.byId(d);a||(a={});this.handle=a.handle?c.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:c.dnd.Mover;this.events=[c.connect(this.handle,"onmousedown",this,"onMouseDown"),c.connect(this.handle,"ontouchstart",this,"onMouseDown"),c.connect(this.handle,"ondragstart",
this,"onSelectStart"),c.connect(this.handle,"onselectstart",this,"onSelectStart")]},markupFactory:function(d,a){return new c.dnd.Moveable(a,d)},destroy:function(){c.forEach(this.events,c.disconnect);this.events=this.node=this.handle=null},onMouseDown:function(d){if(!this.skip||!c.dnd.isFormElement(d)){if(this.delay){this.events.push(c.connect(this.handle,"onmousemove",this,"onMouseMove"),c.connect(this.handle,"ontouchmove",this,"onMouseMove"),c.connect(this.handle,"onmouseup",this,"onMouseUp"),c.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);c.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);c.stopEvent(d)},onMouseUp:function(d){for(var a=0;a<2;++a)c.disconnect(this.events.pop());c.stopEvent(d)},onSelectStart:function(d){(!this.skip||!c.dnd.isFormElement(d))&&
c.stopEvent(d)},onDragDetected:function(c){new this.mover(this.node,c,this)},onMoveStart:function(d){c.publish("/dnd/move/start",[d]);c.addClass(c.body(),"dojoMove");c.addClass(this.node,"dojoMoveItem")},onMoveStop:function(d){c.publish("/dnd/move/stop",[d]);c.removeClass(c.body(),"dojoMove");c.removeClass(this.node,"dojoMoveItem")},onFirstMove:function(){},onMove:function(c,a){this.onMoving(c,a);var e=c.node.style;e.left=a.l+"px";e.top=a.t+"px";this.onMoved(c,a)},onMoving:function(){},onMoved:function(){}});
return c.dnd.Moveable});
define("dojo/dnd/move",["dojo","dojo/dnd/Mover","dojo/dnd/Moveable"],function(c){c.declare("dojo.dnd.move.constrainedMoveable",c.dnd.Moveable,{constraints:function(){},within:!1,markupFactory:function(d,a){return new c.dnd.move.constrainedMoveable(a,d)},constructor:function(c,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=c._getMarginSize(d.node),a.r-=d.w,a.b-=
d.h)},onMove:function(c,a){var e=this.constraintBox,g=c.node.style;this.onMoving(c,a);a.l=a.l<e.l?e.l:e.r<a.l?e.r:a.l;a.t=a.t<e.t?e.t:e.b<a.t?e.b:a.t;g.left=a.l+"px";g.top=a.t+"px";this.onMoved(c,a)}});c.declare("dojo.dnd.move.boxConstrainedMoveable",c.dnd.move.constrainedMoveable,{box:{},markupFactory:function(d,a){return new c.dnd.move.boxConstrainedMoveable(a,d)},constructor:function(c,a){var e=a&&a.box;this.constraints=function(){return e}}});c.declare("dojo.dnd.move.parentConstrainedMoveable",
c.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(d,a){return new c.dnd.move.parentConstrainedMoveable(a,d)},constructor:function(d,a){var e=a&&a.area;this.constraints=function(){var a=this.node.parentNode,d=c.getComputedStyle(a),h=c._getMarginBox(a,d);if(e=="margin")return h;var i=c._getMarginExtents(a,d);h.l+=i.l;h.t+=i.t;h.w-=i.w;h.h-=i.h;if(e=="border")return h;i=c._getBorderExtents(a,d);h.l+=i.l;h.t+=i.t;h.w-=i.w;h.h-=i.h;if(e=="padding")return h;i=c._getPadExtents(a,d);h.l+=
i.l;h.t+=i.t;h.w-=i.w;h.h-=i.h;return h}}});c.dnd.constrainedMover=c.dnd.move.constrainedMover;c.dnd.boxConstrainedMover=c.dnd.move.boxConstrainedMover;c.dnd.parentConstrainedMover=c.dnd.move.parentConstrainedMover;return c.dnd.move});
define("dojo/dnd/TimedMoveable",["dojo","dojo/dnd/Moveable"],function(c){(function(){var d=c.dnd.Moveable.prototype.onMove;c.declare("dojo.dnd.TimedMoveable",c.dnd.Moveable,{timeout:40,constructor:function(a,c){c||(c={});if(c.timeout&&typeof c.timeout=="number"&&c.timeout>=0)this.timeout=c.timeout},markupFactory:function(a,e){return new c.dnd.TimedMoveable(e,a)},onMoveStop:function(a){a._timer&&(clearTimeout(a._timer),d.call(this,a,a._leftTop));c.dnd.Moveable.prototype.onMoveStop.apply(this,arguments)},
onMove:function(a,c){a._leftTop=c;if(!a._timer){var g=this;a._timer=setTimeout(function(){a._timer=null;d.call(g,a,a._leftTop)},this.timeout)}}})})();return c.dnd.TimedMoveable});
define("dojo/fx/Toggler",["dojo"],function(c){c.declare("dojo.fx.Toggler",null,{node:null,showFunc:c.fadeIn,hideFunc:c.fadeOut,showDuration:200,hideDuration:200,constructor:function(d){c.mixin(this,d);this.node=d.node;this._showArgs=c.mixin({},d);this._showArgs.node=this.node;this._showArgs.duration=this.showDuration;this.showAnim=this.showFunc(this._showArgs);this._hideArgs=c.mixin({},d);this._hideArgs.node=this.node;this._hideArgs.duration=this.hideDuration;this.hideAnim=this.hideFunc(this._hideArgs);
c.connect(this.showAnim,"beforeBegin",c.hitch(this.hideAnim,"stop",!0));c.connect(this.hideAnim,"beforeBegin",c.hitch(this.showAnim,"stop",!0))},show:function(c){return this.showAnim.play(c||0)},hide:function(c){return this.hideAnim.play(c||0)}});return c.fx.Toggler});
define("dojo/fx",["dojo","dojo/fx/Toggler"],function(c){(function(){var d={_fire:function(a,c){this[a]&&this[a].apply(this,c||[]);return this}},a=function(a){this._index=-1;this._animations=a||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;c.forEach(this._animations,function(a){this.duration+=a.duration;a.delay&&(this.duration+=a.delay)},this)};c.extend(a,{_onAnimate:function(){this._fire("onAnimate",arguments)},_onEnd:function(){c.disconnect(this._onAnimateCtx);c.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=c.connect(this._current,"onAnimate",this,"_onAnimate"),this._onEndCtx=c.connect(this._current,"onEnd",this,"_onEnd"),this._current.play(0,!0))},play:function(a,e){if(!this._current)this._current=this._animations[this._index=0];if(!e&&this._current.status()=="playing")return this;var d=c.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin")}),
i=c.connect(this._current,"onBegin",this,function(a){this._fire("onBegin",arguments)}),j=c.connect(this._current,"onPlay",this,function(a){this._fire("onPlay",arguments);c.disconnect(d);c.disconnect(i);c.disconnect(j)});this._onAnimateCtx&&c.disconnect(this._onAnimateCtx);this._onAnimateCtx=c.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx&&c.disconnect(this._onEndCtx);this._onEndCtx=c.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);
return this},pause:function(){if(this._current){var a=c.connect(this._current,"onPause",this,function(e){this._fire("onPause",arguments);c.disconnect(a)});this._current.pause()}return this},gotoPercent:function(a,e){this.pause();var d=this.duration*a;this._current=null;c.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,e);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 e=c.connect(this._current,"onStop",this,function(a){this._fire("onStop",arguments);c.disconnect(e)});this._current.stop()}return this},status:function(){return this._current?this._current.status():"stopped"},destroy:function(){this._onAnimateCtx&&c.disconnect(this._onAnimateCtx);this._onEndCtx&&c.disconnect(this._onEndCtx)}});c.extend(a,d);c.fx.chain=function(c){return new a(c)};
var e=function(a){this._animations=a||[];this._connects=[];this.duration=this._finished=0;c.forEach(a,function(a){var e=a.duration;a.delay&&(e+=a.delay);if(this.duration<e)this.duration=e;this._connects.push(c.connect(a,"onEnd",this,"_onEnd"))},this);this._pseudoAnimation=new c.Animation({curve:[0,1],duration:this.duration});var e=this;c.forEach("beforeBegin,onBegin,onPlay,onAnimate,onPause,onStop,onEnd".split(","),function(a){e._connects.push(c.connect(e._pseudoAnimation,a,function(){e._fire(a,arguments)}))})};
c.extend(e,{_doAction:function(a,e){c.forEach(this._animations,function(c){c[a].apply(c,e)});return this},_onEnd:function(){++this._finished>this._animations.length&&this._fire("onEnd")},_call:function(a,c){var e=this._pseudoAnimation;e[a].apply(e,c)},play:function(a,c){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,e){var d=this.duration*
a;c.forEach(this._animations,function(a){a.gotoPercent(a.duration<d?1:d/a.duration,e)});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(){c.forEach(this._connects,c.disconnect)}});c.extend(e,d);c.fx.combine=function(a){return new e(a)};c.fx.wipeIn=function(a){var e=a.node=c.byId(a.node),d=e.style,i,a=c.animateProperty(c.mixin({properties:{height:{start:function(){i=
d.overflow;d.overflow="hidden";if(d.visibility=="hidden"||d.display=="none")return d.height="1px",d.display="",d.visibility="",1;else{var a=c.style(e,"height");return Math.max(a,1)}},end:function(){return e.scrollHeight}}}},a));c.connect(a,"onEnd",function(){d.height="auto";d.overflow=i});return a};c.fx.wipeOut=function(a){var e=(a.node=c.byId(a.node)).style,d,a=c.animateProperty(c.mixin({properties:{height:{end:1}}},a));c.connect(a,"beforeBegin",function(){d=e.overflow;e.overflow="hidden";e.display=
""});c.connect(a,"onEnd",function(){e.overflow=d;e.height="auto";e.display="none"});return a};c.fx.slideTo=function(a){var e=null,d=null,i=function(a){return function(){var g=c.getComputedStyle(a),i=g.position;e=i=="absolute"?a.offsetTop:parseInt(g.top)||0;d=i=="absolute"?a.offsetLeft:parseInt(g.left)||0;if(i!="absolute"&&i!="relative")g=c.position(a,!0),e=g.y,d=g.x,a.style.position="absolute",a.style.top=e+"px",a.style.left=d+"px"}}(a.node=c.byId(a.node));i();a=c.animateProperty(c.mixin({properties:{top:a.top||
0,left:a.left||0}},a));c.connect(a,"beforeBegin",a,i);return a}})();return c.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(c,d){c.declare("dijit.layout._LayoutWidget",[d._Widget,d._Container,d._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:!0,buildRendering:function(){this.inherited(arguments);c.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(c.isIE?
this.domNode:c.global,"onresize",function(){this.resize()})}},resize:function(a,e){var d=this.domNode;if(a){c.marginBox(d,a);if(a.t)d.style.top=a.t+"px";if(a.l)d.style.left=a.l+"px"}var f=e||{};c.mixin(f,a||{});if(!("h"in f)||!("w"in f))f=c.mixin(c.marginBox(d),f);var h=c.getComputedStyle(d),i=c._getMarginExtents(d,h),j=c._getBorderExtents(d,h),f=this._borderBox={w:f.w-(i.w+j.w),h:f.h-(i.h+j.h)},i=c._getPadExtents(d,h);this._contentBox={l:c._toPixelValue(d,h.paddingLeft),t:c._toPixelValue(d,h.paddingTop),
w:f.w-i.w,h:f.h-i.h};this.layout()},layout:function(){},_setupChild:function(a){c.addClass(a.domNode,this.baseClass+"-child "+(a.baseClass?this.baseClass+"-"+a.baseClass:""))},addChild:function(a,c){this.inherited(arguments);this._started&&this._setupChild(a)},removeChild:function(a){c.removeClass(a.domNode,this.baseClass+"-child"+(a.baseClass?" "+this.baseClass+"-"+a.baseClass:""));this.inherited(arguments)}});d.layout.marginBox2contentBox=function(a,e){var d=c.getComputedStyle(a),f=c._getMarginExtents(a,
d),h=c._getPadBorderExtents(a,d);return{l:c._toPixelValue(a,d.paddingLeft),t:c._toPixelValue(a,d.paddingTop),w:e.w-(f.w+h.w),h:e.h-(f.h+h.h)}};(function(){var a=function(a,d){var f=a.resize?a.resize(d):c.marginBox(a.domNode,d);f?c.mixin(a,f):(c.mixin(a,c.marginBox(a.domNode)),c.mixin(a,d))};d.layout.layoutChildren=function(e,d,f,h,i){d=c.mixin({},d);c.addClass(e,"dijitLayoutContainer");f=c.filter(f,function(a){return a.region!="center"&&a.layoutAlign!="client"}).concat(c.filter(f,function(a){return a.region==
"center"||a.layoutAlign=="client"}));c.forEach(f,function(e){var f=e.domNode,l=e.region||e.layoutAlign,m=f.style;m.left=d.l+"px";m.top=d.t+"px";m.position="absolute";c.addClass(f,"dijitAlign"+(l.substring(0,1).toUpperCase()+l.substring(1)));f={};h&&h==e.id&&(f[e.region=="top"||e.region=="bottom"?"h":"w"]=i);l=="top"||l=="bottom"?(f.w=d.w,a(e,f),d.h-=e.h,l=="top"?d.t+=e.h:m.top=d.t+d.h+"px"):l=="left"||l=="right"?(f.h=d.h,a(e,f),d.w-=e.w,l=="left"?d.l+=e.w:m.left=d.l+d.w+"px"):(l=="client"||l=="center")&&
a(e,d)})}})();return d.layout._LayoutWidget});
define("dijit/layout/_ContentPaneResizeMixin",["dojo","dijit","dijit/_Contained","dijit/layout/_LayoutWidget"],function(c,d){c.declare("dijit.layout._ContentPaneResizeMixin",null,{doLayout:!0,isContainer:!0,isLayoutContainer:!0,_startChildren:function(){c.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(c.isIE?this.domNode:c.global,"onresize",function(){this._needLayout=!this._childOfLayoutWidget;this.resize()})}},_checkIfSingleChild:function(){var a=c.query("> *",this.containerNode).filter(function(a){return a.tagName!=="SCRIPT"}),e=a.filter(function(a){return c.hasAttr(a,"data-dojo-type")||c.hasAttr(a,"dojoType")||c.hasAttr(a,"widgetId")}),g=c.filter(e.map(d.byNode),function(a){return a&&
a.domNode&&a.resize});a.length==e.length&&g.length==1?this._singleChild=g[0]:delete this._singleChild;c.toggleClass(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild)},resize:function(a,c){!this._wasShown&&this.open!==!1&&this._onShow();this._resizeCalled=!0;this._scheduleLayout(a,c)},_scheduleLayout:function(a,c){this._isShown()?this._layout(a,c):(this._needLayout=!0,this._changeSize=a,this._resultSize=c)},_layout:function(a,e){a&&c.marginBox(this.domNode,a);var g=this.containerNode;
if(g===this.domNode){var f=e||{};c.mixin(f,a||{});if(!("h"in f)||!("w"in f))f=c.mixin(c.marginBox(g),f);this._contentBox=d.layout.marginBox2contentBox(g,f)}else this._contentBox=c.contentBox(g);this._layoutChildren();delete this._needLayout},_layoutChildren:function(){this.doLayout&&this._checkIfSingleChild();if(this._singleChild&&this._singleChild.resize){var a=this._contentBox||c.contentBox(this.containerNode);this._singleChild.resize({w:a.w,h:a.h})}else c.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,e=this.domNode.parentNode;return a.style.display!="none"&&a.style.visibility!="hidden"&&!c.hasClass(a,"dijitHidden")&&e&&e.style&&e.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(c){c.getObject("data.util.filter",!0,c);c.data.util.filter.patternToRegExp=function(c,a){for(var e="^",g=null,f=0;f<c.length;f++)switch(g=c.charAt(f),g){case "\\":e+=g;f++;e+=c.charAt(f);break;case "*":e+=".*";break;case "?":e+=".";break;case "$":case "^":case "/":case "+":case ".":case "|":case "(":case ")":case "{":case "}":case "[":case "]":e+="\\";default:e+=g}e+="$";return a?RegExp(e,"mi"):RegExp(e,"m")};return c.data.util.filter});
define("dojo/data/util/sorter",["dojo"],function(c){c.getObject("data.util.sorter",!0,c);c.data.util.sorter.basicComparator=function(c,a){var e=-1;c===null&&(c=void 0);a===null&&(a=void 0);if(c==a)e=0;else if(c>a||c==null)e=1;return e};c.data.util.sorter.createSortFunction=function(d,a){function e(a,c,e,d){return function(f,g){var h=d.getValue(f,a),i=d.getValue(g,a);return c*e(h,i)}}for(var g=[],f,h=a.comparatorMap,i=c.data.util.sorter.basicComparator,j=0;j<d.length;j++){f=d[j];var k=f.attribute;
if(k){f=f.descending?-1:1;var l=i;h&&(typeof k!=="string"&&"toString"in k&&(k=k.toString()),l=h[k]||i);g.push(e(k,f,l,a))}}return function(a,c){for(var e=0;e<g.length;){var d=g[e++](a,c);if(d!==0)return d}return 0}};return c.data.util.sorter});
define("dojo/data/util/simpleFetch",["dojo","dojo/data/util/sorter"],function(c){c.getObject("data.util.simpleFetch",!0,c);c.data.util.simpleFetch.fetch=function(d){d=d||{};if(!d.store)d.store=this;var a=this;this._fetchItems(d,function(e,d){var f=d.abort||null,h=!1,i=d.start?d.start:0,j=d.count&&d.count!==Infinity?i+d.count:e.length;d.abort=function(){h=!0;f&&f.call(d)};var k=d.scope||c.global;if(!d.store)d.store=a;d.onBegin&&d.onBegin.call(k,e.length,d);d.sort&&e.sort(c.data.util.sorter.createSortFunction(d.sort,
a));if(d.onItem)for(var l=i;l<e.length&&l<j;++l){var m=e[l];h||d.onItem.call(k,m,d)}d.onComplete&&!h&&(l=null,d.onItem||(l=e.slice(i,j)),d.onComplete.call(k,l,d))},function(a,d){d.onError&&d.onError.call(d.scope||c.global,a,d)});return d};return c.data.util.simpleFetch});
define("dojo/date/stamp",["dojo"],function(c){c.getObject("date.stamp",!0,c);c.date.stamp.fromISOString=function(d,a){if(!c.date.stamp._isoRegExp)c.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;var e=c.date.stamp._isoRegExp.exec(d),g=null;if(e){e.shift();e[1]&&e[1]--;e[6]&&(e[6]*=1E3);a&&(a=new Date(a),c.forEach(c.map("FullYear,Month,Date,Hours,Minutes,Seconds,Milliseconds".split(","),function(c){return a["get"+
c]()}),function(a,c){e[c]=e[c]||a}));g=new Date(e[0]||1970,e[1]||0,e[2]||1,e[3]||0,e[4]||0,e[5]||0,e[6]||0);e[0]<100&&g.setFullYear(e[0]||1970);var f=0,h=e[7]&&e[7].charAt(0);h!="Z"&&(f=(e[8]||0)*60+(Number(e[9])||0),h!="-"&&(f*=-1));h&&(f-=g.getTimezoneOffset());f&&g.setTime(g.getTime()+f*6E4)}return g};c.date.stamp.toISOString=function(c,a){var e=function(a){return a<10?"0"+a:a},a=a||{},g=[],f=a.zulu?"getUTC":"get",h="";a.selector!="time"&&(h=c[f+"FullYear"](),h=["0000".substr((h+"").length)+h,
e(c[f+"Month"]()+1),e(c[f+"Date"]())].join("-"));g.push(h);if(a.selector!="date"){h=[e(c[f+"Hours"]()),e(c[f+"Minutes"]()),e(c[f+"Seconds"]())].join(":");f=c[f+"Milliseconds"]();a.milliseconds&&(h+="."+(f<100?"0":"")+e(f));if(a.zulu)h+="Z";else if(a.selector!="time"){var f=c.getTimezoneOffset(),i=Math.abs(f);h+=(f>0?"-":"+")+e(Math.floor(i/60))+":"+e(i%60)}g.push(h)}return g.join("T")};return c.date.stamp});
define("dojo/data/ItemFileReadStore",["dojo","dojo/data/util/filter","dojo/data/util/simpleFetch","dojo/date/stamp"],function(c){c.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 c.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(c){if(!this.isItem(c))throw Error("dojo.data.ItemFileReadStore: Invalid item argument.");},_assertIsAttribute:function(c){if(typeof c!=="string")throw Error("dojo.data.ItemFileReadStore: Invalid attribute argument.");},getValue:function(c,a,e){c=this.getValues(c,a);return c.length>0?c[0]:e},getValues:function(c,a){this._assertIsItem(c);this._assertIsAttribute(a);return(c[a]||[]).slice(0)},getAttributes:function(c){this._assertIsItem(c);
var a=[],e;for(e in c)e!==this._storeRefPropName&&e!==this._itemNumPropName&&e!==this._rootItemPropName&&e!==this._reverseRefMap&&a.push(e);return a},hasAttribute:function(c,a){this._assertIsItem(c);this._assertIsAttribute(a);return a in c},containsValue:function(d,a,e){var g=void 0;typeof e==="string"&&(g=c.data.util.filter.patternToRegExp(e,!1));return this._containsValue(d,a,e,g)},_containsValue:function(d,a,e,g){return c.some(this.getValues(d,a),function(a){if(a!==null&&!c.isObject(a)&&g){if(a.toString().match(g))return!0}else if(e===
a)return!0})},isItem:function(c){return c&&c[this._storeRefPropName]===this&&this._arrayOfAllItems[c[this._itemNumPropName]]===c?!0:!1},isItemLoaded:function(c){return this.isItem(c)},loadItem:function(c){this._assertIsItem(c.item)},getFeatures:function(){return this._features},getLabel:function(c){if(this._labelAttr&&this.isItem(c))return this.getValue(c,this._labelAttr)},getLabelAttributes:function(){return this._labelAttr?[this._labelAttr]:null},_fetchItems:function(d,a,e){var g=this,f=function(e,
d){var f=[],h,i;if(e.query){var j;h=e.queryOptions?e.queryOptions.ignoreCase:!1;var r={};for(i in e.query)j=e.query[i],typeof j==="string"?r[i]=c.data.util.filter.patternToRegExp(j,h):j instanceof RegExp&&(r[i]=j);for(h=0;h<d.length;++h){var s=!0,q=d[h];if(q===null)s=!1;else for(i in e.query)j=e.query[i],g._containsValue(q,i,j,r[i])||(s=!1);s&&f.push(q)}}else for(h=0;h<d.length;++h)i=d[h],i!==null&&f.push(i);a(f,e)};if(this._loadFinished)f(d,this._getItemsArray(d.queryOptions));else{if(this._jsonFileUrl!==
this._ccUrl)c.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 h=c.xhrGet({url:g._jsonFileUrl,handleAs:"json-comment-optional",
preventCache:this.urlPreventCache,failOk:this.failOk});h.addCallback(function(a){try{g._getItemsFromLoadedData(a),g._loadFinished=!0,g._loadInProgress=!1,f(d,g._getItemsArray(d.queryOptions)),g._handleQueuedFetches()}catch(c){g._loadFinished=!0,g._loadInProgress=!1,e(c,d)}});h.addErrback(function(a){g._loadInProgress=!1;e(a,d)});var i=null;if(d.abort)i=d.abort;d.abort=function(){h&&h.fired===-1&&h.cancel();i&&i.call(d)}}else if(this._jsonData)try{this._loadFinished=!0,this._getItemsFromLoadedData(this._jsonData),
this._jsonData=null,f(d,this._getItemsArray(d.queryOptions))}catch(j){e(j,d)}else e(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 c=0;c<this._queuedFetches.length;c++){var a=this._queuedFetches[c],e=a.args;(a=a.filter)?a(e,this._getItemsArray(e.queryOptions)):this.fetchItemByIdentity(e)}this._queuedFetches=[]}},_getItemsArray:function(c){return c&&c.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"&&(!c.isArray(a)||g)&&!c.isFunction(a)&&(a.constructor==Object||c.isArray(a))&&typeof a._reference==="undefined"&&typeof a._type==="undefined"&&typeof a._value==="undefined"&&f.hierarchical}function e(d){f._arrayOfAllItems.push(d);for(var g in d){var h=d[g];if(h)if(c.isArray(h))for(var i=0;i<h.length;++i){var j=h[i];a(j)&&e(j)}else a(h)&&e(h)}}var g=!1,f=this;
this._labelAttr=d.label;var h,i;this._arrayOfAllItems=[];this._arrayOfTopLevelItems=d.items;for(h=0;h<this._arrayOfTopLevelItems.length;++h)i=this._arrayOfTopLevelItems[h],c.isArray(i)&&(g=!0),e(i),i[this._rootItemPropName]=!0;var j={},k;for(h=0;h<this._arrayOfAllItems.length;++h)for(k in i=this._arrayOfAllItems[h],i){if(k!==this._rootItemPropName){var l=i[k];l!==null?c.isArray(l)||(i[k]=[l]):i[k]=[null]}j[k]=k}for(;j[this._storeRefPropName];)this._storeRefPropName+="_";for(;j[this._itemNumPropName];)this._itemNumPropName+=
"_";for(;j[this._reverseRefMap];)this._reverseRefMap+="_";if(j=d.identifier){this._itemsByIdentity={};this._features["dojo.data.api.Identity"]=j;for(h=0;h<this._arrayOfAllItems.length;++h)if(i=this._arrayOfAllItems[h],d=i[j],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: ["+j+"].  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: ["+
j+"].  Value collided: ["+d+"]");}else this._itemsByIdentity[d]=i}else this._features["dojo.data.api.Identity"]=Number;for(h=0;h<this._arrayOfAllItems.length;++h)i=this._arrayOfAllItems[h],i[this._storeRefPropName]=this,i[this._itemNumPropName]=h;for(h=0;h<this._arrayOfAllItems.length;++h)for(k in i=this._arrayOfAllItems[h],i){d=i[k];for(j=0;j<d.length;++j)if(l=d[j],l!==null&&typeof l=="object"){if("_type"in l&&"_value"in l){var m=l._type,o=this._datatypeMap[m];if(o)if(c.isFunction(o))d[j]=new o(l._value);
else if(c.isFunction(o.deserialize))d[j]=o.deserialize(l._value);else throw Error("dojo.data.ItemFileReadStore: Value provided in typeMap was neither a constructor, nor a an object with a deserialize function");else throw Error("dojo.data.ItemFileReadStore: in the typeMap constructor arg, no object class was specified for the datatype '"+m+"'");}if(l._reference){l=l._reference;if(c.isObject(l))for(m=0;m<this._arrayOfAllItems.length;++m){var o=this._arrayOfAllItems[m],n=!0,p;for(p in l)o[p]!=l[p]&&
(n=!1);n&&(d[j]=o)}else d[j]=this._getItemByIdentity(l);this.referenceIntegrity&&(l=d[j],this.isItem(l)&&this._addReferenceToMap(l,i,k))}else this.isItem(l)&&this.referenceIntegrity&&this._addReferenceToMap(l,i,k)}}},_addReferenceToMap:function(){},getIdentity:function(c){var a=this._features["dojo.data.api.Identity"];if(a===Number)return c[this._itemNumPropName];else if(c=c[a])return c[0];return null},fetchItemByIdentity:function(d){var a,e;if(this._loadFinished)a=this._getItemByIdentity(d.identity),
d.onItem&&(e=d.scope?d.scope:c.global,d.onItem.call(e,a));else{var g=this;if(this._jsonFileUrl!==this._ccUrl)c.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,e=c.xhrGet({url:g._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk}),e.addCallback(function(e){var h=d.scope?d.scope:c.global;try{g._getItemsFromLoadedData(e),g._loadFinished=!0,g._loadInProgress=!1,a=g._getItemByIdentity(d.identity),d.onItem&&d.onItem.call(h,a),g._handleQueuedFetches()}catch(i){g._loadInProgress=!1,d.onError&&d.onError.call(h,i)}}),e.addErrback(function(a){g._loadInProgress=
!1;d.onError&&d.onError.call(d.scope?d.scope:c.global,a)}));else if(this._jsonData)g._getItemsFromLoadedData(g._jsonData),g._jsonData=null,g._loadFinished=!0,a=g._getItemByIdentity(d.identity),d.onItem&&(e=d.scope?d.scope:c.global,d.onItem.call(e,a))}},_getItemByIdentity:function(c){var a=null;this._itemsByIdentity&&Object.hasOwnProperty.call(this._itemsByIdentity,c)?a=this._itemsByIdentity[c]:Object.hasOwnProperty.call(this._arrayOfAllItems,c)&&(a=this._arrayOfAllItems[c]);a===void 0&&(a=null);return a},
getIdentityAttributes:function(){var c=this._features["dojo.data.api.Identity"];return c===Number?null:[c]},_forceLoad:function(){var d=this;if(this._jsonFileUrl!==this._ccUrl)c.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=c.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(c){throw console.log(c),c;}});a.addErrback(function(a){throw a;})}else if(this._jsonData)d._getItemsFromLoadedData(d._jsonData),
d._jsonData=null,d._loadFinished=!0}});c.extend(c.data.ItemFileReadStore,c.data.util.simpleFetch);return c.data.ItemFileReadStore});
define("orion/widgets/_OrionDialogMixin",["i18n!orion/widgets/nls/messages","dojo","dijit"],function(c,d,a){d.declare("orion.widgets._OrionDialogMixin",null,{postMixInProperties:function(){this.inherited(arguments);this.title=this.options.title||c["Information Needed"];this.buttonCancel=c.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(c){c.DeferredList=function(d,a,e,g){var f=[];c.Deferred.call(this);var h=this;d.length===0&&!a&&this.resolve([0,[]]);var i=0;c.forEach(d,function(c,k){function l(a,c){f[k]=[a,c];i++;i===d.length&&h.resolve(f)}c.then(function(c){a?h.resolve([k,c]):l(!0,c)},function(a){e?h.reject(a):l(!1,a);if(g)return null;throw a;})})};c.DeferredList.prototype=new c.Deferred;c.DeferredList.prototype.gatherResults=function(d){d=new c.DeferredList(d,!1,!0,!1);d.addCallback(function(a){var e=
[];c.forEach(a,function(a){e.push(a[1])});return e});return d};return c.DeferredList});
define("dojo/cookie",["dojo","dojo/regexp"],function(c){c.cookie=function(d,a,e){var g=document.cookie;if(arguments.length==1){var f=g.match(RegExp("(?:^|; )"+c.regexp.escapeString(d)+"=([^;]*)"));return f?decodeURIComponent(f[1]):void 0}else{e=e||{};g=e.expires;if(typeof g=="number"){var h=new Date;h.setTime(h.getTime()+g*864E5);g=e.expires=h}if(g&&g.toUTCString)e.expires=g.toUTCString();a=encodeURIComponent(a);g=d+"="+a;for(f in e)g+="; "+f,h=e[f],h!==!0&&(g+="="+h);document.cookie=g}};c.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 c.cookie});
define("dijit/tree/TreeStoreModel",["dojo","dijit"],function(c,d){c.declare("dijit.tree.TreeStoreModel",null,{store:null,childrenAttrs:["children"],newItemIdAttr:"id",labelAttr:"",root:null,query:null,deferItemLoadingUntilExpand:!1,constructor:function(a){c.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([c.connect(a,
"onNew",this,"onNewItem"),c.connect(a,"onDelete",this,"onDeleteItem"),c.connect(a,"onSet",this,"onSetItem")])},destroy:function(){c.forEach(this.connects,c.disconnect)},getRoot:function(a,e){this.root?a(this.root):this.store.fetch({query:this.query,onComplete:c.hitch(this,function(e){if(e.length!=1)throw Error(this.declaredClass+": query "+c.toJson(this.query)+" returned "+e.length+" items, but must return exactly one item");this.root=e[0];a(this.root)}),onError:e})},mayHaveChildren:function(a){return c.some(this.childrenAttrs,
function(c){return this.store.hasAttribute(a,c)},this)},getChildren:function(a,e,d){var f=this.store;if(f.isItemLoaded(a)){for(var h=[],i=0;i<this.childrenAttrs.length;i++)var j=f.getValues(a,this.childrenAttrs[i]),h=h.concat(j);var k=0;this.deferItemLoadingUntilExpand||c.forEach(h,function(a){f.isItemLoaded(a)||k++});k==0?e(h):c.forEach(h,function(a,c){f.isItemLoaded(a)||f.loadItem({item:a,onItem:function(a){h[c]=a;--k==0&&e(h)},onError:d})})}else{var l=c.hitch(this,arguments.callee);f.loadItem({item:a,
onItem:function(a){l(a,e,d)},onError:d})}},isItem:function(a){return this.store.isItem(a)},fetchItemByIdentity:function(a){this.store.fetchItemByIdentity(a)},getIdentity:function(a){return this.store.getIdentity(a)},getLabel:function(a){return this.labelAttr?this.store.getValue(a,this.labelAttr):this.store.getLabel(a)},newItem:function(a,c,d){var f={parent:c,attribute:this.childrenAttrs[0]},h;this.newItemIdAttr&&a[this.newItemIdAttr]?this.fetchItemByIdentity({identity:a[this.newItemIdAttr],scope:this,
onItem:function(i){i?this.pasteItem(i,null,c,!0,d):(h=this.store.newItem(a,f))&&d!=void 0&&this.pasteItem(h,c,c,!1,d)}}):(h=this.store.newItem(a,f))&&d!=void 0&&this.pasteItem(h,c,c,!1,d)},pasteItem:function(a,e,d,f,h){var i=this.store,j=this.childrenAttrs[0];e&&c.forEach(this.childrenAttrs,function(d){if(i.containsValue(e,d,a)){if(!f){var g=c.filter(i.getValues(e,d),function(c){return c!=a});i.setValues(e,d,g)}j=d}});if(d)if(typeof h=="number"){var k=i.getValues(d,j).slice();k.splice(h,0,a);i.setValues(d,
j,k)}else i.setValues(d,j,i.getValues(d,j).concat(a))},onChange:function(){},onChildrenChange:function(){},onDelete:function(){},onNewItem:function(a,e){e&&this.getChildren(e.item,c.hitch(this,function(a){this.onChildrenChange(e.item,a)}))},onDeleteItem:function(a){this.onDelete(a)},onSetItem:function(a,e){if(c.indexOf(this.childrenAttrs,e)!=-1)this.getChildren(a,c.hitch(this,function(c){this.onChildrenChange(a,c)}));else this.onChange(a)}});return d.tree.TreeStoreModel});
define("dijit/tree/ForestStoreModel",["dojo","dijit","dijit/tree/TreeStoreModel"],function(c,d){c.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,e,d){a===this.root?this.root.children?e(this.root.children):this.store.fetch({query:this.query,
onComplete:c.hitch(this,function(a){this.root.children=a;e(a)}),onError:d}):this.inherited(arguments)},isItem:function(a){return a===this.root?!0:this.inherited(arguments)},fetchItemByIdentity:function(a){if(a.identity==this.root.id){var e=a.scope?a.scope:c.global;a.onItem&&a.onItem.call(e,this.root)}else this.inherited(arguments)},getIdentity:function(a){return a===this.root?this.root.id:this.inherited(arguments)},getLabel:function(a){return a===this.root?this.root.label:this.inherited(arguments)},
newItem:function(a,c,d){return c===this.root?(this.onNewRootItem(a),this.store.newItem(a)):this.inherited(arguments)},onNewRootItem:function(){},pasteItem:function(a,c,g,f,h){if(c===this.root&&!f)this.onLeaveRoot(a);d.tree.TreeStoreModel.prototype.pasteItem.call(this,a,c===this.root?null:c,g===this.root?null:g,f,h);if(g===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:c.hitch(this,function(e){this.root.children=e;if(a.length!=e.length||c.some(a,function(a,c){return e[c]!=a}))this.onChildrenChange(this.root,e)})})},onNewItem:function(a,c){this._requeryTop();this.inherited(arguments)},onDeleteItem:function(a){c.indexOf(this.root.children,a)!=-1&&this._requeryTop();this.inherited(arguments)},onSetItem:function(a,c,d,f){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(c){return dojox=c._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(c){c.getObject("number",!0,c);c.number.format=function(d,a){var a=c.mixin({},a||{}),e=c.i18n.normalizeLocale(a.locale),e=c.i18n.getLocalization("dojo.cldr","number",e);a.customs=e;e=a.pattern||e[(a.type||"decimal")+"Format"];return isNaN(d)||Math.abs(d)==Infinity?null:c.number._applyPattern(d,e,a)};c.number._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;c.number._applyPattern=function(d,a,e){var e=
e||{},g=e.customs.group,f=e.customs.decimal,a=a.split(";"),h=a[0],a=a[d<0?1:0]||"-"+h;if(a.indexOf("%")!=-1)d*=100;else if(a.indexOf("\u2030")!=-1)d*=1E3;else if(a.indexOf("\u00a4")!=-1)g=e.customs.currencyGroup||g,f=e.customs.currencyDecimal||f,a=a.replace(/\u00a4{1,3}/,function(a){return e[["symbol","currency","displayName"][a.length-1]]||e.currency||""});else if(a.indexOf("E")!=-1)throw Error("exponential notation not supported");var i=c.number._numberPatternRE,h=h.match(i);if(!h)throw Error("unable to find a number expression in pattern: "+
a);if(e.fractional===!1)e.places=0;return a.replace(i,c.number._formatAbsolute(d,h[0],{decimal:f,group:g,places:e.places,round:e.round}))};c.number.round=function(c,a,e){e=10/(e||10);return(e*+c).toFixed(a)/e};(0.9).toFixed()==0&&function(){var d=c.number.round;c.number.round=function(a,c,g){var f=Math.pow(10,-c||0),h=Math.abs(a);if(!a||h>=f||h*Math.pow(10,c+1)<5)f=0;return d(a,c,g)+(a>0?f:-f)}}();c.number._formatAbsolute=function(d,a,e){e=e||{};if(e.places===!0)e.places=0;if(e.places===Infinity)e.places=
6;var a=a.split("."),g=typeof e.places=="string"&&e.places.indexOf(","),f=e.places;if(g)f=e.places.substring(g+1);else if(!(f>=0))f=(a[1]||[]).length;e.round<0||(d=c.number.round(d,f,e.round));var d=String(Math.abs(d)).split("."),h=d[1]||"";if(a[1]||e.places){if(g)e.places=e.places.substring(0,g);g=e.places!==void 0?e.places:a[1]&&a[1].lastIndexOf("0")+1;g>h.length&&(d[1]=c.string.pad(h,g,"0",!0));f<h.length&&(d[1]=h.substr(0,f))}else d[1]&&d.pop();f=a[0].replace(",","");g=f.indexOf("0");g!=-1&&(g=
f.length-g,g>d[0].length&&(d[0]=c.string.pad(d[0],g)),f.indexOf("#")==-1&&(d[0]=d[0].substr(d[0].length-g)));var f=a[0].lastIndexOf(","),i,j;f!=-1&&(i=a[0].length-f-1,a=a[0].substr(0,f),f=a.lastIndexOf(","),f!=-1&&(j=a.length-f-1));a=[];for(f=d[0];f;)g=f.length-i,a.push(g>0?f.substr(g):f),f=g>0?f.slice(0,g):"",j&&(i=j,delete j);d[0]=a.reverse().join(e.group||",");return d.join(e.decimal||".")};c.number.regexp=function(d){return c.number._parseInfo(d).regexp};c.number._parseInfo=function(d){var d=
d||{},a=c.i18n.normalizeLocale(d.locale),a=c.i18n.getLocalization("dojo.cldr","number",a),e=d.pattern||a[(d.type||"decimal")+"Format"],g=a.group,f=a.decimal,h=1;if(e.indexOf("%")!=-1)h/=100;else if(e.indexOf("\u2030")!=-1)h/=1E3;else{var i=e.indexOf("\u00a4")!=-1;i&&(g=a.currencyGroup||g,f=a.currencyDecimal||f)}a=e.split(";");a.length==1&&a.push("-"+a[0]);a=c.regexp.buildGroupRE(a,function(a){a="(?:"+c.regexp.escapeString(a,".")+")";return a.replace(c.number._numberPatternRE,function(a){var e={signed:!1,
separator:d.strict?g:[g,""],fractional:d.fractional,decimal:f,exponent:!1},a=a.split("."),i=d.places;a.length==1&&h!=1&&(a[1]="###");if(a.length==1||i===0)e.fractional=!1;else{i===void 0&&(i=d.pattern?a[1].lastIndexOf("0")+1:Infinity);if(i&&d.fractional==void 0)e.fractional=!0;!d.places&&i<a[1].length&&(i+=","+a[1].length);e.places=i}a=a[0].split(",");if(a.length>1&&(e.groupSize=a.pop().length,a.length>1))e.groupSize2=a.pop().length;return"("+c.number._realNumberRegexp(e)+")"})},!0);i&&(a=a.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g,
function(a,e,f,g){a=c.regexp.escapeString(d[["symbol","currency","displayName"][f.length-1]]||d.currency||"");e=e?"[\\s\\xa0]":"";g=g?"[\\s\\xa0]":"";return!d.strict?(e&&(e+="*"),g&&(g+="*"),"(?:"+e+a+g+")?"):e+a+g}));return{regexp:a.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:g,decimal:f,factor:h}};c.number.parse=function(d,a){var e=c.number._parseInfo(a),g=RegExp("^"+e.regexp+"$").exec(d);if(!g)return NaN;var f=g[1];if(!g[1]){if(!g[2])return NaN;f=g[2];e.factor*=-1}f=f.replace(RegExp("["+e.group+"\\s\\xa0]",
"g"),"").replace(e.decimal,".");return f*e.factor};c.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=c.number._integerRegexp(d),e=c.regexp.buildGroupRE(d.fractional,function(a){var c="";a&&d.places!==0&&(c="\\"+d.decimal,d.places==Infinity?c="(?:"+c+"\\d+)?":c+="\\d{"+d.places+
"}");return c},!0),g=c.regexp.buildGroupRE(d.exponent,function(a){return a?"([eE]"+c.number._integerRegexp({signed:d.eSigned})+")":""});a+=e;e&&(a="(?:(?:"+a+")|(?:"+e+"))");return a+g};c.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=c.regexp.buildGroupRE(d.signed,function(a){return a?"[-+]":""},!0),e=c.regexp.buildGroupRE(d.separator,function(a){if(!a)return"(?:\\d+)";a=c.regexp.escapeString(a);
a==" "?a="\\s":a=="\u00a0"&&(a="\\s\\xa0");var e=d.groupSize,h=d.groupSize2;return h?(a="(?:0|[1-9]\\d{0,"+(h-1)+"}(?:["+a+"]\\d{"+h+"})*["+a+"]\\d{"+e+"})",e-h>0?"(?:"+a+"|(?:0|[1-9]\\d{0,"+(e-1)+"}))":a):"(?:0|[1-9]\\d{0,"+(e-1)+"}(?:["+a+"]\\d{"+e+"})*)"},!0);return a+e};return c.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(c){c.getObject("io",!0,c);c.io.iframe={create:function(d,a,e){if(window[d])return window[d];if(window.frames[d])return window.frames[d];var g=null;e||(c.config.useXDomain&&!c.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"),e=c.config.dojoBlankHtmlUrl||c.moduleUrl("dojo","resources/blank.html"));
g=c.place('<iframe id="'+d+'" name="'+d+'" src="'+e+'" onload="'+a+'" style="position: absolute; left: 1px; top: 1px; height: 1px; width: 1px; visibility: hidden">',c.body());return window[d]=g},setSrc:function(d,a,e){try{if(e){var g;(g=c.isIE||c.isWebKit?d.contentWindow.document:d.contentWindow)?g.location.replace(a):d.location=a}else c.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&&
c.doc.getElementsByTagName("iframe")[d.name].contentWindow&&c.doc.getElementsByTagName("iframe")[d.name].contentWindow.document||d.name&&c.doc.frames[d.name]&&c.doc.frames[d.name].document||null},send:function(d){if(!this._frame)this._frame=this.create(this._iframeName,c._scopeName+".io.iframe._iframeOnload();");d=c._ioSetArgs(d,function(a){a.canceled=!0;a.ioArgs._callNext()},function(a){var e=null;try{var d=a.ioArgs,f=c.io.iframe,h=f.doc(f._frame),i=d.handleAs,e=h;if(i!="html")if(i=="xml"){if(c.isIE<
9||c.isIE&&c.isQuirks){c.query("a",f._frame.contentWindow.document.documentElement).orphan();var j=f._frame.contentWindow.document.documentElement.innerText,j=j.replace(/>\s+</g,"><"),j=c.trim(j),e=c._contentHandlers.xml({responseText:j})}}else e=h.getElementsByTagName("textarea")[0].value,i=="json"?e=c.fromJson(e):i=="javascript"&&(e=c.eval(e))}catch(k){e=k}finally{d._callNext()}return e},function(a,c){c.ioArgs._hasError=!0;c.ioArgs._callNext();return a});d.ioArgs._callNext=function(){if(!this._calledNext)this._calledNext=
!0,c.io.iframe._currentDfd=null,c.io.iframe._fireNextRequest()};this._dfdQueue.push(d);this._fireNextRequest();c._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:c._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,e=a.args;a._contentToClean=[];var g=c.byId(e.form),f=e.content||{};if(g){if(f){var h=function(e,d){c.create("input",{type:"hidden",name:e,value:d},g);a._contentToClean.push(e)},i;for(i in f){var j=f[i];if(c.isArray(j)&&j.length>1){var k;for(k=0;k<j.length;k++)h(i,j[k])}else g[i]?g[i].value=j:h(i,j)}}var l=g.getAttributeNode("action"),m=g.getAttributeNode("method"),o=g.getAttributeNode("target");
if(e.url)a._originalAction=l?l.value:null,l?l.value=e.url:g.setAttribute("action",e.url);if(!m||!m.value)m?m.value=e.method?e.method:"post":g.setAttribute("method",e.method?e.method:"post");a._originalTarget=o?o.value:null;o?o.value=this._iframeName:g.setAttribute("target",this._iframeName);g.target=this._iframeName;c._ioNotifyStart(d);g.submit()}else h=e.url+(e.url.indexOf("?")>-1?"&":"?")+a.query,c._ioNotifyStart(d),this.setSrc(this._frame,h,!0)}}}catch(n){d.errback(n)}},_iframeOnload:function(){var d=
this._currentDfd;if(d){var d=d.ioArgs,a=c.byId(d.args.form);if(a){for(var e=d._contentToClean,g=0;g<e.length;g++)for(var f=e[g],h=0;h<a.childNodes.length;h++){var i=a.childNodes[h];if(i.name==f){c.destroy(i);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 c.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/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 c(a,c,d,f,h){this.keyCode=typeof a==="string"?a.toUpperCase().charCodeAt(0):a;this.mod1=c!==void 0&&c!==null?c:!1;this.mod2=d!==void 0&&d!==null?d:!1;this.mod3=f!==void 0&&f!==null?f:!1;this.mod4=h!==void 0&&h!==null?h:!1}var d=window.navigator.platform.indexOf("Mac")!==-1;c.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:c}});
define("orion/contentTypes",[],function(){function c(a,c){function e(a,c,d,f){var d=c.filename.indexOf(d)>=0,g=c.extension.indexOf(f)>=0;if(d||g)if(!a||d&&a.extension.indexOf(f)>=0)return c;return a}for(var d=a&&a.split(".").pop(),g=null,l=0;l<c.length;l++){var m=c[l];e(g,m,a,d)===m&&(g=m)}return g}function d(c){this.serviceRegistry=c;this.map=function(a){function c(a){return a===null||typeof a==="undefined"?[]:a instanceof Array?a:[a]}for(var a=a.getServiceReferences(e).concat(a.getServiceReferences(g)),
d={},f=0;f<a.length;f++)for(var l=c(a[f].getProperty("contentTypes")),m=0;m<l.length;m++){var o=l[m];d[o.id]||(d[o.id]={id:o.id,name:o.name,image:o.image,"extends":o["extends"],extension:c(o.extension),filename:c(o.filename)})}return d}(c);c.registerService(a,this)}var a="orion.core.contenttypes",e="orion.core.contenttype",g="orion.file.contenttype";d.prototype={getContentTypes:function(){var a=this.getContentTypesMap(),c=[],e;for(e in a)a.hasOwnProperty(e)&&c.push(a[e]);return c},getContentTypesMap:function(){return this.map},
getFileContentType:function(a){return c(a.Name,this.getContentTypes())},getFilenameContentType:function(a){return c(a,this.getContentTypes())},getContentType:function(a){return this.map[a]||null},isExtensionOf:function(a,c){a=typeof a==="string"?this.getContentType(a):a;c=typeof c==="string"?this.getContentType(c):c;if(!a||!c)return!1;if(a.id===c.id)return!0;else for(var e=a,d={};e&&(e=this.getContentType(e["extends"]));){if(e.id===c.id)return!0;if(d[e.id])throw Error("Cycle: "+e.id);d[e.id]=!0}return!1},
isSomeExtensionOf:function(a,c){for(var e=0;e<c.length;e++)if(this.isExtensionOf(a,c[e]))return!0;return!1}};return{ContentTypeService:d,getFilenameContentType:c}});
define("orion/URITemplate",[],function(){function c(a){this._text=a}function d(a,c){if(c==="U")return encodeURIComponent(a).replace(/[!'()*]/g,function(a){return"%"+a.charCodeAt(0).toString(16).toUpperCase()});if(c==="U+R")return encodeURI(a).replace(/%5B/g,"[").replace(/%5D/g,"]");if(c==="U+R-,")return encodeURI(a).replace(/%5B/g,"[").replace(/%5D/g,"]").replace(/,/g,"%2C");throw Error("Unknown allowed character set: "+c);}function a(a,c,e){for(var f=[],g=0;g<a.length;g++)typeof a[g]!=="undefined"&&
f.push(d(a[g],c));return f.join(e)}function e(a,c,e,f){for(var g=Object.keys(a),h=[],i=0;i<g.length;i++)typeof a[g[i]]!=="undefined"&&h.push(d(g[i],c)+e+d(a[g[i]],c));return h.join(f)}function g(a){if(a.length===0)throw Error("Invalid Expression: 0 length expression");(this._operator=h[a[0]])?a=a.substring(1):this._operator=h.NUL;for(var c=[],e=a.split(","),d=0;d<e.length;d++){var f=e[d].match(i);if(f===null)throw Error("Bad VarSpec: "+a);c.push({name:f[1],explode:!!f[2],prefix:f[3]?parseInt(f[3],
10):-1})}this._varSpecList=c}function f(a){for(var e=[],d=0,f=a.indexOf("{",d);f!==-1;){e.push(new c(a.substring(d,f)));d=a.indexOf("}",f+1);if(d===-1)throw Error("Invalid template: "+a);e.push(new g(a.substring(f+1,d)));d+=1;f=a.indexOf("{",d)}e.push(new c(a.substring(d)));this._templateComponents=e}var h={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-,"}},i=/^((?:(?:[a-zA-Z0-9_])|(?:%[0-9A-F][0-9A-F]))(?:(?:[a-zA-Z0-9_.])|(?:%[0-9A-F][0-9A-F]))*)(?:(\*)|:([0-9]+))?$/;c.prototype={expand:function(){return encodeURI(this._text)}};g.prototype={expand:function(c){for(var f=[],g=
0;g<this._varSpecList.length;g++){var h=this._varSpecList[g],i=h.name,n=c[i],p=typeof n;if(p!=="undefined"&&n!==null){var r=f.length===0?this._operator.first:this._operator.sep;if(p==="string")this._operator.named&&(r+=d(i,"U+R"),r+=n.length===0?this._operator.ifemp:"="),h.prefix!==-1&&h.prefix<n.length&&(n=n.substring(0,h.prefix)),r+=d(n,this._operator.allow);else if(Array.isArray(n))h.explode?r+=a(n,this._operator.allow,this._operator.sep):(this._operator.named&&(r+=d(i,"U+R"),r+=n.length===0?this._operator.ifemp:
"="),r+=a(n,this._operator.allow,","));else if(p==="object")h.explode?r+=e(n,this._operator.allow,"=",this._operator.sep):(this._operator.named&&(r+=d(i,"U+R"),r+=Object.keys(n).length===0?this._operator.ifemp:"="),r+=e(n,this._operator.allow,",",","));else throw Error("bad param type: "+i+" : "+p);f.push(r)}}return f.join("")}};f.prototype={expand:function(a){for(var c=[],e=0;e<this._templateComponents.length;e++)c.push(this._templateComponents[e].expand(a));return c.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("orion/ssh/sshTools",[],function(){var c=c||{};c.SshService=function(){function c(a){if(a)this._serviceRegistry=a,this._serviceRegistration=a.registerService("orion.net.ssh",this)}c.prototype={_KNOWN_HOSTS:"known_hosts",addKnownHosts:function(a,c){c||(c="");var d=localStorage.getItem(c+this._KNOWN_HOSTS);d?d.indexOf(a)<0&&localStorage.setItem(c+this._KNOWN_HOSTS,d+"\n"+a):localStorage.setItem(c+this._KNOWN_HOSTS,a)},clearKnownhosts:function(a){a||(a="");localStorage.removeItem(a+this._KNOWN_HOSTS)},
getKnownHosts:function(a){a||(a="");return localStorage.getItem(a+this._KNOWN_HOSTS)}};return c}();return c});
define("orion/treetable",["i18n!orion/nls/messages","dojo"],function(c,d){function a(a){this._init(a)}a.prototype={_init:function(a){var g=a.parent,f=this;typeof g==="string"&&(g=d.byId(g));if(!g)throw c["no parent"];if(!a.model)throw c["no tree model"];if(!a.renderer)throw c["no renderer"];this._parent=g;this._treeModel=a.model;this._renderer=a.renderer;this._showRoot=a.showRoot===void 0?!1:a.showRoot;this._indent=a.indent===void 0?16:a.indent;this._onCollapse=a.onCollapse;this._labelColumnIndex=
a.labelColumnIndex===void 0?0:a.labelColumnIndex;this._id=a.id===void 0?"treetable":a.id;this._tableStyle=a.tableStyle;this._root=this._treeModel.getRoot(function(a){this._showRoot?(a._depth=0,this._generate([a],0)):f._treeModel.getChildren(a,function(a){f._generate(a,0)})})},_generate:function(a,c){d.empty(this._parent);var f=document.createElement("table");f.id=this._id;this._tableStyle&&d.addClass(f,this._tableStyle);this._renderer.initTable(f,this);var h=document.createElement("tbody");h.id=this._id+
"tbody";this._generateChildren(a,c,h,"last");f.appendChild(h);this._parent.appendChild(f);this._rowsChanged()},_generateChildren:function(a,c,f,h){for(var i in a){var j=document.createElement("tr");j.id=this._treeModel.getId(a[i]);j._depth=c;j._item=a[i];this._renderer.render(a[i],j);d.style(j.childNodes[this._labelColumnIndex],"paddingLeft",this._indent*c+"px");d.place(j,f,h);h==="after"&&(f=j)}},_rowsChanged:function(){this._renderer.rowsChanged&&this._renderer.rowsChanged()},getSelected:function(){return this._renderer.getSelected()},
refresh:function(a,g,f){var h=this._treeModel.getId(a),i;if(h===this._id)this._removeChildRows(h),this._generateChildren(g,0,d.byId(h+"tbody"),"last"),this._rowsChanged();else{var j=d.byId(h);j?(j._item=a,j&&(f||j._expanded)?(j._expanded=!0,this._removeChildRows(h),this._renderer.updateExpandVisuals(j,!0),g?(this._generateChildren(g,j._depth+1,j,"after"),this._rowsChanged()):(i=this,g=this._treeModel.getChildren(j._item,function(a){i._generateChildren(a,j._depth+1,j,"after");i._rowsChanged()}))):
this._renderer.updateExpandVisuals(j,!1)):console.log(c["could not find table row "]+h)}},getItem:function(a){if(typeof a==="string"){var c=d.byId(a);if(c)return c._item}return a._item?a._item:a},toggle:function(a){var c=d.byId(a);c&&(c._expanded?(this.collapse(a),this._renderer.updateExpandVisuals(c,!1)):(this.expand(a),this._renderer.updateExpandVisuals(c,!0)))},isExpanded:function(a){return(a=d.byId(a))?a._expanded:!1},expand:function(a,c,f){var a=typeof a==="string"?a:this._treeModel.getId(a),
h=d.byId(a);if(h&&!h._expanded){h._expanded=!0;var i=this;this._renderer.updateExpandVisuals(h,!0);this._treeModel.getChildren(h._item,function(a){i._generateChildren(a,h._depth+1,h,"after");i._rowsChanged();c&&c.apply(this,f)})}},_removeChildRows:function(a){var c=a===this._id,f=!1,h=-1,i=[];d.query(".treeTableRow",this._parent).forEach(function(d){if(!f)if(c)d._depth>h?i.push(d):f=!0;else if(d.id===a)c=!0,h=d._depth});for(var j in i){var k=i[j];k.parentNode.removeChild(k)}},collapse:function(a){var a=
typeof a==="string"?a:this._treeModel.getId(a),c=d.byId(a);if(c){if(!c._expanded)return;c._expanded=!1;this._renderer.updateExpandVisuals(c,!1);this._removeChildRows(a);this._rowsChanged()}this._onCollapse&&this._onCollapse(c._item)}};a.prototype.constructor=a;return{TableTree:a}});
define("orion/treeModelIterator",[],function(){var c={};c.TreeModelIterator=function(){function c(a,e){this.firstLevelChildren=a;this.reset();this._init(e)}c.prototype={_init:function(a){if(a)this.isExpanded=a.isExpanded,this.isExpandable=a.isExpandable,this.forceExpandFunc=a.forceExpandFunc},topLevel:function(a){return a.parent?a.parent===this.root:!0},_expanded:function(a){if(!a)return!0;var c=a.children&&a.children.length>0;this.isExpanded&&c&&(c=this.isExpanded(a));return c},_expandable:function(a){return!a?
!0:this.isExpandable?this.isExpandable(a):!1},_diveIn:function(a){return this._expanded(a)?(this.setCursor(a.children[0]),this.cursor()):null},_drillToLast:function(a){return this._expanded(a)?this._drillToLast(a.children[a.children.length-1]):a},_forward:function(a){var c=this._diveIn(this._cursor);if(!c){if(a&&this._expandable(this._cursor)&&this.forceExpandFunc){var d=this;return this.forceExpandFunc(this._cursor,"first",function(a){mdoel&&d.setCursor(a)})}(c=this._findSibling(this._cursor,!0))&&
this.setCursor(c)}return c},_backward:function(a){var c=this._findSibling(this._cursor,!1);c&&c!==this._cursor.parent&&(c=this._drillToLast(c));if(a&&c&&this._expandable(c)&&this.forceExpandFunc&&c!==this._cursor.parent)return this.forceExpandFunc(c,"last",function(a){mdoel&&that.setCursor(a)});c&&this.setCursor(c);return c},_findSibling:function(a,c){for(var d=this.topLevel(a),f=d?this.firstLevelChildren:a.parent.children,h=0;h<f.length;h++)if(f[h]===a)return h===0&&!c?d?null:a.parent:h===f.length-
1&&c?d?null:this._findSibling(a.parent,c):c?f[h+1]:f[h-1];return null},_inParentChain:function(a,c){for(var d=a.parent;d;){if(d===c)return!0;d=d.parent}return!1},_getTopLevelParent:function(a){if(this.topLevel(a))return a;for(a=a.parent;a;){if(this.topLevel(a))return a;a=a.parent}return null},_onCollapse:function(a){return this._expanded(a.parent)?a:this._onCollapse(a.parent)},_scan:function(a,c,d){this.setCursor(c);var f=[];for(f.push(c);;){if(this.iterate(a))f.push(this.cursor());else break;if(d===
this.cursor())return f}return null},setCursor:function(a){this._prevCursor=this._cursor;this._cursor=a},setTree:function(a){this.firstLevelChildren=a;if(this.firstLevelChildren.length>0)this.root=this.firstLevelChildren[0].parent},scan:function(a,c){var d=this.cursor(),f=this._scan(!0,a,c);f||(f=this._scan(!1,a,c));this.setCursor(d);return f},iterate:function(a,c){return a?this._forward(c):this._backward(c)},iterateOnTop:function(a,c){var d=this._findSibling(this._getTopLevelParent(this.cursor()),
a);d?this.setCursor(d):c&&this.firstLevelChildren.length>0&&this.setCursor(a?this.firstLevelChildren[0]:this.firstLevelChildren[this.firstLevelChildren.length-1])},collapse:function(a){return this._inParentChain(this._cursor,a)?(this.setCursor(a),this._cursor):null},reset:function(){this.root=this._prevCursor=this._cursor=null;if(this.firstLevelChildren.length>0)this._cursor=this.firstLevelChildren[0],this.root=this.firstLevelChildren[0].parent},cursorMoved:function(){return this._cursor!==this._prevCursor},
cursor:function(){return this._cursor},prevCursor:function(){return this._prevCursor}};return c}();return c});
define("orion/explorerNavHandler",["i18n!orion/nls/messages","dojo","orion/treeModelIterator"],function(c,d,a){var c={},e=navigator.userAgent.indexOf("iPad")!==-1,g=window.navigator.platform.indexOf("Mac")!==-1;c.ExplorerNavHandler=function(){function c(e,f,g){this.explorer=e;this.model=this.explorer.model;this._navDict=f;this._listeners=[];this._selections=[];this._currentColumn=0;var k=this._getEventListeningDiv();d.attr(k,"tabIndex",0);d.addClass(k,"selectionModelContainer");this._modelIterator=
new a.TreeModelIterator([],{isExpanded:d.hitch(this,function(a){return this.isExpanded(a)}),isExpandable:this.explorer.renderer.isExpandable?d.hitch(this,function(a){return this.explorer.renderer.isExpandable(a)}):d.hitch(this,function(a){return this.isExpandable(a)}),forceExpandFunc:this.explorer.forceExpandFunc?d.hitch(this,function(a,c,e){return this.explorer.forceExpandFunc(a,c,e)}):void 0});this._init(g);(!g||g.setFocus!==!1)&&k.focus();this._listeners.push(d.connect(k,"onkeydown",d.hitch(this,
function(a){if(a.target){if(a.target!==k)return!0}else if(a.srcElement&&a.srcElement!==k)return!0;if(this.explorer.preventDefaultFunc&&this.explorer.preventDefaultFunc(a,this._modelIterator.cursor()))return!0;if(a.keyCode===d.keys.DOWN_ARROW)return this.onDownArrow(a);else if(a.keyCode===d.keys.UP_ARROW)return this.onUpArrow(a);else if(a.keyCode===d.keys.RIGHT_ARROW)return this.onRightArrow(a);else if(a.keyCode===d.keys.LEFT_ARROW)return this.onLeftArrow(a);else if(a.keyCode===d.keys.SPACE)return this.onSpace(a);
else if(a.keyCode===d.keys.ENTER)return this.onEnter(a)})));e=d.connect(k,"onblur",d.hitch(this,function(){if(this.explorer.onFocus)this.explorer.onFocus(!1);else this.toggleCursor(null,!1)}));f=d.connect(k,"onfocus",d.hitch(this,function(){if(this.explorer.onFocus)this.explorer.onFocus(!0);else this.toggleCursor(null,!0)}));this._listeners.push(e);this._listeners.push(f)}c.prototype={_init:function(a){this._linearGridMove=!1;if(a)this._selectionPolicy=a.selectionPolicy,this.preventDefaultFunc=a.preventDefaultFunc,
this.postDefaultFunc=a.postDefaultFunc},_ctrlKeyOn:function(a){return g?a.metaKey:a.ctrlKey},removeListeners:function(){if(this._listeners)for(var a=0;a<this._listeners.length;a++)d.disconnect(this._listeners[a])},focus:function(){var a=this._getEventListeningDiv();a&&a.focus()},_getEventListeningDiv:function(a){return this.explorer.keyEventListeningDiv&&typeof this.explorer.keyEventListeningDiv==="function"?this.explorer.keyEventListeningDiv(a):d.byId(this.explorer._parentId)},isExpandable:function(a){return!a?
!1:d.byId(this.explorer.renderer.expandCollapseImageId(this.model.getId(a)))?!0:!1},isExpanded:function(a){return!a?!1:this.explorer.myTree.isExpanded(this.model.getId(a))},refreshSelection:function(a){var c=this;this.explorer.selection&&this.explorer.selection.getSelections(function(e){c._clearSelection();for(var d=0;d<e.length;d++)c._selections.push(e[d]);c._selections.length>0&&c.cursorOn(c._selections[0],!0,!1,a)})},refreshModel:function(a,c,e,d){this._currentColumn=0;this.topIterationNodes=[];
this.model=c;this._navDict=a;if(this.model.getTopIterationNodes)this.topIterationNodes=this.model.getTopIterationNodes();else if(e)this.topIterationNodes=e;this._modelIterator.setTree(this.topIterationNodes);!d&&this.explorer.selection&&this._modelIterator.reset();this.refreshSelection(!0)},getTopLevelNodes:function(){return this._modelIterator.firstLevelChildren},_inSelection:function(a){for(var c=0;c<this._selections.length;c++)if(a===this._selections[c])return c;return-1},_clearSelection:function(a){if(a)for(a=
0;a<this._selections.length;a++)this._checkRow(this._selections[a],!0);this._selections=[]},setSelection:function(a,c){if(this._selectionPolicy==="cursorOnly")c&&this.explorer.renderer._useCheckboxSelection&&this._checkRow(a,!0);else if(this._isRowSelectable(a)){if(c){var e=this._inSelection(a);e>=0?(this._checkRow(a,!0),this._selections.splice(e,1)):(this._checkRow(a,!1),this._selections.push(a),this._lastSelection=a)}else this._clearSelection(!0),this._checkRow(a,!1),this._selections.push(a),this._lastSelection=
a;this.explorer.selection&&(this.explorer.renderer.storeSelections(),this.explorer.selection.setSelections(this._selections))}},moveColumn:function(a,c){a||(a=this.currentModel());var e=this._getGridChildren(a);if(e&&e.length>1||c===0&&e){c!==0&&this.toggleCursor(a,!1);var d=this._currentColumn,f=!0;d+=c;d<0?(this._linearGridMove&&c!==0&&(this._modelIterator.iterate(!1)?a=this.currentModel():f=!1),d=f?e.length-1:this._currentColumn):d>=e.length&&(this._linearGridMove&&c!==0&&(this._modelIterator.iterate(!0)?
a=this.currentModel():f=!1),d=f?0:this._currentColumn);this._currentColumn=d;c!==0&&this.toggleCursor(a,!0);return!0}return!1},_getGridChildren:function(a){return this._navDict?this._navDict.getGridNavHolder(a):null},getCurrentGrid:function(a){a||(a=this.currentModel());return(a=this._getGridChildren(a))&&a.length>0?a[this._currentColumn]:null},toggleCursor:function(a,c){var e=this.getRowDiv(a);e&&d.toggleClass(e,"treeIterationCursorRow",c);(e=this.getCurrentGrid(a))&&e.domNode&&d.toggleClass(e.domNode,
"treeIterationCursor",c)},currentModel:function(){return this._modelIterator.cursor()},cursorOn:function(a,c,e,d){var e=e===void 0?!1:e,f,g;if(a||c){if(g===this._modelIterator.cursor())return;f=this._modelIterator.cursor();g=a;this._modelIterator.setCursor(g)}else f=this._modelIterator.prevCursor(),g=this._modelIterator.cursor();if(f!==g||c)if(this.toggleCursor(f,!1),!c||g)if(this.moveColumn(null,0),this.toggleCursor(g,!0),(a=this.getRowDiv())&&!d&&!this._visible(a)&&a.scrollIntoView(!e),this.explorer.onCursorChanged)this.explorer.onCursorChanged(f,
g)},getSelection:function(){return this._selections},getSelectionIds:function(){for(var a=[],c=0;c<this._selections.length;c++)a.push(this.model.getId(this._selections[c]));return a},getRowDiv:function(a){a=a?a:this._modelIterator.cursor();if(!a)return null;var a=this.model.getId(a),c=this._navDict.getValue(a);return c&&c.rowDomNode?c.rowDomNode:d.byId(a)},iterate:function(a,c,e){this.topIterationNodes.length!==0&&this._modelIterator.iterate(a,c)&&(this.cursorOn(null,!1,a),e&&this.setSelection(this.currentModel(),
!0))},_checkRow:function(a,c){if(this.explorer.renderer._useCheckboxSelection){var e=this.getRowDiv(a);if(e){var f=d.byId(this.explorer.renderer.getCheckBoxId(e.id)),g=c?!f.checked:!0;if(g!==f.checked)this.explorer.renderer.onCheck(e,f,g,!0)}}else this._select(a,c)},_vpWidth:function(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth},_vpHeight:function(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight},_getToolBarHeight:function(a){return d.byId(a)&&
(mBox=d.marginBox(a))?mBox.h:0},_visible:function(a){if(a.offsetWidth===0||a.offsetHeight===0)return!1;var c=0;c+=this._getToolBarHeight("staticBanner");c+=this._getToolBarHeight("titleArea");c+=this._getToolBarHeight("pageToolbar");var e=this._getEventListeningDiv(!0).getClientRects()[0],d=this._vpHeight();this._vpWidth();for(var c=e.top>c?e.top:c,e=e.bottom<d?e.bottom:d,a=a.getClientRects(),d=0,f=a.length;d<f;d++){var g=a[d];if(g.top>=c&&g.top<=e&&g.bottom>=c&&g.bottom<=e)return!0}return!1},_select:function(a){a||
(a=this._modelIterator.cursor());var c=this.getRowDiv(a);c&&d.toggleClass(c,"checkedRow",this._inSelection(a)<0)},_onModelGrid:function(a,c){var e=this._getGridChildren(a);if(e)for(var d=0;d<e.length;d++)if(c.target===e[d].domNode)return!0;return!1},onClick:function(a,c){var f=d.byId(this.explorer.renderer.expandCollapseImageId(this.model.getId(a)));if(c.target!==f&&!this._onModelGrid(a,c))if(this.cursorOn(a,!0,!1,!0),e)this.setSelection(a,!0);else if(this._ctrlKeyOn(c))this.setSelection(a,!0);else if(c.shiftKey&&
this._lastSelection){if(f=this._modelIterator.scan(this._lastSelection,a)){this._clearSelection(!0);for(var g=0;g<f.length;g++)this.setSelection(f[g],!0)}}else this.setSelection(a,!1)},onCollapse:function(a){this._modelIterator.collapse(a)&&this.cursorOn()},onUpArrow:function(a){this.iterate(!1,!1,a.shiftKey);!this._ctrlKeyOn(a)&&!a.shiftKey&&this.setSelection(this.currentModel(),!1);a.preventDefault();return!1},onDownArrow:function(a){this.iterate(!0,!1,a.shiftKey);!this._ctrlKeyOn(a)&&!a.shiftKey&&
this.setSelection(this.currentModel(),!1);a.preventDefault();return!1},_shouldMoveColumn:function(a){var c=this.currentModel(),e=this._getGridChildren(c);return e&&e.length>1?this.isExpandable(c)?this._ctrlKeyOn(a):!0:!1},onLeftArrow:function(a){if(this._shouldMoveColumn(a))return this.moveColumn(null,-1),a.preventDefault(),!0;var c=this._modelIterator.cursor();if(!c)return!1;if(this.isExpandable(c)&&this.isExpanded(c))return this.explorer.myTree.collapse(c),a.preventDefault(),!0;this._modelIterator.topLevel(c)?
this.explorer.scopeUp&&typeof this.explorer.scopeUp==="function"&&this.explorer.scopeUp():(this.cursorOn(c.parent),this.setSelection(c.parent,!1))},onRightArrow:function(a){if(this._shouldMoveColumn(a))return this.moveColumn(null,1),a.preventDefault(),!0;var c=this._modelIterator.cursor();if(!c)return!1;if(this.isExpandable(c)&&!this.isExpanded(c))return this.explorer.myTree.expand(c),a.preventDefault(),!1},_isRowSelectable:function(a){return this.explorer.isRowSelectable?this.explorer.isRowSelectable(a):
!0},onSpace:function(a){this.setSelection(this.currentModel(),!0);a.preventDefault()},onEnter:function(a){var c=this.getCurrentGrid(this._modelIterator.cursor());if(c)if(c.widget)if(typeof c.onClick==="function")c.onClick();else typeof c.widget.focus==="function"&&c.widget.focus();else{var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,0,0,this._ctrlKeyOn(a),!1,!1,!1,0,null);c.domNode.dispatchEvent(e)}else if(this.explorer.renderer.getRowActionElement&&(c=this._modelIterator.cursor()))if(c=
this.explorer.renderer.getRowActionElement(this.model.getId(c)),c.href)this._ctrlKeyOn(a)?window.open(c.href):window.location.href=c.href}};return c}();c.ExplorerNavDict=function(){function a(c){this._dict={};this._model=c}a.prototype={addRow:function(a,c){this._dict[this._model.getId(a)]={model:a,rowDomNode:c}},getValue:function(a){return this._dict[a]},getGridNavHolder:function(a,c){if(!a)return null;var e=this._model.getId(a);if(this._dict[e]){if(!this._dict[e].gridChildren&&c)this._dict[e].gridChildren=
[];return this._dict[e].gridChildren}return null},initGridNavHolder:function(a){if(!a)return null;a=this._model.getId(a);if(this._dict[a])this._dict[a].gridChildren=null}};return a}();return c});
define("orion/compare/compareUtils",["dojo","dijit"],function(c,d){var a=a||{};a.compareUtils=a.compareUtils||{};a.compareUtils.lookUpMapper=function(a,c,d){for(var h=0,i=0;i<a.length;i++){var j=a[i][c];j===0&&(j=1);if(d>=h&&d<h+j)return{mapperIndex:i,startFrom:h};if(i===a.length-1)break;h+=a[i][c]}return{mapperIndex:a.length-1,startFrom:h}};a.compareUtils.lookUpLineIndex=function(a,c,d){if(d===0)return 0;for(var h=0,i=0;i<d;i++)h+=a[i][c];return h};a.compareUtils.updateMapper=function(c,d,f,h,i){if(h!==
i&&(h>0||i>0)){var j=a.compareUtils.lookUpMapper(c,d,f);if(!(j.mapperIndex<0)){if(h>0)for(var k=f-j.startFrom,f=j.mapperIndex;f<c.length;f++){k=c[f][d]-k;if(h<=k){c[f][d]-=h;break}c[f][d]-=k;h-=k;k=0}i>0&&(c[j.mapperIndex][d]+=i)}}};a.compareUtils.overlapMapper=function(a,c,d,h,i){a=d+a[c]-1;a<d&&(a=d);i<h&&(i=h);return a<h||i<d?!1:!0};a.compareUtils.findFirstDiff=function(c,d,f,h){for(var i=0,j=void 0,k=0;k<c.length;k++){if(i>h)break;if(a.compareUtils.overlapMapper(c[k],d,i,f,h)&&(j={mapperIndex:k,
startFrom:i},c[k][2]!==0))break;i+=c[k][d]}return j};a.compareUtils.matchMapper=function(c,d,f,h){if(c.length===0)return f;var i=f+Math.round((h-f)/3),j=a.compareUtils.findFirstDiff(c,d,f,h),k=c[j.mapperIndex][d]===0?j.startFrom:j.startFrom+c[j.mapperIndex][d]-1,l=a.compareUtils.lookUpLineIndex(c,1-d,j.mapperIndex),m=j.startFrom-f;return c[j.mapperIndex][2]===0?l-m:i>=j.startFrom&&i<=k?l-Math.round((h-f)/3):i<j.startFrom?l-m:(c[j.mapperIndex][1-d]===0?l:l+c[j.mapperIndex][1-d]-1)-(k-f)};a.compareUtils.getMapperLineCount=
function(a){for(var c=0,d=0;d<a.length;d++)c+=Math.max(a[d][0],a[d][1]);return c};a.compareUtils.getAnnotationIndex=function(a,c){for(var d=0;d<a.length;d++)if(a[d][0]===c)return d;return-1};a.compareUtils.getAnnotationMapperIndex=function(a,c){return a[c][1]};a.compareUtils.getAnnotationIndexByMapper=function(a,c){for(var d=0;d<a.length;d++)if(a[d][1]===c)return{current:d,prev:d-1,next:d+1};return{current:-1,prev:-1,next:-1}};a.compareUtils.isMapperConflict=function(a,c){return c<0?!1:!a[c][3]?!1:
a[c][3]===1};a.compareUtils.mergeDiffBlocks=function(a,c,d,h,i,j){for(var k=0;k<c.length;k++){var l=c[k][0],m=d[c[k][1]];if(m[0]>0){for(var o="",n=0;n<m[0];n++)o=o+h[m[2]-1+n].substring(i)+j;l=a.getLineStart(l);a.setText(o,l,l)}}};a.compareUtils.generateCompareHref=function(a,d){var f=require.toUrl("compare/compare.html"),h="",i="";d&&(d.readonly&&(h="?readonly"),d.conflict&&(h===""?h="?conflict":h+="&conflict"),d.block&&d.block>0&&(i=",block="+d.block,d.change&&d.change>0&&(i=i+"&change="+d.change)));
return c.create("a",{href:f+h+"#"+a+i}).href};a.compareUtils.parseCompareHash=function(a){var c={complexURL:a},d=a.indexOf(",block=");if(d>0){c.complexURL=a.substring(0,d);a=a.substring(d+1).split("&");for(d=0;d<a.length;d++){var h=a[d].split("=");if(h.length===2)if(h[0]==="block")c.block=parseInt(h[1]);else if(h[0]==="change")c.change=parseInt(h[1])}}return c};a.compareUtils.destroyDijit=function(a){(a=d.byId(a))&&a.destroyRecursive()};a.compareUtils.getDijitSizeStyle=function(a){return"height:"+
(c.marginBox(a).h+"px")+";width:100%"};return a.compareUtils});define("text!orion/git/widgets/templates/CloneGitRepositoryDialog.html",[],function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" waiState="labelledby-${id}_title">\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="onclick: onCancel" title="${buttonCancel}">\n\t\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent">\n\t\t<\!-- Actual content here --\>\n\t\t\t\t<span dojoAttachPoint="Basic">\n\t\t\t\t\t<div style="display: block; padding: 5; min-width: 120px; clear: both; float: left;">\n\t\t\t\t\t\t<label dojoAttachPoint="gitUrlLabel" for="${id}_gitUrl" style="padding-right: 10">${gitUrlLabelText}</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: block; padding: 5; width: 40em; text-align: right; float: right">\n\t\t\t\t\t\t<input dojoAttachPoint="gitUrl" id="${id}_gitUrl" style="display: inline-block; width: 100%;" value="">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: block; padding: 5; clear: both; text-align: right;">\n\t\t\t\t\t\t<a dojoAttachPoint="advancedLink" href="javascript:">Choose target location</a>\n\t\t\t\t\t\t<a dojoAttachPoint="advancedLinkHide" href="javascript:" style="display: none">Default target location</a>\n\t\t\t\t\t</div>\n\t\t\t\t</span>\n\t\t\t\t<span dojoAttachPoint="Advanced" style="display: none;">\n\t\t\t\t\t<div style="display: block; padding: 5; min-width: 120px; clear: both; float: left;">\n\t\t\t\t\t\t<input dojoAttachPoint="isNewProject" type="radio" name="${id}_newExisting" checked value="new"/>\n\t\t\t\t\t\t<label dojoAttachPoint="gitNameLabel" for="${id}_gitName" style="padding-right: 10">${gitNameLabelText}</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: block; padding: 5; width: 40em; text-align: right; float: right">\n\t\t\t\t\t\t<input dojoAttachPoint="gitName" id="${id}_gitName" style="display: inline-block; width: 100%;" value="">\n\t\t\t\t\t</div>\n\t\t\t\t\t\n\t\t\t\t\t<div style="display: block; padding: 5; min-width: 120px; clear: both; float: left;">\n\t\t\t\t\t\t<input dojoAttachPoint="isExistingProject" type="radio" name="${id}_newExisting" value="existing"/>\n\t\t\t\t\t\t<label dojoAttachPoint="gitPathLabel" for="${id}_gitPath" style="padding-right: 10">${gitPathLabelText}</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: block; padding: 5; width: 40em; text-align: left; float: right;">\n\t\t\t\t\t\t\t<input dojoAttachPoint="gitPath" id="${id}_gitPath" type="hidden" value="">\n\t\t\t\t\t\t\t<div style="width: 30em; float: left" float="left" dojoAttachPoint="shownGitPath"></div>\n\t\t\t\t\t\t\t<div style="width: 10em; float: right; text-align: right"><a dojoAttachPoint="changeGitPath" href="javascript:">Change...</a></div>\n\t\t\t\t\t</div>\n\t\t\t\t</span>\n\t\t\t\t<div style="display: block; padding: 5; clear: both; text-align: right">\n\t\t\t\t\t<button dojoAttachPoint="cloneItemButton" dojoType="dijit.form.Button" type="submit" value="OK" style="padding: 20 0 10 0;">OK\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t</div>\n</div>'});
define("text!orion/git/widgets/templates/AddRemoteDialog.html",[],function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" waiState="labelledby-${id}_title">\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="onclick: onCancel" title="${buttonCancel}">\n\t\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent">\n\t\t<\!-- Actual content here --\>\n\t\t<div style="display: table">\n\t\t\t<div style="display: table-row">\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<label dojoAttachPoint="gitRemoteLabel" for="${id}_gitRemote" style="padding-right: 10">${gitRemoteLabelText}</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left;">\n\t\t\t\t\t<input dojoAttachPoint="gitRemote" id="${id}_gitRemote" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display: table-row">\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<label dojoAttachPoint="gitRemoteURILabel" for="${id}_gitRemoteURI" style="padding-right: 10">${gitRemoteURILabelText}</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left;">\n\t\t\t\t\t<input dojoAttachPoint="gitRemoteURI" id="${id}_gitRemoteURI" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display: table-row">\n\t\t\t\t<div style="display: table-cell; padding: 5"></div>\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<button dojoAttachPoint="cloneItemButton" dojoType="dijit.form.Button" type="submit" value="OK" style="padding: 20 0 10 0; float: right; clear: both;">OK\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>'});
define("text!orion/git/widgets/templates/GitCredentialsDialog.html",[],function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" waiState="labelledby-${id}_title">\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="onclick: onCancel" title="${buttonCancel}">\n\t\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent">\n\t\t<\!-- Actual content here --\>\n\t\t<div style="display: none; padding-top: 10px; padding-bottom: 10px;" dojoAttachPoint="gitCredentialsLabel">Provide credentials for: <b dojoAttachPoint="url"></b></div>\n\t\t<div style="display: table">\n\t\t\t<div style="display: table-row" dojoAttachPoint="gitSshUsernameRow">\n\t\t\t\t<div style="display: table-cell; padding: 5; vertical-align: top;">\n\t\t\t\t\t<label dojoAttachPoint="gitSshUsernameLabel" for="${id}_gitSshUsername" style="padding-right: 10">${gitSshUsernameLabelText}</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left; vertical-align: top;">\n\t\t\t\t\t<input dojoAttachPoint="gitSshUsername" id="${id}_gitSshUsername" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t</div>\n\t\t\t</div>\t\n\t\t\t<div style="display: table-row" dojoAttachPoint="gitSshPasswordRow">\n\t\t\t\t<div style="display: table-cell; padding: 5; vertical-align: top;">\n\t\t\t\t\t<input dojoAttachPoint="isSshPassword" type="radio" name="${id}_isSshPassword" checked value="password" style="width: 15px;"/>\n\t\t\t\t\t<label dojoAttachPoint="gitSshPasswordLabel" for="${id}_gitSshPassword" style="padding-right: 10">${gitSshPasswordLabelText}</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left; vertical-align: top;">\n\t\t\t\t\t<input type="password" dojoAttachPoint="gitSshPassword" id="${id}_gitSshPassword" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display: table-row" dojoAttachPoint="gitPrivateKeyRow">\n\t\t\t\t<div style="display: table-cell; padding: 5; vertical-align: top;">\n\t\t\t\t\t<input dojoAttachPoint="isPrivateKey" type="radio" name="${id}_isSshPassword" value="privateKey" style="width: 15px;"/>\n\t\t\t\t\t<label dojoAttachPoint="gitPrivateKeyLabel" for="${id}_gitPrivateKey" style="padding-right: 10">${gitPrivateKeyLabelText}</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left; vertical-align: top;">\n\t\t\t\t\t<textarea dojoAttachPoint="gitPrivateKey" id="${id}_gitPrivateKey" style="display: inline-block; width: 98%;" value=""></textarea>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display: table-row" dojoAttachPoint="gitPassphraseRow">\n\t\t\t\t<div style="display: table-cell; padding: 5; vertical-align: top;">\n\t\t\t\t\t&nbsp;\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left; vertical-align: top;">\n\t\t\t\t\t<label dojoAttachPoint="gitPassphraseLabel" for="${id}_gitPassphrase">${gitPassphraseLabelText}</label>\n\t\t\t\t</div>\n\n\t\t\t</div>\n\t\t\t<div style="display: table-row" dojoAttachPoint="gitPassphraseRow_1">\n\t\t\t\t<div style="display: table-cell; padding: 5; vertical-align: top;">\n\t\t\t\t\t&nbsp;\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left; vertical-align: top;">\n\t\t\t\t\t<input type="password" dojoAttachPoint="gitPassphrase" id="${id}_gitPassphrase" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display: table-row">\n\t\t\t\t<div style="display: table-cell; padding: 5"></div>\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<button dojoAttachPoint="okButton" dojoType="dijit.form.Button" type="submit" value="OK" style="padding: 20 0 10 0; float: right; clear: both;">Ok\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>'});
define("text!orion/git/widgets/templates/RemotePrompterDialog.html",[],function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" waiState="labelledby-${id}_title">\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="onclick: onCancel" title="${buttonCancel}">\n\t\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent">\n\t\t<\!-- Actual content here --\>\n\t\t\t<div style="display: table">\n\t\t\t\t<div style="display: table-row"> \n\n\t\t\t\t\t<div style="display: table-cell; padding: 1px; vertical-align: bottom;">\n\t\t\t\t\t\t<div dojoAttachPoint="treeContainerNode" id="${id}_treeContainerNode" dojoType="dijit.layout.BorderContainer" style="width:25em; height:25em; overflow:auto;" design="sidebar" gutters="true">\n\t\t\t\t\t\t\t<div dojoAttachPoint="treeContentPane" class="dijitDialogPaneContent" id="${id}_treeContentPane dojoType="dijit.layout.ContentPane" region="center" gutters="true">\n\t\t\t\t\t\t\t\t<div dojoAttachPoint="browseRemoteExplorerTree" class="explorerTreeClass" id="${id}_browseRemoteExplorerTree" style="margin-top: -3px;"></div> \n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px; vertical-align: bottom;">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px; vertical-align: bottom;">\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t<div style="display: table-row" dojoAttachPoint="newBranchSection">\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t<label for="${id}_newBranch">${newBranchText}</label>\n\t\t\t\t\t<input dojoAttachPoint="newBranch" id="${id}_newBranch" value="" disabled=true/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t \n\t\t\t\t<div style="display: table-row">\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t\n\t\t\t\t\t\t<button dojoAttachPoint="RemoteBrowserButton" disabled=true dojoType="dijit.form.Button" type="submit" value="OK" style="padding: 20 0 10 0; float: right; clear: both;">${buttonOk}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div> <\!-- end table --\>\n\t</div> <\!-- content pane --\>\n</div>'});
define("text!orion/git/widgets/templates/ApplyPatchDialog.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="applyPatchDialog.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\t<input type="radio" name="radio" value="urlRadio" id="applyPatchDialog.urlRadio" checked/>URL:\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="text" name="url" id="applyPatchDialog.url" style="display: inline-block; width: 98%;"\n\t\t\t\t\t\t\t\tdojoType="dijit.form.ValidationTextBox"\n\t\t\t\t\t\t\t\tregExp="^http(s)*://.+" invalidMessage="Invalid URL."/>\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</div>\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\t<input type="radio" name="radio" value="fileRadio" id="applyPatchDialog.fileRadio"/>File:\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="applyPatchDialog.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="applyPatchDialog.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>\n\t\t\t</fieldset>\n\t\t</form>\n\t</div>\n</div>'});
define("text!orion/git/widgets/templates/OpenCommitDialog.html",[],function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" title="${title}" waiState="labelledby-${id}_title">\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="onclick: onCancel" title="${buttonCancel}">\n\t\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent">\n\t\t<div style="display:table">\n\t\t\t<div style="display:table-row">\n\t\t\t\t<div style="display:table-cell; padding:5;">\n\t\t\t\t\t<label for="resourceName" style="padding-right:10">${selectFile}</label>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display:table-row">\n\t\t\t\t<div style="display:table-cell; padding:5;">\n\t\t\t\t\t<input type="text" dojoType="dijit.form.TextBox" dojoAttachPoint="resourceName" \n\t\t\t\t\t\tplaceHolder="${searchPlaceHolder}"\n\t\t\t\t\t\tintermediateChanges="true" style="width:30em;">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display:table-row">\n\t\t\t\t<div dojoAttachPoint="results" style="max-height:400px; height:auto; overflow-y:auto;"></div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>'});
define("text!orion/git/widgets/templates/ContentDialog.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="contenDialog.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">\n\t\t\t\t\t\t<div style="display: table-cell; padding: 1px;" , id = "div1" >\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</fieldset>\n\t\t</form>\n\t</div>\n</div>'});
define("text!orion/git/widgets/templates/CommitDialog.html",[],function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" waiState="labelledby-${id}_title">\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="onclick: onCancel" title="${buttonCancel}">\n\t\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent">\n\t\t<\!-- Actual content here --\>\n\t\t<div style="display: none; padding-top: 10px; padding-bottom: 10px;" dojoAttachPoint="commitInfoBar"><b dojoAttachPoint="commitInfo"></b></div>\n\t\t\n\t\t<div style="display: table">\n\t\t\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="commitMessageLabel" for="${id}_commitMessage" style="padding-right: 10">${commitMessageLabelText}</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left;">\n\t\t\t\t\t<input dojoAttachPoint="commitMessage" id="${id}_commitMessage" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t\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="amendLabel" for="${id}_amend" style="padding-right: 10">${amendLabelText}</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left;">\n\t\t\t\t\t<input dojoAttachPoint="amend" id="${id}_amend" type="checkbox" style="display: inline-block;">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t\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="committerNameLabel" for="${id}_committerName" style="padding-right: 10">${committerNameLabelText}</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left;">\n\t\t\t\t\t<input dojoAttachPoint="committerName" id="${id}_committerName" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t\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="committerEmailLabel" for="${id}_committerEmail" style="padding-right: 10">${committerEmailLabelText}</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left;">\n\t\t\t\t\t<input dojoAttachPoint="committerEmail" id="${id}_committerEmail" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t\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="authorNameLabel" for="${id}_authorName" style="padding-right: 10">${authorNameLabelText}</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left;">\n\t\t\t\t\t<input dojoAttachPoint="authorName" id="${id}_authorName" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t\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="authorEmailLabel" for="${id}_authorEmail" style="padding-right: 10">${authorEmailLabelText}</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left;">\n\t\t\t\t\t<input dojoAttachPoint="authorEmail" id="${id}_authorEmail" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\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<button dojoAttachPoint="commitChangesButton" dojoType="dijit.form.Button" type="submit" value="OK" style="padding: 20 0 10 0; float: right; clear: both;">OK\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>'});
define("orion/links",[],function(){function c(c){this._init(c)}c.prototype={_init:function(c){this._registry=c.serviceRegistry;this._serviceRegistration=this._registry.registerService("orion.core.textlink",this)},_replaceLink:function(c,a,e,g,f){var h=c.search(e);h>0&&(a.appendChild(document.createTextNode(c.substring(0,h))),c=c.substring(h));var e=c.replace(e,""),h=c.substring(0,c.length-e.length),i=h.split(" ",g);if(i.length===g){for(var c=document.createElement("a"),j=0;j<g;j++)f=f.replace("%"+
(j+1),i[j]);c.setAttribute("href",f);c.innerHTML=h;a.appendChild(c);c=e}return c},addLinks:function(c,a){var e=a||document.createElement("div"),g=this._registry.getServiceReferences("orion.core.linkScanner");if(g.length>0)for(var f=g[0],g=RegExp(f.getProperty("pattern"),"i"),h=f.getProperty("words"),f=f.getProperty("anchor"),i=c.search(g);i>=0;)c=this._replaceLink(c,e,g,h,f),i=c.search(g);c.length>0&&e.appendChild(document.createTextNode(c));return e}};c.prototype.constructor=c;return{TextLinkService:c}});
define("dojo/parser",["dojo","dojo/date/stamp"],function(c){c.parser=new function(){function d(a,c){switch(c){case "string":return a;case "number":return a.length?Number(a):NaN;case "boolean":return typeof a=="boolean"?a:a.toLowerCase()!="false";case "function":g.isFunction(a)&&(a=a.toString(),a=g.trim(a.substring(a.indexOf("{")+1,a.length-1)));try{return a===""||a.search(/[^\w\.]+/i)!=-1?new Function(a):g.getObject(a,!1)||new Function(a)}catch(e){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 g.date.stamp.fromISOString(a)}case "url":return g.baseUrl+a;default:return g.fromJson(a)}}function a(a,c){for(var e in a)if(e.charAt(0)!="_"&&!(e in f)){var d=c,h=e,o;o=a[e];o=g.isString(o)?"string":typeof o=="number"?"number":typeof o=="boolean"?"boolean":g.isFunction(o)?"function":g.isArray(o)?"array":o instanceof Date?"date":o instanceof g._Url?"url":"object";d[h]=o}return c}function e(c,e){var d=h[c];
if(d){if(!e&&!d.params)d.params=a(d.cls.prototype,{})}else{var d=g.getObject(c),f=null;if(!d)return null;e||(f=a(d.prototype,{}));d={cls:d,params:f}}return d}var g=c,f={},h={};g.connect(g,"extend",function(){h={}});this._functionFromScript=function(a,c){var e="",d="",f=a.getAttribute(c+"args")||a.getAttribute("args");f&&g.forEach(f.split(/\s*,\s*/),function(a,c){e+="var "+a+" = arguments["+c+"]; "});(f=a.getAttribute("with"))&&f.length&&g.forEach(f.split(/\s*,\s*/),function(a){e+="with("+a+"){";d+=
"}"});return new Function(e+a.innerHTML+d)};this.instantiate=function(a,f,h){var l=[],f=f||{},h=h||{},m=(h.scope||g._scopeName)+"Type",o="data-"+(h.scope||g._scopeName)+"-";g.forEach(a,function(a){if(a){var i,r,s,q,t,u;a.node?(i=a.node,r=a.type,u=a.fastpath,q=(s=a.clsInfo||r&&e(r,u))&&s.cls,t=a.scripts):(i=a,t=(q=(s=(r=m in f?f[m]:i.getAttribute(m))&&e(r))&&s.cls)&&(q._noScript||q.prototype._noScript)?[]:g.query("> script[type^='dojo/']",i));if(!s)throw Error("Could not load class '"+r);var v={};
h.defaults&&g._mixin(v,h.defaults);a.inherited&&g._mixin(v,a.inherited);if(u){if((s=i.getAttribute(o+"props"))&&s.length)try{s=g.fromJson.call(h.propsThis,"{"+s+"}"),g._mixin(v,s)}catch(w){throw Error(w.toString()+" in data-dojo-props='"+s+"'");}if(s=i.getAttribute(o+"attach-point"))v.dojoAttachPoint=s;if(s=i.getAttribute(o+"attach-event"))v.dojoAttachEvent=s;c.mixin(v,f)}else{var a=i.attributes,C;for(C in s.params)if((r=C in f?{value:f[C],specified:!0}:a.getNamedItem(C))&&(r.specified||c.isIE&&C.toLowerCase()==
"value")){r=r.value;switch(C){case "class":r="className"in f?f.className:i.className;break;case "style":r="style"in f?f.style:i.style&&i.style.cssText}u=s.params[C];v[C]=typeof r=="string"?d(r,u):r}}var H=[],D=[];g.forEach(t,function(a){i.removeChild(a);var c=a.getAttribute(o+"event")||a.getAttribute("event"),e=a.getAttribute("type"),a=g.parser._functionFromScript(a,o);c?e=="dojo/connect"?H.push({event:c,func:a}):v[c]=a:D.push(a)});var B=(t=q.markupFactory||q.prototype&&q.prototype.markupFactory)?
t(v,i,q):new q(v,i);l.push(B);(q=i.getAttribute(o+"id")||i.getAttribute("jsId"))&&g.setObject(q,B);g.forEach(H,function(a){g.connect(B,a.event,null,a.func)});g.forEach(D,function(a){a.call(B)})}});f._started||g.forEach(l,function(a){!h.noStart&&a&&c.isFunction(a.startup)&&!a._started&&(!a.getParent||!a.getParent())&&a.startup()});return l};this.parse=function(a,d){function f(a,g){var h=c.clone(a.inherited);c.forEach(["dir","lang"],function(c){var e=a.node.getAttribute(c);e&&(h[c]=e)});for(var i=a.clsInfo&&
!a.clsInfo.cls.prototype._noScript?a.scripts:null,l=!a.clsInfo||!a.clsInfo.cls.prototype.stopParser||d&&d.template,v=a.node.firstChild;v;v=v.nextSibling)if(v.nodeType==1){var n,p=l&&v.getAttribute(o+"type");n=p?p:l&&v.getAttribute(m);p=p==n;n?(n={type:n,fastpath:p,clsInfo:e(n,p),node:v,scripts:[],inherited:h},g.push(n),f(n,g)):i&&v.nodeName.toLowerCase()=="script"?(n=v.getAttribute("type"))&&/^dojo\/\w/i.test(n)&&i.push(v):l&&f({node:v,inherited:h},g)}}var h;!d&&a&&a.rootNode?(d=a,h=d.rootNode):h=
a;h=h?c.byId(h):c.body();var d=d||{},m=(d.scope||g._scopeName)+"Type",o="data-"+(d.scope||g._scopeName)+"-",n={};if(d&&d.inherited)for(var p in d.inherited)d.inherited[p]&&(n[p]=d.inherited[p]);p=[];f({node:h,inherited:n},p);return this.instantiate(p,d&&d.template?{template:!0}:null,d)}};(function(){var d=function(){c.config.parseOnLoad&&c.parser.parse()};c.getObject("dijit.wai.onload")===c._loaders[0]?c._loaders.splice(1,0,d):c._loaders.unshift(d)})();return c.parser});
define("dijit/_Templated","dojo,dijit,dijit/_Widget,dojo/string,dojo/parser,dojo/cache".split(","),function(c,d){c.declare("dijit._Templated",null,{templateString:null,templatePath:null,widgetsInTemplate:!1,_skipNodeCache:!1,_earlyTemplatedStartup:!1,constructor:function(){this._attachPoints=[];this._attachEvents=[]},_stringRepl:function(a){var e=this.declaredClass,d=this;return c.string.substitute(a,this,function(a,h){h.charAt(0)=="!"&&(a=c.getObject(h.substr(1),!1,d));if(typeof a=="undefined")throw Error(e+
" template:"+h);return a==null?"":h.charAt(0)=="!"?a:a.toString().replace(/"/g,"&quot;")},this)},buildRendering:function(){var a=d._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache),e;if(c.isString(a)){if(e=c._toDom(this._stringRepl(a)),e.nodeType!=1)throw Error("Invalid template: "+a);}else e=a.cloneNode(!0);this.domNode=e;this.inherited(arguments);this._attachTemplateNodes(e);if(this.widgetsInTemplate)a=this._startupWidgets=c.parser.parse(e,{noStart:!this._earlyTemplatedStartup,
template:!0,inherited:{dir:this.dir,lang:this.lang},propsThis:this,scope:"dojo"}),this._supportingWidgets=d.findWidgets(e),this._attachTemplateNodes(a,function(a,c){return a[c]});this._fillContent(this.srcNodeRef)},_fillContent:function(a){var c=this.containerNode;if(a&&c)for(;a.hasChildNodes();)c.appendChild(a.firstChild)},_attachTemplateNodes:function(a,e){for(var e=e||function(a,c){return a.getAttribute(c)},g=c.isArray(a)?a:a.all||a.getElementsByTagName("*"),f=c.isArray(a)?0:-1;f<g.length;f++){var h=
f==-1?a:g[f];if(!this.widgetsInTemplate||!e(h,"dojoType")&&!e(h,"data-dojo-type")){var i=e(h,"dojoAttachPoint")||e(h,"data-dojo-attach-point");if(i)for(var j=i.split(/\s*,\s*/);i=j.shift();)c.isArray(this[i])?this[i].push(h):this[i]=h,this._attachPoints.push(i);if(i=e(h,"dojoAttachEvent")||e(h,"data-dojo-attach-event"))for(var j=i.split(/\s*,\s*/),k=c.trim;i=j.shift();)if(i){var l=null;i.indexOf(":")!=-1?(l=i.split(":"),i=k(l[0]),l=k(l[1])):i=k(i);l||(l=i);this._attachEvents.push(this.connect(h,i,
l))}(i=e(h,"waiRole"))&&d.setWaiRole(h,i);(i=e(h,"waiState"))&&c.forEach(i.split(/\s*,\s*/),function(a){a.indexOf("-")!=-1&&(a=a.split("-"),d.setWaiState(h,a[0],a[1]))})}}},startup:function(){c.forEach(this._startupWidgets,function(a){a&&!a._started&&a.startup&&a.startup()});this.inherited(arguments)},destroyRendering:function(){c.forEach(this._attachPoints,function(a){delete this[a]},this);this._attachPoints=[];c.forEach(this._attachEvents,this.disconnect,this);this._attachEvents=[];this.inherited(arguments)}});
d._Templated._templateCache={};d._Templated.getCachedTemplate=function(a,e,g){var f=d._Templated._templateCache,h=e||a,i=f[h];if(i){try{if(!i.ownerDocument||i.ownerDocument==c.doc)return i}catch(j){}c.destroy(i)}e||(e=c.cache(a,{sanitize:!0}));e=c.string.trim(e);if(g||e.match(/\$\{([^\}]+)\}/g))return f[h]=e;else{a=c._toDom(e);if(a.nodeType!=1)throw Error("Invalid template: "+e);return f[h]=a}};c.isIE&&c.addOnWindowUnload(function(){var a=d._Templated._templateCache,e;for(e in a){var g=a[e];typeof g==
"object"&&c.destroy(g);delete a[e]}});c.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(c,d){c.declare("dijit.form._FormWidget",[d._Widget,d._Templated,d._CssStateMixin],{name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:!1,intermediateChanges:!1,scrollOnFocus:!0,attributeMap:c.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);c.attr(this.focusNode,"disabled",a);this.valueNode&&c.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",c.forEach(c.isArray(a)?
a:[a],function(a){a=this[a];c.isWebKit||d.hasDefaultTabStop(a)?a.setAttribute("tabIndex","-1"):a.removeAttribute("tabIndex")},this)):this.tabIndex!=""&&this.focusNode.setAttribute("tabIndex",this.tabIndex)},setDisabled:function(a){c.deprecated("setDisabled("+a+") is deprecated. Use set('disabled',"+a+") instead.","","2.0");this.set("disabled",a)},_onFocus:function(a){this.scrollOnFocus&&c.window.scrollIntoView(this.domNode);this.inherited(arguments)},isFocusable:function(){return!this.disabled&&this.focusNode&&
c.style(this.domNode,"display")!="none"},focus:function(){this.disabled||d.focus(this.focusNode)},compare:function(a,c){return typeof a=="number"&&typeof c=="number"?isNaN(a)&&isNaN(c)?0:a-c:a>c?1:a<c?-1:0},onChange:function(){},_onChangeActive:!1,_handleOnChange:function(a,e){if(this._lastValueReported==void 0&&(e===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||e||e===void 0)&&this._pendingOnChange)if(this._lastValueReported=a,this._pendingOnChange=!1,this._onChangeActive)this._onChangeHandle&&clearTimeout(this._onChangeHandle),this._onChangeHandle=setTimeout(c.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){c.deprecated("dijit.form._FormWidget:setValue("+a+") is deprecated.  Use set('value',"+a+") instead.","","2.0");this.set("value",a)},getValue:function(){c.deprecated(this.declaredClass+"::getValue() is deprecated. Use get('value') instead.","","2.0");return this.get("value")},_onMouseDown:function(a){if(!a.ctrlKey&&c.mouseButtons.isLeft(a)&&this.isFocusable())var e=this.connect(c.body(),"onmouseup",function(){this.isFocusable()&&this.focus();this.disconnect(e)})}});c.declare("dijit.form._FormValueWidget",
d.form._FormWidget,{readOnly:!1,attributeMap:c.delegate(d.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(a){c.attr(this.focusNode,"readOnly",a);d.setWaiState(this.focusNode,"readonly",a);this._set("readOnly",a)},postCreate:function(){this.inherited(arguments);if(c.isIE<9||c.isIE&&c.isQuirks)this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);if(this._resetValue===void 0)this._lastValueReported=this._resetValue=this.value},_setValueAttr:function(a,
c){this._handleOnChange(a,c)},_handleOnChange:function(a,c){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==c.keys.ESCAPE&&!a.ctrlKey&&!a.altKey&&!a.metaKey){var e;if(c.isIE)a.preventDefault(),e=document.createEventObject(),e.keyCode=c.keys.ESCAPE,e.shiftKey=a.shiftKey,a.srcElement.fireEvent("onkeypress",e)}},_layoutHackIE7:function(){if(c.isIE==
7)for(var a=this.domNode,e=a.parentNode,d=a.firstChild||a,f=d.style.filter,h=this;e&&e.clientHeight==0;)(function(){var a=h.connect(e,"onscroll",function(){h.disconnect(a);d.style.filter=(new Date).getMilliseconds();setTimeout(function(){d.style.filter=f},0)})})(),e=e.parentNode}});return d.form._FormWidget});
define("dijit/form/TextBox",["dojo","dijit","text!dijit/form/templates/TextBox.html","dijit/form/_FormWidget"],function(c,d){c.declare("dijit.form.TextBox",d.form._FormValueWidget,{trim:!1,uppercase:!1,lowercase:!1,propercase:!1,maxLength:"",selectOnClick:!1,placeHolder:"",templateString:c.cache("dijit.form","templates/TextBox.html"),_singleNodeTemplate:'<input class="dijit dijitReset dijitLeft dijitInputField" dojoAttachPoint="textbox,focusNode" autocomplete="off" type="${type}" ${!nameAttrSetting} />',
_buttonInputDisabled:c.isIE?"disabled":"",baseClass:"dijitTextBox",attributeMap:c.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=c.create("span",{className:"dijitPlaceHolder dijitInputField"},this.textbox,"after");this._phspan.innerHTML="";this._phspan.appendChild(document.createTextNode(a));this._updatePlaceHolder()},_updatePlaceHolder:function(){if(this._phspan)this._phspan.style.display=this.placeHolder&&!this._focused&&!this.textbox.value?"":"none"},_getValueAttr:function(){return this.parse(this.get("displayedValue"),this.constraints)},_setValueAttr:function(a,
c,d){var f;a!==void 0&&(f=this.filter(a),typeof d!="string"&&(d=f!==null&&(typeof f!="number"||!isNaN(f))?this.filter(this.format(f,this.constraints)):""));if(d!=null&&d!=void 0&&(typeof d!="number"||!isNaN(d))&&this.textbox.value!=d)this.textbox.value=d,this._set("displayedValue",this.get("displayedValue"));this._updatePlaceHolder();this.inherited(arguments,[f,c])},displayedValue:"",getDisplayedValue:function(){c.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){c.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 c.keys.SHIFT:case c.keys.ALT:case c.keys.CTRL:case c.keys.TAB:return}if(this.intermediateChanges){var e=this;setTimeout(function(){e._handleOnChange(e.get("value"),!1)},0)}this._refreshState();this._set("displayedValue",this.get("displayedValue"))},postCreate:function(){c.isIE&&setTimeout(c.hitch(this,
function(){var a=c.getComputedStyle(this.domNode);if(a&&(a=a.fontFamily)){var e=this.domNode.getElementsByTagName("INPUT");if(e)for(var d=0;d<e.length;d++)e[d].style.fontFamily=a}}),0);this.textbox.setAttribute("value",this.textbox.value);this.inherited(arguments);c.isMoz||c.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=c.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&&c.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;c.isIE?(a=c.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,e,g){var f=c.global,h=c.doc,a=c.byId(a);isNaN(e)&&(e=0);isNaN(g)&&(g=a.value?a.value.length:0);d.focus(a);h.selection&&c.body().createTextRange?a.createTextRange&&(a=a.createTextRange(),a.collapse(!0),a.moveStart("character",-99999),a.moveStart("character",e),a.moveEnd("character",
g-e),a.select()):f.getSelection&&a.setSelectionRange&&a.setSelectionRange(e,g)};return d.form.TextBox});
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(c,d){c.declare("dijit.form.Button",d.form._FormWidget,{label:"",showLabel:!0,iconClass:"",type:"button",baseClass:"dijitButton",templateString:c.cache("dijit.form","templates/Button.html"),attributeMap:c.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 c=this.domNode;c.parentNode;c=c.parentNode){var g=d.byNode(c);if(g&&typeof g._onSubmit=="function"){g._onSubmit(a);break}}else this.valueNode&&(this.valueNode.click(),a.preventDefault())},buildRendering:function(){this.inherited(arguments);c.setSelectable(this.focusNode,
!1)},_fillContent:function(a){a&&(!this.params||!("label"in this.params))&&this.set("label",a.innerHTML)},_setShowLabelAttr:function(a){this.containerNode&&c.toggleClass(this.containerNode,"dijitDisplayNone",!a);this._set("showLabel",a)},onClick:function(){return!0},_clicked:function(){},setLabel:function(a){c.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=c.trim(this.containerNode.innerText||this.containerNode.textContent||"")},_setIconClassAttr:function(a){c.replaceClass(this.iconNode,a||"dijitNoIcon",this.iconClass||"dijitNoIcon");this._set("iconClass",a)}});c.declare("dijit.form.DropDownButton",[d.form.Button,d._Container,d._HasDropDown],{baseClass:"dijitDropDownButton",templateString:c.cache("dijit.form","templates/DropDownButton.html"),_fillContent:function(){if(this.srcNodeRef){var a=
c.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=c.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 e=c.connect(a,"onLoad",this,function(){c.disconnect(e);this.openDropDown()});a.refresh()}},isFocusable:function(){return this.inherited(arguments)&&!this._mouseDown}});c.declare("dijit.form.ComboButton",d.form.DropDownButton,{templateString:c.cache("dijit.form","templates/ComboButton.html"),attributeMap:c.mixin(c.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==c.keys[this.isLeftToRight()?"RIGHT_ARROW":"LEFT_ARROW"])d.focus(this._popupStateNode),c.stopEvent(a)},_onArrowKeyPress:function(a){if(a.charOrCode==c.keys[this.isLeftToRight()?"LEFT_ARROW":"RIGHT_ARROW"])d.focus(this.titleNode),c.stopEvent(a)},focus:function(a){this.disabled||d.focus(a=="start"?this.titleNode:this._popupStateNode)}});
c.declare("dijit.form.ToggleButton",d.form.Button,{baseClass:"dijitToggleButton",checked:!1,attributeMap:c.mixin(c.clone(d.form.Button.prototype.attributeMap),{checked:"focusNode"}),_clicked:function(){this.set("checked",!this.checked)},_setCheckedAttr:function(a,e){this._set("checked",a);c.attr(this.focusNode||this.domNode,"checked",a);d.setWaiState(this.focusNode||this.domNode,"pressed",a);this._handleOnChange(a,e)},setChecked:function(a){c.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(c,d){return d.form.DropDownButton});define("dijit/form/ToggleButton",["dojo","dijit","dijit/form/Button"],function(c,d){return d.form.ToggleButton});
define("dijit/form/CheckBox",["dojo","dijit","text!dijit/form/templates/CheckBox.html","dijit/form/ToggleButton"],function(c,d){c.declare("dijit.form.CheckBox",d.form.ToggleButton,{templateString:c.cache("dijit.form","templates/CheckBox.html"),baseClass:"dijitCheckBox",type:"checkbox",value:"on",readOnly:!1,attributeMap:c.delegate(d.form._FormWidget.prototype.attributeMap,{readOnly:"focusNode"}),_setReadOnlyAttr:function(a){this._set("readOnly",a);c.attr(this.focusNode,"readOnly",a);d.setWaiState(this.focusNode,
"readonly",a)},_setValueAttr:function(a,e){typeof a=="string"&&(this._set("value",a),c.attr(this.focusNode,"value",a),a=!0);this._created&&this.set("checked",a,e)},_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");c.attr(this.focusNode,"value",this.value)},_onFocus:function(){this.id&&c.query("label[for='"+this.id+"']").addClass("dijitFocusedLabel");this.inherited(arguments)},_onBlur:function(){this.id&&c.query("label[for='"+this.id+"']").removeClass("dijitFocusedLabel");this.inherited(arguments)},_onClick:function(a){return this.readOnly?(c.stopEvent(a),!1):this.inherited(arguments)}});c.declare("dijit.form.RadioButton",d.form.CheckBox,{type:"radio",baseClass:"dijitRadio",_setCheckedAttr:function(a){this.inherited(arguments);
if(this._created&&a){var e=this;c.query("INPUT[type=radio]",this.focusNode.form||c.doc).forEach(function(a){a.name==e.name&&a!=e.focusNode&&a.form==e.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("dijit/Tooltip",["dojo","dijit","dijit/_Widget","dijit/_Templated","text!dijit/templates/Tooltip.html"],function(c,d){c.declare("dijit._MasterTooltip",[d._Widget,d._Templated],{duration:d.defaultDuration,templateString:c.cache("dijit","templates/Tooltip.html"),postCreate:function(){c.body().appendChild(this.domNode);this.bgIframe=new d.BackgroundIframe(this.domNode);this.fadeIn=c.fadeIn({node:this.domNode,duration:this.duration,onEnd:c.hitch(this,"_onShow")});this.fadeOut=c.fadeOut({node:this.domNode,
duration:this.duration,onEnd:c.hitch(this,"_onHide")})},show:function(a,e,g,f){if(!(this.aroundNode&&this.aroundNode===e))this.domNode.width="auto",this.fadeOut.status()=="playing"?this._onDeck=arguments:(this.containerNode.innerHTML=a,d.placeOnScreenAroundElement(this.domNode,e,d.getPopupAroundAlignment(g&&g.length?g:d.Tooltip.defaultPosition,!f),c.hitch(this,"orient")),c.style(this.domNode,"opacity",0),this.fadeIn.play(),this.isShowingNow=!0,this.aroundNode=e)},orient:function(a,e,d,f,h){this.connectorNode.style.top=
"";var i=f.w-this.connectorNode.offsetWidth;a.className="dijitTooltip "+{"BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft"}[e+"-"+d];this.domNode.style.width="auto";var j=c.contentBox(this.domNode),k=Math.min(Math.max(i,1),j.w),l=k<j.w;this.domNode.style.width=k+"px";if(l&&(this.containerNode.style.overflow=
"auto",l=this.containerNode.scrollWidth,this.containerNode.style.overflow="visible",l>k))l=l+c.style(this.domNode,"paddingLeft")+c.style(this.domNode,"paddingRight"),this.domNode.style.width=l+"px";d.charAt(0)=="B"&&e.charAt(0)=="B"?(a=c.marginBox(a),e=this.connectorNode.offsetHeight,a.h>f.h?(this.connectorNode.style.top=f.h-h.h/2-e/2+"px",this.connectorNode.style.bottom=""):(this.connectorNode.style.bottom=Math.min(Math.max(h.h/2-e/2,0),a.h-e)+"px",this.connectorNode.style.top="")):(this.connectorNode.style.top=
"",this.connectorNode.style.bottom="");return Math.max(0,j.w-i)},_onShow:function(){if(c.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,c,g,f){if(!d._masterTT)d._masterTT=
new d._MasterTooltip;return d._masterTT.show(a,c,g,f)};d.hideTooltip=function(a){if(!d._masterTT)d._masterTT=new d._MasterTooltip;return d._masterTT.hide(a)};c.declare("dijit.Tooltip",d._Widget,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(a){c.forEach(this._connections||[],function(a){c.forEach(a,c.hitch(this,"disconnect"))},this);var e=c.isArrayLike(a)?a:a?[a]:[];this._connections=c.map(e,function(a){return(a=c.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=e},addTarget:function(a){a=a.id||a;c.indexOf(this._connectIds,a)==-1&&this.set("connectId",this._connectIds.concat(a))},removeTarget:function(a){a=c.indexOf(this._connectIds,a.id||a);a>=0&&(this._connectIds.splice(a,1),this.set("connectId",this._connectIds))},buildRendering:function(){this.inherited(arguments);
c.addClass(this.domNode,"dijitTooltipData")},startup:function(){this.inherited(arguments);var a=this.connectId;c.forEach(c.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 e=a.target;this._showTimer=setTimeout(c.hitch(this,function(){this.open(e)}),
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(c,d){c.declare("dijit.form.ValidationTextBox",d.form.TextBox,{templateString:c.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,c){return RegExp("^(?:"+this.regExpGen(c)+")"+(this.required?"":"?")+"$").test(a)&&(!this.required||!this._isEmpty(a))&&(this._isEmpty(a)||this.parse(a,c)!==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 c="",g=this.disabled||this.isValid(a);if(g)this._maskValidSubsetError=!0;var f=this._isEmpty(this.textbox.value),h=!g&&a&&this._isValidSubset();this._set("state",g?"":((!this._hasBeenBlurred||a)&&f||h)&&this._maskValidSubsetError?"Incomplete":"Error");d.setWaiState(this.focusNode,
"invalid",g?"false":"true");this.state=="Error"?(this._maskValidSubsetError=a&&h,c=this.getErrorMessage(a)):this.state=="Incomplete"?(c=this.getPromptMessage(a),this._maskValidSubsetError=!this._hasBeenBlurred||a):f&&(c=this.getPromptMessage(a));this.set("message",c);return g},displayMessage:function(a){d.hideTooltip(this.domNode);a&&this._focused&&d.showTooltip(a,this.domNode,this.tooltipPosition,!this.isLeftToRight())},_refreshState:function(){this.validate(this._focused);this.inherited(arguments)},
constructor:function(){this.constraints={}},_setConstraintsAttr:function(a){if(!a.locale&&this.lang)a.locale=this.lang;this._set("constraints",a);this._computePartialRE()},_computePartialRE:function(){var a=this.regExpGen(this.constraints);this.regExp=a;var c="";a!=".*"&&this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(a){switch(a.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":c+=a;break;case ")":c+="|$)";break;default:c+="(?:"+a+"|$)"}});
try{"".search(c)}catch(d){c=this.regExp,console.warn("RegExp error in "+this.declaredClass+": "+this.regExp)}this._partialre="^(?:"+c+")$"},postMixInProperties:function(){this.inherited(arguments);this.messages=c.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)}});
c.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=c.place("<input type='hidden'"+
(this.name?" name='"+this.name.replace(/'/g,"&quot;")+"'":"")+"/>",this.textbox,"after")},reset:function(){this.valueNode.value="";this.inherited(arguments)}});c.declare("dijit.form.RangeBoundTextBox",d.form.MappedTextBox,{rangeMessage:"",rangeCheck:function(a,c){return("min"in c?this.compare(a,c.min)>=0:!0)&&("max"in c?this.compare(a,c.max)<=0:!0)},isInRange:function(){return this.rangeCheck(this.get("value"),this.constraints)},_isDefinitelyOutOfRange:function(){var a=this.get("value"),c=!1,d=!1;
if("min"in this.constraints)c=this.constraints.min,c=this.compare(a,typeof c=="number"&&c>=0&&a!=0?0:c),c=typeof c=="number"&&c<0;if("max"in this.constraints)d=this.constraints.max,d=this.compare(a,typeof d!="number"||d>0?d:0),d=typeof d=="number"&&d>0;return c||d},_isValidSubset:function(){return this.inherited(arguments)&&!this._isDefinitelyOutOfRange()},isValid:function(a){return this.inherited(arguments)&&(this._isEmpty(this.textbox.value)&&!this.required||this.isInRange(a))},getErrorMessage:function(a){var c=
this.get("value");return c!==null&&c!==""&&c!==void 0&&(typeof c!="number"||!isNaN(c))&&!this.isInRange(a)?this.rangeMessage:this.inherited(arguments)},postMixInProperties:function(){this.inherited(arguments);if(!this.rangeMessage)this.messages=c.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,c){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(c,d){c.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:c.cache("dijit.form","templates/DropDownBox.html"),baseClass:"dijitTextBox dijitComboBox",dropDownClass:"dijit.form._ComboBoxMenu",cssStateNodes:{_buttonNode:"dijitDownArrowButton"},maxHeight:-1,_stopClickEvents:!1,_getCaretPos:function(a){var e=0;if(typeof a.selectionStart=="number")e=a.selectionStart;else if(c.isIE){var d=c.doc.selection.createRange().duplicate(),a=a.createTextRange();d.move("character",0);a.move("character",
0);try{a.setEndPoint("EndToEnd",d),e=String(a.text).replace(/\r/g,"").length}catch(f){}}return e},_setCaretPos:function(a,c){c=parseInt(c);d.selectInputText(a,c,c)},_setDisabledAttr:function(a){this.inherited(arguments);d.setWaiState(this.domNode,"disabled",a)},_abortQuery:function(){if(this.searchTimer)clearTimeout(this.searchTimer),this.searchTimer=null;if(this._fetchHandle)this._fetchHandle.abort&&this._fetchHandle.abort(),this._fetchHandle=null},_onInput:function(a){if(!this.searchTimer&&(a.type==
"paste"||a.type=="input")&&this._lastInput!=this.textbox.value)this.searchTimer=setTimeout(c.hitch(this,function(){this._onKey({charOrCode:229})}),100);this.inherited(arguments)},_onKey:function(a){var e=a.charOrCode;if(!a.altKey&&!((a.ctrlKey||a.metaKey)&&e!="x"&&e!="v"||e==c.keys.SHIFT)){var d=!1,f=this.dropDown,h=c.keys,i=null;this._prev_key_backspace=!1;this._abortQuery();this.inherited(arguments);this._opened&&(i=f.getHighlightedOption());switch(e){case h.PAGE_DOWN:case h.DOWN_ARROW:case h.PAGE_UP:case h.UP_ARROW:this._opened&&
this._announceOption(i);c.stopEvent(a);break;case h.ENTER:if(i)if(i==f.nextButton){this._nextSearch(1);c.stopEvent(a);break}else{if(i==f.previousButton){this._nextSearch(-1);c.stopEvent(a);break}}else this._setBlurValue(),this._setCaretPos(this.focusNode,this.focusNode.value.length);(this._opened||this._fetchHandle)&&a.preventDefault();case h.TAB:e=this.get("displayedValue");if(f&&(e==f._messages.previousMessage||e==f._messages.nextMessage))break;i&&this._selectOption();if(this._opened)this._lastQuery=
null,this.closeDropDown();break;case " ":i?(c.stopEvent(a),this._selectOption(),this.closeDropDown()):d=!0;break;case h.DELETE:case h.BACKSPACE:d=this._prev_key_backspace=!0;break;default:d=typeof e=="string"||e==229}if(d)this.item=void 0,this.searchTimer=setTimeout(c.hitch(this,"_startSearchFromInput"),1)}},_autoCompleteText:function(a){var c=this.focusNode;d.selectInputText(c,c.value.length);var g=this.ignoreCase?"toLowerCase":"substr";if(a[g](0).indexOf(this.focusNode.value[g](0))==0){if(g=this._getCaretPos(c),
g+1>c.value.length)c.value=a,d.selectInputText(c,g)}else c.value=a,d.selectInputText(c)},_openResultList:function(a,e){this._fetchHandle=null;if(!this.disabled&&!(this.readOnly||e.query[this.searchAttr]!=this._lastQuery)){var d=this.dropDown._highlighted_option&&c.hasClass(this.dropDown._highlighted_option,"dijitMenuItemSelected");this.dropDown.clearResultList();if(!a.length&&!this._maxOptions)this.closeDropDown();else{e._maxOptions=this._maxOptions;var f=this.dropDown.createOptions(a,e,c.hitch(this,
"_getMenuLabelFromItem"));this._showResultList();e.direction?(1==e.direction?this.dropDown.highlightFirstOption():-1==e.direction&&this.dropDown.highlightLastOption(),d&&this._announceOption(this.dropDown.getHighlightedOption())):this.autoComplete&&!this._prev_key_backspace&&!/^[*]+$/.test(e.query[this.searchAttr])&&this._announceOption(f[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"),c=this.dropDown;c&&(a==c._messages.previousMessage||a==c._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,c,g){g||(g=this.store.getValue(a,this.searchAttr));var f=this._getValueField()!=this.searchAttr?this.store.getIdentity(a):g;this._set("item",a);d.form.ComboBox.superclass._setValueAttr.call(this,f,c,g)},_announceOption:function(a){if(a){var e;a==this.dropDown.nextButton||a==this.dropDown.previousButton?(e=a.innerHTML,
this.item=void 0,this.value=""):(e=this.store.getValue(a.item,this.searchAttr).toString(),this.set("item",a.item,!1,e));this.focusNode.value=this.focusNode.value.substring(0,this._lastInput.length);d.setWaiState(this.focusNode,"activedescendant",c.attr(a,"id"));this._autoCompleteText(e)}},_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 c.string.substitute(this.queryExpr,[a])},_startSearch:function(a){if(!this.dropDown){var e=this.id+"_popup";this.dropDown=new (c.getObject(this.dropDownClass,!1))({onChange:c.hitch(this,this._selectOption),id:e,dir:this.dir});d.removeWaiState(this.focusNode,"activedescendant");d.setWaiState(this.textbox,"owns",
e)}e=c.clone(this.query);this._lastInput=a;this._lastQuery=e[this.searchAttr]=this._getQueryString(a);this.searchTimer=setTimeout(c.hitch(this,function(a,e){this.searchTimer=null;var d={queryOptions:{ignoreCase:this.ignoreCase,deep:!0},query:a,onBegin:c.hitch(this,"_setMaxOptions"),onComplete:c.hitch(this,"_openResultList"),onError:function(a){e._fetchHandle=null;console.error("dijit.form.ComboBox: "+a);e.closeDropDown()},start:0,count:this.pageSize};c.mixin(d,e.fetchProperties);this._fetchHandle=
e.store.fetch(d);this._nextSearch=this.dropDown.onPage=c.hitch(this,function(a,c){a.start+=a.count*c;a.direction=c;this._fetchHandle=this.store.fetch(a);this.focus()},this._fetchHandle)},e,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 c=this._getValueField();this.value=this.store.getValue(a,c)}}this.inherited(arguments)},postCreate:function(){var a=c.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),c=this.labelType;this.highlightMatch!=
"none"&&this.labelType=="text"&&this._lastInput&&(a=this.doHighlight(a,this._escapeHtml(this._lastInput)),c="html");return{html:c=="html",label:a}},doHighlight:function(a,e){var d=(this.ignoreCase?"i":"")+(this.highlightMatch=="all"?"g":""),f=this.queryExpr.indexOf("${0}"),e=c.regexp.escapeString(e);return this._escapeHtml(a).replace(RegExp((f==0?"^":"")+"("+e+")"+(f==this.queryExpr.length-4?"$":""),d),'<span class="dijitComboBoxHighlightMatch">$1</span>')},_escapeHtml:function(a){return a=String(a).replace(/&/gm,
"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;")},reset:function(){this.item=null;this.inherited(arguments)},labelFunc:function(a,c){return c.getValue(a,this.labelAttr||this.searchAttr).toString()}});c.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=c.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,
e){var d=c.create("li",{"class":"dijitReset dijitMenuItem"+(this.isLeftToRight()?"":" dijitMenuItemRtl"),role:"option"}),f=e(a);f.html?d.innerHTML=f.label:d.appendChild(c.doc.createTextNode(f.label));if(d.innerHTML=="")d.innerHTML="&nbsp;";d.item=a;return d},createOptions:function(a,e,d){this.previousButton.style.display=e.start==0?"none":"";c.attr(this.previousButton,"id",this.id+"_prev");c.forEach(a,function(a,e){var f=this._createOption(a,d);c.attr(f,"id",this.id+e);this.domNode.insertBefore(f,
this.nextButton)},this);var f=!1;e._maxOptions&&e._maxOptions!=-1?e.start+e.count<e._maxOptions?f=!0:e.start+e.count>e._maxOptions&&e.count==a.length&&(f=!0):e.count==a.length&&(f=!0);this.nextButton.style.display=f?"":"none";c.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){c.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,c.addClass(this._highlighted_option,"dijitMenuItemSelected")},_blurOptionNode:function(){if(this._highlighted_option)c.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);c.window.scrollIntoView(this._highlighted_option)},highlightFirstOption:function(){var a=this.domNode.firstChild,e=a.nextSibling;this._focusOptionNode(e.style.display=="none"?a:e);c.window.scrollIntoView(this._highlighted_option)},highlightLastOption:function(){this._focusOptionNode(this.domNode.lastChild.previousSibling);c.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);c.window.scrollIntoView(this._highlighted_option)},_page:function(a){var e=0,d=this.domNode.scrollTop,f=c.style(this.domNode,"height");for(this.getHighlightedOption()||this._highlightNextOption();e<f;){if(a){if(!this.getHighlightedOption().previousSibling||this._highlighted_option.previousSibling.style.display==
"none")break;this._highlightPrevOption()}else{if(!this.getHighlightedOption().nextSibling||this._highlighted_option.nextSibling.style.display=="none")break;this._highlightNextOption()}var h=this.domNode.scrollTop;e+=(h-d)*(a?-1:1);d=h}},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 c.keys.DOWN_ARROW:return this._highlightNextOption(),
!1;case c.keys.PAGE_DOWN:return this.pageDown(),!1;case c.keys.UP_ARROW:return this._highlightPrevOption(),!1;case c.keys.PAGE_UP:return this.pageUp(),!1;default:return!0}}});c.declare("dijit.form.ComboBox",[d.form.ValidationTextBox,d.form.ComboBoxMixin],{_setValueAttr:function(a,c,g){this._set("item",null);a||(a="");d.form.ValidationTextBox.prototype._setValueAttr.call(this,a,c,g)}});c.declare("dijit.form._ComboBoxDataStore",null,{constructor:function(a){this.root=a;if(a.tagName!="SELECT"&&a.firstChild)a=
c.query("select",a),a.length>0?a=a[0]:(this.root.innerHTML="<SELECT>"+this.root.innerHTML+"</SELECT>",a=this.root.firstChild),this.root=a;c.query("> option",a).forEach(function(a){a.innerHTML=c.trim(a.innerHTML)})},getValue:function(a,c){return c=="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,e){if(!a.query)a.query={};if(!a.query.name)a.query.name="";if(!a.queryOptions)a.queryOptions=
{};var d=c.data.util.filter.patternToRegExp(a.query.name,a.queryOptions.ignoreCase),f=c.query("> option",this.root).filter(function(a){return(a.innerText||a.textContent||"").match(d)});a.sort&&f.sort(c.data.util.sorter.createSortFunction(a.sort,this));e(f,a)},close:function(){},getLabel:function(a){return a.innerHTML},getIdentity:function(a){return c.attr(a,"value")},fetchItemByIdentity:function(a){var e=c.query("> option[value='"+a.identity+"']",this.root)[0];a.onItem(e)},fetchSelectedItem:function(){var a=
this.root,e=a.selectedIndex;return typeof e=="number"?c.query("> option:nth-child("+(e!=-1?e+1:1)+")",a)[0]:null}});c.extend(d.form._ComboBoxDataStore,c.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(c,d){c.declare("dijit.MenuItem",[d._Widget,d._Templated,d._Contained,d._CssStateMixin],{templateString:c.cache("dijit","templates/MenuItem.html"),attributeMap:c.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";c.attr(this.containerNode,"id",a);this.accelKeyNode&&(c.attr(this.accelKeyNode,"id",this.id+"_accel"),a+=" "+this.id+"_accel");d.setWaiState(this.domNode,"labelledby",a);c.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);c.stopEvent(a)},onClick:function(){},focus:function(){try{c.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){c.toggleClass(this.domNode,"dijitMenuItemSelected",a)},setLabel:function(a){c.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use set('label', ...) instead.",
"","2.0");this.set("label",a)},setDisabled:function(a){c.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;c.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(c,d){c.declare("dijit.CheckedMenuItem",d.MenuItem,{templateString:c.cache("dijit","templates/CheckedMenuItem.html"),checked:!1,_setCheckedAttr:function(a){c.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(c,d){c.declare("dijit.PopupMenuItem",d.MenuItem,{_fillContent:function(){if(this.srcNodeRef){var a=c.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=c.query("[widgetId]",this.dropDownContainer)[0];this.popup=d.byNode(a)}c.body().appendChild(this.popup.domNode);this.popup.startup();
this.popup.domNode.style.display="none";this.arrowWrapper&&c.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(c,d){c.declare("dijit.MenuSeparator",[d._Widget,d._Templated,d._Contained],{templateString:c.cache("dijit","templates/MenuSeparator.html"),buildRendering:function(){this.inherited(arguments);c.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(c,d){c.declare("dijit._MenuBase",[d._Widget,d._Templated,d._KeyNavContainer],{parentMenu:null,popupDelay:500,startup:function(){this._started||(c.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(c.hitch(this,"_openPopup"),this.popupDelay);this.focusedChild&&this.focusChild(a);this._hoveredChild=a},_onChildBlur:function(a){this._stopPopupTimer();a._setSelected(!1);var c=a.popup;if(c)this._stopPendingCloseTimer(c),c._pendingClose_timer=setTimeout(function(){c._pendingClose_timer=null;if(c.parentMenu)c.parentMenu.currentPopup=null;d.popup.close(c)},this.popupDelay)},onItemUnhover:function(a){this.isActive&&
this._stopPopupTimer();if(this._hoveredChild==a)this._hoveredChild=null},_stopPopupTimer:function(){if(this.hover_timer)clearTimeout(this.hover_timer),this.hover_timer=null},_stopPendingCloseTimer:function(a){if(a._pendingClose_timer)clearTimeout(a._pendingClose_timer),a._pendingClose_timer=null},_stopFocusTimer:function(){if(this._focus_timer)clearTimeout(this._focus_timer),this._focus_timer=null},_getTopMenu:function(){for(var a=this;a.parentMenu;a=a.parentMenu);return a},onItemClick:function(a,
c){typeof this.isShowingNow=="undefined"&&this._markActive();this.focusChild(a);if(a.disabled)return!1;a.popup?this._openPopup():(this.onExecute(),a.onClick(c))},_openPopup:function(){this._stopPopupTimer();var a=this.focusedChild;if(a){var e=a.popup;if(!e.isShowingNow){this.currentPopup&&(this._stopPendingCloseTimer(this.currentPopup),d.popup.close(this.currentPopup));e.parentMenu=this;e.from_item=a;var g=this;d.popup.open({parent:this,popup:e,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(){g.focusChild(a);g._cleanUp();a._setSelected(!0);g.focusedChild=a},onExecute:c.hitch(this,"_cleanUp")});this.currentPopup=e;e.connect(e.domNode,"onmouseenter",c.hitch(g,"_onPopupHover"));if(e.focus)e._focus_timer=setTimeout(c.hitch(e,function(){this._focus_timer=null;this.focus()}),0)}}},_markActive:function(){this.isActive=!0;c.replaceClass(this.domNode,"dijitMenuActive","dijitMenuPassive")},onOpen:function(){this.isShowingNow=
!0;this._markActive()},_markInactive:function(){this.isActive=!1;c.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&&c.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()}});c.declare("dijit.Menu",d._MenuBase,{constructor:function(){this._bindings=[]},templateString:c.cache("dijit","templates/Menu.html"),baseClass:"dijitMenu",targetNodeIds:[],contextMenuForWindow:!1,
leftClickToOpen:!1,refocus:!0,postCreate:function(){this.contextMenuForWindow?this.bindDomNode(c.body()):c.forEach(this.targetNodeIds,this.bindDomNode,this);var a=c.keys,e=this.isLeftToRight();this._openSubMenuKey=e?a.RIGHT_ARROW:a.LEFT_ARROW;this._closeSubMenuKey=e?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);c.stopEvent(a);break;case this._closeSubMenuKey:if(this.parentMenu)if(this.parentMenu._isMenuBar)this.parentMenu.focusPrev();
else this.onCancel(!1);else c.stopEvent(a)}},_iframeContentWindow:function(a){return c.window.get(this._iframeContentDocument(a))||this._iframeContentDocument(a).__parent__||a.name&&c.doc.frames[a.name]||null},_iframeContentDocument:function(a){return a.contentDocument||a.contentWindow&&a.contentWindow.document||a.name&&c.doc.frames[a.name]&&c.doc.frames[a.name].document||null},bindDomNode:function(a){var a=c.byId(a),e;if(a.tagName.toLowerCase()=="iframe"){var d=a,f=this._iframeContentWindow(d);e=
c.withGlobal(f,c.body)}else e=a==c.body()?c.doc.documentElement:a;var h={node:a,iframe:d};c.attr(a,"_dijitMenu"+this.id,this._bindings.push(h));var i=c.hitch(this,function(a){return[c.connect(a,this.leftClickToOpen?"onclick":"oncontextmenu",this,function(a){c.stopEvent(a);this._scheduleOpen(a.target,d,{x:a.pageX,y:a.pageY})}),c.connect(a,"onkeydown",this,function(a){a.shiftKey&&a.keyCode==c.keys.F10&&(c.stopEvent(a),this._scheduleOpen(a.target,d))})]});h.connects=e?i(e):[];if(d)h.onloadHandler=c.hitch(this,
function(){var a=this._iframeContentWindow(d);e=c.withGlobal(a,c.body);h.connects=i(e)}),d.addEventListener?d.addEventListener("load",h.onloadHandler,!1):d.attachEvent("onload",h.onloadHandler)},unBindDomNode:function(a){var e;try{e=c.byId(a)}catch(d){return}a="_dijitMenu"+this.id;if(e&&c.hasAttr(e,a)){var f=c.attr(e,a)-1,h=this._bindings[f];c.forEach(h.connects,c.disconnect);var i=h.iframe;i&&(i.removeEventListener?i.removeEventListener("load",h.onloadHandler,!1):i.detachEvent("onload",h.onloadHandler));
c.removeAttr(e,a);delete this._bindings[f]}},_scheduleOpen:function(a,e,d){if(!this._openTimer)this._openTimer=setTimeout(c.hitch(this,function(){delete this._openTimer;this._openMyself({target:a,iframe:e,coords:d})}),1)},_openMyself:function(a){function e(){l.refocus&&d.focus(m);d.popup.close(l)}var g=a.target,f=a.iframe;if(a=a.coords){if(f){var g=c.position(f,!0),h=this._iframeContentWindow(f),h=c.withGlobal(h,"_docScroll",c),i=c.getComputedStyle(f),j=c._toPixelValue,k=(c.isIE&&c.isQuirks?0:j(f,
i.paddingLeft))+(c.isIE&&c.isQuirks?j(f,i.borderLeftWidth):0),f=(c.isIE&&c.isQuirks?0:j(f,i.paddingTop))+(c.isIE&&c.isQuirks?j(f,i.borderTopWidth):0);a.x+=g.x+k-h.x;a.y+=g.y+f-h.y}}else a=c.position(g,!0),a.x+=10,a.y+=10;var l=this,m=d.getFocus(this);d.popup.open({popup:this,x:a.x,y:a.y,onExecute:e,onCancel:e,orient:this.isLeftToRight()?"L":"R"});this.focus();this._onBlur=function(){this.inherited("_onBlur",arguments);d.popup.close(this)}},uninitialize:function(){c.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(c,d){c.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){c.attr(this.node,"id",a+"_underlay");this._set("dialogId",a)},_setClassAttr:function(a){this.node.className="dijitDialogUnderlay "+
a;this._set("class",a)},postCreate:function(){c.body().appendChild(this.domNode)},layout:function(){var a=this.node.style,e=this.domNode.style;e.display="none";var d=c.window.getBox();e.top=d.t+"px";e.left=d.l+"px";a.width=d.w+"px";a.height=d.h+"px";e.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(c,d){c.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:c.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;c.attr(this.domNode,"encType",a);if(c.isIE)this.domNode.encoding=a},postCreate:function(){if(c.isIE&&this.srcNodeRef&&this.srcNodeRef.attributes){var a=this.srcNodeRef.attributes.getNamedItem("encType");a&&!a.specified&&typeof a.value==
"string"&&this.set("encType",a.value)}this.inherited(arguments)},reset:function(a){var c={returnValue:!0,preventDefault:function(){this.returnValue=!1},stopPropagation:function(){},currentTarget:a?a.target:this.domNode,target:a?a.target:this.domNode};this.onReset(c)!==!1&&c.returnValue&&this.inherited(arguments,[])},onReset:function(){return!0},_onReset:function(a){this.reset(a);c.stopEvent(a);return!1},_onSubmit:function(a){var e=d.form.Form.prototype;if(this.execute!=e.execute||this.onExecute!=
e.onExecute)c.deprecated("dijit.form.Form:execute()/onExecute() are deprecated. Use onSubmit() instead.","","2.0"),this.onExecute(),this.execute(this.getValues());this.onSubmit(a)===!1&&c.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(c,d){c.declare("dijit.ProgressBar",[d._Widget,d._Templated],{progress:"0",value:"",maximum:100,places:0,indeterminate:!1,label:"",name:"",templateString:c.cache("dijit","templates/ProgressBar.html"),_indeterminateHighContrastImagePath:c.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){c.mixin(this,a||{});var a=this.internalProgress,e=this.domNode,g=1;this.indeterminate?(d.removeWaiState(e,"valuenow"),d.removeWaiState(e,"valuemin"),d.removeWaiState(e,"valuemax")):(String(this.progress).indexOf("%")!=-1?(g=Math.min(parseFloat(this.progress)/
100,1),this.progress=g*this.maximum):(this.progress=Math.min(this.progress,this.maximum),g=this.progress/this.maximum),d.setWaiState(e,"describedby",this.labelNode.id),d.setWaiState(e,"valuenow",this.progress),d.setWaiState(e,"valuemin",0),d.setWaiState(e,"valuemax",this.maximum));this.labelNode.innerHTML=this.report(g);c.toggleClass(this.domNode,"dijitProgressBarIndeterminate",this.indeterminate);a.style.width=g*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;":c.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(c){c.declare("dojo.dnd.Container",null,{skipForm:!1,constructor:function(d,a){this.node=c.byId(d);a||(a={});this.creator=a.creator||null;this.skipForm=a.skipForm;this.parent=a.dropParent&&c.byId(a.dropParent);this.map={};this.current=null;this.containerState="";c.addClass(this.node,"dojoDndContainer");(!a||!a._skipStartup)&&this.startup();this.events=[c.connect(this.node,"onmouseover",this,"onMouseOver"),c.connect(this.node,
"onmouseout",this,"onMouseOut"),c.connect(this.node,"ondragstart",this,"onSelectStart"),c.connect(this.node,"onselectstart",this,"onSelectStart")]},creator:function(){},getItem:function(c){return this.map[c]},setItem:function(c,a){this.map[c]=a},delItem:function(c){delete this.map[c]},forInItems:function(d,a){var a=a||c.global,e=this.map,g=c.dnd._empty,f;for(f in e)f in g||d.call(a,e[f],f,this);return a},clearItems:function(){this.map={}},getAllNodes:function(){return c.query("> .dojoDndItem",this.parent)},
sync:function(){var d={};this.getAllNodes().forEach(function(a){if(a.id){var e=this.getItem(a.id);if(e){d[a.id]=e;return}}else a.id=c.dnd.getUniqueId();var e=a.getAttribute("dndType"),g=a.getAttribute("dndData");d[a.id]={data:g||a.innerHTML,type:e?e.split(/\s*,\s*/):["text"]}},this);this.map=d;return this},insertNodes:function(c,a,e){if(this.parent.firstChild)if(a){if(!e)e=this.parent.firstChild}else{if(e)e=e.nextSibling}else e=null;if(e)for(a=0;a<c.length;++a){var g=this._normalizedCreator(c[a]);
this.setItem(g.node.id,{data:g.data,type:g.type});this.parent.insertBefore(g.node,e)}else for(a=0;a<c.length;++a)g=this._normalizedCreator(c[a]),this.setItem(g.node.id,{data:g.data,type:g.type}),this.parent.appendChild(g.node);return this},destroy:function(){c.forEach(this.events,c.disconnect);this.clearItems();this.node=this.parent=this.current=null},markupFactory:function(d,a){d._skipStartup=!0;return new c.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=c.dnd._defaultCreator(this.parent);this.sync()},onMouseOver:function(c){for(var a=c.relatedTarget;a;){if(a==this.node)break;try{a=a.parentNode}catch(e){a=null}}a||(this._changeState("Container","Over"),this.onOverEvent());a=this._getChildByEvent(c);if(this.current!=a)this.current&&this._removeItemClass(this.current,"Over"),a&&this._addItemClass(a,"Over"),this.current=a},onMouseOut:function(c){for(c=
c.relatedTarget;c;){if(c==this.node)return;try{c=c.parentNode}catch(a){c=null}}if(this.current)this._removeItemClass(this.current,"Over"),this.current=null;this._changeState("Container","");this.onOutEvent()},onSelectStart:function(d){(!this.skipForm||!c.dnd.isFormElement(d))&&c.stopEvent(d)},onOverEvent:function(){},onOutEvent:function(){},_changeState:function(d,a){var e="dojoDnd"+d,g=d.toLowerCase()+"State";c.replaceClass(this.node,e+a,e+this[g]);this[g]=a},_addItemClass:function(d,a){c.addClass(d,
"dojoDndItem"+a)},_removeItemClass:function(d,a){c.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&&c.hasClass(d,"dojoDndItem"))return d;return null},_normalizedCreator:function(d,a){var e=(this.creator||this.defaultCreator).call(this,d,a);if(!c.isArray(e.type))e.type=["text"];if(!e.node.id)e.node.id=c.dnd.getUniqueId();c.addClass(e.node,"dojoDndItem");return e}});c.dnd._createNode=function(d){return!d?c.dnd._createSpan:
function(a){return c.create(d,{innerHTML:a})}};c.dnd._createTrTd=function(d){var a=c.create("tr");c.create("td",{innerHTML:d},a);return a};c.dnd._createSpan=function(d){return c.create("span",{innerHTML:d})};c.dnd._defaultCreatorNodes={ul:"li",ol:"li",div:"div",p:"div"};c.dnd._defaultCreator=function(d){var d=d.tagName.toLowerCase(),a=d=="tbody"||d=="thead"?c.dnd._createTrTd:c.dnd._createNode(c.dnd._defaultCreatorNodes[d]);return function(e,d){var f=e&&c.isObject(e),h,i;f&&e.tagName&&e.nodeType&&
e.getAttribute?(h=e.getAttribute("dndData")||e.innerHTML,f=(f=e.getAttribute("dndType"))?f.split(/\s*,\s*/):["text"],i=e):(h=f&&e.data?e.data:e,f=f&&e.type?e.type:["text"],i=(d=="avatar"?c.dnd._createSpan:a)(String(h)));if(!i.id)i.id=c.dnd.getUniqueId();return{node:i,data:h,type:f}}};return c.dnd.Container});
define("dijit/tree/_dndContainer",["dojo","dijit","dojo/dnd/common","dojo/dnd/Container"],function(c,d){c.getObject("tree",!0,c);d.tree._compareNodes=function(a,c){if(a===c)return 0;if("sourceIndex"in document.documentElement)return a.sourceIndex-c.sourceIndex;else if("compareDocumentPosition"in document.documentElement)return a.compareDocumentPosition(c)&2?1:-1;else if(document.createRange){var d=doc.createRange();d.setStartBefore(a);var f=doc.createRange();f.setStartBefore(c);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");};c.declare("dijit.tree._dndContainer",null,{constructor:function(a,e){this.tree=a;this.node=a.domNode;c.mixin(this,e);this.map={};this.current=null;this.containerState="";c.addClass(this.node,"dojoDndContainer");this.events=[c.connect(this.node,"onmouseenter",this,"onOverEvent"),c.connect(this.node,"onmouseleave",this,"onOutEvent"),c.connect(this.tree,"_onNodeMouseEnter",this,"onMouseOver"),
c.connect(this.tree,"_onNodeMouseLeave",this,"onMouseOut"),c.connect(this.node,"ondragstart",c,"stopEvent"),c.connect(this.node,"onselectstart",c,"stopEvent")]},getItem:function(a){return{data:this.selection[a],type:["treeNode"]}},destroy:function(){c.forEach(this.events,c.disconnect);this.node=this.parent=null},onMouseOver:function(a){this.current=a},onMouseOut:function(){this.current=null},_changeState:function(a,e){var d="dojoDnd"+a,f=a.toLowerCase()+"State";c.replaceClass(this.node,d+e,d+this[f]);
this[f]=e},_addItemClass:function(a,e){c.addClass(a,"dojoDndItem"+e)},_removeItemClass:function(a,e){c.removeClass(a,"dojoDndItem"+e)},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(c,d){c.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(c.connect(this.tree.domNode,"onmousedown",this,"onMouseDown"),c.connect(this.tree.domNode,"onmouseup",this,"onMouseUp"),c.connect(this.tree.domNode,"onmousemove",this,"onMouseMove"))},singular:!1,getSelectedTreeNodes:function(){var a=
[],c=this.selection,d;for(d in c)a.push(c[d]);return a},selectNone:function(){this.setSelection([]);return this},destroy:function(){this.inherited(arguments);this.selection=this.anchor=null},addTreeNode:function(a,c){this.setSelection(this.getSelectedTreeNodes().concat([a]));if(c)this.anchor=a;return a},removeTreeNode:function(a){this.setSelection(this._setDifference(this.getSelectedTreeNodes(),[a]));return a},isTreeNodeSelected:function(a){return a.id&&!!this.selection[a.id]},setSelection:function(a){var e=
this.getSelectedTreeNodes();c.forEach(this._setDifference(e,a),c.hitch(this,function(a){a.setSelected(!1);this.anchor==a&&delete this.anchor;delete this.selection[a.id]}));c.forEach(this._setDifference(a,e),c.hitch(this,function(a){a.setSelected(!0);this.selection[a.id]=a}));this._updateSelectionProperties()},_setDifference:function(a,e){c.forEach(e,function(a){a.__exclude__=!0});var d=c.filter(a,function(a){return!a.__exclude__});c.forEach(e,function(a){delete a.__exclude__});return d},_updateSelectionProperties:function(){var a=
this.getSelectedTreeNodes(),e=[],d=[];c.forEach(a,function(a){d.push(a);e.push(a.getTreePath())});a=c.map(d,function(a){return a.item});this.tree._set("paths",e);this.tree._set("path",e[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!=c.mouseButtons.RIGHT){c.stopEvent(a);var e=this.current,
d=c.isCopyKey(a),f=e.id;!this.singular&&!a.shiftKey&&this.selection[f]?this._doDeselect=!0:(this._doDeselect=!1,this.userSelect(e,d,a.shiftKey))}},onMouseUp:function(a){if(this._doDeselect)this._doDeselect=!1,this.userSelect(this.current,c.isCopyKey(a),a.shiftKey)},onMouseMove:function(){this._doDeselect=!1},userSelect:function(a,c,g){if(this.singular)this.anchor==a&&c?this.selectNone():(this.setSelection([a]),this.anchor=a);else if(g&&this.anchor){g=this.anchor;d.tree._compareNodes(this.anchor.rowNode,
a.rowNode)<0?c=g:(c=a,a=g);for(nodes=[];c!=a;)nodes.push(c),c=this.tree._getNextNode(c);nodes.push(a);this.setSelection(nodes)}else this.selection[a.id]&&c?this.removeTreeNode(a):c?this.addTreeNode(a,!0):(this.setSelection([a]),this.anchor=a)},forInSelectedItems:function(a,e){var e=e||c.global,d;for(d in this.selection)a.call(e,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(c,d){c.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:c.cache("dijit","templates/TreeNode.html"),baseClass:"dijitTreeNode",cssStateNodes:{rowNode:"dijitTreeRow",labelNode:"dijitTreeLabel"},attributeMap:c.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 e=Math.max(a,0)*this.tree._nodePixelIndent+"px";c.style(this.domNode,"backgroundPosition",e+" 0px");c.style(this.rowNode,this.isLeftToRight()?"paddingLeft":"paddingRight",e);c.forEach(this.getChildren(),function(c){c.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 c=this.tree,d=c.model;c._v10Compat&&a===d.root&&(a=null);
this._applyClassAndStyle(a,"icon","Icon");this._applyClassAndStyle(a,"label","Label");this._applyClassAndStyle(a,"row","Row")},_applyClassAndStyle:function(a,e,d){var f="_"+e+"Class";e+="Node";var h=this[f];this[f]=this.tree["get"+d+"Class"](a,this.isExpanded);c.replaceClass(this[e],this[f]||"",h||"");c.style(this[e],this.tree["get"+d+"Style"](a,this.isExpanded)||{})},_updateLayout:function(){var a=this.getParent();!a||a.rowNode.style.display=="none"?c.addClass(this.domNode,"dijitTreeIsRoot"):c.toggleClass(this.domNode,
"dijitTreeIsLast",!this.getNextSibling())},_setExpando:function(a){var e=["dijitTreeExpandoLoading","dijitTreeExpandoOpened","dijitTreeExpandoClosed","dijitTreeExpandoLeaf"],a=a?0:this.isExpandable?this.isExpanded?1:2:3;c.replaceClass(this.expandoNode,e[a],e);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");c.addClass(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);this==this.tree.rootNode&&d.setWaiState(this.tree.domNode,"expanded","true");var a,e=c.fx.wipeIn({node:this.containerNode,duration:d.defaultDuration,onEnd:function(){a.callback(!0)}});a=this._expandDeferred=new c.Deferred(function(){e.stop()});e.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");c.removeClass(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);if(!this._wipeOut)this._wipeOut=c.fx.wipeOut({node:this.containerNode,duration:d.defaultDuration});this._wipeOut.play()}},indent:0,setChildItems:function(a){var e=this.tree,g=e.model,
f=[];c.forEach(this.getChildren(),function(a){d._Container.prototype.removeChild.call(this,a)},this);this.state="LOADED";a&&a.length>0?(this.isExpandable=!0,c.forEach(a,function(a){var c=g.getIdentity(a),d=e._itemNodesMap[c],k;if(d)for(var l=0;l<d.length;l++)if(d[l]&&!d[l].getParent()){k=d[l];k.set("indent",this.indent+1);break}k||(k=this.tree._createTreeNode({item:a,tree:e,isExpandable:g.mayHaveChildren(a),label:e.getLabel(a),tooltip:e.getTooltip(a),dir:e.dir,lang:e.lang,indent:this.indent+1}),d?
d.push(k):e._itemNodesMap[c]=[k]);this.addChild(k);(this.tree.autoExpand||this.tree._state(a))&&f.push(e._expandNode(k))},this),c.forEach(this.getChildren(),function(a){a._updateLayout()})):this.isExpandable=!1;this._setExpando&&this._setExpando(!1);this._updateItemClasses(this.item);if(this==e.rootNode)(a=this.tree.showRoot?this:this.getChildren()[0])?(a.setFocusable(!0),e.lastFocused=a):e.domNode.setAttribute("tabIndex","0");return new c.DeferredList(f)},getTreePath:function(){for(var a=this,c=
[];a&&a!==this.tree.rootNode;)c.unshift(a.item),a=a.getParent();c.unshift(this.tree.rootNode.item);return c},getIdentity:function(){return this.tree.model.getIdentity(this.item)},removeChild:function(a){this.inherited(arguments);var d=this.getChildren();if(d.length==0)this.isExpandable=!1,this.collapse();c.forEach(d,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);c.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)}});c.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:c.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,d){c.publish(this.id,
[c.mixin({tree:this,event:a},d||{})])},postMixInProperties:function(){this.tree=this;if(this.autoExpand)this.persist=!1;this._itemNodesMap={};if(!this.cookieName)this.cookieName=this.id+"SaveStateCookie";this._loadDeferred=new c.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(c.isString(this.dndController))this.dndController=c.getObject(this.dndController);for(var a={},d=0;d<this.dndParams.length;d++)this[this.dndParams[d]]&&(a[this.dndParams[d]]=this[this.dndParams[d]]);this.dndController=new this.dndController(this,a)}},_store2model:function(){this._v10Compat=!0;c.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=c.hitch(this,"mayHaveChildren");if(this.params.getItemChildren)a.getChildren=c.hitch(this,function(a,c,d){this.getItemChildren(this._v10Compat&&a===this.model.root?null:a,c,d)});this.model=new d.tree.ForestStoreModel(a);this.showRoot=Boolean(this.label)},onLoad:function(){},_load:function(){this.model.getRoot(c.hitch(this,function(a){var e=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)e.rowNode.style.display="none",d.setWaiRole(this.domNode,"presentation"),d.setWaiRole(e.labelNode,"presentation"),d.setWaiRole(e.containerNode,"tree");this.domNode.appendChild(e.domNode);a=this.model.getIdentity(a);this._itemNodesMap[a]?this._itemNodesMap[a].push(e):this._itemNodesMap[a]=[e];e._updateLayout();this._expandNode(e).addCallback(c.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[c.isString(a)?a:this.model.getIdentity(a)])},_setSelectedItemAttr:function(a){this.set("selectedItems",[a])},_setSelectedItemsAttr:function(a){var d=this;this._loadDeferred.addCallback(c.hitch(this,function(){var g=c.map(a,function(a){return!a||c.isString(a)?a:d.model.getIdentity(a)}),f=[];c.forEach(g,function(a){f=f.concat(d._itemNodesMap[a]||[])});this.set("selectedNodes",f)}))},_setPathAttr:function(a){return a.length?
this.set("paths",[a]):this.set("paths",[])},_setPathsAttr:function(a){function d(a,h,i){var j=a.shift(),k=c.filter(h,function(a){return a.getIdentity()==j})[0];k?a.length?g._expandNode(k).addCallback(function(){d(a,k.getChildren(),i)}):i.callback(k):i.errback("Could not expand path at "+j)}var g=this;return(new c.DeferredList(c.map(a,function(a){var h=new c.Deferred,a=c.map(a,function(a){return c.isString(a)?a:g.model.getIdentity(a)});a.length?g._loadDeferred.addCallback(function(){d(a,[g.rootNode],
h)}):h.errback("Empty path");return h}))).addCallback(function(a){g.set("selectedNodes",c.map(c.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(c.hitch(this,function(){this.dndController.setSelection(a)}))},mayHaveChildren:function(){},getItemChildren:function(){},getLabel:function(a){return this.model.getLabel(a)},getIconClass:function(a,c){return!a||this.model.mayHaveChildren(a)?
c?"dijitFolderOpened":"dijitFolderClosed":"dijitLeaf"},getLabelClass:function(){},getRowClass:function(){},getIconStyle:function(){},getLabelStyle:function(){},getRowStyle:function(){},getTooltip:function(){return""},_onKeyPress:function(a){if(!a.altKey){var e=c.keys,g=d.getEnclosingWidget(a.target);if(g){var f=a.charOrCode;if(typeof f=="string"&&f!=" ")!a.altKey&&!a.ctrlKey&&!a.shiftKey&&!a.metaKey&&(this._onLetterKeyNav({node:g,key:f.toLowerCase()}),c.stopEvent(a));else{this._curSearch&&(clearTimeout(this._curSearch.timer),
delete this._curSearch);var h=this._keyHandlerMap;if(!h)h={},h[e.ENTER]="_onEnterKey",h[e.SPACE]=h[" "]="_onEnterKey",h[this.isLeftToRight()?e.LEFT_ARROW:e.RIGHT_ARROW]="_onLeftArrow",h[this.isLeftToRight()?e.RIGHT_ARROW:e.LEFT_ARROW]="_onRightArrow",h[e.UP_ARROW]="_onUpArrow",h[e.DOWN_ARROW]="_onDownArrow",h[e.HOME]="_onHomeKey",h[e.END]="_onEndKey",this._keyHandlerMap=h;this._keyHandlerMap[f]&&(this[this._keyHandlerMap[f]]({node:g,item:g.item,evt:a}),c.stopEvent(a))}}}},_onEnterKey:function(a){this._publish("execute",
{item:a.item,node:a.node});this.dndController.userSelect(a.node,c.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,c=a.getPreviousSibling();if(c)for(a=c;a.isExpandable&&a.isExpanded&&a.hasChildren();)a=a.getChildren(),a=a[a.length-1];else if(c=a.getParent(),this.showRoot||c!==this.rootNode)a=c;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 c=this._curSearch;c?(c.pattern+=a.key,clearTimeout(c.timer)):c=this._curSearch={pattern:a.key,startNode:a.node};var d=this;c.timer=setTimeout(function(){delete d._curSearch},this.multiCharSearchDuration);a=c.startNode;do(a=this._getNextNode(a))||(a=this._getRootOrFirstNode());while(a!==c.startNode&&a.label.toLowerCase().substr(0,c.pattern.length)!=c.pattern);a&&a.isTreeNode&&a!==c.startNode&&this.focusNode(a)},isExpandoNode:function(a,d){return c.isDescendant(a,
d.expandoNode)},_onClick:function(a,d){var g=this.isExpandoNode(d.target,a);this.openOnClick&&a.isExpandable||g?a.isExpandable&&this._onExpandoClick({node:a}):(this._publish("execute",{item:a.item,node:a,evt:d}),this.onClick(a.item,a,d),this.focusNode(a));c.stopEvent(d)},_onDblClick:function(a,d){var g=d.target,g=g==a.expandoNode||g==a.expandoNodeText;this.openOnDblClick&&a.isExpandable||g?a.isExpandable&&this._onExpandoClick({node:a}):(this._publish("execute",{item:a.item,node:a,evt:d}),this.onDblClick(a.item,
a,d),this.focusNode(a));c.stopEvent(d)},_onExpandoClick:function(a){a=a.node;this.focusNode(a);a.isExpanded?this._collapseNode(a):this._expandNode(a)},onClick:function(){},onDblClick:function(){},onOpen:function(){},onClose:function(){},_getNextNode:function(a){if(a.isExpandable&&a.isExpanded&&a.hasChildren())return a.getChildren()[0];else{for(;a&&a.isTreeNode;){var c=a.getNextSibling();if(c)return c;a=a.getParent()}return null}},_getRootOrFirstNode:function(){return this.showRoot?this.rootNode:this.rootNode.getChildren()[0]},
_collapseNode:function(a){a._expandNodeDeferred&&delete a._expandNodeDeferred;a.isExpandable&&a.state!="LOADING"&&(a.collapse(),this.onClose(a.item,a),a.item&&(this._state(a.item,!1),this._saveState()))},_expandNode:function(a,d){if(a._expandNodeDeferred&&!d)return a._expandNodeDeferred;var g=this.model,f=a.item,h=this;switch(a.state){case "UNCHECKED":a.markProcessing();var i=a._expandNodeDeferred=new c.Deferred;g.getChildren(f,function(c){a.unmarkProcessing();var c=a.setChildItems(c),d=h._expandNode(a,
!0);c.addCallback(function(){d.addCallback(function(){i.callback()})})},function(a){console.error(h,": error loading root children: ",a)});break;default:i=a._expandNodeDeferred=a.expand(),this.onOpen(a.item,a),f&&(this._state(f,!0),this._saveState())}return i},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 d=this._itemNodesMap[this.model.getIdentity(a)];if(d){var g=this.getLabel(a),f=this.getTooltip(a);c.forEach(d,function(c){c.set({item:a,label:g,tooltip:f});c._updateItemClasses(a)})}},_onItemChildrenChange:function(a,d){var g=this._itemNodesMap[this.model.getIdentity(a)];g&&c.forEach(g,function(a){a.setChildItems(d)})},_onItemDelete:function(a){var a=this.model.getIdentity(a),d=this._itemNodesMap[a];d&&(c.forEach(d,function(a){this.dndController.removeTreeNode(a);
var c=a.getParent();c&&c.removeChild(a);a.destroyRecursive()},this),delete this._itemNodesMap[a])},_initState:function(){if(this.persist){var a=c.cookie(this.cookieName);this._openedItemIds={};a&&c.forEach(a.split(","),function(a){this._openedItemIds[a]=!0},this)}},_state:function(a,c){if(!this.persist)return!1;var d=this.model.getIdentity(a);if(arguments.length===1)return this._openedItemIds[d];c?this._openedItemIds[d]=!0:delete this._openedItemIds[d]},_saveState:function(){if(this.persist){var a=
[],d;for(d in this._openedItemIds)a.push(d);c.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&&!c.isString(this.dndController)&&this.dndController.destroy();this.rootNode=null;this.inherited(arguments)},destroyRecursive:function(){this.destroy()},resize:function(a){a&&c.marginBox(this.domNode,a);this._nodePixelIndent=c._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(c,d){c.declare("orion.widgets._ExplorerTreeNode",[d._TreeNode],{templateString:c.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)}});c.declare("orion.widgets.ExplorerTree",
[d.Tree],{selectedNodes:{},postCreate:function(){c.connect(this,"onMouseDown",this._eatSelectionEvent);c.connect(this.domNode,"onselectstart",this._eatSelectionEvent);this.inherited(arguments)},getFollowClass:function(){},getFollowStyle:function(){},updateFollowLink:function(){},onFollowClick:function(){},getSelectedItems:function(){var a=[];this._forEachSelectedNode(function(c,d){a.push(d.item)});return a},_getSelectedNodes:function(){var a=[];this._forEachSelectedNode(function(c,d){a.push(d)});
return a},_forEachSelectedNode:function(a){var c=this.selectedNodes,d;for(d in c)c.hasOwnProperty(d)&&a(d,c[d])},_createTreeNode:function(a){return new orion.widgets._ExplorerTreeNode(a)},_eatSelectionEvent:function(a){(c.isCopyKey(a)||a.shiftKey)&&c.stopEvent(a)},_onClick:function(a,d){var g=d.target,f=g===a.expandoNode||g===a.expandoNodeText,g=g===a.followNode;if(c.isCopyKey(d))this._toggleSelectNode(a),this.focusNode(a);else if(d.shiftKey)this.selectedNode&&(this._selectRange(this.selectedNode,
a),this.focusNode(a));else{if(g)this.onFollowClick(a.item,a,d);else this.openOnClick&&a.isExpandable||f?a.isExpandable&&this._onExpandoClick({node:a}):(this._publish("execute",{item:a.item,node:a,evt:d}),this.onClick(a.item,a,d),this.focusNode(a));!f&&!g&&this._selectNode(a)}g||c.stopEvent(d)},_onItemDelete:function(a){var d=this._itemNodesMap[this.model.getIdentity(a)];if(d){var g=this;c.forEach(d,function(a){g._removeFromSelection(a)})}this.inherited(arguments)},_getVisibleAncestor:function(a){if(!a)return null;
for(var c=a.getParent();c&&(!c.isExpandable||!c.isExpanded);)a=c,c=c.getParent();return a},_toggleSelectNode:function(a){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,c){function d(a,c){var e=[],f=a;do e.push(f),f=i._getNextNode(f);while(f&&f!==c);return f===c?
(e.push(c),e):null}var f=this._getVisibleAncestor(a),h=this._getVisibleAncestor(c);if(f&&h)if(f===h)this._selectNode(f);else{var i=this,j=d(f,h);j?this._selectNodes(j.reverse(),!0):(j=d(h,f))?this._selectNodes(j,!0):console.debug("Warning: couldn't select range from "+f.label+" to "+h.label)}},_selectNode:function(a){this._selectNodes(a?[a]:null)},_selectNodes:function(a){this._forEachSelectedNode(function(a,c){c._destroyed||c.setSelected(!1)});this.selectedNodes={};if(a)for(var c=0;c<a.length;c++){var d=
a[c];d.setSelected(!0);this._addToSelection(d);this.selectedNode=d}}})});
define("dojo/hash",["dojo"],function(c){(function(){function d(a,c){var d=a.indexOf(c);return d>=0?a.substring(d+1):""}function a(){return d(location.href,"#")}function e(){c.publish("/dojo/hashchange",[a()])}function g(){a()!==i&&(i=a(),e())}function f(a){if(j)if(j.isTransitioning())setTimeout(c.hitch(null,f,a),l);else{var d=j.iframe.location.href,e=d.indexOf("?");j.iframe.location.replace(d.substring(0,e)+"?"+a)}else location.replace("#"+a),!k&&g()}function h(){function f(){i=a();j=t?i:d(u.href,
"?");k=!1;s=null}var g=document.createElement("iframe"),h=c.config.dojoBlankHtmlUrl||c.moduleUrl("dojo","resources/blank.html");c.config.useXDomain&&!c.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");g.id="dojo-hash-iframe";g.src=h+"?"+a();g.style.display="none";document.body.appendChild(g);this.iframe=c.global["dojo-hash-iframe"];
var j,k,s,q,t,u=this.iframe.location;this.isTransitioning=function(){return k};this.pollLocation=function(){if(!t)try{var v=d(u.href,"?");if(document.title!=q)q=this.iframe.document.title=document.title}catch(w){t=!0,console.error("dojo.hash: Error adding history entry. Server unreachable.")}var C=a();if(k&&i===C)if(t||v===s)f(),e();else{setTimeout(c.hitch(this,this.pollLocation),0);return}else if(!(i===C&&(t||j===v)))if(i!==C){i=C;k=!0;s=C;g.src=h+"?"+s;t=!1;setTimeout(c.hitch(this,this.pollLocation),
0);return}else if(!t)location.href="#"+u.search.substring(1),f(),e();setTimeout(c.hitch(this,this.pollLocation),l)};f();setTimeout(c.hitch(this,this.pollLocation),l)}c.hash=function(c,d){if(!arguments.length)return a();c.charAt(0)=="#"&&(c=c.substring(1));d?f(c):location.href="#"+c;return c};var i,j,k,l=c.config.hashPollFrequency||100;c.addOnLoad(function(){"onhashchange"in c.global&&(!c.isIE||c.isIE>=8&&document.compatMode!="BackCompat")?k=c.connect(c.global,"onhashchange",e):document.addEventListener?
(i=a(),setInterval(g,l)):document.attachEvent&&(j=new h)})})();return c.hash});
define("orion/util",["i18n!orion/nls/messages","dojo","dijit","dojo/hash","dijit/form/ValidationTextBox"],function(c,d,a){function e(a){var c=window.navigator.platform.indexOf("Mac")!==-1;return c&&a.metaKey||!c&&a.ctrlKey}function g(a){return typeof a.textContent!=="undefined"?a.textContent:a.innerText}return{getUserKeyString:function(a){var c="",e=navigator.platform.indexOf("Mac")!==-1;a.mod1&&(c+=e?"Cmd+":"Ctrl+");a.mod2&&(c+="Shift+");a.mod3&&(c+="Alt+");a.mod4&&e&&(c+="Ctrl+");if(a.alphaKey)return c+
a.alphaKey;for(var g in d.keys)if(typeof(d.keys[g]==="number")&&d.keys[g]===a.keyCode)return c+g;var k;switch(a.keyCode){case 59:k=a.mod2?":":";";break;case 61:k=a.mod2?"+":"=";break;case 188:k=a.mod2?"<":",";break;case 190:k=a.mod2?">":".";break;case 191:k=a.mod2?"?":"/";break;case 192:k=a.mod2?"~":"`";break;case 219:k=a.mod2?"{":"[";break;case 220:k=a.mod2?"|":"\\";break;case 221:k=a.mod2?"}":"]";break;case 222:k=a.mod2?'"':"'"}return k?c+k:c+String.fromCharCode(a.keyCode)},openDialog:function(c,
e){c.startup();if(typeof e==="string"){var g=d.byId(e);if(!g&&(g=a.byId(e)))g=g.domNode;e=g?g:null}e&&(g=d.position(e),c._setStyleAttr("left:"+(g.x+16)+"px !important;"),c._setStyleAttr("top:"+(g.y+16)+"px !important;"));c.show()},getUserText:function(c,e,g,j,k,l,m,o,n){var m=function(m){return function(o){var q=a.byId(c),t=q.get("value");m&&o.keyCode===d.keys.ESCAPE?(g&&d.style(e,"display","inline"),q.destroyRecursive(),l&&l()):m&&o.keyCode!==d.keys.ENTER||(!q.isValid()||!n&&t===j?g&&d.style(e,"display",
"inline"):k(t),q.destroyRecursive(),l&&l())}},p=new a.form.ValidationTextBox({id:c,required:!0,value:j||""});d.place(p.domNode,e,"after");d.addClass(p.domNode,"userEditBoxPrompt");g&&d.style(e,"display","none");d.connect(p,"onKeyDown",m(!0));d.connect(p,"onBlur",m(!1));window.setTimeout(function(){p.focus();if(j){var e=d.byId(c),g=o?j.indexOf(o):-1;g>0?a.selectInputText(e,0,g):e.select()}},0)},openInNewWindow:e,followLink:function(a,c){c&&e(c)?window.open(a):window.location=a},makeRelative:function(a){if(!a)return a;
var c=window.location.protocol+"//"+window.location.host;return a.indexOf(c)===0?a.substring(c.length):a},makeFullPath:function(a){if(!a)return a;var c=window.location.protocol+"//"+window.location.host;a.charAt(0)!=="/"&&(a="/"+a);return c+a},isAtRoot:function(a){return this.makeRelative(a).indexOf("/workspace")===0},processNavigatorParent:function(a,c){a.children=c;for(var d in c)c[d].parent=a;a.children.sort(function(a,c){var d=a.Directory;if(d!==c.Directory)return d?-1:1;var d=a.Name&&a.Name.toLowerCase(),
e=c.Name&&c.Name.toLowerCase();return d<e?-1:d>e?1:0})},getText:g,safeText:function(a){return g(document.createTextNode(a))},setText:function(a,c){typeof a.textContent!=="undefined"?a.textContent=c:a.innerText=c},forceLayout:function(c){for(typeof c==="string"&&(c=d.byId(c));c;){var e=a.byId(c.id);if(e&&typeof e.layout==="function"){e.layout();break}c=c.parentNode}},saveFileContents:function(a,d,e,g){a.write(d.Location,e,{ETag:d.ETag}).then(function(){g&&g()},function(k){k.status===412?window.confirm(c["Resource is out of sync with the server. Do you want to save it anyway?"])&&
a.write(d.Location,e).then(function(a){d.ETag=a.ETag;g&&g()}):k.log=!0})},splitFile:function(a){for(var c=0,d=0,e=0,g=0,l=[];;){c!==-1&&c<=e&&(c=a.indexOf("\r",e));d!==-1&&d<=e&&(d=a.indexOf("\n",e));if(d===-1&&c===-1){l.push(a.substring(g));break}var m=1;c!==-1&&d!==-1?c+1===d?(m=2,e=d+1):e=(c<d?c:d)+1:e=c!==-1?c+1:d+1;l.push(a.substring(g,e-m));g=e}return l}}});
define("orion/status",["require","dojo","orion/util"],function(c,d,a){function e(a,c,d,e,g){this._serviceRegistry=a;this._serviceRegistration=a.registerService("orion.page.message",this);this._operationsClient=c;this.notificationContainerDomId=g;this.domId=d;this.progressDomId=e||d;this._hookedClose=!1}function g(a,c,e,g){this.statusService=a;this.progressId=c;if(e){this.deferred=e;this.begin(g);var k=this;e.then(function(){d.hitch(k,k.done)()},function(){d.hitch(k,k.done)()})}}e.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,c,e){this._init();this.currentMessage=a;if(typeof e==="boolean"){var g=this,k=d.byId(this.domId),
l=d.attr(k,"aria-live");d.attr(k,"aria-live",e?"polite":"off");window.setTimeout(function(){d.place(window.document.createTextNode(a),g.domId,"only")},100);window.setTimeout(function(){d.attr(k,"aria-live",l)},200)}else d.place(window.document.createTextNode(a),this.domId,"only");typeof c==="number"&&(g=this,window.setTimeout(function(){var c=d.byId(g.domId);(typeof c.textContent==="string"?c.textContent:c.innerText)===a&&d.place(window.document.createTextNode(""),g.domId,"only")},c))},setErrorMessage:function(a){this.currentMessage=
a;this._init();var c=a.responseText||a.message||a;try{c=JSON.parse(c)}catch(e){}var a=c.Message||c,g="red";if(c.Severity)switch(c.Severity){case "Warning":g="#FFCC00";break;case "Error":g="red";break;case "Info":case "Ok":g="green"}c=d.create("span",{style:{color:g}});d.place(window.document.createTextNode(a),c);d.place(c,this.domId,"only")},setProgressMessage:function(c){this._init();this.currentMessage=c;var e=d.create("span",{"class":"imageSprite core-sprite-progress"});d.place(e,this.progressDomId,
"only");d.place(window.document.createTextNode(c),this.progressDomId,"last");d.addClass(this.notificationContainerDomId,"progressNormal");c&&c.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(c){this.currentMessage=c;c=c.responseText||c;try{c=
JSON.parse(c)}catch(e){}this._init();var g=c.Message||c,j="imageSprite core-sprite-info",k="progressInfo",l="progressWarning progressError progressNormal";if(c.Severity)switch(c.Severity){case "Warning":j="imageSprite core-sprite-warning";k="progressWarning";l="progressInfo progressError progressNormal";break;case "Error":j="imageSprite core-sprite-error",k="progressError",l="progressWarning progressInfo progressNormal"}j=d.create("span",{"class":j});d.place(j,this.progressDomId,"only");c.HTML?d.place(g,
this.progressDomId,"last"):(d.place(window.document.createTextNode("   "+g),this.progressDomId,"last"),k&&this.progressDomId!==this.domId&&(d.addClass(this.notificationContainerDomId,k),d.removeClass(this.notificationContainerDomId,l)));d.addClass(this.notificationContainerDomId,"slideContainerActive");a.forceLayout(this.notificationContainerDomId)},showWhile:function(a,c){var d=this;c&&(d.setProgressMessage(c),a.addBoth(function(){c===d.currentMessage&&d.setProgressMessage("")}));return a},_lastProgressId:0,
_progressMonitors:{length:0},createProgressMonitor:function(a,c){return new g(this,++this._lastProgressId,a,c)},_renderOngoingMonitors:function(){if(this._progressMonitors.length>0){var a="",c=!0,d;for(d in this._progressMonitors)this._progressMonitors[d].status&&(c||(a+=", "),a+=this._progressMonitors[d].status,c=!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()}};e.prototype.constructor=e;g.prototype=new d.Deferred;g.prototype.begin=function(a){this.status=a;this.statusService._beginProgressMonitor(this)};g.prototype.done=function(a){this.status=a;this.statusService._doneProgressMonitor(this)};
g.prototype.worked=function(a){this.status=a;this.statusService._workedProgressMonitor(this)};g.prototype.constructor=g;return{StatusReportingService:e,ProgressMonitor:g}});
define("orion/searchUtils",["require","dojo","orion/editor/regex","orion/util"],function(c,d,a,e){var g=g||{};g.searchUtils=g.searchUtils||{};g.searchUtils.parseQueryStr=function(a){var c=a.indexOf("?"),d=a.indexOf("q=");c<d&&d>0&&(a=a.substring(c+1));c=a.split("&");a={queryStr:a,start:0,rows:10,sort:"Path asc",replace:null};for(d=0;d<c.length;d++){var e=c[d].indexOf("q="),k=c[d].indexOf("replace=");if(e>=0)g.searchUtils.parseLocationAndSearchStr(c[d].substring(e+2),a);else if(k>=0)a.replace=c[d].substring(k+
8);else if(e=c[d].split("="),e.length===2)if(e[0]==="rows")a.rows=parseInt(e[1]);else if(e[0]==="start")a.start=parseInt(e[1]);else if(e[0]==="sort")a.sort=e[1]}return a};g.searchUtils.copyQueryParams=function(a,c){return{sort:a.sort,rows:a.rows,start:a.start,searchStr:a.searchStr,location:a.location,replace:c?a.replace:null}};g.searchUtils.generateSearchHref=function(a){return c.toUrl("search/search.html")+"#"+g.searchUtils.generateSearchQuery(a)};g.searchUtils.generateSearchQuery=function(a){var c=
"Path asc",d=40,e=0,g="",l="",m="";if(a){if(a.sort)c=a.sort;if(a.rows)d=a.rows;if(a.start)e=a.start;if(a.searchStr)g=a.searchStr,g=g.split(" ").join("");if(a.location)l=a.location,l.length>0&&l[l.length-1]!=="*"&&(l+="*"),l!==""&&(l="+Location:"+l);a.replace!==null&&a.replace!==void 0&&(m="&replace="+a.replace)}return"?sort="+c+"&rows="+d+"&start="+e+"&q="+g+l+m};g.searchUtils.parseLocationAndSearchStr=function(a,c){var d=a.indexOf("+Location:")>-1;c.location="";c.searchStr=a;if(d&&(d=a.split("+Location:"),
d.length===2)){var e=d[1];e.length>0&&e[e.length-1]==="*"&&(e=e.substring(0,e.length-1));c.location=e;c.searchStr=d[0].split(" ").join("")}c.searchStrTitle=c.searchStr.split("\\").join("");c.inFileQuery=g.searchUtils.generateInFileQuery(c.searchStr)};g.searchUtils.generateInFileQuery=function(c){var d={};d.originalSearchStr=c;var e=c.indexOf("*")>-1,g=c.indexOf("?")>-1;e&&(c=c.split("*").join(".*"));g&&(c=c.split("?").join("."));if(!e&&!g)d.searchStr=c.split("\\").join("").toLowerCase(),d.wildCard=
!1;else if(d.searchStr=c.toLowerCase(),e=a.parse("/"+d.searchStr+"/"))c=e.pattern,e=e.flags,e+=e.indexOf("i")===-1?"i":"",d.regExp={pattern:c,flags:e},d.wildCard=!0;d.searchStrLength=d.searchStr.length;return d};g.searchUtils.generateFindURLBinding=function(a,c,d){a=",find="+a.originalSearchStr;typeof d==="string"&&(a=a+"@@replaceWith@@"+d);typeof c==="number"&&(a=a+"@@atLine@@"+c);return a};g.searchUtils.parseFindURLBinding=function(a){var c=null,d=a.split("@@atLine@@");d.length>1&&(c=parseInt(d[1]),
c<1&&(c=1));var a=null,d=d[0].split("@@replaceWith@@"),e=d[0];d.length>1&&(a=d[1]);d=g.searchUtils.generateInFileQuery(e);return{searchStr:d.searchStr,replaceStr:a,lineNumber:c,useRegExp:d.wildCard}};g.searchUtils.replaceRegEx=function(a,c,d){return a.replace(RegExp(c.pattern,c.flags),d)};g.searchUtils.replaceStringLiteral=function(c,d,e){d=a.parse("/"+d+"/gim");return g.searchUtils.replaceRegEx(c,d,e)};g.searchUtils.searchOnelineLiteral=function(a,c,d){var e;e=0;for(var g=!1,l=[];;)if(e=c.indexOf(a.searchStr,
e),e<0)break;else{l.push({startIndex:e});g=!0;if(d)break;e+=a.searchStrLength}return g?l:null};g.searchUtils.findRegExp=function(a,c,d,e){if(!c)return null;d=d||"";d+=(d.indexOf("g")===-1?"g":"")+(d.indexOf("m")===-1?"m":"");var g=null;return(g=RegExp(c,d).exec(a.substring(e)))&&{startIndex:g.index+e,length:g[0].length}};g.searchUtils.searchOnelineRegEx=function(a,c,d){for(var e=0,k=!1,l=[];;)if(e=g.searchUtils.findRegExp(c,a.regExp.pattern,a.regExp.flags,e)){l.push(e);k=!0;if(d)break;e=e.startIndex+
e.length}else break;return k?l:null};g.searchUtils.generateNewContents=function(a,c,d,e,k){if(d&&a){var l;l=c.length>0?!0:!1;for(var m=0;m<a.length;m++){for(var o=a[m],n=!1,p=!1,r=[],s,q=0,t=0;t<d.children.length;t++)if(d.children[t].lineNumber-1===m){q=t;for(n=0;n<d.children[t].matches.length;n++)d.children[t+n].checked!==!1&&r.push(n);p=r.length>0;s=d.children[t].matches;n=!0;break}if(n){if(p){r=g.searchUtils.replaceCheckedMatches(o,e,s,r,k);o=r.replacedStr;for(n=0;n<d.children[q].matches.length;n++)d.children[q+
n].newMatches=r.newMatches}else for(n=0;n<d.children[q].matches.length;n++)d.children[q+n].newMatches=d.children[q+n].matches;l?c[m]=o:c.push(o)}else l||c.push(o)}}};g.searchUtils.generateMatchContext=function(a,c,d){var e=[],g=a*2+1,l;c.length<=g?(l=0,a=c.length-1):(l=d-a,l<0?(l=0,a=l+g-1):(a=d+a,a>c.length-1&&(a=c.length-1,l=a-g+1)));for(g=l;g<=a;g++)e.push({context:c[g],current:g===d});return e};g.searchUtils.searchWithinFile=function(a,c,d,j,k,l){d=e.splitFile(d);if(k)c.contents=d;if(c){c.children=
[];for(var m=j=0;m<d.length;m++){var o=d[m];if(o&&o.length>0){var n=l?o:o.toLowerCase();if(n=a.wildCard?g.searchUtils.searchOnelineRegEx(a,n):g.searchUtils.searchOnelineLiteral(a,n)){var p=m+1;if(k)for(var r=0;r<n.length;r++){var s=r+1,s={parent:c,checked:c.checked,type:"detail",matches:n,lineNumber:p,matchNumber:s,name:o,location:c.location+"-"+p+"-"+s};c.children.push(s)}else s={parent:c,context:g.searchUtils.generateMatchContext(2,d,m),checked:c.checked,type:"detail",matches:n,lineNumber:p,name:o,
location:c.location+"-"+p},c.children.push(s);j+=n.length}}}c.totalMatches=j}};g.searchUtils.replaceCheckedMatches=function(a,c,d,e,g){for(var l=0,m="",o=[],n=0;n<d.length;n++){l!==d[n].startIndex&&(m+=a.substring(l,d[n].startIndex));if(d[n].length)g=d[n].length;for(var l=!1,p=0;p<e.length;p++)if(e[p]===n){l=!0;break}l?(o.push({startIndex:m.length,length:c.length}),m+=c):(o.push({startIndex:m.length,length:g}),m+=a.substring(d[n].startIndex,d[n].startIndex+g));l=d[n].startIndex+g}l<a.length&&(m+=
a.substring(l));return{replacedStr:m,newMatches:o}};g.searchUtils.fullPathNameByMeta=function(a){var c=a.length,d="";if(c>0)for(c-=1;c>-1;c--)d=d+(d===""?"":"/")+a[c].Name;return d};g.searchUtils.path2FolderName=function(a,c,d){return a.substring(0,a.length-c.length-(d?0:1))};return g.searchUtils});
define("orion/breadcrumbs",["require","dojo","orion/util"],function(c,d,a){function e(a){this._init(a)}e.prototype={_init:function(a){var c=a.container;typeof c==="string"&&(c=d.byId(c));if(!c)throw"no parent container";this._container=c;d.removeClass(c,"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=c.toUrl("navigate/table.html")+"#"):a=document.createElement("span");d.place(document.createTextNode(this._workspaceRootSegmentName),a,"only");return a}return null},render:function(){var e=this._container,f=d.byId(this._id);f?d.empty(f):(f=document.createElement("span"),f.id=this._id,e.appendChild(f));var h;if(h=this.getNavigatorWorkspaceRootSegment())if(d.addClass(h,"breadcrumb"),f.appendChild(h),
this._resource&&this._resource.Parents)h=document.createElement("span"),d.place(document.createTextNode(" / "),h,"only"),this.path+="/",d.addClass(h,"breadcrumbSeparator"),f.appendChild(h);else{h.href="";d.removeClass(h,"breadcrumb");d.addClass(h,"currentLocation");a.forceLayout(e);return}var i=this._rootSegmentName;if(this._resource){if(this._resource.Parents)for(var j=this._resource.Parents,k=j.length;--k>=0;)h=document.createElement("a"),d.addClass(h,"breadcrumb"),i?(d.place(document.createTextNode(i),
h,"only"),i=null):d.place(document.createTextNode(j[k].Name),h,"only"),this.path+=j[k].Name,this._makeHref?this._makeHref(h,j[k].Location):h.href=c.toUrl("navigate/table.html")+"#"+j[k].ChildrenLocation,f.appendChild(h),h=document.createElement("span"),d.place(document.createTextNode(" / "),h,"only"),this.path+="/",d.addClass(h,"breadcrumbSeparator"),f.appendChild(h);h=document.createElement("span");i?(d.place(document.createTextNode(i),h,"only"),i=null):d.place(document.createTextNode(this._resource.Name),
h,"only");d.addClass(h,"currentLocation");this.path+=this._resource.Name;f.appendChild(h)}f.childNodes.length===0&&(h=document.createElement("a"),d.place(document.createTextNode(i||document.title),h,"only"),d.addClass(h,"breadcrumb"),d.addClass(h,"currentLocation"),f.appendChild(h));a.forceLayout(e)}};e.prototype.constructor=e;return{BreadCrumbs:e}});
define("orion/favorites",["require","dojo","orion/util"],function(c,d,a){function e(a){this._favorites=[];this._init(a);this._initializeFavorites()}e.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(c){for(var c=d.isArray(c)?c:[c],e=0;e<c.length;e++){var h=
c[e],i=h.ChildrenLocation?h.ChildrenLocation:h.Location,i=a.makeRelative(i);this.addFavorite(h.Name,i,h.Directory)}this._storeFavorites();this._notifyListeners()},addFavoriteUrl:function(a){this.addFavorite(a,a,!1,!0)},addFavorite:function(a,c,d){this._favorites.push({name:a,path:c,directory:d,isFavorite:!0});this._favorites.sort(this._sorter);this._storeFavorites();this._notifyListeners()},removeFavorite:function(a){for(var c in this._favorites)if(this._favorites[c].path===a){this._favorites.splice(c,
1);break}this._favorites.sort(this._sorter);this._storeFavorites();this._notifyListeners()},renameFavorite:function(a,c){var d=!1,e;for(e in this._favorites)if(this._favorites[e].path===a){var j=this._favorites[e];if(j.name!==c)j.name=c,d=!0}d&&(this._favorites.sort(this._sorter),this._storeFavorites(),this._notifyListeners())},hasFavorite:function(a){for(var c in this._favorites)if(this._favorites[c].path===a)return!0;return!1},_SPECIAL_CHARS:"^$\\+[]().",queryFavorites:function(a){var c;if(!a)return this._favorites;
var d="";for(c=0;c<a.length;c++){var e=a.charAt(c);d+=e==="*"?".*":e==="?"?".?":this._SPECIAL_CHARS.indexOf(e)>=0?"\\"+e:e}d+=".*";a=RegExp(d);d=[];for(c in this._favorites)this._favorites[c].name.search(a)===0&&d.push(this._favorites[c]);return d},_initializeFavorites:function(){var a=this;this._registry.getService("orion.core.preference").getPreferences("/window/favorites").then(function(c){var d,c=c.get("navigate");typeof c==="string"&&(c=JSON.parse(c));if(c)for(d in c)c[d].isFavorite=!0,a._favorites.push(c[d]);
a._favorites.sort(a._sorter);a._notifyListeners()})},_storeFavorites:function(){var a=this._favorites;this._registry.getService("orion.core.preference").getPreferences("/window/favorites").then(function(c){c.put("navigate",a)})},_sorter:function(a,c){var d=a.name.toLowerCase(),e=c.name.toLowerCase();return d>e?1:d<e?-1:0},getFavorites:function(){return{navigator:this._favorites}}};e.prototype.constructor=e;return{FavoritesService:e}});
define("orion/git/util",["i18n!git/nls/gitmessages","dojo","dijit","dojo/hash","dijit/form/ValidationTextBox"],function(){function c(a){for(var c=0;c<e.length;c++)if(a.type===e[c])return!0;return!1}function d(c){for(var d=0;d<a.length;d++)if(c.type===a[d])return!0;return!1}var a=["Missing","Modified","Untracked","Conflicting"],e=["Added","Changed","Removed"];return{statusUILocation:"git/git-status2.html",isStaged:c,isUnstaged:d,isChange:function(a){return c(a)||d(a)},hasStagedChanges:function(a){for(var c=
0;c<e.length;c++)if(a[e[c]].length>0)return!0;return!1},hasUnstagedChanges:function(c){for(var d=0;d<a.length;d++)if(c[a[d]].length>0)return!0;return!1}}});
define("dijit/layout/BorderContainer",["dojo","dijit","dijit/layout/_LayoutWidget","dojo/cookie","dijit/_Templated"],function(c,d){c.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||(c.forEach(this.getChildren(),this._setupChild,
this),this.inherited(arguments))},_setupChild:function(a){var d=a.region;if(d){this.inherited(arguments);c.addClass(a.domNode,this.baseClass+"Pane");var g=this.isLeftToRight();d=="leading"&&(d=g?"left":"right");d=="trailing"&&(d=g?"right":"left");if(d!="center"&&(a.splitter||this.gutters)&&!a._splitterWidget)g=new (c.getObject(a.splitter?this._splitterClass:"dijit.layout._Gutter"))({id:a.id+"_splitter",container:this,child:a,region:d,live:this.liveSplitters}),g.isSplitter=!0,a._splitterWidget=g,c.place(g.domNode,
a.domNode,"after"),g.startup();a.region=d}},layout:function(){this._layoutChildren()},addChild:function(a,c){this.inherited(arguments);this._started&&this.layout()},removeChild:function(a){var d=a.region,g=a._splitterWidget;g&&(g.destroy(),delete a._splitterWidget);this.inherited(arguments);this._started&&this._layoutChildren();c.removeClass(a.domNode,this.baseClass+"Pane");c.style(a.domNode,{top:"auto",bottom:"auto",left:"auto",right:"auto",position:"static"});c.style(a.domNode,d=="top"||d=="bottom"?
"width":"height","auto")},getChildren:function(){return c.filter(this.inherited(arguments),function(a){return!a.isSplitter})},getSplitter:function(a){return c.filter(this.getChildren(),function(c){return c.region==a})[0]._splitterWidget},resize:function(a,d){if(!this.cs||!this.pe){var g=this.domNode;this.cs=c.getComputedStyle(g);this.pe=c._getPadExtents(g,this.cs);this.pe.r=c._toPixelValue(g,this.cs.paddingRight);this.pe.b=c._toPixelValue(g,this.cs.paddingBottom);c.style(g,"padding","0px")}this.inherited(arguments)},
_layoutChildren:function(a,e){if(this._borderBox&&this._borderBox.h){var g=c.map(this.getChildren(),function(a,c){return{pane:a,weight:[a.region=="center"?Infinity:0,a.layoutPriority,(this.design=="sidebar"?1:-1)*(/top|bottom/.test(a.region)?1:-1),c]}},this);g.sort(function(a,c){for(var d=a.weight,e=c.weight,f=0;f<d.length;f++)if(d[f]!=e[f])return d[f]-e[f];return 0});var f=[];c.forEach(g,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,e)}},destroyRecursive:function(){c.forEach(this.getChildren(),function(a){var c=a._splitterWidget;c&&c.destroy();delete a._splitterWidget});this.inherited(arguments)}});c.extend(d._Widget,{region:"",layoutPriority:0,splitter:!1,minSize:0,maxSize:Infinity});c.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);c.addClass(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V"));if(this.container.persist){var a=c.cookie(this._cookieName);a&&(this.child.domNode.style[this.horizontal?"height":"width"]=a)}},_computeMaxSize:function(){var a=this.horizontal?"h":
"w",d=c.marginBox(this.child.domNode)[a],g=c.filter(this.container.getChildren(),function(a){return a.region=="center"})[0],a=c.marginBox(g.domNode)[a];return Math.min(this.child.maxSize,d+a)},_startDrag:function(a){if(!this.cover)this.cover=c.doc.createElement("div"),c.addClass(this.cover,"dijitSplitterCover"),c.place(this.cover,this.child.domNode,"after");c.addClass(this.cover,"dijitSplitterCoverActive");this.fake&&c.destroy(this.fake);if(!(this._resize=this.live))(this.fake=this.domNode.cloneNode(!0)).removeAttribute("id"),
c.addClass(this.domNode,"dijitSplitterShadow"),c.place(this.fake,this.domNode,"after");c.addClass(this.domNode,"dijitSplitterActive dijitSplitter"+(this.horizontal?"H":"V")+"Active");this.fake&&c.removeClass(this.fake,"dijitSplitterHover dijitSplitter"+(this.horizontal?"H":"V")+"Hover");var d=this._factor,g=this.horizontal,f=g?"pageY":"pageX",h=a[f],i=this.domNode.style,j=c.marginBox(this.child.domNode)[g?"h":"w"],k=this._computeMaxSize(),l=this.child.minSize||20,g=this.region,m=g=="top"||g=="bottom"?
"top":"left",o=parseInt(i[m],10),n=this._resize,p=c.hitch(this.container,"_layoutChildren",this.child.id),g=c.doc;this._handlers=(this._handlers||[]).concat([c.connect(g,"onmousemove",this._drag=function(a,c){var g=a[f]-h,t=d*g+j,u=Math.max(Math.min(t,k),l);(n||c)&&p(u);i[m]=g+o+d*(u-t)+"px"}),c.connect(g,"ondragstart",c.stopEvent),c.connect(c.body(),"onselectstart",c.stopEvent),c.connect(g,"onmouseup",this,"_stopDrag")]);c.stopEvent(a)},_onMouse:function(a){a=a.type=="mouseover"||a.type=="mouseenter";
c.toggleClass(this.domNode,"dijitSplitterHover",a);c.toggleClass(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V")+"Hover",a)},_stopDrag:function(a){try{this.cover&&c.removeClass(this.cover,"dijitSplitterCoverActive"),this.fake&&c.destroy(this.fake),c.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&&c.cookie(this._cookieName,
this.child.domNode.style[this.horizontal?"height":"width"],{expires:365})},_cleanupHandlers:function(){c.forEach(this._handlers,c.disconnect);delete this._handlers},_onKeyPress:function(a){this._resize=!0;var d=this.horizontal,g=1,f=c.keys;switch(a.charOrCode){case d?f.UP_ARROW:f.LEFT_ARROW:g*=-1;case d?f.DOWN_ARROW:f.RIGHT_ARROW:break;default:return}d=c._getMarginSize(this.child.domNode)[d?"h":"w"]+this._factor*g;this.container._layoutChildren(this.child.id,Math.max(Math.min(d,this._computeMaxSize()),
this.child.minSize));c.stopEvent(a)},destroy:function(){this._cleanupHandlers();delete this.child;delete this.container;delete this.cover;delete this.fake;this.inherited(arguments)}});c.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);c.addClass(this.domNode,"dijitGutter"+
(this.horizontal?"H":"V"))}});return d.layout.BorderContainer});
define("dojo/html",["dojo","dojo/parser"],function(c){c.getObject("html",!0,c);(function(){var d=0;c.html._secureForInnerHtml=function(a){return a.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"")};c.html._emptyNode=c.empty;c.html._setNodeContent=function(a,d){c.empty(a);if(d)if(typeof d=="string"&&(d=c._toDom(d,a.ownerDocument)),!d.nodeType&&c.isArrayLike(d))for(var g=d.length,f=0;f<d.length;f=g==d.length?f+1:0)c.place(d[f],a,"last");else c.place(d,a,"last");return a};c.declare("dojo.html._ContentSetter",
null,{node:"",content:"",id:"",cleanContent:!1,extractContent:!1,parseContent:!1,parserScope:c._scopeName,startup:!0,constructor:function(a,e){c.mixin(this,a||{});e=this.node=c.byId(this.node||e);if(!this.id)this.id=["Setter",e?e.id||e.tagName:"",d++].join("_")},set:function(a,c){if(void 0!==a)this.content=a;c&&this._mixin(c);this.onBegin();this.setContent();this.onEnd();return this.node},setContent:function(){var a=this.node;if(!a)throw Error(this.declaredClass+": setContent given no node");try{a=
c.html._setNodeContent(a,this.content)}catch(d){var g=this.onContentError(d);try{a.innerHTML=g}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&&(c.forEach(this.parseResults,function(a){a.destroy&&a.destroy()}),delete this.parseResults);c.html._emptyNode(this.node)},onBegin:function(){var a=this.content;if(c.isString(a)&&(this.cleanContent&&(a=c.html._secureForInnerHtml(a)),
this.extractContent)){var d=a.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);d&&(a=d[1])}this.empty();this.content=a;return this.node},onEnd:function(){this.parseContent&&this._parse();return this.node},tearDown:function(){delete this.parseResults;delete this.node;delete this.content},onContentError:function(a){return"Error occured setting content: "+a},_mixin:function(a){var c={},d;for(d in a)d in c||(this[d]=a[d])},_parse:function(){var a=this.node;try{var d={};c.forEach(["dir","lang","textDir"],
function(a){this[a]&&(d[a]=this[a])},this);this.parseResults=c.parser.parse({rootNode:a,noStart:!this.startup,inherited:d,scope:this.parserScope})}catch(g){this._onError("Content",g,"Error parsing in _ContentSetter#"+this.id)}},_onError:function(a,d,g){a=this["on"+a+"Error"].call(this,d);g?console.error(g,d):a&&c.html._setNodeContent(this.node,a,!0)}});c.html.set=function(a,d,g){void 0==d&&(console.warn("dojo.html.set: no cont argument provided, using empty string"),d="");return g?(new c.html._ContentSetter(c.mixin(g,
{content:d,node:a}))).set():c.html._setNodeContent(a,d,!0)}})();return c.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(c,d){c.declare("dijit.layout.ContentPane",[d._Widget,d.layout._ContentPaneResizeMixin],{href:"",extractContent:!1,parseOnLoad:!0,parserScope:c._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:c.delegate(d._Widget.prototype.attributeMap,{title:[]}),stopParser:!0,template:!1,create:function(a,d){if((!a||!a.template)&&d&&!("href"in a)&&!("content"in a)){for(var g=c.doc.createDocumentFragment(),d=c.byId(d);d.firstChild;)g.appendChild(d.firstChild);a=c.delegate(a,{content:g})}this.inherited(arguments,[a,d])},postMixInProperties:function(){this.inherited(arguments);var a=c.i18n.getLocalization("dijit","loading",
this.lang);this.loadingMessage=c.string.substitute(this.loadingMessage,a);this.errorMessage=c.string.substitute(this.errorMessage,a)},buildRendering:function(){this.inherited(arguments);if(!this.containerNode)this.containerNode=this.domNode;this.domNode.title="";c.attr(this.domNode,"role")||d.setWaiRole(this.domNode,"group")},_startChildren:function(){this.inherited(arguments);this._contentSetter&&c.forEach(this._contentSetter.parseResults,function(a){if(!a._started&&!a._destroyed&&c.isFunction(a.startup))a.startup(),
a._started=!0},this)},setHref:function(a){c.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 c.Deferred(c.hitch(this,"cancel"));this.onLoadDeferred.addCallback(c.hitch(this,"onLoad"));this._set("href",a);this.preload||this._created&&this._isShown()?this._load():this._hrefChanged=!0;return this.onLoadDeferred},setContent:function(a){c.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 c.Deferred(c.hitch(this,"cancel"));this._created&&this.onLoadDeferred.addCallback(c.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 c.Deferred(c.hitch(this,"cancel"));this.onLoadDeferred.addCallback(c.hitch(this,"onLoad"));this._load();return this.onLoadDeferred},_load:function(){this._setContent(this.onDownloadStart(),
!0);var a=this,d={preventCache:this.preventCache||this.refreshOnShow,url:this.href,handleAs:"text"};c.isObject(this.ioArgs)&&c.mixin(d,this.ioArgs);var g=this._xhrDfd=(this.ioMethod||c.xhrGet)(d);g.addCallback(function(c){try{a._isDownloaded=!0,a._setContent(c,!1),a.onDownloadEnd()}catch(d){a._onError("Content",d)}delete a._xhrDfd;return c});g.addErrback(function(c){g.canceled||a._onError("Download",c);delete a._xhrDfd;return c});delete this._hrefChanged},_onLoadHandler:function(a){this._set("isLoaded",
!0);try{this.onLoadDeferred.callback(a)}catch(c){console.error("Error "+this.widgetId+" running custom onLoad code: "+c.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;c.forEach(this.getChildren(),function(a){a.destroyRecursive&&a.destroyRecursive()});a&&(c.forEach(a.parseResults,
function(a){a.destroyRecursive&&a.domNode&&a.domNode.parentNode==c.body()&&a.destroyRecursive()}),delete a.parseResults);c.html._emptyNode(this.containerNode);delete this._singleChild},_setContent:function(a,d){this.destroyDescendants();var g=this._contentSetter;if(!(g&&g instanceof c.html._ContentSetter))g=this._contentSetter=new c.html._ContentSetter({node:this.containerNode,_onError:c.hitch(this,this._onError),onContentError:c.hitch(this,function(a){a=this.onContentError(a);try{this.containerNode.innerHTML=
a}catch(c){console.error("Fatal "+this.id+" could not change content due to "+c.message,c)}})});var f=c.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad,parserScope:this.parserScope,startup:!1,dir:this.dir,lang:this.lang},this._contentSetterParams||{});g.set(c.isObject(a)&&a.domNode?a.domNode:a,f);delete this._contentSetterParams;this.doLayout&&this._checkIfSingleChild();d||(this._started&&(this._startChildren(),this._scheduleLayout()),this._onLoadHandler(a))},
_onError:function(a,c,d){this.onLoadDeferred.errback(c);a=this["on"+a+"Error"].call(this,c);d?console.error(d,c):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(c,d){c.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:c.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,d,g){a="dijitTooltipAB"+(g.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(g.charAt(0)=="T"?"Below":"Above");c.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 e=a.target,g=c.keys;a.charOrCode===g.TAB&&this._getFocusItems(this.containerNode);var f=this._firstFocusItem==this._lastFocusItem;a.charOrCode==g.ESCAPE?(setTimeout(c.hitch(this,"onCancel"),0),c.stopEvent(a)):e==this._firstFocusItem&&a.shiftKey&&a.charOrCode===g.TAB?(f||d.focus(this._lastFocusItem),c.stopEvent(a)):e==this._lastFocusItem&&a.charOrCode===g.TAB&&!a.shiftKey?(f||d.focus(this._firstFocusItem),c.stopEvent(a)):a.charOrCode===g.TAB&&
a.stopPropagation()}});return d.TooltipDialog});
define("orion/widgets/OperationsDialog","i18n!orion/operations/nls/messages,require,dojo,dijit,orion/util,dijit/TooltipDialog,text!orion/widgets/templates/OperationsDialog.html".split(","),function(c,d,a,e){a.declare("orion.widgets.OperationsDialog",[e.TooltipDialog],{widgetsInTemplate:!0,closable:!0,templateString:a.cache("orion","widgets/templates/OperationsDialog.html"),constructor:function(){this.inherited(arguments);this.options=arguments[0]||{};this._operations=[];this._myOperations=[]},postCreate:function(){this.inherited(arguments);
this.allOperationsLink.href=d.toUrl("operations/list.html");this._setOperationsVisibility()},setOperations:function(a,c){this._operations=[];c=c||{};this._myOperations=[];if(a.Children)for(var d=0;d<a.Children.length;d++)c[a.Children[d].Id]?this._myOperations.push(a.Children[d]):this._operations.push(a.Children[d]);this._operations.sort(function(a,c){return parseInt(c.Modified)-parseInt(a.Modified)});this._myOperations.sort(function(a,c){return parseInt(c.Modified)-parseInt(a.Modified)});this._renderOperations()},
parseProgressResult:function(a){if(!a)return{};a=a.responseText||a;try{a=JSON.parse(a)}catch(c){}var d={Message:a.Message||a,Severity:a.Severity};if(a.DetailedMessage&&a.DetailedMessage!==d.Message)d.DetailedMessage=a.DetailedMessage;return d},_renderOperations:function(){this._renderOperationsTable(this.myOperationsList,this._myOperations);this._renderOperationsTable(this.operationsList,this._operations)},_renderOperationsTable:function(d,e){a.empty(d);for(var h=0;h<e.length;h++){var i=e[h],j=a.create("tr"),
k=a.create("td",{style:"padding-left: 5px; padding-right: 5px",innerHTML:i.Name},j),k=a.create("div",null,k,"only"),l=a.create("span",{innerHTML:i.Name,className:"primaryColumn"},k,"last");a.place(document.createTextNode(i.Name),l,"only");var m=a.create("span",null,k,"first");a.addClass(m,"imageSprite");l=this.parseProgressResult(i.Result);switch(l.Severity){case "Warning":a.addClass(m,"core-sprite-warning");a.attr(m,"aria-label",c["Operation resulted in a warning."]);break;case "Error":a.addClass(m,
"core-sprite-error");a.attr(m,"aria-label",c["Operation resulted in an error."]);break;default:i.Running===!0?(a.addClass(m,"core-sprite-start"),a.attr(m,"aria-label",c["Operation is running."])):i.Canceled===!0?(a.addClass(m,"core-sprite-stop"),a.attr(m,"aria-label",c["Operation is canceled."])):i.Failed===!0?(a.addClass(m,"core-sprite-error"),a.attr(m,"aria-label",c["Operation failed."])):(a.addClass(m,"core-sprite-ok"),a.attr(m,"aria-label","Operation ok."))}if(l.Message||i.Message)i=l.Message||
i.Message,l.DetailedMessage&&l.DetailedMessage!==""&&(i+=": "+l.DetailedMessage),a.create("br",null,k,"last"),a.create("span",{className:"secondaryColumn",style:"margin-left: 18px;",innerHTML:i},k,"last");a.place(j,d,"last")}this._setOperationsVisibility()},_setOperationsVisibility:function(){this.operationsList.style.display=this._operations.length>0?"":"none";this.otherOperations.style.display=this._operations.length>0?"":"none";this.myOperationsList.style.display=this._myOperations.length>0?"":
"none";this.myOperationsListEmpty.style.display=this._myOperations.length>0?"none":"";this.operationsDontExist.style.display=this._operations.length+this._myOperations.length>0?"none":"";this.operationsExist.style.display=this._operations.length+this._myOperations.length>0?"":"none"},_onBlur:function(){this.inherited(arguments);e.popup.hide&&e.popup.hide(this);e.popup.close(this)}})});
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(c,d,a,e,g,f,h){function i(c,d,e){var f=function(){e&&a.addClass(this,e)},g=function(){e&&a.removeClass(this,e)};a.connect(c,"onmouseover",c,f);a.connect(d,"onfocus",c,f);a.connect(c,"onmouseout",c,g);a.connect(d,"onblur",c,g)}function j(a,
c,d,e,f){this.commandService=a;this.handler=c;this.items=d;this.userData=e;this.command=f;if(f.parameters)this.parameters=f.parameters.makeCopy();this.id=f.id}function k(a){this._commandList={};this._contributionsByScopeId={};this._activeBindings={};this._urlBindings={};this._init(a);this._parameterCollector=null;this.showMenuIcons=!1}function l(c,d,e){a.addClass(d,"commandImage");var f;c.imageClass?(f=a.create("span",{},d,"last"),a.addClass(f,c.spriteClass),a.addClass(f,c.imageClass)):(f=new Image,
f.alt=c.name,f.name=e,f.id=e,f.src=c.image,a.place(f,d,"last"));return f}function m(a){this._init(a)}function o(c,d,e,f,g,h,i){this.keyCode=typeof c==="string"?c.toUpperCase().charCodeAt(0):c;this.mod1=d!==void 0&&d!==null?d:!1;this.mod2=e!==void 0&&e!==null?e:!1;this.mod3=f!==void 0&&f!==null?f:!1;this.mod4=g!==void 0&&g!==null?g:!1;typeof h==="string"?(this.domScope=a.byId(h),this.scopeName=i||h):(this.domScope=h,this.scopeName=i||h?h.id:null)}function n(a,c){this.token=a;this.parameterName=c}function p(a,
c,d,e,f){this.name=a;this.type=c;this.label=d;this.value=e;this.lines=f||1}function r(a,c,d){this._storeParameters(a);this._hasOptionalParameters=c&&c.hasOptionalParameters;this._clientCollect=c&&c.clientCollect;this._options=c;this.optionsRequested=!1;this.getParameters=d}j.prototype={collectsParameters:function(){return this.commandService&&this.commandService.collectsParameters()},makeCopy:function(){var a=new j(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}};j.prototype.constructor=j;var s=a.declare(e.MenuItem,{constructor:function(){var c=arguments[0]||{};c.onKeyDown=a.hitch(this,function(c){if((c.keyCode===a.keys.ENTER||c.keyCode===a.keys.SPACE)&&this._anchorLocation)c.ctrlKey?window.open(this._anchorLocation):window.location=this._anchorLocation});this.inherited(arguments||[c])},postCreate:function(){var c=a.query("a",this.domNode)[0];if(c)a.addClass(c,
"commandMenuItemAnchor"),this._anchorLocation=c.href},setLink:function(a,c){this.set("label","<a class='commandMenuItemAnchor' href='"+a+"'>"+c+"</a>");this._anchorLocation=a},_onClick:function(a){this.hasLink||this.inherited(arguments)}}),q=a.declare(e.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(c){this.inherited(arguments);
this.polling=!0;this.pollForMissingTarget();window.setTimeout(function(){e._masterTT&&a.removeAttr(e._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&&e.byId(this.options.commandParent.id)&&a.connect(this.options.commandParent,"onClose",a.hitch(this,function(){this.close()}))}});k.prototype={_init:function(c){this._registry=c.serviceRegistry;this._serviceRegistration=this._registry.registerService("orion.page.command",this);this._defaultSelectionService=c.selection;a.connect(window.document,"onkeydown",a.hitch(this,function(a){a=a||window.event;if(a.target.contentEditable!=="true"){var c=a.target.nodeName.toLowerCase();
if(c==="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(c==="textarea")return;this._processKey(a)}}))},_processKey:function(c){function d(a){window.document.all?a.keyCode=0:(a.preventDefault(),a.stopPropagation())}for(var e in this._activeBindings)if(this._activeBindings[e]&&this._activeBindings[e].keyBinding&&
this._activeBindings[e].command&&this._activeBindings[e].keyBinding.match(c)){var f=this._activeBindings[e],g=f.invocation;if(g)if(f=f.command,f.hrefCallback){d(c);c=f.hrefCallback.call(g.handler||window,g);c.then?c.then(function(a){window.open(a)}):window.open(c);break}else if(f.callback){d(c);window.setTimeout(a.hitch(this,function(){this._invoke(g)}),0);break}}},processURL:function(c){for(var d in this._urlBindings)if(this._urlBindings[d]&&this._urlBindings[d].urlBinding&&this._urlBindings[d].command){var e=
this._urlBindings[d].urlBinding.match(c);if(e){var f=this._urlBindings[d],g=f.command,h=f.invocation;if(h&&h.parameters&&g.callback){h.parameters.setValue(e.parameterName,e.parameterValue);window.setTimeout(a.hitch(this,function(){this._invoke(h)}),0);break}}}},findCommand:function(a){return this._commandList[a]},runCommand:function(c,d,e){if(d){var f=this._commandList[c];(f.visibleWhen?f.visibleWhen(d):1)&&f.callback&&window.setTimeout(a.hitch(this,function(){this._invoke(new j(this,e,d,null,f))}),
0)}else{var g=this._urlBindings[c];g&&g.command&&g.command.callback&&window.setTimeout(a.hitch(this,function(){this._invoke(g.invocation)}),0)}},getSelectionService:function(){return this._defaultSelectionService},setParameterCollector:function(a){this._parameterCollector=a},openParameterCollector:function(a,c,d){this._parameterCollector&&(this._parameterCollector.close(),this._parameterCollector.open(a,c,d))},closeParameterCollector:function(){this._parameterCollector&&this._parameterCollector.close()},
collectsParameters:function(){return this._parameterCollector},_invoke:function(a){return this._collectAndInvoke(a.makeCopy(),!1)},_collectAndInvoke:function(c,d){if(c)if(this._parameterCollector&&c.parameters&&c.parameters.hasParameters()&&(d||c.parameters.shouldCollectParameters())){var f=!1;c.parameters.updateParameters(c);f=this._parameterCollector.collectParameters(c);if(!f){var g=new e.TooltipDialog({onBlur:function(){e.popup.close(g)}}),h=a.create("div"),i=window.document.activeElement,j=this._parameterCollector.getFillFunction(c,
function(){e.popup.close(g);g.destroyRecursive();i&&i.focus()})(h);g.set("content",h);h=(h=e.byId(c.domParent.id))?a.position(h.eclipseScopeId,!0):a.position(c.domNode,!0);h.x&&h.y&&h.w&&(e.popup.open({popup:g,x:h.x+h.w-8,y:h.y+8}),window.setTimeout(function(){j.focus();j.select()},0),f=!0)}if(!f)c.parameters=null,c.command.callback.call(c.handler||window,c)}else c.command.callback.call(c.handler||window,c);else window.console.log("Client attempted to invoke command without an available (rendered) command invocation")},
collectParameters:function(a){this._collectAndInvoke(a,!0)},showKeyBindings:function(c){var d={},e,f,h;for(h in this._activeBindings)if((f=this._activeBindings[h])&&f.keyBinding&&f.command)f.keyBinding.scopeName?(d[f.keyBinding.scopeName]||(d[f.keyBinding.scopeName]=[]),d[f.keyBinding.scopeName].push(f)):(e=g.getUserKeyString(f.keyBinding),a.place("<span role='listitem'>"+e+" = "+f.command.name+"<br></span>",c,"last"));for(var i in d)if(d[i].length&&d[i].length>0){a.place("<h2>"+i+"</h2>",c,"last");
for(h=0;h<d[i].length;h++)f=d[i][h],e=g.getUserKeyString(f.keyBinding),a.place("<span role='listitem'>"+e+" = "+f.command.name+"<br></span>",c,"last")}},addCommand:function(a){this._commandList[a.id]=a},addCommandGroup:function(a,c,d,e,f,g){this._contributionsByScopeId[a]||(this._contributionsByScopeId[a]={});a=this._contributionsByScopeId[a];f&&(a=this._createEntryForPath(a,f));if(a[c]){if(e)a[c].title=e;if(d)a[c].position=d;a[c].emptyGroupMessage=g}else a[c]={title:e,position:d,emptyGroupMessage:g,
children:{}},a.sortedContributions=null},_createEntryForPath:function(a,c){if(c)for(var d=c.split("/"),e=0;e<d.length;e++)if(d[e].length>1)a[d[e]]||(a[d[e]]={position:0,children:{}}),a=a[d[e]].children;return a},registerSelectionService:function(a,c){this._contributionsByScopeId[a]||(this._contributionsByScopeId[a]={});this._contributionsByScopeId[a].localSelectionService=c},registerCommandContribution:function(a,c,d,e,f,g,h){this._contributionsByScopeId[a]||(this._contributionsByScopeId[a]={});a=
this._contributionsByScopeId[a];e&&(a=this._createEntryForPath(a,e));a[c]={position:d};g&&(d=this._commandList[c])&&(this._activeBindings[c]={command:d,keyBinding:g,bindingOnly:f});h&&(d=this._commandList[c])&&(this._urlBindings[c]={command:d,urlBinding:h,bindingOnly:f});a.sortedContributions=null},_isLastChildSeparator:function(c,d){if(d==="tool"||d==="button")return c.childNodes.length>0&&a.hasClass(c.childNodes[c.childNodes.length-1],"commandSeparator");if(d==="menu"){var f=c.getChildren();return f.length>
0&&f[f.length-1]instanceof e.MenuSeparator}return!1},renderCommands:function(c,d,e,f,h,i,j){if(typeof c!=="string")throw"a scope id for rendering must be specified";typeof d==="string"&&(d=a.byId(d));if(!d)throw"no parent";var l=this._contributionsByScopeId[c];if(!e&&l){var e=l.localSelectionService||this._defaultSelectionService,k=this;e&&e.getSelections(function(a){k.renderCommands(c,d,a,f,h,i)})}else l&&(this._render(this._contributionsByScopeId[c],d,e,f,h,i,j),h==="tool"||h==="button"?this._isLastChildSeparator(d,
h)&&d.removeChild(d.childNodes[d.childNodes.length-1]):h==="menu"&&this._isLastChildSeparator(d,h)&&(e=d.getChildren()[d.getChildren().length-1],d.removeChild(e),e.destroy()),g.forceLayout(d))},destroy:function(c){typeof c==="string"&&(c=a.byId(c));if(!c)throw"no parent";var d=e.findWidgets(c);a.forEach(d,function(a){a.destroyRecursive()});a.empty(c)},_render:function(d,f,g,l,k,m,o){var r=d.sortedContributions;if(!r){var r=[],q=!1,n;for(n in d)if(!d.hasOwnProperty||d.hasOwnProperty(n)){var t=d[n];
if(t&&typeof t.position==="number")t.id=n,r.push(t),q=!0}if(q)r.sort(function(a,c){return a.position-c.position}),d.sortedContributions=r}for(d=0;d<r.length;d++){var s,p;if(r[d].children&&Object.getOwnPropertyNames(r[d].children).length>0){n=r[d];var L,q=r[d].children,E=this;if(k==="tool"||k==="button")if(n.title){var F=new e.Menu({style:"display: none;"});s=new e.form.DropDownButton({label:n.title==="*"?c.Actions:n.title,showLabel:n.title!=="*",style:"visibility: hidden;",dropDown:F});a.addClass(s.domNode,
"commandMenu");o&&h.generateNavGrid(o,s.domNode,s);t=f;f.nodeName.toLowerCase()==="ul"?t=a.create("li",{},f):a.addClass(s.domNode,"commandMargins");a.removeAttr(s.titleNode,"title");a.destroy(s.valueNode);i(s.domNode,s.focusNode);a.place(s.domNode,t,"last");F.eclipseScopeId=f.eclipseScopeId||f.id;window.setTimeout(a.hitch({contributions:q,emptyGroupMessage:n.emptyGroupMessage},function(){if(!F._destroyed){E._render(this.contributions,F,g,l,"menu",m,o);L=F.getChildren();if(E._isLastChildSeparator(F,
"menu")){var c=L[L.length-1];F.removeChild(c);c.destroy();L=F.getChildren()}L.length===0?this.emptyGroupMessage?(a.connect(s.focusNode,"onclick",this,function(){var a=new e.TooltipDialog({content:"<p>"+this.emptyGroupMessage+"</p>",onMouseLeave:function(){e.popup.close(a);a.destroyRecursive()}});e.popup.open({popup:a,around:s.domNode});window.setTimeout(function(){e.popup.close(a);a.destroyRecursive()},15E3)}),a.style(s.domNode,"visibility","visible")):(o&&h.removeNavGrid(o,s.domNode),s.destroyRecursive()):
a.style(s.domNode,"visibility","visible")}}),0)}else{var M;f.childNodes.length>0&&!this._isLastChildSeparator(f,k)&&(M=this.generateSeparatorImage(f));E._render(q,f,g,l,k,m,o);f.childNodes.length>0&&f.childNodes[f.childNodes.length-1]!==M&&(M=this.generateSeparatorImage(f))}else if(n.title)t=new e.Menu,n=new e.PopupMenuItem({label:n.title,popup:t}),f.addChild(n),E._render(q,t,g,l,k,m,o),t.getChildren().length===0&&(n.set("label","removeme"),f.removeChild(n),n.destroyRecursive());else{var G;f.getChildren().length>
0&&!this._isLastChildSeparator(f,k)&&(G=new e.MenuSeparator,f.addChild(G));E._render(q,f,g,l,k,m,o);q=f.getChildren();q[q.length-1]!==G&&(G=new e.MenuSeparator,f.addChild(G))}}else{n=(q=this._commandList[r[d].id])?!0:!1;var N=null,N=null;if(q){p=new j(this,l,g,m,q);p.domParent=f;t=n&&(q.visibleWhen?q.visibleWhen(g):!0);if(this._activeBindings[q.id]&&this._activeBindings[q.id].keyBinding)N=this._activeBindings[q.id],N.invocation=t?p:null,N.bindingOnly&&(n=!1);if(this._urlBindings[q.id]&&this._urlBindings[q.id].urlBinding)N=
this._urlBindings[q.id],N.invocation=t?p:null,N.bindingOnly&&(n=!1);n=n&&t}if(n)if(q.choiceCallback)if(n=new e.Menu({style:"display: none;"}),k==="tool"||k==="button"){s=new e.form.DropDownButton({label:q.name,dropDown:n});a.addClass(s.domNode,"commandMenu");a.removeAttr(s.titleNode,"title");a.destroy(s.valueNode);if(q.image)a.addClass(s.iconNode,"commandImage"),s.iconNode.src=q.image;a.place(s.domNode,f,"last");s.eclipseCommand=q;s.eclipseChoices=n;a.connect(s,"onClick",s,function(){this.eclipseCommand.populateChoicesMenu(this.eclipseChoices,
g,l,m)})}else{if(k==="menu")t=new e.PopupMenuItem({label:q.name,popup:n}),f.addChild(t),t.eclipseCommand=q,t.eclipseChoices=n,a.connect(f,"_openPopup",t,function(){this.eclipseCommand.populateChoicesMenu(this.eclipseChoices,g,l,m)})}else k==="tool"?(n="tool"+q.id+d,q._addTool(f,n,p,o)):k==="button"?(n="button"+q.id+d,q._addButton(f,n,p,o)):k==="menu"&&q._addMenuItem(f,p,o)}}},generateSeparatorImage:function(c){c=c.nodeName.toLowerCase()==="ul"?a.create("li",null,c,"last"):a.create("span",null,c,"last");
a.addClass(c,"core-sprite-sep");a.addClass(c,"imageSprite");a.addClass(c,"commandSeparator");return c}};k.prototype.constructor=k;m.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(c,d,e,f){e.handler=e.handler||this;var g,j;if(this.hrefCallback){if(g=this._makeLink(e),!g)return}else g=a.create("span",{tabindex:f?"-1":"0",role:"button"}),this.hasImage()?(j=l(this,g,d),this._addAccessibleLabel(g)):(d=window.document.createTextNode(this.name),a.place(d,g,"last"),a.addClass(g,"commandMissingImageButton commandButton")),this._hookCallback(g,e),i(g,g,j?"commandImageOver":"commandButtonOver");e.domNode=g;e.domParent=c;this.tooltip&&
new q({connectId:[g],label:this.tooltip,position:["above","left","right","below"],commandParent:c,commandService:e.commandService});c.nodeName.toLowerCase()==="ul"?c=a.create("li",{},c):a.addClass(g,"commandMargins");a.place(g,c,"last");h.generateNavGrid(f,e.domNode)},_addButton:function(c,d,e,f){e.handler=e.handler||this;var g;if(this.hrefCallback){if(g=this._makeLink(e),!g)return}else{g=a.create("span",{tabindex:"0",role:"button"});this._hookCallback(g,e);var j;this.name?(a.place(window.document.createTextNode(this.name),
g,"last"),a.addClass(g,"commandButton"),j="commandButtonOver"):(l(this,g,d),j="commandImageOver",this._addAccessibleLabel(g));i(g,g,j)}g.id=d;this.tooltip&&new q({connectId:[g],label:this.tooltip,position:["above","left","right","below"],commandParent:c,commandService:e.commandService});e.domParent=c;e.domNode=g;c.nodeName.toLowerCase()==="ul"?c=a.create("li",{},c):a.addClass(g,"commandMargins");a.place(g,c,"last");h.generateNavGrid(f,e.domNode)},_addMenuItem:function(c,d,e){var f=d.commandService.showMenuIcons;
d.domParent=c.domNode;var g=new s({labelType:this.hrefCallback?"html":"text",label:this.name,iconClass:f?this.imageClass:null,hasLink:!!this.hrefCallback});this.tooltip&&new q({connectId:[g.domNode],label:this.tooltip,commandParent:c,commandService:d.commandService});if(this.hrefCallback){var i=this.hrefCallback.call(d.handler,d);if(i)if(i.then)i.then(a.hitch(this,function(a){g.setLink(a,this.name)}));else if(i)g.setLink(i,this.name);else return}else if(this.callback)g.onClick=a.hitch(this,function(){d.commandService._invoke(d)});
g.eclipseCommand=this;c.addChild(g);if(f)if(this.imageClass)a.addClass(g.iconNode,this.spriteClass);else if(this.image)a.addClass(g.iconNode,"commandMenuItem"),g.iconNode.src=this.image;d.domNode=g.domNode;h.generateNavGrid(e,d.domNode)},_makeLink:function(c){var d=a.create("a",{tabindex:"0"});a.addClass(d,"commandLink");a.place(window.document.createTextNode(this.name),d,"last");c=this.hrefCallback.call(c.handler,c);if(c.then)c.then(function(a){d.href=a});else if(c)d.href=c;else return null;return d},
_hookCallback:function(c,d){a.connect(c,"onclick",this,function(){d.commandService._invoke(d)});a.connect(c,"onkeypress",this,function(c){(c.keyCode===a.keys.ENTER||c.charCode===a.keys.SPACE)&&d.commandService._invoke(d)})},_addAccessibleLabel:function(c){var d=this.name||this.tooltip;d&&a.attr(c,"aria-label",d)},populateChoicesMenu:function(c,d,f,g){c.focusedChild=null;a.forEach(c.getChildren(),function(a){c.removeChild(a);a.destroy()});for(var f=this.getChoices(d,f,g),g=this.showMenuIcons,h=0;h<
f.length;h++){var i=f[h],j;if(i.name){if(j=new e.MenuItem({label:i.name,iconClass:g?i.imageClass:null,onClick:this.makeChoiceCallback(i,d)}),g)if(i.imageClass)a.addClass(j.iconNode,i.spriteClass||"commandSprite");else if(i.image)a.addClass(j.iconNode,"commandImage"),j.iconNode.src=i.image}else j=new e.MenuSeparator;c.addChild(j)}},getChoices:function(a,c,d){return this.choiceCallback?this.choiceCallback.call(c,a,d):null},makeChoiceCallback:function(a,c){return function(d){a.callback&&a.callback.call(a,
c,d)}},hasImage:function(){return this.imageClass||this.image!==d.toUrl("images/none.png")}};m.prototype.constructor=m;var t=window.navigator.platform.indexOf("Mac")!==-1;o.prototype={match:function(a){if(this.keyCode===a.keyCode){if(this.mod1!==(t?a.metaKey:a.ctrlKey))return!1;if(this.mod2!==a.shiftKey)return!1;if(this.mod3!==a.altKey)return!1;if(t&&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}};o.prototype.constructor=o;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;r.prototype={_storeParameters:function(a){this.parameterTable=
null;if(a){this.parameterTable={};for(var c=0;c<a.length;c++)this.parameterTable[a[c].name]=a[c]}},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,
c){var d=this.parameterTable[a];if(d)d.value=c},forEach:function(a){for(var c in this.parameterTable)this.parameterTable[c].type&&this.parameterTable[c].name&&a(this.parameterTable[c])},makeCopy:function(){var a=[];this.forEach(function(c){c=new p(c.name,c.type,c.label,c.value,c.lines);a.push(c)});return new r(a,this._options,this.getParameters)},hasOptionalParameters:function(){return this._hasOptionalParameters}};r.prototype.constructor=r;return{CommandService:k,CommandKeyBinding:o,Command:m,CommandInvocation:j,
CommandMenuItem:s,URLBinding:n,ParametersDescription:r,CommandParameter:p,CommandTooltip:q}});
define("orion/parameterCollectors","i18n!orion/nls/messages,require,dojo,dijit,orion/commands,orion/util,dijit/Menu,dijit/MenuItem,dijit/form/DropDownButton".split(","),function(c,d,a,e,g,f){function h(){this._activeContainer=null}h.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(c){var d={},e=null;typeof c==="string"&&(c=a.byId(c));
for(var f=c;f;){if(a.hasClass(f,"toolComposite")){e=f;break}f=f.parentNode}if(a.hasClass(c,"commandMarker"))d.commandNode=c;if(e)d.slideContainer=a.query(".slideParameters",e)[0],d.parameterContainer=a.query(".slide",e)[0],d.parameterArea=a.query(".parameters",e)[0],d.dismissArea=a.query(".parametersDismiss",e)[0];return d},open:function(d,e,g){typeof d==="string"&&(d=a.byId(d));this.close();this._activeElements=null;if((this._activeElements=this._findParameterElements(d))&&this._activeElements.parameterArea&&
this._activeElements.slideContainer&&this._activeElements.parameterContainer){this._activeElements.onClose=g;var h=e(this._activeElements.parameterArea,this._activeElements.dismissArea),d=a.query("#closebox",this._activeElements.dismissArea||this._activeElements.parameterArea);if(d.length===0)d=a.create("span",{id:"closebox",role:"button",tabindex:"0"},this._activeElements.dismissArea||this._activeElements.parameterArea,"last"),a.addClass(d,"imageSprite"),a.addClass(d,"core-sprite-close"),a.addClass(d,
"dismiss"),d.title=c.Close,a.connect(d,"onclick",a.hitch(this,function(){this.close()})),a.connect(d,"onkeypress",a.hitch(this,function(c){(c.keyCode===a.keys.ENTER||c.charCode===a.keys.SPACE)&&this.close()}));a.addClass(this._activeElements.slideContainer,"slideContainerActive");a.addClass(this._activeElements.parameterContainer,"slideActive");f.forceLayout(this._activeElements.parameterContainer);if(h)this._oldFocusNode=window.document.activeElement,window.setTimeout(function(){h.focus();h.select()},
0);this._activeElements.commandNode&&a.addClass(this._activeElements.commandNode,"activeCommand");return!0}return!1},_collectAndCall:function(c,d){a.query("input",d).forEach(function(a){a.type==="checkbox"?c.parameters.setValue(a.parameterName,a.checked):a.type!=="button"&&c.parameters.setValue(a.parameterName,a.value.trim())});a.query("textArea",d).forEach(function(a){c.parameters.setValue(a.parameterName,a.value.trim())});c.command.callback&&c.command.callback.call(c.handler,c)},collectParameters:function(c){return c.parameters?
(c.domNode&&a.addClass(c.domNode,"commandMarker"),this.open(c.domNode||c.domParent,this.getFillFunction(c))):!1},getFillFunction:function(d,e){return a.hitch(this,function(f,g){var h=null,o=a.hitch(this,function(){e&&e();this.close()}),n=a.hitch(this,function(c){c.keyCode===a.keys.ENTER&&this._collectAndCall(d,f);if(c.keyCode===a.keys.ESCAPE||c.keyCode===a.keys.ENTER)o(),a.stopEvent(c)});d.parameters.forEach(function(c){c.label&&a.create("label",{innerHTML:c.label,"class":"parameterInput","for":c.name+
"parameterCollector"},f,"last");var d={type:c.type,id:c.name+"parameterCollector"},e;if(c.type==="text"&&typeof c.lines==="number"&&c.lines>1)d.rows=c.lines,d.type="textarea",e=a.create("textarea",d,f,"last"),n=a.hitch(this,function(c){c.keyCode===a.keys.ESCAPE&&(o(),a.stopEvent(c))});else if(c.type==="boolean"){if(d.type="checkbox",c.value)d.checked=!0}else if(c.value)d.value=c.value;e||(e=a.create("input",d,f,"last"));a.addClass(e,"parameterInput parameterInput"+d.type);e.setAttribute("speech",
"speech");e.setAttribute("x-webkit-speech","x-webkit-speech");e.parameterName=c.name;h||(h=e);a.connect(e,"onkeypress",n)});var p=g||f,r=function(a){a._collectAndCall(d,f);o()};if(d.parameters.hasOptionalParameters()){d.parameters.optionsRequested=!1;var s=a.create("span",{role:"button",tabindex:"0"},p,"last");a.place(window.document.createTextNode("More"),s,"last");a.addClass(s,"dismiss");a.connect(s,"onclick",a.hitch(this,function(){d.parameters.optionsRequested=!0;r(this)}));a.connect(s,"onkeypress",
a.hitch(this,function(c){if(c.keyCode===a.keys.ENTER||c.charCode===a.keys.SPACE)d.parameters.optionsRequested=!0,r(this)}))}s=a.create("span",{role:"button",tabindex:"0"},p,"last");a.place(window.document.createTextNode("Submit"),s,"last");a.addClass(s,"dismiss");a.connect(s,"onclick",a.hitch(this,function(){r(this)}));a.connect(s,"onkeypress",a.hitch(this,function(c){(c.keyCode===a.keys.ENTER||c.charCode===a.keys.SPACE)&&r(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=c.Close;a.connect(p,"onclick",a.hitch(this,function(){o()}));a.connect(p,"onkeypress",a.hitch(this,function(c){(c.keyCode===a.keys.ENTER||c.charCode===a.keys.SPACE)&&o()}));return h})}};h.prototype.constructor=h;return{CommandParameterCollector:h}});
define("orion/widgets/UserMenu","i18n!orion/widgets/nls/messages,require,dojo,dijit,orion/commands,orion/util,dijit/Menu".split(","),function(c,d,a,e,g){a.declare("orion.widgets.UserMenu",[e.Menu],{widgetsInTemplate:!1,id:"userMenu",templateString:'<table role="menu" tabIndex="${tabIndex}" dojoAttachEvent="onkeypress:_onKeyPress" cellspacing="0"><tbody class="dijitReset" dojoAttachPoint="containerNode"></tbody></table>',label:c.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 c=0,d;for(d in a)a.hasOwnProperty(d)&&
c++;return c},_renderAuthenticatedService:function(d,e,i){var j=this;(e=this.authenticatedServices[d].authService)&&e.logout&&this.addChild(new g.CommandMenuItem({label:i?c["Sign Out "]+i:c["Sign Out"],onClick:a.hitch(this,function(c,d){return function(){c.logout().then(a.hitch(j,function(){this.addUserItem(d,c,this.authenticatedServices[d].label);localStorage.removeItem(d);for(var a=0,e=localStorage.length;a<e;a++){var f=localStorage.key(a);f&&f.indexOf("/orion/preferences/user")===0&&localStorage.removeItem(f)}c.getAuthForm(window.location.href).then(function(a){window.location=
a})}))}})(e,d)}))},_renderUnauthenticatedService:function(d,e,i){var j=this,k=this.unauthenticatedServices[d].authService;if(k)k.getAuthForm?a.hitch(j,function(a){k.getAuthForm(eclipse.globalCommandUtils.notifyAuthenticationSite).then(function(d){d+=d.indexOf("?")===-1?"?redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+a:"&redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+a;j.addChild(new g.CommandMenuItem({label:i?"<a target='_blank' href="+d+">"+c["Sign In To "]+
i+"</a>":"<a target='_blank' href="+d+">"+c["Sign In"]+"</a>",hasLink:!0}),e)})})(d):k.login&&this.addChild(new g.CommandMenuItem({label:i?"Sign In To "+i:"Sign In",onClick:a.hitch(j,function(a){return function(){a.login(eclipse.globalCommandUtils.notifyAuthenticationSite)}})(k)}),e);else{var l=this.unauthenticatedServices[d].SignInLocation;l+=l.indexOf("?")===-1?"?redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+d:"&redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+
"?key="+d;this.addChild(new g.Command.MenuItem({label:i?"<a target='_blank' href="+l+">"+c["Sign In To "]+i+"</a>":"<a target='_blank' href="+l+">"+c["Sign In"]+"</a>",hasLink:!0}),e)}},renderServices:function(){for(var a=this.getChildren(),h=0;h<a.length;h++)this.removeChild(a[h]);this.addChild(new g.CommandMenuItem({label:"<a href="+d.toUrl("help/index.jsp")+">"+c.Help+"</a>",hasLink:!0}));this.keyAssistFunction&&this.addChild(new g.CommandMenuItem({label:c["Keyboard Shortcuts"],onClick:this.keyAssistFunction}));
this.addChild(new e.MenuSeparator);this.addChild(new g.CommandMenuItem({label:"<a href="+d.toUrl("settings/settings.html")+">"+c.Settings+"</a>",hasLink:!0}));if(this.isSingleService())for(h in this.authenticatedServices)this._renderAuthenticatedService(h,0)},getUserLabel:function(a){if(a.data){var c=a.data.Name&&a.data.Name.replace(/^\s+|\s+$/g,"")!==""?a.data.Name:a.data.login;c.length>40&&(c=c.substring(0,30)+"...");c+=" ("+a.label+")";return c}else return a.label},setUserName:function(){},setKeyAssist:function(a){this.keyAssistFunction=
a;this.renderServices()},addUserItem:function(f,h,i,j){var k=this;j?(this.unauthenticatedServices[f]&&delete this.unauthenticatedServices[f],this.authenticatedServices[f]={authService:h,label:i,data:j}):(this.authenticatedServices[f]&&delete this.authenticatedServices[f],this.unauthenticatedServices[f]=this.unauthenticatedServices[f]?{authService:h,label:i,pending:this.unauthenticatedServices[f].pending}:{authService:h,label:i});a.hitch(this,this.renderServices)();if(a.byId("userInfo"))if(this.isSingleService()&&
j)i=f=j.Name&&j.Name.replace(/^\s+|\s+$/g,"")!==""?j.Name:j.login,i.length>40&&(i=i.substring(0,30)+"..."),j=a.create("a",{innerHTML:i,href:d.toUrl("profile/user-profile.html")+"#"+j.Location,"aria-label":c["View profile of "]+f,style:"margin-right: 0px"},a.byId("userInfo"),"only"),new g.CommandTooltip({connectId:[j],label:c["View profile of "]+f,position:["above","left","right","below"]});else if(this.isSingleService()&&!j)if(h.getAuthForm)a.hitch(this,function(d){h.getAuthForm(eclipse.globalCommandUtils.notifyAuthenticationSite).then(function(e){e+=
e.indexOf("?")===-1?"?redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+d:"&redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+d;a.create("a",{innerHTML:c["Sign In"],href:e,style:"margin-right: 0px",target:"_blank"},a.byId("userInfo"),"only")})})(f);else{if(h.login){var l=a.create("a",{innerHTML:c["Sign In"],style:"margin-right: 0px"},a.byId("userInfo"),"only");a.connect(l,"onmouseover",l,function(){l.style.cursor="pointer"});a.connect(l,"onmouseout",l,function(){l.style.cursor=
"default"});a.connect(l,"onclick",function(){h.login(eclipse.globalCommandUtils.notifyAuthenticationSite)})}}else this.hasServices()?(l=a.create("a",{innerHTML:c.Profiles,style:"margin-right: 0px"},a.byId("userInfo"),"only"),a.connect(l,"onmouseover",l,function(){l.style.cursor="pointer"}),a.connect(l,"onmouseout",l,function(){l.style.cursor="default"}),a.connect(l,"onclick",function(){try{e.popup.open({popup:k.options.loginDialog,around:a.byId("userInfo")})}catch(c){}e.focus(k.options.loginDialog.domNode)})):
a.empty(a.byId("userInfo"))}})});define("orion/widgets/UserMenuDropDown","require,dojo,dijit,orion/commands,orion/util,dijit/form/DropDownButton".split(","),function(c,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("orion/explorer","i18n!orion/nls/messages,require,dojo,orion/treetable,orion/explorerNavHandler,orion/commands".split(","),function(c,d,a,e,g,f){var h={};h.Explorer=function(){function c(a,d,e){this.registry=a;this.renderer=e;this.selection=d;this.myTree=null}c.prototype={changedItem:function(c,d){a.hitch(this.myTree,this.myTree.refresh)(c,d,!0)},updateCommands:function(c){this.myTree&&a.hitch(this.myTree._renderer,this.myTree._renderer.updateCommands(c))},makeNewItemPlaceHolder:function(c,
d,e){c=this.getRow(c);if(e&&(c=c.childNodes[e],a.place("<br><span id='"+d+"placeHolderRow'></span>",c,"last"),e=a.byId(d+"placeHolderRow")))return{tempNode:e,refNode:e};return c&&(a.place("<tr id='"+d+"placeHolderRow'><td id='"+d+"placeHolderCol'></td>",c,"after"),e=a.byId(d+"placeHolderRow"),c=a.byId(d+"placeHolderCol"),e&&c)?{tempNode:e,refNode:c}:null},getRow:function(c){if(c=this.model.getId(c))return a.byId(c)},collapseAll:function(){for(var a=this._navHandler.getTopLevelNodes(),c=0;c<a.length;c++)this.myTree.collapse(a[c])},
expandAll:function(a){if(a)this._expandRecursively(a);else if(this._navHandler)for(var a=this._navHandler.getTopLevelNodes(),c=0;c<a.length;c++)this._expandRecursively(a[c])},_expandRecursively:function(a){if(this._navHandler&&this._navHandler.isExpandable(a)){var c=this;this.myTree.expand(a,function(){c.model.getChildren(a,function(a){if(!(a===void 0||a===null))for(var d=a.length,e=0;e<d;e++)c._expandRecursively(a[e])})})}},createTree:function(c,d,f){this.selection&&this.selection.setSelections([]);
this.getNavHandler()&&this.getNavHandler()._clearSelection();var h=c+"innerTree",i=a.byId(h);i&&a.destroy(i);if(d)d.rootId=h;this.model=d;this._parentId=c;this._treeOptions=f;if(!f||f&&!f.noSelection)this.selectionPolicy=f?f.selectionPolicy:"",this._navDict=new g.ExplorerNavDict(this.model);this.myTree=new e.TableTree({id:h,model:d,showRoot:!1,parent:c,labelColumnIndex:this.renderer.getLabelColumnIndex(),renderer:this.renderer,indent:f?f.indent:void 0,onCollapse:f?f.onCollapse:void 0,tableStyle:"mainPadding"});
this.renderer._initializeUIState();this.selectionPolicy==="cursorOnly"&&this.initNavHandler()},getNavHandler:function(){return this._navHandler},getNavDict:function(){return this._navDict},refreshSelection:function(){if(this.selection){var a=this.getNavHandler(),c=[];if(a&&this.getNavDict())for(var d=a.getSelection(),e=0;e<d.length;e++){var f=a.getRowDiv(d[e]);f&&f.parentNode&&(f=this.getNavDict().getValue(this.model.getId(d[e])),f.model&&c.push(f.model))}this.selection.setSelections(c)}},getRootPath:function(){return this.model&&
this.model.root?this.model.root.Location:null},initNavHandler:function(){var a=this._treeOptions;if(!a||a&&!a.noSelection){if(!this.getNavHandler())this._navHandler=new g.ExplorerNavHandler(this,this._navDict,{setFocus:a&&a.setFocus,selectionPolicy:a?a.selectionPolicy:null});var c=this;this.model.getRoot(function(d){d instanceof Array?c.getNavHandler().refreshModel(c.getNavDict(),c.model,d):d.children&&d.children instanceof Array&&c.getNavHandler().refreshModel(c.getNavDict(),c.model,d.children);
a&&a.setFocus&&c.getNavHandler().cursorOn(null,!1,!1,!0)})}},_lastHash:null,checkbox:!1};return c}();h.createExplorerCommands=function(a,d){function e(a){return typeof a.getItemCount==="function"?a.getItemCount()>0?d?d(a):!0:!1:!1}var g=new f.Command({tooltip:c["Expand all"],imageClass:"core-sprite-expandAll",id:"orion.explorer.expandAll",groupId:"orion.explorerGroup",visibleWhen:function(a){return e(a)},callback:function(a){a.items.expandAll()}}),h=new f.Command({tooltip:c["Collapse all"],imageClass:"core-sprite-collapseAll",
id:"orion.explorer.collapseAll",groupId:"orion.explorerGroup",visibleWhen:function(a){return e(a)},callback:function(a){a.items.collapseAll()}});a.addCommand(g);a.addCommand(h)};h.ExplorerModel=function(){function c(a,d){this.rootPath=a;this.fetchItems=d}c.prototype={destroy:function(){},getRoot:function(c){this.fetchItems(this.rootPath).then(a.hitch(this,function(a){this.root=a;c(a)}))},getChildren:function(c,d){c.Children?d(c.Children):c.ChildrenLocation?this.fetchItems(c.ChildrenLocation).then(a.hitch(this,
function(a){c.Children=a;d(a)})):d([])},getId:function(a){if(a.Location===this.root.Location)return this.rootId;for(var a=a.Location.replace(/[\\\/]/g,""),c="",d=0;d<a.length;d++)c+=a[d].match(/[^\.\:\-\_0-9A-Za-z]/g)?a.charCodeAt(d):a[d];return c}};return c}();h.ExplorerFlatModel=function(){function c(a,d,e){this.rootPath=a;this.fetchItems=d;this.root=e}c.prototype=new h.ExplorerModel;c.prototype.getRoot=function(c){this.root?c(this.root):this.fetchItems(this.rootPath).then(a.hitch(this,function(a){this.root=
a;c(a)}))};c.prototype.getChildren=function(a,c){a===this.root?c(this.root):c([])};return c}();h.ExplorerRenderer=function(){function c(a,d){this.explorer=d;this._init(a);this._expandImageClass="core-sprite-openarrow";this._collapseImageClass="core-sprite-closedarrow";this._twistieSpriteClass="modelDecorationSprite"}c.prototype={getLabelColumnIndex:function(){return this.explorer.checkbox?1:0},initTable:function(c,d){this.tableTree=d;a.empty(c);a.addClass(c,"treetable");this.renderTableHeader(c)},
getActionsColumn:function(c,d,e,f,g){var e=e||"tool",h=this.explorer.registry.getService("orion.page.command"),i=document.createElement("td");i.id=d.id+"actionswrapper";f&&a.addClass(i,f);this.actionScopeId?h.renderCommands(this.actionScopeId,i,c,this.explorer,e,null,g&&this.explorer.getNavDict()?this.explorer.getNavDict().getGridNavHolder(c,!0):null):window.console.log("Warning, no action scope was specified.  No commands rendered.");return i},initCheckboxColumn:function(){if(this._useCheckboxSelection)return document.createElement("th")},
getCheckboxColumn:function(c,d){if(this._useCheckboxSelection){var e=document.createElement("td"),f=document.createElement("span");f.id=this.getCheckBoxId(d.id);a.addClass(f,"core-sprite-check selectionCheckmarkSprite");f.itemId=d.id;if(this.getCheckedFunc)f.checked=this.getCheckedFunc(c),this._highlightSelection&&a.toggleClass(d,"checkedRow",f.checked),a.toggleClass(f,"core-sprite-check_on",f.checked);e.appendChild(f);a.connect(f,"onclick",a.hitch(this,function(a){this.onCheck(d,a.target,a.target.checked?
!1:!0,!0)}));return e}},getCheckBoxId:function(a){return a+"selectedState"},onCheck:function(c,d,e,f,g){d.checked=e;a.toggleClass(d,"core-sprite-check_on",e);if(this.onCheckedFunc)this.onCheckedFunc(d.itemId,e,f);this.explorer.getNavHandler()&&g&&this.explorer.getNavHandler().setSelection(this.explorer.getNavDict().getValue(c.id).model,!0)},storeSelections:function(){if(this.explorer.getNavHandler()){var a=this.explorer.getNavHandler().getSelectionIds(),c=this._getUIStatePreferencePath();c&&window.sessionStorage&&
(window.sessionStorage[c+"selection"]=JSON.stringify(a))}},_restoreSelections:function(c){c=window.sessionStorage[c+"selection"];typeof c==="string"&&(c=c.length>0?JSON.parse(c):null);var d;if(c&&this.explorer.getNavDict()){var e=[];for(d=0;d<c.length;d++){var f=this.explorer.getNavDict().getValue(c[d]);if(f&&f.rowDomNode&&f.model&&(e.push(f.model),this._highlightSelection&&a.addClass(f.rowDomNode,"checkedRow"),f=a.byId(this.getCheckBoxId(f.rowDomNode.id))))f.checked=!0,a.addClass(f,"core-sprite-check_on")}this.explorer.selection&&
(this.explorer.selection.setSelections(e),this.explorer.getNavHandler()&&this.explorer.getNavHandler().refreshSelection())}},_storeExpansions:function(a){window.sessionStorage[a+"expanded"]=JSON.stringify(this._expanded)},_restoreExpansions:function(c){var d=!1,e=window.sessionStorage[c+"expanded"];typeof e==="string"&&(e=e.length>0?JSON.parse(e):null);var f;if(e)for(f=0;f<e.length;f++)a.byId(e[f])&&(this._expanded.push(e[f]),this.tableTree.expand(e[f],a.hitch(this,function(){this._restoreSelections(c)})),
d=!0);return!d},_getUIStatePreferencePath:function(){if(this.explorer){var a=this.explorer.getRootPath();if(this._cachePrefix&&a)return"/"+this._cachePrefix+"/"+a.replace(/[^\.\:\-\_0-9A-Za-z]/g,"")+"/uiState"}return null},expandCollapseImageId:function(a){return a+"__expand"},updateExpandVisuals:function(c,d){var e=a.byId(this.expandCollapseImageId(c.id));e&&(a.addClass(e,d?this._expandImageClass:this._collapseImageClass),a.removeClass(e,d?this._collapseImageClass:this._expandImageClass))},getExpandImage:function(c,
d,e,f){var g=a.create("span",{id:this.expandCollapseImageId(c.id)},d,"last");a.addClass(g,this._twistieSpriteClass);a.addClass(g,this._collapseImageClass);e&&(d=a.create("span",null,d,"last"),a.addClass(d,f||"imageSprite"),a.addClass(d,e));g.onclick=a.hitch(this,function(){this.tableTree.toggle(c.id);if(this.tableTree.isExpanded(c.id))this._expanded.push(c.id);else for(var a in this._expanded)if(this._expanded[a]===c.id){this._expanded.splice(a,1);break}(a=this._getUIStatePreferencePath())&&window.sessionStorage&&
this._storeExpansions(a)});return g},render:function(c,d){a.addClass(d,"navRow");this.renderRow(c,d)},rowsChanged:function(){this._decorateAlternatingLines&&a.query(".treeTableRow").forEach(function(c,d){d%2?(a.addClass(c,"darkTreeTableRow"),a.removeClass(c,"lightTreeTableRow")):(a.addClass(c,"lightTreeTableRow"),a.removeClass(c,"darkTreeTableRow"))});this.explorer.selectionPolicy!=="cursorOnly"&&(this.explorer.refreshSelection(),this.explorer.initNavHandler())},updateCommands:function(){var c=this.explorer.registry;
a.query(".treeTableRow").forEach(function(d){var e=a.byId(d.id+"actionswrapper");a.empty(e);this.actionScopeId&&c.getService("orion.page.command").renderCommands(this.actionScopeId,e,d._item,this.explorer,"tool")})},_init:function(a){if(a){this._useCheckboxSelection=a.checkbox===void 0?!1:a.checkbox;this._colums=a.colums||[];this._cachePrefix=a.cachePrefix;this.getCheckedFunc=a.getCheckedFunc;this.onCheckedFunc=a.onCheckedFunc;this._highlightSelection=!0;if(a.highlightSelection===!1)this._highlightSelection=
!1;this._decorateAlternatingLines=!0;if(a.decorateAlternatingLines===!1)this._decorateAlternatingLines=!1;if(!this.actionScopeId)this.actionScopeId=a.actionScopeId}},_initializeUIState:function(){this._expanded=[];var a=this._getUIStatePreferencePath();a&&window.sessionStorage&&this._restoreExpansions(a)&&this._restoreSelections(a)}};return c}();h.SelectionRenderer=function(){function c(a,d){this._init(a);this.explorer=d}c.prototype=new h.ExplorerRenderer;c.prototype.renderTableHeader=function(c){var d=
document.createElement("thead"),e=document.createElement("tr");a.addClass(d,"navTableHeading");this._useCheckboxSelection&&e.appendChild(this.initCheckboxColumn(c));for(var f=0,g=this.getCellHeaderElement(f);g;)g.innerHTML.length>0&&a.addClass(g,"navColumn"),e.appendChild(g),g=this.getCellHeaderElement(++f);d.appendChild(e);c.appendChild(d)};c.prototype.renderRow=function(c,d){a.style(d,"verticalAlign","baseline");a.addClass(d,"treeTableRow");var e=this.explorer.getNavDict();e&&(e.addRow(c,d),a.connect(d,
"onclick",a.hitch(this,function(a){if(this.explorer.getNavHandler())this.explorer.getNavHandler().onClick(c,a)})));if(e=this.getCheckboxColumn(c,d))a.addClass(e,"checkColumn"),d.appendChild(e);for(var e=0,f=this.getCellElement(e,c,d);f;)d.appendChild(f),e===0?this.getPrimColumnStyle?a.addClass(f,this.getPrimColumnStyle()):a.addClass(f,"navColumn"):this.getSecondaryColumnStyle?a.addClass(f,this.getSecondaryColumnStyle()):a.addClass(f,"secondaryColumn"),f=this.getCellElement(++e,c,d)};c.prototype.getCellHeaderElement=
function(){};c.prototype.getCellElement=function(){};return c}();h.SimpleFlatModel=function(){function a(c,d,e){this.items=c;this.getKey=e;this.idPrefix=d;this.root={children:c}}a.prototype=new h.ExplorerModel;a.prototype.getRoot=function(a){a(this.root)};a.prototype.destroy=function(){};a.prototype.getId=function(a){for(var a=this.getKey(a).replace(/[\\\/]/g,""),c="",d=0;d<a.length;d++)c+=a[d].match(/[^\.\:\-\_0-9A-Za-z]/g)?a.charCodeAt(d):a[d];return this.idPrefix+c};a.prototype.getChildren=function(a,
c){a===this.root?c(this.items):c([])};return a}();return h});
define("orion/widgets/LoginDialog","i18n!orion/widgets/nls/messages,require,dojo,dijit,orion/util,dijit/TooltipDialog,text!orion/widgets/templates/LoginDialog.html".split(","),function(c,d,a,e){a.declare("orion.widgets.LoginDialog",[e.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 c=this;a.addClass(this.closeLink,"imageSprite");a.addClass(this.closeLink,"core-sprite-close");a.connect(this.closeLink,"onmouseover",this.closeLink,function(){c.closeLink.style.cursor="pointer"});a.connect(this.closeLink,"onmouseout",this.closeLink,function(){c.closeLink.style.cursor="default"});a.connect(this.closeLink,"onclick",function(){a.hitch(c,c.closeDialog)()})},setPendingAuthentication:function(a){for(var c in this.unauthenticatedServices)delete this.unauthenticatedServices[c].pending;
for(c in a)this.unauthenticatedServices[a[c].SignInKey]?this.unauthenticatedServices[a[c].SignInKey].pending=!0:this.authenticatedServices[a[c].SignInKey]?(this.unauthenticatedServices[a[c].SignInKey]=this.authenticatedServices[a[c].SignInKey],this.unauthenticatedServices[a[c].SignInKey].pending=!0,delete this.authenticatedServices[a[c].SignInKey]):this.unauthenticatedServices[a[c].SignInKey]={label:a[c].label,SignInLocation:a[c].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(c,d,e,i){i?(this.unauthenticatedServices[c]&&delete this.unauthenticatedServices[c],this.authenticatedServices[c]={authService:d,label:e,data:i}):(this.authenticatedServices[c]&&delete this.authenticatedServices[c],this.unauthenticatedServices[c]=this.unauthenticatedServices[c]?
{authService:d,label:e,pending:this.unauthenticatedServices[c].pending}:{authService:d,label:e});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 e=this,f=!0,h;for(h in this.authenticatedServices){if(!f){var i=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;'>"},i)}var f=!1,i=a.create("tr",{className:"navTableHeading"}),j=this.authenticatedServices[h].authService,k=a.create("td",null,i,"only"),l=a.create("h2",null,k,"only");if(j)j.getAuthForm?a.hitch(e,function(a,c){j.getAuthForm(eclipse.globalCommandUtils.notifyAuthenticationSite).then(function(d){if(e.authenticatedServices[c].label)a.innerHTML=e.authenticatedServices[c].label+
"<br>";a.innerHTML+=e.getHostname(d)})})(l,h):l.innerHTML=this.authenticatedServices[h].label?this.authenticatedServices[h].label:h;else{var m=this.authenticatedServices[h].SignInLocation;if(this.authenticatedServices[h].label)l.innerHTML=this.authenticatedServices[h].label+"<br>";l.innerHTML+=this.getHostname(m)}a.addClass(k,"LoginWindowLeft");k=a.create("td",{style:"text-align: right"},i,"last");a.addClass(k,"LoginWindowRight");l=this.authenticatedServices[h].data;j=this.authenticatedServices[h].authService;
if(!j){a.place(i,this.authenticatedList,"last");break}l.Location&&a.create("a",{href:d.toUrl("profile/user-profile.html")+"#"+l.Location,innerHTML:c.Profile},k,"last");a.place(document.createTextNode(" "),k,"last");if(j.logout){var o=a.create("a",{innerHTML:c["Sign out"]},k,"last");a.connect(o,"onmouseover",o,function(){o.style.cursor="pointer"});a.connect(o,"onmouseout",o,function(){o.style.cursor="default"});a.connect(o,"onclick",a.hitch(e,function(c,d){return function(){c.logout().then(a.hitch(e,
function(){this.addUserItem(d,c,this.authenticatedServices[d].label);this.isSingleService()&&this.closeDialog();localStorage.removeItem(d)}))}})(j,h))}a.place(i,this.authenticatedList,"last");k=c["N/A"];l&&l.lastlogintimestamp&&(k=a.date.locale.format(new Date(l.lastlogintimestamp),{formatLength:"short"}));l=l.Name&&l.Name.replace(/^\s+|\s+$/g,"")!==""?l.Name:l.login;i=a.create("tr");k=l.length>40?a.create("td",{innerHTML:l.substring(0,30)+"... "+c["logged in since "]+k,colspan:2,title:l+" "+c["logged in since "]+
k},i,"only"):a.create("td",{innerHTML:l+" "+c["logged in since "]+k,colspan:2},i,"only");a.addClass(k,"LoginWindowLeft");a.addClass(k,"LoginWindowRight");a.addClass(k,"LoginWindowComment");a.place(i,this.authenticatedList,"last")}},renderUnauthenticatedServices:function(){this.emptyListInfo.style.display=this.unauthenticatedServices.length===0&&this.authenticatedServices.length===0?"":"none";a.empty(this.otherUnauthenticatedList);var g=this;this.otherUnauthenticated.style.display=this.isEmpty(this.unauthenticatedServices)?
"none":"";var f=!0,h;for(h in this.unauthenticatedServices){if(!f||!this.isEmpty(this.authenticatedServices)){var i=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;'>"},i)}var f=!1,i=a.create("tr",{className:"navTableHeading"}),j=a.create("td",null,i,"only");a.addClass(j,"LoginWindowLeft");var k=a.create("h2",null,j,"only"),j=
a.create("td",{style:"text-align: right"},i,"last");a.addClass(j,"LoginWindowRight");var l=this.unauthenticatedServices[h].authService,m=eclipse.globalCommandUtils.notifyAuthenticationSite,o=m+(m.indexOf("?")===-1?"?":"&")+"key="+h;if(l)if(l.getAuthForm)a.hitch(g,function(d,e){l.getAuthForm(o).then(function(f){a.create("a",{target:"_blank",href:f,innerHTML:c["Sign in"]},d,"last");if(g.unauthenticatedServices[e].label)k.innerHTML=g.unauthenticatedServices[e].label+"<br>";k.innerHTML+=g.getHostname(f)})})(j,
h);else{if(l.login){a.place(document.createTextNode(this.unauthenticatedServices[h].label?this.unauthenticatedServices[h].label:h),k,"only");var n=a.create("a",{innerHTML:c["Sign in"],style:"cursor: hand;"},j,"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(g,function(a){return function(){a.login(o).then(function(){g.isSingleService()&&e.popup.hide&&e.popup.hide(g);e.popup.close(g)})}})(l))}}else{m=
this.unauthenticatedServices[h].SignInLocation;m.indexOf("?")===-1?a.create("a",{target:"_blank",href:m+"?redirect="+encodeURIComponent(o),innerHTML:c["Sign in"]},j,"last"):a.create("a",{target:"_blank",href:m+"&redirect="+encodeURIComponent(o),innerHTML:c["Sign in"]},j,"last");if(this.unauthenticatedServices[h].label)k.innerHTML=this.unauthenticatedServices[h].label+"<br>";k.innerHTML+=this.getHostname(m)}a.place(i,this.otherUnauthenticatedList,"last");this.unauthenticatedServices[h].pending&&(i=
a.create("tr"),j=a.create("td",{innerHTML:c["Authentication required!"],style:"padding-left: 10px",colspan:2},i,"only"),a.addClass(j,"LoginWindowLeft"),a.addClass(j,"LoginWindowRight"),a.create("img",{src:d.toUrl("images/warning.gif"),style:"padding-right: 4px; vertical-align: bottom; padding-bottom: 2px;"},j,"first"),a.place(i,this.otherUnauthenticatedList,"last"))}},isSingleService:function(){return this.length(this.unauthenticatedServices)+this.length(this.authenticatedServices)===1},isEmpty:function(a){for(var c in a)if(a.hasOwnProperty(c))return!1;
return!0},length:function(a){var c=0,d;for(d in a)a.hasOwnProperty(d)&&c++;return c},getHostname:function(a){var c=document.createElement("a");c.href=a;a=c.href;return a.match(/^(?:f|ht)tp(?:s)?:\/\/([^/]+)/im)[1].toString()},closeDialog:function(){e.popup.hide&&e.popup.hide(this);e.popup.close(this)}})});
define("orion/git/widgets/CommitTooltipDialog","i18n!git/nls/gitmessages,require,dojo,dijit,orion/util,dijit/TooltipDialog".split(","),function(c,d,a,e){a.declare("orion.git.widgets.CommitTooltipDialog",[e.TooltipDialog],{widgetsInTemplate:!1,closable:!0,constructor:function(){this.inherited(arguments);this.options=arguments[0]||{}},postCreate:function(){this.inherited(arguments);this.displayCommit(this.options.commit)},displayCommit:function(d){var e=a.create("div",{style:"padding:10px; max-width:480px"},
this.containerNode),h=d.Message.split(/(\r?\n|$)/)[0];link=a.create("a",{"class":"gitMainDescription",href:"/git/git-commit.html#"+d.Location+"?page=1&pageSize=1"},e);a.place(document.createTextNode(h),link);a.create("div",{style:"padding-top:15px"},e);a.create("span",{"class":"gitSecondaryDescription",innerHTML:c[" commit: "]+d.Name},e);d.Parents&&d.Parents.length>0&&(a.create("div",null,e),a.place(document.createTextNode(c["parent: "]),e),link=a.create("a",{"class":"gitSecondaryDescription",href:"/git/git-commit.html#"+
d.Parents[0].Location+"?page=1&pageSize=1"},e),a.place(document.createTextNode(d.Parents[0].Name),link));a.create("div",{style:"padding-top:15px"},e);if(d.AuthorImage){var h=a.create("div",{"class":"git-author-icon-small",style:"margin-bottom:30px"},e),i=new Image;i.src=d.AuthorImage;i.name=d.AuthorName;i.width=35;i.height=35;a.place(i,h,"first")}a.create("span",{"class":"gitSecondaryDescription",innerHTML:a.string.substitute(c[" authored by ${0} {${1}) on ${2}"],[d.AuthorName,d.AuthorEmail,a.date.locale.format(new Date(d.Time),
{formatLength:"short"})])},e);a.create("div",null,e);a.create("span",{"class":"gitSecondaryDescription",innerHTML:a.string.substitute(c["committed by 0 (1)"],[d.CommitterName,d.CommitterEmail])},e)},_onBlur:function(){this.inherited(arguments);e.popup.hide&&e.popup.hide(this);e.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(c,d){c.declare("dijit._DialogBase",[d._Templated,d.form._FormMixin,d._DialogMixin,d._CssStateMixin],{templateString:c.cache("dijit","templates/Dialog.html"),baseClass:"dijitDialog",
cssStateNodes:{closeButtonNode:"dijitDialogCloseIcon"},attributeMap:c.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=c.i18n.getLocalization("dijit","common");c.mixin(this,a);this.inherited(arguments)},postCreate:function(){c.style(this.domNode,
{display:"none",position:"absolute"});c.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=c.position(a.node)},_setup:function(){var a=
this.domNode;this.titleBar&&this.draggable?(this._moveable=c.isIE==6?new c.dnd.TimedMoveable(a,{handle:this.titleBar}):new c.dnd.Moveable(a,{handle:this.titleBar,timeout:0}),this._dndListener=c.subscribe("/dnd/move/stop",this,"_endDrag")):c.addClass(a,"dijitDialogFixed");this.underlayAttrs={dialogId:this.id,"class":c.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 c.style(this.containerNode,{width:"auto",height:"auto"});var a=c._getMarginSize(this.domNode),d=c.window.getBox();if(a.w>=d.w||a.h>=d.h){var g=Math.min(a.w,Math.floor(d.w*0.75)),a=Math.min(a.h,Math.floor(d.h*0.75));this._singleChild&&this._singleChild.resize?(this._singleChildOriginalStyle=this._singleChild.domNode.style.cssText,this._singleChild.resize({w:g,h:a})):c.style(this.containerNode,{width:g+"px",height:a+"px",overflow:"auto",
position:"relative"})}else this._singleChild&&this._singleChild.resize&&this._singleChild.resize()},_position:function(){if(!c.hasClass(c.body(),"dojoMove")){var a=this.domNode,d=c.window.getBox(),g=this._relativePosition,f=g?null:c._getBorderBox(a);c.style(a,{left:Math.floor(d.l+(g?g.x:(d.w-f.w)/2))+"px",top:Math.floor(d.t+(g?g.y:(d.h-f.h)/2))+"px"})}},_onKey:function(a){if(a.charOrCode){var e=c.keys,g=a.target;a.charOrCode===e.TAB&&this._getFocusItems(this.domNode);var f=this._firstFocusItem==this._lastFocusItem;
if(g==this._firstFocusItem&&a.shiftKey&&a.charOrCode===e.TAB)f||d.focus(this._lastFocusItem),c.stopEvent(a);else if(g==this._lastFocusItem&&a.charOrCode===e.TAB&&!a.shiftKey)f||d.focus(this._firstFocusItem),c.stopEvent(a);else{for(;g;){if(g==this.domNode||c.hasClass(g,"dijitPopup"))if(a.charOrCode==e.ESCAPE)this.onCancel();else return;g=g.parentNode}if(a.charOrCode!==e.TAB)c.stopEvent(a);else if(!c.isOpera)try{this._firstFocusItem.focus()}catch(h){}}}},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(c.connect(window,"onscroll",this,"layout"));this._modalconnects.push(c.connect(window,"onresize",this,function(){var a=c.window.getBox();if(!this._oldViewport||a.h!=this._oldViewport.h||a.w!=this._oldViewport.w)this.layout(),this._oldViewport=a}));this._modalconnects.push(c.connect(this.domNode,"onkeypress",this,"_onKey"));c.style(this.domNode,
{opacity:0,display:""});this._set("open",!0);this._onShow();this._size();this._position();var a;this._fadeInDeferred=new c.Deferred(c.hitch(this,function(){a.stop();delete this._fadeInDeferred}));a=c.fadeIn({node:this.domNode,duration:this.duration,beforeBegin:c.hitch(this,function(){d._DialogLevelManager.show(this,this.underlayAttrs)}),onEnd:c.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 c.Deferred(c.hitch(this,function(){a.stop();delete this._fadeOutDeferred}));a=c.fadeOut({node:this.domNode,duration:this.duration,onEnd:c.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;c.forEach(this._modalconnects,c.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&&
c.unsubscribe(this._dndListener);c.forEach(this._modalconnects,c.disconnect);d._DialogLevelManager.hide(this);this.inherited(arguments)}});c.declare("dijit.Dialog",[d.layout.ContentPane,d._DialogBase],{});d._DialogLevelManager={show:function(a,e){var g=d._dialogStack;g[g.length-1].focus=d.getFocus(a);var f=d._underlay;!f||f._destroyed?f=d._underlay=new d.DialogUnderlay(e):f.set(a.underlayAttrs);var h=g[g.length-1].dialog?g[g.length-1].zIndex+2:950;g.length==1&&f.show();c.style(d._underlay.domNode,
"zIndex",h-1);c.style(a.domNode,"zIndex",h);g.push({dialog:a,underlayAttrs:e,zIndex:h})},hide:function(a){var e=d._dialogStack;if(e[e.length-1].dialog==a){e.pop();var g=e[e.length-1];e.length==1?d._underlay._destroyed||d._underlay.hide():(c.style(d._underlay.domNode,"zIndex",g.zIndex-1),d._underlay.set(g.underlayAttrs));if(a.refocus){e=g.focus;if(!e||g.dialog&&!c.isDescendant(e.node,g.dialog.domNode))g.dialog._getFocusItems(g.dialog.domNode),e=g.dialog._firstFocusItem;try{d.focus(e)}catch(f){}}}else g=
c.indexOf(c.map(e,function(a){return a.dialog}),a),g!=-1&&e.splice(g,1)},isTop:function(a){var c=d._dialogStack;return c[c.length-1].dialog==a}};d._dialogStack=[{dialog:null,focus:null,underlayAttrs:null}];return d.Dialog});
define("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(c,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||c["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,
c;this.newItemButton.focus();this.options.advanced&&(a=this.itemURL.value.replace(/^\s+|\s+$/g,""),c=this.createCheckbox.get("disabled")?!1:this.createCheckbox.get("checked"));this.options.func(this.itemName.value,a&&a!==""?a:void 0,c)},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/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(c,d,a,e){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||c["Choose a Folder"];this.buttonOk=c.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=e.makeRelative(a);this.treeRoot.Location=a;this.options.fileClient.loadWorkspace(a).then(d.hitch(this,
function(a){for(var c in a)this.treeRoot[c]=a[c];e.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(c,d,e){this.registry=c;this.root=d;this.fileClient=e}a.prototype={destroy:function(){},getRoot:function(a){a(this.root)},mayHaveChildren:function(){return!0},getChildren:function(a,c){a.children?c(a.children):a.Directory!==void 0&&a.Directory===!1?c([]):a.Location?this.fileClient.fetchChildren(a.ChildrenLocation).then(d.hitch(this,
function(d){for(var g=[],k=0;k<d.length;k++)d[k].Directory&&g.push(d[k]);e.processNavigatorParent(a,g);c(g)})):c([])},getIdentity:function(a){return a.Name?a.Location:"ROOT"},getLabel:function(a){return a.Name},onChildrenChange:function(){}};return a}()});
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(c,d,a){localStorage.getItem("orion.sftpConnections")||localStorage.setItem("orion.sftpConnections",JSON.stringify({identifier:"name",label:c.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=c["Remote host:"];this.sftpPathLabelText=c["Remote path:"];this.sftpUserLabelText=c["User name:"];this.sftpPasswordLabelText=
c["Password:"];this.buttonOk=c["Start Transfer"];this.locationLabelText=c["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 c=a[0],d=a[1].indexOf("/");if(!(d<=0)){var h=a[1].substring(0,d),a=a[1].substring(d);this.options.func(h,a,c,this.sftpPassword.value,
this._computeOverwriteValue())}}},_computeOverwriteValue:function(){if(this.overwriteCancel.checked)return"no-overwrite";else if(this.overwriteOlder.checked)return"overwrite-older";return""},onAddConnection:function(){for(var a={name:this.sftpUser.value+"@"+this.sftpHost.value+this.sftpPath.value},c=JSON.parse(localStorage.getItem("orion.sftpConnections")),d=!1,h=0;h<c.items.length;h++)if(c.items[h].name===a.name){d=!0;break}d||(c.items.unshift(a),localStorage.setItem("orion.sftpConnections",JSON.stringify(c)),
this.sftpConnectionList.set("value",a.name))}})});
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(c,d,a,e){return a.declare("orion.widgets.OpenResourceDialog",[e.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(c["Missing required argument: searchRenderer"]);this.favService=this.options.favoriteService;
if(!this.favService)throw Error(c["Missing required argument: favService"]);},postMixInProperties:function(){this.options.title=this.options.title||c["Find File Named"];this.selectFile=c["Type the name of a file to open (? = any character, * = any string):"];this.searchPlaceHolder=c.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(c){c.keyCode===a.keys.ENTER&&this.results&&(c=a.query("a",this.results),c.length>0&&(window.open(c[0].href),this.hide()))});a.connect(this,"onKeyPress",this,function(c){var d,h,i,j,k;if(c.keyCode===a.keys.DOWN_ARROW||c.keyCode===a.keys.UP_ARROW)h=a.query("a",this.results),d=a.query("a",this.favresults),i=e.getFocus(),k=h.indexOf(i.node),j=d.indexOf(i.node),c.keyCode===a.keys.DOWN_ARROW?j>=0?e.focus(j<d.length-1?d[j+1]:h.length>
0?h[0]:d[0]):k>=0?e.focus(k<h.length-1?h[k+1]:d.length>0?d[0]:h[0]):(h.length>0||d.length>0)&&e.focus(-1<d.length-1?d[0]:h[0]):j>=0?(i=this.resourceName&&this.resourceName.get("textbox"),e.focus(j>0?d[j-1]:i)):k>=0?(i=this.resourceName&&this.resourceName.get("textbox"),e.focus(k>0?h[k-1]:d.length>0?d[d.length-1]:i)):h.length>0?e.focus(h[h.length-1]):d.length>0&&e.focus(d[d.length-1]),a.stopEvent(c)});a.connect(this,"onMouseUp",function(a){a.target.focus()});this.populateFavorites()},populateFavorites:function(){a.place("<div>"+
c["Populating favorites&#x2026;"]+"</div>",this.favresults,"only");this.favService.getFavorites().then(this.showFavorites());this.favService.addEventListener("favoritesChanged",this.showFavorites())},showFavorites:function(){var c=this;return function(d){if(d.navigator)d=d.navigator;c.searchRenderer.makeRenderFunction(c.favresults,!1,a.hitch(c,c.decorateResult),c.showFavoritesImage)(d);d&&d.length>0&&a.place("<hr/>",c.favresults,"last")}},showFavoritesImage:function(e){var f=new Image;a.addClass(f,
"modelDecorationSprite");a.addClass(f,"core-sprite-makeFavorite");f.src=d.toUrl("images/none.png");f.title=c.Favorite;e.appendChild(f);a.style(f,"verticalAlign","middle")},checkSearch:function(){clearTimeout(this.timeoutId);var c=(new Date).getTime();c-this.time>this.SEARCH_DELAY?(this.time=c,this.doSearch()):this.timeoutId=setTimeout(a.hitch(this,"checkSearch"),50)},doSearch:function(){var d=this.resourceName&&this.resourceName.get("value"),e=this.showFavorites();this.favService.queryFavorites(d).then(function(a){e(a)});
if(d){a.place("<div>"+c["Searching&#x2026;"]+"</div>",this.results,"only");var h=this;setTimeout(function(){var c=h.searcher.createSearchQuery(null,d,"NameLower"),e=h.searchRenderer.makeRenderFunction(h.results,!1,a.hitch(h,h.decorateResult));h.searcher.search(c,!1,e)},0)}},decorateResult:function(c){var d=this;a.query("a",c).forEach(function(c){a.connect(c,"onmouseup",function(c){!a.mouseButtons.isMiddle(c)&&!a.isCopyKey(c)&&d.hide()});a.connect(c,"onkeyup",d,function(c){c.keyCode===a.keys.ENTER&&
d.hide()})})},show:function(){this.inherited(arguments);this.resourceName.focus()},onHide:function(){clearTimeout(this.timeoutId);this.inherited(arguments)}})});
define("orion/git/widgets/CloneGitRepositoryDialog","i18n!git/nls/gitmessages,require,dojo,dijit,dijit/Dialog,orion/widgets/_OrionDialogMixin,orion/widgets/DirectoryPrompterDialog,text!orion/git/widgets/templates/CloneGitRepositoryDialog.html".split(","),function(c,d,a,e){a.declare("orion.git.widgets.CloneGitRepositoryDialog",[e.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:!0,templateString:a.cache("orion","git/widgets/templates/CloneGitRepositoryDialog.html"),constructor:function(){this.inherited(arguments);
this.options=arguments[0]||{}},postMixInProperties:function(){this.inherited(arguments);this.title=this.options.title?this.options.title:c["Clone Git Repository"];this.gitUrlLabelText=c["Repository URL:"];this.gitPathLabelText=c["Existing directory:"];this.gitNameLabelText=c["New folder:"];this.advancedShown=!1},postCreate:function(){var c=this;this.inherited(arguments);if(this.options.url)this.gitUrl.value=this.options.url;if(this.options.advancedOnly)this.Basic.style.display="none",this.Advanced.style.display=
"",setTimeout(function(){c.gitName.focus()},400);a.connect(this.changeGitPath,"onclick",null,a.hitch(this,this.openDirectoryPickerDialog));a.connect(this.isExistingProject,"onchange",null,a.hitch(this,this.showExistingFolder));a.connect(this.gitName,"onfocus",null,a.hitch(this,this.showNewProject));a.connect(this.advancedLink,"onclick",null,a.hitch(this,this.showAdvanced));a.connect(this.advancedLinkHide,"onclick",null,a.hitch(this,this.hideAdvanced));this.options.alwaysShowAdvanced&&this.showAdvanced()},
execute:function(){this.options.func&&this.options.func(this.options.advancedOnly?void 0:this.gitUrl.value,this.advancedShown&&this.isNewProject.checked?void 0:this.gitPath.value,this.advancedShown&&!this.isNewProject.checked?void 0:this.gitName.value);delete this.options.func},showAdvanced:function(){this.advancedShown=!0;this.Advanced.style.display="";this.advancedLink.style.display="none";this.advancedLinkHide.style.display=""},hideAdvanced:function(){this.advancedShown=!1;this.Advanced.style.display=
"none";this.advancedLink.style.display="";this.advancedLinkHide.style.display="none"},showExistingFolder:function(){this.isExistingProject.checked?this.openDirectoryPickerDialog():this.gitName.focus()},showNewProject:function(){this.isNewProject.checked=!0},openDirectoryPickerDialog:function(){this.isExistingProject.checked=!0;var e=new orion.widgets.DirectoryPrompterDialog({title:c["Choose a Folder"],serviceRegistry:this.options.serviceRegistry,fileClient:this.options.fileClient,func:a.hitch(this,
function(a){if(a&&a.Location){this.gitPath.value=a.Location;for(this.shownGitPath.innerHTML="<a href='"+d.toUrl("navigate/table.html")+"#"+a.ChildrenLocation+"'>"+a.Name+"</a>";a.parent&&!a.parent.Projects;)this.shownGitPath.innerHTML="<a href='"+d.toUrl("navigate/table.html")+"#"+a.parent.ChildrenLocation+"'>"+a.parent.Name+"</a>/"+this.shownGitPath.innerHTML,a=a.parent}})});e.startup();e.show()}})});
define("orion/git/widgets/AddRemoteDialog","i18n!git/nls/gitmessages,dojo,dijit,dijit/Dialog,orion/widgets/_OrionDialogMixin,text!orion/git/widgets/templates/AddRemoteDialog.html".split(","),function(c,d,a){d.declare("orion.git.widgets.AddRemoteDialog",[a.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:!0,templateString:d.cache("orion","git/widgets/templates/AddRemoteDialog.html"),constructor:function(){this.inherited(arguments);this.options=arguments[0]||{}},postMixInProperties:function(){this.inherited(arguments);
this.title=c["Add Remote"];this.gitRemoteLabelText=c["Remote Name:"];this.gitRemoteURILabelText=c["Remote URI:"]},execute:function(){this.options.func&&this.options.func(this.gitRemote.value,this.gitRemoteURI.value);delete this.options.func}})});
define("orion/git/widgets/GitCredentialsDialog","i18n!git/nls/gitmessages,dojo,dijit,dijit/Dialog,orion/widgets/_OrionDialogMixin,text!orion/git/widgets/templates/GitCredentialsDialog.html".split(","),function(c,d,a){d.declare("orion.git.widgets.GitCredentialsDialog",[a.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:!0,templateString:d.cache("orion","git/widgets/templates/GitCredentialsDialog.html"),constructor:function(){this.inherited(arguments);this.options=arguments[0]||{}},postMixInProperties:function(){this.inherited(arguments);
this.title=this.options.title||c["Git Credentials"];this.gitUrlLabelText=c["Repository URL:"];this.gitSshUsernameLabelText=c["Username:"];this.gitSshPasswordLabelText=c["Ssh password:"];this.gitPrivateKeyLabelText=c["Private key:"];this.gitPassphraseLabelText=c["Passphrase (optional):"];if(!this.options.username&&!this.options.password&&!this.options.privatekey&&!this.options.passphrase)this.options.username=!0,this.options.password=!0,this.options.privatekey=!0,this.options.passphrase=!0;if(this.options.serviceRegistry)this._sshService=
this.options.serviceRegistry.getService("orion.net.ssh"),this._progressService=this.options.serviceRegistry.getService("orion.page.progress")},postCreate:function(){this.inherited(arguments);var a=this;this.options.username||d.style(this.gitSshUsernameRow,"display","none");this.options.password||d.style(this.gitSshPasswordRow,"display","none");this.options.privatekey||d.style(this.gitPrivateKeyRow,"display","none");this.options.passphrase||(d.style(this.gitPassphraseRow,"display","none"),d.style(this.gitPassphraseRow_1,
"display","none"));if(this.options.errordata&&this.options.errordata.Url)d.style(this.gitCredentialsLabel,"display","block"),this.url.innerHTML=this.options.errordata.Url;if(this.options.errordata&&this.options.errordata.User&&this.options.errordata.User!=="")this.gitSshUsername.value=this.options.errordata.User,d.style(this.gitSshUsernameRow,"display","none"),setTimeout(function(){a.gitSshPassword.focus()},400);d.connect(this.gitSshPassword,"onfocus",null,d.hitch(this,function(){this.isSshPassword.checked=
!0}));d.connect(this.gitPrivateKey,"onfocus",null,d.hitch(this,function(){this.isPrivateKey.checked=!0}));d.connect(this.gitPassphrase,"onfocus",null,d.hitch(this,function(){this.isPrivateKey.checked=!0}))},execute:function(){if(this._sshService){var a=this;this._sshService.getKnownHosts().then(function(c){a.options.func&&a.options.func({gitSshUsername:a.gitSshUsername.value,gitSshPassword:a.isSshPassword.checked?a.gitSshPassword.value:"",gitPrivateKey:a.isPrivateKey.checked?a.gitPrivateKey.value:
"",gitPassphrase:a.isPrivateKey.checked?a.gitPassphrase.value:"",knownHosts:c});delete a.options.func})}else this.options.func&&this.options.func({gitSshUsername:this.gitSshUsername.value,gitSshPassword:this.gitSshPassword.value,gitPrivateKey:this.gitPrivateKey.value,gitPassphrase:this.gitPassphrase.value,knownHosts:this.gitSshKnownHosts.value}),delete this.options.func}})});
define("orion/git/widgets/RemotePrompterDialog","i18n!git/nls/gitmessages,dojo,dijit,orion/util,orion/explorer,dijit/Dialog,dijit/form/Button,orion/widgets/ExplorerTree,orion/widgets/_OrionDialogMixin,text!orion/git/widgets/templates/RemotePrompterDialog.html".split(","),function(c,d,a,e,g){d.declare("orion.git.widgets.RemotePrompterDialog",[a.Dialog,orion.widgets._OrionDialogMixin],{treeWidget:null,treeRoot:{},widgetsInTemplate:!0,templateString:d.cache("orion","git/widgets/templates/RemotePrompterDialog.html"),
constructor:function(){this.inherited(arguments);this.options=arguments[0]||{};this.treeRoot=this.options.treeRoot},postMixInProperties:function(){this.inherited(arguments);this.title=this.options.title||c["Choose a Folder"];this.newBranchText=c["New Branch:"];this.buttonOk=c.OK},postCreate:function(){this.inherited(arguments);this.loadRemoteChildren(this.treeRoot);d.connect(this.newBranch,"onchange",d.hitch(this,this.validate));if(this.options.hideNewBranch)this.newBranchSection.style.display="none"},
loadRemoteChildren:function(a){this.treeRoot=a;this.createTree(new f(this.gitClient,null,this.gitClient.getGitClone,this.treeRoot))},createTree:function(a){var e=this.treeWidget=new orion.widgets.ExplorerTree({style:"width:100%; height:100%",model:a,region:"center",showRoot:!1,persist:!0,openOnClick:!1,getLabel:function(a){return a.Type==="RemoteTrackingBranch"&&!a.Id?a.Name+c[" [New branch]"]:a.Name},getIconClass:function(a){return a.BranchLocation&&a.RemoteLocation?"gitRepoItem":a.GroupNode?a.Name===
"Branch"?"gitBranchesItem":"gitRemotesItem":a.Type==="Branch"||a.Type==="RemoteTrackingBranch"?"gitBranchItem":a.Type==="Remote"?"gitRemoteItem":"gitDefaultItem"}}),f=this;this.treeWidget._inheritedSelectNode=this.treeWidget._selectNode;this.treeWidget._selectNode=function(a){e._inheritedSelectNode(a);f.newBranch.disabled=a.item&&a.item.Type==="Remote"?!1:!0;d.hitch(f,f.validate)()};this.treeWidget.startup();d.byId(this.treeContentPane.id).appendChild(this.treeWidget.domNode)},validate:function(){var a=
this.treeWidget.getSelectedItems();if(a.length==1)if(a[0].Type==="RemoteTrackingBranch"){this.RemoteBrowserButton.disabled=!1;return}else if(a[0].Type==="Remote"&&this.newBranch.value!=""){this.RemoteBrowserButton.disabled=!1;return}this.RemoteBrowserButton.disabled=!0},execute:function(){var a=this.treeWidget.getSelectedItems();this.onHide();this.options.func&&(a[0].Type==="RemoteTrackingBranch"?this.options.func(a[0],a[0].parent):this.options.func(null,a[0],this.newBranch.value));delete this.options.func}});
var f=function(){function a(c,d,e,f){this.gitClient=c;this.rootPath=d;this.fetchItems=e;this.root=f?f:null}a.prototype=new g.ExplorerModel;a.prototype.getRoot=function(a){this.root?a(this.root):this.fetchItems(this.rootPath).then(d.hitch(this,function(c){this.root=c;a(c)}))};a.prototype.mayHaveChildren=function(a){if(a.children||a.Children)return!0;else if(a.BranchLocation&&a.RemoteLocation)return!0;else if(a.GroupNode)return!0;else if(a.Type==="Remote")return!0;return!1};a.prototype.getIdentity=
function(a){a.Location?(a=a.Location,a=a.replace(/[^\.\:\-\_0-9A-Za-z]/g,"")):a="ROOT";return a};a.prototype.getChildren=function(a,c){a.children=[];if(a.Children){for(var e=0;e<a.Children.length;e++)a.Children[e].parent=a,a.children[e]=a.Children[e];c(a.Children)}else a.BranchLocation&&a.RemoteLocation?(a.children=[{GroupNode:"true",Location:a.BranchLocation,Name:"Branches",parent:a},{GroupNode:"true",Location:a.RemoteLocation,BranchLocation:a.BranchLocation,Name:"Remotes",parent:a},{GroupNode:"true",
Location:a.TagLocation,Name:"Tags",parent:a}],c(a.children)):a.GroupNode?this.gitClient.getGitBranch(a.Location).then(d.hitch(this,function(d){a.children=d.Children;for(var e=0;e<d.Children.length;e++)d.Children[e].parent=a;c(d.Children)})):a.Type==="Remote"&&this.gitClient.getGitBranch(a.Location).then(d.hitch(this,function(d){a.children=d.Children;for(var e=0;e<d.Children.length;e++)d.Children[e].parent=a;c(d.Children)}))};return a}()});
define("orion/git/widgets/OpenCommitDialog","i18n!git/nls/gitmessages,require,dojo,dijit,orion/util,dijit/Dialog,dijit/form/TextBox,orion/widgets/_OrionDialogMixin,text!orion/git/widgets/templates/OpenCommitDialog.html".split(","),function(c,d,a,e){return a.declare("orion.git.widgets.OpenCommitDialog",[e.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:!0,templateString:a.cache("orion","git/widgets/templates/OpenCommitDialog.html"),SEARCH_DELAY:500,timeoutId:null,time:null,options:null,
constructor:function(){this.inherited(arguments);this.timeoutId=null;this.time=0;this.options=arguments[0];this.serviceRegistry=this.options.serviceRegistry;if(!this.serviceRegistry)throw Error("Missing required argument: serviceRegistry");this.repositories=this.options.repositories;if(!this.repositories)throw Error("Missing required argument: repositories");this.commitName=this.options.commitName},postMixInProperties:function(){this.options.title=this.options.title||c["Find Commit"];this.selectFile=
c["Type the commit name (sha1):"];this.searchPlaceHolder=c.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(c){c.keyCode===a.keys.ENTER&&this.results&&(c=a.query("a",this.results),c.length>0&&(window.open(c[0].href),this.hide()))});a.connect(this,
"onMouseUp",function(a){a.target.focus()});this.resourceName.set("value",this.commitName)},checkSearch:function(){clearTimeout(this.timeoutId);var c=(new Date).getTime();c-this.time>this.SEARCH_DELAY?(this.time=c,this.doSearch()):this.timeoutId=setTimeout(a.hitch(this,"checkSearch"),50)},_findCommitLocation:function(c,d,e){var i=this;e==null&&(e=new a.Deferred);c.length>0?i.serviceRegistry.getService("orion.git.provider").doGitLog("/gitapi/commit/"+d+c[0].ContentLocation+"?page=1&pageSize=1").then(function(a){e.callback(a.Children[0])},
function(){i._findCommitLocation(c.slice(1),d,e)}):e.errback();return e},doSearch:function(){var d=this.resourceName&&this.resourceName.get("value");if(d){a.place("<div>"+c["Searching&#x2026;"]+"</div>",this.results,"only");var e=this;this.serviceRegistry.getService("orion.page.message").setProgressMessage(c["Looking for the commit"]);this._findCommitLocation(this.repositories,d).then(function(c){a.empty(e.results);e.displayCommit(c,e.results)},function(){a.place("<div>No commits found</div>",e.results,
"only");e.serviceRegistry.getService("orion.page.message").setProgressMessage("")})}},displayCommit:function(d,e){var h=a.create("div",{style:"padding:10px; max-width:480px"},e),i=d.Message.split(/(\r?\n|$)/)[0],j=a.create("a",{"class":"gitMainDescription",href:"/git/git-commit.html#"+d.Location+"?page=1&pageSize=1"},h);a.place(document.createTextNode(i),j);a.connect(j,"onclick",j,a.hitch(this,function(){this.hide()}));a.create("div",{style:"padding-top:15px"},h);a.create("span",{"class":"gitSecondaryDescription",
innerHTML:c[" commit: "]+d.Name},h);d.Parents&&d.Parents.length>0&&(a.create("div",null,h),a.place(document.createTextNode(c["parent: "]),h),i=a.create("a",{"class":"gitSecondaryDescription",href:"/git/git-commit.html#"+d.Parents[0].Location+"?page=1&pageSize=1"},h),a.place(document.createTextNode(d.Parents[0].Name),i),a.connect(i,"onclick",i,a.hitch(this,function(){this.hide()})));a.create("div",{style:"padding-top:15px"},h);if(d.AuthorImage)i=a.create("span",{"class":"git-author-icon-small",style:"margin-bottom:30px"},
h),j=new Image,j.src=d.AuthorImage,j.name=d.AuthorName,j.width=35,j.height=35,a.place(j,i,"first");a.create("span",{"class":"gitSecondaryDescription",innerHTML:a.string.substitute(c[" authored by ${0} (${1})) on ${2}"],[d.AuthorName,d.AuthorEmail,a.date.locale.format(new Date(d.Time),{formatLength:"short"})])},h);a.create("div",null,h);a.create("span",{"class":"gitSecondaryDescription",innerHTML:a.string.substitute(c["committed by 0 (1)"],[d.CommitterName,d.CommitterEmail])},h)},show:function(){this.inherited(arguments);
this.resourceName.focus()},onHide:function(){clearTimeout(this.timeoutId);this.inherited(arguments)}})});
define("orion/git/widgets/CommitDialog","i18n!git/nls/gitmessages,dojo,dijit,dijit/Dialog,orion/widgets/_OrionDialogMixin,text!orion/git/widgets/templates/CommitDialog.html".split(","),function(c,d,a){d.declare("orion.git.widgets.CommitDialog",[a.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:!0,templateString:d.cache("orion","git/widgets/templates/CommitDialog.html"),constructor:function(){this.inherited(arguments);this.options=arguments[0]||{}},postMixInProperties:function(){this.inherited(arguments);
this.title=c["Commit Changes"];this.commitMessageLabelText=c["Message:"];this.amendLabelText=c["Amend:"];this.committerNameLabelText=c["Committer Name:"];this.committerEmailLabelText=c["Committer Email:"];this.authorNameLabelText=c["Author Name:"];this.authorEmailLabelText=c["Author Email:"]},postCreate:function(){this.inherited(arguments);if(this.options.body.Message)this.commitMessage.value=this.options.body.Message;d.connect(this.commitMessage,"onkeyup",d.hitch(this,this.validate));if(this.options.body.Amend)this.amend.checked=
!0;if(this.options.body.CommitterName)this.committerName.value=this.options.body.CommitterName;d.connect(this.committerName,"onkeyup",d.hitch(this,this.validate));if(this.options.body.CommitterEmail)this.committerEmail.value=this.options.body.CommitterEmail;d.connect(this.committerEmail,"onkeyup",d.hitch(this,this.validate));if(this.options.body.AuthorName)this.authorName.value=this.options.body.AuthorName;d.connect(this.authorName,"onkeyup",d.hitch(this,this.validate));if(this.options.body.AuthorEmail)this.authorEmail.value=
this.options.body.AuthorEmail;d.connect(this.authorEmail,"onkeyup",d.hitch(this,this.validate));this.validate()},validate:function(){this.commitMessage.value?this.committerName.value?this.committerEmail.value?this.authorName.value?this.authorEmail.value?(d.style(this.commitInfoBar,"display","none"),this.commitChangesButton.disabled=!1):(d.style(this.commitInfoBar,"display","block"),this.commitChangesButton.disabled=!0,this.commitInfo.innerHTML=c["The author mail is required."]):(d.style(this.commitInfoBar,
"display","block"),this.commitChangesButton.disabled=!0,this.commitInfo.innerHTML=c["The author name is required."]):(d.style(this.commitInfoBar,"display","block"),this.commitChangesButton.disabled=!0,this.commitInfo.innerHTML=c["The committer mail is required."]):(d.style(this.commitInfoBar,"display","block"),this.commitChangesButton.disabled=!0,this.commitInfo.innerHTML=c["The committer name is required."]):(d.style(this.commitInfoBar,"display","block"),this.commitChangesButton.disabled=!0,this.commitInfo.innerHTML=
c["The commit message is required."])},execute:function(){if(this.options.func){var a={};a.Message=this.commitMessage.value;a.Amend=this.amend.checked?!0:!1;a.CommitterName=this.committerName.value;a.CommitterEmail=this.committerEmail.value;a.AuthorName=this.authorName.value;a.AuthorEmail=this.authorEmail.value;this.options.func(a)}delete this.options.func}})});
define("dojox/layout/ToggleSplitter",["dojo","dijit","dijit/layout/BorderContainer"],function(c,d){c.declare("dojox.layout.ToggleSplitter",[d.layout._Splitter],{open:!0,closedThreshold:5,openSize:"",_closedSize:"0",templateString:'<div class="dijitSplitter dojoxToggleSplitter" dojoAttachEvent="onkeypress:_onKeyPress,onmousedown:_onMouseDown" tabIndex="0" role="separator"><div dojoAttachPoint="toggleNode" class="dijitSplitterThumb dojoxToggleSplitterIcon"></div></div>',postCreate:function(){this._started=
!1;this.inherited(arguments);var a=this.region;c.addClass(this.domNode,"dojoxToggleSplitter"+a.charAt(0).toUpperCase()+a.substring(1));this.connect(this,"onDblClick","_toggleMe")},startup:function(){this.inherited(arguments);var a=this.child.domNode,d=c.style(a,this.horizontal?"height":"width");c.forEach(["toggleSplitterOpen","toggleSplitterClosedThreshold","toggleSplitterOpenSize"],function(a){var c=a.substring(14),c=c.charAt(0).toLowerCase()+c.substring(1);a in this.child&&(this[c]=this.child[a])},
this);if(!this.openSize)this.openSize=this.open?d+"px":"75px";this._openStyleProps=this._getStyleProps(a,!0);this._started=!0;this.set("open",this.open);return this},_onMouseUp:function(){c.disconnect(this._onMoveHandle);c.disconnect(this._onUpHandle);delete this._onMoveHandle;delete this._onUpHandle;delete this._startPosn},_onPrelimMouseMove:function(a){if(Math.abs((this._startPosn||0)-(this.horizontal?a.clientY:a.clientX))>=3)c.disconnect(this._onMoveHandle),this._startDrag(a)},_onMouseDown:function(a){if(this.open){if(!this._onUpHandle)this._onUpHandle=
c.connect(c.body(),"onmouseup",this,"_onMouseUp");if(!this._onMoveHandle)this._startPosn=this.horizontal?a.clientY:a.clientX,this._onMoveHandle=c.connect(c.body(),"onmousemove",this,"_onPrelimMouseMove")}},_handleOnChange:function(){var a=this.child.domNode,d;d=this.horizontal?"height":"width";if(this.open){var g=c.mixin({display:"block",overflow:"auto",visibility:"visible"},this._openStyleProps);g[d]=this._openStyleProps&&this._openStyleProps[d]?this._openStyleProps[d]:this.openSize;c.style(a,g);
this.connect(this.domNode,"onmousedown","_onMouseDown")}else g=c.getComputedStyle(a),d=this._getStyleProps(a,!0,g),g=this._getStyleProps(a,!1,g),this._openStyleProps=d,c.style(a,g);this._setStateClass();this.container._started&&this.container._layoutChildren(this.region)},_getStyleProps:function(a,d,g){g||(g=c.getComputedStyle(a));var f={},h=this.horizontal?"height":"width";f.visibility=d?g.visibility:"hidden";f[h]=d?a.style[h]||g[h]:this._closedSize;var i=["Top","Right","Bottom","Left"];c.forEach(["padding",
"margin","border"],function(a){for(var c=0;c<i.length;c++){var h=a+i[c];a=="border"&&(a+="Width");void 0!==g[h]&&(f[h]=d?g[h]:0)}});return f},_setStateClass:function(){this.open?(c.removeClass(this.domNode,"dojoxToggleSplitterClosed"),c.addClass(this.domNode,"dojoxToggleSplitterOpen"),c.removeClass(this.toggleNode,"dojoxToggleSplitterIconClosed"),c.addClass(this.toggleNode,"dojoxToggleSplitterIconOpen")):(c.addClass(this.domNode,"dojoxToggleSplitterClosed"),c.removeClass(this.domNode,"dojoxToggleSplitterOpen"),
c.addClass(this.toggleNode,"dojoxToggleSplitterIconClosed"),c.removeClass(this.toggleNode,"dojoxToggleSplitterIconOpen"))},_setOpenAttr:function(a){if(this._started)this.open=a,this._handleOnChange(a,!0),this[this.open?"onOpen":"onClose"](this.child)},onOpen:function(){},onClose:function(){},_toggleMe:function(a){a&&c.stopEvent(a);this.set("open",!this.open)},_onKeyPress:function(a){this.inherited(arguments)}});c.extend(d._Widget,{toggleSplitterOpen:!0,toggleSplitterClosedThreshold:5,toggleSplitterOpenSize:""})});
define("orion/widgets/eWebBorderContainer",["dojo","dijit","dijit/layout/BorderContainer","dojox/layout/ToggleSplitter"],function(c,d){c.declare("orion.widgets.eWebBorderContainer",d.layout.BorderContainer,{_splitterClass:"orion.widgets.eWebSplitter",getPreferredLeftPaneWidth:function(){var a=this.getSizeCookie();return a<=0?c.position(this.getRightPane()).w*0.25:a},isLeftPaneOpen:function(){var a=this.getSplitter("left");return a?a.open:!1},getLeftPane:function(){if(this._left)return this._left;
for(var a=this.getChildren(),c=0;c<a.length;c++)if(a[c].region&&(a[c].region==="leading"||a[c].region==="left"))return this._left=a[c].domNode},getHidingPane:function(){return this.getLeftPane()},getRightPane:function(){if(this._center)return this._center;for(var a=this.getChildren(),c=0;c<a.length;c++)if(a[c].region&&a[c].region==="center")return this._center=a[c].domNode},getSizeCookie:function(){var a=this.getSplitter("left");return a?a.getSizeCookie():0},setSizeCookie:function(a){var c=this.getSplitter("left");
if(c)return c.setSizeCookie(a)},toggleLeftPaneState:function(){var a=this.getSplitter("left");a&&a.toggleHidingPaneState()},setToggleCallback:function(a){this.toggleCallback=a},toggle:function(){if(!this._left||!this._center)for(var a=this.getChildren(),d=0;d<a.length;d++)if(a[d].region&&a[d].region==="center")this._center=a[d].domNode;else if(a[d].region&&(a[d].region==="leading"||a[d].region==="left"))this._left=a[d].domNode;var g=this._left,f=this._center,h=c.position(g).w,i=this.isLeftPaneOpen(),
j;j=i?0:this.getPreferredLeftPaneWidth();i||this.toggleLeftPaneState();var k=g.style.overflow,l=f.style.overflow;(new c.Animation({node:g,duration:300,curve:[1,100],onAnimate:c.hitch(this,function(a){g.style.width=h+(j-h)*a/100+"px";g.style.overflow="hidden";f.style.overflow="hidden";this.layout()}),onEnd:c.hitch(this,function(){f.style.overflow=l;g.style.overflow=k;this.toggleCallback&&this.toggleCallback.apply();i?this.toggleLeftPaneState():this.setSizeCookie(null)})})).play()}});c.declare("orion.widgets.eWebSplitter",
dojox.layout.ToggleSplitter,{postCreate:function(){this.inherited(arguments);this.connect(this.toggleNode,"onmousedown","_onThumbMouseDown");this.connect(this.domNode,"onmouseover","_onMouseOver");this._openStateCookieName=this.container.id+"_"+this.region+"_open"},startup:function(){this.inherited(arguments);if(this.container.persist){var a=c.cookie(this._openStateCookieName);a==="true"?this.container.getHidingPane().style.width=this.getSizeCookie()+"px":(a==="false"?this.set("open",!1):this.set("open",
!0),this._handleOnChange())}else this.set("open",!0),this._handleOnChange();return this},_handleOnChange:function(){var a=this.child.domNode,d;d=this.horizontal?"height":"width";if(this.open){var g=c.mixin({display:"block",visibility:"visible"},this._openStyleProps);g[d]=this._openStyleProps&&this._openStyleProps[d]?this._openStyleProps[d]:this.openSize;c.style(a,g);this.connect(this.domNode,"onmousedown","_onMouseDown")}else g=c.getComputedStyle(a),d=this._getStyleProps(a,!0,g),g=this._getStyleProps(a,
!1,g),this._openStyleProps=d,c.style(a,g);this._setStateClass();this.container._started&&(a=0,this.open&&this.openSize&&(a=parseInt(this.openSize.replace("px",""),10)),this.container._layoutChildren(this.region,a))},_removeFocusVisual:function(a){c.stopEvent(a)},_onMouseDown:function(a){this.open?this._startDrag(a):this._removeFocusVisual(a)},_onMouseOver:function(){this.domNode.style.cursor=this.open?"e-resize":"default"},_onThumbMouseDown:function(a){a.stopPropagation();this._removeFocusVisual(a);
this.container.toggle()},_toggleMe:function(){},getSizeCookie:function(){if(this.container.persist){var a=c.cookie(this._cookieName);if(a)return parseInt(a.replace("px",""),10)}return 0},setSizeCookie:function(){this.container.persist&&c.cookie(this._cookieName,this.child.domNode.style[this.horizontal?"height":"width"],{expires:365})},toggleHidingPaneState:function(){this.set("open",!this.open);this.container.getHidingPane().style.visibility=this.open?"visible":"hidden";this.container.persist&&c.cookie(this._openStateCookieName,
this.open?"true":"false",{expires:365})}});c.declare("orion.widgets.eWebBorderContainerReverse",d.layout.BorderContainer,{_splitterClass:"orion.widgets.eWebSplitter",getPreferredRightPaneWidth:function(){var a=this.getSizeCookie();return a<=0?c.position(this.getLeftPane()).w*0.25:a},isRightPaneOpen:function(){var a=this.getSplitter("right");return a?a.open:!1},getRightPane:function(){if(this._right)return this._right;for(var a=this.getChildren(),c=0;c<a.length;c++)if(a[c].region&&(a[c].region==="trailing"||
a[c].region==="right"))return this._right=a[c].domNode},getHidingPane:function(){return this.getRightPane()},getLeftPane:function(){if(this._center)return this._center;for(var a=this.getChildren(),c=0;c<a.length;c++)if(a[c].region&&a[c].region==="center")return this._center=a[c].domNode},getSizeCookie:function(){var a=this.getSplitter("right");return a?a.getSizeCookie():0},setSizeCookie:function(a){var c=this.getSplitter("right");if(c)return c.setSizeCookie(a)},toggleRightPaneState:function(){var a=
this.getSplitter("right");a&&a.toggleHidingPaneState()},setToggleCallback:function(a){this.toggleCallback=a},toggle:function(){if(!this._right||!this._center)for(var a=this.getChildren(),d=0;d<a.length;d++)if(a[d].region&&a[d].region==="center")this._center=a[d].domNode;else if(a[d].region&&(a[d].region==="trailing"||a[d].region==="right"))this._right=a[d].domNode;var g=this._right,f=this._center,h=c.position(g).w,i=this.isRightPaneOpen(),j;j=i?0:this.getPreferredRightPaneWidth();i||this.toggleRightPaneState();
var k=g.style.overflow,l=f.style.overflow;(new c.Animation({node:g,duration:300,curve:[1,100],onAnimate:c.hitch(this,function(a){g.style.width=h+(j-h)*a/100+"px";g.style.overflow="hidden";f.style.overflow="hidden";this.layout()}),onEnd:c.hitch(this,function(){f.style.overflow=l;g.style.overflow=k;this.toggleCallback&&this.toggleCallback.apply();i?this.toggleRightPaneState():this.setSizeCookie(null)})})).play()}})});
define("dojox/form/uploader/Base","dojo,dijit,dojox,dojox/form/uploader/Base,dijit/_Widget,dijit/_Templated".split(","),function(c,d){c.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){c.stopEvent(a);this.submit(c.formToObject(this.form))})},supports:function(a){if(!this._hascache)this._hascache={testDiv:c.create("div"),testInput:c.create("input",{type:"file"}),xhr:window.XMLHttpRequest?new XMLHttpRequest:{}},c.style(this._hascache.testDiv,"opacity",0.7);switch(a){case "FormData":return!!window.FormData;case "sendAsBinary":return!!this._hascache.xhr.sendAsBinary;
case "opacity":return c.style(this._hascache.testDiv,"opacity")==0.7;case "multiple":if(this.force=="flash"||this.force=="iframe")break;a=c.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 c=Math.round(a/1024*1E5)/1E5,d=Math.round(a/1048576*1E5)/1E5,f=Math.round(a/1073741824*1E5)/1E5,h=a;c>1&&(h=c.toFixed(1)+
" kb");d>1&&(h=d.toFixed(1)+" mb");f>1&&(h=f.toFixed(1)+" gb");return{kb:c,mb:d,gb:f,bytes:a,value:h}}})});
define("dojox/form/Uploader",["dojo","dijit","dojox","dojox/form/uploader/Base"],function(c,d,a){c.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)c.body().appendChild(this.domNode),this._getButtonStyle(this.domNode),a=!0;this._setButtonStyle();a&&c.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();c.forEach(this._inputs,c.destroy,c);this._inputs=[];this._nameIndex=0;this._createInput()},getFileList:function(){var a=[];this.supports("multiple")?c.forEach(this.inputNode.files,function(c,d){a.push({index:d,name:c.name,size:c.size,type:c.type})},this):c.forEach(this._inputs,function(c,d){a.push({index:d,name:c.value.substring(c.value.lastIndexOf("\\")+1),size:0,type:c.value.substring(c.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),c.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?c.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;c.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();c.style(this.button.domNode,{margin:"0px",display:"block",verticalAlign:"top"});c.style(this.button.domNode.firstChild,{margin:"0px",display:"block"});a||document.body.removeChild(this.domNode)},
_createInput:function(){this._inputs.length&&(c.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=c.create("input",{type:"file",name:a,className:"dojoxInputNode"},this.domNode,"first");this.supports("multiple")&&this.multiple&&c.attr(this.inputNode,"multiple",!0);this._inputs.push(this.inputNode);c.style(this.inputNode,{fontSize:this.inputNodeFontSize+"em"});
a=c.marginBox(this.inputNode);c.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=c.hitch(this,function(a){this._cons.push(c.connect(this.inputNode,a,this,function(){this.button._cssMouseEvent({type:a})}))});a("mouseover");a("mouseout");a("mousedown");this._cons.push(c.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=c.style(this.button.domNode.firstChild,"border");this._cons.push(c.connect(this.inputNode,"focus",this,function(){c.style(this.button.domNode.firstChild,"border","1px dashed #ccc")}));this._cons.push(c.connect(this.inputNode,"blur",this,function(){c.style(this.button.domNode.firstChild,"border",d)}))}},_disconnectButton:function(){c.forEach(this._cons,c.disconnect,
c)}});(function(){a.form.UploaderOrg=a.form.Uploader;var d=[a.form.UploaderOrg];a.form.addUploaderPlugin=function(a){d.push(a);c.declare("dojox.form.Uploader",d,{})}})()});
define("dojox/form/uploader/plugins/HTML5",["dojo","dijit","dojox","dojox/form/Uploader"],function(c,d,a){c.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=c.formToObject(a);console.log("form data:",a);this.upload(a)},sendAsBinary:function(a){if(this.getUrl()){var c="---------------------------"+(new Date).getTime(),d=this.createXhr();d.setRequestHeader("Content-Type","multipart/form-data; boundary="+c);if(a=this._buildRequestBody(a,c))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;c.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 c={bytesLoaded:a.loaded,bytesTotal:a.total,type:a.type,timeStamp:a.timeStamp};a.type=="load"?(c.percent="100%",c.decimal=1):(c.decimal=a.loaded/a.total,c.percent=Math.ceil(a.loaded/a.total*100)+"%");this.onProgress(c)}},createXhr:function(){var a=
new XMLHttpRequest,d;a.upload.addEventListener("progress",c.hitch(this,"_xhrProgress"),!1);a.addEventListener("load",c.hitch(this,"_xhrProgress"),!1);a.addEventListener("error",c.hitch(this,function(a){this.onError(a);clearInterval(d)}),!1);a.addEventListener("abort",c.hitch(this,function(a){this.onAbort(a);clearInterval(d)}),!1);a.onreadystatechange=c.hitch(this,function(){a.readyState===4&&(console.info("COMPLETE"),clearInterval(d),this.onComplete(c.eval(a.responseText)))});a.open("POST",this.getUrl());
d=setInterval(c.hitch(this,function(){}),250);return a},_buildRequestBody:function(a,d){var f="",d="--"+d,h=[];c.forEach(this.inputNode.files,function(a,c){var e=this.name+"s[]",i=this.inputNode.files[c].fileName,o;try{o=this.inputNode.files[c].getAsBinary()+"\r\n",f+=d+"\r\n",f+="Content-Disposition: form-data; ",f+='name="'+e+'"; ',f+='filename="'+i+'"\r\n',f+="Content-Type: "+this.getMimeType()+"\r\n\r\n",f+=o}catch(n){h.push({index:c,name:i})}},this);h.length&&h.length>=this.inputNode.files.length&&
(this.onError({message:this.errMsg,filesInError:h}),f=!1);if(!f)return!1;if(a)for(var i in a)f+=d+"\r\n",f+="Content-Disposition: form-data; ",f+='name="'+i+'"\r\n\r\n',f+=a[i]+"\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(c,d,a){c.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),c.stopEvent(a)},uploadIFrame:function(){this.getUrl();c.io.iframe.send({url:this.getUrl(),
form:this.form,handleAs:"json",error:c.hitch(this,function(a){console.error("HTML Upload Error:"+a.message)}),load:c.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(c,d,a){c.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(c.hitch(this,function(){this.hideProgress(!0)}),1250)})):(this._upCheckCnt++,setTimeout(c.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;c.style(this.percentBarNode,"width",a.percent)},_hideShowProgress:function(a){var d=this.progressNode,f=function(){c.style(d,"display",a.endDisp)};a.ani?(c.style(d,"display","block"),c.animateProperty({node:d,properties:{height:{start:a.beg,end:a.end,units:"px"}},onEnd:f}).play()):f()},_onUploaderChange:function(a){this.reset();c.forEach(a,function(a,c){this._addRow(c+1,
this.getFileType(a.name),a.name,a.size)},this)},_addRow:function(a,d,f,h){var i,j=this.listNode.insertRow(-1);i=j.insertCell(-1);c.addClass(i,"dojoxUploaderIndex");i.innerHTML=a;i=j.insertCell(-1);c.addClass(i,"dojoxUploaderIcon");i.innerHTML=d;i=j.insertCell(-1);c.addClass(i,"dojoxUploaderFileName");i.innerHTML=f;i=j.insertCell(-1);c.addClass(i,"dojoxUploaderSize");i.innerHTML=this.convertBytes(h).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(c,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">'+
c["Drag a File or Zip here"]+'</div><div class="tipInstruction">'+c["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="'+c["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=c["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(c,d,a,e,g,f,h,i){var j={},c=window.location.href.split("#")[0],k=c.substring(0,c.length-window.location.pathname.length);j._cloneItemWithoutChildren=function m(a){if(a===null||typeof a!=="object")return a;var c=
a.constructor(),d;for(d in a)d!=="children"&&d!=="Children"&&(c[d]=m(a[d]));return c};j._createOpenWithCommands=function(a){function c(a,d){for(var e=a.getServiceReferences("orion.navigate.openWith"),f=[],g=0;g<e.length;g++){var h=e[g];h.getProperty("editor")===d.id&&(h=h.getProperty("contentType"),h instanceof Array?f=f.concat(h):h!==null&&typeof h!=="undefined"&&f.push(h))}return f}for(var d=function(){for(var c=a.getServiceReferences("orion.edit.editor"),d=[],e=0;e<c.length;e++){var f=c[e],g=f.getProperty("id");
d.push({id:g,name:f.getProperty("name"),nameKey:f.getProperty("nameKey"),nls:f.getProperty("nls"),uriTemplate:f.getProperty("orionTemplate")||f.getProperty("uriTemplate")})}return d}(),e=function(a){for(a=a.getServiceReferences("orion.navigate.openWith.default");0<a.length;)return{editor:a[0].getProperty("editor")};return null}(a),f=[],g=0;g<d.length;g++){var h=d[g],i=e&&e.editor===h.id,j=c(a,h);j.length&&f.push({properties:{name:h.name||h.id,nameKey:h.nameKey,id:"eclipse.openWithCommand."+h.id,tooltip:h.name,
tooltipKey:h.nameKey,contentType:j,uriTemplate:h.uriTemplate,nls:h.nls,forceSingleItem:!0,isEditor:i?"default":"editor"},service:{}})}return f};j._makeValidator=function(a,c,e,g){function i(a,c,d,e){var f=d.match,g;if(c.indexOf("|")>=0)return g=c.substring(0,c.indexOf("|")),c=c.substring(c.indexOf("|")+1),i(a,g,d,e)?!0:i(a,c,d,e);else if(c.indexOf(":")>=0)return g=c.substring(0,c.indexOf(":")),c=c.substring(c.indexOf(":")+1),a[g]?i(a[g],c,d,e):!1;else{a:{g=!1;var h;if(a[c]){if(f)if(typeof f==="string"){if(!typeof(a[c]===
"string")){d=!1;break a}if(d.variableName){if(f=RegExp(f).exec(a[c]))g=f[0],h=d.variableMatchPosition==="before"?a[c].substring(0,f.index):d.variableMatchPosition==="after"?a[c].substring(f.index+g.length):d.variableMatchPosition==="only"?g:a[c],g=!0}else{d=RegExp(f).test(a[c]);break a}}else a[c]===f&&(h=a[c],g=!0);else h=a[c],g=!0;if(g&&d.variableName&&(e[d.variableName]=h,e.itemCached=a,d.replacements))for(a=0;a<d.replacements.length;a++)c=!1,d.replacements[a].pattern?e[d.variableName]=e[d.variableName].replace(RegExp(d.replacements[a].pattern),
d.replacements[a].replacement||""):c=!0,c&&window.console.log("Invalid replacements specified in validation property.  "+d.replacements[a]);d=g}else d=!1}return d}}c={info:a};c.validationFunction=d.hitch(c,function(c){typeof g==="function"&&(c=g.call(this,c));if(c){if(d.isArray(c)){if((this.info.forceSingleItem||this.info.uriTemplate)&&c.length!==1)return!1;if(c.length<1)return!1}else c=[c];for(var h=0;h<c.length;h++){var j;a:{var k=c[h],o=e;if(this.info.validationProperties)for(j=0;j<this.info.validationProperties.length;j++){var w=
this.info.validationProperties[j];if(w.source){if(!i(k,w.source,w,this)){j=!1;break a}}else{window.console.log("Invalid validationProperties in "+a.id+".  No source property specified.");j=!1;break a}}if(this.info.contentType&&o){w=!1;if(k=f.getFilenameContentType(k.Name,o))for(j=0;j<this.info.contentType.length;j++)if(k.id===this.info.contentType[j]){w=!0;break}j=w}else j=!0}if(!j)return!1}return!0}return!1});c.generatesURI=d.hitch(c,function(){return!!this.info.uriTemplate});c.getURI=d.hitch(c,
function(a){if(this.info.uriTemplate){var c={},d;for(d in a)a.hasOwnProperty(d)&&(c[d]=a[d]);if(this.info.validationProperties)for(d=0;d<this.info.validationProperties.length;d++){var e=this.info.validationProperties[d];e.source&&e.variableName&&(this.itemCached===a&&this[e.variableName]||i(a,e.source,e,this),a[e.variableName]?window.console.log("Variable name "+e.variableName+" in the extension "+this.info.id+" conflicts with an existing property in the item metadata."):c[e.variableName]=this[e.variableName])}c.OrionHome=
k;a=new h(this.info.uriTemplate);return window.decodeURIComponent(a.expand(c))}return null});return c};j._createCommandOptions=function(a,c,e,f,g,h){function k(i,q){var t=j._makeValidator(a,e,f,h);i.visibleWhen=t.validationFunction;if(g)t.generatesURI()?i.hrefCallback=d.hitch(t,function(a){return this.getURI(d.isArray(a.items)?a.items[0]:a.items)}):i.callback=d.hitch(a,function(a){var f;if(this.forceSingleItem)a=d.isArray()?a.items[0]:a.items,f=j._cloneItemWithoutChildren(a);else if(d.isArray(a.items)){f=
[];for(var g=0;g<a.items.length;g++)f.push(j._cloneItemWithoutChildren(a.items[g]))}else f=j._cloneItemWithoutChildren(a.items);c.run?c.run(f):e&&e.getService(c).run(f)});q.resolve(i)}var t=new d.Deferred;a.nls?i.getMessageBundle(a.nls).then(function(c){k({name:a.nameKey?c[a.nameKey]:a.name,image:a.image,id:a.id||a.name,tooltip:a.tooltipKey?c[a.tooltipKey]:a.tooltip,isEditor:a.isEditor},t)}):k({name:a.name,image:a.image,id:a.id||a.name,tooltip:a.tooltip,isEditor:a.isEditor},t);return t};j.getOpenWithCommands=
function(a){var c=[],d;for(d in a._commandList){var e=a._commandList[d];e.isEditor&&c.push(e)}return c};return j});
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(c,d,a,e,g,f,h,i,j,k,l,m,o,n,
p){function r(c,d){if(c.getLabel)return c.getLabel();else{var e=new a.Deferred;e.callback(d.properties.name);return e}}function s(c){(c=c.getService("orion.page.progress"))&&a.hitch(c,c.init)("progressPane")}function q(a,c){var d=a.getService("orion.core.auth");d!==null&&d.getUser().then(function(a){a.Name?c.set("label",a.Name):a.login&&c.set("label",a.login)})}function t(d){var g=d.getServiceReferences("orion.core.auth");y=[];var h=a.byId("userMenu");if(h){if(!e.byId("logins")){var i=new orion.widgets.UserMenuDropDown({id:"logins",
dropDown:K,label:c.Options,showLabel:!0});a.place(i.domNode,h,"only");i.valueNode&&a.destroy(i.valueNode);i.titleNode&&a.attr(i.titleNode,"title")&&a.removeAttr(i.titleNode,"title");new f.CommandTooltip({connectId:[i.focusNode],label:c.Options,position:["above","left","right","below"]});q(d,i)}for(h=0;h<g.length;h++){var i=g[h],j=d.getService(i);a.hitch(this,function(a,c){r(a,c).then(function(c){a.getKey().then(function(d){y.push(d);a.getUser().then(function(e){x.addUserItem(d,a,c,e);K.addUserItem(d,
a,c,e)},function(e,f){x.addUserItem(d,a,c);K.addUserItem(d,a,c,f)});window.addEventListener("storage",function(){z[d]!==localStorage.getItem(d)&&(z[d]=localStorage.getItem(d),a.getUser().then(function(e){x.addUserItem(d,a,c,e);K.addUserItem(d,a,c,e)},function(){x.addUserItem(d,a,c);K.addUserItem(d,a,c)}))},!1)})})})(j,i)}}}function u(){if(a.byId("relatedLinks")&&A){var c=e.byId("related");c&&c.closeDropDown();A.focusedChild=null;a.forEach(A.getChildren(),function(a){A.removeChild(a);a.destroy()})}}
function v(d,f){A||(A=new e.Menu({style:"display: none;padding:3px;border-radius:3px;",id:"relatedLinksMenu"}));d._addMenuItem(A,f);var g=e.byId("related"),h=a.byId("relatedLinks");h&&!g&&(g=new orion.widgets.UserMenuDropDown({id:"related",label:c.Related,dropDown:A}),a.addClass(g.domNode,"bannerMenu"),a.place(g.domNode,h,"only"),j.forceLayout(h))}function w(c,d,e,g,h){var l,k=c.getServiceReferences("orion.page.link.related");if(!(k.length<=0)){var m=a.byId("relatedLinks");m&&a.when(function(){if(l)return l;
var a=c.getService("orion.core.contenttypes");a||(a=new o.ContentTypeService(c),a=c.getService("orion.core.contenttypes"));return a.getContentTypes().then(function(a){return l=a})}(),a.hitch(this,function(){var o;u();for(var r=[],n=0;n<k.length;n++){var q={},t,s=k[n].getPropertyNames();for(t=0;t<s.length;t++)q[s[t]]=k[n].getProperty(s[t]);if(q.id){var p=function(c){if(c)if(!c.visibleWhen||c.visibleWhen(d)){var e=new f.CommandInvocation(g,d,d,null,c);v(c,e)}else typeof h==="function"&&(o||(o=h()),
a.when(o,a.hitch(c,function(a){a&&d===I&&(!this.visibleWhen||this.visibleWhen(a))&&v(this,new f.CommandInvocation(g,a,a,null,this))})))},w=null;if(a.indexOf(e,q.id)<0)if((q.nls&&q.nameKey||q.name)&&q.uriTemplate)t=i._createCommandOptions(q,k[n],c,l,!0),r.push(t),t.then(a.hitch(this,function(a){a=new f.Command(a);p(a)}));else{if(!w&&(w=g.findCommand(q.id))){p(w);continue}if(!w){var C=c.getServiceReferences("orion.navigate.command");for(t=0;t<C.length;t++)if(C[t].getProperty("id")===q.id){for(var q=
{},s=C[t].getPropertyNames(),B=0;B<s.length;B++)q[s[B]]=C[t].getProperty(s[B]);t=i._createCommandOptions(q,C[t],c,l,!0);r.push(t);t.then(a.hitch(this,function(a){w=new f.Command(a);p(w)}));break}}}}}(new a.DeferredList(r)).addBoth(a.hitch(this,function(){var c=a.byId("relatedLinks");A&&c&&(A.getChildren().length===0?a.style(c,"visibility","hidden"):a.style(c,"visibility","visible"));j.forceLayout(m)}))}))}}function C(c){var d=a.byId("globalActions");d&&(a.empty(d),c.renderCommands(d.id,d,{},{},"tool"))}
function H(a){var d=a.getService("orion.core.favorite");d||(d=new m.FavoritesService({serviceRegistry:a}),d=a.getService("orion.core.favorite"));E&&E.Location&&d.hasFavorite(E.ChildrenLocation||E.Location).then(function(e){e?a.getService("orion.page.message").setMessage(E.Name+c[" is already a favorite."],2E3):(d.makeFavorites([E]),a.getService("orion.page.message").setMessage(E.Name+c[" has been added to the favorites list."],2E3))})}function D(d,e){var g=a.byId("pageFavorite");g&&(E&&E.Location?
(a.addClass(g,"bannerButton"),a.connect(g,"onclick",this,function(){H(d)}),a.connect(g,"onkeypress",this,function(c){c.keyCode===a.keys.ENTER&&H(d)}),new f.CommandTooltip({connectId:[g],label:c["Add to the favorites list"],position:["below","left","right","above"],commandService:e}),a.style(g,"visibility","visible")):a.style(g,"visibility","hidden"))}var B=function(a){var c=document.createElement("a");c.href=a;return c.href}(d.toUrl("auth/NotifyAuthentication.html")),z={},x=new orion.widgets.LoginDialog,
K=new orion.widgets.UserMenu({loginDialog:x}),y=[],A,I,L=[],E=null,F;return{generateUserInfo:t,generateRelatedLinks:w,generateDomCommandsInBanner:function(c,d,e,f,g,h,i){c.closeParameterCollector();if(h=a.byId("pageActions"))a.empty(h),(h=c.renderCommands(h.id,h,e||d,d,"button"))&&h.then?h.then(function(){c.processURL(window.location.href)}):c.processURL(window.location.href);if(!i&&(h=a.byId("pageNavigationActions")))a.empty(h),c.renderCommands(h.id,h,g||e||d,f||d,"button")},generateBanner:function(i,
l,o,r,q,u,v,w){function B(c){a.query(".targetSelector").forEach(function(a){a.target=c})}function x(){r.getPreferences("/settings",2).then(function(a){a=a.get("General");if(a!==void 0&&(a=JSON.parse(a)))a=r.getSetting(a,"Navigation","Links"),B(a==="Open in new tab"?"_blank":"_self")})}var z,H=a.byId(i);if(!H)throw c["could not find banner parent, id was "]+i;a.byId("staticBanner")||a.place(g.topHTMLFragment,H,"only");(i=a.byId("pageToolbar"))?(a.place(g.toolbarHTMLFragment,i,"only"),a.addClass(i,
"toolComposite")):(i=a.create("div",{id:"pageToolbar","class":"toolbar toolComposite layoutBlock"},"titleArea","after"),a.place(g.toolbarHTMLFragment,i,"only"));a.byId("footerContent")||(i=a.byId("footer"))&&a.place(g.bottomHTMLFragment,i,"only");o.setParameterCollector(new h.CommandParameterCollector);a.place('<div id="keyAssist" style="display: none" class="keyAssistFloat" role="list" aria-atomic="true" aria-live="assertive"></div>',document.body,"last");var A=a.byId("primaryNav");if(A)for(var i=
l.getServiceReferences("orion.page.link"),u=p.matchResourceParameters(window.location.href),F={OrionHome:window.location.protocol+"//"+window.location.host,Location:u.resource},u=0;u<i.length;u++){for(var y={},E=i[u].getPropertyNames(),I=0;I<E.length;I++)y[E[I]]=i[u].getProperty(E[I]);y.uriTemplate&&y.nls&&(y.name||y.nameKey)?d(["i18n!"+y.nls],function(c){var d=new n(y.uriTemplate),d=window.decodeURIComponent(d.expand(F)),d=a.create("a",{href:d,target:"_self","class":"targetSelector"},A,"last");z=
document.createTextNode(y.nameKey?c[y.nameKey]:y.name);a.place(z,d,"only")}):y.uriTemplate&&y.name&&(E=new n(y.uriTemplate),E=window.decodeURIComponent(E.expand(F)),E=a.create("a",{href:E,target:"_self","class":"targetSelector"},A,"last"),z=document.createTextNode(y.name),a.place(z,E,"only"))}var L=a.byId("search");if(!L)throw"failed to generate HTML for banner";a.connect(L,"onkeypress",function(e){if(e.charOrCode===a.keys.ENTER)if(q){if(L.value.length>0)e=q.createSearchQuery(L.value),window.location=
d.toUrl("search/search.html")+"#"+e}else window.alert(c["Can't search: no search service is available"])});i=new f.Command({name:c["Make Favorite"],tooltip:c["Add to the favorites list"],imageClass:"core-sprite-makeFavorite",id:"orion.makeFavorite",visibleWhen:function(c){c=a.isArray(c)?c:[c];if(c.length===0)return!1;for(var d=0;d<c.length;d++)if(!c[d].Location)return!1;return!0},callback:function(d){for(var d=a.isArray(d.items)?d.items:[d.items],e=l.getService("orion.core.favorite"),f=function(a){return function(d){d?
l.getService("orion.page.message").setMessage(a.Name+c[" is already a favorite."],2E3):e.makeFavorites(a)}},g=0;g<d.length;g++){var h=d[g];e.hasFavorite(h.ChildrenLocation||h.Location).then(f(h))}}});o.addCommand(i);var S=function(c,d,e){var f=d.getService("orion.core.favorite");f||(f=new m.FavoritesService({serviceRegistry:d}),f=d.getService("orion.core.favorite"));var g=new orion.widgets.OpenResourceDialog({searcher:c,searchRenderer:c.defaultRenderer,favoriteService:f});e&&a.connect(g,"onHide",
function(){e.getTextView().focus()});window.setTimeout(function(){g.show()},0)},i=new f.Command({name:c["Find File Named..."],tooltip:c["Choose a file by name and open an editor on it"],id:"eclipse.openResource",callback:function(){S(q,l,v)}});v&&(v.getTextView().setKeyBinding(new k.KeyBinding("f",!0,!0,!1),i.id),v.getTextView().setAction(i.id,function(){S(q,l,v);return!0},i));o.addCommand(i);o.registerCommandContribution("globalActions","eclipse.openResource",100,null,!0,new f.CommandKeyBinding("f",
!0,!0));i=new f.Command({name:c["Toggle banner and footer"],tooltip:c["Hide or show the page banner and footer"],id:"orion.toggleTrim",callback:function(){var c=e.byId(H.parentNode.id);if(c){var d=a.byId("footer");H.style.display==="none"?(H.style.display="block",d.style.display="block"):(H.style.display="none",d.style.display="none");c.layout()}return!0}});o.addCommand(i);o.registerCommandContribution("globalActions","orion.toggleTrim",100,null,!0,new f.CommandKeyBinding("m",!0,!0));v&&(v.getTextView().setKeyBinding(new f.CommandKeyBinding("m",
!0,!0),i.id),v.getTextView().setAction(i.id,i.callback,i));var P=a.byId("keyAssist");a.connect(document,"onkeypress",a.hitch(this,function(c){if(c.charOrCode===a.keys.ESCAPE)P.style.display="none"}));a.connect(document,"onclick",a.hitch(this,function(a){if((a=a.target||a.originalTarget||a.srcElement)&&a.id!=="keyAssist")P.style.display="none"}));v&&v.getTextView().addEventListener("MouseDown",function(){P.style.display="none"});w&&w.addHandler({isActive:function(){return P.style.display==="block"},
cancel:function(){return this.isActive()?(P.style.display="none",!0):!1}});w=new f.Command({name:c["System Configuration Details"],tooltip:c["System Config Tooltip"],id:"orion.configDetailsPage",hrefCallback:function(){return d.toUrl("help/about.html")}});o.addCommand(w);o.registerCommandContribution("globalActions","orion.configDetailsPage",100,null,!0,new f.CommandKeyBinding(112,!0,!0));w=new f.Command({name:c["Background Operations"],tooltip:c["Background Operations Tooltip"],id:"orion.backgroundOperations",
hrefCallback:function(){return d.toUrl("operations/list.html")}});o.addCommand(w);o.registerCommandContribution("globalActions","orion.backgroundOperations",100,null,!0,new f.CommandKeyBinding("o",!0,!0));w=new f.Command({name:c["Show Keys"],tooltip:c["Show a list of all the keybindings on this page"],id:"eclipse.keyAssist",callback:function(){if(P.style.display==="none"){a.empty(P);if(v){a.place("<h2>"+c.Editor+"</h2>",P,"last");for(var d=v.getTextView().getActions(!1),e=0;e<d.length;e++){var f=
d[e],g=f,h=v.getTextView(),i=h.getActionDescription(f);if(i&&i.name)g=i.name;f=h.getKeyBindings(f);for(h=0;h<f.length;h++)a.place('<span role="listitem">'+j.getUserKeyString(f[h])+" = "+g+"<br></span>",P,"last")}}a.place("<h2>"+c.Global+"</h2>",P,"last");o.showKeyBindings(P);P.style.display="block"}else P.style.display="none";return!0}});o.addCommand(w);o.registerCommandContribution("globalActions","eclipse.keyAssist",100,null,!0,new f.CommandKeyBinding(191,!1,!0));v&&(i=window.navigator.platform.indexOf("Mac")!==
-1,v.getTextView().setKeyBinding(new f.CommandKeyBinding(191,!1,!0,!i,i),w.id),v.getTextView().setAction(w.id,w.callback,w));K.setKeyAssist(w.callback);D(l,o);C(o);t(l);s(l);j.forceLayout(H.parentNode);a.subscribe("/dojo/hashchange",o,function(){o.processURL(window.location.href)});window.setTimeout(function(){x()},0)},notifyAuthenticationSite:B,setPendingAuthentication:function(c){x.setPendingAuthentication(c);for(var d in c)if(c.hasOwnProperty(d)){var f=a.byId("userMenu");if(f.innerHTML)try{e.popup.open({popup:x,
around:f})}catch(g){}else window.setTimeout(function(){try{e.popup.open({popup:x,around:f})}catch(a){}},500);return}e.popup.hide&&e.popup.hide(x);e.popup.close(x)},getAuthenticationIds:function(){return y},setPageTarget:function(c){var d,e,f=c.breadcrumbRootName;c.target?(c.searchService&&c.searchService.setLocationByMetaData(c.target),c.fileService&&!c.breadcrumbTarget&&(e=f?f+" ":"",e+=c.fileService.fileServiceName(c.target.Location),f=null),d=c.name||c.target.Name,I=c.target,w(c.serviceRegistry,
c.target,L,c.commandService,c.makeAlternate)):(c.breadcrumbTarget||(f=f||c.task||c.name),d=c.name);(F=c.title)||(F=d?d+" - "+c.task:c.task);window.document.title=F;a.empty("location");new l.BreadCrumbs({container:"location",resource:c.breadcrumbTarget||c.target,rootSegmentName:f,workspaceRootSegmentName:e,makeHref:c.makeBreadcrumbLink});E=c.target&&c.isFavoriteTarget?c.target:null;D(c.serviceRegistry,c.commandService)},setDirtyIndicator:function(c){if(F)F.charAt(0)==="*"&&!c&&(F=F.substring(1)),c&&
F.charAt(0)!=="*"&&(F="*"+F),window.document.title=F;var d=a.byId("dirty");if(d)d.innerHTML=c?"*":""},setPageCommandExclusions:function(a){L=a},authenticatedService:function(a){x.authenticatedService(a)}}});
define("orion/progress",["i18n!orion/nls/messages","require","dojo","orion/globalCommands","orion/widgets/OperationsDialog"],function(c,d,a,e){function g(a,c){this._serviceRegistry=a;this._serviceRegistration=a.registerService("orion.page.progress",this);this._operationsClient=c;this._initDone=!1;this._topicListeners={};this._myOperations={};this._lastIconClass=this._lastOperation=null}g.prototype={init:function(c){if(!this._progressPane){this._progressPane=a.byId(c);this._operationsDialog=new orion.widgets.OperationsDialog;
a.connect(this._progressPane,"onclick",a.hitch(this,this._openOperationsPopup));var d=this;a.connect(this._progressPane,"onkeypress",function(c){(c.charOrCode===" "||c.keyCode===a.keys.ENTER)&&a.hitch(d,d._openOperationsPopup)()});new Date-this.getLastListUpdate()>3E5?this._operationsClient.getRunningOperations().then(function(c){a.hitch(d,d._loadOperationsList)(c);window.setTimeout(function(){a.hitch(d,d._checkOperationsChanges())},5E3)},function(a){console.error(a)}):(a.hitch(d,d._generateOperationsInfo(JSON.parse(localStorage.getItem("orionOperations")||
'{"Children": []}'))),window.setTimeout(function(){a.hitch(d,d._checkOperationsChanges())},5E3));window.addEventListener("storage",function(c){e.getAuthenticationIds().indexOf(c.key)>=0&&d._operationsClient.getRunningOperations().then(function(c){a.hitch(d,d._loadOperationsList)(c)},function(a){console.error(a)})},!1);window.addEventListener("storage",function(c){c.key==="orionOperations"&&a.hitch(d,d._generateOperationsInfo(JSON.parse(localStorage.getItem("orionOperations")||'{"Children": []}')))})}},
_loadOperationsList:function(a){a.lastClientDate=new Date;a.lastClientDate-this.getLastListUpdate()>3E5&&(localStorage.setItem("orionOperations",JSON.stringify(a)),this._generateOperationsInfo(a))},getLastListUpdate:function(){var a=JSON.parse(localStorage.getItem("orionOperations")||'{"Children": []}');return a.lastClientDate?new Date(a.lastClientDate):new Date(0)},_markOperationAsFailed:function(a,d,e){a.Message=c["Operation status is unknown"];a.Running=!1;a.Failed=!0;a.Result={HttpCode:e?e.xhr.staus:
500,Severity:d,Message:d.Message?d.Message:d};this.writeOperation(a)},_checkOperationsChanges:function(){for(var c=this,d=JSON.parse(localStorage.getItem("orionOperations")||'{"Children": []}'),e=[],g=[],k=0;k<d.Children.length;k++){var l=d.Children[k];if(l.Running==!0&&new Date-new Date(l.lastClientDate?l.lastClientDate:0)>5E3){var m=this._operationsClient.getOperation(l.Location);g.push(m);a.hitch(this,function(g){m.then(function(d){d.lastClientDate=new Date;a.hitch(c,c.writeOperation)(d)},function(j,
l){if(j.status==404)return e.push(g),j;a.hitch(c,c._markOperationAsFailed(d.Children[g],j,l))})})(k)}!l.Running&&new Date-new Date(l.lastClientDate?l.lastClientDate:0)>3E5&&e.push(k)}(new a.DeferredList(g)).addBoth(function(){if(e.length>0){d.lastClientDate=new Date;for(var g=e.length-1;g>=0;g--)d.Children.splice(e[g],1);localStorage.setItem("orionOperations",JSON.stringify(d));a.hitch(c,c._generateOperationsInfo)(d)}window.setTimeout(function(){a.hitch(c,c._checkOperationsChanges())},5E3)})},_openOperationsPopup:function(){try{dijit.popup.open({popup:this._operationsDialog,
around:this._progressPane})}catch(a){}dijit.focus(this._operationsDialog.domNode)},_switchIconTo:function(c){this._lastIconClass&&a.removeClass(this._progressPane,this._lastIconClass);this._lastIconClass=c;a.addClass(this._progressPane,this._lastIconClass)},_generateOperationsInfo:function(d){this._operationsDialog.setOperations(d,this._myOperations);if(!d.Children||d.Children.length==0)this._switchIconTo("progressPane_empty"),this._progressPane.title=c.Operations,this._progressPane.alt=c.Operations,
a.hasAttr(this._progressPane,"aria-valuetext")&&a.removeAttr(this._progressPane,"aria-valuetext");else{for(var e="",g=0;g<d.Children.length;g++){var j=d.Children[g];if(this._myOperations[j.Id]&&j.Running==!0){e="running";break}}if(e===""&&this._lastOperation!=null&&this._lastOperation.Result)switch(this._operationsDialog.parseProgressResult(this._lastOperation.Result).Severity){case "Warning":e!=="error"&&(e="warning");break;case "Error":e="error"}switch(e){case "running":this._progressPane.title=
c["Operations running"];this._progressPane.alt=c["Operations running"];a.attr(this._progressPane,"aria-valuetext",c["Operations running"]);this._switchIconTo("progressPane_running");break;case "warning":this._progressPane.title=c["Some operations finished with warning"];this._progressPane.alt=c["Some operations finished with warning"];a.attr(this._progressPane,"aria-valuetext",c["Some operations finished with warning"]);this._switchIconTo("progressPane_warning");break;case "error":this._progressPane.title=
c["Some operations finished with error"];this._progressPane.alt=c["Some operations finished with error"];a.attr(this._progressPane,"aria-valuetext",c["Some operations finished with error"]);this._switchIconTo("progressPane_error");break;default:this._progressPane.title=c.Operations,this._progressPane.alt=c.Operations,a.hasAttr(this._progressPane,"aria-valuetext")&&a.removeAttr(this._progressPane,"aria-valuetext"),this._switchIconTo("progressPane_operations")}}},followOperation:function(c,d,e){c.Id&&
(this._myOperations[c.Id]=!0);var g=d?d:new a.Deferred;this.writeOperation(c);var k=this;if(c&&c.Location&&c.Running==!0)window.setTimeout(function(){k._operationsClient.getOperation(c.Location).then(function(d){a.hitch(k,k.followOperation(d,g,c.Location))},function(d,e){a.hitch(k,k.setProgressResult)({Severity:"Error",Message:d});a.hitch(k,k._markOperationAsFailed(c,d,e));g.errback(d,e)})},2E3);else if(c&&c.Result)k._serviceRegistry.getService("orion.page.message").setProgressMessage(""),d=this._operationsDialog.parseProgressResult(c.Result).Severity,
d=="Error"||d=="Warning"?(c.Result.failedOperation={Location:e,Id:c.Id,Name:c.Name},g.callback(c),setTimeout(function(){k._myOperations[c.Id]&&a.hitch(k,k._openOperationsPopup)()},10)):g.callback(c),!c.Failed&&c.Idempotent==!0&&window.setTimeout(function(){a.hitch(k,k.removeOperation)(e,c.Id)},5E3);return g},removeOperation:function(c,d){that=this;if(d){if(this._lastOperation!=null&&this._lastOperation.Id===d)this._lastOperation=null;delete this._myOperations[d]}a.hitch(that._operationsClient,that._operationsClient.removeOperation)(c).then(function(){a.hitch(that,
that.removeOperationFromTheList)(d)})},removeOperationFromTheList:function(a){if(this._lastOperation!=null&&this._lastOperation.Id===a)this._lastOperation=null;delete this._myOperations[a];for(var c=JSON.parse(localStorage.getItem("orionOperations")||'{"Children": []}'),d=0;d<c.Children.length;d++){var e=c.Children[d];if(e.Id&&e.Id===a){c.Children.splice(d,1);break}}localStorage.setItem("orionOperations",JSON.stringify(c));this._generateOperationsInfo(c)},removeCompletedOperations:function(){for(var a=
JSON.parse(localStorage.getItem("orionOperations")||'{"Children": []}'),c=a.Children.length-1;c>=0;c--)a.Children[c].Running||a.Children.splice(c,1);localStorage.setItem("orionOperations",JSON.stringify(a));this._generateOperationsInfo(a)},setProgressResult:function(a){this._serviceRegistry.getService("orion.page.message").setProgressResult(a)},showWhile:function(c,d){d&&this._serviceRegistry.getService("orion.page.message").setProgressMessage(d);var e=this;return c.then(function(c){if(c&&c.Location&&
c.Message&&c.Running)return a.hitch(e,e.followOperation)(c,null,c.Location);e._serviceRegistry.getService("orion.page.message").setProgressMessage("");return c},function(c){a.hitch(e,e.setProgressResult)(c);return c})},followTopic:function(a,c){this._topicListeners[a]||(this._topicListeners[a]=[]);this._topicListeners[a].push(c)},writeOperation:function(a){this._lastOperation=a=JSON.parse(JSON.stringify(a));for(var c=JSON.parse(localStorage.getItem("orionOperations")||'{"Children": []}'),d=0;d<c.Children.length;d++){var e=
c.Children[d];if(e.Id&&e.Id===a.Id){c.Children.splice(d,1);break}}!a.Running&&!a.Failed&&delete a.Result;a.lastClientDate=new Date;c.Children.push(a);c.lastClientDate=new Date;localStorage.setItem("orionOperations",JSON.stringify(c));this._generateOperationsInfo(c)}};g.prototype.constructor=g;return{ProgressService:g}});
define("orion/auth","i18n!orion/nls/messages,dojo,dijit,orion/globalCommands,dojo/date/locale,orion/widgets/LoginDialog".split(","),function(c,d,a,e){var g,f={};d.addOnLoad(function(){window.dojo=d;window.eclipse=window.eclipse||{};eclipse.globalCommandUtils=e});return{handleAuthenticationError:function(d,i){if(d.status===403){typeof g==="undefined"&&(g=new a.Dialog({title:c["Forbidden access"]}));var j=d.message;d.responseText&&(j=JSON.parse(d.responseText).Message||d.message);g.set("content",j);
g.show()}else if(d.status===401)try{var k=JSON.parse(d.responseText);if(!k.SignInKey)return k;var l=localStorage.getItem(k.SignInKey),m=function(){var a=localStorage.getItem(k.SignInKey);l!==a&&(window.removeEventListener("storage",m,!1),delete f[k.SignInKey],e.setPendingAuthentication(f),e.authenticatedService(k.SignInKey),i&&i())};window.addEventListener("storage",m,!1);k.SignInKey&&(f[k.SignInKey]=k,e.setPendingAuthentication(f))}catch(o){}else try{return JSON.parse(d.responseText)}catch(n){return{Message:d.Message,
HttpCode:d.status}}}}});
define("orion/fileClient",["i18n!orion/navigate/nls/messages","orion/Deferred","orion/auth"],function(c,d,a){function e(e,f,g){if(!e[f])throw f+c[" is not supportted in this file system"];var k=new d;e[f].apply(e,g).then(function(a){k.resolve(a)},function(c){c.status===401?a.handleAuthenticationError(c,function(){e[f].apply(e,g).then(function(a){k.resolve(a)},function(a){k.reject(a)})}):k.reject(c)});return k}function g(a,f,j,k){if(!a.readBlob)throw c["source file service does not support binary read"];if(!j.writeBlob)throw c["target file service does not support binary write"];
if(f[f.length-1]!=="/")return e(a,"readBlob",[f]).then(function(a){return e(j,"writeBlob",[k,a])});var l=k.substring(0,k.length-1),m=decodeURIComponent(l.substring(l.lastIndexOf("/")+1)),l=l.substring(0,l.lastIndexOf("/")+1);return e(j,"createFolder",[l,m]).then(function(){},function(){}).then(function(){f.indexOf("/")===0&&(f+="?depth=1");return e(a,"fetchChildren",[f]).then(function(c){for(var e=[],f=0;f<c.length;++f){var i=c[f].Location,l=i;c[f].Directory&&(l=i.substring(0,i.length-1));l=decodeURIComponent(l.substring(l.lastIndexOf("/")+
1));l=k+encodeURIComponent(l);c[f].Directory&&(l+="/");e[f]=g(a,i,j,l)}return(new d).all(e)})})}function f(a,e){function f(a){var e=new d;e.reject(c["No Matching FileService for location:"]+a);return e}var g=a.getServiceReferences("orion.core.file"),l=g;if(e)for(var l=[],m=0;m<g.length;++m)e(g[m])&&l.push(g[m]);for(var o=[],n=[],p=[],r=[],s={fetchChildren:function(){var a=new d;a.resolve(r);return a},createWorkspace:function(){var a=new d;a.reject(c["no file service"]);return a},loadWorkspaces:function(){var a=
new d;a.reject(c["no file service"]);return a},loadWorkspace:function(){var a=new d;window.setTimeout(function(){a.resolve({Directory:!0,Length:0,LocalTimeStamp:0,Name:c["File Servers"],Location:"/",Children:r,ChildrenLocation:"/"})},100);return a},search:f,createProject:f,createFolder:f,createFile:f,deleteFile:f,moveFile:f,copyFile:f,read:f,write:f},g=0;g<l.length;++g)r[g]={Directory:!0,Length:0,LocalTimeStamp:0,Location:l[g].getProperty("top"),ChildrenLocation:l[g].getProperty("top"),Name:l[g].getProperty("Name")},
m=l[g].getProperty("pattern")||".*",m[0]!=="^"&&(m="^"+m),o[g]=RegExp(m),n[g]=a.getService(l[g]),p[g]=l[g].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 d=0;d<o.length;++d)if(o[d].test(a))return d;throw c["No Matching FileService for location:"]+a;};this._getService=function(a){a=this._getServiceIndex(a);return a===-1?s:n[a]};this._getServiceName=function(a){a=this._getServiceIndex(a);return a===-1?s.Name:p[a]}}
f.prototype={fileServiceName:function(a){return this._getServiceName(a)},fetchChildren:function(a){return e(this._getService(a),"fetchChildren",arguments)},createWorkspace:function(a){return e(this._getService(),"createWorkspace",arguments)},loadWorkspaces:function(){return e(this._getService(),"loadWorkspaces",arguments)},loadWorkspace:function(a){return e(this._getService(a),"loadWorkspace",arguments)},createProject:function(a,c,d,f){return e(this._getService(a),"createProject",arguments)},createFolder:function(a,
c){return e(this._getService(a),"createFolder",arguments)},createFile:function(a,c){return e(this._getService(a),"createFile",arguments)},deleteFile:function(a){return e(this._getService(a),"deleteFile",arguments)},moveFile:function(a,c,d){var f=this._getService(a),l=this._getService(c);if(f===l)return e(f,"moveFile",arguments);var m=a[a.length-1]==="/",o=c;o[o.length-1]!=="/"&&(o+="/");if(d)o+=encodeURIComponent(d);else{var n=a;m&&(n=n.substring(0,n.length-1));o+=n.substring(n.lastIndexOf("/")+1)}m&&
o[o.length-1]!=="/"&&(o+="/");return g(f,a,l,o).then(function(){return e(f,"deleteFile",[a])})},copyFile:function(a,c,d){var f=this._getService(a),l=this._getService(c);if(f===l)return e(f,"copyFile",arguments);var m=a[a.length-1]==="/",o=c;o[o.length-1]!=="/"&&(o+="/");if(d)o+=encodeURIComponent(d);else{var n=a;m&&(n=n.substring(0,n.length-1));o+=n.substring(n.lastIndexOf("/")+1)}m&&o[o.length-1]!=="/"&&(o+="/");return g(f,a,l,o)},read:function(a,c){return e(this._getService(a),"read",arguments)},
write:function(a,c,d){return e(this._getService(a),"write",arguments)},remoteImport:function(a,c){return e(this._getService(a),"remoteImport",arguments)},remoteExport:function(a,c){return e(this._getService(a),"remoteExport",arguments)},search:function(a,c){return e(this._getService(a),"search",arguments)}};f.prototype.constructor=f;return{FileClient:f}});
define("orion/operationsClient",["i18n!orion/operations/nls/messages","orion/auth","orion/Deferred"],function(c,d,a){function e(c,e,f){var g=new a;c[e].apply(c,f).then(function(a){g.resolve(a)},function(a){a.status===401?d.handleAuthenticationError(a,function(){c[e].apply(c,f).then(function(a){g.resolve(a)},function(a){g.reject(a)})}):g.reject(a)});return g}function g(a){this._location=a}function f(){var d=new a;d.reject(c["No Matching OperationService for location:"]+this._location);return d}function h(a){this._services=
[];this._patterns=[];this._operationListeners=[];this._currentLongpollingIds=[];for(var c=a.getServiceReferences("orion.core.operation"),d=0;d<c.length;d++){var e=a.getService(c[d]);this._services[d]=e;e=c[d].getProperty("pattern")||".*";e[0]!=="^"&&(e="^"+e);this._patterns[d]=RegExp(e)}this._getService=function(a){if(!a)return this._services[0];for(var c=0;c<this._patterns.length;++c)if(this._patterns[c].test(a))return this._services[c];return new g(a)}}function i(a){for(var c={Children:[]},d=0;d<
a.length;d++)c.Children=c.Children.concat(a[d].Children);return c}function j(a,c,d){var f=this,g={Longpolling:!0};if(d)g.LongpollingId=d;e(a,"getOperations",[g]).then(function(e){d&&f._currentLongpollingIds.indexOf(d)<0||(c(e,d),e.LongpollingId?(f._currentLongpollingIds.push(e.LongpollingId),j.bind(f)(a,c,e.LongpollingId)):j.bind(f)(a,c,d))},function(e){d&&f._currentLongpollingIds.indexOf(d)<0||("timeout"===e.dojoType?j.bind(f)(a,c,d):setTimeout(function(){j.bind(f)(a,c,d)},2E3))})}function k(a){for(var c=
0;c<this._operationListeners.length;c++)this._operationListeners[c](a)}g.prototype={getOperation:f,getOperations:f,removeCompletedOperations:f,removeOperation:f,cancelOperation:f};g.prototype.constructor=g;h.prototype={getOperations:function(){for(var c=new a,d=[],f=0;f<this._services.length;f++)d[f]=e(this._services[f],"getOperations",[void 0]);(new a).all(d).then(function(a){c.resolve(i(a))});return c},getRunningOperations:function(){for(var c=new a,d=[],f=0;f<this._services.length;f++)d[f]=e(this._services[f],
"getOperations",[{RunningOnly:!0}]);(new a).all(d).then(function(a){c.resolve(i(a))});return c},getOperation:function(a){return e(this._getService(a),"getOperation",arguments)},removeCompletedOperations:function(){for(var c=[],d=0;d<this._services.length;d++)c[d]=e(this._services[d],"removeCompletedOperations");return(new a).all(c)},removeOperation:function(a){return e(this._getService(a),"removeOperation",arguments)},cancelOperation:function(a){return e(this._getService(a),"cancelOperation",arguments)},
addOperationChangeListener:function(a){this._operationListeners.push(a);if(this._operationListeners.length===1){if(this._services.length<1)throw c["No operations services registered."];for(a=0;a<this._services.length;a++)j.bind(this)(this._services[a],k.bind(this))}},removeOperationChangeListener:function(a){for(var c=0;c<this._operationListeners.length;c++)if(this._operationListeners[c]===a){this._operationListeners.splice(c,1);break}if(this._operationListeners.length===0)this._currentLongpollingIds=
[]},resetChangeListeners:function(){this._currentLongpollingIds=[];if(this._services.length<1)throw c["No operations services registered."];for(var a=0;a<this._services.length;a++)j.bind(this)(this._services[a],k.bind(this))}};h.prototype.constructor=h;return{OperationsClient:h}});
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(c,d,a,e,g,f,h){function i(a){this.registry=a.serviceRegistry;this._commandService=a.commandService;(this._fileService=a.fileService)||console.error("No file service on search client")}i.prototype={search:function(a,c,d){c=h.parseQueryStr(a);try{this._fileService.search(c.location,a).then(function(a){var c=
a.responseHeader.params.q,c=c.substring(c.indexOf("}")+1),c=c.substring(c.indexOf(":")+1);d(function(a){for(var c=[],d=0;d<a.response.docs.length;d++){var e=a.response.docs[d];c.push({name:e.Name,path:e.Location,folderName:h.path2FolderName(e.Path,e.Name),directory:e.Directory,lineNumber:e.LineNumber})}return c}(a),c)},function(a){d(null,null,a)})}catch(e){this.registry.getService("orion.page.message").setErrorMessage(e)}},handleError:function(c,d){console.error(c);var e=document.createTextNode(c);
a.place(e,d,"only");return c},setLocationByMetaData:function(d,e){var f="",g=null;e&&d&&d.Parents&&d.Parents.length>0?g=e.index==="last"?d.Parents[d.Parents.length-1]:d.Parents[0]:d&&d.Directory&&d.Location&&d.Parents&&(g=d);g?(this.setLocationByURL(g.Location),f=g.Name):d&&(f=this._fileService.fileServiceName(d&&d.Location));g=a.byId("search");f||(f="");if(g&&g.placeholder)g.value="",g.placeholder=f.length>23?c["Search "]+f.substring(0,20)+"...":c["Search "]+f;if(g&&g.title)g.title=c["Type a keyword or wild card to search in "]+
f},setLocationByURL:function(a){this.location=a},createSearchQuery:function(a,c,d,e){d||(d="Path");d+=" asc";return c?(a=/\*$/.test(c)?"":"*",h.generateSearchQuery({sort:d,rows:100,start:0,searchStr:"NameLower:"+this._luceneEscape(c,!0)+a})):h.generateSearchQuery({sort:d,rows:40,start:0,searchStr:this._luceneEscape(a,!0),location:e?"":this.location})},_luceneEscape:function(a,c){for(var d="",e='+-&|!(){}[]^"~:\\'+(!c?"*?":""),f=0;f<a.length;f++){var g=a.charAt(f);e.indexOf(g)>=0&&(d+="\\");d+=g}return d},
defaultRenderer:{makeRenderFunction:function(e,f,g,h){return function(i,n,p){if(p)a.place("<div>"+c["Search failed."]+"</div>",e,"only"),typeof g==="function"&&g(e);else{var p=function(){function a(c,d){var e=d.folderName?d.folderName:d.path,f=document.createElement("span");f.id=e.replace(/[^a-zA-Z0-9_\.:\-]/g,"");f.appendChild(document.createTextNode(" - "+e+" "));c.appendChild(f)}var c={};return function(d,e){var f=e.name;if(c.hasOwnProperty(f)){a(d,e);var g=c[f];typeof g==="function"&&(c[f]=null,
g())}else c[f]=function(){a(d,e)}}}(),r=!1;a.empty(e);if(i&&i.length>0){var s=document.createElement("table");s.setAttribute("role","presentation");for(var q=0;q<i.length;q++){var t=i[q],u;if(!r&&(r=!0,f))u=s.insertRow(0).insertCell(0),u.innerHTML=f;u=s.insertRow(-1).insertCell(0);u.colspan=2;h&&h(u);var v=document.createElement("a");a.place(document.createTextNode(t.name),v);t.LineNumber&&a.place(document.createTextNode(" (Line "+t.LineNumber+")"),v);var w=t.location;t.isExternalResource?w=t.path:
(w=t.directory?d.toUrl("navigate/table.html")+"#"+t.path:d.toUrl("edit/edit.html")+"#"+t.path,w==="#"&&(w=""));v.setAttribute("href",w);v.setAttribute("aria-describedby",(t.folderName?t.folderName:t.path).replace(/[^a-zA-Z0-9_\.:\-]/g,""));a.style(v,"verticalAlign","middle");u.appendChild(v);p(u,t)}a.place(s,e,"last");typeof g==="function"&&g(e)}!r&&n&&(i=a.place("<div>"+c["No matches found for "]+"</div>",e,"only"),i=a.create("b",null,i,"last"),a.place(document.createTextNode(n),i,"only"),typeof g===
"function"&&g(e))}}}}};i.prototype.constructor=i;return{Searcher:i}});
define("orion/git/gitClient",["require","dojo","orion/auth"],function(c,d,a){var e=e||{};e.GitService=function(){function e(a){if(a)this._serviceRegistry=a,this._serviceRegistration=a.registerService("orion.git.provider",this),this._sshService=a.getService("orion.net.ssh")}e.prototype={checkGitService:function(){},cloneGitRepository:function(a,e,g,j,k,l,m,o,n){var p=this,r={};if(a)r.Name=a;if(g)r.Path=g;if(e)r.GitUrl=e;r.Location=j;if(k)r.GitSshUsername=k;if(l)r.GitSshPassword=l;if(m)r.GitSshKnownHost=
m;if(o)r.GitSshPrivateKey=o;if(n)r.GitSshPassphrase=n;var a=c.toUrl("gitapi/clone/._"),a=a.substring(0,a.length-2),s=new d.Deferred;d.xhrPost({url:a,headers:{"Orion-Version":"1"},postData:d.toJson(r),handleAs:"json",timeout:15E3,load:function(a,c){d.hitch(p,p._getGitServiceResponse)(s,a,c)},error:function(a,c){return d.hitch(p,p._handleGitServiceResponseError)(s,this,a,c)}});return s},removeGitRepository:function(a){var c=this,e=new d.Deferred;d.xhrDelete({url:a,headers:{"Orion-Version":"1"},handleAs:"json",
timeout:5E3,load:function(a,f){d.hitch(c,c._getGitServiceResponse)(e,a,f)},error:function(a,f){return d.hitch(c,c._handleGitServiceResponseError)(e,this,a,f)}});return e},getDiffContent:function(a){var c=this,e=new d.Deferred;d.xhrGet({url:a,headers:{"Orion-Version":"1"},content:{parts:"diff"},handleAs:"text",timeout:15E3,load:function(a,f){d.hitch(c,c._getGitServiceResponse)(e,a,f)},error:function(a,f){return d.hitch(c,c._handleGitServiceResponseError)(e,this,a,f,d.xhrGet)}});return e},getDiffFileURI:function(a){var c=
this,e=new d.Deferred;d.xhrGet({url:a,headers:{"Orion-Version":"1"},content:{parts:"uris"},handleAs:"json",timeout:15E3,load:function(a,f){d.hitch(c,c._getGitServiceResponse)(e,a,f)},error:function(a,f){d.hitch(c,c._handleGitServiceResponseError)(e,this,a,f,d.xhrGet)}});return e},getGitStatus:function(a){var c=this,e=new d.Deferred;d.xhrGet({url:a,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,load:function(a,f){d.hitch(c,c._getGitServiceResponse)(e,a,f)},error:function(a,f){d.hitch(c,
c._handleGitServiceResponseError)(e,this,a,f,d.xhrGet)}});return e},stage:function(a){var c=this,e=new d.Deferred;d.xhrPut({url:a,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,load:function(a,f){d.hitch(c,c._getGitServiceResponse)(e,a,f)},error:function(a,f){d.hitch(c,c._handleGitServiceResponseError)(e,this,a,f)}});return e},stageMultipleFiles:function(a,c){var e=this,g=new d.Deferred;d.xhrPut({url:a,headers:{"Orion-Version":"1"},putData:d.toJson({Path:c}),handleAs:"json",timeout:15E3,
load:function(a,c){d.hitch(e,e._getGitServiceResponse)(g,a,c)},error:function(a,c){d.hitch(e,e._handleGitServiceResponseError)(g,this,a,c)}});return g},unstageAll:function(a,c){var e=this,g=new d.Deferred;d.xhrPost({url:a,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,postData:d.toJson({Reset:c}),load:function(a,c){d.hitch(e,e._getGitServiceResponse)(g,a,c)},error:function(a,c){d.hitch(e,e._handleGitServiceResponseError)(g,this,a,c)}});return g},unstage:function(a,c){var e=this,g=new d.Deferred;
d.xhrPost({url:a,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,postData:d.toJson({Path:c}),load:function(a,c){d.hitch(e,e._getGitServiceResponse)(g,a,c)},error:function(a,c){d.hitch(e,e._handleGitServiceResponseError)(g,this,a,c)}});return g},checkoutPath:function(a,c){var e=this,g=new d.Deferred;d.xhrPut({url:a,headers:{"Orion-Version":"1"},putData:d.toJson({Path:c,RemoveUntracked:"true"}),handleAs:"json",timeout:15E3,load:function(a,c){d.hitch(e,e._getGitServiceResponse)(g,a,c)},error:function(a,
c){return d.hitch(e,e._handleGitServiceResponseError)(g,this,a,c)}});return g},commitAll:function(a,c,e){var g=this,k=new d.Deferred;d.xhrPost({url:a,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,postData:e,load:function(a,c){d.hitch(g,g._getGitServiceResponse)(k,a,c)},error:function(a,c){d.hitch(g,g._handleGitServiceResponseError)(k,this,a,c)}});return k},getGitClone:function(a){var c=this,e=new d.Deferred;d.xhrGet({url:a,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(a,
f){d.hitch(c,c._getGitServiceResponse)(e,a,f)},error:function(a,f){d.hitch(c,c._handleGitServiceResponseError)(e,this,a,f,d.xhrGet)}});return e},getGitCloneConfig:function(a){var c=this,e=new d.Deferred;d.xhrGet({url:a,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(a,f){d.hitch(c,c._getGitServiceResponse)(e,a,f)},error:function(a,f){d.hitch(c,c._handleGitServiceResponseError)(e,this,a,f,d.xhrGet)}});return e},getGitBranch:function(a){var c=this,e=new d.Deferred;d.xhrGet({url:a,
headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(a,f){d.hitch(c,c._getGitServiceResponse)(e,a,f)},error:function(a,f){d.hitch(c,c._handleGitServiceResponseError)(e,this,a,f,d.xhrGet)}});return e},getGitRemote:function(a){var c=this,e=new d.Deferred;d.xhrGet({url:a,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(a,f){d.hitch(c,c._getGitServiceResponse)(e,a,f)},error:function(a,f){d.hitch(c,c._handleGitServiceResponseError)(e,this,a,f,d.xhrGet)}});return e},
checkoutBranch:function(a,c){var e=this,g=new d.Deferred;d.xhrPut({url:a,headers:{"Orion-Version":"1"},putData:d.toJson({Branch:c}),handleAs:"json",timeout:5E3,load:function(a,c){d.hitch(e,e._getGitServiceResponse)(g,a,c)},error:function(a,c){d.hitch(e,e._handleGitServiceResponseError)(g,this,a,c)}});return g},resetIndex:function(a,c){var e=this,g=new d.Deferred;d.xhrPost({url:a,headers:{"Orion-Version":"1"},postData:d.toJson({Commit:c,Reset:"HARD"}),handleAs:"json",timeout:5E3,load:function(a,c){d.hitch(e,
e._getGitServiceResponse)(g,a,c)},error:function(a,c){d.hitch(e,e._handleGitServiceResponseError)(g,this,a,c)}});return g},addBranch:function(a,c,e){var g=this,k={};if(c)k.Name=c;if(e)k.Branch=e;var l=new d.Deferred;d.xhrPost({url:a,headers:{"Orion-Version":"1"},postData:d.toJson(k),handleAs:"json",timeout:5E3,load:function(a,c){d.hitch(g,g._getGitServiceResponse)(l,a,c)},error:function(a,c){d.hitch(g,g._handleGitServiceResponseError)(l,this,a,c)}});return l},removeBranch:function(a){var c=this,e=
new d.Deferred;d.xhrDelete({url:a,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(a,f){d.hitch(c,c._getGitServiceResponse)(e,a,f)},error:function(a,f){d.hitch(c,c._handleGitServiceResponseError)(e,this,a,f)}});return e},addRemote:function(a,c,e){var g=this,k=new d.Deferred;d.xhrPost({url:a,headers:{"Orion-Version":"1"},putData:d.toJson({Remote:c,RemoteURI:e}),handleAs:"json",timeout:5E3,load:function(a,c){d.hitch(g,g._getGitServiceResponse)(k,a,c)},error:function(a,c){d.hitch(g,
g._handleGitServiceResponseError)(k,this,a,c)}});return k},removeRemote:function(a){var c=this,e=new d.Deferred;d.xhrDelete({url:a,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(a,f){d.hitch(c,c._getGitServiceResponse)(e,a,f)},error:function(a,f){d.hitch(c,c._handleGitServiceResponseError)(e,this,a,f)}});return e},doGitLog:function(a){var c=this,e=new d.Deferred;d.xhrGet({url:a,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(a,f){d.hitch(c,c._getGitServiceResponse)(e,
a,f)},error:function(a,f){d.hitch(c,c._handleGitServiceResponseError)(e,this,a,f,d.xhrGet)}});return e},getDiff:function(a,c){var e=this,g=new d.Deferred;d.xhrPost({url:a,headers:{"Orion-Version":"1"},postData:d.toJson({New:c}),handleAs:"json",timeout:5E3,load:function(a,c){g.callback(c.xhr.getResponseHeader("Location"))},error:function(a,c){d.hitch(e,e._handleGitServiceResponseError)(g,this,a,c,d.xhrPost)}});return g},doFetch:function(a,c,e,g,k,l,m){var o=this,n=new d.Deferred;d.xhrPost({url:a,headers:{"Orion-Version":"1"},
postData:d.toJson({Fetch:"true",Force:c,GitSshUsername:e,GitSshPassword:g,GitSshKnownHost:k,GitSshPrivateKey:l,GitSshPassphrase:m}),handleAs:"json",timeout:5E3,load:function(a,c){d.hitch(o,o._getGitServiceResponse)(n,a,c)},error:function(a,c){d.hitch(o,o._handleGitServiceResponseError)(n,this,a,c)}});return n},doPull:function(a,c,e,g,k,l,m){var o=this,n=new d.Deferred;d.xhrPost({url:a,headers:{"Orion-Version":"1"},postData:d.toJson({Pull:"true",Force:c,GitSshUsername:e,GitSshPassword:g,GitSshKnownHost:k,
GitSshPrivateKey:l,GitSshPassphrase:m}),handleAs:"json",timeout:5E3,load:function(a,c){d.hitch(o,o._getGitServiceResponse)(n,a,c)},error:function(a,c){d.hitch(o,o._handleGitServiceResponseError)(n,this,a,c)}});return n},doMerge:function(a,c){var e=this,g=new d.Deferred;d.xhrPost({url:a,headers:{"Orion-Version":"1"},postData:d.toJson({Merge:c}),handleAs:"json",timeout:5E3,load:function(a,c){var f=new d.Deferred;d.hitch(e,e._getGitServiceResponse)(f,a,c);f.then(function(a){g.callback({jsonData:a})})},
error:function(a,c){d.hitch(e,e._handleGitServiceResponseError)(g,this,a,c)}});return g},doCherryPick:function(a,c){var e=this,g=new d.Deferred;d.xhrPost({url:a,headers:{"Orion-Version":"1"},postData:d.toJson({"Cherry-Pick":c}),handleAs:"json",timeout:5E3,load:function(a,c){d.hitch(e,e._getGitServiceResponse)(g,a,c)},error:function(a,c){d.hitch(e,e._handleGitServiceResponseError)(g,this,a,c)}});return g},doRebase:function(a,c,e){var g=this,k={};k.Rebase=c;if(e)k.Operation=e;var l=new d.Deferred;d.xhrPost({url:a,
headers:{"Orion-Version":"1"},postData:d.toJson(k),handleAs:"json",timeout:5E3,load:function(a,c){d.hitch(g,g._getGitServiceResponse)(l,a,c)},error:function(a,c){d.hitch(g,g._handleGitServiceResponseError)(l,this,a,c)}});return l},doPush:function(a,c,e,g,k,l,m,o,n){var p=this,r=new d.Deferred;d.xhrPost({url:a,headers:{"Orion-Version":"1"},postData:d.toJson({PushSrcRef:c,PushTags:e,Force:g,GitSshUsername:k,GitSshPassword:l,GitSshKnownHost:m,GitSshPrivateKey:o,GitSshPassphrase:n}),handleAs:"json",timeout:5E3,
load:function(a,c){d.hitch(p,p._getGitServiceResponse)(r,a,c)},error:function(a,c){d.hitch(p,p._handleGitServiceResponseError)(r,this,a,c)}});return r},getLog:function(a,c){var e=this,g=new d.Deferred,k=new d.Deferred;d.xhrPost({url:a,headers:{"Orion-Version":"1"},postData:d.toJson({New:c}),handleAs:"json",timeout:5E3,load:function(a,c){k.callback(c.xhr.getResponseHeader("Location"))},error:function(a,c){d.hitch(e,e._handleGitServiceResponseError)(k,this,a,c,d.xhrPost)}});k.then(function(a){d.xhrGet({url:a,
headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(a,c){d.hitch(e,e._getGitServiceResponse)(g,a,c)},error:function(a,c){d.hitch(e,e._handleGitServiceResponseError)(g,this,a,c,d.xhrGet)}})});return g},getDefaultRemoteBranch:function(a){var c=this,e=new d.Deferred,g=new d.Deferred;d.xhrGet({url:a,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(a,e){d.hitch(c,c._getGitServiceResponse)(g,a,e)},error:function(a,e){d.hitch(c,c._handleGitServiceResponseError)(g,
this,a,e,d.xhrGet)}});g.then(function(a){if(a.Children[0]==null)return null;d.xhrGet({url:a.Children[0].Location,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(a,f){d.hitch(c,c._getGitServiceResponse)(e,a,f)},error:function(a,f){d.hitch(c,c._handleGitServiceResponseError)(e,this,a,f,d.xhrGet)}})});return e},doAddTag:function(a,c){var e=this,g=new d.Deferred;d.xhrPut({url:a,headers:{"Orion-Version":"1"},putData:d.toJson({Name:c}),handleAs:"json",timeout:5E3,load:function(a,
c){d.hitch(e,e._getGitServiceResponse)(g,a,c)},error:function(a,c){d.hitch(e,e._handleGitServiceResponseError)(g,this,a,c)}});return g},doRemoveTag:function(a){var c=this,e=new d.Deferred;d.xhrDelete({url:a,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(a,f){d.hitch(c,c._getGitServiceResponse)(e,a,f)},error:function(a,f){d.hitch(c,c._handleGitServiceResponseError)(e,this,a,f)}});return e},checkoutTag:function(a,c,e){var g=this,k=new d.Deferred;d.xhrPut({url:a,headers:{"Orion-Version":"1"},
putData:d.toJson({Tag:c,Branch:e}),handleAs:"json",timeout:5E3,load:function(a,c){d.hitch(g,g._getGitServiceResponse)(k,a,c)},error:function(a,c){d.hitch(g,g._handleGitServiceResponseError)(k,this,a,c)}});return k},addCloneConfigurationProperty:function(a,c,e){var g=this,k=new d.Deferred;d.xhrPost({url:a,headers:{"Orion-Version":"1"},postData:d.toJson({Key:c,Value:e}),handleAs:"json",timeout:15E3,load:function(a,c){d.hitch(g,g._getGitServiceResponse)(k,a,c)},error:function(a,c){d.hitch(g,g._handleGitServiceResponseError)(k,
this,a,c)}});return k},editCloneConfigurationProperty:function(a,c){var e=this,g=new d.Deferred;d.xhrPut({url:a,headers:{"Orion-Version":"1"},putData:d.toJson({Value:c}),handleAs:"json",timeout:15E3,load:function(a,c){d.hitch(e,e._getGitServiceResponse)(g,a,c)},error:function(a,c){d.hitch(e,e._handleGitServiceResponseError)(g,this,a,c)}});return g},deleteCloneConfigurationProperty:function(a){var c=this,e=new d.Deferred;d.xhrDelete({url:a,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,
load:function(a,f){d.hitch(c,c._getGitServiceResponse)(e,a,f)},error:function(a,f){d.hitch(c,c._handleGitServiceResponseError)(e,this,a,f)}});return e},_getGitServiceResponse:function(a,c,e){if(e&&e.xhr.status===202)return e=new d.Deferred,e.callback(c),this._serviceRegistry.getService("orion.page.progress").showWhile(e).then(function(c){a.callback(c.Result.Severity=="Ok"?c.Result.JsonData:c.Result)});a.callback(c)},_handleGitServiceResponseError:function(c,e,g,j,k){c||(c=new d.Deferred);if(g.status===
401||g.status===403)return a.handleAuthenticationError(j.xhr,function(){k?k(e).then(function(a,d){c.callback(a,d)},function(a,d){c.errback(a,d)}):c.errback(g)})!=null&&c.errback(g),c;c.errback(g);return c}};return e}();return e});
define("orion/git/widgets/ApplyPatchDialog","i18n!git/nls/gitmessages,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/git/widgets/templates/ApplyPatchDialog.html".split(","),function(c,d,a){d.declare("orion.git.widgets.ApplyPatchDialog",[a.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:!0,templateString:d.cache("orion",
"git/widgets/templates/ApplyPatchDialog.html"),constructor:function(){this.inherited(arguments);this.options=arguments[0]||{}},postMixInProperties:function(){this.inherited(arguments);this.title=c["Apply Patch"]},postCreate:function(){function c(d){a.byId("files").set("disabled",d);a.byId("applyPatchDialog.uploader").set("disabled",d);a.byId("applyPatchDialog.url").set("disabled",!d)}this.inherited(arguments);d.byId("applyPatchDialog.myForm").action=this.options.diffLocation;d.byId("applyPatchDialog.uploader").url=
this.options.diffLocation;c(!0);d.connect(a.byId("applyPatchDialog.urlRadio"),"onclick",d.hitch(this,function(a){a.target.id==="applyPatchDialog.urlRadio"&&c(!0)}));d.connect(a.byId("applyPatchDialog.fileRadio"),"onclick",d.hitch(this,function(a){a.target.id==="applyPatchDialog.fileRadio"&&c(!1)}));d.connect(a.byId("applyPatchDialog.uploader"),"onError",d.hitch(this,function(){setTimeout(d.hitch(this,function(){this.hide()}),2E3)}));d.connect(a.byId("applyPatchDialog.uploader"),"onComplete",d.hitch(this,
function(){setTimeout(d.hitch(this,function(){this.hide()}),2E3)}));d.connect(a.byId("applyPatchDialog.uploader"),"onKeyPress",function(a){a.keyCode===d.keys.ENTER&&a.stopPropagation()})}})});
define("orion/git/widgets/ContentDialog","i18n!git/nls/gitmessages,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/git/widgets/templates/ContentDialog.html".split(","),function(c,d,a){d.declare("orion.git.widgets.ContentDialog",[a.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:!0,templateString:d.cache("orion","git/widgets/templates/ContentDialog.html"),
constructor:function(){this.inherited(arguments);this.options=arguments[0]||{}},postMixInProperties:function(){this.inherited(arguments);this.title=c.Content},postCreate:function(){var a=this;this.inherited(arguments);for(var g=d.byId("div1"),f=d.query(".sectionAnchor"),h=0;h<f.length;h++){var i=f[h];d.create("li",{id:i.id+"Span"},g);var j=d.create("a",{href:window.location.href,title:d.string.substitute(c["Go to ${0} section"],[i.id]),innerHTML:i.id+"\n"},i.id+"Span");d.connect(j,"onclick",d.hitch(i,
function(){this.scrollIntoView(!0);a.hide();return!1}))}}})});
define("orion/git/gitCommands","i18n!git/nls/gitmessages,require,dojo,orion/commands,orion/util,orion/git/util,orion/compare/compareUtils,orion/git/widgets/CloneGitRepositoryDialog,orion/git/widgets/AddRemoteDialog,orion/git/widgets/GitCredentialsDialog,orion/widgets/NewItemDialog,orion/git/widgets/RemotePrompterDialog,orion/git/widgets/ApplyPatchDialog,orion/git/widgets/OpenCommitDialog,orion/git/widgets/ContentDialog,orion/git/widgets/CommitDialog".split(","),function(c,d,a,e,g,f,h){var i={};(function(){function j(a){var c;
try{c=JSON.parse(a.responseText)}catch(d){c={Result:a.responseText}}c.HttpCode=a.status;return c}var k=!1;i.updateNavTools=function(c,d,e,f,g,h){var i=a.byId(e);if(i)a.empty(i);else throw"could not find toolbar "+e;var j=c.getService("orion.page.command");j.renderCommands(e,i,g,d,"button");if(h&&(e=a.byId(h)))a.empty(e),j.renderCommands(h,e,g,d,"button");if(f&&(g=a.byId(f)))a.empty(f),j.renderCommands(f,g,null,d,"button");k||(k=!0,c.getService("orion.page.selection").addEventListener("selectionChanged",
function(c,e){var g=a.byId(f);g&&(a.empty(g),j.renderCommands(f,g,e,d,"button"))}))};i.getNewItemName=function(c,d,e,f,h,i,j,k){var t,u;if(e)t=a.byId(f);else if(d.makeNewItemPlaceHolder!=null)(c=d.makeNewItemPlaceHolder(c,f,j))?(t=c.refNode,u=c.tempNode):t=a.byId(f);t?g.getUserText(f+"EditBox",t,!1,h,a.hitch(this,function(a){a&&(u&&u.parentNode.removeChild(u),i(a))}),void 0,void 0,void 0,k):(f=window.prompt(h))&&i(f)};i.handleKnownHostsError=function(d,e,f,g){if(confirm(a.string.substitute(c["Would you like to add ${0} key for host ${1} to continue operation? Key fingerpt is ${2}."],
[e.KeyType,e.Host,e.HostFingerprint]))){var h=d.getService("orion.net.ssh");h.addKnownHosts(e.Host+" "+e.KeyType+" "+e.HostKey).then(function(){h.getKnownHosts().then(function(a){f.knownHosts=a;g(f)});if(f.failedOperation){var c=d.getService("orion.page.progress");a.hitch(c,c.removeOperation)(f.failedOperation.Location,f.failedOperation.Id)}})}};i.handleSshAuthenticationError=function(c,d,e,f,g){d=new orion.git.widgets.GitCredentialsDialog({title:g,serviceRegistry:c,func:f,errordata:e.errordata,failedOperation:e.failedOperation});
d.startup();d.show();e.failedOperation&&(c=c.getService("orion.page.progress"),a.hitch(c,c.removeOperation)(e.failedOperation.Location,e.failedOperation.Id))};i.getDefaultSshOptions=function(c,d){var e=new a.Deferred,f=c.getService("orion.net.ssh"),g=d&&!d.optionsRequested?d.valueFor("sshuser"):"",h=d&&!d.optionsRequested?d.valueFor("sshpassword"):"";f.getKnownHosts().then(function(a){e.callback({knownHosts:a,gitSshUsername:g,gitSshPassword:h,gitPrivateKey:"",gitPassphrase:""})});return e};i.handleProgressServiceResponse=
function(c,d,e,f,g,h){c&&c.status&&(c=j(c));if(!c||!c.HttpCode)f&&f(c);else switch(c.HttpCode){case 200:case 201:case 202:f&&f(c.Result);break;case 401:if(c.JsonData)d.errordata=c.JsonData;if(c.failedOperation)d.failedOperation=c.failedOperation;a.hitch(this,i.handleSshAuthenticationError)(e,c.JsonData,d,g,h);break;case 400:if(c.JsonData&&c.JsonData.HostKey){if(c.failedOperation)d.failedOperation=c.failedOperation;a.hitch(this,i.handleKnownHostsError)(e,c.JsonData,d,g);break}default:d=[];d.Severity=
"Error";d.HTML=!1;try{d.Message=c.DetailedMessage?c.DetailedMessage:c.Message}catch(k){d.Message=error.message}e.getService("orion.page.message").setProgressResult(d)}};i.gatherSshCredentials=function(d,e,f){var g=new a.Deferred,h=function(a){d.getService("orion.net.ssh").getKnownHosts().then(function(c){g.callback({knownHosts:c,gitSshUsername:a.gitSshUsername,gitSshPassword:a.gitSshPassword,gitPrivateKey:a.gitPrivateKey,gitPassphrase:a.gitPassphrase})})},i=e.errorData;if(i&&i.HostKey)return confirm(a.string.substitute(c["Would you like to add ${0} key for host ${1} to continue operation? Key fingerpt is ${2}."],
[i.KeyType,i.Host,i.HostFingerprint]))&&d.getService("orion.net.ssh").addKnownHosts(i.Host+" "+i.KeyType+" "+i.HostKey).then(function(){h({gitSshUsername:"",gitSshPassword:"",gitPrivateKey:"",gitPassphrase:""})}),g;if(!e.parameters&&!e.optionsRequested)return h({gitSshUsername:"",gitSshPassword:"",gitPrivateKey:"",gitPassphrase:""}),g;if(e.parameters&&!e.optionsRequested)return f=e.parameters?e.parameters.valueFor("sshuser"):"",e=e.parameters?e.parameters.valueFor("sshpassword"):"",h({gitSshUsername:f,
gitSshPassword:e,gitPrivateKey:"",gitPassphrase:""}),g;e=new orion.git.widgets.GitCredentialsDialog({title:f,serviceRegistry:d,func:h,errordata:i});e.startup();e.show();return g};i.handleProgressServiceResponse2=function(c,d,e,f){c&&c.status&&(c=j(c));if(!c||!c.HttpCode)e&&e(c);else switch(c.HttpCode){case 200:case 201:case 202:e&&e(c.Result);break;case 401:c.failedOperation&&(d=d.getService("orion.page.progress"),a.hitch(d,d.removeOperation)(c.failedOperation.Location,c.failedOperation.Id));f(c);
break;case 400:if(c.JsonData&&c.JsonData.HostKey){c.failedOperation&&(d=d.getService("orion.page.progress"),a.hitch(d,d.removeOperation)(c.failedOperation.Location,c.failedOperation.Id));f(c);break}default:f=[];f.Severity="Error";f.HTML=!1;try{f.Message=c.DetailedMessage?c.DetailedMessage:c.Message}catch(g){f.Message=error.message}d.getService("orion.page.message").setProgressResult(f)}};i.createFileCommands=function(g,j,k){function n(a){if(!(a.status===401||a.status===403)){var c=[];c.Severity="Error";
c.HTML=!1;try{var d=JSON.parse(a.responseText);c.Message=d.DetailedMessage?d.DetailedMessage:d.Message}catch(e){c.Message=a.message}g.getService("orion.page.message").setProgressResult(c)}}var p=new e.Command({name:c["Link Repository"],imageClass:"core-sprite-link",id:"eclipse.linkRepository",callback:function(a){var e=new orion.widgets.NewItemDialog({title:c["Link Repository"],label:c["Folder name:"],func:function(e){var f=g.getService("orion.core.file");f.loadWorkspace("").then(function(g){f.createProject(g.Location,
e,a.items.ContentLocation,!1).then(function(a){alert(c["Repository was linked to "]+a.Name);f.read(a.ContentLocation,!0).then(function(a){window.location.replace(d.toUrl("navigate/table.html")+"#"+a.ChildrenLocation)})})})},advanced:!1});e.startup();e.show()},visibleWhen:function(a){return a.ContentLocation?!0:!1}});j.addCommand(p);p=new e.Command({name:c.Checkout,tooltip:c["Checkout the current tag, creating a local branch based on its contents."],imageClass:"git-sprite-checkout",spriteClass:"gitCommandSprite",
id:"eclipse.checkoutTag",callback:function(d){function e(){if(f.Repository)return f.Repository.BranchLocation;for(var a in f.parent.parent.children)if(f.parent.parent.children[a].Name==="Branches")return f.parent.parent.children[a];return f.parent.parent}var f=d.items;i.getNewItemName(f,k,!1,d.domNode.id,"tag_"+f.Name,function(d){if(d||d!=""){var h;h=f.Repository!=null?f.Repository.Location:f.parent.parent.Location;g.getService("orion.page.message").createProgressMonitor(g.getService("orion.git.provider").checkoutTag(h,
f.Name,d),a.string.substitute(c["Checking out tag ${0}"],[d])).deferred.then(function(){a.hitch(k,k.changedItem)(e())},n)}},void 0,!0)},visibleWhen:function(a){return a.Type==="Tag"}});j.addCommand(p);p=new e.Command({name:c.Checkout,tooltip:c["Checkout the branch or corresponding local branch and make it active. If the remote tracking branch does not have a corresponding local branch, the local branch will be created first."],imageClass:"git-sprite-checkout",spriteClass:"gitCommandSprite",id:"eclipse.checkoutBranch",
callback:function(d){var e=d.items,f=g.getService("orion.git.provider"),h=g.getService("orion.page.message"),i=new a.Deferred;h.createProgressMonitor(i,e.Name?a.string.substitute(c["Checking out branch ${0}..."],[e.Name]):c["Checking out branch..."]);e.Type==="Branch"?f.checkoutBranch(e.CloneLocation,e.Name).then(function(){a.hitch(k,k.changedItem)(e.parent);i.callback();h.setProgressResult(c["Branch checked out."])},function(a){i.callback();n(a)}):f.addBranch(e.Repository!=null?e.Repository.BranchLocation:
e.parent.parent.BranchLocation,null,e.Name).then(function(d){f.checkoutBranch(d.CloneLocation,d.Name).then(function(){a.hitch(k,k.changedItem)(e.Repository?e.Repository.BranchLocation:e.parent.parent.parent);h.setProgressResult(c["Branch checked out."])},function(a){i.callback();n(a)})},function(a){i.callback();n(a)})},visibleWhen:function(a){return a.Type==="Branch"||a.Type==="RemoteTrackingBranch"}});j.addCommand(p);p=new e.ParametersDescription([new e.CommandParameter("name","text","Name:")]);
p=new e.Command({name:c["New Branch"],tooltip:c["Add a new local branch to the repository"],imageClass:"core-sprite-add",id:"eclipse.addBranch",parameters:p,callback:function(d){var e=d.items,f=function(c,d){g.getService("orion.git.provider").addBranch(c,d).then(function(){a.hitch(k,k.changedItem)(e)},n)},h;h=e.Type==="Clone"?e.BranchLocation:e.Location;d.parameters.valueFor("name")&&!d.parameters.optionsRequested?f(h,d.parameters.valueFor("name")):i.getNewItemName(e,k,!1,d.domNode.id,c["Branch name"],
function(a){(a||a!="")&&f(h,a)})},visibleWhen:function(a){return a.GroupNode&&a.Name==="Branches"||a.Type==="Clone"&&k.parentId==="artifacts"}});j.addCommand(p);p=new e.Command({name:c.Delete,tooltip:c["Delete the local branch from the repository"],imageClass:"core-sprite-delete",id:"eclipse.removeBranch",callback:function(d){var e=d.items;confirm(a.string.substitute(c["Are you sure you want to delete branch ${0}?"],[e.Name]))&&g.getService("orion.git.provider").removeBranch(e.Location).then(function(){k.changedItem?
a.hitch(k,k.changedItem)(e.parent):k.displayBranches&&a.hitch(k,k.displayBranches)(e.ParentLocation,null)},n)},visibleWhen:function(a){return a.Type==="Branch"&&!a.Current}});j.addCommand(p);p=new e.Command({name:c.Delete,tooltip:c["Delete the remote tracking branch from the repository"],imageClass:"core-sprite-delete",id:"eclipse.removeRemoteBranch",callback:function(d){var e=d.items;confirm(a.string.substitute(c["You're going to delete remote branch ${0} and push the change."],[e.Name])+"\n\n"+
c["Are you sure?"])&&i.getDefaultSshOptions(g).then(function(d){var f=arguments.callee,h=g.getService("orion.git.provider");g.getService("orion.page.message").createProgressMonitor(h.doPush(e.Location,"",!1,!1,d.gitSshUsername,d.gitSshPassword,d.knownHosts,d.gitPrivateKey,d.gitPassphrase),c["Removing remote branch: "]+e.Name).deferred.then(function(h){i.handleProgressServiceResponse(h,d,g,function(c){c.Result.Severity=="Ok"&&a.hitch(k,k.changedItem)(e.parent)},f,c["Delete Remote Branch"])},function(a){i.handleProgressServiceResponse(a,
d,g,function(){},f,c["Removing remote branch: "]+e.Name)})})},visibleWhen:function(a){return a.Type==="RemoteTrackingBranch"}});j.addCommand(p);p=new e.ParametersDescription([new e.CommandParameter("name","text","Name:"),new e.CommandParameter("url","url","Url:")]);p=new e.Command({name:c["New Remote"],tooltip:c["Add a new remote to the repository"],imageClass:"core-sprite-add",id:"eclipse.addRemote",parameters:p,callback:function(c){var d=c.items,e=function(c,e,f){g.getService("orion.git.provider").addRemote(c,
e,f).then(function(){a.hitch(k,k.changedItem)(d)},n)},f;f=d.Type==="Clone"?d.RemoteLocation:d.Location;c.parameters.valueFor("name")&&c.parameters.valueFor("url")&&!c.parameters.optionsRequested?e(f,c.parameters.valueFor("name"),c.parameters.valueFor("url")):(c=new orion.git.widgets.AddRemoteDialog({func:function(a,c){e(f,a,c)}}),c.startup(),c.show())},visibleWhen:function(a){return a.GroupNode&&a.Name==="Remotes"||a.Type==="Clone"&&k.parentId==="artifacts"}});j.addCommand(p);p=new e.Command({name:c.Delete,
tooltip:c["Delete the remote from the repository"],imageClass:"core-sprite-delete",id:"eclipse.removeRemote",callback:function(d){var e=d.items;confirm(a.string.substitute(c["Are you sure you want to delete remote ${0}?"],[e.Name]))&&g.getService("orion.git.provider").removeRemote(e.Location).then(function(){a.hitch(k,k.changedItem)(e.parent)},n)},visibleWhen:function(a){return a.Type==="Remote"}});j.addCommand(p);p=new e.Command({name:c.Pull,tooltip:c["Pull from the repository"],imageClass:"git-sprite-pull",
spriteClass:"gitCommandSprite",id:"eclipse.orion.git.pull",callback:function(d){var e=d.items,f=e.Location;i.getDefaultSshOptions(g).then(function(d){var h=arguments.callee,j=g.getService("orion.git.provider");g.getService("orion.page.message").createProgressMonitor(j.doPull(f,!1,d.gitSshUsername,d.gitSshPassword,d.knownHosts,d.gitPrivateKey,d.gitPassphrase),c["Pulling : "]+f).deferred.then(function(c){i.handleProgressServiceResponse(c,d,g,function(){e.Type==="Clone"&&a.hitch(k,k.changedItem)(e)},
h,"Pull Git Repository")},function(a){i.handleProgressServiceResponse(a,d,g,function(){},h,c["Pull Git Repository"])})})},visibleWhen:function(a){return a.Type==="Clone"}});j.addCommand(p);p=new e.Command({name:c["Git Log"],tooltip:c["Open the log for the branch"],id:"eclipse.openGitLog",imageClass:"git-sprite-log",spriteClass:"gitCommandSprite",hrefCallback:function(a){a=a.items;return d.toUrl("git/git-log.html")+"#"+a.CommitLocation+"?page=1"},visibleWhen:function(a){return a.Type==="Branch"||a.Type===
"RemoteTrackingBranch"}});j.addCommand(p);p=new e.Command({name:c["Git Log"],tooltip:c["Open the log for the repository"],id:"eclipse.openGitLogAll",imageClass:"git-sprite-log",spriteClass:"gitCommandSprite",hrefCallback:function(a){return d.toUrl("git/git-log.html")+"#"+a.items.CommitLocation+"?page=1"},visibleWhen:function(a){return!a.CommitLocation||!a.StatusLocation?!1:!0}});j.addCommand(p);p=new e.Command({name:c["Git Status"],tooltip:c["Open the status for the repository"],id:"eclipse.openGitStatus",
imageClass:"git-sprite-status",spriteClass:"gitCommandSprite",hrefCallback:function(a){return d.toUrl(f.statusUILocation)+"#"+a.items.StatusLocation},visibleWhen:function(a){return!a.StatusLocation?!1:!0}});j.addCommand(p);p=new e.Command({name:c["Show in Navigator"],tooltip:c["Show the repository folder in the file navigator"],id:"eclipse.openCloneContent",hrefCallback:function(a){return d.toUrl("navigate/table.html")+"#"+a.items.ContentLocation+"?depth=1"},visibleWhen:function(a){return!a.ContentLocation?
!1:!0}});j.addCommand(p);p=new e.Command({name:c["Compare With Each Other"],imageClass:"git-sprite-open_compare",spriteClass:"gitCommandSprite",id:"eclipse.compareGitCommits",hrefCallback:function(a){a=a.items;return g.getService("orion.git.provider").getDiff(a[1].DiffLocation,a[0].Name).then(function(a){return h.generateCompareHref(a,{readonly:!0})})},visibleWhen:function(c){return k.isDirectory?!1:a.isArray(c)&&c.length===2&&c[0].Type==="Commit"&&c[1].Type==="Commit"?!0:!1}});j.addCommand(p);p=
new e.Command({name:c["Compare With Working Tree"],imageClass:"git-sprite-open_compare",spriteClass:"gitCommandSprite",id:"eclipse.compareWithWorkingTree",hrefCallback:function(a){return h.generateCompareHref(a.items.DiffLocation,{})},visibleWhen:function(a){return a.Type==="Commit"&&!k.isDirectory}});j.addCommand(p);p=new e.Command({name:c.Open,id:"eclipse.openGitCommit",hrefCallback:function(a){return d.toUrl("edit/edit.html")+"#"+a.items.ContentLocation},visibleWhen:function(a){return a.Type===
"Commit"&&a.ContentLocation!=null&&!k.isDirectory}});j.addCommand(p);p=new e.Command({name:c.Fetch,tooltip:c["Fetch from the remote"],imageClass:"git-sprite-fetch",spriteClass:"gitCommandSprite",id:"eclipse.orion.git.fetch",callback:function(d){var f=d.items,h=f.Location,t=function(a,d){if(a.JsonData.HostKey)d.parameters=null;else if(!d.optionsRequested)d.parameters=a.JsonData.User?new e.ParametersDescription([new e.CommandParameter("sshpassword","password",c["SSH Password:"])],{hasOptionalParameters:!0}):
new e.ParametersDescription([new e.CommandParameter("sshuser","text",c["SSH User Name:"]),new e.CommandParameter("sshpassword","password",c["SSH Password:"])],{hasOptionalParameters:!0});d.errorData=a.JsonData;j.collectParameters(d)};d.parameters&&d.parameters.optionsRequested?(d.parameters=null,d.optionsRequested=!0,j.collectParameters(d)):i.gatherSshCredentials(g,d).then(function(e){var j=g.getService("orion.git.provider");g.getService("orion.page.message").createProgressMonitor(j.doFetch(h,!1,
e.gitSshUsername,e.gitSshPassword,e.knownHosts,e.gitPrivateKey,e.gitPassphrase),c["Fetching remote: "]+h).deferred.then(function(e){i.handleProgressServiceResponse2(e,g,function(){j.getGitRemote(h).then(function(d){k.parentId==="explorer-tree"&&(a.place(document.createTextNode(c["Getting git incoming changes..."]),"explorer-tree","only"),j.getLog(d.HeadLocation,d.Id).then(function(a){k.renderer.setIncomingCommits(a.Children);k.loadCommitsList(d.CommitLocation+"?page=1",d,!0)}));a.hitch(k,k.changedItem)(f)},
n)},function(a){t(a,d)})},function(a){i.handleProgressServiceResponse2(a,g,function(){},function(a){t(a,d)})})})},visibleWhen:function(a){return a.Type==="RemoteTrackingBranch"?!0:a.Type==="Remote"?!0:a.Type==="Commit"&&a.toRef&&a.toRef.Type==="RemoteTrackingBranch"?!0:!1}});j.addCommand(p);p=new e.Command({name:c["Force Fetch"],tooltip:c["Fetch from the remote branch into your remote tracking branch overriding its current content"],id:"eclipse.orion.git.fetchForce",callback:function(d){if(confirm(c["You're going to override content of the remote tracking branch. This can cause the branch to lose commits."]+
"\n\n"+c["Are you sure?"])){var f=d.items,h=f.Location,t=function(a,d){if(a.JsonData.HostKey)d.parameters=null;else if(!d.optionsRequested)d.parameters=a.JsonData.User?new e.ParametersDescription([new e.CommandParameter("sshpassword","password",c["SSH Password:"])],{hasOptionalParameters:!0}):new e.ParametersDescription([new e.CommandParameter("sshuser","text",c["SSH User Name:"]),new e.CommandParameter("sshpassword","password",c["SSH Password:"])],{hasOptionalParameters:!0});d.errorData=a.JsonData;
j.collectParameters(d)};d.parameters&&d.parameters.optionsRequested?(d.parameters=null,d.optionsRequested=!0,j.collectParameters(d)):i.gatherSshCredentials(g,d).then(function(e){var j=g.getService("orion.git.provider");g.getService("orion.page.message").createProgressMonitor(j.doFetch(h,!0,e.gitSshUsername,e.gitSshPassword,e.knownHosts,e.gitPrivateKey,e.gitPassphrase),c["Fetching remote: "]+h).deferred.then(function(e){i.handleProgressServiceResponse2(e,g,function(){j.getGitRemote(h).then(function(d){k.parentId===
"explorer-tree"&&(a.place(document.createTextNode(c["Getting git incoming changes..."]),"explorer-tree","only"),j.getLog(d.HeadLocation,d.Id).then(function(a){k.renderer.setIncomingCommits(a.Children);k.loadCommitsList(d.CommitLocation+"?page=1",d,!0)}));a.hitch(k,k.changedItem)(f)},n)},function(a){t(a,d)})},function(a){i.handleProgressServiceResponse2(a,g,function(){},function(a){t(a,d)})})})}},visibleWhen:function(a){return a.Type==="RemoteTrackingBranch"?!0:a.Type==="Remote"?!0:a.Type==="Commit"&&
a.toRef&&a.toRef.Type==="RemoteTrackingBranch"?!0:!1}});j.addCommand(p);p=new e.Command({name:c.Merge,tooltip:c["Merge the content from the branch to your active branch"],imageClass:"git-sprite-merge",spriteClass:"gitCommandSprite",id:"eclipse.orion.git.merge",callback:function(e){var h=e.items,e=g.getService("orion.git.provider"),i=g.getService("orion.page.message");e.doMerge(h.HeadLocation,h.Name).then(function(e){var g=[];if(e.jsonData&&(e.jsonData.Result=="FAST_FORWARD"||e.jsonData.Result=="ALREADY_UP_TO_DATE"))a.query(".treeTableRow").forEach(function(c){a.toggleClass(c,
"incomingCommitsdRow",!1)}),g.Severity="Ok",g.HTML=!1,g.Message=e.jsonData.Result,a.hitch(k,k.changedItem)(h);else if(e.jsonData){var j=h.HeadLocation.replace("commit/HEAD","status");g.Severity="Warning";g.HTML=!0;g.Message="<span>"+e.jsonData.Result+a.string.substitute(c[". Go to ${0}."],['<a href="'+d.toUrl(f.statusUILocation)+"#"+j+'">'+c["Git Status page"]+"</a>"])+"</span>"}else if(e.error)j=h.HeadLocation.replace("commit/HEAD","status"),g.Severity="Error",e.error.responseText&&JSON.parse(e.error.responseText)?
(e=JSON.parse(e.error.responseText),g.Message=e.DetailedMessage?e.DetailedMessage:e.Message):g.Message=e.error.message,g.HTML=!0,g.Message="<span>"+g.Message+a.string.substitute(c[". Go to ${0}."],['<a href="'+d.toUrl(f.statusUILocation)+"#"+j+'">'+c["Git Status page"]+"</a>"])+"</span>";i.setProgressResult(g)},function(e,i){var j=[],k=h.HeadLocation.replace("commit/HEAD","status");j.Severity="Error";j.HTML=!0;j.Message="<span>"+a.fromJson(i.xhr.responseText).DetailedMessage+a.string.substitute(c[". Go to ${0}."],
['<a href="'+d.toUrl(f.statusUILocation)+"#"+k+'">'+c["Git Status page"]+"</a>"])+".</span>";g.getService("orion.page.message").setProgressResult(j)})},visibleWhen:function(a){return a.Type==="RemoteTrackingBranch"?!0:a.Type==="Branch"&&!a.Current?!0:a.Type==="Commit"&&a.toRef&&a.toRef.Type==="RemoteTrackingBranch"?!0:!1}});j.addCommand(p);p=new e.Command({name:c.Rebase,tooltip:c["Rebase your commits by removing them from the active branch, starting the active branch again based on the latest state of the selected branch "]+
"and applying each commit again to the updated active branch.",id:"eclipse.orion.git.rebase",imageClass:"git-sprite-rebase",spriteClass:"gitCommandSprite",callback:function(e){var h=e.items;g.getService("orion.page.message").createProgressMonitor(g.getService("orion.git.provider").doRebase(h.HeadLocation,h.Name,"BEGIN"),h.Name?c["Rebase on top of "]+h.Name:c.Rebase).deferred.then(function(e){var i=[],j=h.HeadLocation.replace("commit/HEAD","status");e.Result=="OK"||e.Result=="FAST_FORWARD"||e.Result==
"UP_TO_DATE"?(i.Severity="Ok",i.HTML=!1,i.Message=e.Result,a.hitch(k,k.changedItem)(h)):e.Result=="STOPPED"?(i.Severity="Warning",i.HTML=!0,i.Message="<span>"+e.Result+c[". Some conflicts occurred. Please resolve them and continue, skip patch or abort rebasing"]+a.string.substitute(c[". Go to ${0}."],['<a href="'+d.toUrl(f.statusUILocation)+"#"+j+'">'+c["Git Status page"]+"</a>"])+".</span>"):e.Result=="FAILED_WRONG_REPOSITORY_STATE"?(i.Severity="Error",i.HTML=!0,i.Message="<span>"+e.Result+c[". Repository state is invalid (i.e. already during rebasing)"]+
a.string.substitute(". Go to ${0}.",['<a href="'+d.toUrl(f.statusUILocation)+"#"+j+'">'+c["Git Status page"]+"</a>"])+".</span>"):e.Result=="FAILED_UNMERGED_PATHS"?(i.Severity="Error",i.HTML=!0,i.Message="<span>"+e.Result+c[". Repository contains unmerged paths"]+a.string.substitute(c[". Go to ${0}."],['<a href="'+d.toUrl(f.statusUILocation)+"#"+j+'">'+c["Git Status page"]+"</a>"])+".</span>"):e.Result=="FAILED_PENDING_CHANGES"?(i.Severity="Error",i.HTML=!0,i.Message="<span>"+e.Result+c[". Repository contains pending changes. Please commit or stash them"]+
a.string.substitute(c[". Go to ${0}."],['<a href="'+d.toUrl(f.statusUILocation)+"#"+j+'">Git Status page</a>'])+".</span>"):(i.Severity="Warning",i.HTML=!0,i.Message="<span>"+e.Result+a.string.substitute(c[". Go to ${0}."],['<a href="'+d.toUrl(f.statusUILocation)+"#"+j+'">'+c["Git Status page"]+"</a>"])+".</span>");g.getService("orion.page.message").setProgressResult(i)},n)},visibleWhen:function(a){this.tooltip=c["Rebase your commits by removing them from the active branch, "]+c["starting the active branch again based on the latest state of '"]+
a.Name+"' "+c["and applying each commit again to the updated active branch."];return a.Type==="RemoteTrackingBranch"||a.Type==="Branch"&&!a.Current}});j.addCommand(p);p=new e.Command({name:c["Push All"],tooltip:c["Push commits and tags from your local branch into the remote branch"],imageClass:"git-sprite-push",spriteClass:"gitCommandSprite",id:"eclipse.orion.git.push",callback:function(d){var f=d.items,h=a.hash();if(f.toRef)f=f.toRef;var n=function(a,d){if(a.JsonData.HostKey)d.parameters=null;else if(!d.optionsRequested)d.parameters=
a.JsonData.User?new e.ParametersDescription([new e.CommandParameter("sshpassword","password",c["SSH Password:"])],{hasOptionalParameters:!0}):new e.ParametersDescription([new e.CommandParameter("sshuser","text",c["SSH User Name:"]),new e.CommandParameter("sshpassword","password",c["SSH Password:"])],{hasOptionalParameters:!0});d.errorData=a.JsonData;j.collectParameters(d)};d.parameters&&d.parameters.optionsRequested?(d.parameters=null,d.optionsRequested=!0,j.collectParameters(d)):i.gatherSshCredentials(g,
d).then(function(e){var j=g.getService("orion.git.provider");if(f.RemoteLocation.length==1&&f.RemoteLocation[0].Children.length==1)g.getService("orion.page.message").createProgressMonitor(j.doPush(f.RemoteLocation[0].Children[0].Location,"HEAD",!0,!1,e.gitSshUsername,e.gitSshPassword,e.knownHosts,e.gitPrivateKey,e.gitPassphrase),c["Pushing remote: "]+h).deferred.then(function(c){i.handleProgressServiceResponse2(c,g,function(){k.parentId==="explorer-tree"?(!c||!c.HttpCode)&&a.query(".treeTableRow").forEach(function(c){a.toggleClass(c,
"outgoingCommitsdRow",!1)}):a.hitch(k,k.changedItem)()},function(a){n(a,d)})},function(a){i.handleProgressServiceResponse2(a,g,function(){},function(a){n(a,d)})});else{var m=new orion.git.widgets.RemotePrompterDialog({title:c["Choose Branch"],serviceRegistry:g,gitClient:j,treeRoot:{Children:f.RemoteLocation},hideNewBranch:!0,func:a.hitch(this,function(f,h){g.getService("orion.page.message").createProgressMonitor(j.doPush(f.Location,"HEAD",!0,!0,e.gitSshUsername,e.gitSshPassword,e.knownHosts,e.gitPrivateKey,
e.gitPassphrase),c["Pushing remote: "]+h.Name).deferred.then(function(c){i.handleProgressServiceResponse2(c,g,function(){k.parentId==="explorer-tree"?(!c||!c.HttpCode)&&a.query(".treeTableRow").forEach(function(c){a.toggleClass(c,"outgoingCommitsdRow",!1)}):a.hitch(k,k.changedItem)()},function(a){n(a,d)})},function(a){i.handleProgressServiceResponse2(a,g,function(){},function(a){n(a,d)})})})});m.startup();m.show()}})},visibleWhen:function(a){return a.toRef?a.RepositoryPath===""&&a.toRef.Type==="Branch"&&
a.toRef.Current&&a.toRef.RemoteLocation:a.Type==="Branch"&&a.Current&&a.RemoteLocation}});j.addCommand(p);p=new e.Command({name:c["Force Push All"],tooltip:c["Push commits and tags from your local branch into the remote branch overriding its current content"],imageClass:"git-sprite-push",spriteClass:"gitCommandSprite",id:"eclipse.orion.git.pushForce",callback:function(d){if(confirm(c["You're going to override content of the remote branch. This can cause the remote repository to lose commits."]+"\n\n"+
c["Are you sure?"])){var f=d.items,h=a.hash();if(f.toRef)f=f.toRef;var n=function(a,d){if(a.JsonData.HostKey)d.parameters=null;else if(!d.optionsRequested)d.parameters=a.JsonData.User?new e.ParametersDescription([new e.CommandParameter("sshpassword","password",c["SSH Password:"])],{hasOptionalParameters:!0}):new e.ParametersDescription([new e.CommandParameter("sshuser","text",c["SSH User Name:"]),new e.CommandParameter("sshpassword","password",c["SSH Password:"])],{hasOptionalParameters:!0});d.errorData=
a.JsonData;j.collectParameters(d)};d.parameters&&d.parameters.optionsRequested?(d.parameters=null,d.optionsRequested=!0,j.collectParameters(d)):i.gatherSshCredentials(g,d).then(function(e){var j=g.getService("orion.git.provider");if(f.RemoteLocation.length==1&&f.RemoteLocation[0].Children.length==1)g.getService("orion.page.message").createProgressMonitor(j.doPush(f.RemoteLocation[0].Children[0].Location,"HEAD",!0,!0,e.gitSshUsername,e.gitSshPassword,e.knownHosts,e.gitPrivateKey,e.gitPassphrase),c["Pushing remote: "]+
h).deferred.then(function(c){i.handleProgressServiceResponse2(c,g,function(){k.parentId==="explorer-tree"?(!c||!c.HttpCode)&&a.query(".treeTableRow").forEach(function(c){a.toggleClass(c,"outgoingCommitsdRow",!1)}):a.hitch(k,k.changedItem)()},function(a){n(a,d)})},function(a){i.handleProgressServiceResponse2(a,g,function(){},function(a){n(a,d)})});else{var m=new orion.git.widgets.RemotePrompterDialog({title:c["Choose Branch"],serviceRegistry:g,gitClient:j,treeRoot:{Children:f.RemoteLocation},hideNewBranch:!0,
func:a.hitch(this,function(f,h){g.getService("orion.page.message").createProgressMonitor(j.doPush(f.Location,"HEAD",!0,!0,e.gitSshUsername,e.gitSshPassword,e.knownHosts,e.gitPrivateKey,e.gitPassphrase),c["Pushing remote: "]+h.Name).deferred.then(function(c){i.handleProgressServiceResponse2(c,g,function(){k.parentId==="explorer-tree"?(!c||!c.HttpCode)&&a.query(".treeTableRow").forEach(function(c){a.toggleClass(c,"outgoingCommitsdRow",!1)}):a.hitch(k,k.changedItem)()},function(a){n(a,d)})},function(a){i.handleProgressServiceResponse2(a,
g,function(){},function(a){n(a,d)})})})});m.startup();m.show()}})}},visibleWhen:function(a){if(a.toRef)return a.RepositoryPath===""&&a.toRef.Type==="Branch"&&a.toRef.Current&&a.toRef.RemoteLocation}});j.addCommand(p);p=new e.Command({name:c["< Previous Page"],tooltip:c["Show previous page of git log"],id:"eclipse.orion.git.previousLogPage",hrefCallback:function(a){return d.toUrl("git/git-log.html")+"#"+a.items.PreviousLocation},visibleWhen:function(a){return a.Type==="RemoteTrackingBranch"||a.toRef!=
null&&a.toRef.Type==="Branch"||a.RepositoryPath!=null?a.PreviousLocation!==void 0:!1}});j.addCommand(p);p=new e.Command({name:c["Next Page >"],tooltip:c["Show next page of git log"],id:"eclipse.orion.git.nextLogPage",hrefCallback:function(a){return d.toUrl("git/git-log.html")+"#"+a.items.NextLocation},visibleWhen:function(a){return a.Type==="RemoteTrackingBranch"||a.toRef!=null&&a.toRef.Type==="Branch"||a.RepositoryPath!=null?a.NextLocation!==void 0:!1}});j.addCommand(p);p=new e.Command({name:c["Push to..."],
tooltip:c["Push from your local branch into the selected remote branch"],imageClass:"git-sprite-push",spriteClass:"gitCommandSprite",id:"eclipse.orion.git.pushto",callback:function(d){var e=d.items,d={},f;for(f in e.parent.parent.children)e.parent.parent.children[f].Name==="Remote"&&(d=e.parent.parent.children[f]);f=g.getService("orion.git.provider");d=new orion.git.widgets.RemotePrompterDialog({title:c["Choose Branch"],serviceRegistry:g,gitClient:f,treeRoot:d,func:a.hitch(this,function(a,c,d){console.info("Branch "+
a+" remote "+c+" new branch "+d)})});d.startup();d.show()},visibleWhen:function(){return!1}});j.addCommand(p);p=new e.Command({name:c.Reset,tooltip:c["Reset your active branch to the state of the selected branch. Discard all staged and unstaged changes."],id:"eclipse.orion.git.resetIndex",imageClass:"git-sprite-reset",spriteClass:"gitCommandSprite",callback:function(d){var e=d.items;if(confirm(c["The content of your active branch will be replaced with "]+e.Name+". "+c["All unstaged and staged changes will be discarded and cannot be recovered. Are you sure?"])){var d=
g.getService("orion.git.provider"),f=g.getService("orion.page.message");f.createProgressMonitor(d.resetIndex(e.IndexLocation,e.Name),c["Resetting index..."]).deferred.then(function(){a.hitch(k,k.changedItem)(e);f.setProgressResult({Severity:"Info",HTML:!1,Message:"Ok"})},function(a){var c={Severity:"Error",HTML:!1};c.Message=a.message;f.setProgressResult(c)})}},visibleWhen:function(a){return a.Type==="RemoteTrackingBranch"}});j.addCommand(p);p=new e.ParametersDescription([new e.CommandParameter("name",
"text",c["Name:"])]);p=new e.Command({name:c.Tag,tooltip:c["Create a tag for the commit"],imageClass:"git-sprite-tag",spriteClass:"gitCommandSprite",id:"eclipse.orion.git.addTag",parameters:p,callback:function(d){var e=d.items,f=function(c,d){g.getService("orion.git.provider").doAddTag(c,d).then(function(){a.hitch(k,k.changedItem)(e)},n)},h=e.Location;d.parameters.valueFor("name")&&!d.parameters.optionsRequested?f(h,d.parameters.valueFor("name")):i.getNewItemName(e,k,!1,d.domNode.id,c["Tag name"],
function(a){(a||a!="")&&f(h,a)})},visibleWhen:function(a){return a.Type==="Commit"}});j.addCommand(p);p=new e.Command({name:c.Delete,tooltip:c["Delete the tag from the repository"],imageClass:"core-sprite-delete",id:"eclipse.removeTag",callback:function(d){var e=d.items;confirm(a.string.substitute(c["Are you sure you want to delete tag ${0}?"],[e.Name]))&&g.getService("orion.git.provider").doRemoveTag(e.Location).then(function(){a.hitch(k,k.changedItem)(e.parent)},n)},visibleWhen:function(a){return a.Type===
"Tag"}});j.addCommand(p);p=new e.Command({name:c["Cherry-Pick"],tooltip:c["Apply the change introduced by the commit to your active branch"],id:"eclipse.orion.git.cherryPick",imageClass:"git-sprite-cherry_pick",spriteClass:"gitCommandSprite",callback:function(e){var h=e.items,i=a.hash(),j=g.getService("orion.git.provider"),e=h.Location.replace(h.Name,"HEAD");j.doCherryPick(e,h.Name).then(function(e){var m=[],n=h.Location.replace("commit/"+h.Name,"status");e.Result=="OK"?(m.Severity="Ok",e.HeadUpdated?
(m.HTML=!1,m.Message=e.Result,k.parentId==="explorer-tree"&&j.doGitLog(i).then(function(d){d.HeadLocation?(a.place(document.createTextNode(c["Getting git incoming changes..."]),"explorer-tree","only"),j.getLog(d.HeadLocation,d.Id).then(function(a){k.renderer.setIncomingCommits(a.Children);k.loadCommitsList(d.CommitLocation+"?page=1",d,!0)})):(a.place(document.createTextNode(c["Getting git incoming changes..."]),"explorer-tree","only"),j.getLog(i,"HEAD").then(function(a){k.renderer.setOutgoingCommits(a.Children);
k.loadCommitsList(i,d,!0)}))})):(m.HTML=!0,m.Message="<span>"+c["Nothing changed."]+"</span>")):e.Result=="CONFLICTING"?(m.Severity="Warning",m.HTML=!0,m.Message="<span>"+e.Result+c[". Some conflicts occurred"]+ +a.string.substitute(c[". Go to ${0}."],['<a href="'+d.toUrl(f.statusUILocation)+"#"+n+'">'+c["Git Status page"]+"</a>"])+".</span>"):e.Result=="FAILED"?(m.Severity="Error",m.HTML=!0,m.Message="<span>"+e.Result+a.string.substitute(c[". Go to ${0}."],['<a href="'+d.toUrl(f.statusUILocation)+
"#"+n+'">'+c["Git Status page"]+"</a>"])+".</span>"):(m.Severity="Warning",m.HTML=!1,m.Message=e.Result);g.getService("orion.page.message").setProgressResult(m)},n)},visibleWhen:function(a){return a.Type==="Commit"}});j.addCommand(p)};i.createStatusCommands=function(d,f,g,h,j){var k=new e.Command({name:c.Fetch,tooltip:c["Fetch from the remote branch into your remote tracking branch"],imageClass:"git-sprite-fetch",spriteClass:"gitCommandSprite",id:"eclipse.orion.git.fetch",callback:function(e){var f=
e.items.Location,g=d.getService("orion.git.provider");i.getDefaultSshOptions(d).then(function(e){var h=arguments.callee;d.getService("orion.page.message").createProgressMonitor(g.doFetch(f,!1,e.gitSshUsername,e.gitSshPassword,e.knownHosts,e.gitPrivateKey,e.gitPassphrase),c["Fetching remote: "]+f).deferred.then(function(k){i.handleProgressServiceResponse(k,e,d,function(){g.getGitRemote(f).then(function(c){j._gitCommitNavigatorRem.parentId&&a.place(document.createTextNode("Getting git incoming changes..."),
j._gitCommitNavigatorRem.parentId,"only");g.getLog(c.HeadLocation,c.Id).then(function(a){j._gitCommitNavigatorRem.renderer.setIncomingCommits(a.Children);j._gitCommitNavigatorRem.loadCommitsList(c.CommitLocation+"?page=1&pageSize=5",c,!0)})})},h,c["Fetch Git Repository"])},function(a){i.handleProgressServiceResponse(a,e,d,function(){},h,c["Fetch Git Repository"])})})},visibleWhen:function(a){return a.Type==="RemoteTrackingBranch"}});f.addCommand(k);f.registerCommandContribution("itemLevelCommands",
"eclipse.orion.git.fetch",h+1);k=new e.Command({name:c.Merge,tooltip:c["Merge the content from the branch to your active branch"],imageClass:"git-sprite-merge",spriteClass:"gitCommandSprite",id:"eclipse.orion.git.merge",callback:function(c){var c=c.items,e=d.getService("orion.git.provider"),f=d.getService("orion.page.message");e.doMerge(c.HeadLocation,c.Name).then(function(c){var d=[];if(c.jsonData&&(c.jsonData.Result=="FAST_FORWARD"||c.jsonData.Result=="ALREADY_UP_TO_DATE"))a.query(".treeTableRow").forEach(function(c){a.toggleClass(c,
"incomingCommitsdRow",!1)}),d.Severity="Ok",d.HTML=!1,d.Message=c.jsonData.Result,g(),f.setProgressResult(d);else if(c.jsonData)d.Severity="Warning",d.HTML=!0,d.Message="<span>"+c.jsonData.Result+"<span>",f.setProgressResult(d);else if(c.error)d.Severity="Error",c.error.responseText&&JSON.parse(c.error.responseText)?(c=JSON.parse(c.error.responseText),d.Message=c.DetailedMessage?c.DetailedMessage:c.Message):d.Message=c.error.message,d.HTML=!0,d.Message="<span>"+d.Message+"<span>",f.setProgressResult(d)},
function(c,d){var e=[];e.Severity="Error";e.HTML=!0;e.Message="<span>"+a.fromJson(d.xhr.responseText).DetailedMessage+"</span>";f.setProgressResult(e)})},visibleWhen:function(a){return a.Type==="RemoteTrackingBranch"||a.Type==="Branch"&&!a.Current}});f.addCommand(k);f.registerCommandContribution("itemLevelCommands","eclipse.orion.git.merge",h+2);k=new e.Command({name:c.Push,tooltip:c["Push from your local branch into the remote branch"],imageClass:"git-sprite-push",spriteClass:"gitCommandSprite",
id:"eclipse.orion.git.push",callback:function(e){var f=e.items,h=a.hash(),j=d.getService("orion.git.provider");f.RemoteLocation.length==1&&f.RemoteLocation[0].Children.length==1?i.getDefaultSshOptions(d).then(function(e){var k=arguments.callee;d.getService("orion.page.message").createProgressMonitor(j.doPush(f.RemoteLocation[0].Children[0].Location,"HEAD",!0,!1,e.gitSshUsername,e.gitSshPassword,e.knownHosts,e.gitPrivateKey,e.gitPassphrase),c["Pushing remote: "]+h).deferred.then(function(c){i.handleProgressServiceResponse(c,
e,d,function(c){if(!c||!c.HttpCode)a.query(".treeTableRow").forEach(function(c){a.toggleClass(c,"outgoingCommitsdRow",!1)}),g()},k,"Push Git Repository")},function(a){i.handleProgressServiceResponse(a,e,d,function(){},k,c["Push Git Repository"])})}):(e=new orion.git.widgets.RemotePrompterDialog({title:c["Choose Branch"],serviceRegistry:d,gitClient:j,treeRoot:{Children:f.RemoteLocation},hideNewBranch:!0,func:a.hitch(this,function(e,f){i.getDefaultSshOptions(d).then(function(h){var k=arguments.callee;
d.getService("orion.page.message").createProgressMonitor(j.doPush(e.Location,"HEAD",!0,!1,h.gitSshUsername,h.gitSshPassword,h.knownHosts,h.gitPrivateKey,h.gitPassphrase),c["Pushing remote: "]+f).deferred.then(function(e){i.handleProgressServiceResponse(e,h,d,function(c){if(!c||!c.HttpCode)a.query(".treeTableRow").forEach(function(c){a.toggleClass(c,"outgoingCommitsdRow",!1)}),g()},k,c["Push Git Repository"])})},function(a){i.handleProgressServiceResponse(a,options,d,function(){},func,c["Pushing remote: "]+
f)})})}),e.startup(),e.show())},visibleWhen:function(a){return a.Type==="LocalBranch"}});f.addCommand(k);f.registerCommandContribution("itemLevelCommands","eclipse.orion.git.push",h+3)};i.createGitClonesCommands=function(d,f,g,h,j,k){function s(a){if(!(a.status===401||a.status===403)){var c=[];c.Severity="Error";c.HTML=!1;try{var e=JSON.parse(a.responseText);c.Message=e.DetailedMessage?e.DetailedMessage:e.Message}catch(f){c.Message=a.message}d.getService("orion.page.message").setProgressResult(c)}}
function q(c){a.isArray(c)&&(c=c.length>1?{}:c[0]);return c}h=new e.ParametersDescription([new e.CommandParameter("key","text",c["Key:"]),new e.CommandParameter("value","text",c["Value:"])]);h=new e.Command({name:c["New Configuration Entry"],tooltip:"Add a new entry to the repository configuration",imageClass:"core-sprite-add",id:"eclipse.orion.git.addConfigEntryCommand",parameters:h,callback:function(c){var e=c.items,f=d.getService("orion.git.provider");c.parameters.valueFor("key")&&c.parameters.valueFor("value")&&
f.addCloneConfigurationProperty(e.ConfigLocation,c.parameters.valueFor("key"),c.parameters.valueFor("value")).then(function(){a.hitch(g,g.changedItem)(e)},s)}});f.addCommand(h);h=new e.ParametersDescription([new e.CommandParameter("value","text",c["Value:"])]);h=new e.Command({name:c.Edit,tooltip:c["Edit the configuration entry"],imageClass:"core-sprite-edit",id:"eclipse.orion.git.editConfigEntryCommand",parameters:h,callback:function(c){var e=c.items,f=d.getService("orion.git.provider");c.parameters.valueFor("value")&&
f.editCloneConfigurationProperty(e.Location,c.parameters.valueFor("value")).then(function(){a.hitch(g,g.changedItem)(e)},s)},visibleWhen:function(a){return a.Key&&a.Value&&a.Location}});f.addCommand(h);h=new e.Command({name:c.Delete,tooltip:c["Delete the configuration entry"],imageClass:"core-sprite-delete",id:"eclipse.orion.git.deleteConfigEntryCommand",callback:a.hitch(this,function(e){var f=e.items,e=d.getService("orion.git.provider");confirm(a.string.substitute(c["Are you sure you want to delete ${0}?"],
[f.Key]))&&e.deleteCloneConfigurationProperty(f.Location).then(function(){a.hitch(g,g.changedItem)(f)},s)}),visibleWhen:function(a){return a.Key&&a.Value&&a.Location}});f.addCommand(h);h=new e.ParametersDescription([new e.CommandParameter("url","url",c["Repository URL:"])],{hasOptionalParameters:!0});h=new e.Command({name:c["Clone Repository"],tooltip:c["Clone an existing Git repository to a folder"],id:"eclipse.cloneGitRepository",parameters:h,callback:function(e){var f=d.getService("orion.git.provider"),
h=function(e,h,j){i.getDefaultSshOptions(d).then(function(k){var m=arguments.callee;d.getService("orion.page.message").createProgressMonitor(f.cloneGitRepository(j,e,h,g.defaultPath,k.gitSshUsername,k.gitSshPassword,k.knownHosts,k.gitPrivateKey,k.gitPassphrase),c["Cloning repository: "]+e).deferred.then(function(e){i.handleProgressServiceResponse(e,k,d,function(){g.changedItem&&a.hitch(g,g.changedItem)()},m,c["Clone Git Repository"])},function(a){i.handleProgressServiceResponse(a,k,d,function(){},
m,c["Clone Git Repository"])})})};e.parameters.valueFor("url")&&!e.parameters.optionsRequested?h(e.parameters.valueFor("url")):(e=new orion.git.widgets.CloneGitRepositoryDialog({serviceRegistry:d,fileClient:k,url:e.parameters.valueFor("url"),alwaysShowAdvanced:e.parameters.optionsRequested,func:h}),e.startup(),e.show())},visibleWhen:function(){return!0}});f.addCommand(h);h=new e.ParametersDescription([new e.CommandParameter("folderName","text",c["New folder:"])],{hasOptionalParameters:!0});h=new e.Command({name:c["Init Repository"],
tooltip:c["Create a new Git repository in a new folder"],id:"eclipse.initGitRepository",parameters:h,callback:function(e){var f=d.getService("orion.git.provider"),h=function(e,h,j){i.getDefaultSshOptions(d).then(function(k){var m=arguments.callee;d.getService("orion.page.message").createProgressMonitor(f.cloneGitRepository(j,e,h,g.defaultPath),c["Initializing repository: "]+j).deferred.then(function(e){i.handleProgressServiceResponse(e,k,d,function(){g.changedItem&&a.hitch(g,g.changedItem)()},m,c["Init Git Repository"])},
function(a){i.handleProgressServiceResponse(a,k,d,function(){},m,c["Init Git Repository"])})})};e.parameters.valueFor("folderName")&&!e.parameters.optionsRequested?h(null,null,e.parameters.valueFor("folderName")):(e=new orion.git.widgets.CloneGitRepositoryDialog({serviceRegistry:d,title:c["Init Git Repository"],fileClient:k,advancedOnly:!0,func:h}),e.startup(),e.show())},visibleWhen:function(){return!0}});f.addCommand(h);h=new e.Command({name:c.Delete,tooltip:c["Delete the repository"],imageClass:"core-sprite-delete",
id:"eclipse.git.deleteClone",visibleWhen:function(a){return a.Type==="Clone"},callback:function(e){var f=e.items,e=d.getService("orion.git.provider");if(a.isArray(f)){if(confirm(a.string.substitute(c["Are you sure you want do delete ${0} repositories?"],[f.length])))for(var h=0,i=0;i<f.length;i++)e.removeGitRepository(f[i].Location).then(function(){h++;h>=f.length&&g.changedItem&&a.hitch(g,g.changedItem)()},s)}else confirm(a.string.substitute(c["Are you sure you want to delete ${0}?"],[f.Name]))&&
e.removeGitRepository(f.Location).then(function(){g.changedItem&&a.hitch(g,g.changedItem)()},s)}});f.addCommand(h);h=new e.Command({name:c["Apply Patch"],tooltip:c["Apply a patch on the selected repository"],id:"eclipse.orion.git.applyPatch",imageClass:"git-sprite-apply_patch",spriteClass:"gitCommandSprite",callback:function(a){a=q(a.items);a=new orion.git.widgets.ApplyPatchDialog({title:c["Apply Patch"],diffLocation:a.DiffLocation});a.startup();a.show()},visibleWhen:function(a){return a.Type==="Clone"}});
f.addCommand(h);h=new e.Command({name:c["Show content"],tooltip:c["Apply a patch on the selected repository"],id:"eclipse.orion.git.showContent",imageClass:"git-sprite-apply_patch",spriteClass:"gitCommandSprite",callback:function(a){a=q(a.items);a=new orion.git.widgets.ContentDialog({title:c.Content,diffLocation:a.DiffLocation});a.startup();a.show()}});f.addCommand(h);h=new e.ParametersDescription([new e.CommandParameter("commitName","text",c["Commit name:"])],{hasOptionalParameters:!0});h=new e.Command({name:c["Open Commit"],
tooltip:c["Open the commit with the given name"],id:"eclipse.orion.git.openCommitCommand",imageClass:"git-sprite-apply_patch",spriteClass:"gitCommandSprite",parameters:h,callback:function(e){var f=function(g,h,i){i==null&&(i=new a.Deferred);g.length>0?d.getService("orion.git.provider").doGitLog("/gitapi/commit/"+e.parameters.valueFor("commitName")+g[0].ContentLocation+"?page=1&pageSize=1",null,null,c["Looking for the commit"]).then(function(a){i.callback(a.Children[0].Location)},function(){f(g.slice(1),
h,i)}):i.errback();return i},g=function(a){e.parameters.optionsRequested?(new orion.git.widgets.OpenCommitDialog({repositories:a,serviceRegistry:d,commitName:e.parameters.valueFor("commitName")})).show():(d.getService("orion.page.message").setProgressMessage(c["Looking for the commit"]),f(a,e.parameters.valueFor("commitName")).then(function(a){a!==null&&window.open("/git/git-commit.html#"+a+"?page=1&pageSize=1")},function(){var a=[];a.Severity="warning";a.HTML=!1;a.Message=c["No commits found"];d.getService("orion.page.message").setProgressResult(a)}))};
if(e.items.Type==="Clone"){var h=[e.items];g(h)}else e.items.CloneLocation?d.getService("orion.git.provider").getGitClone(e.items.CloneLocation).then(function(a){g(a.Children)}):(h=e.items,g(h))},visibleWhen:function(a){return a.Type==="Clone"||a.CloneLocation||a.length>1&&a[0].Type==="Clone"}});f.addCommand(h)};i.createGitStatusCommands=function(d,g,h){function i(a){if(!(a.status===401||a.status===403)){var c=[];c.Severity="Error";c.HTML=!1;try{var e=JSON.parse(a.responseText);c.Message=e.DetailedMessage?
e.DetailedMessage:e.Message}catch(f){c.Message=a.message}d.getService("orion.page.message").setProgressResult(c)}}function j(c){a.isArray(c)||(c=[c]);return c}function k(e,f){d.getService("orion.page.message").createProgressMonitor(d.getService("orion.git.provider").doRebase(e,"",f),f).deferred.then(function(e){if(e.Result=="OK"||e.Result=="ABORTED"||e.Result=="FAST_FORWARD"||e.Result=="UP_TO_DATE"){var f=[];f.Severity="Ok";f.HTML=!1;f.Message=e.Result;d.getService("orion.page.message").setProgressResult(f);
a.hitch(h,h.changedItem)({})}if(e.Result=="STOPPED")f=[],f.Severity="Warning",f.HTML=!1,f.Message=e.Result+c[". Repository still contains conflicts."],d.getService("orion.page.message").setProgressResult(f),a.hitch(h,h.changedItem)({});else if(e.Result=="FAILED_UNMERGED_PATHS")f=[],f.Severity="Error",f.HTML=!1,f.Message=e.Result+c[". Repository contains unmerged paths. Resolve conflicts first."],d.getService("orion.page.message").setProgressResult(f)},i)}var s=new e.Command({name:c.Stage,tooltip:c["Stage the change"],
imageClass:"git-sprite-stage",spriteClass:"gitCommandSprite",id:"eclipse.orion.git.stageCommand",callback:function(e){var f=j(e.items),g=d.getService("orion.page.message");if(f.length===1)g.createProgressMonitor(d.getService("orion.git.provider").stage(f[0].indexURI),c["Staging changes"]).deferred.then(function(){a.hitch(h,h.changedItem)(f)},i);else{for(var k=[],m=0;m<f.length;m++)k[m]=f[m].name;g.createProgressMonitor(d.getService("orion.git.provider").stageMultipleFiles(e.userData.Clone.IndexLocation,
k),"Staging changes").deferred.then(function(){a.hitch(h,h.changedItem)(f)},i)}},visibleWhen:function(a){a=j(a);if(a.length===0)return!1;for(var c=0;c<a.length;c++)if(!f.isChange(a[c])||f.isStaged(a[c]))return!1;return!0}});g.addCommand(s);s=new e.Command({name:c.Unstage,tooltip:c["Unstage the change"],imageClass:"git-sprite-unstage",spriteClass:"gitCommandSprite",id:"eclipse.orion.git.unstageCommand",callback:function(e){var f=j(e.items),g=d.getService("orion.page.message");if(f.length===1)g.createProgressMonitor(d.getService("orion.git.provider").unstage(f[0].indexURI,
f[0].name),c["Staging changes"]).deferred.then(function(){a.hitch(h,h.changedItem)(f)},i);else{for(var k=[],m=0;m<f.length;m++)k[m]=f[m].name;g.createProgressMonitor(d.getService("orion.git.provider").unstage(e.userData.Clone.IndexLocation,k),c["Staging changes"]).deferred.then(function(){a.hitch(h,h.changedItem)(f)},i)}},visibleWhen:function(a){a=j(a);if(a.length===0)return!1;for(var c=0;c<a.length;c++)if(!f.isChange(a[c])||!f.isStaged(a[c]))return!1;return!0}});g.addCommand(s);s=new e.ParametersDescription([new e.CommandParameter("name",
"text",c["Commit message:"],"",4),new e.CommandParameter("amend","boolean",c["Amend:"],!1)],{hasOptionalParameters:!0});s=new e.Command({name:"Commit",tooltip:"Commit",id:"eclipse.orion.git.commitCommand",parameters:s,callback:function(e){var f=e.items.status,g=function(e){d.getService("orion.page.message").createProgressMonitor(d.getService("orion.git.provider").commitAll(f.Clone.HeadLocation,null,a.toJson(e)),c["Committing changes"]).deferred.then(function(){a.hitch(h,h.changedItem)(f)},i)},j={};
j.Message=e.parameters.valueFor("name");j.Amend=e.parameters.valueFor("amend");for(var k=f.Clone.Config,m=0;m<k.length;m++)if(k[m].Key==="user.name")j.CommitterName=k[m].Value,j.AuthorName=k[m].Value;else if(k[m].Key==="user.email")j.CommitterEmail=k[m].Value,j.AuthorEmail=k[m].Value;j.Message&&j.CommitterName&&j.CommitterEmail&&!e.parameters.optionsRequested?g(j):(e=new orion.git.widgets.CommitDialog({body:j,func:g}),e.startup(),e.show())},visibleWhen:function(){return!0}});g.addCommand(s);s=new e.Command({name:c.Reset,
tooltip:c["Reset the branch, discarding all staged and unstaged changes"],imageClass:"core-sprite-refresh",id:"eclipse.orion.git.resetCommand",callback:function(e){var f=e.items;d.getService("orion.page.dialog").confirm(c["All unstaged and staged changes in the working directory and index will be discarded and cannot be recovered."]+"\n"+c["Are you sure you want to continue?"],function(e){e&&d.getService("orion.page.message").createProgressMonitor(d.getService("orion.git.provider").unstageAll(f.IndexLocation,
"HARD"),c["Resetting local changes"]).deferred.then(function(){a.hitch(h,h.changedItem)(f)},i)})},visibleWhen:function(a){return f.hasStagedChanges(a)||f.hasUnstagedChanges(a)}});g.addCommand(s);s=new e.Command({name:c.Checkout,tooltip:c["Checkout files, discarding all changes"],imageClass:"git-sprite-checkout",spriteClass:"gitCommandSprite",id:"eclipse.orion.git.checkoutCommand",callback:function(e){var f=j(e.items);d.getService("orion.page.dialog").confirm(c["Your changes to the selected files will be discarded and cannot be recovered."]+
"\n"+c["Are you sure you want to continue?"],function(g){if(g){for(var g=d.getService("orion.page.message"),j=[],k=0;k<f.length;k++)j[k]=f[k].name;g.createProgressMonitor(d.getService("orion.git.provider").checkoutPath(e.userData.Clone.Location,j),c["Resetting local changes"]).deferred.then(function(){a.hitch(h,h.changedItem)(f)},i)}})},visibleWhen:function(a){a=j(a);if(a.length===0)return!1;for(var c=0;c<a.length;c++)if(!f.isChange(a[c])||f.isStaged(a[c]))return!1;return!0}});g.addCommand(s);s=new e.Command({name:c["Show Patch"],
tooltip:c["Show workspace changes as a patch"],imageClass:"git-sprite-diff",spriteClass:"gitCommandSprite",id:"eclipse.orion.git.showPatchCommand",hrefCallback:function(a){for(var c=j(a.items),a=a.userData.Clone.DiffLocation+"?parts=diff",d=0;d<c.length;d++)a+="&Path=",a+=c[d].name;return a},visibleWhen:function(a){a=j(a);if(a.length===0)return!1;for(var c=0;c<a.length;c++)if(f.isStaged(a[c]))return!1;return!0}});g.addCommand(s);s=new e.Command({name:c.Continue,tooltip:c["Contibue Rebase"],id:"eclipse.orion.git.rebaseContinueCommand",
callback:function(a){return k(a.items.Clone.HeadLocation,"CONTINUE")},visibleWhen:function(a){return a.RepositoryState.indexOf("REBASING")!=-1}});g.addCommand(s);s=new e.Command({name:c["Skip Patch"],tooltip:c["Skip Patch"],id:"eclipse.orion.git.rebaseSkipPatchCommand",callback:function(a){return k(a.items.Clone.HeadLocation,"SKIP")},visibleWhen:function(a){return a.RepositoryState.indexOf("REBASING")!=-1}});g.addCommand(s);s=new e.Command({name:c.Abort,tooltip:c["Abort Rebase"],id:"eclipse.orion.git.rebaseAbortCommand",
callback:function(a){return k(a.items.Clone.HeadLocation,"ABORT")},visibleWhen:function(a){return a.RepositoryState.indexOf("REBASING")!=-1}});g.addCommand(s)}})();return i});
define("orion/git/git-commit-navigator","i18n!git/nls/gitmessages,dojo,orion/explorer,orion/util,orion/git/gitCommands,orion/navigationUtils,orion/git/widgets/CommitTooltipDialog".split(","),function(c,d,a,e,g,f){var h={};h.GitCommitNavigator=function(){function f(a,c,d,e,g,i,p,r,s){this.registry=a;this.selection=c;this.checkbox=d!=null?d.checkbox:!0;this.minimal=d!=null?d.minimal:!1;this.parentId=e;this.pageTitleId=g;this.toolbarId=i;this.pageNavId=r;this.selectionToolsId=p;this.actionScopeId=s||
d.actionScopeId;this.isDirectory=!0;this.myTree=this.model=null;this.renderer=new h.GitCommitRenderer({actionScopeId:this.actionScopeId,cachePrefix:"GitCommitsNavigator",minimal:this.minimal},this)}f.prototype=new a.Explorer;f.prototype.loadCommitsList=function(f,h,i){var m=new d.Deferred;this.renderer._useCheckboxSelection=!1;f=e.makeRelative(f);if(f===this._lastHash&&!i)return m.callback(),m;this._lastHash=f;this._lastTreeRoot=h;var o=d.byId(this.parentId);(i=d.byId(o.id+"progress"))||(i=d.create("div",
{id:o.id+"progress"},o,"only"));d.empty(i);if(h.status&&h.status!=200){f=h.message;try{var n=JSON.parse(h.responseText);if(n.Message)f=n.Message}catch(p){}h.status!=404&&f!==""&&d.create("b",{innerHTML:d.string.substitute(c["Error ${0}: "],[h.status])},i,"only");d.place(document.createTextNode(f),i,"last");this.toolbarId&&this.selectionToolsId&&g.updateNavTools(this.registry,this,this.toolbarId,this.selectionToolsId,h,this.pageNavId);m.callback();return m}b=d.create("b");d.place(document.createTextNode(c["Loading "]),
i,"last");d.place(document.createTextNode(f),b,"last");d.place(b,i,"last");d.place(document.createTextNode("..."),i,"last");this.toolbarId&&this.selectionToolsId&&g.updateNavTools(this.registry,this,this.toolbarId,this.selectionToolsId,h,this.pageNavId);var r=this.registry.getService("orion.git.provider"),n=function(a,c){var e=new d.Deferred;r.doGitLog(a).then(function(a){m.callback();c?c(a.Children):e.callback(a.Children)});return e};h.Children?(this.createTree(this.parentId,new a.ExplorerFlatModel(f,
n,h.Children),{setFocus:!this.minimal}),m.callback()):this.createTree(this.parentId,new a.ExplorerFlatModel(f,n),{setFocus:!this.minimal});return m};return f}();h.GitCommitRenderer=function(){function e(a,c){this._init(a);this.options=a;this.explorer=c}e.prototype=new a.SelectionRenderer;e.prototype.getCellHeaderElement=function(a){if(!this.options.minimal)switch(a){case 0:return d.create("th",{style:"padding-left: 5px; padding-right: 5px",innerHTML:"<h2>"+c.Message+"</h2>"});case 1:return d.create("th",
{style:"padding-left: 5px; padding-right: 5px",innerHTML:"<h2>"+c.Author+"</h2>"});case 2:return d.create("th",{style:"padding-left: 5px; padding-right: 5px",innerHTML:"<h2>"+c.Date+"</h2>"});case 3:return d.create("th",{style:"padding-left: 5px; padding-right: 5px",innerHTML:"<h2>"+c.Actions+"</h2>"});case 4:return d.create("th",{style:"padding-left: 5px; padding-right: 5px",innerHTML:"<h2>"+c.Branches+"</h2>"});case 5:return d.create("th",{style:"padding-left: 5px; padding-right: 5px",innerHTML:"<h2>"+
c.Tags+"</h2>"})}};e.prototype.setIncomingCommits=function(a){this.incomingCommits=a};e.prototype.setOutgoingCommits=function(a){this.outgoingCommits=a};e.prototype.getCellElement=function(a,c,e){var g=!1;d.forEach(this.incomingCommits,function(a){c.Name===a.Name&&(g=!0)});var h=!1;d.forEach(this.outgoingCommits,function(a){c.Name===a.Name&&(h=!0)});switch(a){case 0:var i,p,a=document.createElement("td");i=d.create("div",{style:"margin-left: 5px; margin-right: 5px; margin-top: 5px; margin-bottom: 5px; padding-left: 20px;"},
a,"only");p=d.create("a",{className:"navlink",href:"/git/git-commit.html#"+c.Location+"?page=1&pageSize=1"},i,"last");d.place(document.createTextNode(c.Message),p,"only");f.addNavGrid(this.explorer.getNavDict(),c,p);var r,s=new orion.git.widgets.CommitTooltipDialog({commit:c,onMouseLeave:function(){dijit.popup.hide&&dijit.popup.hide(s);dijit.popup.close(s)},onMouseEnter:function(){clearTimeout(r)}});d.connect(p,"onmouseover",p,function(){clearTimeout(r);r=setTimeout(function(){dijit.popup.open({popup:s,
around:p,orient:{BR:"TL",TR:"BL"}})},600)});d.connect(p,"onmouseout",p,function(){clearTimeout(r);r=setTimeout(function(){dijit.popup.hide&&dijit.popup.hide(s);dijit.popup.close(s)},200)});g?d.toggleClass(e,"incomingCommitsdRow",!0):h&&d.toggleClass(e,"outgoingCommitsdRow",!0);return a;case 1:return d.create("td",{style:"padding-left: 5px; padding-right: 5px",innerHTML:c.AuthorName+" ("+c.AuthorEmail+")"});case 2:return d.create("td",{style:"padding-left: 5px; padding-right: 5px",innerHTML:d.date.locale.format(new Date(c.Time),
{formatLength:"short"})});case 3:if(this.options.minimal)break;e=this.getActionsColumn(c,e,null,null,!0);d.style(e,"padding-left","5px");d.style(e,"padding-right","5px");return e;case 4:if(this.options.minimal)break;var q=document.createElement("td",{style:"padding-left: 5px; padding-right: 5px"});d.forEach(c.Branches,function(a){d.place(document.createTextNode(a.FullName),d.create("p",{style:"margin: 5px"},q,"last"),"only")});return q;case 5:if(this.options.minimal)break;q=document.createElement("td",
{style:"padding-left: 5px; padding-right: 5px"});d.forEach(c.Tags,function(a){d.place(document.createTextNode(a.Name),d.create("p",{style:"margin: 5px"},q,"last"),"only")});return q}};return e}();return h});
define("git/git-log","i18n!git/nls/gitmessages,require,dojo,orion/bootstrap,orion/status,orion/progress,orion/commands,orion/auth,orion/dialogs,orion/selection,orion/fileClient,orion/operationsClient,orion/searchClient,orion/globalCommands,orion/git/gitClient,orion/ssh/sshTools,orion/git/git-commit-navigator,orion/git/gitCommands,orion/links,dojo/parser,dojo/hash,dijit/layout/BorderContainer,dijit/layout/ContentPane,orion/widgets/eWebBorderContainer".split(","),function(c,d,a,e,g,f,h,i,j,k,l,m,o,
n,p,r,s,q,t){var u;a.addOnLoad(function(){function i(){var c,d=a.hash().split("gitapi/commit/");if(d.length===2&&(d=d[1].split("/"),d.length>1)){c="";for(var e=0;e<d.length-1;e++)c+="/"+d[e];c+="/"+d[d.length-1].split("?")[0]}return c}function w(){var c,d=a.hash().split("gitapi/commit/");if(d.length===2&&(d=d[1].split("/"),d.length>1)){c="";for(var e=1;e<d.length-1;e++)c+="/"+d[e];c+="/"+d[d.length-1].split("?")[0]}return c}function C(c,e,f,g){f&&c.read(f,!0).then(a.hitch(this,function(a){if(g){var c=
u.getService("orion.git.provider");a.Git&&c.getDefaultRemoteBranch(a.Git.RemoteLocation).then(function(a){e.href=d.toUrl("git/git-log.html")+"#"+a.Location+"?page=1"})}else if(a.Git)e.href=d.toUrl("git/git-log.html")+"#"+a.Git.CommitLocation+"?page=1"}),a.hitch(this,function(a){window.console.error("Error loading file metadata: "+a.message)}))}function H(c,d,e,f,g){var h=new a.Deferred,j=e.toRef&&e.toRef.Type==="RemoteTrackingBranch",k=e.toRef&&e.toRef.Type==="Branch",l;j||k?(k=w(),l=e.toRef.Name):
k=i();k?c.read(k,!0).then(a.hitch(this,function(a){var i=l?" ("+l+") ":"";n.setPageTarget({task:"Git Log",title:l?l+" on "+a.Name+" - Git Log":a.Name+" - Git Log",target:e,breadcrumbTarget:a,breadcrumbRootName:a.Parents&&a.Parents.length>0?"Log"+i+a.Parents[a.Parents.length-1].Name:"Log"+i+a.Name,makeBreadcrumbLink:function(a,d){C(c,a,d,j)},serviceRegistry:u,commandService:g,searchService:f});q.updateNavTools(u,d,"pageActions","selectionTools",d._lastTreeRoot);d.updateCommands();h.callback()}),a.hitch(this,
function(a){h.errback(a)})):h.callback();return h}function D(d,e,f){var g=a.hash();a.place(document.createTextNode(c["Loading git log..."]),"explorer-tree","only");var h=u.getService("orion.git.provider");h.doGitLog(g).then(function(c){h.getGitClone(c.CloneLocation).then(function(i){i=i.Children[0];c.Clone=i;c.ContentLocation=i.ContentLocation;h.getGitBranch(i.BranchLocation).then(function(i){a.forEach(i.Children,function(a){if(a.Current===!0)c.Clone.ActiveBranch=a.CommitLocation});i=new l.FileClient(u);
H(i,d,c,e,f).then(function(){var e=function(c){a.place(document.createTextNode("Getting git incoming changes..."),"explorer-tree","only");var e=encodeURIComponent(c.FullName);h.getLog(c.HeadLocation,e).then(function(e){d.renderer.setIncomingCommits(e.Children);d.renderer.setOutgoingCommits([]);h.doGitLog(c.CommitLocation+"?"+(new a._Url(g)).query).then(function(e){c.Children=e.Children;if(e.NextLocation)c.NextLocation=c.Location+"?"+(new a._Url(e.NextLocation)).query;if(e.PreviousLocation)c.PreviousLocation=
c.Location+"?"+(new a._Url(e.PreviousLocation)).query;d.loadCommitsList(c.CommitLocation+"?"+(new a._Url(g)).query,c)})})};c.Type==="RemoteTrackingBranch"?e(c):c.Type==="Commit"&&c.toRef.Type==="RemoteTrackingBranch"?e(c.toRef):c.toRef?c.toRef.RemoteLocation&&c.toRef.RemoteLocation.length===1&&c.toRef.RemoteLocation[0].Children&&c.toRef.RemoteLocation[0].Children.length===1?h.getGitRemote(c.toRef.RemoteLocation[0].Children[0].Location).then(function(e){a.place(document.createTextNode("Getting git incoming changes..."),
"explorer-tree","only");h.getLog(e.CommitLocation,"HEAD").then(function(e){d.renderer.setIncomingCommits([]);d.renderer.setOutgoingCommits(e.Children);d.loadCommitsList(a.hash(),c)})},function(){d.loadCommitsList(a.hash(),c)}):d.loadCommitsList(a.hash(),c):d.loadCommitsList(a.hash(),c)})})})},function(c){d.loadCommitsList(a.hash(),c)})}e.startup().then(function(d){u=d.serviceRegistry;d=d.preferences;document.body.style.visibility="visible";a.parser.parse();var e=new m.OperationsClient(u);new g.StatusReportingService(u,
e,"statusPane","notifications","notificationArea");new f.ProgressService(u,e);new j.DialogService(u);e=new k.Selection(u);new r.SshService(u);var i=new h.CommandService({serviceRegistry:u,selection:e});new t.TextLinkService({serviceRegistry:u});new p.GitService(u);var v=new l.FileClient(u),w=new o.Searcher({serviceRegistry:u,fileService:v,commandService:i}),A=new s.GitCommitNavigator(u,e,null,"explorer-tree","pageTitle","pageActions","selectionTools","pageNavigationActions","itemLevelCommands");n.setPageCommandExclusions(["eclipse.git.remote",
"eclipse.git.log"]);n.generateBanner("banner",u,i,d,w,A);q.createFileCommands(u,i,A,"pageActions","selectionTools");i.addCommandGroup("itemLevelCommands","eclipse.gitGroup.nav",200,c.More);i.addCommandGroup("pageActions","eclipse.gitGroup.page",100);i.addCommandGroup("selectionTools","eclipse.selectionGroup",500,"More");i.registerCommandContribution("itemLevelCommands","eclipse.openGitCommit",1);i.registerCommandContribution("itemLevelCommands","eclipse.compareWithWorkingTree",2);i.registerCommandContribution("selectionTools",
"eclipse.compareGitCommits",1,"eclipse.selectionGroup");i.registerCommandContribution("pageActions","eclipse.orion.git.fetch",100,"eclipse.gitGroup.page");i.registerCommandContribution("pageActions","eclipse.orion.git.fetchForce",100,"eclipse.gitGroup.page");i.registerCommandContribution("pageActions","eclipse.orion.git.merge",100,"eclipse.gitGroup.page");i.registerCommandContribution("pageActions","eclipse.orion.git.push",100,"eclipse.gitGroup.page");i.registerCommandContribution("pageActions","eclipse.orion.git.pushForce",
100,"eclipse.gitGroup.page");i.registerCommandContribution("itemLevelCommands","eclipse.orion.git.addTag",3);i.registerCommandContribution("itemLevelCommands","eclipse.orion.git.cherryPick",3);i.registerCommandContribution("pageNavigationActions","eclipse.orion.git.previousLogPage",1);i.registerCommandContribution("pageNavigationActions","eclipse.orion.git.nextLogPage",2);D(A,w,i);a.subscribe("/dojo/hashchange",A,function(){D(A,w,i)})})})});