/**
 * @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
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 ******************************************************************************/
/**
 * @license RequireJS text 1.0.7 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
 * Available via the MIT or new BSD license.
 * see: http://github.com/jrburke/requirejs for details
 */
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2009, 2011 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors: IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 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) 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) 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). 


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


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

 RequireJS text 1.0.7 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
 Available via the MIT or new BSD license.
 see: http://github.com/jrburke/requirejs for details

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

 Contributors:
 IBM Corporation - initial API and implementation

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

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 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) 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) 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) 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) 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 b(a,b,d,c,i,j){b[a]&&(d.push(a),(b[a]===!0||b[a]===1)&&c.push(i+a+"/"+j))}function c(a,b,d,c,i){b=c+b+"/"+i;require._fileExists(a.toUrl(b))&&d.push(b)}var a=/(^.*(^|\/)nls(\/|$))([^\/]*)\/?([^\/]*)/,d={};define("i18n",{version:"1.0.0",load:function(f,e,g,h){var h=h||{},i=a.exec(f),j=i[1],k=i[4],l=i[5],m=k.split("-"),n=[],o={},p,r,s="";i[5]?(j=i[1],f=j+l):(l=i[4],k=h.locale||(h.locale=typeof navigator==="undefined"?"root":(navigator.language||navigator.userLanguage||"root").toLowerCase()),
m=k.split("-"));if(h.isBuild){n.push(f);c(e,"root",n,j,l);for(p=0;r=m[p];p++)s+=(s?"-":"")+r,c(e,s,n,j,l);e(n,function(){g()})}else e([f],function(a){var c=[];b("root",a,c,n,j,l);for(p=0;r=m[p];p++)s+=(s?"-":"")+r,b(s,a,c,n,j,l);e(n,function(){var b,f;for(b=c.length-1;b>-1&&(r=c[b]);b--){f=a[r];if(f===!0||f===1)f=e(j+r+"/"+l);var i=o,h=void 0;for(h in f)!(h in d)&&!(h in i)&&(i[h]=f[h])}g(o)})})}})})();
define("orion/i18n",[],function(){return{load:function(b,c,a,d){var d=d||{},f=/(^.*(?:^|\/)nls(?:\/|$))([^\/]*)\/?([^\/]*)/,e=f.exec(b);if(e)if(c.defined(b))a(c(b));else if(d.isBuild||d.isTest)a({});else{var g=e[1],h=e[3]?e[2]:"",i=e[3]||e[2];c(["orion/bootstrap"],function(j){j.startup().then(function(k){var j=k.serviceRegistry,k=j.getServiceReferences("orion.i18n.message");if(h)k.some(function(d){return b===d.getProperty("name")?(j.getService(d).getMessageBundle().then(function(b){a(b)},function(){a({})}),
!0):!1})||a({});else{var m={},n;k.forEach(function(a){var b=a.getProperty("name");if((e=f.exec(b))&&g===e[1]&&i===(e[3]||e[2]))if(h=e[3]?e[2]:""){if((a=d.locale||(typeof navigator!=="undefined"?navigator.language||navigator.userLanguage:null))&&a.indexOf(h)===0)m[h]=!0,c.specified(b)||define(b,["orion/i18n!"+b],function(a){return a})}else n=a});c.specified(b)?a(m):n?j.getService(n).getMessageBundle().then(function(d){Object.keys(m).forEach(function(a){typeof d[a]==="undefined"&&(d[a]=m[a])});define(b,
[],d);a(d)},function(){define(b,[],m);a(m)}):(define(b,[],m),a(m))}})})}else a(null)}}});define("git/nls/gitmessages",["orion/i18n!git/nls/gitmessages"],function(b){var c={root:!0};Object.keys(b).forEach(function(a){typeof c[a]==="undefined"&&(c[a]=b[a])});return c});
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 b(a,b,c){(function(){if(typeof this.loadFirebugConsole=="function")this.loadFirebugConsole();else{this.console=this.console||{};for(var e="assert,count,debug,dir,dirxml,error,group,groupEnd,info,profile,profileEnd,time,timeEnd,trace,warn,log".split(","),g=0,h;h=e[g++];)console[h]||function(){var a=h+"";console[a]="log"in console?function(){var b=Array.apply({},arguments);b.unshift(a+":");console.log(b.join(" "))}:function(){};console[a]._fake=!0}()}typeof a=="undefined"&&(a={_scopeName:"dojo",
_scopePrefix:"",_scopePrefixArgs:"",_scopeSuffix:"",_scopeMap:{},_scopeMapRev:{}});var i=a;typeof b=="undefined"&&(b={_scopeName:"dijit"});typeof c=="undefined"&&(c={_scopeName:"dojox"});if(!i._scopeArgs)i._scopeArgs=[a,b,c];i.global=this;i.config={isDebug:!1,debugAtAllCosts:!1};if(e=typeof djConfig!="undefined"?djConfig:typeof dojoConfig!="undefined"?dojoConfig:null)for(var j in e)i.config[j]=e[j];a.locale=i.config.locale;j="$Rev: 24595 $".match(/\d+/);a.version={major:1,minor:6,patch:1,flag:"",
revision:j?+j[0]:NaN,toString:function(){with(i.version)return major+"."+minor+"."+patch+flag+" ("+revision+")"}};typeof OpenAjax!="undefined"&&OpenAjax.hub.registerLibrary(a._scopeName,"http://dojotoolkit.org",i.version.toString());var k,l,m={};for(g in{toString:1}){k=[];break}a._extraNames=k=k||"hasOwnProperty,valueOf,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,constructor".split(",");l=k.length;a._mixin=function(a,b){var d,c,e;for(d in b)if(c=b[d],!(d in a)||a[d]!==c&&(!(d in m)||
m[d]!==c))a[d]=c;if(l&&b)for(e=0;e<l;++e)if(d=k[e],c=b[d],!(d in a)||a[d]!==c&&(!(d in m)||m[d]!==c))a[d]=c;return a};a.mixin=function(a,b){a||(a={});for(var d=1,c=arguments.length;d<c;d++)i._mixin(a,arguments[d]);return a};a._getProp=function(a,b,d){for(var d=d||i.global,c=0,e;d&&(e=a[c]);c++)c==0&&i._scopeMap[e]&&(e=i._scopeMap[e]),d=e in d?d[e]:b?d[e]={}:void 0;return d};a.setObject=function(a,b,d){var c=a.split("."),a=c.pop();return(d=i._getProp(c,!0,d))&&a?d[a]=b:void 0};a.getObject=function(a,
b,d){return i._getProp(a.split("."),b,d)};a.exists=function(a,b){return i.getObject(a,!1,b)!==void 0};a.eval=function(a){return i.global.eval?i.global.eval(a):eval(a)};i.deprecated=i.experimental=function(){}})();return{dojo:a,dijit:b,dojox:c}}if(this.define)define("dojo/_base/_loader/bootstrap",[],function(){var a=b();a.dojo._dijit=a.dijit;a.dojo._dojox=a.dojox;return a.dojo});else{var c=b();dojo=c.dojo;dijit=c.dijit;dojox=c.dojox}})();
define("domReady",[],function(){function b(a){for(var b=0,d;d=a[b];b++)d(g)}function c(){var a=h,d=i;e&&(a.length&&(h=[],b(a)),j.resourcesDone&&d.length&&(i=[],b(d)))}function a(){e||(e=!0,l&&clearInterval(l),c())}function d(a){e?a(g):h.push(a);return d}var f=typeof window!=="undefined"&&window.document,e=!f,g=f?document:null,h=[],i=[],j=requirejs||require||{},k=j.resourcesReady,l;if("resourcesReady"in j)j.resourcesReady=function(a){k&&k(a);a&&c()};f&&(document.addEventListener?(document.addEventListener("DOMContentLoaded",
a,!1),window.addEventListener("load",a,!1)):window.attachEvent&&(window.attachEvent("onload",a),self===self.top&&(l=setInterval(function(){try{document.body&&(document.documentElement.doScroll("left"),a())}catch(b){}},30))),document.readyState==="complete"&&a());d.withResources=function(a){e&&j.resourcesDone?a(g):i.push(a);return d};d.version="1.0.0";d.load=function(a,b,c,e){e.isBuild?c(null):d(c)};return d});
define("dojo/lib/backCompat",["require","dojo/_base/_loader/bootstrap","domReady"],function(b,c,a){var d="_moduleHasPrefix,_loadPath,_loadUri,_loadUriAndCheck,loaded,_callLoaded,_getModuleSymbols,_loadModule,require,provide,platformRequire,requireIf,requireAfterIf,registerModulePath".split(","),f,e;for(f=0;f<d.length;)e=d[f++],c[e]=function(a){return function(){console.warn("dojo."+a+" not available when using an AMD loader.")}}(e);var g=function(a){var b=[],d;for(d=0;d<a.length;)b.push(a[d++]);return b},
h=function(a,b){return b?typeof b=="string"?function(){a[b]()}:function(){b.call(a)}:a};c.ready=c.addOnLoad=function(b,d){a(d?h(b,d):b)};c.addOnLoad(function(){c.postLoad=c.config.afterOnLoad=!0});if(d=c.config.addOnLoad)c.addOnLoad[d instanceof Array?"apply":"call"](c,d);var i=c._loaders=[],j=function(){var a=i.slice(0);for(Array.prototype.splice.apply(i,[0,i.length]);a.length;)a.shift().call()};i.unshift=function(){Array.prototype.unshift.apply(i,g(arguments));a(j)};i.splice=function(){Array.prototype.splice.apply(i,
g(arguments));a(j)};var k=c._unloaders=[];c.unloaded=function(){for(;k.length;)k.pop().call()};c._onto=function(a,b,d){a.push(d?h(b,d):b)};c._modulesLoaded=function(){};c.loadInit=function(a){a()};c.getL10nName=function(a,b,d){d=d?d.toLowerCase():c.locale;a="i18n!"+a.replace(/\./g,"/");return/root/i.test(d)?a+"/nls/"+b:a+"/nls/"+d+"/"+b};c.requireLocalization=function(a,d,e){b.vendor!="altoviso.com"&&(e=!e||e.toLowerCase()===c.locale?"root":e);return b(c.getL10nName(a,d,e))};c.i18n={getLocalization:c.requireLocalization,
normalizeLocale:function(a){a=a?a.toLowerCase():c.locale;a=="root"&&(a="ROOT");return a}};var l=/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/,m=/^((([^\[:]+):)?([^@]+)@)?(\[([^\]]+)\]|([^\[:]*))(:([0-9]+))?$/;c._Url=function(){for(var a=arguments,b=[a[0]],d=1;d<a.length;d++)if(a[d]){var e=new c._Url(a[d]+""),b=new c._Url(b[0]+"");if(e.path==""&&!e.scheme&&!e.authority&&!e.query){if(e.fragment!=null)b.fragment=e.fragment;e=b}else if(!e.scheme&&(e.scheme=b.scheme,!e.authority&&(e.authority=
b.authority,e.path.charAt(0)!="/"))){for(var b=(b.path.substring(0,b.path.lastIndexOf("/")+1)+e.path).split("/"),f=0;f<b.length;f++)b[f]=="."?f==b.length-1?b[f]="":(b.splice(f,1),f--):f>0&&!(f==1&&b[0]=="")&&b[f]==".."&&b[f-1]!=".."&&(f==b.length-1?(b.splice(f,1),b[f-1]=""):(b.splice(f-1,2),f-=2));e.path=b.join("/")}b=[];e.scheme&&b.push(e.scheme,":");e.authority&&b.push("//",e.authority);b.push(e.path);e.query&&b.push("?",e.query);e.fragment&&b.push("#",e.fragment)}this.uri=b.join("");a=this.uri.match(l);
this.scheme=a[2]||(a[1]?"":null);this.authority=a[4]||(a[3]?"":null);this.path=a[5];this.query=a[7]||(a[6]?"":null);this.fragment=a[9]||(a[8]?"":null);if(this.authority!=null)a=this.authority.match(m),this.user=a[3]||null,this.password=a[4]||null,this.host=a[6]||a[7],this.port=a[9]||null};c._Url.prototype.toString=function(){return this.uri};c.moduleUrl=function(a,d){if(!a)return null;var a=a.replace(/\./g,"/")+(d?"/"+d:""),e="",f=a.match(/(.+)(\.[^\/]*)$/);f&&(a=f[1],e=f[2]);return new c._Url(b.nameToUrl(a,
e))};return c});
define("dojo/_base/_loader/hostenv_browser",["dojo/lib/backCompat"],function(b){if(typeof window!="undefined"){b.isBrowser=!0;b._name="browser";(function(){var a=b;if(document&&document.getElementsByTagName)for(var d=document.getElementsByTagName("script"),c=/dojo(\.xd)?\.js(\W|$)/i,e=0;e<d.length;e++){var g=d[e].getAttribute("src");if(g){var h=g.match(c);if(h){if(!a.config.baseUrl)a.config.baseUrl=g.substring(0,h.index);if(d=d[e].getAttribute("djConfig")||d[e].getAttribute("data-dojo-config")){var d=eval("({ "+
d+" })"),i;for(i in d)b.config[i]=d[i]}break}}}a.baseUrl=a.config.baseUrl;i=navigator;d=i.userAgent;c=i.appVersion;e=parseFloat(c);if(d.indexOf("Opera")>=0)a.isOpera=e;if(d.indexOf("AdobeAIR")>=0)a.isAIR=1;a.isKhtml=c.indexOf("Konqueror")>=0?e:0;a.isWebKit=parseFloat(d.split("WebKit/")[1])||void 0;a.isChrome=parseFloat(d.split("Chrome/")[1])||void 0;a.isMac=c.indexOf("Macintosh")>=0;if((g=Math.max(c.indexOf("WebKit"),c.indexOf("Safari"),0))&&!b.isChrome)if(a.isSafari=parseFloat(c.split("Version/")[1]),
!a.isSafari||parseFloat(c.substr(g+7))<=419.3)a.isSafari=2;if(d.indexOf("Gecko")>=0&&!a.isKhtml&&!a.isWebKit)a.isMozilla=a.isMoz=e;if(a.isMoz)a.isFF=parseFloat(d.split("Firefox/")[1]||d.split("Minefield/")[1])||void 0;if(document.all&&!a.isOpera&&(a.isIE=parseFloat(c.split("MSIE ")[1])||void 0,(d=document.documentMode)&&d!=5&&Math.floor(a.isIE)!=d))a.isIE=d;if(b.isIE&&window.location.protocol==="file:")b.config.ieForceActiveXXhr=!0;a.isQuirks=document.compatMode=="BackCompat";a.locale=b.config.locale||
(a.isIE?i.userLanguage:i.language).toLowerCase();a._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];a._xhrObj=function(){var d,c;if(!b.isIE||!b.config.ieForceActiveXXhr)try{d=new XMLHttpRequest}catch(e){}if(!d)for(var f=0;f<3;++f){var g=a._XMLHTTP_PROGIDS[f];try{d=new ActiveXObject(g)}catch(i){c=i}if(d){a._XMLHTTP_PROGIDS=[g];break}}if(!d)throw Error("XMLHTTP not available: "+c);return d};a._isDocumentOk=function(a){var a=a.status||0,b=location.protocol;return a>=200&&
a<300||a==304||a==1223||!a&&(b=="file:"||b=="chrome:"||b=="chrome-extension:"||b=="app:")};var j=window.location+"",k=(i=document.getElementsByTagName("base"))&&i.length>0;a._getText=function(d,c){var e=a._xhrObj();!k&&b._Url&&(d=(new b._Url(j,d)).toString());a.config.cacheBust&&(d+="",d+=(d.indexOf("?")==-1?"?":"&")+String(a.config.cacheBust).replace(/\W+/g,""));e.open("GET",d,!1);try{if(e.send(null),!a._isDocumentOk(e)){var f=Error("Unable to load "+d+" status:"+e.status);f.status=e.status;f.responseText=
e.responseText;throw f;}}catch(g){if(c)return null;throw g;}return e.responseText};var l=window,m=function(a,b){var d=l.attachEvent||l.addEventListener,a=l.attachEvent?a:a.substring(2);d(a,function(){b.apply(l,arguments)},!1)};a._windowUnloaders=[];a.windowUnloaded=function(){for(var b=a._windowUnloaders;b.length;)b.pop()();a=null};var n=0;a.addOnWindowUnload=function(b,d){a._onto(a._windowUnloaders,b,d);n||(n=1,m("onunload",a.windowUnloaded))};var o=0;a.addOnUnload=function(d,c){a._onto(a._unloaders,
d,c);o||(o=1,m("onbeforeunload",b.unloaded))}})();b._initFired=!1;b._loadInit=function(){if(b._scrollIntervalId)clearInterval(b._scrollIntervalId),b._scrollIntervalId=0;if(!b._initFired)b._initFired=!0,!b.config.afterOnLoad&&window.detachEvent&&window.detachEvent("onload",b._loadInit),b._inFlightCount==0&&b._modulesLoaded()};if(!b.config.afterOnLoad)if(document.addEventListener)document.addEventListener("DOMContentLoaded",b._loadInit,!1),window.addEventListener("load",b._loadInit,!1);else if(window.attachEvent&&
(window.attachEvent("onload",b._loadInit),!b.config.skipIeDomLoaded&&self===self.top))b._scrollIntervalId=setInterval(function(){try{document.body&&(document.documentElement.doScroll("left"),b._loadInit())}catch(a){}},30);if(b.isIE)try{(function(){document.namespaces.add("v","urn:schemas-microsoft-com:vml");var a="*,group,roundrect,oval,shape,rect,imagedata,path,textpath,text".split(","),d=0,c=1,e=document.createStyleSheet();if(b.isIE>=8)d=1,c=a.length;for(;d<c;++d)e.addRule("v\\:"+a[d],"behavior:url(#default#VML); display:inline-block")})()}catch(c){}}(function(){var a=
b.config.modulePaths;if(a)for(var d in a)b.registerModulePath(d,a[d])})();b.config.isDebug&&b.require("dojo._firebug.firebug");b.config.debugAtAllCosts&&(b.require("dojo._base._loader.loader_debug"),b.require("dojo.i18n"));return b});define("dojo/lib/kernel",["dojo/_base/_loader/hostenv_browser"],function(b){return dojo=b});
define("dojo/_base/lang",["dojo/lib/kernel"],function(b){(function(){var c=Object.prototype.toString;b.isString=function(a){return typeof a=="string"||a instanceof String};b.isArray=function(a){return a&&(a instanceof Array||typeof a=="array")};b.isFunction=function(a){return c.call(a)==="[object Function]"};b.isObject=function(a){return a!==void 0&&(a===null||typeof a=="object"||b.isArray(a)||b.isFunction(a))};b.isArrayLike=function(a){return a&&a!==void 0&&!b.isString(a)&&!b.isFunction(a)&&!(a.tagName&&
a.tagName.toLowerCase()=="form")&&(b.isArray(a)||isFinite(a.length))};b.isAlien=function(a){return a&&!b.isFunction(a)&&/\{\s*\[native code\]\s*\}/.test(String(a))};b.extend=function(a,d){for(var c=1,e=arguments.length;c<e;c++)b._mixin(a.prototype,arguments[c]);return a};b._hitchArgs=function(a,d){var c=b._toArray(arguments,2),e=b.isString(d);return function(){var f=b._toArray(arguments),g=e?(a||b.global)[d]:d;return g&&g.apply(a||this,c.concat(f))}};b.hitch=function(a,d){if(arguments.length>2)return b._hitchArgs.apply(b,
arguments);d||(d=a,a=null);if(b.isString(d)){a=a||b.global;if(!a[d])throw['dojo.hitch: scope["',d,'"] is null (scope="',a,'")'].join("");return function(){return a[d].apply(a,arguments||[])}}return!a?d:function(){return d.apply(a,arguments||[])}};b.delegate=b._delegate=function(){function a(){}return function(d,c){a.prototype=d;var e=new a;a.prototype=null;c&&b._mixin(e,c);return e}}();var a=function(a,b,d){return(d||[]).concat(Array.prototype.slice.call(a,b||0))},d=function(a,b,d){d=d||[];for(b=
b||0;b<a.length;b++)d.push(a[b]);return d};b._toArray=b.isIE?function(b){return(b.item?d:a).apply(this,arguments)}:a;b.partial=function(a){return b.hitch.apply(b,[null].concat(b._toArray(arguments)))};var f=b._extraNames,e=f.length,g={};b.clone=function(a){if(!a||typeof a!="object"||b.isFunction(a))return a;if(a.nodeType&&"cloneNode"in a)return a.cloneNode(!0);if(a instanceof Date)return new Date(a.getTime());if(a instanceof RegExp)return RegExp(a);var d,c,h,m;if(b.isArray(a)){d=[];for(c=0,h=a.length;c<
h;++c)c in a&&d.push(b.clone(a[c]))}else d=a.constructor?new a.constructor:{};for(m in a)if(h=a[m],!(m in d)||d[m]!==h&&(!(m in g)||g[m]!==h))d[m]=b.clone(h);if(e)for(c=0;c<e;++c)if(m=f[c],h=a[m],!(m in d)||d[m]!==h&&(!(m in g)||g[m]!==h))d[m]=h;return d};b.trim=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")};var h=/\{([^\}]+)\}/g;b.replace=function(a,d,c){return a.replace(c||h,b.isFunction(d)?d:function(a,c){return b.getObject(c,
!1,d)})}})();return b});
define("dojo/_base/array",["dojo/lib/kernel","dojo/_base/lang"],function(b){(function(){var c=function(a,c,e){return[typeof a=="string"?a.split(""):a,c||b.global,typeof e=="string"?new Function("item","index","array",e):e]},a=function(a,b,e,g){for(var e=c(b,g,e),b=e[0],g=0,h=b.length;g<h;++g){var i=!!e[2].call(e[1],b[g],g,b);if(a^i)return i}return a};b.mixin(b,{indexOf:function(a,b,c,g){var h=1,i=a.length||0,j=0;g&&(j=i-1,h=i=-1);c!=void 0&&(j=c);if(g&&j>i||j<i)for(;j!=i;j+=h)if(a[j]==b)return j;
return-1},lastIndexOf:function(a,c,e){return b.indexOf(a,c,e,!0)},forEach:function(a,b,e){if(a&&a.length)for(var b=c(a,e,b),a=b[0],e=0,g=a.length;e<g;++e)b[2].call(b[1],a[e],e,a)},every:function(b,c,e){return a(!0,b,c,e)},some:function(b,c,e){return a(!1,b,c,e)},map:function(a,b,e,g){for(var b=c(a,e,b),a=b[0],g=g?new g:[],e=0,h=a.length;e<h;++e)g.push(b[2].call(b[1],a[e],e,a));return g},filter:function(a,b,e){for(var b=c(a,e,b),a=b[0],e=[],g=0,h=a.length;g<h;++g)b[2].call(b[1],a[g],g,a)&&e.push(a[g]);
return e}})})();return b});
define("dojo/_base/declare",["dojo/lib/kernel","dojo/_base/lang","dojo/_base/array"],function(b){(function(){function c(a,b){throw Error("declare"+(b?" "+b:"")+": "+a);}function a(a,b,d){var e,f,g,h,i,k,j,l=this._inherited=this._inherited||{};typeof a=="string"&&(e=a,a=b,b=d);d=0;h=a.callee;(e=e||h.nom)||c("can't deduce a name to call inherited()",this.declaredClass);i=this.constructor._meta;g=i.bases;j=l.p;if(e!=u){if(l.c!==h&&(j=0,k=g[0],i=k._meta,i.hidden[e]!==h)){(f=i.chains)&&typeof f[e]=="string"&&
c("calling chained method with inherited: "+e,this.declaredClass);do if(i=k._meta,f=k.prototype,i&&(f[e]===h&&f.hasOwnProperty(e)||i.hidden[e]===h))break;while(k=g[++j]);j=k?j:-1}if(k=g[++j])if(f=k.prototype,k._meta&&f.hasOwnProperty(e))d=f[e];else{h=r[e];do if(f=k.prototype,(d=f[e])&&(k._meta?f.hasOwnProperty(e):d!==h))break;while(k=g[++j])}d=k&&d||r[e]}else{if(l.c!==h&&(j=0,(i=g[0]._meta)&&i.ctor!==h)){f=i.chains;for((!f||f.constructor!=="manual")&&c("calling chained constructor with inherited",
this.declaredClass);k=g[++j];)if((i=k._meta)&&i.ctor===h)break;j=k?j:-1}for(;k=g[++j];)if(d=(i=k._meta)?i.ctor:k)break;d=k&&d}l.c=d;l.p=j;if(d)return b===!0?d:d.apply(this,b||a)}function d(a,b){return typeof a=="string"?this.inherited(a,b,!0):this.inherited(a,!0)}function f(a){for(var b=this.constructor._meta.bases,d=0,c=b.length;d<c;++d)if(b[d]===a)return!0;return this instanceof a}function e(a,b){var d,c=0,e=o._extraNames.length;for(d in b)d!=u&&b.hasOwnProperty(d)&&(a[d]=b[d]);for(;c<e;++c)d=o._extraNames[c],
d!=u&&b.hasOwnProperty(d)&&(a[d]=b[d])}function g(a,b){var d,c,e=0,f=o._extraNames.length;for(d in b)if(c=b[d],(c!==r[d]||!(d in r))&&d!=u){if(s.call(c)=="[object Function]")c.nom=d;a[d]=c}for(;e<f;++e)if(d=o._extraNames[e],c=b[d],(c!==r[d]||!(d in r))&&d!=u){if(s.call(c)=="[object Function]")c.nom=d;a[d]=c}return a}function h(a){g(this.prototype,a);return this}function i(a,b){return function(){var v;var d=arguments,c=d,e=d[0],f,g;g=a.length;var h;if(!(this instanceof d.callee))return n(d);if(b&&
(e&&e.preamble||this.preamble)){h=Array(a.length);h[0]=d;for(f=0;;){if(e=d[0])(e=e.preamble)&&(d=e.apply(this,d)||d);e=a[f].prototype;(e=e.hasOwnProperty("preamble")&&e.preamble)&&(d=e.apply(this,d)||d);if(++f==g)break;h[f]=d}}for(f=g-1;f>=0;--f)e=a[f],(v=(g=e._meta)?g.ctor:e,e=v)&&e.apply(this,h?h[f]:d);(e=this.postscript)&&e.apply(this,c)}}function j(a,b){return function(){var d=arguments,c=d,e=d[0];if(!(this instanceof d.callee))return n(d);if(b){if(e)(e=e.preamble)&&(c=e.apply(this,c)||c);(e=
this.preamble)&&e.apply(this,c)}a&&a.apply(this,d);(e=this.postscript)&&e.apply(this,d)}}function k(a){return function(){var v;var b=arguments,d=0,c,e;if(!(this instanceof b.callee))return n(b);for(;c=a[d];++d)if(v=(e=c._meta)?e.ctor:c,c=v){c.apply(this,b);break}(c=this.postscript)&&c.apply(this,b)}}function l(a,b,d){return function(){var c,e,f=0,g=1;d&&(f=b.length-1,g=-1);for(;c=b[f];f+=g)e=c._meta,(c=(e?e.hidden:c.prototype)[a])&&c.apply(this,arguments)}}function m(a){q.prototype=a.prototype;a=
new q;q.prototype=null;return a}function n(a){var b=a.callee,d=m(b);b.apply(d,a);return d}var o=b,p=o._mixin,r=Object.prototype,s=r.toString,q=new Function,t=0,u="constructor";o.declare=function(b,n,q){typeof b!="string"&&(q=n,n=b,b="");var q=q||{},z,C,w,x,J,E,D,G=1,K=n;if(s.call(n)=="[object Array]"){G=b;w=[];x=[{cls:0,refs:[]}];E={};for(var B=1,y=n.length,L=0,F,M,I,N;L<y;++L){(F=n[L])?s.call(F)!="[object Function]"&&c("mixin #"+L+" is not a callable constructor.",G):c("mixin #"+L+" is unknown. Did you use dojo.require to pull it in?",
G);M=F._meta?F._meta.bases:[F];I=0;for(F=M.length-1;F>=0;--F){N=M[F].prototype;if(!N.hasOwnProperty("declaredClass"))N.declaredClass="uniqName_"+t++;N=N.declaredClass;E.hasOwnProperty(N)||(E[N]={count:0,refs:[],cls:M[F]},++B);N=E[N];I&&I!==N&&(N.refs.push(I),++I.count);I=N}++I.count;x[0].refs.push(I)}for(;x.length;){I=x.pop();w.push(I.cls);for(--B;C=I.refs,C.length==1;){I=C[0];if(!I||--I.count){I=0;break}w.push(I.cls);--B}if(I)for(L=0,y=C.length;L<y;++L)I=C[L],--I.count||x.push(I)}B&&c("can't build consistent linearization",
G);F=n[0];w[0]=F?F._meta&&F===w[w.length-F._meta.bases.length]?F._meta.bases.length:1:0;E=w;w=E[0];G=E.length-w;n=E[G]}else E=[0],n?s.call(n)=="[object Function]"?(w=n._meta,E=E.concat(w?w.bases:n)):c("base class is not a callable constructor.",b):n!==null&&c("unknown base class. Did you use dojo.require to pull it in?",b);if(n)for(C=G-1;;--C){z=m(n);if(!C)break;w=E[C];(w._meta?e:p)(z,w.prototype);x=new Function;x.superclass=n;x.prototype=z;n=z.constructor=x}else z={};g(z,q);w=q.constructor;if(w!==
r.constructor)w.nom=u,z.constructor=w;for(C=G-1;C;--C)(w=E[C]._meta)&&w.chains&&(D=p(D||{},w.chains));z["-chains-"]&&(D=p(D||{},z["-chains-"]));w=!D||!D.hasOwnProperty(u);E[0]=x=D&&D.constructor==="manual"?k(E):E.length==1?j(q.constructor,w):i(E,w);x._meta={bases:E,hidden:q,chains:D,parents:K,ctor:q.constructor};x.superclass=n&&n.prototype;x.extend=h;x.prototype=z;z.constructor=x;z.getInherited=d;z.inherited=a;z.isInstanceOf=f;if(b)z.declaredClass=b,o.setObject(b,x);if(D)for(J in D)if(z[J]&&typeof D[J]==
"string"&&J!=u)w=z[J]=l(J,E,D[J]==="after"),w.nom=J;return x};o.safeMixin=g})();return b.declare});
define("dojo/_base/connect",["dojo/lib/kernel","dojo/_base/lang"],function(b){b._listener={getDispatcher:function(){return function(){var b=Array.prototype,a=arguments.callee,d=a._listeners,a=(a=a.target)&&a.apply(this,arguments),f,d=[].concat(d);for(f in d)f in b||d[f].apply(this,arguments);return a}},add:function(c,a,d){var c=c||b.global,f=c[a];if(!f||!f._listeners){var e=b._listener.getDispatcher();e.target=f;e._listeners=[];f=c[a]=e}return f._listeners.push(d)},remove:function(c,a,d){(c=(c||b.global)[a])&&
c._listeners&&d--&&delete c._listeners[d]}};b.connect=function(c,a,d,f,e){var g=arguments,h=[],i=0;h.push(b.isString(g[0])?null:g[i++],g[i++]);var j=g[i+1];h.push(b.isString(j)||b.isFunction(j)?g[i++]:null,g[i++]);for(j=g.length;i<j;i++)h.push(g[i]);return b._connect.apply(this,h)};b._connect=function(c,a,d,f){var e=b._listener,d=e.add(c,a,b.hitch(d,f));return[c,a,d,e]};b.disconnect=function(c){c&&c[0]!==void 0&&(b._disconnect.apply(this,c),delete c[0])};b._disconnect=function(b,a,d,f){f.remove(b,
a,d)};b._topics={};b.subscribe=function(c,a,d){return[c,b._listener.add(b._topics,c,b.hitch(a,d))]};b.unsubscribe=function(c){c&&b._listener.remove(b._topics,c[0],c[1])};b.publish=function(c,a){var d=b._topics[c];d&&d.apply(this,a||[])};b.connectPublisher=function(c,a,d){var f=function(){b.publish(c,arguments)};return d?b.connect(a,d,f):b.connect(a,f)};return b.connect});
define("dojo/_base/Deferred",["dojo/lib/kernel","dojo/_base/lang"],function(b){(function(){var c=function(){},a=Object.freeze||function(){},d=function(){var a,b,d,c,i=!1,j=function(){};return function(k){if(i)a?(b.next={task:k,next:null},b=b.next):b=a={task:k,next:null};else{i=!0;do try{for(;k;){k();if(d)a?b.next=d:a=d,b=c;a?(d=a.next,c=b,k=a.task,a=b=null):k=null}i=!1}catch(l){k=j,console.error(l)}while(i)}}}();b.Deferred=function(f){function e(a){if(i)throw Error("This deferred has already been resolved");
h=a;i=!0;d(g)}function g(){for(var a;!a&&l;){var d=l;l=l.next;if(a=d.progress==c)i=!1;var e=j?d.error:d.resolved;if(e)try{var f=e(h);f&&typeof f.then==="function"?f.then(b.hitch(d.deferred,"resolve"),b.hitch(d.deferred,"reject"),b.hitch(d.deferred,"progress")):(e=a&&f===void 0,a&&!e&&(j=f instanceof Error),d.deferred[e&&j?"reject":"resolve"](e?h:f))}catch(g){d.deferred.reject(g)}else j?d.deferred.reject(h):d.deferred.resolve(h)}}var h,i,j,k,l,m=this.promise={};this.resolve=this.callback=function(a){this.fired=
0;this.results=[a,null];e(a)};this.reject=this.errback=function(a){j=!0;this.fired=1;e(a);this.results=[null,a];if(!a||a.log!==!1)(b.config.deferredOnError||function(a){console.error(a)})(a)};this.progress=function(a){for(var b=l;b;){var d=b.progress;d&&d(a);b=b.next}};this.addCallbacks=function(a,b){this.then(a,b,c);return this};this.then=m.then=function(a,e,f){var h=f==c?this:new b.Deferred(m.cancel),a={resolved:a,error:e,progress:f,deferred:h};l?k=k.next=a:l=k=a;i&&d(g);return h.promise};var n=
this;this.cancel=m.cancel=function(){if(!i){var a=f&&f(n);if(!i)a instanceof Error||(a=Error(a)),a.log=!1,n.reject(a)}};a(m)};b.extend(b.Deferred,{addCallback:function(a){return this.addCallbacks(b.hitch.apply(b,arguments))},addErrback:function(a){return this.addCallbacks(null,b.hitch.apply(b,arguments))},addBoth:function(a){var d=b.hitch.apply(b,arguments);return this.addCallbacks(d,d)},fired:-1})})();b.when=function(b,a,d,f){return b&&typeof b.then==="function"?b.then(a,d,f):a(b)};return b.Deferred});
define("dojo/_base/json",["dojo/lib/kernel"],function(b){b.fromJson=function(b){return eval("("+b+")")};b._escapeString=function(b){return('"'+b.replace(/(["\\])/g,"\\$1")+'"').replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")};b.toJsonIndentStr="\t";b.toJson=function(c,a,d){if(c===void 0)return"undefined";var f=typeof c;if(f=="number"||f=="boolean")return c+"";if(c===null)return"null";if(b.isString(c))return b._escapeString(c);var e=
arguments.callee,g,d=d||"",h=a?d+b.toJsonIndentStr:"";g=c.__json__||c.json;if(b.isFunction(g)&&(g=g.call(c),c!==g))return e(g,a,h);if(c.nodeType&&c.cloneNode)throw Error("Can't serialize DOM nodes");g=a?" ":"";var i=a?"\n":"";if(b.isArray(c))return"["+b.map(c,function(b){b=e(b,a,h);typeof b!="string"&&(b="undefined");return i+h+b}).join(","+g)+i+d+"]";if(f=="function")return null;var f=[],j;for(j in c){var k,l;if(typeof j=="number")k='"'+j+'"';else if(typeof j=="string")k=b._escapeString(j);else continue;
l=e(c[j],a,h);typeof l=="string"&&f.push(i+h+k+":"+g+l)}return"{"+f.join(","+g)+i+d+"}"};return b});
define("dojo/_base/Color",["dojo/lib/kernel","dojo/_base/array","dojo/_base/lang"],function(b){(function(){b.Color=function(b){b&&this.setColor(b)};b.Color.named={black:[0,0,0],silver:[192,192,192],gray:[128,128,128],white:[255,255,255],maroon:[128,0,0],red:[255,0,0],purple:[128,0,128],fuchsia:[255,0,255],green:[0,128,0],lime:[0,255,0],olive:[128,128,0],yellow:[255,255,0],navy:[0,0,128],blue:[0,0,255],teal:[0,128,128],aqua:[0,255,255],transparent:b.config.transparentColor||[255,255,255]};b.extend(b.Color,
{r:255,g:255,b:255,a:1,_set:function(b,a,d,f){this.r=b;this.g=a;this.b=d;this.a=f},setColor:function(c){b.isString(c)?b.colorFromString(c,this):b.isArray(c)?b.colorFromArray(c,this):(this._set(c.r,c.g,c.b,c.a),c instanceof b.Color||this.sanitize());return this},sanitize:function(){return this},toRgb:function(){return[this.r,this.g,this.b]},toRgba:function(){return[this.r,this.g,this.b,this.a]},toHex:function(){return"#"+b.map(["r","g","b"],function(b){b=this[b].toString(16);return b.length<2?"0"+
b:b},this).join("")},toCss:function(b){var a=this.r+", "+this.g+", "+this.b;return(b?"rgba("+a+", "+this.a:"rgb("+a)+")"},toString:function(){return this.toCss(!0)}});b.blendColors=function(c,a,d,f){var e=f||new b.Color;b.forEach(["r","g","b","a"],function(b){e[b]=c[b]+(a[b]-c[b])*d;b!="a"&&(e[b]=Math.round(e[b]))});return e.sanitize()};b.colorFromRgb=function(c,a){var d=c.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/);return d&&b.colorFromArray(d[1].split(/\s*,\s*/),a)};b.colorFromHex=function(c,
a){var d=a||new b.Color,f=c.length==4?4:8,e=(1<<f)-1,c=Number("0x"+c.substr(1));if(isNaN(c))return null;b.forEach(["b","g","r"],function(a){var b=c&e;c>>=f;d[a]=f==4?17*b:b});d.a=1;return d};b.colorFromArray=function(c,a){var d=a||new b.Color;d._set(Number(c[0]),Number(c[1]),Number(c[2]),Number(c[3]));if(isNaN(d.a))d.a=1;return d.sanitize()};b.colorFromString=function(c,a){var d=b.Color.named[c];return d&&b.colorFromArray(d,a)||b.colorFromRgb(c,a)||b.colorFromHex(c,a)}})();return b.Color});
define("dojo/_base/window",["dojo/lib/kernel"],function(b){b.doc=window.document||null;b.body=function(){return b.doc.body||b.doc.getElementsByTagName("body")[0]};b.setContext=function(c,a){b.global=c;b.doc=a};b.withGlobal=function(c,a,d,f){var e=b.global;try{return b.global=c,b.withDoc.call(null,c.document,a,d,f)}finally{b.global=e}};b.withDoc=function(c,a,d,f){var e=b.doc,g=b._bodyLtr,h=b.isQuirks;try{return b.doc=c,delete b._bodyLtr,b.isQuirks=b.doc.compatMode=="BackCompat",d&&typeof a=="string"&&
(a=d[a]),a.apply(d,f||[])}finally{b.doc=e;delete b._bodyLtr;if(g!==void 0)b._bodyLtr=g;b.isQuirks=h}};return b});
define("dojo/_base/event",["dojo/lib/kernel","dojo/_base/connect"],function(b){(function(){var c=b._event_listener={add:function(a,d,e){if(a){d=c._normalizeEventName(d);e=c._fixCallback(d,e);if(!b.isIE&&(d=="mouseenter"||d=="mouseleave"))var f=e,d=d=="mouseenter"?"mouseover":"mouseout",e=function(d){if(!b.isDescendant(d.relatedTarget,a))return f.call(this,d)};a.addEventListener(d,e,!1);return e}},remove:function(a,d,e){if(a){d=c._normalizeEventName(d);if(!b.isIE&&(d=="mouseenter"||d=="mouseleave"))d=
d=="mouseenter"?"mouseover":"mouseout";a.removeEventListener(d,e,!1)}},_normalizeEventName:function(a){return a.slice(0,2)=="on"?a.slice(2):a},_fixCallback:function(a,b){return a!="keypress"?b:function(a){return b.call(this,c._fixEvent(a,this))}},_fixEvent:function(a){switch(a.type){case "keypress":c._setKeyChar(a)}return a},_setKeyChar:function(a){a.keyChar=a.charCode>=32?String.fromCharCode(a.charCode):"";a.charOrCode=a.keyChar||a.keyCode},_punctMap:{106:42,111:47,186:59,187:43,188:44,189:45,190:46,
191:47,192:96,219:91,220:92,221:93,222:39}};b.fixEvent=function(a,b){return c._fixEvent(a,b)};b.stopEvent=function(a){a.preventDefault();a.stopPropagation()};var a=b._listener;b._connect=function(d,e,f,g,h){h=d&&(d.nodeType||d.attachEvent||d.addEventListener)?h?2:1:0;f=[b._listener,c,a][h].add(d,e,b.hitch(f,g));return[d,e,f,h]};b._disconnect=function(d,e,f,g){[b._listener,c,a][g].remove(d,e,f)};b.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:b.isSafari?91:224,PAUSE:19,CAPS_LOCK:20,
ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,HELP:47,LEFT_WINDOW:91,RIGHT_WINDOW:92,SELECT:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_ENTER:108,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,
F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145,copyKey:b.isMac&&!b.isAIR?b.isSafari?91:224:17};var d=b.isMac?"metaKey":"ctrlKey";b.isCopyKey=function(a){return a[d]};b.mouseButtons=b.isIE<9||b.isIE&&b.isQuirks?{LEFT:1,MIDDLE:4,RIGHT:2,isButton:function(a,b){return a.button&b},isLeft:function(a){return a.button&1},isMiddle:function(a){return a.button&4},isRight:function(a){return a.button&2}}:{LEFT:0,MIDDLE:1,RIGHT:2,isButton:function(a,b){return a.button==b},isLeft:function(a){return a.button==
0},isMiddle:function(a){return a.button==1},isRight:function(a){return a.button==2}};if(b.isIE){var f=function(a,b){try{return a.keyCode=b}catch(d){return 0}},e=b._listener,g=b._ieListenersName="_"+b._scopeName+"_listeners";if(!b.config._allow_leaks)var a=e=b._ie_listener={handlers:[],add:function(a,d,c){var a=a||b.global,e=a[d];if(!e||!e[g]){var f=b._getIeDispatcher();f.target=e&&h.push(e)-1;f[g]=[];e=a[d]=f}return e[g].push(h.push(c)-1)},remove:function(a,d,c){var i;i=(a=(a||b.global)[d])&&a[g],
d=i;a&&d&&c--&&(delete h[d[c]],delete d[c])}},h=e.handlers;b.mixin(c,{add:function(a,b,d){if(a){b=c._normalizeEventName(b);if(b=="onkeypress"){var f=a.onkeydown;if(!f||!f[g]||!f._stealthKeydownHandle){var h=c.add(a,"onkeydown",c._stealthKeyDown),f=a.onkeydown;f._stealthKeydownHandle=h;f._stealthKeydownRefs=1}else f._stealthKeydownRefs++}return e.add(a,b,c._fixCallback(d))}},remove:function(a,b,d){b=c._normalizeEventName(b);e.remove(a,b,d);if(b=="onkeypress")b=a.onkeydown,--b._stealthKeydownRefs<=
0&&(e.remove(a,"onkeydown",b._stealthKeydownHandle),delete b._stealthKeydownHandle)},_normalizeEventName:function(a){return a.slice(0,2)!="on"?"on"+a:a},_nop:function(){},_fixEvent:function(a,d){if(!a)a=(d&&(d.ownerDocument||d.document||d).parentWindow||window).event;if(!a)return a;a.target=a.srcElement;a.currentTarget=d||a.srcElement;a.layerX=a.offsetX;a.layerY=a.offsetY;var e=a.srcElement,e=e&&e.ownerDocument||document,e=b.isIE<6||e.compatMode=="BackCompat"?e.body:e.documentElement,f=b._getIeDocumentElementOffset();
a.pageX=a.clientX+b._fixIeBiDiScrollLeft(e.scrollLeft||0)-f.x;a.pageY=a.clientY+(e.scrollTop||0)-f.y;if(a.type=="mouseover")a.relatedTarget=a.fromElement;if(a.type=="mouseout")a.relatedTarget=a.toElement;if(b.isIE<9||b.isQuirks)a.stopPropagation=c._stopPropagation,a.preventDefault=c._preventDefault;return c._fixKeys(a)},_fixKeys:function(a){switch(a.type){case "keypress":var b="charCode"in a?a.charCode:a.keyCode;b==10?(b=0,a.keyCode=13):b==13||b==27?b=0:b==3&&(b=99);a.charCode=b;c._setKeyChar(a)}return a},
_stealthKeyDown:function(a){var d=a.currentTarget.onkeypress;if(d&&d[g]){var e=a.keyCode,h=(e!=13||b.isIE>=9&&!b.isQuirks)&&e!=32&&e!=27&&(e<48||e>90)&&(e<96||e>111)&&(e<186||e>192)&&(e<219||e>222);if(h||a.ctrlKey){h=h?0:e;if(a.ctrlKey)if(e==3||e==13)return;else h>95&&h<106?h-=48:!a.shiftKey&&h>=65&&h<=90?h+=32:h=c._punctMap[h]||h;e=c._synthesizeEvent(a,{type:"keypress",faux:!0,charCode:h});d.call(a.currentTarget,e);if(b.isIE<9||b.isIE&&b.isQuirks)a.cancelBubble=e.cancelBubble;a.returnValue=e.returnValue;
f(a,e.keyCode)}}},_stopPropagation:function(){this.cancelBubble=!0},_preventDefault:function(){this.bubbledKeyCode=this.keyCode;this.ctrlKey&&f(this,0);this.returnValue=!1}});b.stopEvent=b.isIE<9||b.isQuirks?function(a){a=a||window.event;c._stopPropagation.call(a);c._preventDefault.call(a)}:b.stopEvent}c._synthesizeEvent=function(a,d){var e=b.mixin({},a,d);c._setKeyChar(e);e.preventDefault=function(){a.preventDefault()};e.stopPropagation=function(){a.stopPropagation()};return e};b.isOpera&&b.mixin(c,
{_fixEvent:function(a){switch(a.type){case "keypress":var b=a.which;b==3&&(b=99);b=b<41&&!a.shiftKey?0:b;a.ctrlKey&&!a.shiftKey&&b>=65&&b<=90&&(b+=32);return c._synthesizeEvent(a,{charCode:b})}return a}});if(b.isWebKit)c._add=c.add,c._remove=c.remove,b.mixin(c,{add:function(a,b,d){if(a){var e=c._add(a,b,d);if(c._normalizeEventName(b)=="keypress")e._stealthKeyDownHandle=c._add(a,"keydown",function(a){var b=a.keyCode,e=b!=13&&b!=32&&(b<48||b>90)&&(b<96||b>111)&&(b<186||b>192)&&(b<219||b>222);if(e||
a.ctrlKey){e=e?0:b;if(a.ctrlKey)if(b==3||b==13)return;else e>95&&e<106?e-=48:!a.shiftKey&&e>=65&&e<=90?e+=32:e=c._punctMap[e]||e;b=c._synthesizeEvent(a,{type:"keypress",faux:!0,charCode:e});d.call(a.currentTarget,b)}});return e}},remove:function(a,b,d){a&&(d._stealthKeyDownHandle&&c._remove(a,"keydown",d._stealthKeyDownHandle),c._remove(a,b,d))},_fixEvent:function(a){switch(a.type){case "keypress":if(a.faux)break;var b=a.charCode;return c._synthesizeEvent(a,{charCode:b>=32?b:0,faux:!0})}return a}})})();
if(b.isIE)b._ieDispatcher=function(c,a){var d=Array.prototype,f=b._ie_listener.handlers,e=c.callee,g=e[b._ieListenersName],e=(e=f[e.target])&&e.apply(a,c),g=[].concat(g),h;for(h in g){var i=f[g[h]];!(h in d)&&i&&i.apply(a,c)}return e},b._getIeDispatcher=function(){return new Function(b._scopeName+"._ieDispatcher(arguments, this)")},b._event_listener._fixCallback=function(c){var a=b._event_listener._fixEvent;return function(b){return c.call(this,a(b,this))}};return b.connect});
define("dojo/_base/html",["dojo/lib/kernel","dojo/_base/lang"],function(b){try{document.execCommand("BackgroundImageCache",!1,!0)}catch(c){}b.byId=b.isIE?function(a,d){if(typeof a!="string")return a;var c=d||b.doc,e=c.getElementById(a);if(e&&(e.attributes.id.value==a||e.id==a))return e;else{c=c.all[a];if(!c||c.nodeName)c=[c];for(var g=0;e=c[g++];)if(e.attributes&&e.attributes.id&&e.attributes.id.value==a||e.id==a)return e}}:function(a,d){return(typeof a=="string"?(d||b.doc).getElementById(a):a)||
null};(function(){var a=b.byId,d=null,c;b.addOnWindowUnload(function(){d=null});b._destroyElement=b.destroy=function(b){b=a(b);try{var e=b.ownerDocument;if(!d||c!=e)d=e.createElement("div"),c=e;d.appendChild(b.parentNode?b.parentNode.removeChild(b):b);d.innerHTML=""}catch(g){}};b.isDescendant=function(b,d){try{b=a(b);for(d=a(d);b;){if(b==d)return!0;b=b.parentNode}}catch(c){}return!1};b.setSelectable=function(d,c){d=a(d);if(b.isMozilla)d.style.MozUserSelect=c?"":"none";else if(b.isKhtml||b.isWebKit)d.style.KhtmlUserSelect=
c?"auto":"none";else if(b.isIE){var e=d.unselectable=c?"":"on";b.query("*",d).forEach("item.unselectable = '"+e+"'")}};var e=function(a,b){var d=b.parentNode;d&&d.insertBefore(a,b)};b.place=function(d,c,f){c=a(c);typeof d=="string"&&(d=/^\s*</.test(d)?b._toDom(d,c.ownerDocument):a(d));if(typeof f=="number"){var g=c.childNodes;!g.length||g.length<=f?c.appendChild(d):e(d,g[f<0?0:f])}else switch(f){case "before":e(d,c);break;case "after":f=d;(g=c.parentNode)&&(g.lastChild==c?g.appendChild(f):g.insertBefore(f,
c.nextSibling));break;case "replace":c.parentNode.replaceChild(d,c);break;case "only":b.empty(c);c.appendChild(d);break;case "first":if(c.firstChild){e(d,c.firstChild);break}default:c.appendChild(d)}return d};b.boxModel="content-box";if(b.isIE)b.boxModel=document.compatMode=="BackCompat"?"border-box":"content-box";var g;g=b.isWebKit?function(a){var b;if(a.nodeType==1){var d=a.ownerDocument.defaultView;b=d.getComputedStyle(a,null);if(!b&&a.style)a.style.display="",b=d.getComputedStyle(a,null)}return b||
{}}:b.isIE?function(a){return a.nodeType==1?a.currentStyle:{}}:function(a){return a.nodeType==1?a.ownerDocument.defaultView.getComputedStyle(a,null):{}};b.getComputedStyle=g;b._toPixelValue=b.isIE?function(a,b){if(!b)return 0;if(b=="medium")return 4;if(b.slice&&b.slice(-2)=="px")return parseFloat(b);with(a){var d=style.left,c=runtimeStyle.left;runtimeStyle.left=currentStyle.left;try{style.left=b,b=style.pixelLeft}catch(e){b=0}style.left=d;runtimeStyle.left=c}return b}:function(a,b){return parseFloat(b)||
0};var h=b._toPixelValue,i=function(a,b){try{return a.filters.item("DXImageTransform.Microsoft.Alpha")}catch(d){return b?{}:null}};b._getOpacity=b.isIE<9?function(a){try{return i(a).Opacity/100}catch(b){return 1}}:function(a){return g(a).opacity};b._setOpacity=b.isIE<9?function(a,d){var c=d*100,e=d==1;a.style.zoom=e?"":1;if(i(a))i(a,1).Opacity=c;else{if(e)return d;a.style.filter+=" progid:DXImageTransform.Microsoft.Alpha(Opacity="+c+")"}i(a,1).Enabled=!e;a.nodeName.toLowerCase()=="tr"&&b.query("> td",
a).forEach(function(a){b._setOpacity(a,d)});return d}:function(a,b){return a.style.opacity=b};var j={left:!0,top:!0},k=/margin|padding|width|height|max|min|offset/,l=function(a,d,c){d=d.toLowerCase();if(b.isIE){if(c=="auto"){if(d=="height")return a.offsetHeight;if(d=="width")return a.offsetWidth}if(d=="fontweight")switch(c){case 700:return"bold";default:return"normal"}}d in j||(j[d]=k.test(d));return j[d]?h(a,c):c},m=b.isIE?"styleFloat":"cssFloat",n={cssFloat:m,styleFloat:m,"float":m};b.style=function(d,
c,e){var f=a(d),h=arguments.length,i=c=="opacity",c=n[c]||c;if(h==3)return i?b._setOpacity(f,e):f.style[c]=e;if(h==2&&i)return b._getOpacity(f);i=g(f);if(h==2&&typeof c!="string"){for(var k in c)b.style(d,k,c[k]);return i}return h==1?i:l(f,c,i[c]||f.style[c])};b._getPadExtents=function(a,b){var d=b||g(a),c=h(a,d.paddingLeft),e=h(a,d.paddingTop);return{l:c,t:e,w:c+h(a,d.paddingRight),h:e+h(a,d.paddingBottom)}};b._getBorderExtents=function(a,b){var d=b||g(a),c=d.borderLeftStyle!="none"?h(a,d.borderLeftWidth):
0,e=d.borderTopStyle!="none"?h(a,d.borderTopWidth):0;return{l:c,t:e,w:c+(d.borderRightStyle!="none"?h(a,d.borderRightWidth):0),h:e+(d.borderBottomStyle!="none"?h(a,d.borderBottomWidth):0)}};b._getPadBorderExtents=function(a,d){var c=d||g(a),e=b._getPadExtents(a,c),c=b._getBorderExtents(a,c);return{l:e.l+c.l,t:e.t+c.t,w:e.w+c.w,h:e.h+c.h}};b._getMarginExtents=function(a,d){var c=d||g(a),e=h(a,c.marginLeft),f=h(a,c.marginTop),i=h(a,c.marginRight),k=h(a,c.marginBottom);b.isWebKit&&c.position!="absolute"&&
(i=e);return{l:e,t:f,w:e+i,h:f+k}};b._getMarginBox=function(a,d){var c=d||g(a),e=b._getMarginExtents(a,c),f=a.offsetLeft-e.l,h=a.offsetTop-e.t,i=a.parentNode;if(b.isMoz){var k=parseFloat(c.left),c=parseFloat(c.top);!isNaN(k)&&!isNaN(c)?(f=k,h=c):i&&i.style&&(k=g(i),k.overflow!="visible"&&(i=b._getBorderExtents(i,k),f+=i.l,h+=i.t))}else if((b.isOpera||b.isIE>7&&!b.isQuirks)&&i)i=b._getBorderExtents(i),f-=i.l,h-=i.t;return{l:f,t:h,w:a.offsetWidth+e.w,h:a.offsetHeight+e.h}};b._getMarginSize=function(d,
c){var d=a(d),e=b._getMarginExtents(d,c||g(d)),f=d.getBoundingClientRect();return{w:f.right-f.left+e.w,h:f.bottom-f.top+e.h}};b._getContentBox=function(a,d){var c=d||g(a),e=b._getPadExtents(a,c),c=b._getBorderExtents(a,c),f=a.clientWidth,h;f?(h=a.clientHeight,c.w=c.h=0):(f=a.offsetWidth,h=a.offsetHeight);b.isOpera&&(e.l+=c.l,e.t+=c.t);return{l:e.l,t:e.t,w:f-e.w-c.w,h:h-e.h-c.h}};b._getBorderBox=function(a,d){var c=d||g(a),e=b._getPadExtents(a,c),c=b._getContentBox(a,c);return{l:c.l-e.l,t:c.t-e.t,
w:c.w+e.w,h:c.h+e.h}};b._setBox=function(a,b,d,c,e,f){f=f||"px";a=a.style;if(!isNaN(b))a.left=b+f;if(!isNaN(d))a.top=d+f;if(c>=0)a.width=c+f;if(e>=0)a.height=e+f};b._isButtonTag=function(a){return a.tagName=="BUTTON"||a.tagName=="INPUT"&&(a.getAttribute("type")||"").toUpperCase()=="BUTTON"};b._usesBorderBox=function(a){var d=a.tagName;return b.boxModel=="border-box"||d=="TABLE"||b._isButtonTag(a)};b._setContentSize=function(a,d,c,e){b._usesBorderBox(a)&&(e=b._getPadBorderExtents(a,e),d>=0&&(d+=e.w),
c>=0&&(c+=e.h));b._setBox(a,NaN,NaN,d,c)};b._setMarginBox=function(a,d,c,e,f,h){var i=h||g(a),h=b._usesBorderBox(a)?o:b._getPadBorderExtents(a,i);if(b.isWebKit&&b._isButtonTag(a)){var k=a.style;if(e>=0&&!k.width)k.width="4px";if(f>=0&&!k.height)k.height="4px"}i=b._getMarginExtents(a,i);e>=0&&(e=Math.max(e-h.w-i.w,0));f>=0&&(f=Math.max(f-h.h-i.h,0));b._setBox(a,d,c,e,f)};var o={l:0,t:0,w:0,h:0};b.marginBox=function(d,c){var e=a(d),f=g(e);return!c?b._getMarginBox(e,f):b._setMarginBox(e,c.l,c.t,c.w,
c.h,f)};b.contentBox=function(d,c){var e=a(d),f=g(e);return!c?b._getContentBox(e,f):b._setContentSize(e,c.w,c.h,f)};b._docScroll=function(){var a=b.global;return"pageXOffset"in a?{x:a.pageXOffset,y:a.pageYOffset}:(a=b.isQuirks?b.doc.body:b.doc.documentElement,{x:b._fixIeBiDiScrollLeft(a.scrollLeft||0),y:a.scrollTop||0})};b._isBodyLtr=function(){return"_bodyLtr"in b?b._bodyLtr:b._bodyLtr=(b.body().dir||b.doc.documentElement.dir||"ltr").toLowerCase()=="ltr"};b._getIeDocumentElementOffset=function(){var a=
b.doc.documentElement;if(b.isIE<8){var d=a.getBoundingClientRect(),c=d.left,d=d.top;b.isIE<7&&(c+=a.clientLeft,d+=a.clientTop);return{x:c<0?0:c,y:d<0?0:d}}else return{x:0,y:0}};b._fixIeBiDiScrollLeft=function(a){var d=b.isIE;if(d&&!b._isBodyLtr()){var c=b.isQuirks,e=c?b.doc.body:b.doc.documentElement;d==6&&!c&&b.global.frameElement&&e.scrollHeight>e.clientHeight&&(a+=e.clientLeft);return d<8||c?a+e.clientWidth-e.scrollWidth:-a}return a};b._abs=b.position=function(d,c){var d=a(d),e=b.body(),f=e.parentNode,
i=d.getBoundingClientRect(),i={x:i.left,y:i.top,w:i.right-i.left,h:i.bottom-i.top};b.isIE?(f=b._getIeDocumentElementOffset(),i.x-=f.x+(b.isQuirks?e.clientLeft+e.offsetLeft:0),i.y-=f.y+(b.isQuirks?e.clientTop+e.offsetTop:0)):b.isFF==3&&(e=g(f),i.x-=h(f,e.marginLeft)+h(f,e.borderLeftWidth),i.y-=h(f,e.marginTop)+h(f,e.borderTopWidth));c&&(e=b._docScroll(),i.x+=e.x,i.y+=e.y);return i};b.coords=function(d,c){var e=a(d),f=g(e),f=b._getMarginBox(e,f),e=b.position(e,c);f.x=e.x;f.y=e.y;return f};var p={"class":"className",
"for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",rowspan:"rowSpan",valuetype:"valueType"},r={classname:"class",htmlfor:"for",tabindex:"tabIndex",readonly:"readOnly"},s={innerHTML:1,className:1,htmlFor:b.isIE,value:1},q=function(a,b){var d=a.getAttributeNode&&a.getAttributeNode(b);return d&&d.specified};b.hasAttr=function(b,d){var c=d.toLowerCase();return s[p[c]||d]||q(a(b),r[c]||d)};var t={},u=0,v=b._scopeName+"attrid",A={col:1,colgroup:1,table:1,
tbody:1,tfoot:1,thead:1,tr:1,title:1};b.attr=function(d,c,e){var d=a(d),f=arguments.length;if(f==2&&typeof c!="string"){for(var g in c)b.attr(d,g,c[g]);return d}var h=c.toLowerCase();g=p[h]||c;var i=s[g],h=r[h]||c;if(f==3){if(g=="style"&&typeof e!="string")b.style(d,e);else if(g=="innerHTML")b.isIE&&d.tagName.toLowerCase()in A?(b.empty(d),d.appendChild(b._toDom(e,d.ownerDocument))):d[g]=e;else if(b.isFunction(e)){f=b.attr(d,v);f||(f=u++,b.attr(d,v,f));t[f]||(t[f]={});if(i=t[f][g])b.disconnect(i);
else try{delete d[g]}catch(k){}t[f][g]=b.connect(d,g,e)}else i||typeof e=="boolean"?d[g]=e:d.setAttribute(h,e);return d}e=d[g];return i&&typeof e!="undefined"?e:g!="href"&&(typeof e=="boolean"||b.isFunction(e))?e:q(d,h)?d.getAttribute(h):null};b.removeAttr=function(b,d){a(b).removeAttribute(r[d.toLowerCase()]||d)};b.getNodeProp=function(b,d){var b=a(b),c=d.toLowerCase(),e=p[c]||d;if(e in b&&e!="href")return b[e];c=r[c]||d;return q(b,c)?b.getAttribute(c):null};b.create=function(d,c,e,f){var g=b.doc;
if(e)e=a(e),g=e.ownerDocument;typeof d=="string"&&(d=g.createElement(d));c&&b.attr(d,c);e&&b.place(d,e,f);return d};b.empty=b.isIE?function(d){for(var d=a(d),c;c=d.lastChild;)b.destroy(c)}:function(b){a(b).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"]},z=/<\s*([\w\:]+)/,C={},w=0,x="__"+b._scopeName+
"ToDomId",J;for(J in H)if(H.hasOwnProperty(J))m=H[J],m.pre=J=="option"?'<select multiple="multiple">':"<"+m.join("><")+">",m.post="</"+m.reverse().join("></")+">";b._toDom=function(a,d){var d=d||b.doc,c=d[x];c||(d[x]=c=++w+"",C[c]=d.createElement("div"));a+="";var e=a.match(z),f=e?e[1].toLowerCase():"",c=C[c];if(e&&H[f]){e=H[f];c.innerHTML=e.pre+a+e.post;for(e=e.length;e;--e)c=c.firstChild}else c.innerHTML=a;if(c.childNodes.length==1)return c.removeChild(c.firstChild);for(f=d.createDocumentFragment();e=
c.firstChild;)f.appendChild(e);return f};b.hasClass=function(b,d){return(" "+a(b).className+" ").indexOf(" "+d+" ")>=0};var E=/\s+/,D=[""],G={},K=function(a){return typeof a=="string"||a instanceof String?a.indexOf(" ")<0?(D[0]=a,D):a.split(E):a||""};b.addClass=function(b,d){var b=a(b),d=K(d),c=b.className,e,c=c?" "+c+" ":" ";e=c.length;for(var f=0,g=d.length,h;f<g;++f)(h=d[f])&&c.indexOf(" "+h+" ")<0&&(c+=h+" ");e<c.length&&(b.className=c.substr(1,c.length-2))};b.removeClass=function(d,c){var d=
a(d),e;if(c!==void 0){c=K(c);e=" "+d.className+" ";for(var f=0,g=c.length;f<g;++f)e=e.replace(" "+c[f]+" "," ");e=b.trim(e)}else e="";d.className!=e&&(d.className=e)};b.replaceClass=function(d,c,e){d=a(d);G.className=d.className;b.removeClass(G,e);b.addClass(G,c);if(d.className!==G.className)d.className=G.className};b.toggleClass=function(a,d,c){c===void 0&&(c=!b.hasClass(a,d));b[c?"addClass":"removeClass"](a,d)}})();return b});
define("dojo/_base/NodeList",["dojo/lib/kernel","dojo/_base/lang","dojo/_base/array","dojo/_base/connect","dojo/_base/html"],function(b){(function(){var c=Array.prototype,a=c.slice,d=c.concat,f=function(d,c,e){d.sort||(d=a.call(d,0));e=e||this._NodeListCtor||b._NodeListCtor;d.constructor=e;b._mixin(d,e.prototype);d._NodeListCtor=e;return c?d._stash(c):d},e=function(d,c,e){c=[0].concat(a.call(c,0));e=e||b.global;return function(a){c[0]=a;return d.apply(e,c)}},g=function(a,b){return function(){this.forEach(e(a,
arguments,b));return this}},h=function(a,b){return function(){return this.map(e(a,arguments,b))}},i=function(a,d,c){return function(){var f=arguments,g=e(a,f,c);if(d.call(c||b.global,f))return this.map(g);this.forEach(g);return this}},j=function(a){return a.length==1&&typeof a[0]=="string"},k=function(a){var b=a.parentNode;b&&b.removeChild(a)};b.NodeList=function(){return f(Array.apply(null,arguments))};var l=b._NodeListCtor=b.NodeList,m=l.prototype;l._wrap=m._wrap=f;l._adaptAsMap=h;l._adaptAsForEach=
g;l._adaptAsFilter=function(a,b){return function(){return this.filter(e(a,arguments,b))}};l._adaptWithCondition=i;b.forEach(["slice","splice"],function(a){var b=c[a];m[a]=function(){return this._wrap(b.apply(this,arguments),a=="slice"?this:null)}});b.forEach(["indexOf","lastIndexOf","every","some"],function(d){var c=b[d];m[d]=function(){return c.apply(b,[this].concat(a.call(arguments,0)))}});b.forEach(["attr","style"],function(a){m[a]=i(b[a],j)});b.forEach("connect,addClass,removeClass,replaceClass,toggleClass,empty,removeAttr".split(","),
function(a){m[a]=g(b[a])});b.extend(b.NodeList,{_normalize:function(a,d){var c=a.parse===!0?!0:!1;if(typeof a.template=="string")var e=a.templateFunc||b.string&&b.string.substitute,a=e?e(a.template,a):a;e=typeof a;e=="string"||e=="number"?(a=b._toDom(a,d&&d.ownerDocument),a=a.nodeType==11?b._toArray(a.childNodes):[a]):b.isArrayLike(a)?b.isArray(a)||(a=b._toArray(a)):a=[a];if(c)a._runParse=!0;return a},_cloneNode:function(a){return a.cloneNode(!0)},_place:function(a,d,c,e){if(!(d.nodeType!=1&&c=="only"))for(var f,
g=a.length,h=g-1;h>=0;h--){var i=e?this._cloneNode(a[h]):a[h];if(a._runParse&&b.parser&&b.parser.parse){f||(f=d.ownerDocument.createElement("div"));f.appendChild(i);b.parser.parse(f);for(i=f.firstChild;f.firstChild;)f.removeChild(f.firstChild)}h==g-1?b.place(i,d,c):d.parentNode.insertBefore(i,d);d=i}},_stash:function(a){this._parent=a;return this},end:function(){return this._parent?this._parent:new this._NodeListCtor},concat:function(c){var e=b.isArray(this)?this:a.call(this,0),f=b.map(arguments,
function(d){return d&&!b.isArray(d)&&(typeof NodeList!="undefined"&&d.constructor===NodeList||d.constructor===this._NodeListCtor)?a.call(d,0):d});return this._wrap(d.apply(e,f),this)},map:function(a,d){return this._wrap(b.map(this,a,d),this)},forEach:function(a,d){b.forEach(this,a,d);return this},coords:h(b.coords),position:h(b.position),place:function(a,d){var c=b.query(a)[0];return this.forEach(function(a){b.place(a,c,d)})},orphan:function(a){return(a?b._filterQueryResult(this,a):this).forEach(k)},
adopt:function(a,d){return b.query(a).place(this[0],d)._stash(this)},query:function(a){if(!a)return this;var c=this.map(function(d){return b.query(a,d).filter(function(a){return a!==void 0})});return this._wrap(d.apply([],c),this)},filter:function(a){var d=arguments,c=this,e=0;if(typeof a=="string"){c=b._filterQueryResult(this,d[0]);if(d.length==1)return c._stash(this);e=1}return this._wrap(b.filter(c,d[e],d[e+1]),this)},addContent:function(a,b){for(var a=this._normalize(a,this[0]),d=0,c;c=this[d];d++)this._place(a,
c,b,d>0);return this},instantiate:function(a,d){var c=b.isFunction(a)?a:b.getObject(a),d=d||{};return this.forEach(function(a){new c(d,a)})},at:function(){var a=new this._NodeListCtor;b.forEach(arguments,function(b){b<0&&(b=this.length+b);this[b]&&a.push(this[b])},this);return a._stash(this)}});l.events="blur,focus,change,click,error,keydown,keypress,keyup,load,mousedown,mouseenter,mouseleave,mousemove,mouseout,mouseover,mouseup,submit".split(",");b.forEach(l.events,function(a){var b="on"+a;m[b]=
function(a,d){return this.connect(b,a,d)}})})();return b.NodeList});
(function(){var b=function(a){var b=a.trim,c=a.forEach,e=a._NodeListCtor=a.NodeList,g=(a.isWebKit||a.isMozilla)&&a.doc.compatMode=="BackCompat",h=a.doc.firstChild.children?"children":"childNodes",i=!1,j=function(){return!0},k=function(a){a+=">~+".indexOf(a.slice(-1))>=0?" * ":" ";for(var c=function(c,e){return b(a.slice(c,e))},e=[],f=-1,g=-1,h=-1,k=-1,j=-1,l=-1,m=-1,p="",o="",n,t=0,s=a.length,q=null,u=null,r=function(){if(l>=0)q.id=c(l,t).replace(/\\/g,""),l=-1;if(m>=0){var a=m==t?null:c(m,t);q[">~+".indexOf(a)<
0?"tag":"oper"]=a;m=-1}j>=0&&(q.classes.push(c(j+1,t).replace(/\\/g,"")),j=-1)};p=o,o=a.charAt(t),t<s;t++)if(p!="\\")if(q||(n=t,q={query:null,pseudos:[],attrs:[],classes:[],tag:null,oper:null,id:null,getTag:function(){return i?this.otag:this.tag}},m=t),f>=0)if(o=="]"){u.attr?u.matchFor=c(h||f+1,t):u.attr=c(f+1,t);if((f=u.matchFor)&&(f.charAt(0)=='"'||f.charAt(0)=="'"))u.matchFor=f.slice(1,-1);q.attrs.push(u);u=null;f=h=-1}else{if(o=="=")h="|~^$*".indexOf(p)>=0?p:"",u.type=h+o,u.attr=c(f+1,t-h.length),
h=t+1}else if(g>=0){if(o==")"){if(k>=0)u.value=c(g+1,t);k=g=-1}}else if(o=="#")r(),l=t+1;else if(o==".")r(),j=t;else if(o==":")r(),k=t;else if(o=="[")r(),f=t,u={};else if(o=="(")k>=0&&(u={name:c(k+1,t),value:null},q.pseudos.push(u)),g=t;else if(o==" "&&p!=o){r();k>=0&&q.pseudos.push({name:c(k+1,t)});q.loops=q.pseudos.length||q.attrs.length||q.classes.length;q.oquery=q.query=c(n,t);q.otag=q.tag=q.oper?null:q.tag||"*";if(q.tag)q.tag=q.tag.toUpperCase();if(e.length&&e[e.length-1].oper)q.infixOper=e.pop(),
q.query=q.infixOper.query+" "+q.query;e.push(q);q=null}return e},l=function(a,b){return!a?b:!b?a:function(){return a.apply(window,arguments)&&b.apply(window,arguments)}},m=function(a,b){var d=b||[];a&&d.push(a);return d},n=function(a){return 1==a.nodeType},o=function(a,b){return!a?"":b=="class"?a.className||"":b=="for"?a.htmlFor||"":b=="style"?a.style.cssText||"":(i?a.getAttribute(b):a.getAttribute(b,2))||""},p={"*=":function(a,b){return function(d){return o(d,a).indexOf(b)>=0}},"^=":function(a,b){return function(d){return o(d,
a).indexOf(b)==0}},"$=":function(a,b){return function(d){d=" "+o(d,a);return d.lastIndexOf(b)==d.length-b.length}},"~=":function(a,b){var d=" "+b+" ";return function(b){return(" "+o(b,a)+" ").indexOf(d)>=0}},"|=":function(a,b){var d=" "+b+"-";return function(c){c=" "+o(c,a);return c==b||c.indexOf(d)==0}},"=":function(a,b){return function(d){return o(d,a)==b}}},r=typeof a.doc.firstChild.nextElementSibling=="undefined",s=!r?"nextElementSibling":"nextSibling",q=!r?"previousElementSibling":"previousSibling",
t=r?n:j,u=function(a){for(;a=a[q];)if(t(a))return!1;return!0},v=function(a){for(;a=a[s];)if(t(a))return!1;return!0},A=function(a){var b=a.parentNode,d=0,c=b[h],e=a._i||-1,f=b._l||-1;if(!c)return-1;c=c.length;if(f==c&&e>=0&&f>=0)return e;b._l=c;e=-1;for(b=b.firstElementChild||b.firstChild;b;b=b[s])if(t(b))b._i=++d,a===b&&(e=d);return e},H=function(a){return!(A(a)%2)},z=function(a){return A(a)%2},C={checked:function(){return function(a){return!!("checked"in a?a.checked:a.selected)}},"first-child":function(){return u},
"last-child":function(){return v},"only-child":function(){return function(a){return!u(a)?!1:!v(a)?!1:!0}},empty:function(){return function(a){for(var b=a.childNodes,a=a.childNodes.length-1;a>=0;a--){var d=b[a].nodeType;if(d===1||d==3)return!1}return!0}},contains:function(a,b){var d=b.charAt(0);if(d=='"'||d=="'")b=b.slice(1,-1);return function(a){return a.innerHTML.indexOf(b)>=0}},not:function(a,b){var d=k(b)[0],c={el:1};if(d.tag!="*")c.tag=1;if(!d.classes.length)c.classes=1;var e=x(d,c);return function(a){return!e(a)}},
"nth-child":function(a,b){var d=parseInt;if(b=="odd")return z;else if(b=="even")return H;if(b.indexOf("n")!=-1){var c=b.split("n",2),e=c[0]?c[0]=="-"?-1:d(c[0]):1,f=c[1]?d(c[1]):0,g=0,h=-1;e>0?f<0?f=f%e&&e+f%e:f>0&&(f>=e&&(g=f-f%e),f%=e):e<0&&(e*=-1,f>0&&(h=f,f%=e));if(e>0)return function(a){a=A(a);return a>=g&&(h<0||a<=h)&&a%e==f};else b=f}var i=d(b);return function(a){return A(a)==i}}},w=a.isIE<9||dojo.isIE&&dojo.isQuirks?function(a){var b=a.toLowerCase();b=="class"&&(a="className");return function(d){return i?
d.getAttribute(a):d[a]||d[b]}}:function(a){return function(b){return b&&b.getAttribute&&b.hasAttribute(a)}},x=function(a,b){if(!a)return j;var b=b||{},d=null;"el"in b||(d=l(d,n));"tag"in b||a.tag!="*"&&(d=l(d,function(b){return b&&b.tagName==a.getTag()}));"classes"in b||c(a.classes,function(a,b){var c=RegExp("(?:^|\\s)"+a+"(?:\\s|$)");d=l(d,function(a){return c.test(a.className)});d.count=b});"pseudos"in b||c(a.pseudos,function(a){var b=a.name;C[b]&&(d=l(d,C[b](b,a.value)))});"attrs"in b||c(a.attrs,
function(a){var b,c=a.attr;a.type&&p[a.type]?b=p[a.type](c,a.matchFor):c.length&&(b=w(c));b&&(d=l(d,b))});"id"in b||a.id&&(d=l(d,function(b){return!!b&&b.id==a.id}));d||"default"in b||(d=j);return d},J=function(a){return function(b,d,c){for(;b=b[s];)if(!r||n(b)){(!c||Q(b,c))&&a(b)&&d.push(b);break}return d}},E=function(a){return function(b,d,c){for(b=b[s];b;){if(t(b)){if(c&&!Q(b,c))break;a(b)&&d.push(b)}b=b[s]}return d}},D=function(a){a=a||j;return function(b,d,c){for(var e=0,f=b[h];b=f[e++];)t(b)&&
(!c||Q(b,c))&&a(b,e)&&d.push(b);return d}},G={},K=function(b){var d=G[b.query];if(d)return d;var c=b.infixOper,c=c?c.oper:"",e=x(b,{el:1}),f="*"==b.tag,h=a.doc.getElementsByClassName;if(c){h={el:1};if(f)h.tag=1;e=x(b,h);"+"==c?d=J(e):"~"==c?d=E(e):">"==c&&(d=D(e))}else if(b.id)e=!b.loops&&f?j:x(b,{el:1,id:1}),d=function(d,c){var f=a.byId(b.id,d.ownerDocument||d);if(f&&e(f))if(9==d.nodeType)return m(f,c);else{for(var g=f.parentNode;g;){if(g==d)break;g=g.parentNode}if(g)return m(f,c)}};else if(h&&/\{\s*\[native code\]\s*\}/.test(String(h))&&
b.classes.length&&!g)var e=x(b,{el:1,classes:1,id:1}),i=b.classes.join(" "),d=function(a,b,d){for(var b=m(0,b),c,f=0,g=a.getElementsByClassName(i);c=g[f++];)e(c,a)&&Q(c,d)&&b.push(c);return b};else!f&&!b.loops?d=function(a,d,c){for(var d=m(0,d),e=0,f=a.getElementsByTagName(b.getTag());a=f[e++];)Q(a,c)&&d.push(a);return d}:(e=x(b,{el:1,tag:1,id:1}),d=function(a,d,c){for(var d=m(0,d),f,g=0,h=a.getElementsByTagName(b.getTag());f=h[g++];)e(f,a)&&Q(f,c)&&d.push(f);return d});return G[b.query]=d},B={},
y={},L=function(a){var c=k(b(a));if(c.length==1){var f=K(c[0]);return function(a){if(a=f(a,new e))a.nozip=!0;return a}}return function(a){for(var a=m(a),b,d,e=c.length,f,g,h=0;h<e;h++){g=[];b=c[h];d=a.length-1;if(d>0)f={},g.nozip=!0;d=K(b);for(var i=0;b=a[i];i++)d(b,g,f);if(!g.length)break;a=g}return g}},F=navigator.userAgent,F=a.isWebKit&&F.indexOf("WebKit/")>0&&parseFloat(F.split("WebKit/")[1])>528,M=a.isIE?"commentStrip":"nozip",I=!!a.doc.querySelectorAll&&(!a.isSafari||a.isSafari>3.1||F),N=/n\+\d|([^ ])?([>~+])([^ =])?/g,
T=function(a,b,d,c){return d?(b?b+" ":"")+d+(c?" "+c:""):a},S=function(b,d){b=b.replace(N,T);if(I){var c=y[b];if(c&&!d)return c}if(c=B[b])return c;var c=b.charAt(0),e=-1==b.indexOf(" ");b.indexOf("#")>=0&&e&&(d=!0);if(I&&!d&&">~+".indexOf(c)==-1&&(!a.isIE||b.indexOf(":")==-1)&&!(g&&b.indexOf(".")>=0)&&b.indexOf(":contains")==-1&&b.indexOf(":checked")==-1&&b.indexOf("|=")==-1){var f=">~+".indexOf(b.charAt(b.length-1))>=0?b+" *":b;return y[b]=function(a){try{if(!(9==a.nodeType||e))throw"";var d=a.querySelectorAll(f);
d[M]=!0;return d}catch(c){return S(b,!0)(a)}}}else{var h=b.split(/\s*,\s*/);return B[b]=h.length<2?L(b):function(a){for(var b=0,d=[],c;c=h[b++];)d=d.concat(L(c)(a));return d}}},P=0,U=a.isIE?function(a){return i?a.getAttribute("_uid")||a.setAttribute("_uid",++P)||P:a.uniqueID}:function(a){return a._uid||(a._uid=++P)},Q=function(a,b){if(!b)return 1;var d=U(a);return!b[d]?b[d]=1:0},V=function(b){if(b&&b.nozip)return e._wrap?e._wrap(b):b;var d=new e;if(!b||!b.length)return d;b[0]&&d.push(b[0]);if(b.length<
2)return d;P++;if(a.isIE&&i){var c=P+"";b[0].setAttribute("_zipIdx",c);for(var f=1,g;g=b[f];f++)b[f].getAttribute("_zipIdx")!=c&&d.push(g),g.setAttribute("_zipIdx",c)}else if(a.isIE&&b.commentStrip)try{for(f=1;g=b[f];f++)n(g)&&d.push(g)}catch(h){}else{b[0]&&(b[0]._zipIdx=P);for(f=1;g=b[f];f++)b[f]._zipIdx!=P&&d.push(g),g._zipIdx=P}return d};a.query=function(b,d){e=a._NodeListCtor;if(!b)return new e;if(b.constructor==e)return b;if(typeof b!="string")return new e(b);if(typeof d=="string"&&(d=a.byId(d),
!d))return new e;var d=d||a.doc,c=d.ownerDocument||d.documentElement;i=d.contentType&&d.contentType=="application/xml"||a.isOpera&&(d.doctype||c.toString()=="[object XMLDocument]")||!!c&&(a.isIE?c.xml:d.xmlVersion||c.xmlVersion);return(c=S(b)(d))&&c.nozip&&!e._wrap?c:V(c)};a.query.pseudos=C;a._filterQueryResult=function(b,d,c){for(var e=new a._NodeListCtor,f=k(d),f=f.length==1&&!/[^\w#\.]/.test(d)?x(f[0]):function(a){return dojo.query(d,c).indexOf(a)!=-1},g=0,h;h=b[g];g++)f(h)&&e.push(h);return e}},
c=function(){acme={trim:function(a){for(var a=a.replace(/^\s+/,""),b=a.length-1;b>=0;b--)if(/\S/.test(a.charAt(b))){a=a.substring(0,b+1);break}return a},forEach:function(a,b,d){if(a&&a.length)for(var c=0,f=a.length;c<f;++c)b.call(d||window,a[c],c,a)},byId:function(a,b){return typeof a=="string"?(b||document).getElementById(a):a},doc:document,NodeList:Array};var a=navigator,b=a.userAgent,a=a.appVersion,c=parseFloat(a);acme.isOpera=b.indexOf("Opera")>=0?c:void 0;acme.isKhtml=a.indexOf("Konqueror")>=
0?c:void 0;acme.isWebKit=parseFloat(b.split("WebKit/")[1])||void 0;acme.isChrome=parseFloat(b.split("Chrome/")[1])||void 0;if((b=Math.max(a.indexOf("WebKit"),a.indexOf("Safari"),0))&&!acme.isChrome)if(acme.isSafari=parseFloat(a.split("Version/")[1]),!acme.isSafari||parseFloat(a.substr(b+7))<=419.3)acme.isSafari=2;if(document.all&&!acme.isOpera)acme.isIE=parseFloat(a.split("MSIE ")[1])||void 0;Array._wrap=function(a){return a};return acme};typeof define=="function"&&define("dojo/_base/query",["dojo/lib/kernel",
"dojo/_base/NodeList","dojo/_base/lang","dojo/_base/window"],function(a){b(this.queryPortability||this.acme||a)});typeof define!="function"&&(this.dojo?(dojo.provide("dojo._base.query"),dojo.require("dojo._base.NodeList"),dojo.require("dojo._base.lang"),b(this.queryPortability||this.acme||dojo)):b(this.queryPortability||this.acme||c()))})();
define("dojo/_base/xhr",["dojo/lib/kernel","dojo/_base/Deferred","dojo/_base/json","dojo/_base/lang","dojo/_base/query"],function(b){(function(){var c=b.config;b.fieldToObject=function(a){var d=null;if(a=b.byId(a)){var c=a.name,e=(a.type||"").toLowerCase();if(c&&e&&!a.disabled)if(e=="radio"||e=="checkbox"){if(a.checked)d=a.value}else a.multiple?(d=[],b.query("option",a).forEach(function(a){a.selected&&d.push(a.value)})):d=a.value}return d};b.formToObject=function(a){var d={};b.forEach(b.byId(a).elements,
function(a){var c=a.name,e=(a.type||"").toLowerCase();if(c&&e&&"file|submit|image|reset|button|".indexOf(e)==-1&&!a.disabled){a=b.fieldToObject(a);if(a!==null){var f=d[c];typeof f=="string"?d[c]=[f,a]:b.isArray(f)?f.push(a):d[c]=a}if(e=="image")d[c+".x"]=d[c+".y"]=d[c].x=d[c].y=0}});return d};b.objectToQuery=function(a){var d=encodeURIComponent,c=[],e={},f;for(f in a){var g=a[f];if(g!=e[f]){var h=d(f)+"=";if(b.isArray(g))for(var i=0;i<g.length;i++)c.push(h+d(g[i]));else c.push(h+d(g))}}return c.join("&")};
b.formToQuery=function(a){return b.objectToQuery(b.formToObject(a))};b.formToJson=function(a,d){return b.toJson(b.formToObject(a),d)};b.queryToObject=function(a){var d={},a=a.split("&"),c=decodeURIComponent;b.forEach(a,function(a){if(a.length){var e=a.split("="),a=c(e.shift()),e=c(e.join("="));typeof d[a]=="string"&&(d[a]=[d[a]]);b.isArray(d[a])?d[a].push(e):d[a]=e}});return d};b._blockAsync=!1;var a=b._contentHandlers=b.contentHandlers={text:function(a){return a.responseText},json:function(a){return b.fromJson(a.responseText||
null)},"json-comment-filtered":function(a){b.config.useCommentedJson||console.warn("Consider using the standard mimetype:application/json. json-commenting can introduce security issues. To decrease the chances of hijacking, use the standard the 'json' handler and prefix your json with: {}&&\nUse djConfig.useCommentedJson=true to turn off this message.");var a=a.responseText,d=a.indexOf("/*"),c=a.lastIndexOf("*/");if(d==-1||c==-1)throw Error("JSON was not comment filtered");return b.fromJson(a.substring(d+
2,c))},javascript:function(a){return b.eval(a.responseText)},xml:function(a){var d=a.responseXML;if(b.isIE&&(!d||!d.documentElement)){var c=function(a){return"MSXML"+a+".DOMDocument"},c=["Microsoft.XMLDOM",c(6),c(4),c(3),c(2)];b.some(c,function(b){try{var c=new ActiveXObject(b);c.async=!1;c.loadXML(a.responseText);d=c}catch(e){return!1}return!0})}return d},"json-comment-optional":function(b){return b.responseText&&/^[^{\[]*\/\*/.test(b.responseText)?a["json-comment-filtered"](b):a.json(b)}};b._ioSetArgs=
function(a,d,e,f){var g={args:a,url:a.url},h=null;if(a.form){var h=b.byId(a.form),i=h.getAttributeNode("action");g.url=g.url||(i?i.value:null);h=b.formToObject(h)}i=[{}];h&&i.push(h);a.content&&i.push(a.content);a.preventCache&&i.push({"dojo.preventCache":(new Date).valueOf()});g.query=b.objectToQuery(b.mixin.apply(null,i));g.handleAs=a.handleAs||"text";var k=new b.Deferred(d);k.addCallbacks(e,function(a){return f(a,k)});var j=a.load;j&&b.isFunction(j)&&k.addCallback(function(b){return j.call(a,b,
g)});var l=a.error;l&&b.isFunction(l)&&k.addErrback(function(b){return l.call(a,b,g)});var m=a.handle;m&&b.isFunction(m)&&k.addBoth(function(b){return m.call(a,b,g)});c.ioPublish&&b.publish&&g.args.ioPublish!==!1&&(k.addCallbacks(function(a){b.publish("/dojo/io/load",[k,a]);return a},function(a){b.publish("/dojo/io/error",[k,a]);return a}),k.addBoth(function(a){b.publish("/dojo/io/done",[k,a]);return a}));k.ioArgs=g;return k};var d=function(a){a.canceled=!0;var b=a.ioArgs.xhr,d=typeof b.abort;(d==
"function"||d=="object"||d=="unknown")&&b.abort();a=a.ioArgs.error;if(!a)a=Error("xhr cancelled"),a.dojoType="cancel";return a},f=function(b){b=a[b.ioArgs.handleAs](b.ioArgs.xhr);return b===void 0?null:b},e=function(a,b){b.ioArgs.args.failOk||console.error(a);return a},g=null,h=[],i=0,j=function(a){i<=0&&(i=0,c.ioPublish&&b.publish&&(!a||a&&a.ioArgs.args.ioPublish!==!1)&&b.publish("/dojo/io/stop"))},k=function(){var a=(new Date).getTime();if(!b._blockAsync)for(var d=0,c;d<h.length&&(c=h[d]);d++){var e=
c.dfd,f=function(){if(!e||e.canceled||!c.validCheck(e))h.splice(d--,1),i-=1;else if(c.ioCheck(e))h.splice(d--,1),c.resHandle(e),i-=1;else if(e.startTime&&e.startTime+(e.ioArgs.args.timeout||0)<a){h.splice(d--,1);var b=Error("timeout exceeded");b.dojoType="timeout";e.errback(b);e.cancel();i-=1}};if(b.config.debugAtAllCosts)f.call(this);else try{f.call(this)}catch(k){e.errback(k)}}j(e);h.length||(clearInterval(g),g=null)};b._ioCancelAll=function(){try{b.forEach(h,function(a){try{a.dfd.cancel()}catch(b){}})}catch(a){}};
b.isIE&&b.addOnWindowUnload(b._ioCancelAll);b._ioNotifyStart=function(a){c.ioPublish&&b.publish&&a.ioArgs.args.ioPublish!==!1&&(i||b.publish("/dojo/io/start"),i+=1,b.publish("/dojo/io/send",[a]))};b._ioWatch=function(a,b,d,c){var e=a.ioArgs.args;if(e.timeout)a.startTime=(new Date).getTime();h.push({dfd:a,validCheck:b,ioCheck:d,resHandle:c});g||(g=setInterval(k,50));e.sync&&k()};var l=function(a){return a.ioArgs.xhr.readyState},m=function(a){return 4==a.ioArgs.xhr.readyState},n=function(a){var d=a.ioArgs.xhr;
if(b._isDocumentOk(d))a.callback(a);else{var c=Error("Unable to load "+a.ioArgs.url+" status:"+d.status);c.status=d.status;c.responseText=d.responseText;a.errback(c)}};b._ioAddQueryToUrl=function(a){if(a.query.length)a.url+=(a.url.indexOf("?")==-1?"?":"&")+a.query,a.query=null};b.xhr=function(a,c,g){var h=b._ioSetArgs(c,d,f,e),i=h.ioArgs,k=i.xhr=b._xhrObj(i.args);if(!k)return h.cancel(),h;"postData"in c?i.query=c.postData:"putData"in c?i.query=c.putData:"rawBody"in c?i.query=c.rawBody:(arguments.length>
2&&!g||"POST|PUT".indexOf(a.toUpperCase())==-1)&&b._ioAddQueryToUrl(i);k.open(a,i.url,c.sync!==!0,c.user||void 0,c.password||void 0);if(c.headers)for(var j in c.headers)j.toLowerCase()==="content-type"&&!c.contentType?c.contentType=c.headers[j]:c.headers[j]&&k.setRequestHeader(j,c.headers[j]);k.setRequestHeader("Content-Type",c.contentType||"application/x-www-form-urlencoded");(!c.headers||!("X-Requested-With"in c.headers))&&k.setRequestHeader("X-Requested-With","XMLHttpRequest");b._ioNotifyStart(h);
if(b.config.debugAtAllCosts)k.send(i.query);else try{k.send(i.query)}catch(v){i.error=v,h.cancel()}b._ioWatch(h,l,m,n);return h};b.xhrGet=function(a){return b.xhr("GET",a)};b.rawXhrPost=b.xhrPost=function(a){return b.xhr("POST",a,!0)};b.rawXhrPut=b.xhrPut=function(a){return b.xhr("PUT",a,!0)};b.xhrDelete=function(a){return b.xhr("DELETE",a)}})();return b.xhr});
define("dojo/_base/fx",["dojo/lib/kernel","dojo/_base/Color","dojo/_base/connect","dojo/_base/lang","dojo/_base/html"],function(b){(function(){var c=b._mixin;b._Line=function(a,b){this.start=a;this.end=b};b._Line.prototype.getValue=function(a){return(this.end-this.start)*a+this.start};b.Animation=function(a){c(this,a);if(b.isArray(this.curve))this.curve=new b._Line(this.curve[0],this.curve[1])};b._Animation=b.Animation;b.extend(b.Animation,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,
_getStep:function(){var a=this._percent,b=this.easing;return b?b(a):a},_fire:function(a,d){var c=d||[];if(this[a])if(b.config.debugAtAllCosts)this[a].apply(this,c);else try{this[a].apply(this,c)}catch(e){console.error("exception in animation handler for:",a),console.error(e)}return this},play:function(a,d){this._delayTimer&&this._clearTimer();if(d)this._stopTimer(),this._active=this._paused=!1,this._percent=0;else if(this._active&&!this._paused)return this;this._fire("beforeBegin",[this.node]);var c=
a||this.delay,e=b.hitch(this,"_play",d);if(c>0)return this._delayTimer=setTimeout(e,c),this;e();return this},_play:function(){this._delayTimer&&this._clearTimer();this._startTime=(new Date).valueOf();this._paused&&(this._startTime-=this.duration*this._percent);this._active=!0;this._paused=!1;var a=this.curve.getValue(this._getStep());if(!this._percent){if(!this._startRepeatCount)this._startRepeatCount=this.repeat;this._fire("onBegin",[a])}this._fire("onPlay",[a]);this._cycle();return this},pause:function(){this._delayTimer&&
this._clearTimer();this._stopTimer();if(!this._active)return this;this._paused=!0;this._fire("onPause",[this.curve.getValue(this._getStep())]);return this},gotoPercent:function(a,b){this._stopTimer();this._active=this._paused=!0;this._percent=a;b&&this.play();return this},stop:function(a){this._delayTimer&&this._clearTimer();if(!this._timer)return this;this._stopTimer();if(a)this._percent=1;this._fire("onStop",[this.curve.getValue(this._getStep())]);this._active=this._paused=!1;return this},status:function(){return this._active?
this._paused?"paused":"playing":"stopped"},_cycle:function(){if(this._active){var a=((new Date).valueOf()-this._startTime)/this.duration;a>=1&&(a=1);this._percent=a;this.easing&&(a=this.easing(a));this._fire("onAnimate",[this.curve.getValue(a)]);if(this._percent<1)this._startTimer();else{this._active=!1;if(this.repeat>0)this.repeat--,this.play(null,!0);else if(this.repeat==-1)this.play(null,!0);else if(this._startRepeatCount)this.repeat=this._startRepeatCount,this._startRepeatCount=0;this._percent=
0;this._fire("onEnd",[this.node]);!this.repeat&&this._stopTimer()}}return this},_clearTimer:function(){clearTimeout(this._delayTimer);delete this._delayTimer}});var a=0,d=null,f={run:function(){}};b.extend(b.Animation,{_startTimer:function(){if(!this._timer)this._timer=b.connect(f,"run",this,"_cycle"),a++;d||(d=setInterval(b.hitch(f,"run"),this.rate))},_stopTimer:function(){if(this._timer)b.disconnect(this._timer),this._timer=null,a--;a<=0&&(clearInterval(d),d=null,a=0)}});var e=b.isIE?function(a){var d=
a.style;if(!d.width.length&&b.style(a,"width")=="auto")d.width="auto"}:function(){};b._fade=function(a){a.node=b.byId(a.node);var d=c({properties:{}},a),a=d.properties.opacity={};a.start=!("start"in d)?function(){return+b.style(d.node,"opacity")||0}:d.start;a.end=d.end;a=b.animateProperty(d);b.connect(a,"beforeBegin",b.partial(e,d.node));return a};b.fadeIn=function(a){return b._fade(c({end:1},a))};b.fadeOut=function(a){return b._fade(c({end:0},a))};b._defaultEasing=function(a){return 0.5+Math.sin((a+
1.5)*Math.PI)/2};var g=function(a){this._properties=a;for(var d in a){var c=a[d];if(c.start instanceof b.Color)c.tempColor=new b.Color}};g.prototype.getValue=function(a){var d={},c;for(c in this._properties){var e=this._properties[c],f=e.start;f instanceof b.Color?d[c]=b.blendColors(f,e.end,a,e.tempColor).toCss():b.isArray(f)||(d[c]=(e.end-f)*a+f+(c!="opacity"?e.units||"px":0))}return d};b.animateProperty=function(a){var d=a.node=b.byId(a.node);if(!a.easing)a.easing=b._defaultEasing;a=new b.Animation(a);
b.connect(a,"beforeBegin",a,function(){var a={},e;for(e in this.properties){if(e=="width"||e=="height")this.node.display="block";var f=this.properties[e];b.isFunction(f)&&(f=f(d));f=a[e]=c({},b.isObject(f)?f:{end:f});if(b.isFunction(f.start))f.start=f.start(d);if(b.isFunction(f.end))f.end=f.end(d);var h=e.toLowerCase().indexOf("color")>=0,n=function(a,d){var c={height:a.offsetHeight,width:a.offsetWidth}[d];if(c!==void 0)return c;c=b.style(a,d);return d=="opacity"?+c:h?c:parseFloat(c)};if("end"in f){if(!("start"in
f))f.start=n(d,e)}else f.end=n(d,e);h?(f.start=new b.Color(f.start),f.end=new b.Color(f.end)):f.start=e=="opacity"?+f.start:parseFloat(f.start)}this.curve=new g(a)});b.connect(a,"onAnimate",b.hitch(b,"style",a.node));return a};b.anim=function(a,d,c,e,f,g){return b.animateProperty({node:a,duration:c||b.Animation.prototype.duration,properties:d,easing:e,onEnd:f}).play(g||0)}})();return b.animateProperty});
define("dojo","dojo/lib/kernel,dojo/_base/lang,dojo/_base/array,dojo/_base/declare,dojo/_base/connect,dojo/_base/Deferred,dojo/_base/json,dojo/_base/Color,dojo/_base/window,dojo/_base/event,dojo/_base/html,dojo/_base/NodeList,dojo/_base/query,dojo/_base/xhr,dojo/_base/fx".split(","),function(b){return b});(function(){var b=this;if(!b.define)b.define=function(c){b.orion=b.orion||{};b.orion.Deferred=c();delete b.define}})();
define("orion/Deferred",[],function(){function b(b){if(g)a?(d.next={notify:b,next:null},d=d.next):d=a={notify:b,next:null};else{g=!0;do{for(;b;){b();if(f)a?d.next=f:a=f,d=e;a?(f=a.next,e=d,b=a.notify,a=d=null):b=null}g=!1}while(g)}}function c(){function a(){for(;f;){var b=f;f=f.next;var c=b.deferred;if(b[e])try{var h=b[e](d);h&&typeof h.then==="function"?h.then(c.resolve,c.reject,c.update):c.resolve(h)}catch(p){c.reject(p)}else c[e](d)}f=g=null}var d,e,f,g;this.resolve=function(c){if(e)throw Error("'"+
e+"' already called");e="resolve";d=c;b(a)};this.reject=function(c){if(e)throw Error("'"+e+"' already called");e="reject";d=c;b(a)};this.update=this.progress=this.notify=function(a){for(var b=f;b;){if(b.update)try{b.update(a)}catch(d){}b=b.next}};this.then=function(d,i,o){d={resolve:d,reject:i,update:o,deferred:new c};f?g.next=d:f=d;g=d;e&&b(a);return d.deferred.promise};this.promise={then:this.then};this.state=function(){return e||"wait"};this.all=function(a,b){function d(a,b){e||(g[a]=b,--f===0&&
h.resolve(g))}function c(a,f){if(!e){if(b)try{d(a,b(f));return}catch(g){f=g}h.reject(f)}}var f=a.length,g=[],h=this;f===0?this.resolve(g):a.forEach(function(a,b){a.then(d.bind(null,b),c.bind(null,b))});return this.promise}}var a,d,f,e,g=!1;c.when=function(a,b,d,e){var f;if(!(a&&typeof a.then==="function"))f=new c,f.resolve(a),a=f.promise;return a.then(b,d,e)};return c});
define("orion/serviceregistry",["orion/Deferred"],function(b){function c(a,b,d){this.serviceId=a;this.name=b;this.properties=d}function a(a,b,d){this.serviceId=a;this.serviceReference=b;this.internalRegistry=d}function d(a,d,c,e){return function(){var f;if(a.isRegistered(d)){try{var g=c[e].apply(c,Array.prototype.slice.call(arguments));if(g&&typeof g.then==="function")return g;else f=new b,f.resolve(g)}catch(n){f=new b,f.reject(n)}return f.promise}throw Error("Service was unregistered");}}function f(a,
b,c){this.serviceId=a;this.implementation=b;this.internalRegistry=c;for(var e in b)typeof b[e]==="function"&&(this[e]=d(c,a,b,e))}function e(){this._namedlisteners={}}function g(){this._entries=[];this._namedReferences={};this._serviceEventTarget=new e;var a=this;this.internalRegistry={isRegistered:function(b){return a._entries[b]?!0:!1},unregisterService:function(b){var d=a._entries[b];if(d){for(var c=d.reference,e=a._namedReferences[c.getName()],f=0;f<e.length;f++)if(e[f]===c){e.length===1?delete a._namedReferences[c.getName()]:
e.splice(f,1);break}a._entries[b]=null;a._serviceEventTarget.dispatchEvent("serviceRemoved",c,d.service)}},dispatchEvent:function(b,d){var c=a._entries[b];c&&c.eventTarget.dispatchEvent.apply(c.eventTarget,[d].concat(Array.prototype.slice.call(arguments,2)))},addEventListener:function(b,d,c){(b=a._entries[b])&&b.eventTarget.addEventListener(d,c)},removeEventListener:function(b,d,c){(b=a._entries[b])&&b.eventTarget.removeEventListener(d,c)}}}c.prototype={getServiceId:function(){return this.serviceId},
getName:function(){return this.name},getPropertyNames:function(){var a=[],b;for(b in this.properties)this.properties.hasOwnProperty(b)&&a.push(b);return a},getProperty:function(a){return this.properties[a]}};c.prototype.constructor=c;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;f.prototype={addEventListener:function(a,b){this.internalRegistry.addEventListener(this.serviceId,a,b)},removeEventListener:function(a,b){this.internalRegistry.removeEventListener(this.serviceId,a,b)}};f.prototype.constructor=f;e.prototype={dispatchEvent:function(a){var b=this._namedlisteners[a];if(b)for(var d=0;d<b.length;d++)try{var c=Array.prototype.slice.call(arguments,1);b[d].apply(null,c)}catch(e){console.log(e)}},addEventListener:function(a,b){this._namedlisteners[a]=
this._namedlisteners[a]||[];this._namedlisteners[a].push(b)},removeEventListener:function(a,b){var d=this._namedlisteners[a];if(d)for(var c=0;c<d.length;c++)if(d[c]===b){d.length===1?delete this._namedlisteners[a]:d.splice(c,1);break}}};e.prototype.constructor=e;g.prototype={getService:function(a){var b;if(typeof a==="string"){if(this._namedReferences[a])for(var d=0;d<this._namedReferences[a].length;d++)if(b=this._entries[this._namedReferences[a][d].getServiceId()].service)break}else b=this._entries[a.getServiceId()].service;
return b},getServiceReferences:function(a){if(a)return this._namedReferences[a]?this._namedReferences[a]:[];for(var a=[],b=0;b<this._entries.length;b++)this._entries[b]&&a.push(this._entries[b].reference);return a},registerService:function(b,d,g){var k=this._entries.length,g=new c(k,b,g),d=new f(k,d,this.internalRegistry);this._namedReferences[b]=this._namedReferences[b]||[];this._namedReferences[b].push(g);this._entries.push({reference:g,service:d,eventTarget:new e});this._serviceEventTarget.dispatchEvent("serviceAdded",
g,d);return new a(k,g,this.internalRegistry)},addEventListener:function(a,b){this._serviceEventTarget.addEventListener(a,b)},removeEventListener:function(a,b){this._serviceEventTarget.removeEventListener(a,b)}};g.prototype.constructor=g;return{ServiceReference:c,ServiceRegistration:a,Service:f,EventTarget:e,ServiceRegistry:g}});
define("orion/xhr",["orion/Deferred"],function(b){function c(a){return encodeURIComponent(a).replace(/[!'()*]/g,function(a){return"%"+a.charCodeAt(0).toString(16).toUpperCase()})}return function(a,d,f){var f=f||{},e=arguments.length>3&&arguments[3]?arguments[3]:new XMLHttpRequest,g=new b,h=f.headers||{},i=f.log||!1,j,k;typeof h["X-Requested-With"]==="undefined"&&(h["X-Requested-With"]="XMLHttpRequest");if(f.query&&typeof f.query==="object"){var l=f.query,m=Object.keys(l),n=[];for(k=0;k<m.length;k++){var o=
m[k],p=l[o];n.push(c(o)+"="+c(p))}n.length&&(l=d.split("#"),l[0]+=(l[0].indexOf("?")===-1?"?":"&")+n.join("&"),d=l.join("#"))}if(typeof f.data!=="undefined"&&(a==="POST"||a==="PUT"))j=f.data;if(typeof f.responseType==="string")e.responseType=f.responseType;e.onreadystatechange=function(){if(e.readyState===4){var a=e.status,b=typeof e.response!=="undefined"?e.response:e.responseText,b={args:f,response:b,responseText:typeof b==="string"?b:null,status:a,url:d,xhr:e};200<=a&&a<400?g.resolve(b):(i&&console&&
console.log(Error(e.statusText)),g.reject(b))}};try{e.open(a,d,!0);if(typeof f.timeout==="number")e.timeout=f.timeout,e.addEventListener("timeout",function(a){g.reject("Timeout exceeded: "+a)});var r=Object.keys(h);for(k=0;k<r.length;k++){var s=r[k];e.setRequestHeader(s,h[s])}e.send(j)}catch(q){g.reject(q)}return g}});
define("orion/es5shim",[],function(){if(!Function.prototype.bind)Function.prototype.bind=function(b){var c=this,a=Array.prototype.slice.call(arguments,1);return a.length?function(){return arguments.length?c.apply(b,a.concat(Array.prototype.slice.call(arguments))):c.apply(b,a)}:function(){return arguments.length?c.apply(b,arguments):c.call(b)}}});
define("orion/preferences",["require","orion/Deferred","orion/xhr","orion/es5shim"],function(b,c,a){function d(a,b){this._name=a;this._providers=b;this._flushPending=!1;this._cached=null;this._stores=[];this._dirty=[]}function f(a,b){return{get:function(d,c){if(b===0)return null;var e=localStorage.getItem(a+d);if(e===null)return null;e=JSON.parse(e);return c||b===-1||e._expires&&e._expires>(new Date).getTime()?(delete e._expires,e):null},set:function(d,c){if(b!==0){if(b!==-1)c._expires=(new Date).getTime()+
1E3*b;if(Object.keys(c).length===0)localStorage.removeItem(a+d);else{var e=JSON.stringify(c);localStorage.setItem(a+d,e);delete c._expires}}},remove:function(b){localStorage.removeItem(a+b)}}}function e(a){this._currentPromises={};this._cache=new f("/orion/preferences/user",3600);this._service=null;this.available=function(){if(!this._service){var b=a.getServiceReferences("orion.core.preference.provider");if(b.length>0)this._service=a.getService(b[0])}return!!this._service}}function g(a){this._location=
a;this._currentPromise=null;this._cache=new f("/orion/preferences/default",3600)}function h(){this._cache=new f("/orion/preferences/local",-1)}function i(a,d){this._userProvider=new e(a);this._localProvider=new h;d=d||"defaults.pref";d.indexOf("://")===-1&&(d=b.toUrl(d));this._defaultsProvider=new g(d);this._serviceRegistration=a.registerService("orion.core.preference",this)}d.prototype={_flush:function(){for(var a=[],b=0;b<this._stores.length;++b){var d=this._stores[b];this._dirty.indexOf(d)!==-1&&
a.push(this._providers[b].put(this._name,d))}this._dirty=[];return(new c).all(a)},_scheduleFlush:function(a){this._dirty.indexOf(a)===-1&&this._dirty.push(a);if(!this._flushPending)this._flushPending=!0,window.setTimeout(function(){if(this._flushPending)this._flushPending=!1,this._flush()}.bind(this),0)},_getCached:function(){if(!this._cached){this._cached={};for(var a=0;a<this._stores.length;++a){var b=this._stores[a],d;for(d in b)b.hasOwnProperty(d)&&typeof this._cached[d]==="undefined"&&(this._cached[d]=
b[d])}}return this._cached},keys:function(){return Object.keys(this._getCached())},get:function(a){return this._getCached()[a]},put:function(a,b){if(this._stores.length!==0){var d=this._stores[0];if(d[a]!==b)d[a]=b,this._cached=null,this._scheduleFlush(d)}},remove:function(a){for(var b=0;b<this._stores.length;++b){var d=this._stores[b];if(d.hasOwnProperty(a))return delete d[a],this._cached=null,this._scheduleFlush(d),!0}return!1},clear:function(){for(var a=0;a<this._stores.length;++a)this._stores[a]=
{},this._scheduleFlush(this._stores[a]);this._cached=null},sync:function(a){if(this._flushPending)return this._flushPending=!1,this._flush();for(var b=this,d=[],e=0;e<this._providers.length;++e)d.push(this._providers[e].get(this._name,a).then(function(a){return function(d){b._stores[a]=d}}(e)));return(new c).all(d).then(function(){b._cached=null;b._getCached()})},flush:function(){this._flush()}};e.prototype={get:function(a,b){if(this._currentPromises[a])return this._currentPromises[a];var d=new c,
e=null;b?this._cache.remove(a):e=this._cache.get(a);if(e!==null)d.resolve(e);else{this._currentPromises[a]=d;var f=this;this._service.get(a).then(function(b){f._cache.set(a,b);delete f._currentPromises[a];d.resolve(b)},function(b){b.status===404?(b={},f._cache.set(a,b),delete f._currentPromises[a],d.resolve(b)):(delete f._currentPromises[a],d.resolve(f._cache.get(a,!0)||{}))})}return d},put:function(a,b){this._cache.set(a,b);return this._service.put(a,b)}};g.prototype={get:function(b,d){if(this._currentPromise)return this._currentPromise;
var e=new c,f=null;d?this._cache.remove(b):f=this._cache.get(b);if(f!==null)e.resolve(f);else{this._currentPromise=e;var g=this;a("GET",this._location,{headers:{"Orion-Version":"1"},timeout:15E3}).then(function(a){a=JSON.parse(a.response);g._cache.set(b,a[b]||{});g._currentPromise=null;e.resolve(a[b]||{})},function(a){a.xhr.status===401||a.xhr.status===404?(g._cache.set(b,{}),g._currentPromise=null,e.resolve({})):(g._currentPromise=null,a=g._cache.get(b,!0),a!==null?e.resolve(a[b]||{}):e.resolve({}))})}return e},
put:function(){var a=new c;a.resolve();return a}};h.prototype={get:function(a){var b=new c,a=this._cache.get(a);a!==null?b.resolve(a):b.resolve({});return b},put:function(a,b){var d=new c;this._cache.set(a,b);d.resolve();return d}};i.DEFAULT_SCOPE=1;i.LOCAL_SCOPE=2;i.USER_SCOPE=4;i.prototype={listenForChangedSettings:function(a){window.addEventListener("storage",a,!1);return"/orion/preferences/local/settings"},getPreferences:function(a,b){if(!b||typeof b!=="number"||b>7||b<1)b=i.DEFAULT_SCOPE|i.LOCAL_SCOPE|
i.USER_SCOPE;var c=[];i.USER_SCOPE&b&&this._userProvider.available()&&c.push(this._userProvider);i.LOCAL_SCOPE&b&&c.push(this._localProvider);i.DEFAULT_SCOPE&b&&c.push(this._defaultsProvider);var e=new d(a,c);return e.sync().then(function(){return e})},getSetting:function(a,b,d){for(var c,e=0;e<a.length;e++)if(a[e].label===b)for(var f=0;f<a[e].data.length;f++)if(a[e].data[f].label===d){c=a[e].data[f].value;break}return c}};return{PreferencesService:i}});
define("orion/pluginregistry",["orion/Deferred","orion/serviceregistry","orion/es5shim"],function(b,c){var a=a||{};a.Plugin=function(a,c,e){function g(a,d,c){if(!l)throw Error("plugin not connected");var f=p++,g=new b;r[String(f)]=g;e.postMessage({id:f,serviceId:a,method:d,params:c},l);return g.promise}function h(a){var b={};a.methods&&a.methods.forEach(function(d){b[d]=function(){var b=Array.prototype.slice.call(arguments);return o?g(a.serviceId,d,b):k._load().then(function(){return g(a.serviceId,
d,b)})}});return b}function i(){var a=c.services;a&&a.forEach(function(a){var b=h(a);s[a.serviceId]=e.registerService(a.type,b,a.properties)})}function j(b){var g,h;try{if(b.method)if("plugin"===b.method){if(c){if(JSON.stringify(c)!==JSON.stringify(b.params[0])){for(var j in s)s.hasOwnProperty(j)&&(s[j].unregister(),delete s[j]);c=b.params[0];i();e.updatePlugin(k)}}else c=b.params[0],i();o||(o=!0,e.dispatchEvent("pluginLoaded",k),m.resolve(k));n&&(n.resolve(k),n=null)}else"dispatchEvent"===b.method?
(g=s[b.serviceId],g.dispatchEvent.apply(g,b.params)):"progress"===b.method?(h=r[String(b.requestId)],h.update.apply(h,b.params)):(o||m.reject(Error("Load timeout for plugin: "+a)),n&&(n.reject(Error("Load timeout for plugin: "+a)),n=null));else h=r[String(b.id)],delete r[String(b.id)],b.error?h.reject(b.error):h.resolve(b.result)}catch(l){console.log(l)}}var k=this,l=null,m=new b,n=null,o=!1,p=0,r={},s={};this.getLocation=function(){return a};this.getData=function(){return c};this.uninstall=function(){for(var a in s)s.hasOwnProperty(a)&&
(s[a].unregister(),delete s[a]);l&&(e.disconnect(l),l=null);e.uninstallPlugin(this)};this.getServiceReferences=function(){var a=[],b;for(b in s)s.hasOwnProperty(b)&&a.push(s[b].getServiceReference());return a};this.update=function(){if(!o)return this._load();n===null&&(n=new b,e.disconnect(l),l=e.connect(a,j));return n.promise};this._load=function(b,g){l||(l=e.connect(a,j,g),m.then(null,function(){b||(c={},e.updatePlugin(k))}));return m.promise};if(typeof a!=="string")throw Error("invalid url:"+a);
c&&i()};a.PluginRegistry=function(d,f,e){function g(a){if(a.indexOf("://")===-1){var b=document.createElement("a");b.href=a;return b.href}return a}function h(a){a.getData()._expires=(new Date).getTime()+36E5;j["plugin."+a.getLocation()]=JSON.stringify(a.getData())}function i(a){var b=null,a=g(a);k.some(function(d){if(a===d.getLocation())return b=d,!0});return b}var j=f||localStorage||{},k=[],l=[],m=new c.EventTarget;addEventListener("message",function(a){var b=a.source;l.some(function(d){if(b===d.target){if(typeof d.useStructuredClone===
"undefined")d.useStructuredClone=typeof a.data!=="string";d.handler(d.useStructuredClone?a.data:JSON.parse(a.data));return!0}})},!1);var n={registerService:d.registerService.bind(d),connect:function(a,b,d){function c(){b({method:"timeout"})}var f={handler:b,url:a},g=setTimeout(c,d||15E3);if(a.match(/\.js$/)&&typeof Worker!=="undefined"){var h=new Worker(a);h.onmessage=function(a){if(typeof f.useStructuredClone==="undefined")f.useStructuredClone=typeof a.data!=="string";f.handler(f.useStructuredClone?
a.data:JSON.parse(a.data))};f.target=h;f.close=function(){h.terminate()}}else{var i=document.createElement("iframe");i.id=a;i.name=a;if(!e)i.style.display="none",i.style.visibility="hidden";i.src=a;i.onload=function(){clearTimeout(g);setTimeout(c,5E3)};i.sandbox="allow-scripts allow-same-origin";document.body.appendChild(i);f.target=i.contentWindow;f.close=function(){document.body.removeChild(i)}}l.push(f);return f},disconnect:function(a){for(var b=0;b<l.length;b++)if(a===l[b]){l.splice(b,1);try{a.close()}catch(d){}break}},
uninstallPlugin:function(a){delete j["plugin."+a.getLocation()];for(var b=0;b<k.length;b++)if(a===k[b]){k.splice(b,1);m.dispatchEvent("pluginRemoved",a);break}},updatePlugin:function(a){h(a);m.dispatchEvent("pluginUpdated",a)},postMessage:function(a,b){b.target.postMessage(b.useStructuredClone?a:JSON.stringify(a),b.url)},dispatchEvent:function(a,b){try{m.dispatchEvent(a,b)}catch(d){console&&console.log(d)}}};this.startup=function(d){var c=[];d.forEach(function(b){var b=g(b),d="plugin."+b,e=j[d]?JSON.parse(j[d]):
null;e&&e._expires&&e._expires>(new Date).getTime()?i(b)===null&&(delete e._expires,k.push(new a.Plugin(b,e,n))):(j[d]="{}",b=new a.Plugin(b,{},n),k.push(b),c.push(b._load(!1,5E3)))});return(new b).all(c,function(){})};this.shutdown=function(){l.forEach(function(a){try{a.close()}catch(b){}})};this.installPlugin=function(d,c){var d=g(d),e=new b,f=i(d);if(f)if(f.getData())e.resolve(f);else{var j=function(a){a.getLocation()===d&&(e.resolve(a),m.removeEventListener("pluginAdded",j))};m.addEventListener("pluginAdded",
j)}else f=new a.Plugin(d,c,n),k.push(f),f.getData()?(h(f),m.dispatchEvent("pluginAdded",f),e.resolve(f)):f._load(!0).then(function(){h(f);m.dispatchEvent("pluginAdded",f);e.resolve(f)},function(a){e.reject(a)});return e.promise};this.getPlugins=function(){var a=[];k.forEach(function(b){b.getData()&&a.push(b)});return a};this.getPlugin=function(a){return(a=i(a))&&a.getData()?a:null};this.addEventListener=function(a,b){m.addEventListener(a,b)};this.removeEventListener=function(a,b){m.removeEventListener(a,
b)}};return a});
define("orion/bootstrap",["require","orion/Deferred","orion/serviceregistry","orion/preferences","orion/pluginregistry"],function(b,c,a,d,f){var e;return{startup:function(){if(e)return e;e=new c;var g=new a.ServiceRegistry,h=new d.PreferencesService(g),i=new f.PluginRegistry(g);return h.getPreferences("/plugins").then(function(a){for(var a=a.keys(),d=0;d<a.length;++d)a[d].indexOf("://")===-1&&(a[d]=b.toUrl(a[d]));return i.startup(a)}).then(function(){if(g.getServiceReferences("orion.core.preference.provider").length>0)return h.getPreferences("/plugins",
h.USER_SCOPE).then(function(a){for(var a=a.keys(),d=0;d<a.length;++d)a[d].indexOf("://")===-1&&(a[d]=b.toUrl(a[d]));return i.startup(a)})}).then(function(){var a=g.getService("orion.core.auth");a&&a.getUser().then(function(b){b||a.getAuthForm(window.location.href).then(function(a){window.location=a})})}).then(function(){var a={serviceRegistry:g,preferences:h,pluginRegistry:i};e.resolve(a);return a})}}});
define("orion/nls/messages",["orion/i18n!orion/nls/messages"],function(b){var c={root:!0};Object.keys(b).forEach(function(a){typeof c[a]==="undefined"&&(c[a]=b[a])});return c});
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"});define("dijit",["dojo"],function(b){return dijit=b._dijit||{}});define("orion/operations/nls/messages",["orion/i18n!orion/operations/nls/messages"],function(b){var c={root:!0};Object.keys(b).forEach(function(a){typeof c[a]==="undefined"&&(c[a]=b[a])});return c});
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("dijit/_base/manager",["dojo","dijit"],function(b,c){b.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0},add:function(a){if(this._hash[a.id])throw Error("Tried to register widget with id=="+a.id+" but that id is already registered");this._hash[a.id]=a;this.length++},remove:function(a){this._hash[a]&&(delete this._hash[a],this.length--)},forEach:function(a,d){var d=d||b.global,c=0,e;for(e in this._hash)a.call(d,this._hash[e],c++,this._hash);return this},filter:function(a,
d){var d=d||b.global,f=new c.WidgetSet,e=0,g;for(g in this._hash){var h=this._hash[g];a.call(d,h,e++,this._hash)&&f.add(h)}return f},byId:function(a){return this._hash[a]},byClass:function(a){var b=new c.WidgetSet,f,e;for(f in this._hash)e=this._hash[f],e.declaredClass==a&&b.add(e);return b},toArray:function(){var a=[],b;for(b in this._hash)a.push(this._hash[b]);return a},map:function(a,d){return b.map(this.toArray(),a,d)},every:function(a,d){var d=d||b.global,c=0,e;for(e in this._hash)if(!a.call(d,
this._hash[e],c++,this._hash))return!1;return!0},some:function(a,d){var d=d||b.global,c=0,e;for(e in this._hash)if(a.call(d,this._hash[e],c++,this._hash))return!0;return!1}});(function(){c.registry=new c.WidgetSet;var a=c.registry._hash,d=b.attr,f=b.hasAttr,e=b.style;c.byId=function(b){return typeof b=="string"?a[b]:b};var g={};c.getUniqueId=function(b){var d;do d=b+"_"+(b in g?++g[b]:g[b]=0);while(a[d]);return c._scopeName=="dijit"?d:c._scopeName+"_"+d};c.findWidgets=function(b){function d(b){for(b=
b.firstChild;b;b=b.nextSibling)if(b.nodeType==1){var e=b.getAttribute("widgetId");e?(e=a[e])&&c.push(e):d(b)}}var c=[];d(b);return c};c._destroyAll=function(){c._curFocus=null;c._prevFocus=null;c._activeStack=[];b.forEach(c.findWidgets(b.body()),function(a){a._destroyed||(a.destroyRecursive?a.destroyRecursive():a.destroy&&a.destroy())})};b.isIE&&b.addOnWindowUnload(function(){c._destroyAll()});c.byNode=function(b){return a[b.getAttribute("widgetId")]};c.getEnclosingWidget=function(b){for(;b;){var d=
b.getAttribute&&b.getAttribute("widgetId");if(d)return a[d];b=b.parentNode}return null};var h=c._isElementShown=function(a){var b=e(a);return b.visibility!="hidden"&&b.visibility!="collapsed"&&b.display!="none"&&d(a,"type")!="hidden"};c.hasDefaultTabStop=function(a){switch(a.nodeName.toLowerCase()){case "a":return f(a,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return!0;case "iframe":var b;try{var d=a.contentDocument;if("designMode"in d&&d.designMode==
"on")return!0;b=d.body}catch(c){try{b=a.contentWindow.document.body}catch(e){return!1}}return b.contentEditable=="true"||b.firstChild&&b.firstChild.contentEditable=="true";default:return a.contentEditable=="true"}};var i=c.isTabNavigable=function(a){return d(a,"disabled")?!1:f(a,"tabIndex")?d(a,"tabIndex")>=0:c.hasDefaultTabStop(a)};c._getTabNavigable=function(a){function c(a){return a&&a.tagName.toLowerCase()=="input"&&a.type&&a.type.toLowerCase()=="radio"&&a.name&&a.name.toLowerCase()}var e,g,n,
o,p,r,s={},q=function(a){b.query("> *",a).forEach(function(a){if(!(b.isIE&&a.scopeName!=="HTML")&&h(a)){if(i(a)){var j=d(a,"tabIndex");if(!f(a,"tabIndex")||j==0)e||(e=a),g=a;else if(j>0){if(!n||j<o)o=j,n=a;if(!p||j>=r)r=j,p=a}j=c(a);b.attr(a,"checked")&&j&&(s[j]=a)}a.nodeName.toUpperCase()!="SELECT"&&q(a)}})};h(a)&&q(a);return{first:s[c(e)]||e,last:s[c(g)]||g,lowest:s[c(n)]||n,highest:s[c(p)]||p}};c.getFirstInTabbingOrder=function(a){a=c._getTabNavigable(b.byId(a));return a.lowest?a.lowest:a.first};
c.getLastInTabbingOrder=function(a){a=c._getTabNavigable(b.byId(a));return a.last?a.last:a.highest};c.defaultDuration=b.config.defaultDuration||200})();return c});
define("dojo/Stateful",["dojo"],function(b){b.declare("dojo.Stateful",null,{postscript:function(c){c&&b.mixin(this,c)},get:function(b){return this[b]},set:function(b,a){if(typeof b==="object"){for(var d in b)this.set(d,b[d]);return this}d=this[b];this[b]=a;this._watchCallbacks&&this._watchCallbacks(b,d,a);return this},watch:function(c,a){var d=this._watchCallbacks;if(!d)var f=this,d=this._watchCallbacks=function(a,b,c,e){var k=function(d){if(d)for(var d=d.slice(),e=0,k=d.length;e<k;e++)try{d[e].call(f,
a,b,c)}catch(j){console.error(j)}};k(d["_"+a]);e||k(d["*"])};!a&&typeof c==="function"?(a=c,c="*"):c="_"+c;var e=d[c];typeof e!=="object"&&(e=d[c]=[]);e.push(a);return{unwatch:function(){e.splice(b.indexOf(e,a),1)}}}});return b.Stateful});
define("dijit/_WidgetBase",["dojo","dijit","dijit/_base/manager","dojo/Stateful"],function(b,c){(function(){b.declare("dijit._WidgetBase",b.Stateful,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_blankGif:(b.config.blankGif||b.moduleUrl("dojo","resources/blank.gif")).toString(),postscript:function(a,b){this.create(a,b)},create:function(a,d){this.srcNodeRef=
b.byId(d);this._connects=[];this._subscribes=[];if(this.srcNodeRef&&typeof this.srcNodeRef.id=="string")this.id=this.srcNodeRef.id;if(a)this.params=a,b._mixin(this,a);this.postMixInProperties();if(!this.id)this.id=c.getUniqueId(this.declaredClass.replace(/\./g,"_"));c.registry.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var f=this.srcNodeRef;f&&f.parentNode&&this.domNode!==f&&f.parentNode.replaceChild(this.domNode,f)}this.domNode&&this.domNode.setAttribute("widgetId",
this.id);this.postCreate();this.srcNodeRef&&!this.srcNodeRef.parentNode&&delete this.srcNodeRef;this._created=!0},_applyAttributes:function(){var a=function(a,b){(b.params&&a in b.params||b[a])&&b.set(a,b[a])},d;for(d in this.attributeMap)a(d,this);b.forEach(this._getSetterAttributes(),function(b){b in this.attributeMap||a(b,this)},this)},_getSetterAttributes:function(){var a=this.constructor;if(!a._setterAttrs){var d=a._setterAttrs=[],c,e=a.prototype,g;for(g in e)b.isFunction(e[g])&&(c=g.match(/^_set([a-zA-Z]*)Attr$/))&&
c[1]&&d.push(c[1].charAt(0).toLowerCase()+c[1].substr(1))}return a._setterAttrs},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode)this.domNode=this.srcNodeRef||b.create("div");if(this.baseClass){var a=this.baseClass.split(" ");this.isLeftToRight()||(a=a.concat(b.map(a,function(a){return a+"Rtl"})));b.addClass(this.domNode,a)}},postCreate:function(){},startup:function(){this._started=!0},destroyRecursive:function(a){this._beingDestroyed=!0;this.destroyDescendants(a);this.destroy(a)},
destroy:function(a){this._beingDestroyed=!0;this.uninitialize();var d=b.forEach,f=b.unsubscribe;d(this._connects,function(a){d(a,b.disconnect)});d(this._subscribes,function(a){f(a)});d(this._supportingWidgets||[],function(a){a.destroyRecursive?a.destroyRecursive():a.destroy&&a.destroy()});this.destroyRendering(a);c.registry.remove(this.id);this._destroyed=!0},destroyRendering:function(a){this.bgIframe&&(this.bgIframe.destroy(a),delete this.bgIframe);this.domNode&&(a?b.removeAttr(this.domNode,"widgetId"):
b.destroy(this.domNode),delete this.domNode);this.srcNodeRef&&(a||b.destroy(this.srcNodeRef),delete this.srcNodeRef)},destroyDescendants:function(a){b.forEach(this.getChildren(),function(b){b.destroyRecursive&&b.destroyRecursive(a)})},uninitialize:function(){return!1},_setClassAttr:function(a){b.replaceClass(this[this.attributeMap["class"]||"domNode"],a,this["class"]);this._set("class",a)},_setStyleAttr:function(a){var d=this[this.attributeMap.style||"domNode"];b.isObject(a)?b.style(d,a):d.style.cssText?
d.style.cssText+="; "+a:d.style.cssText=a;this._set("style",a)},_attrToDom:function(a,d){var c=this.attributeMap[a];b.forEach(b.isArray(c)?c:[c],function(c){var f=this[c.node||c||"domNode"];switch(c.type||"attribute"){case "attribute":b.isFunction(d)&&(d=b.hitch(this,d));c=c.attribute?c.attribute:/^on[A-Z][a-zA-Z]*$/.test(a)?a.toLowerCase():a;b.attr(f,c,d);break;case "innerText":f.innerHTML="";f.appendChild(b.doc.createTextNode(d));break;case "innerHTML":f.innerHTML=d;break;case "class":b.replaceClass(f,
d,this[a])}},this)},get:function(a){var b=this._getAttrNames(a);return this[b.g]?this[b.g]():this[a]},set:function(a,b){if(typeof a==="object"){for(var c in a)this.set(c,a[c]);return this}c=this._getAttrNames(a);if(this[c.s])var e=this[c.s].apply(this,Array.prototype.slice.call(arguments,1));else a in this.attributeMap&&this._attrToDom(a,b),this._set(a,b);return e||this},_attrPairNames:{},_getAttrNames:function(a){var b=this._attrPairNames;if(b[a])return b[a];var c=a.charAt(0).toUpperCase()+a.substr(1);
return b[a]={n:a+"Node",s:"_set"+c+"Attr",g:"_get"+c+"Attr"}},_set:function(a,b){var c=this[a];this[a]=b;this._watchCallbacks&&this._created&&b!==c&&this._watchCallbacks(a,c,b)},toString:function(){return"[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]"},getDescendants:function(){return this.containerNode?b.query("[widgetId]",this.containerNode).map(c.byNode):[]},getChildren:function(){return this.containerNode?c.findWidgets(this.containerNode):[]},connect:function(a,d,c){a=[b._connect(a,
d,this,c)];this._connects.push(a);return a},disconnect:function(a){for(var d=0;d<this._connects.length;d++)if(this._connects[d]==a){b.forEach(a,b.disconnect);this._connects.splice(d,1);break}},subscribe:function(a,d){var c=b.subscribe(a,this,d);this._subscribes.push(c);return c},unsubscribe:function(a){for(var d=0;d<this._subscribes.length;d++)if(this._subscribes[d]==a){b.unsubscribe(a);this._subscribes.splice(d,1);break}},isLeftToRight:function(){return this.dir?this.dir=="ltr":b._isBodyLtr()},placeAt:function(a,
d){a.declaredClass&&a.addChild?a.addChild(this,d):b.place(this.domNode,a,d);return this}})})();return c._WidgetBase});
define("dojo/window",["dojo"],function(b){b.getObject("window",!0,b);b.window.getBox=function(){var c=b.doc.compatMode=="BackCompat"?b.body():b.doc.documentElement,a=b._docScroll();return{w:c.clientWidth,h:c.clientHeight,l:a.x,t:a.y}};b.window.get=function(c){if(b.isIE&&window!==document.parentWindow){c.parentWindow.execScript("document._parentWindow = window;","Javascript");var a=c._parentWindow;c._parentWindow=null;return a}return c.parentWindow||c.defaultView};b.window.scrollIntoView=function(c,
a){try{var c=b.byId(c),d=c.ownerDocument||b.doc,f=d.body||b.body(),e=d.documentElement||f.parentNode,g=b.isIE,h=b.isWebKit;if((!b.isMoz&&!g&&!h&&!b.isOpera||c==f||c==e)&&typeof c.scrollIntoView!="undefined")c.scrollIntoView(!1);else{var i=d.compatMode=="BackCompat",j=g>=9&&c.ownerDocument.parentWindow.frameElement?e.clientHeight>0&&e.clientWidth>0&&(f.clientHeight==0||f.clientWidth==0||f.clientHeight>e.clientHeight||f.clientWidth>e.clientWidth)?e:f:i?f:e,d=h?f:j,k=j.clientWidth,l=j.clientHeight,m=
!b._isBodyLtr(),n=a||b.position(c),o=c.parentNode,j=function(a){return g<=6||g&&i?!1:b.style(a,"position").toLowerCase()=="fixed"};if(!j(c))for(;o;){o==f&&(o=d);var p=b.position(o),r=j(o);if(o==d){p.w=k;p.h=l;d==e&&g&&m&&(p.x+=d.offsetWidth-p.w);if(p.x<0||!g)p.x=0;if(p.y<0||!g)p.y=0}else{var s=b._getPadBorderExtents(o);p.w-=s.w;p.h-=s.h;p.x+=s.l;p.y+=s.t;var q=o.clientWidth,t=p.w-q;if(q>0&&t>0)p.w=q,p.x+=m&&(g||o.clientLeft>s.l)?t:0;q=o.clientHeight;t=p.h-q;if(q>0&&t>0)p.h=q}if(r){if(p.y<0)p.h+=p.y,
p.y=0;if(p.x<0)p.w+=p.x,p.x=0;if(p.y+p.h>l)p.h=l-p.y;if(p.x+p.w>k)p.w=k-p.x}var u=n.x-p.x,v=n.y-Math.max(p.y,0),A=u+n.w-p.w,H=v+n.h-p.h;if(A*u>0){var z=Math[u<0?"max":"min"](u,A);if(m&&(g==8&&!i||g>=9))z=-z;n.x+=o.scrollLeft;o.scrollLeft+=z;n.x-=o.scrollLeft}H*v>0&&(n.y+=o.scrollTop,o.scrollTop+=Math[v<0?"max":"min"](v,H),n.y-=o.scrollTop);o=o!=d&&!r&&o.parentNode}}}catch(C){console.error("scrollIntoView: "+C),c.scrollIntoView(!1)}};return b.window});
define("dijit/_base/focus",["dojo","dijit","dojo/window","dijit/_base/manager"],function(b,c){b.mixin(c,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return c.getBookmark().isCollapsed},getBookmark:function(){var a,d,f=b.doc.selection,e=c._curFocus;if(b.global.getSelection){if(f=b.global.getSelection())if(f.isCollapsed){if(a=e?e.tagName:"")if(a=a.toLowerCase(),a=="textarea"||a=="input"&&(!e.type||e.type.toLowerCase()=="text"))return f={start:e.selectionStart,end:e.selectionEnd,node:e,pRange:!0},
{isCollapsed:f.end<=f.start,mark:f};a={isCollapsed:!0};if(f.rangeCount)a.mark=f.getRangeAt(0).cloneRange()}else d=f.getRangeAt(0),a={isCollapsed:!1,mark:d.cloneRange()}}else if(f){a=e?e.tagName:"";a=a.toLowerCase();if(e&&a&&(a=="button"||a=="textarea"||a=="input"))return f.type&&f.type.toLowerCase()=="none"?{isCollapsed:!0,mark:null}:(d=f.createRange(),{isCollapsed:d.text&&d.text.length?!1:!0,mark:{range:d,pRange:!0}});a={};try{d=f.createRange(),a.isCollapsed=!(f.type=="Text"?d.htmlText.length:d.length)}catch(g){return a.isCollapsed=
!0,a}if(f.type.toUpperCase()=="CONTROL")if(d.length){a.mark=[];f=0;for(e=d.length;f<e;)a.mark.push(d.item(f++))}else a.isCollapsed=!0,a.mark=null;else a.mark=d.getBookmark()}else console.warn("No idea how to store the current selection for this browser!");return a},moveToBookmark:function(a){var d=b.doc;if(a=a.mark)if(b.global.getSelection)(d=b.global.getSelection())&&d.removeAllRanges?a.pRange?(d=a.node,d.selectionStart=a.start,d.selectionEnd=a.end):(d.removeAllRanges(),d.addRange(a)):console.warn("No idea how to restore selection for this browser!");
else if(d.selection&&a){var c;a.pRange?c=a.range:b.isArray(a)?(c=d.body.createControlRange(),b.forEach(a,function(a){c.addElement(a)})):(c=d.body.createTextRange(),c.moveToBookmark(a));c.select()}},getFocus:function(a,d){var f=!c._curFocus||a&&b.isDescendant(c._curFocus,a.domNode)?c._prevFocus:c._curFocus;return{node:f,bookmark:f==c._curFocus&&b.withGlobal(d||b.global,c.getBookmark),openedForWindow:d}},focus:function(a){if(a){var d="node"in a?a.node:a,f=a.bookmark,a=a.openedForWindow,e=f?f.isCollapsed:
!1;if(d){var g=d.tagName.toLowerCase()=="iframe"?d.contentWindow:d;if(g&&g.focus)try{g.focus()}catch(h){}c._onFocusNode(d)}if(f&&b.withGlobal(a||b.global,c.isCollapsed)&&!e){a&&a.focus();try{b.withGlobal(a||b.global,c.moveToBookmark,null,[f])}catch(i){}}}},_activeStack:[],registerIframe:function(a){return c.registerWin(a.contentWindow,a)},unregisterIframe:function(a){c.unregisterWin(a)},registerWin:function(a,d){var f=function(a){c._justMouseDowned=!0;setTimeout(function(){c._justMouseDowned=!1},
0);if(!b.isIE||!a||!(a.srcElement&&a.srcElement.parentNode==null))c._onTouchNode(d||a.target||a.srcElement,"mouse")},e=b.isIE?a.document.documentElement:a.document;if(e)if(b.isIE){a.document.body.attachEvent("onmousedown",f);var g=function(a){a.srcElement.tagName.toLowerCase()!="#document"&&c.isTabNavigable(a.srcElement)?c._onFocusNode(d||a.srcElement):c._onTouchNode(d||a.srcElement)};e.attachEvent("onactivate",g);var h=function(a){c._onBlurNode(d||a.srcElement)};e.attachEvent("ondeactivate",h);return function(){a.document.detachEvent("onmousedown",
f);e.detachEvent("onactivate",g);e.detachEvent("ondeactivate",h);e=null}}else{e.body.addEventListener("mousedown",f,!0);var i=function(a){c._onFocusNode(d||a.target)};e.addEventListener("focus",i,!0);var j=function(a){c._onBlurNode(d||a.target)};e.addEventListener("blur",j,!0);return function(){e.body.removeEventListener("mousedown",f,!0);e.removeEventListener("focus",i,!0);e.removeEventListener("blur",j,!0);e=null}}},unregisterWin:function(a){a&&a()},_onBlurNode:function(){c._prevFocus=c._curFocus;
c._curFocus=null;if(!c._justMouseDowned)c._clearActiveWidgetsTimer&&clearTimeout(c._clearActiveWidgetsTimer),c._clearActiveWidgetsTimer=setTimeout(function(){delete c._clearActiveWidgetsTimer;c._setStack([]);c._prevFocus=null},100)},_onTouchNode:function(a,d){c._clearActiveWidgetsTimer&&(clearTimeout(c._clearActiveWidgetsTimer),delete c._clearActiveWidgetsTimer);var f=[];try{for(;a;){var e=b.attr(a,"dijitPopupParent");if(e)a=c.byId(e).domNode;else if(a.tagName&&a.tagName.toLowerCase()=="body"){if(a===
b.body())break;a=b.window.get(a.ownerDocument).frameElement}else{var g=a.getAttribute&&a.getAttribute("widgetId"),h=g&&c.byId(g);h&&!(d=="mouse"&&h.get("disabled"))&&f.unshift(g);a=a.parentNode}}}catch(i){}c._setStack(f,d)},_onFocusNode:function(a){if(a&&a.nodeType!=9&&(c._onTouchNode(a),a!=c._curFocus)){if(c._curFocus)c._prevFocus=c._curFocus;c._curFocus=a;b.publish("focusNode",[a])}},_setStack:function(a,d){var f=c._activeStack;c._activeStack=a;for(var e=0;e<Math.min(f.length,a.length);e++)if(f[e]!=
a[e])break;for(var g,h=f.length-1;h>=e;h--)if(g=c.byId(f[h]))g._focused=!1,g.set("focused",!1),g._hasBeenBlurred=!0,g._onBlur&&g._onBlur(d),b.publish("widgetBlur",[g,d]);for(h=e;h<a.length;h++)if(g=c.byId(a[h]))g._focused=!0,g.set("focused",!0),g._onFocus&&g._onFocus(d),b.publish("widgetFocus",[g,d])}});b.addOnLoad(function(){var a=c.registerWin(window);b.isIE&&b.addOnWindowUnload(function(){c.unregisterWin(a);a=null})});return c});
define("dojo/AdapterRegistry",["dojo"],function(b){b.AdapterRegistry=function(b){this.pairs=[];this.returnWrappers=b||!1};b.extend(b.AdapterRegistry,{register:function(b,a,d,f,e){this.pairs[e?"unshift":"push"]([b,a,d,f])},match:function(){for(var b=0;b<this.pairs.length;b++){var a=this.pairs[b];if(a[1].apply(this,arguments))return a[3]||this.returnWrappers?a[2]:a[2].apply(this,arguments)}throw Error("No match found");},unregister:function(b){for(var a=0;a<this.pairs.length;a++)if(this.pairs[a][0]==
b)return this.pairs.splice(a,1),!0;return!1}});return b.AdapterRegistry});
define("dijit/_base/place",["dojo","dijit","dojo/window","dojo/AdapterRegistry"],function(b,c){c.getViewport=function(){return b.window.getBox()};c.placeOnScreen=function(a,d,f,e){f=b.map(f,function(a){var b={corner:a,pos:{x:d.x,y:d.y}};e&&(b.pos.x+=a.charAt(1)=="L"?e.x:-e.x,b.pos.y+=a.charAt(0)=="T"?e.y:-e.y);return b});return c._place(a,f)};c._place=function(a,d,c,e){var g=b.window.getBox();(!a.parentNode||String(a.parentNode.tagName).toLowerCase()!="body")&&b.body().appendChild(a);var h=null;b.some(d,
function(d){var i=d.corner,l=d.pos,m=0,n={w:i.charAt(1)=="L"?g.l+g.w-l.x:l.x-g.l,h:i.charAt(1)=="T"?g.t+g.h-l.y:l.y-g.t};c&&(m=c(a,d.aroundCorner,i,n,e),m=typeof m=="undefined"?0:m);var o=a.style,p=o.display,r=o.visibility;o.visibility="hidden";o.display="";var s=b.marginBox(a);o.display=p;o.visibility=r;o=Math.max(g.l,i.charAt(1)=="L"?l.x:l.x-s.w);p=Math.max(g.t,i.charAt(0)=="T"?l.y:l.y-s.h);r=Math.min(g.l+g.w,i.charAt(1)=="L"?o+s.w:l.x);l=Math.min(g.t+g.h,i.charAt(0)=="T"?p+s.h:l.y);r-=o;l-=p;m+=
s.w-r+(s.h-l);if(h==null||m<h.overflow)h={corner:i,aroundCorner:d.aroundCorner,x:o,y:p,w:r,h:l,overflow:m,spaceAvailable:n};return!m});h.overflow&&c&&c(a,h.aroundCorner,h.corner,h.spaceAvailable,e);var d=b._isBodyLtr(),i=a.style;i.top=h.y+"px";i[d?"left":"right"]=(d?h.x:g.w-h.x-h.w)+"px";return h};c.placeOnScreenAroundNode=function(a,d,f,e){d=b.byId(d);d=b.position(d,!0);return c._placeOnScreenAroundRect(a,d.x,d.y,d.w,d.h,f,e)};c.placeOnScreenAroundRectangle=function(a,b,f,e){return c._placeOnScreenAroundRect(a,
b.x,b.y,b.width,b.height,f,e)};c._placeOnScreenAroundRect=function(a,b,f,e,g,h,i){var j=[],k;for(k in h)j.push({aroundCorner:k,corner:h[k],pos:{x:b+(k.charAt(1)=="L"?0:e),y:f+(k.charAt(0)=="T"?0:g)}});return c._place(a,j,i,{w:e,h:g})};c.placementRegistry=new b.AdapterRegistry;c.placementRegistry.register("node",function(a,b){return typeof b=="object"&&typeof b.offsetWidth!="undefined"&&typeof b.offsetHeight!="undefined"},c.placeOnScreenAroundNode);c.placementRegistry.register("rect",function(a,b){return typeof b==
"object"&&"x"in b&&"y"in b&&"width"in b&&"height"in b},c.placeOnScreenAroundRectangle);c.placeOnScreenAroundElement=function(a,b,f,e){return c.placementRegistry.match.apply(c.placementRegistry,arguments)};c.getPopupAroundAlignment=function(a,d){var c={};b.forEach(a,function(a){switch(a){case "after":c[d?"BR":"BL"]=d?"BL":"BR";break;case "before":c[d?"BL":"BR"]=d?"BR":"BL";break;case "below-alt":d=!d;case "below":c[d?"BL":"BR"]=d?"TL":"TR";c[d?"BR":"BL"]=d?"TR":"TL";break;case "above-alt":d=!d;default:c[d?
"TL":"TR"]=d?"BL":"BR",c[d?"TR":"TL"]=d?"BR":"BL"}});return c};return c});define("dijit/_base/scroll",["dojo","dijit","dojo/window"],function(b,c){c.scrollIntoView=function(a,d){b.window.scrollIntoView(a,d)};return c.scrollIntoView});
define("dojo/uacss",["dojo"],function(b){(function(){var c=b.doc.documentElement,a=b.isIE,d=b.isOpera,f=Math.floor,e=b.isFF,g=b.boxModel.replace(/-/,""),a={dj_ie:a,dj_ie6:f(a)==6,dj_ie7:f(a)==7,dj_ie8:f(a)==8,dj_ie9:f(a)==9,dj_quirks:b.isQuirks,dj_iequirks:a&&b.isQuirks,dj_opera:d,dj_khtml:b.isKhtml,dj_webkit:b.isWebKit,dj_safari:b.isSafari,dj_chrome:b.isChrome,dj_gecko:b.isMozilla,dj_ff3:f(e)==3};a["dj_"+g]=!0;var h="",i;for(i in a)a[i]&&(h+=i+" ");c.className=b.trim(c.className+" "+h);b._loaders.unshift(function(){if(!b._isBodyLtr()){var a=
"dj_rtl dijitRtl "+h.replace(/ /g,"-rtl ");c.className=b.trim(c.className+" "+a)}})})();return b});define("dijit/_base/sniff",["dojo","dijit","dojo/uacss"],function(b,c){return c});
define("dijit/_base/typematic",["dojo","dijit"],function(b,c){c.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=Math.max(this._currentTimeout<0?this._initialDelay:this._subsequentDelay>1?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay),this._minDelay);this._timer=setTimeout(b.hitch(this,"_fireEventAndReload"),this._currentTimeout)},trigger:function(a,d,c,e,g,h,i,j){if(g!=this._obj)this.stop(),
this._initialDelay=i||500,this._subsequentDelay=h||0.9,this._minDelay=j||10,this._obj=g,this._evt=a,this._node=c,this._count=this._currentTimeout=-1,this._callback=b.hitch(d,e),this._fireEventAndReload(),this._evt=b.mixin({faux:!0},a)},stop:function(){if(this._timer)clearTimeout(this._timer),this._timer=null;if(this._obj)this._callback(-1,this._node,this._evt),this._obj=null},addKeyListener:function(a,d,f,e,g,h,i){if(d.keyCode)d.charOrCode=d.keyCode,b.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.",
"","2.0");else if(d.charCode)d.charOrCode=String.fromCharCode(d.charCode),b.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");return[b.connect(a,"onkeypress",this,function(j){j.charOrCode==d.charOrCode&&(d.ctrlKey===void 0||d.ctrlKey==j.ctrlKey)&&(d.altKey===void 0||d.altKey==j.altKey)&&(d.metaKey===void 0||d.metaKey==(j.metaKey||!1))&&(d.shiftKey===void 0||d.shiftKey==j.shiftKey)?(b.stopEvent(j),c.typematic.trigger(j,f,a,
e,d,g,h,i)):c.typematic._obj==d&&c.typematic.stop()}),b.connect(a,"onkeyup",this,function(){c.typematic._obj==d&&c.typematic.stop()})]},addMouseListener:function(a,d,f,e,g,h){var i=b.connect;return[i(a,"mousedown",this,function(i){b.stopEvent(i);c.typematic.trigger(i,d,a,f,a,e,g,h)}),i(a,"mouseup",this,function(a){b.stopEvent(a);c.typematic.stop()}),i(a,"mouseout",this,function(a){b.stopEvent(a);c.typematic.stop()}),i(a,"mousemove",this,function(a){a.preventDefault()}),i(a,"dblclick",this,function(i){b.stopEvent(i);
b.isIE&&(c.typematic.trigger(i,d,a,f,a,e,g,h),setTimeout(b.hitch(this,c.typematic.stop),50))})]},addListener:function(a,b,c,e,g,h,i,j){return this.addKeyListener(b,c,e,g,h,i,j).concat(this.addMouseListener(a,e,g,h,i,j))}};return c.typematic});
define("dijit/_base/wai",["dojo","dijit"],function(b,c){c.wai={onload:function(){var a=b.create("div",{id:"a11yTestNode",style:{cssText:'border: 1px solid;border-color:red green;position: absolute;height: 5px;top: -999px;background-image: url("'+(b.config.blankGif||b.moduleUrl("dojo","resources/blank.gif"))+'");'}},b.body()),d=b.getComputedStyle(a);if(d){var c=d.backgroundImage;b[d.borderTopColor==d.borderRightColor||c!=null&&(c=="none"||c=="url(invalid-url:)")?"addClass":"removeClass"](b.body(),
"dijit_a11y");b.isIE?a.outerHTML="":b.body().removeChild(a)}}};(b.isIE||b.isMoz)&&b._loaders.unshift(c.wai.onload);b.mixin(c,{hasWaiRole:function(a,b){var c=this.getWaiRole(a);return b?c.indexOf(b)>-1:c.length>0},getWaiRole:function(a){return b.trim((b.attr(a,"role")||"").replace("wairole:",""))},setWaiRole:function(a,d){b.attr(a,"role",d)},removeWaiRole:function(a,d){var c=b.attr(a,"role");c&&(d?(c=b.trim((" "+c+" ").replace(" "+d+" "," ")),b.attr(a,"role",c)):a.removeAttribute("role"))},hasWaiState:function(a,
b){return a.hasAttribute?a.hasAttribute("aria-"+b):!!a.getAttribute("aria-"+b)},getWaiState:function(a,b){return a.getAttribute("aria-"+b)||""},setWaiState:function(a,b,c){a.setAttribute("aria-"+b,c)},removeWaiState:function(a,b){a.removeAttribute("aria-"+b)}});return c});define("dijit/_base/window",["dojo","dijit","dojo/window"],function(b,c){c.getDocumentWindow=function(a){return b.window.get(a)};return c});
define("dijit/_base/popup",["dojo","dijit","dijit/_base/focus","dijit/_base/place","dijit/_base/window"],function(b,c){c.popup={_stack:[],_beginZIndex:1E3,_idGen:1,_createWrapper:function(a){var d=a.declaredClass?a._popupWrapper:a.parentNode&&b.hasClass(a.parentNode,"dijitPopup"),c=a.domNode||a;if(!d&&(d=b.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},b.body()),d.appendChild(c),c=c.style,c.display="",c.visibility="",c.position="",c.top="0px",a.declaredClass))a._popupWrapper=
d,b.connect(a,"destroy",function(){b.destroy(d);delete a._popupWrapper});return d},moveOffScreen:function(a){a=this._createWrapper(a);b.style(a,{visibility:"hidden",top:"-9999px",display:""})},hide:function(a){a=this._createWrapper(a);b.style(a,"display","none")},getTopPopup:function(){for(var a=this._stack,b=a.length-1;b>0&&a[b].parent===a[b-1].widget;b--);return a[b]},open:function(a){for(var d=this._stack,f=a.popup,e=a.orient||((a.parent?a.parent.isLeftToRight():b._isBodyLtr())?{BL:"TL",BR:"TR",
TL:"BL",TR:"BR"}:{BR:"TR",BL:"TL",TR:"BR",TL:"BL"}),g=a.around,h=a.around&&a.around.id?a.around.id+"_dropdown":"popup_"+this._idGen++;d.length&&(!a.parent||!b.isDescendant(a.parent.domNode,d[d.length-1].widget.domNode));)c.popup.close(d[d.length-1].widget);var i=this._createWrapper(f);b.attr(i,{id:h,style:{zIndex:this._beginZIndex+d.length},"class":"dijitPopup "+(f.baseClass||f["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:a.parent?a.parent.id:""});if((b.isIE||b.isMoz)&&!f.bgIframe)f.bgIframe=
new c.BackgroundIframe(i);e=g?c.placeOnScreenAroundElement(i,g,e,f.orient?b.hitch(f,"orient"):null):c.placeOnScreen(i,a,e=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],a.padding);i.style.display="";i.style.visibility="visible";f.domNode.style.visibility="visible";g=[];g.push(b.connect(i,"onkeypress",this,function(d){if(d.charOrCode==b.keys.ESCAPE&&a.onCancel)b.stopEvent(d),a.onCancel();else if(d.charOrCode===b.keys.TAB&&(b.stopEvent(d),(d=this.getTopPopup())&&d.onCancel))d.onCancel()}));f.onCancel&&
g.push(b.connect(f,"onCancel",a.onCancel));g.push(b.connect(f,f.onExecute?"onExecute":"onChange",this,function(){var a=this.getTopPopup();if(a&&a.onExecute)a.onExecute()}));d.push({widget:f,parent:a.parent,onExecute:a.onExecute,onCancel:a.onCancel,onClose:a.onClose,handlers:g});if(f.onOpen)f.onOpen(e);return e},close:function(a){for(var d=this._stack;a&&b.some(d,function(b){return b.widget==a})||!a&&d.length;){var c=d.pop(),e=c.widget,g=c.onClose;if(e.onClose)e.onClose();b.forEach(c.handlers,b.disconnect);
e&&e.domNode&&this.hide(e);g&&g()}}};c._frames=new function(){var a=[];this.pop=function(){var d;a.length?(d=a.pop(),d.style.display=""):(b.isIE<9?(d="<iframe src='"+(b.config.dojoBlankHtmlUrl||b.moduleUrl("dojo","resources/blank.html")+""||'javascript:""')+"' style='position: absolute; left: 0px; top: 0px;z-index: -1; filter:Alpha(Opacity=\"0\");'>",d=b.doc.createElement(d)):(d=b.create("iframe"),d.src='javascript:""',d.className="dijitBackgroundIframe",b.style(d,"opacity",0.1)),d.tabIndex=-1,c.setWaiRole(d,
"presentation"));return d};this.push=function(b){b.style.display="none";a.push(b)}};c.BackgroundIframe=function(a){if(!a.id)throw Error("no id");if(b.isIE||b.isMoz){var d=this.iframe=c._frames.pop();a.appendChild(d);b.isIE<7||b.isQuirks?(this.resize(a),this._conn=b.connect(a,"onresize",this,function(){this.resize(a)})):b.style(d,{width:"100%",height:"100%"})}};b.extend(c.BackgroundIframe,{resize:function(a){this.iframe&&b.style(this.iframe,{width:a.offsetWidth+"px",height:a.offsetHeight+"px"})},destroy:function(){if(this._conn)b.disconnect(this._conn),
this._conn=null;this.iframe&&(c._frames.push(this.iframe),delete this.iframe)}});return c.popup});define("dijit/_base","dojo,dijit,dijit/_base/focus,dijit/_base/manager,dijit/_base/place,dijit/_base/popup,dijit/_base/scroll,dijit/_base/sniff,dijit/_base/typematic,dijit/_base/wai,dijit/_base/window".split(","),function(b,c){return c._base});
define("dijit/_Widget",["dojo","dijit","dijit/_WidgetBase","dijit/_base"],function(b,c){b.connect(b,"_connect",function(a,d){a&&b.isFunction(a._onConnect)&&a._onConnect(d)});c._connectOnUseEventHandler=function(){};c._lastKeyDownNode=null;b.isIE?function(){var a=function(a){c._lastKeyDownNode=a.srcElement};b.doc.attachEvent("onkeydown",a);b.addOnWindowUnload(function(){b.doc.detachEvent("onkeydown",a)})}():b.doc.addEventListener("keydown",function(a){c._lastKeyDownNode=a.target},!0);(function(){b.declare("dijit._Widget",
c._WidgetBase,{_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:c._connectOnUseEventHandler,onDblClick:c._connectOnUseEventHandler,onKeyDown:c._connectOnUseEventHandler,onKeyPress:c._connectOnUseEventHandler,onKeyUp:c._connectOnUseEventHandler,onMouseDown:c._connectOnUseEventHandler,onMouseMove:c._connectOnUseEventHandler,onMouseOut:c._connectOnUseEventHandler,
onMouseOver:c._connectOnUseEventHandler,onMouseLeave:c._connectOnUseEventHandler,onMouseEnter:c._connectOnUseEventHandler,onMouseUp:c._connectOnUseEventHandler,create:function(a,d){this._deferredConnects=b.clone(this._deferredConnects);for(var f in this.attributeMap)delete this._deferredConnects[f];for(f in this._deferredConnects)this[f]!==c._connectOnUseEventHandler&&delete this._deferredConnects[f];this.inherited(arguments);if(this.domNode)for(f in this.params)this._onConnect(f)},_onConnect:function(a){a in
this._deferredConnects&&(this.connect(this[this._deferredConnects[a]||"domNode"],a.toLowerCase(),a),delete this._deferredConnects[a])},focused:!1,isFocusable:function(){return this.focus&&b.style(this.domNode,"display")!="none"},onFocus:function(){},onBlur:function(){},_onFocus:function(){this.onFocus()},_onBlur:function(){this.onBlur()},setAttribute:function(a,d){b.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(a,d)},attr:function(a,
d){if(b.config.isDebug){var c=arguments.callee._ach||(arguments.callee._ach={}),e=(arguments.callee.caller||"unknown caller").toString();c[e]||(b.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+e,"","2.0"),c[e]=!0)}return arguments.length>=2||typeof a==="object"?this.set.apply(this,arguments):this.get(a)},nodesWithKeyClick:["input","button"],connect:function(a,d,f){var e=b._connect,g=this.inherited(arguments,[a,d=="ondijitclick"?"onclick":d,f]);if(d==
"ondijitclick"&&b.indexOf(this.nodesWithKeyClick,a.nodeName.toLowerCase())==-1){var h=b.hitch(this,f);g.push(e(a,"onkeydown",this,function(d){if((d.keyCode==b.keys.ENTER||d.keyCode==b.keys.SPACE)&&!d.ctrlKey&&!d.shiftKey&&!d.altKey&&!d.metaKey)c._lastKeyDownNode=d.target,"openDropDown"in this&&a==this._buttonNode||d.preventDefault()}),e(a,"onkeyup",this,function(a){if((a.keyCode==b.keys.ENTER||a.keyCode==b.keys.SPACE)&&a.target==c._lastKeyDownNode&&!a.ctrlKey&&!a.shiftKey&&!a.altKey&&!a.metaKey)return c._lastKeyDownNode=
null,h(a)}))}return g},_onShow:function(){this.onShow()},onShow:function(){},onHide:function(){},onClose:function(){return!0}})})();return c._Widget});
define("dojo/string",["dojo"],function(b){b.getObject("string",!0,b);b.string.rep=function(b,a){if(a<=0||!b)return"";for(var d=[];;){a&1&&d.push(b);if(!(a>>=1))break;b+=b}return d.join("")};b.string.pad=function(c,a,d,f){d||(d="0");c=String(c);a=b.string.rep(d,Math.ceil((a-c.length)/d.length));return f?c+a:a+c};b.string.substitute=function(c,a,d,f){f=f||b.global;d=d?b.hitch(f,d):function(a){return a};return c.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(c,g,h){c=b.getObject(g,!1,a);h&&
(c=b.getObject(h,!1,f).call(f,c,g));return d(c,g).toString()})};b.string.trim=String.prototype.trim?b.trim:function(b){for(var b=b.replace(/^\s+/,""),a=b.length-1;a>=0;a--)if(/\S/.test(b.charAt(a))){b=b.substring(0,a+1);break}return b};return b.string});
define("dojo/cache",["dojo"],function(b){var c={};b.cache=function(a,d,f){if(typeof a=="string")var e=b.moduleUrl(a,d);else e=a,f=d;var e=e.toString(),g=f;f!=void 0&&!b.isString(f)&&(g="value"in f?f.value:void 0);f=f&&f.sanitize?!0:!1;if(typeof g=="string")g=c[e]=f?b.cache._sanitize(g):g;else if(g===null)delete c[e];else{if(!(e in c)){g=void 0;if(b.isFunction(require)&&b.isString(a))try{var h=(a?a.replace(/\./g,"/")+"/":"")+d,g=require("text!"+h)}catch(i){}typeof g==="undefined"&&(g=b._getText(e));
c[e]=f?b.cache._sanitize(g):g}g=c[e]}return g};b.cache._sanitize=function(a){if(a){var a=a.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,""),b=a.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);b&&(a=b[1])}else a="";return a};return b.cache});
define("dijit/form/_FormMixin",["dojo","dijit","dojo/window"],function(b,c){b.declare("dijit.form._FormMixin",null,{state:"",reset:function(){b.forEach(this.getDescendants(),function(a){a.reset&&a.reset()})},validate:function(){var a=!1;return b.every(b.map(this.getDescendants(),function(d){d._hasBeenBlurred=!0;var c=d.disabled||!d.validate||d.validate();!c&&!a&&(b.window.scrollIntoView(d.containerNode||d.domNode),d.focus(),a=!0);return c}),function(a){return a})},setValues:function(a){b.deprecated(this.declaredClass+
"::setValues() is deprecated. Use set('value', val) instead.","","2.0");return this.set("value",a)},_setValueAttr:function(a){var d={};b.forEach(this.getDescendants(),function(a){a.name&&(d[a.name]||(d[a.name]=[])).push(a)});for(var c in d)if(d.hasOwnProperty(c)){var e=d[c],g=b.getObject(c,!1,a);g!==void 0&&(b.isArray(g)||(g=[g]),typeof e[0].checked=="boolean"?b.forEach(e,function(a){a.set("value",b.indexOf(g,a.value)!=-1)}):e[0].multiple?e[0].set("value",g):b.forEach(e,function(a,b){a.set("value",
g[b])}))}},getValues:function(){b.deprecated(this.declaredClass+"::getValues() is deprecated. Use get('value') instead.","","2.0");return this.get("value")},_getValueAttr:function(){var a={};b.forEach(this.getDescendants(),function(d){var c=d.name;if(c&&!d.disabled){var e=d.get("value");typeof d.checked=="boolean"?/Radio/.test(d.declaredClass)?e!==!1?b.setObject(c,e,a):(e=b.getObject(c,!1,a),e===void 0&&b.setObject(c,null,a)):(d=b.getObject(c,!1,a),d||(d=[],b.setObject(c,d,a)),e!==!1&&d.push(e)):
(d=b.getObject(c,!1,a),typeof d!="undefined"?b.isArray(d)?d.push(e):b.setObject(c,[d,e],a):b.setObject(c,e,a))}});return a},isValid:function(){return this.state==""},onValidStateChange:function(){},_getState:function(){var a=b.map(this._descendants,function(a){return a.get("state")||""});return b.indexOf(a,"Error")>=0?"Error":b.indexOf(a,"Incomplete")>=0?"Incomplete":""},disconnectChildren:function(){b.forEach(this._childConnections||[],b.hitch(this,"disconnect"));b.forEach(this._childWatches||[],
function(a){a.unwatch()})},connectChildren:function(a){var d=this;this.disconnectChildren();this._descendants=this.getDescendants();a=a?function(a,b){d[a]=b}:b.hitch(this,"_set");a("value",this.get("value"));a("state",this._getState());var c=this._childConnections=[],e=this._childWatches=[];b.forEach(b.filter(this._descendants,function(a){return a.validate}),function(a){b.forEach(["state","disabled"],function(b){e.push(a.watch(b,function(){d.set("state",d._getState())}))})});var g=function(){d._onChangeDelayTimer&&
clearTimeout(d._onChangeDelayTimer);d._onChangeDelayTimer=setTimeout(function(){delete d._onChangeDelayTimer;d._set("value",d.get("value"))},10)};b.forEach(b.filter(this._descendants,function(a){return a.onChange}),function(a){c.push(d.connect(a,"onChange",g));e.push(a.watch("disabled",g))})},startup:function(){this.inherited(arguments);this.connectChildren(!0);this.watch("state",function(a,b,c){this.onValidStateChange(c=="")})},destroy:function(){this.disconnectChildren();this.inherited(arguments)}});
return c.form._FormMixin});
define("dijit/_DialogMixin",["dojo","dijit","dijit/_Widget"],function(b,c){b.declare("dijit._DialogMixin",null,{attributeMap:c._Widget.prototype.attributeMap,execute:function(){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.get("value"))},_getFocusItems:function(){var a=c._getTabNavigable(this.containerNode);this._firstFocusItem=a.lowest||a.first||this.closeButtonNode||this.domNode;this._lastFocusItem=a.last||a.highest||this._firstFocusItem}});
return c._DialogMixin});
(function(){var b=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],c=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,a=/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,d=typeof location!=="undefined"&&location.href,f=d&&location.protocol&&location.protocol.replace(/\:/,""),e=d&&location.hostname,g=d&&(location.port||void 0),h=[];define("text",[],function(){var i,j,k;typeof window!=="undefined"&&window.navigator&&window.document?j=function(a,b){var d=i.createXhr();d.open("GET",a,!0);d.onreadystatechange=
function(){d.readyState===4&&b(d.responseText)};d.send(null)}:typeof process!=="undefined"&&process.versions&&process.versions.node?(k=require.nodeRequire("fs"),j=function(a,b){var d=k.readFileSync(a,"utf8");d.indexOf("\ufeff")===0&&(d=d.substring(1));b(d)}):typeof Packages!=="undefined"&&(j=function(a,b){var d=new java.io.File(a),c=java.lang.System.getProperty("line.separator"),d=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(d),"utf-8")),e,f,g="";try{e=new java.lang.StringBuffer;
(f=d.readLine())&&f.length()&&f.charAt(0)===65279&&(f=f.substring(1));for(e.append(f);(f=d.readLine())!==null;)e.append(c),e.append(f);g=String(e.toString())}finally{d.close()}b(g)});return i={version:"1.0.7",strip:function(b){if(b){var b=b.replace(c,""),d=b.match(a);d&&(b=d[1])}else b="";return b},jsEscape:function(a){return a.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")},createXhr:function(){var a,d,
c;if(typeof XMLHttpRequest!=="undefined")return new XMLHttpRequest;else for(d=0;d<3;d++){c=b[d];try{a=new ActiveXObject(c)}catch(e){}if(a){b=[c];break}}if(!a)throw Error("createXhr(): XMLHttpRequest not available");return a},get:j,parseName:function(a){var b=!1,d=a.indexOf("."),c=a.substring(0,d),a=a.substring(d+1,a.length),d=a.indexOf("!");d!==-1&&(b=a.substring(d+1,a.length),b=b==="strip",a=a.substring(0,d));return{moduleName:c,ext:a,strip:b}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(a,
b,d,c){var e=i.xdRegExp.exec(a),f;if(!e)return!0;a=e[2];e=e[3];e=e.split(":");f=e[1];e=e[0];return(!a||a===b)&&(!e||e===d)&&(!f&&!e||f===c)},finishLoad:function(a,b,d,c,e){d=b?i.strip(d):d;e.isBuild&&(h[a]=d);c(d)},load:function(a,b,c,h){if(h.isBuild&&!h.inlineText)c();else{var k=i.parseName(a),j=k.moduleName+"."+k.ext,s=b.toUrl(j),q=h&&h.text&&h.text.useXhr||i.useXhr;!d||q(s,f,e,g)?i.get(s,function(b){i.finishLoad(a,k.strip,b,c,h)}):b([j],function(a){i.finishLoad(k.moduleName+"."+k.ext,k.strip,a,
c,h)})}},write:function(a,b,d){if(b in h){var c=i.jsEscape(h[b]);d.asModule(a+"!"+b,"define(function () { return '"+c+"';});\n")}},writeFile:function(a,b,d,c,e){var b=i.parseName(b),f=b.moduleName+"."+b.ext,g=d.toUrl(b.moduleName+"."+b.ext)+".js";i.load(f,d,function(){var b=function(a){return c(g,a)};b.asModule=function(a,b){return c.asModule(a,g,b)};i.write(a,f,b,e)},e)}}})})();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("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("text!dijit/form/templates/ValidationTextBox.html",[],function(){return'<div class="dijit dijitReset dijitInlineTable dijitLeft"\n\tid="widget_${id}" role="presentation"\n\t><div class=\'dijitReset dijitValidationContainer\'\n\t\t><input class="dijitReset dijitInputField dijitValidationIcon dijitValidationInner" value="&#935; " type="text" tabIndex="-1" readonly="readonly" role="presentation"\n\t/></div\n\t><div class="dijitReset dijitInputField dijitInputContainer"\n\t\t><input class="dijitReset dijitInputInner" dojoAttachPoint=\'textbox,focusNode\' autocomplete="off"\n\t\t\t${!nameAttrSetting} type=\'${type}\'\n\t/></div\n></div>'});
define("dojo/i18n",["require","dojo"],function(b,c){c.getObject("i18n",!0,c);c.i18n.getLocalization=c.i18n.getLocalization||function(a,d,f){var f=c.i18n.normalizeLocale(f),e=f.split("-"),g=[a,"nls",d].join(".");if(typeof c.global.require!=="undefined"){var h=b("i18n!"+[a.replace(/\./g,"/"),"nls",d].join("/"));(c._loadedModules[g]=c._loadedModules[g]||{})[e.join("_")]=h.root||h}if(g=c._loadedModules[g]){for(var i,h=e.length;h>0;h--){var j=e.slice(0,h).join("_");if(g[j]){i=g[j];break}}if(!i)i=g.ROOT;
if(i)return a=function(){},a.prototype=i,new a}throw Error("Bundle not found: "+d+" in "+a+" , locale="+f);};c.i18n.normalizeLocale=function(a){a=a?a.toLowerCase():c.locale;a=="root"&&(a="ROOT");return a};c.i18n._requireLocalization=function(a,b,f,e){var f=c.i18n.normalizeLocale(f),g=[a,"nls",b].join("."),h="";if(e){for(var i=e.split(","),j=0;j<i.length;j++)f.indexOf(i[j])==0&&i[j].length>h.length&&(h=i[j]);h||(h="ROOT")}var i=e?h:f,k=c._loadedModules[g],j=null;if(k){if(c.config.localizationComplete&&
k._built)return;j=i.replace(/-/g,"_");j=c._loadedModules[g+"."+j]}if(!j){var k=c.provide(g),l=c._getModuleSymbols(a).concat("nls").join("/"),m;c.i18n._searchLocalePath(i,e,function(a){var f=a.replace(/-/g,"_"),h=g+"."+f,i=!1;c._loadedModules[h]?i=!0:(c.provide(h),h=[l],a!="ROOT"&&h.push(a),h.push(b),a=h.join("/")+".js",i=c._loadPath(a,null,function(a){var a=a.root||a,b=function(){};b.prototype=m;k[f]=new b;for(var d in a)k[f][d]=a[d]}));i&&k[f]?m=k[f]:k[f]=m;if(e)return!0})}e&&f!=h&&(k[f.replace(/-/g,
"_")]=k[h.replace(/-/g,"_")])};(function(){var a=c.config.extraLocale;if(a){!a instanceof Array&&(a=[a]);var b=c.i18n._requireLocalization;c.i18n._requireLocalization=function(c,e,g,h){b(c,e,g,h);if(!g)for(g=0;g<a.length;g++)b(c,e,a[g],h)}}})();c.i18n._searchLocalePath=function(a,b,f){for(var a=c.i18n.normalizeLocale(a),e=a.split("-"),a=[],g=e.length;g>0;g--)a.push(e.slice(0,g).join("-"));a.push(!1);b&&a.reverse();for(b=a.length-1;b>=0;b--)if(f(a[b]||"ROOT"))break};c.i18n._preloadLocalizations=function(a,
b){function f(e){e=c.i18n.normalizeLocale(e);c.i18n._searchLocalePath(e,!0,function(e){for(var f=0;f<b.length;f++)if(b[f]==e)return c.require(a+"_"+e),!0;return!1})}f();for(var e=c.config.extraLocale||[],g=0;g<e.length;g++)f(e[g])};return c.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("dijit/_CssStateMixin",["dojo","dijit"],function(b,c){b.declare("dijit._CssStateMixin",[],{cssStateNodes:{},hovering:!1,active:!1,_applyAttributes:function(){this.inherited(arguments);b.forEach(["onmouseenter","onmouseleave","onmousedown"],function(a){this.connect(this.domNode,a,"_cssMouseEvent")},this);b.forEach("disabled,readOnly,checked,selected,focused,state,hovering,active".split(","),function(a){this.watch(a,b.hitch(this,"_setStateClass"))},this);for(var a in this.cssStateNodes)this._trackMouseState(this[a],
this.cssStateNodes[a]);this._setStateClass()},_cssMouseEvent:function(a){if(!this.disabled)switch(a.type){case "mouseenter":case "mouseover":this._set("hovering",!0);this._set("active",this._mouseDown);break;case "mouseleave":case "mouseout":this._set("hovering",!1);this._set("active",!1);break;case "mousedown":this._set("active",!0);this._mouseDown=!0;var d=this.connect(b.body(),"onmouseup",function(){this._mouseDown=!1;this._set("active",!1);this.disconnect(d)})}},_setStateClass:function(){function a(a){d=
d.concat(b.map(d,function(b){return b+a}),"dijit"+a)}var d=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 c=this.stateNode||this.domNode,e={};b.forEach(c.className.split(" "),function(a){e[a]=!0});"_stateClasses"in this&&b.forEach(this._stateClasses,function(a){delete e[a]});
b.forEach(d,function(a){e[a]=!0});var g=[],h;for(h in e)g.push(h);c.className=g.join(" ");this._stateClasses=d},_trackMouseState:function(a,d){function c(){var f="disabled"in i&&i.disabled||"readonly"in i&&i.readonly;b.toggleClass(a,d+"Hover",e&&!g&&!f);b.toggleClass(a,d+"Active",g&&!f);b.toggleClass(a,d+"Focused",h&&!f)}var e=!1,g=!1,h=!1,i=this,j=b.hitch(this,"connect",a);j("onmouseenter",function(){e=!0;c()});j("onmouseleave",function(){g=e=!1;c()});j("onmousedown",function(){g=!0;c()});j("onmouseup",
function(){g=!1;c()});j("onfocus",function(){h=!0;c()});j("onblur",function(){h=!1;c()});this.watch("disabled",c);this.watch("readOnly",c)}});return c._CssStateMixin});define("text!dijit/templates/Tooltip.html",[],function(){return'<div class="dijitTooltip dijitTooltipLeft" id="dojoTooltip"\n\t><div class="dijitTooltipContainer dijitTooltipContents" dojoAttachPoint="containerNode" role=\'alert\'></div\n\t><div class="dijitTooltipConnector" dojoAttachPoint="connectorNode"></div\n></div>'});
define("dijit/form/nls/validate",{root:{invalidMessage:"The value entered is not valid.",missingMessage:"This value is required.",rangeMessage:"This value is out of range."},zh:!0,"zh-tw":!0,tr:!0,th:!0,sv:!0,sl:!0,sk:!0,ru:!0,ro:!0,pt:!0,"pt-pt":!0,pl:!0,nl:!0,nb:!0,ko:!0,kk:!0,ja:!0,it:!0,hu:!0,he:!0,fr:!0,fi:!0,es:!0,el:!0,de:!0,da:!0,cs:!0,ca:!0,ar:!0});
define("orion/PageUtil",[],function(){return{matchResourceParameters:function(b){var b=b||window.location.toString(),c={resource:""},a=b.indexOf("#");if(a!==-1&&(b=b.substring(a+1),b.length!==0)){b=b.split(",");c.resource=decodeURIComponent(b[0]);for(a=1;a<b.length;a++){var d=b[a].split("="),f=decodeURIComponent(d[0]),d=d.length===2?decodeURIComponent(d[1]):null;d!==null&&f!=="resource"&&(c[f]=d)}}return c}}});
define("orion/navigationUtils",["dojo"],function(b){function c(d,c,e,g){!a&&d&&(e?(d.push({domNode:c,widget:e,onClick:g}),b.attr(e,"tabIndex",-1)):(d.push({domNode:c}),b.attr(c,"tabIndex",-1),b.style(c,"outline","none")))}var a=navigator.userAgent.indexOf("iPad")!==-1;return{addNavGrid:function(a,b,e,g,h){a&&(a=a.getGridNavHolder(b,!0))&&c(a,e,g,h)},generateNavGrid:c,removeNavGrid:function(a,b){if(a)for(var c=0;c<a.length;c++)if(a[c].domNode===b){a.splice(c,1);break}}}});
define("text!dijit/templates/Menu.html",[],function(){return'<table class="dijit dijitMenu dijitMenuPassive dijitReset dijitMenuTable" role="menu" tabIndex="${tabIndex}" dojoAttachEvent="onkeypress:_onKeyPress" cellspacing="0">\n\t<tbody class="dijitReset" dojoAttachPoint="containerNode"></tbody>\n</table>'});
define("dijit/_Container",["dojo","dijit"],function(b,c){b.declare("dijit._Container",null,{isContainer:!0,buildRendering:function(){this.inherited(arguments);if(!this.containerNode)this.containerNode=this.domNode},addChild:function(a,d){var c=this.containerNode;if(d&&typeof d=="number"){var e=this.getChildren();if(e&&e.length>=d)c=e[d-1].domNode,d="after"}b.place(a.domNode,c,d);this._started&&!a._started&&a.startup()},removeChild:function(a){typeof a=="number"&&(a=this.getChildren()[a]);if(a)(a=
a.domNode)&&a.parentNode&&a.parentNode.removeChild(a)},hasChildren:function(){return this.getChildren().length>0},destroyDescendants:function(a){b.forEach(this.getChildren(),function(b){b.destroyRecursive(a)})},_getSiblingOfChild:function(a,b){var f=a.domNode,e=b>0?"nextSibling":"previousSibling";do f=f[e];while(f&&(f.nodeType!=1||!c.byNode(f)));return f&&c.byNode(f)},getIndexOfChild:function(a){return b.indexOf(this.getChildren(),a)},startup:function(){this._started||(b.forEach(this.getChildren(),
function(a){a.startup()}),this.inherited(arguments))}});return c._Container});
define("dijit/_KeyNavContainer",["dojo","dijit","dijit/_Container"],function(b,c){b.declare("dijit._KeyNavContainer",c._Container,{tabIndex:"0",_keyNavCodes:{},connectKeyNavHandlers:function(a,d){var c=this._keyNavCodes={},e=b.hitch(this,this.focusPrev),g=b.hitch(this,this.focusNext);b.forEach(a,function(a){c[a]=e});b.forEach(d,function(a){c[a]=g});c[b.keys.HOME]=b.hitch(this,"focusFirstChild");c[b.keys.END]=b.hitch(this,"focusLastChild");this.connect(this.domNode,"onkeypress","_onContainerKeypress");
this.connect(this.domNode,"onfocus","_onContainerFocus")},startupKeyNavChildren:function(){b.forEach(this.getChildren(),b.hitch(this,"_startupChild"))},addChild:function(a,b){c._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(a)},focus:function(){this.focusFirstChild()},focusFirstChild:function(){var a=this._getFirstFocusableChild();a&&this.focusChild(a)},focusLastChild:function(){var a=this._getLastFocusableChild();a&&this.focusChild(a)},focusNext:function(){this.focusChild(this._getNextFocusableChild(this.focusedChild,
1))},focusPrev:function(){this.focusChild(this._getNextFocusableChild(this.focusedChild,-1),!0)},focusChild:function(a,b){this.focusedChild&&a!==this.focusedChild&&this._onChildBlur(this.focusedChild);a.set("tabIndex",this.tabIndex);a.focus(b?"end":"start");this._set("focusedChild",a)},_startupChild:function(a){a.set("tabIndex","-1");this.connect(a,"_onFocus",function(){a.set("tabIndex",this.tabIndex)});this.connect(a,"_onBlur",function(){a.set("tabIndex","-1")})},_onContainerFocus:function(a){a.target===
this.domNode&&(this.focusFirstChild(),b.attr(this.domNode,"tabIndex","-1"))},_onBlur:function(a){this.tabIndex&&b.attr(this.domNode,"tabIndex",this.tabIndex);this.inherited(arguments)},_onContainerKeypress:function(a){if(!a.ctrlKey&&!a.altKey){var d=this._keyNavCodes[a.charOrCode];d&&(d(),b.stopEvent(a))}},_onChildBlur:function(){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1)},_getLastFocusableChild:function(){return this._getNextFocusableChild(null,-1)},_getNextFocusableChild:function(a,
b){a&&(a=this._getSiblingOfChild(a,b));for(var c=this.getChildren(),e=0;e<c.length;e++){a||(a=c[b>0?0:c.length-1]);if(a.isFocusable())return a;a=this._getSiblingOfChild(a,b)}return null}});return c._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(b,c){b.declare("dijit._HasDropDown",null,{_buttonNode:null,_arrowWrapperNode:null,_popupStateNode:null,_aroundNode:null,dropDown:null,autoWidth:!0,forceWidth:!1,maxHeight:0,dropDownPosition:["below","above"],_stopClickEvents:!0,_onDropDownMouseDown:function(a){if(!this.disabled&&!this.readOnly)b.stopEvent(a),this._docHandler=this.connect(b.doc,"onmouseup","_onDropDownMouseUp"),this.toggleDropDown()},_onDropDownMouseUp:function(a){a&&
this._docHandler&&this.disconnect(this._docHandler);var d=this.dropDown,f=!1;if(a&&this._opened){var e=b.position(this._buttonNode,!0);if(!(a.pageX>=e.x&&a.pageX<=e.x+e.w)||!(a.pageY>=e.y&&a.pageY<=e.y+e.h)){for(e=a.target;e&&!f;)b.hasClass(e,"dijitPopup")?f=!0:e=e.parentNode;if(f){e=a.target;if(d.onItemClick){for(var g;e&&!(g=c.byNode(e));)e=e.parentNode;if(g&&g.onClick&&g.getParent)g.getParent().onItemClick(g,a)}return}}}this._opened&&d.focus&&d.autoFocus!==!1&&window.setTimeout(b.hitch(d,"focus"),
1)},_onDropDownClick:function(a){this._stopClickEvents&&b.stopEvent(a)},buildRendering:function(){this.inherited(arguments);this._buttonNode=this._buttonNode||this.focusNode||this.domNode;this._popupStateNode=this._popupStateNode||this.focusNode||this._buttonNode;var a={after:this.isLeftToRight()?"Right":"Left",before:this.isLeftToRight()?"Left":"Right",above:"Up",below:"Down",left:"Left",right:"Right"}[this.dropDownPosition[0]]||this.dropDownPosition[0]||"Down";b.addClass(this._arrowWrapperNode||
this._buttonNode,"dijit"+a+"ArrowButton")},postCreate:function(){this.inherited(arguments);this.connect(this._buttonNode,"onmousedown","_onDropDownMouseDown");this.connect(this._buttonNode,"onclick","_onDropDownClick");this.connect(this.focusNode,"onkeypress","_onKey");this.connect(this.focusNode,"onkeyup","_onKeyUp")},destroy:function(){this.dropDown&&(this.dropDown._destroyed||this.dropDown.destroyRecursive(),delete this.dropDown);this.inherited(arguments)},_onKey:function(a){if(!this.disabled&&
!this.readOnly){var d=this.dropDown,c=a.target;if(d&&this._opened&&d.handleKey&&d.handleKey(a)===!1)b.stopEvent(a);else if(d&&this._opened&&a.charOrCode==b.keys.ESCAPE)this.closeDropDown(),b.stopEvent(a);else if(!this._opened&&(a.charOrCode==b.keys.DOWN_ARROW||(a.charOrCode==b.keys.ENTER||a.charOrCode==" ")&&((c.tagName||"").toLowerCase()!=="input"||c.type&&c.type.toLowerCase()!=="text")))this._toggleOnKeyUp=!0,b.stopEvent(a)}},_onKeyUp:function(){if(this._toggleOnKeyUp){delete this._toggleOnKeyUp;
this.toggleDropDown();var a=this.dropDown;a&&a.focus&&setTimeout(b.hitch(a,"focus"),1)}},_onBlur:function(){this.closeDropDown(c._curFocus&&this.dropDown&&b.isDescendant(c._curFocus,this.dropDown.domNode));this.inherited(arguments)},isLoaded:function(){return!0},loadDropDown:function(a){a()},toggleDropDown:function(){!this.disabled&&!this.readOnly&&(this._opened?this.closeDropDown():this.isLoaded()?this.openDropDown():this.loadDropDown(b.hitch(this,"openDropDown")))},openDropDown:function(){var a=
this.dropDown,d=a.domNode,f=this._aroundNode||this.domNode,e=this;if(!this._preparedNode){this._preparedNode=!0;if(d.style.width)this._explicitDDWidth=!0;if(d.style.height)this._explicitDDHeight=!0}if(this.maxHeight||this.forceWidth||this.autoWidth){var g={display:"",visibility:"hidden"};if(!this._explicitDDWidth)g.width="";if(!this._explicitDDHeight)g.height="";b.style(d,g);g=this.maxHeight;if(g==-1)var g=b.window.getBox(),h=b.position(f,!1),g=Math.floor(Math.max(h.y,g.h-(h.y+h.h)));a.startup&&!a._started&&
a.startup();c.popup.moveOffScreen(a);var h=b._getMarginSize(d),i=g&&h.h>g;b.style(d,{overflowX:"hidden",overflowY:i?"auto":"hidden"});i?(h.h=g,"w"in h&&(h.w+=16)):delete h.h;this.forceWidth?h.w=f.offsetWidth:this.autoWidth?h.w=Math.max(h.w,f.offsetWidth):delete h.w;b.isFunction(a.resize)?a.resize(h):b.marginBox(d,h)}a=c.popup.open({parent:this,popup:a,around:f,orient:c.getPopupAroundAlignment(this.dropDownPosition&&this.dropDownPosition.length?this.dropDownPosition:["below"],this.isLeftToRight()),
onExecute:function(){e.closeDropDown(!0)},onCancel:function(){e.closeDropDown(!0)},onClose:function(){b.attr(e._popupStateNode,"popupActive",!1);b.removeClass(e._popupStateNode,"dijitHasDropDownOpen");e._opened=!1}});b.attr(this._popupStateNode,"popupActive","true");b.addClass(e._popupStateNode,"dijitHasDropDownOpen");this._opened=!0;return a},closeDropDown:function(a){if(this._opened)a&&this.focus(),c.popup.close(this.dropDown),this._opened=!1}});return c._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(b,c){b.declare("dijit._Contained",null,{getParent:function(){var a=c.getEnclosingWidget(this.domNode.parentNode);return a&&a.isContainer?a:null},_getSibling:function(a){var b=this.domNode;do b=b[a+"Sibling"];while(b&&b.nodeType!=1);return b&&c.byNode(b)},getPreviousSibling:function(){return this._getSibling("previous")},getNextSibling:function(){return this._getSibling("next")},getIndexInParent:function(){var a=this.getParent();return!a||!a.getIndexOfChild?
-1:a.getIndexOfChild(this)}});return c._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("orion/dialogs",[],function(){function b(b){this._serviceRegistry=b;this._serviceRegistration=b.registerService("orion.page.dialog",this)}b.prototype={confirm:function(b,a){a(window.confirm(b))},openFiles:function(){}};b.prototype.constructor=b;return{DialogService:b}});
define("orion/selection",["dojo"],function(b){function c(a,b){b||(b="orion.page.selection");this._serviceRegistry=a;this._serviceRegistration=a.registerService(b,this);this._selections=[]}c.prototype={getSelection:function(a){a(this._getSingleSelection())},getSelections:function(a){a(this._selections)},_getSingleSelection:function(){return this._selections&&this._selections.length>0?this._selections[0]:null},setSelections:function(a){this._selections=b.isArray(a)?a:a?[a]:null;this._serviceRegistration.dispatchEvent("selectionChanged",
this._getSingleSelection(),this._selections)}};c.prototype.constructor=c;return{Selection:c}});define("orion/navigate/nls/messages",["orion/i18n!orion/navigate/nls/messages"],function(b){var c={root:!0};Object.keys(b).forEach(function(a){typeof c[a]==="undefined"&&(c[a]=b[a])});return c});
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("dojo/date",["dojo"],function(b){b.getObject("date",!0,b);b.date.getDaysInMonth=function(c){var a=c.getMonth(),d=[31,28,31,30,31,30,31,31,30,31,30,31];return a==1&&b.date.isLeapYear(c)?29:d[a]};b.date.isLeapYear=function(b){b=b.getFullYear();return!(b%400)||!(b%4)&&!!(b%100)};b.date.getTimezoneName=function(b){var a=b.toString(),d="",f=a.indexOf("(");if(f>-1)d=a.substring(++f,a.indexOf(")"));else if(f=/([A-Z\/]+) \d{4}$/,a=a.match(f))d=a[1];else if(a=b.toLocaleString(),f=/ ([A-Z\/]+)$/,a=a.match(f))d=
a[1];return d=="AM"||d=="PM"?"":d};b.date.compare=function(b,a,d){b=new Date(+b);a=new Date(+(a||new Date));d=="date"?(b.setHours(0,0,0,0),a.setHours(0,0,0,0)):d=="time"&&(b.setFullYear(0,0,0),a.setFullYear(0,0,0));return b>a?1:b<a?-1:0};b.date.add=function(b,a,d){var f=new Date(+b),e=!1,g="Date";switch(a){case "day":break;case "weekday":var h;(a=d%5)?h=parseInt(d/5):(a=d>0?5:-5,h=d>0?(d-5)/5:(d+5)/5);var i=b.getDay(),j=0;i==6&&d>0?j=1:i==0&&d<0&&(j=-1);i+=a;if(i==0||i==6)j=d>0?2:-2;d=7*h+a+j;break;
case "year":g="FullYear";e=!0;break;case "week":d*=7;break;case "quarter":d*=3;case "month":e=!0;g="Month";break;default:g="UTC"+a.charAt(0).toUpperCase()+a.substring(1)+"s"}if(g)f["set"+g](f["get"+g]()+d);e&&f.getDate()<b.getDate()&&f.setDate(0);return f};b.date.difference=function(c,a,d){var a=a||new Date,d=d||"day",f=a.getFullYear()-c.getFullYear(),e=1;switch(d){case "quarter":c=c.getMonth();a=a.getMonth();c=Math.floor(c/3)+1;a=Math.floor(a/3)+1;a+=f*4;e=a-c;break;case "weekday":f=Math.round(b.date.difference(c,
a,"day"));d=parseInt(b.date.difference(c,a,"week"));if(f%7==0)f=d*5;else{var e=0,g=c.getDay(),h=a.getDay(),d=parseInt(f/7),a=f%7,c=new Date(c);c.setDate(c.getDate()+d*7);c=c.getDay();if(f>0)switch(!0){case g==6:e=-1;break;case g==0:e=0;break;case h==6:e=-1;break;case h==0:e=-2;break;case c+a>5:e=-2}else if(f<0)switch(!0){case g==6:e=0;break;case g==0:e=1;break;case h==6:e=2;break;case h==0:e=1;break;case c+a<0:e=2}f+=e;f-=d*2}e=f;break;case "year":e=f;break;case "month":e=a.getMonth()-c.getMonth()+
f*12;break;case "week":e=parseInt(b.date.difference(c,a,"day")/7);break;case "day":e/=24;case "hour":e/=60;case "minute":e/=60;case "second":e/=1E3;case "millisecond":e*=a.getTime()-c.getTime()}return Math.round(e)};return b.date});
define("dojo/cldr/supplemental",["dojo","dojo/i18n"],function(b){b.getObject("cldr.supplemental",!0,b);b.cldr.supplemental.getFirstDayOfWeek=function(c){c={mv:5,ae:6,af:6,bh:6,dj:6,dz:6,eg:6,er:6,et:6,iq:6,ir:6,jo:6,ke:6,kw:6,ly:6,ma:6,om:6,qa:6,sa:6,sd:6,so:6,sy:6,tn:6,ye:6,ar:0,as:0,az:0,bw:0,ca:0,cn:0,fo:0,ge:0,gl:0,gu:0,hk:0,il:0,"in":0,jm:0,jp:0,kg:0,kr:0,la:0,mh:0,mn:0,mo:0,mp:0,mt:0,nz:0,ph:0,pk:0,sg:0,th:0,tt:0,tw:0,um:0,us:0,uz:0,vi:0,zw:0}[b.cldr.supplemental._region(c)];return c===void 0?
1:c};b.cldr.supplemental._region=function(c){var c=b.i18n.normalizeLocale(c),c=c.split("-"),a=c[1];a?a.length==4&&(a=c[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"}[c[0]];return a};b.cldr.supplemental.getWeekend=function(c){var a=b.cldr.supplemental._region(c),c={"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];c===void 0&&(c=6);a===void 0&&(a=0);return{start:c,end:a}};return b.cldr.supplemental});
define("dojo/regexp",["dojo"],function(b){b.getObject("regexp",!0,b);b.regexp.escapeString=function(b,a){return b.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(b){return a&&a.indexOf(b)!=-1?b:"\\"+b})};b.regexp.buildGroupRE=function(c,a,d){if(!(c instanceof Array))return a(c);for(var f=[],e=0;e<c.length;e++)f.push(a(c[e]));return b.regexp.group(f.join("|"),d)};b.regexp.group=function(b,a){return"("+(a?"?:":"")+b+")"};return b.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(b){b.getObject("date.locale",!0,b);(function(){function c(a,d,c,h){return h.replace(/([a-z])\1*/ig,function(i){var j,k,l=i.charAt(0),i=i.length,m=["abbr","wide","narrow"];switch(l){case "G":j=d[i<4?"eraAbbr":"eraNames"][a.getFullYear()<0?0:1];break;case "y":j=a.getFullYear();switch(i){case 1:break;case 2:if(!c.fullYear){j=String(j);j=j.substr(j.length-
2);break}default:k=!0}break;case "Q":case "q":j=Math.ceil((a.getMonth()+1)/3);k=!0;break;case "M":j=a.getMonth();i<3?(j+=1,k=!0):(l=["months-format",m[i-3]].join("-"),j=d[l][j]);break;case "w":j=b.date.locale._getWeekOfYear(a,0);k=!0;break;case "d":j=a.getDate();k=!0;break;case "D":j=b.date.locale._getDayOfYear(a);k=!0;break;case "E":j=a.getDay();i<3?(j+=1,k=!0):(l=["days-format",m[i-3]].join("-"),j=d[l][j]);break;case "a":j=a.getHours()<12?"am":"pm";j=c[j]||d["dayPeriods-format-wide-"+j];break;case "h":case "H":case "K":case "k":k=
a.getHours();switch(l){case "h":j=k%12||12;break;case "H":j=k;break;case "K":j=k%12;break;case "k":j=k||24}k=!0;break;case "m":j=a.getMinutes();k=!0;break;case "s":j=a.getSeconds();k=!0;break;case "S":j=Math.round(a.getMilliseconds()*Math.pow(10,i-3));k=!0;break;case "v":case "z":if(j=b.date.locale._getZone(a,!0,c))break;i=4;case "Z":j=b.date.locale._getZone(a,!1,c);j=[j<=0?"+":"-",b.string.pad(Math.floor(Math.abs(j)/60),2),b.string.pad(Math.abs(j)%60,2)];i==4&&(j.splice(0,0,"GMT"),j.splice(3,0,":"));
j=j.join("");break;default:throw Error("dojo.date.locale.format: invalid pattern char: "+h);}k&&(j=b.string.pad(j,i));return j})}function a(a,d,c,h){var i=function(a){return a},d=d||i,c=c||i,h=h||i,j=a.match(/(''|[^'])+/g),k=a.charAt(0)=="'";b.forEach(j,function(a,b){a?(j[b]=(k?c:d)(a.replace(/''/g,"'")),k=!k):j[b]=""});return h(j.join(""))}function d(a,d,c,h){h=b.regexp.escapeString(h);c.strict||(h=h.replace(" a"," ?a"));return h.replace(/([a-z])\1*/ig,function(b){var h;h=b.charAt(0);var k=b.length,
l="",m="";c.strict?(k>1&&(l="0{"+(k-1)+"}"),k>2&&(m="0{"+(k-2)+"}")):(l="0?",m="0{0,2}");switch(h){case "y":h="\\d{2,4}";break;case "M":h=k>2?"\\S+?":"1[0-2]|"+l+"[1-9]";break;case "D":h="[12][0-9][0-9]|3[0-5][0-9]|36[0-6]|"+m+"[1-9][0-9]|"+l+"[1-9]";break;case "d":h="3[01]|[12]\\d|"+l+"[1-9]";break;case "w":h="[1-4][0-9]|5[0-3]|"+l+"[1-9]";break;case "E":h="\\S+";break;case "h":h="1[0-2]|"+l+"[1-9]";break;case "k":h="1[01]|"+l+"\\d";break;case "H":h="1\\d|2[0-3]|"+l+"\\d";break;case "K":h="1\\d|2[0-4]|"+
l+"[1-9]";break;case "m":case "s":h="[0-5]\\d";break;case "S":h="\\d{"+k+"}";break;case "a":k=c.am||d["dayPeriods-format-wide-am"];l=c.pm||d["dayPeriods-format-wide-pm"];h=k+"|"+l;c.strict||(k!=k.toLowerCase()&&(h+="|"+k.toLowerCase()),l!=l.toLowerCase()&&(h+="|"+l.toLowerCase()),h.indexOf(".")!=-1&&(h+="|"+h.replace(/\./g,"")));h=h.replace(/\./g,"\\.");break;default:h=".*"}a&&a.push(b);return"("+h+")"}).replace(/[\xa0 ]/g,"[\\s\\xa0]")}b.date.locale._getZone=function(a,d){return d?b.date.getTimezoneName(a):
a.getTimezoneOffset()};b.date.locale.format=function(d,e){var e=e||{},g=b.i18n.normalizeLocale(e.locale),h=e.formatLength||"short",g=b.date.locale._getGregorianBundle(g),i=[],j=b.hitch(this,c,d,g,e);if(e.selector=="year")return a(g["dateFormatItem-yyyy"]||"yyyy",j);var k;e.selector!="date"&&(k=e.timePattern||g["timeFormat-"+h])&&i.push(a(k,j));e.selector!="time"&&(k=e.datePattern||g["dateFormat-"+h])&&i.push(a(k,j));return i.length==1?i[0]:g["dateTimeFormat-"+h].replace(/\{(\d+)\}/g,function(a,b){return i[b]})};
b.date.locale.regexp=function(a){return b.date.locale._parseInfo(a).regexp};b.date.locale._parseInfo=function(c){var c=c||{},e=b.i18n.normalizeLocale(c.locale),e=b.date.locale._getGregorianBundle(e),g=c.formatLength||"short",h=c.datePattern||e["dateFormat-"+g],i=c.timePattern||e["timeFormat-"+g],g=c.selector=="date"?h:c.selector=="time"?i:e["dateTimeFormat-"+g].replace(/\{(\d+)\}/g,function(a,b){return[i,h][b]}),j=[];return{regexp:a(g,b.hitch(this,d,j,e,c)),tokens:j,bundle:e}};b.date.locale.parse=
function(a,d){var c=/[\u200E\u200F\u202A\u202E]/g,h=b.date.locale._parseInfo(d),i=h.tokens,j=h.bundle,c=RegExp("^"+h.regexp.replace(c,"")+"$",h.strict?"":"i").exec(a&&a.replace(c,""));if(!c)return null;var k=["abbr","wide","narrow"],l=[1970,0,1,0,0,0,0],m="",c=b.every(c,function(a,c){if(!c)return!0;var f=i[c-1],g=f.length;switch(f.charAt(0)){case "y":if(g!=2&&d.strict)l[0]=a;else if(a<100)a=Number(a),g=""+(new Date).getFullYear(),f=g.substring(0,2)*100,g=Math.min(Number(g.substring(2,4))+20,99),l[0]=
a<g?f+a:f-100+a;else{if(d.strict)return!1;l[0]=a}break;case "M":if(g>2){if(f=j["months-format-"+k[g-3]].concat(),d.strict||(a=a.replace(".","").toLowerCase(),f=b.map(f,function(a){return a.replace(".","").toLowerCase()})),a=b.indexOf(f,a),a==-1)return!1}else a--;l[1]=a;break;case "E":case "e":f=j["days-format-"+k[g-3]].concat();d.strict||(a=a.toLowerCase(),f=b.map(f,function(a){return a.toLowerCase()}));a=b.indexOf(f,a);if(a==-1)return!1;break;case "D":l[1]=0;case "d":l[2]=a;break;case "a":f=d.am||
j["dayPeriods-format-wide-am"];g=d.pm||j["dayPeriods-format-wide-pm"];if(!d.strict)var h=/\./g,a=a.replace(h,"").toLowerCase(),f=f.replace(h,"").toLowerCase(),g=g.replace(h,"").toLowerCase();if(d.strict&&a!=f&&a!=g)return!1;m=a==g?"p":a==f?"a":"";break;case "K":a==24&&(a=0);case "h":case "H":case "k":if(a>23)return!1;l[3]=a;break;case "m":l[4]=a;break;case "s":l[5]=a;break;case "S":l[6]=a}return!0}),h=+l[3];m==="p"&&h<12?l[3]=h+12:m==="a"&&h==12&&(l[3]=0);h=new Date(l[0],l[1],l[2],l[3],l[4],l[5],
l[6]);d.strict&&h.setFullYear(l[0]);var n=i.join(""),o=n.indexOf("d")!=-1,n=n.indexOf("M")!=-1;if(!c||n&&h.getMonth()>l[1]||o&&h.getDate()>l[2])return null;if(n&&h.getMonth()<l[1]||o&&h.getDate()<l[2])h=b.date.add(h,"hour",1);return h}})();(function(){var c=[];b.date.locale.addCustomFormats=function(a,b){c.push({pkg:a,name:b})};b.date.locale._getGregorianBundle=function(a){var d={};b.forEach(c,function(c){c=b.i18n.getLocalization(c.pkg,c.name,a);d=b.mixin(d,c)},this);return d}})();b.date.locale.addCustomFormats("dojo.cldr",
"gregorian");b.date.locale.getNames=function(c,a,d,f){var e,f=b.date.locale._getGregorianBundle(f),c=[c,d,a];d=="standAlone"&&(d=c.join("-"),e=f[d],e[0]==1&&(e=void 0));c[1]="format";return(e||f[c.join("-")]).concat()};b.date.locale.isWeekend=function(c,a){var d=b.cldr.supplemental.getWeekend(a),f=(c||new Date).getDay();d.end<d.start&&(d.end+=7,f<d.start&&(f+=7));return f>=d.start&&f<=d.end};b.date.locale._getDayOfYear=function(c){return b.date.difference(new Date(c.getFullYear(),0,1,c.getHours()),
c)+1};b.date.locale._getWeekOfYear=function(c,a){arguments.length==1&&(a=0);var d=(new Date(c.getFullYear(),0,1)).getDay(),f=Math.floor((b.date.locale._getDayOfYear(c)+(d-a+7)%7-1)/7);d==a&&f++;return f};return b.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(b){var c={root:!0};Object.keys(b).forEach(function(a){typeof c[a]==="undefined"&&(c[a]=b[a])});return c});
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/search/nls/messages",["orion/i18n!orion/search/nls/messages"],function(b){var c={root:!0};Object.keys(b).forEach(function(a){typeof c[a]==="undefined"&&(c[a]=b[a])});return c});
define("orion/search/nls/root/messages",{"Find:":"Find:","Find With":"Find With","ReplaceWith:":"ReplaceWith:","Replace With":"Replace With","Show all":"Show all","Case sensitive":"Case sensitive","Wrap search":"Wrap search","Incremental search":"Incremental search","Whole Word":"Whole Word","Regular expression":"Regular expression","Find after replace":"Find after replace",Options:"Options","Find next match":"Find next match","Find previous match":"Find previous match",Replace:"Replace","Replace All":"Replace All",
"Not found":"Not found","Replacing all...":"Replacing all..."," matches":" matches","Replaced ":"Replaced ","Nothing replaced":"Nothing replaced","Search ":"Search ","Type a keyword or wild card to search in ":"Type a keyword or wild card to search in ","Search failed.":"Search failed.","No matches found for ":"No matches found for ","Searching...":"Searching...","Resource has been changed by others.":"Resource has been changed by others.","Failed to write file.":"Failed to write file.",Results:"Results",
"Files ${0} of ${1} matching ${2}":"Files ${0} of ${1} matching ${2}","Replace ${0} with ${1} for files ${2} of ${3}":"Replace ${0} with ${1} for files ${2} of ${3}",Location:"Location","Click to compare":"Click to compare",'Search again in this folder with "${0}"':'Search again in this folder with "${0}"',"Files replaced":"Files replaced",Status:"Status","${0} out of ${1}  matches replaced.":"${0} out of ${1}  matches replaced.","Save Search":"Save Search","Save search query":"Save search query",
"Replace all matches with...":"Replace all matches with...","Apply Changes":"Apply Changes","Replace all selected matches":"Replace all selected matches","Hide Compare":"Hide Compare","Hide compare view of changes":"Hide compare view of changes","Show Compare":"Show Compare","Show compare view of changes":"Show compare view of changes","Search Again":"Search Again","Search again":"Search again","< Previous Page":"< Previous Page","Show previous page of search result":"Show previous page of search result",
"Next Page >":"Next Page >","Show next page of search result":"Show next page of search result","Next result":"Next result","Previous result":"Previous result","Expand all results":"Expand all results","Collapse all results":"Collapse all results","Writing files...":"Writing files...","Preparing preview...":"Preparing preview...","Replaced File (${0})":"Replaced File (${0})","Original File (${0})":"Original File (${0})","Sort by Name":"Sort by Name","Compare changes":"Compare changes","Search Results":"Search Results",
"Replace All Matches":"Replace All Matches","No matches":"No matches",Rename:"Rename",Searches:"Searches","You can save frequently used by searches by choosing ${0} in the search toolbar.":"You can save frequently used by searches by choosing ${0} in the search toolbar."});define("orion/editor/regex",[],function(){return{escape:function(b){return b.replace(/([\\$\^*\/+?\.\(\)|{}\[\]])/g,"\\$&")},parse:function(b){return(b=/^\s*\/(.+)\/([gim]{0,3})\s*$/.exec(b))?{pattern:b[1],flags:b[2]}:null}}});
define("orion/commonHTMLFragments",["i18n!orion/nls/messages","require"],function(b,c){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 d='<header role="banner"><div id="staticBanner" class="layoutBlock topRowBanner"><a id="home" class="layoutLeft logo" href="'+
c.toUrl("navigate/table.html")+'" aria-label="'+b["Orion Home"]+'"></a><nav id="primaryNav" class="layoutLeft primaryNav" role="navigation"></nav><div class="layoutRight"><div id="globalActions" class="spacingLeft layoutLeft"></div><div id="relatedLinks" class="spacingLeft layoutLeft" style="padding-top:1px;"></div><input type="text" id="search" placeholder="Search" title="'+b["Type a keyword or wild card to search in root"]+'" class="layoutLeft spacingLeft searchbox" role="search"><div id="userMenu" class="spacingLeft layoutLeft"></div></div></div><div id="titleArea" class="layoutBlock titleArea"><div class="layoutLeft pageTitle"></div><div class="clear" style="padding-bottom:5px;display:inline;"><span id="location" class="currentLocation"></span><span id="dirty" class="currentLocation"></span></div><div class="layoutRight pageNav"><span id="pageFavorite" tabindex="0" role="button" aria-label="'+
b["Add this page to the favorites list"]+'" class="spacingLeft layoutLeft imageSprite core-sprite-favorite_sml"></span></div></div></header>',f='<footer id="footerContent" class="layoutBlock" role="contentinfo"><div class="footerBlock">'+b["Orion is in Beta. Please try it out but BEWARE your data may be lost."]+'</div><div class="footerRightBlock"><a href="http://wiki.eclipse.org/Orion/FAQ" target="_blank">'+b.FAQ+'</a> | <a href="https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Orion&version=0.5" target="_blank">'+
b["Report a Bug"]+'</a> | <a href="http://www.eclipse.org/legal/privacy.php" target="_blank">'+b["Privacy Policy"]+'</a> | <a href="http://www.eclipse.org/legal/termsofuse.php" target="_blank">'+b["Terms of Use"]+'</a> | <a href="http://www.eclipse.org/legal/copyright.php" target="_blank">'+b["Copyright Agent"]+"</a></div></footer>",e='<ul class="layoutLeft commandList pageActions" id="pageActions"></ul><ul class="layoutLeft commandList pageActions" id="selectionTools"></ul><img class="layoutRight progressPane" src="'+
c.toUrl("images/none.png")+'" id="progressPane" tabindex="0" role="progressbar" aria-label="'+b["Operations - Press spacebar to show current operations"]+'"></img><div class="layoutRight status" id="statusPane" role="status" aria-live="off"></div><ul class="layoutRight commandList pageActions" id="pageNavigationActions"></ul><div id="notificationArea" class="layoutLeft layoutBlock slideContainer"><div class="layoutLeft" id="notifications" aria-live="assertive" aria-atomic="true"></div><div class="layoutRight"><span tabindex="0" role="button" aria-label="Close notification" class="layoutRight core-sprite-close imageSprite" id="closeNotifications"></span></div></div>'+
a("mainToolbar");return{topHTMLFragment:d,bottomHTMLFragment:f,toolbarHTMLFragment:e,slideoutHTMLFragment:a}});
define("orion/i18nUtil",["require","orion/Deferred"],function(b,c){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 d={};return{getMessageBundle:function(f){function e(){b(["i18n!"+f],function(a){if(a){var b=f;a._expires=(new Date).getTime()+9E5;localStorage.setItem("orion/messageBundle/"+b,JSON.stringify(a));delete a._expires}g.resolve(a)})}if(d[f])return d[f];var g=new c;d[f]=
g;var h=a(f);if(h)return g.resolve(h),g;try{b([f],e)}catch(i){b(["orion/i18n!"+f],e)}return g},formatMessage:function(a){var b=arguments;return a.replace(/\$\{([^\}]+)\}/g,function(a,d){return b[(d<<0)+1]})}}});define("text!dijit/templates/Dialog.html",[],function(){return'<div class="dijitDialog" role="dialog" aria-labelledby="${id}_title">\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="ondijitclick: onCancel" title="${buttonCancel}" role="button" tabIndex="-1">\n\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t</span>\n\t</div>\n\t\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent"></div>\n</div>'});
define("dojo/dnd/common",["dojo"],function(b){b.getObject("dnd",!0,b);b.dnd.getCopyKeyState=b.isCopyKey;b.dnd._uniqueId=0;b.dnd.getUniqueId=function(){var c;do c=b._scopeName+"Unique"+ ++b.dnd._uniqueId;while(b.byId(c));return c};b.dnd._empty={};b.dnd.isFormElement=function(b){b=b.target;if(b.nodeType==3)b=b.parentNode;return" button textarea input select option ".indexOf(" "+b.tagName.toLowerCase()+" ")>=0};return b.dnd});
define("dojo/dnd/autoscroll",["dojo","dojo/window"],function(b){b.getObject("dnd",!0,b);b.dnd.getViewport=b.window.getBox;b.dnd.V_TRIGGER_AUTOSCROLL=32;b.dnd.H_TRIGGER_AUTOSCROLL=32;b.dnd.V_AUTOSCROLL_VALUE=16;b.dnd.H_AUTOSCROLL_VALUE=16;b.dnd.autoScroll=function(c){var a=b.window.getBox(),d=0,f=0;if(c.clientX<b.dnd.H_TRIGGER_AUTOSCROLL)d=-b.dnd.H_AUTOSCROLL_VALUE;else if(c.clientX>a.w-b.dnd.H_TRIGGER_AUTOSCROLL)d=b.dnd.H_AUTOSCROLL_VALUE;if(c.clientY<b.dnd.V_TRIGGER_AUTOSCROLL)f=-b.dnd.V_AUTOSCROLL_VALUE;
else if(c.clientY>a.h-b.dnd.V_TRIGGER_AUTOSCROLL)f=b.dnd.V_AUTOSCROLL_VALUE;window.scrollBy(d,f)};b.dnd._validNodes={div:1,p:1,td:1};b.dnd._validOverflow={auto:1,scroll:1};b.dnd.autoScrollNodes=function(c){for(var a=c.target;a;){if(a.nodeType==1&&a.tagName.toLowerCase()in b.dnd._validNodes){var d=b.getComputedStyle(a);if(d.overflow.toLowerCase()in b.dnd._validOverflow){var f=b._getContentBox(a,d),d=b.position(a,!0),e=Math.min(b.dnd.H_TRIGGER_AUTOSCROLL,f.w/2),g=Math.min(b.dnd.V_TRIGGER_AUTOSCROLL,
f.h/2),h=c.pageX-d.x,i=c.pageY-d.y,j=d=0;if(b.isWebKit||b.isOpera)h+=b.body().scrollLeft,i+=b.body().scrollTop;h>0&&h<f.w&&(h<e?d=-e:h>f.w-e&&(d=e));i>0&&i<f.h&&(i<g?j=-g:i>f.h-g&&(j=g));f=a.scrollLeft;e=a.scrollTop;a.scrollLeft+=d;a.scrollTop+=j;if(f!=a.scrollLeft||e!=a.scrollTop)return}}try{a=a.parentNode}catch(k){a=null}}b.dnd.autoScroll(c)};return b.dnd});
define("dojo/dnd/Mover",["dojo","dojo/dnd/common","dojo/dnd/autoscroll"],function(b){b.declare("dojo.dnd.Mover",null,{constructor:function(c,a,d){this.node=b.byId(c);var f=a.touches?a.touches[0]:a;this.marginBox={l:f.pageX,t:f.pageY};this.mouseButton=a.button;a=this.host=d;c=c.ownerDocument;this.events=[b.connect(c,"onmousemove",this,"onFirstMove"),b.connect(c,"ontouchmove",this,"onFirstMove"),b.connect(c,"onmousemove",this,"onMouseMove"),b.connect(c,"ontouchmove",this,"onMouseMove"),b.connect(c,
"onmouseup",this,"onMouseUp"),b.connect(c,"ontouchend",this,"onMouseUp"),b.connect(c,"ondragstart",b.stopEvent),b.connect(c.body,"onselectstart",b.stopEvent)];if(a&&a.onMoveStart)a.onMoveStart(this)},onMouseMove:function(c){b.dnd.autoScroll(c);var a=this.marginBox,d=c.touches?c.touches[0]:c;this.host.onMove(this,{l:a.l+d.pageX,t:a.t+d.pageY},c);b.stopEvent(c)},onMouseUp:function(c){(b.isWebKit&&b.isMac&&this.mouseButton==2?c.button==0:this.mouseButton==c.button)&&this.destroy();b.stopEvent(c)},onFirstMove:function(c){var a=
this.node.style,d,f=this.host;switch(a.position){case "relative":case "absolute":d=Math.round(parseFloat(a.left))||0;a=Math.round(parseFloat(a.top))||0;break;default:a.position="absolute";a=b.marginBox(this.node);d=b.doc.body;var e=b.getComputedStyle(d),g=b._getMarginBox(d,e),e=b._getContentBox(d,e);d=a.l-(e.l-g.l);a=a.t-(e.t-g.t)}this.marginBox.l=d-this.marginBox.l;this.marginBox.t=a-this.marginBox.t;if(f&&f.onFirstMove)f.onFirstMove(this,c);b.disconnect(this.events.shift());b.disconnect(this.events.shift())},
destroy:function(){b.forEach(this.events,b.disconnect);var c=this.host;if(c&&c.onMoveStop)c.onMoveStop(this);this.events=this.node=this.host=null}});return b.dnd.Mover});
define("dojo/dnd/Moveable",["dojo","dojo/dnd/Mover"],function(b){b.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:!1,constructor:function(c,a){this.node=b.byId(c);a||(a={});this.handle=a.handle?b.byId(a.handle):null;if(!this.handle)this.handle=this.node;this.delay=a.delay>0?a.delay:0;this.skip=a.skip;this.mover=a.mover?a.mover:b.dnd.Mover;this.events=[b.connect(this.handle,"onmousedown",this,"onMouseDown"),b.connect(this.handle,"ontouchstart",this,"onMouseDown"),b.connect(this.handle,"ondragstart",
this,"onSelectStart"),b.connect(this.handle,"onselectstart",this,"onSelectStart")]},markupFactory:function(c,a){return new b.dnd.Moveable(a,c)},destroy:function(){b.forEach(this.events,b.disconnect);this.events=this.node=this.handle=null},onMouseDown:function(c){if(!this.skip||!b.dnd.isFormElement(c)){if(this.delay){this.events.push(b.connect(this.handle,"onmousemove",this,"onMouseMove"),b.connect(this.handle,"ontouchmove",this,"onMouseMove"),b.connect(this.handle,"onmouseup",this,"onMouseUp"),b.connect(this.handle,
"ontouchend",this,"onMouseUp"));var a=c.touches?c.touches[0]:c;this._lastX=a.pageX;this._lastY=a.pageY}else this.onDragDetected(c);b.stopEvent(c)}},onMouseMove:function(c){var a=c.touches?c.touches[0]:c;if(Math.abs(a.pageX-this._lastX)>this.delay||Math.abs(a.pageY-this._lastY)>this.delay)this.onMouseUp(c),this.onDragDetected(c);b.stopEvent(c)},onMouseUp:function(c){for(var a=0;a<2;++a)b.disconnect(this.events.pop());b.stopEvent(c)},onSelectStart:function(c){(!this.skip||!b.dnd.isFormElement(c))&&
b.stopEvent(c)},onDragDetected:function(b){new this.mover(this.node,b,this)},onMoveStart:function(c){b.publish("/dnd/move/start",[c]);b.addClass(b.body(),"dojoMove");b.addClass(this.node,"dojoMoveItem")},onMoveStop:function(c){b.publish("/dnd/move/stop",[c]);b.removeClass(b.body(),"dojoMove");b.removeClass(this.node,"dojoMoveItem")},onFirstMove:function(){},onMove:function(b,a){this.onMoving(b,a);var d=b.node.style;d.left=a.l+"px";d.top=a.t+"px";this.onMoved(b,a)},onMoving:function(){},onMoved:function(){}});
return b.dnd.Moveable});
define("dojo/dnd/move",["dojo","dojo/dnd/Mover","dojo/dnd/Moveable"],function(b){b.declare("dojo.dnd.move.constrainedMoveable",b.dnd.Moveable,{constraints:function(){},within:!1,markupFactory:function(c,a){return new b.dnd.move.constrainedMoveable(a,c)},constructor:function(b,a){a||(a={});this.constraints=a.constraints;this.within=a.within},onFirstMove:function(c){var a=this.constraintBox=this.constraints.call(this,c);a.r=a.l+a.w;a.b=a.t+a.h;this.within&&(c=b._getMarginSize(c.node),a.r-=c.w,a.b-=
c.h)},onMove:function(b,a){var d=this.constraintBox,f=b.node.style;this.onMoving(b,a);a.l=a.l<d.l?d.l:d.r<a.l?d.r:a.l;a.t=a.t<d.t?d.t:d.b<a.t?d.b:a.t;f.left=a.l+"px";f.top=a.t+"px";this.onMoved(b,a)}});b.declare("dojo.dnd.move.boxConstrainedMoveable",b.dnd.move.constrainedMoveable,{box:{},markupFactory:function(c,a){return new b.dnd.move.boxConstrainedMoveable(a,c)},constructor:function(b,a){var d=a&&a.box;this.constraints=function(){return d}}});b.declare("dojo.dnd.move.parentConstrainedMoveable",
b.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(c,a){return new b.dnd.move.parentConstrainedMoveable(a,c)},constructor:function(c,a){var d=a&&a.area;this.constraints=function(){var a=this.node.parentNode,c=b.getComputedStyle(a),g=b._getMarginBox(a,c);if(d=="margin")return g;var h=b._getMarginExtents(a,c);g.l+=h.l;g.t+=h.t;g.w-=h.w;g.h-=h.h;if(d=="border")return g;h=b._getBorderExtents(a,c);g.l+=h.l;g.t+=h.t;g.w-=h.w;g.h-=h.h;if(d=="padding")return g;h=b._getPadExtents(a,c);g.l+=
h.l;g.t+=h.t;g.w-=h.w;g.h-=h.h;return g}}});b.dnd.constrainedMover=b.dnd.move.constrainedMover;b.dnd.boxConstrainedMover=b.dnd.move.boxConstrainedMover;b.dnd.parentConstrainedMover=b.dnd.move.parentConstrainedMover;return b.dnd.move});
define("dojo/dnd/TimedMoveable",["dojo","dojo/dnd/Moveable"],function(b){(function(){var c=b.dnd.Moveable.prototype.onMove;b.declare("dojo.dnd.TimedMoveable",b.dnd.Moveable,{timeout:40,constructor:function(a,b){b||(b={});if(b.timeout&&typeof b.timeout=="number"&&b.timeout>=0)this.timeout=b.timeout},markupFactory:function(a,d){return new b.dnd.TimedMoveable(d,a)},onMoveStop:function(a){a._timer&&(clearTimeout(a._timer),c.call(this,a,a._leftTop));b.dnd.Moveable.prototype.onMoveStop.apply(this,arguments)},
onMove:function(a,b){a._leftTop=b;if(!a._timer){var f=this;a._timer=setTimeout(function(){a._timer=null;c.call(f,a,a._leftTop)},this.timeout)}}})})();return b.dnd.TimedMoveable});
define("dojo/fx/Toggler",["dojo"],function(b){b.declare("dojo.fx.Toggler",null,{node:null,showFunc:b.fadeIn,hideFunc:b.fadeOut,showDuration:200,hideDuration:200,constructor:function(c){b.mixin(this,c);this.node=c.node;this._showArgs=b.mixin({},c);this._showArgs.node=this.node;this._showArgs.duration=this.showDuration;this.showAnim=this.showFunc(this._showArgs);this._hideArgs=b.mixin({},c);this._hideArgs.node=this.node;this._hideArgs.duration=this.hideDuration;this.hideAnim=this.hideFunc(this._hideArgs);
b.connect(this.showAnim,"beforeBegin",b.hitch(this.hideAnim,"stop",!0));b.connect(this.hideAnim,"beforeBegin",b.hitch(this.showAnim,"stop",!0))},show:function(b){return this.showAnim.play(b||0)},hide:function(b){return this.hideAnim.play(b||0)}});return b.fx.Toggler});
define("dojo/fx",["dojo","dojo/fx/Toggler"],function(b){(function(){var c={_fire:function(a,b){this[a]&&this[a].apply(this,b||[]);return this}},a=function(a){this._index=-1;this._animations=a||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;b.forEach(this._animations,function(a){this.duration+=a.duration;a.delay&&(this.duration+=a.delay)},this)};b.extend(a,{_onAnimate:function(){this._fire("onAnimate",arguments)},_onEnd:function(){b.disconnect(this._onAnimateCtx);b.disconnect(this._onEndCtx);
this._onAnimateCtx=this._onEndCtx=null;this._index+1==this._animations.length?this._fire("onEnd"):(this._current=this._animations[++this._index],this._onAnimateCtx=b.connect(this._current,"onAnimate",this,"_onAnimate"),this._onEndCtx=b.connect(this._current,"onEnd",this,"_onEnd"),this._current.play(0,!0))},play:function(a,d){if(!this._current)this._current=this._animations[this._index=0];if(!d&&this._current.status()=="playing")return this;var c=b.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin")}),
h=b.connect(this._current,"onBegin",this,function(a){this._fire("onBegin",arguments)}),i=b.connect(this._current,"onPlay",this,function(a){this._fire("onPlay",arguments);b.disconnect(c);b.disconnect(h);b.disconnect(i)});this._onAnimateCtx&&b.disconnect(this._onAnimateCtx);this._onAnimateCtx=b.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx&&b.disconnect(this._onEndCtx);this._onEndCtx=b.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);
return this},pause:function(){if(this._current){var a=b.connect(this._current,"onPause",this,function(d){this._fire("onPause",arguments);b.disconnect(a)});this._current.pause()}return this},gotoPercent:function(a,d){this.pause();var c=this.duration*a;this._current=null;b.some(this._animations,function(a){if(a.duration<=c)return this._current=a,!0;c-=a.duration;return!1});this._current&&this._current.gotoPercent(c/this._current.duration,d);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 d=b.connect(this._current,"onStop",this,function(a){this._fire("onStop",arguments);b.disconnect(d)});this._current.stop()}return this},status:function(){return this._current?this._current.status():"stopped"},destroy:function(){this._onAnimateCtx&&b.disconnect(this._onAnimateCtx);this._onEndCtx&&b.disconnect(this._onEndCtx)}});b.extend(a,c);b.fx.chain=function(b){return new a(b)};
var d=function(a){this._animations=a||[];this._connects=[];this.duration=this._finished=0;b.forEach(a,function(a){var d=a.duration;a.delay&&(d+=a.delay);if(this.duration<d)this.duration=d;this._connects.push(b.connect(a,"onEnd",this,"_onEnd"))},this);this._pseudoAnimation=new b.Animation({curve:[0,1],duration:this.duration});var d=this;b.forEach("beforeBegin,onBegin,onPlay,onAnimate,onPause,onStop,onEnd".split(","),function(a){d._connects.push(b.connect(d._pseudoAnimation,a,function(){d._fire(a,arguments)}))})};
b.extend(d,{_doAction:function(a,d){b.forEach(this._animations,function(b){b[a].apply(b,d)});return this},_onEnd:function(){++this._finished>this._animations.length&&this._fire("onEnd")},_call:function(a,b){var d=this._pseudoAnimation;d[a].apply(d,b)},play:function(a,b){this._finished=0;this._doAction("play",arguments);this._call("play",arguments);return this},pause:function(){this._doAction("pause",arguments);this._call("pause",arguments);return this},gotoPercent:function(a,d){var c=this.duration*
a;b.forEach(this._animations,function(a){a.gotoPercent(a.duration<c?1:c/a.duration,d)});this._call("gotoPercent",arguments);return this},stop:function(a){this._doAction("stop",arguments);this._call("stop",arguments);return this},status:function(){return this._pseudoAnimation.status()},destroy:function(){b.forEach(this._connects,b.disconnect)}});b.extend(d,c);b.fx.combine=function(a){return new d(a)};b.fx.wipeIn=function(a){var d=a.node=b.byId(a.node),c=d.style,h,a=b.animateProperty(b.mixin({properties:{height:{start:function(){h=
c.overflow;c.overflow="hidden";if(c.visibility=="hidden"||c.display=="none")return c.height="1px",c.display="",c.visibility="",1;else{var a=b.style(d,"height");return Math.max(a,1)}},end:function(){return d.scrollHeight}}}},a));b.connect(a,"onEnd",function(){c.height="auto";c.overflow=h});return a};b.fx.wipeOut=function(a){var d=(a.node=b.byId(a.node)).style,c,a=b.animateProperty(b.mixin({properties:{height:{end:1}}},a));b.connect(a,"beforeBegin",function(){c=d.overflow;d.overflow="hidden";d.display=
""});b.connect(a,"onEnd",function(){d.overflow=c;d.height="auto";d.display="none"});return a};b.fx.slideTo=function(a){var d=null,c=null,h=function(a){return function(){var f=b.getComputedStyle(a),h=f.position;d=h=="absolute"?a.offsetTop:parseInt(f.top)||0;c=h=="absolute"?a.offsetLeft:parseInt(f.left)||0;if(h!="absolute"&&h!="relative")f=b.position(a,!0),d=f.y,c=f.x,a.style.position="absolute",a.style.top=d+"px",a.style.left=c+"px"}}(a.node=b.byId(a.node));h();a=b.animateProperty(b.mixin({properties:{top:a.top||
0,left:a.left||0}},a));b.connect(a,"beforeBegin",a,h);return a}})();return b.fx});define("dijit/nls/common",{root:{buttonOk:"OK",buttonCancel:"Cancel",buttonSave:"Save",itemClose:"Close"},zh:!0,"zh-tw":!0,tr:!0,th:!0,sv:!0,sl:!0,sk:!0,ru:!0,ro:!0,pt:!0,"pt-pt":!0,pl:!0,nl:!0,nb:!0,ko:!0,kk:!0,ja:!0,it:!0,hu:!0,he:!0,fr:!0,fi:!0,es:!0,el:!0,de:!0,da:!0,cs:!0,ca:!0,ar:!0});define("text!dijit/form/templates/CheckBox.html",[],function(){return'<div class="dijit dijitReset dijitInline" role="presentation"\n\t><input\n\t \t${!nameAttrSetting} type="${type}" ${checkedAttrSetting}\n\t\tclass="dijitReset dijitCheckBoxInput"\n\t\tdojoAttachPoint="focusNode"\n\t \tdojoAttachEvent="onclick:_onClick"\n/></div>'});
define("dijit/layout/_LayoutWidget",["dojo","dijit","dijit/_Widget","dijit/_Container","dijit/_Contained"],function(b,c){b.declare("dijit.layout._LayoutWidget",[c._Widget,c._Container,c._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:!0,buildRendering:function(){this.inherited(arguments);b.addClass(this.domNode,"dijitContainer")},startup:function(){if(!this._started){this.inherited(arguments);var a=this.getParent&&this.getParent();if(!a||!a.isLayoutContainer)this.resize(),this.connect(b.isIE?
this.domNode:b.global,"onresize",function(){this.resize()})}},resize:function(a,d){var c=this.domNode;if(a){b.marginBox(c,a);if(a.t)c.style.top=a.t+"px";if(a.l)c.style.left=a.l+"px"}var e=d||{};b.mixin(e,a||{});if(!("h"in e)||!("w"in e))e=b.mixin(b.marginBox(c),e);var g=b.getComputedStyle(c),h=b._getMarginExtents(c,g),i=b._getBorderExtents(c,g),e=this._borderBox={w:e.w-(h.w+i.w),h:e.h-(h.h+i.h)},h=b._getPadExtents(c,g);this._contentBox={l:b._toPixelValue(c,g.paddingLeft),t:b._toPixelValue(c,g.paddingTop),
w:e.w-h.w,h:e.h-h.h};this.layout()},layout:function(){},_setupChild:function(a){b.addClass(a.domNode,this.baseClass+"-child "+(a.baseClass?this.baseClass+"-"+a.baseClass:""))},addChild:function(a,b){this.inherited(arguments);this._started&&this._setupChild(a)},removeChild:function(a){b.removeClass(a.domNode,this.baseClass+"-child"+(a.baseClass?" "+this.baseClass+"-"+a.baseClass:""));this.inherited(arguments)}});c.layout.marginBox2contentBox=function(a,d){var c=b.getComputedStyle(a),e=b._getMarginExtents(a,
c),g=b._getPadBorderExtents(a,c);return{l:b._toPixelValue(a,c.paddingLeft),t:b._toPixelValue(a,c.paddingTop),w:d.w-(e.w+g.w),h:d.h-(e.h+g.h)}};(function(){var a=function(a,c){var e=a.resize?a.resize(c):b.marginBox(a.domNode,c);e?b.mixin(a,e):(b.mixin(a,b.marginBox(a.domNode)),b.mixin(a,c))};c.layout.layoutChildren=function(d,c,e,g,h){c=b.mixin({},c);b.addClass(d,"dijitLayoutContainer");e=b.filter(e,function(a){return a.region!="center"&&a.layoutAlign!="client"}).concat(b.filter(e,function(a){return a.region==
"center"||a.layoutAlign=="client"}));b.forEach(e,function(d){var e=d.domNode,k=d.region||d.layoutAlign,l=e.style;l.left=c.l+"px";l.top=c.t+"px";l.position="absolute";b.addClass(e,"dijitAlign"+(k.substring(0,1).toUpperCase()+k.substring(1)));e={};g&&g==d.id&&(e[d.region=="top"||d.region=="bottom"?"h":"w"]=h);k=="top"||k=="bottom"?(e.w=c.w,a(d,e),c.h-=d.h,k=="top"?c.t+=d.h:l.top=c.t+c.h+"px"):k=="left"||k=="right"?(e.h=c.h,a(d,e),c.w-=d.w,k=="left"?c.l+=d.w:l.left=c.l+c.w+"px"):(k=="client"||k=="center")&&
a(d,c)})}})();return c.layout._LayoutWidget});
define("dijit/layout/_ContentPaneResizeMixin",["dojo","dijit","dijit/_Contained","dijit/layout/_LayoutWidget"],function(b,c){b.declare("dijit.layout._ContentPaneResizeMixin",null,{doLayout:!0,isContainer:!0,isLayoutContainer:!0,_startChildren:function(){b.forEach(this.getChildren(),function(a){a.startup();a._started=!0})},startup:function(){if(!this._started){var a=c._Contained.prototype.getParent.call(this);this._childOfLayoutWidget=a&&a.isLayoutContainer;this._needLayout=!this._childOfLayoutWidget;
this.inherited(arguments);this._startChildren();this._isShown()&&this._onShow();this._childOfLayoutWidget||this.connect(b.isIE?this.domNode:b.global,"onresize",function(){this._needLayout=!this._childOfLayoutWidget;this.resize()})}},_checkIfSingleChild:function(){var a=b.query("> *",this.containerNode).filter(function(a){return a.tagName!=="SCRIPT"}),d=a.filter(function(a){return b.hasAttr(a,"data-dojo-type")||b.hasAttr(a,"dojoType")||b.hasAttr(a,"widgetId")}),f=b.filter(d.map(c.byNode),function(a){return a&&
a.domNode&&a.resize});a.length==d.length&&f.length==1?this._singleChild=f[0]:delete this._singleChild;b.toggleClass(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild)},resize:function(a,b){!this._wasShown&&this.open!==!1&&this._onShow();this._resizeCalled=!0;this._scheduleLayout(a,b)},_scheduleLayout:function(a,b){this._isShown()?this._layout(a,b):(this._needLayout=!0,this._changeSize=a,this._resultSize=b)},_layout:function(a,d){a&&b.marginBox(this.domNode,a);var f=this.containerNode;
if(f===this.domNode){var e=d||{};b.mixin(e,a||{});if(!("h"in e)||!("w"in e))e=b.mixin(b.marginBox(f),e);this._contentBox=c.layout.marginBox2contentBox(f,e)}else this._contentBox=b.contentBox(f);this._layoutChildren();delete this._needLayout},_layoutChildren:function(){this.doLayout&&this._checkIfSingleChild();if(this._singleChild&&this._singleChild.resize){var a=this._contentBox||b.contentBox(this.containerNode);this._singleChild.resize({w:a.w,h:a.h})}else b.forEach(this.getChildren(),function(a){a.resize&&
a.resize()})},_isShown:function(){if(this._childOfLayoutWidget)return this._resizeCalled&&"open"in this?this.open:this._resizeCalled;else if("open"in this)return this.open;else{var a=this.domNode,d=this.domNode.parentNode;return a.style.display!="none"&&a.style.visibility!="hidden"&&!b.hasClass(a,"dijitHidden")&&d&&d.style&&d.style.display!="none"}},_onShow:function(){this._needLayout&&this._layout(this._changeSize,this._resultSize);this.inherited(arguments);this._wasShown=!0}});return c.layout._ContentPaneResizeMixin});
define("dojo/data/util/filter",["dojo"],function(b){b.getObject("data.util.filter",!0,b);b.data.util.filter.patternToRegExp=function(b,a){for(var d="^",f=null,e=0;e<b.length;e++)switch(f=b.charAt(e),f){case "\\":d+=f;e++;d+=b.charAt(e);break;case "*":d+=".*";break;case "?":d+=".";break;case "$":case "^":case "/":case "+":case ".":case "|":case "(":case ")":case "{":case "}":case "[":case "]":d+="\\";default:d+=f}d+="$";return a?RegExp(d,"mi"):RegExp(d,"m")};return b.data.util.filter});
define("dojo/data/util/sorter",["dojo"],function(b){b.getObject("data.util.sorter",!0,b);b.data.util.sorter.basicComparator=function(b,a){var d=-1;b===null&&(b=void 0);a===null&&(a=void 0);if(b==a)d=0;else if(b>a||b==null)d=1;return d};b.data.util.sorter.createSortFunction=function(c,a){function d(a,b,d,c){return function(e,f){var g=c.getValue(e,a),h=c.getValue(f,a);return b*d(g,h)}}for(var f=[],e,g=a.comparatorMap,h=b.data.util.sorter.basicComparator,i=0;i<c.length;i++){e=c[i];var j=e.attribute;
if(j){e=e.descending?-1:1;var k=h;g&&(typeof j!=="string"&&"toString"in j&&(j=j.toString()),k=g[j]||h);f.push(d(j,e,k,a))}}return function(a,b){for(var d=0;d<f.length;){var c=f[d++](a,b);if(c!==0)return c}return 0}};return b.data.util.sorter});
define("dojo/data/util/simpleFetch",["dojo","dojo/data/util/sorter"],function(b){b.getObject("data.util.simpleFetch",!0,b);b.data.util.simpleFetch.fetch=function(c){c=c||{};if(!c.store)c.store=this;var a=this;this._fetchItems(c,function(d,c){var e=c.abort||null,g=!1,h=c.start?c.start:0,i=c.count&&c.count!==Infinity?h+c.count:d.length;c.abort=function(){g=!0;e&&e.call(c)};var j=c.scope||b.global;if(!c.store)c.store=a;c.onBegin&&c.onBegin.call(j,d.length,c);c.sort&&d.sort(b.data.util.sorter.createSortFunction(c.sort,
a));if(c.onItem)for(var k=h;k<d.length&&k<i;++k){var l=d[k];g||c.onItem.call(j,l,c)}c.onComplete&&!g&&(k=null,c.onItem||(k=d.slice(h,i)),c.onComplete.call(j,k,c))},function(a,c){c.onError&&c.onError.call(c.scope||b.global,a,c)});return c};return b.data.util.simpleFetch});
define("dojo/date/stamp",["dojo"],function(b){b.getObject("date.stamp",!0,b);b.date.stamp.fromISOString=function(c,a){if(!b.date.stamp._isoRegExp)b.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;var d=b.date.stamp._isoRegExp.exec(c),f=null;if(d){d.shift();d[1]&&d[1]--;d[6]&&(d[6]*=1E3);a&&(a=new Date(a),b.forEach(b.map("FullYear,Month,Date,Hours,Minutes,Seconds,Milliseconds".split(","),function(b){return a["get"+
b]()}),function(a,b){d[b]=d[b]||a}));f=new Date(d[0]||1970,d[1]||0,d[2]||1,d[3]||0,d[4]||0,d[5]||0,d[6]||0);d[0]<100&&f.setFullYear(d[0]||1970);var e=0,g=d[7]&&d[7].charAt(0);g!="Z"&&(e=(d[8]||0)*60+(Number(d[9])||0),g!="-"&&(e*=-1));g&&(e-=f.getTimezoneOffset());e&&f.setTime(f.getTime()+e*6E4)}return f};b.date.stamp.toISOString=function(b,a){var d=function(a){return a<10?"0"+a:a},a=a||{},f=[],e=a.zulu?"getUTC":"get",g="";a.selector!="time"&&(g=b[e+"FullYear"](),g=["0000".substr((g+"").length)+g,
d(b[e+"Month"]()+1),d(b[e+"Date"]())].join("-"));f.push(g);if(a.selector!="date"){g=[d(b[e+"Hours"]()),d(b[e+"Minutes"]()),d(b[e+"Seconds"]())].join(":");e=b[e+"Milliseconds"]();a.milliseconds&&(g+="."+(e<100?"0":"")+d(e));if(a.zulu)g+="Z";else if(a.selector!="time"){var e=b.getTimezoneOffset(),h=Math.abs(e);g+=(e>0?"-":"+")+d(Math.floor(h/60))+":"+d(h%60)}f.push(g)}return f.join("T")};return b.date.stamp});
define("dojo/data/ItemFileReadStore",["dojo","dojo/data/util/filter","dojo/data/util/simpleFetch","dojo/date/stamp"],function(b){b.declare("dojo.data.ItemFileReadStore",null,{constructor:function(c){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=!1;this.url=this._ccUrl=this._jsonFileUrl=c.url;this._jsonData=c.data;this.data=null;this._datatypeMap=c.typeMap||{};this._datatypeMap.Date||(this._datatypeMap.Date={type:Date,deserialize:function(a){return b.date.stamp.fromISOString(a)}});
this._features={"dojo.data.api.Read":!0,"dojo.data.api.Identity":!0};this._itemsByIdentity=null;this._storeRefPropName="_S";this._itemNumPropName="_0";this._rootItemPropName="_RI";this._reverseRefMap="_RRM";this._loadInProgress=!1;this._queuedFetches=[];if(c.urlPreventCache!==void 0)this.urlPreventCache=c.urlPreventCache?!0:!1;if(c.hierarchical!==void 0)this.hierarchical=c.hierarchical?!0:!1;if(c.clearOnClose)this.clearOnClose=!0;if("failOk"in c)this.failOk=c.failOk?!0:!1},url:"",_ccUrl:"",data:null,
typeMap:null,clearOnClose:!1,urlPreventCache:!1,failOk:!1,hierarchical:!0,_assertIsItem:function(b){if(!this.isItem(b))throw Error("dojo.data.ItemFileReadStore: Invalid item argument.");},_assertIsAttribute:function(b){if(typeof b!=="string")throw Error("dojo.data.ItemFileReadStore: Invalid attribute argument.");},getValue:function(b,a,d){b=this.getValues(b,a);return b.length>0?b[0]:d},getValues:function(b,a){this._assertIsItem(b);this._assertIsAttribute(a);return(b[a]||[]).slice(0)},getAttributes:function(b){this._assertIsItem(b);
var a=[],d;for(d in b)d!==this._storeRefPropName&&d!==this._itemNumPropName&&d!==this._rootItemPropName&&d!==this._reverseRefMap&&a.push(d);return a},hasAttribute:function(b,a){this._assertIsItem(b);this._assertIsAttribute(a);return a in b},containsValue:function(c,a,d){var f=void 0;typeof d==="string"&&(f=b.data.util.filter.patternToRegExp(d,!1));return this._containsValue(c,a,d,f)},_containsValue:function(c,a,d,f){return b.some(this.getValues(c,a),function(a){if(a!==null&&!b.isObject(a)&&f){if(a.toString().match(f))return!0}else if(d===
a)return!0})},isItem:function(b){return b&&b[this._storeRefPropName]===this&&this._arrayOfAllItems[b[this._itemNumPropName]]===b?!0:!1},isItemLoaded:function(b){return this.isItem(b)},loadItem:function(b){this._assertIsItem(b.item)},getFeatures:function(){return this._features},getLabel:function(b){if(this._labelAttr&&this.isItem(b))return this.getValue(b,this._labelAttr)},getLabelAttributes:function(){return this._labelAttr?[this._labelAttr]:null},_fetchItems:function(c,a,d){var f=this,e=function(d,
c){var e=[],g,h;if(d.query){var i;g=d.queryOptions?d.queryOptions.ignoreCase:!1;var p={};for(h in d.query)i=d.query[h],typeof i==="string"?p[h]=b.data.util.filter.patternToRegExp(i,g):i instanceof RegExp&&(p[h]=i);for(g=0;g<c.length;++g){var r=!0,s=c[g];if(s===null)r=!1;else for(h in d.query)i=d.query[h],f._containsValue(s,h,i,p[h])||(r=!1);r&&e.push(s)}}else for(g=0;g<c.length;++g)h=c[g],h!==null&&e.push(h);a(e,d)};if(this._loadFinished)e(c,this._getItemsArray(c.queryOptions));else{if(this._jsonFileUrl!==
this._ccUrl)b.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store, not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0"),this.url=this._ccUrl=this._jsonFileUrl;else if(this.url!==this._ccUrl)this._ccUrl=this._jsonFileUrl=this.url;if(this.data!=null)this._jsonData=this.data,this.data=null;if(this._jsonFileUrl)if(this._loadInProgress)this._queuedFetches.push({args:c,filter:e});else{this._loadInProgress=!0;var g=b.xhrGet({url:f._jsonFileUrl,handleAs:"json-comment-optional",
preventCache:this.urlPreventCache,failOk:this.failOk});g.addCallback(function(a){try{f._getItemsFromLoadedData(a),f._loadFinished=!0,f._loadInProgress=!1,e(c,f._getItemsArray(c.queryOptions)),f._handleQueuedFetches()}catch(b){f._loadFinished=!0,f._loadInProgress=!1,d(b,c)}});g.addErrback(function(a){f._loadInProgress=!1;d(a,c)});var h=null;if(c.abort)h=c.abort;c.abort=function(){g&&g.fired===-1&&g.cancel();h&&h.call(c)}}else if(this._jsonData)try{this._loadFinished=!0,this._getItemsFromLoadedData(this._jsonData),
this._jsonData=null,e(c,this._getItemsArray(c.queryOptions))}catch(i){d(i,c)}else d(Error("dojo.data.ItemFileReadStore: No JSON source data was provided as either URL or a nested Javascript object."),c)}},_handleQueuedFetches:function(){if(this._queuedFetches.length>0){for(var b=0;b<this._queuedFetches.length;b++){var a=this._queuedFetches[b],d=a.args;(a=a.filter)?a(d,this._getItemsArray(d.queryOptions)):this.fetchItemByIdentity(d)}this._queuedFetches=[]}},_getItemsArray:function(b){return b&&b.deep?
this._arrayOfAllItems:this._arrayOfTopLevelItems},close:function(){if(this.clearOnClose&&this._loadFinished&&!this._loadInProgress)(this._jsonFileUrl==""||this._jsonFileUrl==null)&&(this.url==""||this.url==null)&&this.data==null&&console.debug("dojo.data.ItemFileReadStore: WARNING!  Data reload  information has not been provided.  Please set 'url' or 'data' to the appropriate value before the next fetch"),this._arrayOfAllItems=[],this._arrayOfTopLevelItems=[],this._loadFinished=!1,this._itemsByIdentity=
null,this._loadInProgress=!1,this._queuedFetches=[]},_getItemsFromLoadedData:function(c){function a(a){return a!==null&&typeof a==="object"&&(!b.isArray(a)||f)&&!b.isFunction(a)&&(a.constructor==Object||b.isArray(a))&&typeof a._reference==="undefined"&&typeof a._type==="undefined"&&typeof a._value==="undefined"&&e.hierarchical}function d(c){e._arrayOfAllItems.push(c);for(var f in c){var g=c[f];if(g)if(b.isArray(g))for(var h=0;h<g.length;++h){var i=g[h];a(i)&&d(i)}else a(g)&&d(g)}}var f=!1,e=this;
this._labelAttr=c.label;var g,h;this._arrayOfAllItems=[];this._arrayOfTopLevelItems=c.items;for(g=0;g<this._arrayOfTopLevelItems.length;++g)h=this._arrayOfTopLevelItems[g],b.isArray(h)&&(f=!0),d(h),h[this._rootItemPropName]=!0;var i={},j;for(g=0;g<this._arrayOfAllItems.length;++g)for(j in h=this._arrayOfAllItems[g],h){if(j!==this._rootItemPropName){var k=h[j];k!==null?b.isArray(k)||(h[j]=[k]):h[j]=[null]}i[j]=j}for(;i[this._storeRefPropName];)this._storeRefPropName+="_";for(;i[this._itemNumPropName];)this._itemNumPropName+=
"_";for(;i[this._reverseRefMap];)this._reverseRefMap+="_";if(i=c.identifier){this._itemsByIdentity={};this._features["dojo.data.api.Identity"]=i;for(g=0;g<this._arrayOfAllItems.length;++g)if(h=this._arrayOfAllItems[g],c=h[i],c=c[0],Object.hasOwnProperty.call(this._itemsByIdentity,c))if(this._jsonFileUrl)throw Error("dojo.data.ItemFileReadStore:  The json data as specified by: ["+this._jsonFileUrl+"] is malformed.  Items within the list have identifier: ["+i+"].  Value collided: ["+c+"]");else{if(this._jsonData)throw Error("dojo.data.ItemFileReadStore:  The json data provided by the creation arguments is malformed.  Items within the list have identifier: ["+
i+"].  Value collided: ["+c+"]");}else this._itemsByIdentity[c]=h}else this._features["dojo.data.api.Identity"]=Number;for(g=0;g<this._arrayOfAllItems.length;++g)h=this._arrayOfAllItems[g],h[this._storeRefPropName]=this,h[this._itemNumPropName]=g;for(g=0;g<this._arrayOfAllItems.length;++g)for(j in h=this._arrayOfAllItems[g],h){c=h[j];for(i=0;i<c.length;++i)if(k=c[i],k!==null&&typeof k=="object"){if("_type"in k&&"_value"in k){var l=k._type,m=this._datatypeMap[l];if(m)if(b.isFunction(m))c[i]=new m(k._value);
else if(b.isFunction(m.deserialize))c[i]=m.deserialize(k._value);else throw Error("dojo.data.ItemFileReadStore: Value provided in typeMap was neither a constructor, nor a an object with a deserialize function");else throw Error("dojo.data.ItemFileReadStore: in the typeMap constructor arg, no object class was specified for the datatype '"+l+"'");}if(k._reference){k=k._reference;if(b.isObject(k))for(l=0;l<this._arrayOfAllItems.length;++l){var m=this._arrayOfAllItems[l],n=!0,o;for(o in k)m[o]!=k[o]&&
(n=!1);n&&(c[i]=m)}else c[i]=this._getItemByIdentity(k);this.referenceIntegrity&&(k=c[i],this.isItem(k)&&this._addReferenceToMap(k,h,j))}else this.isItem(k)&&this.referenceIntegrity&&this._addReferenceToMap(k,h,j)}}},_addReferenceToMap:function(){},getIdentity:function(b){var a=this._features["dojo.data.api.Identity"];if(a===Number)return b[this._itemNumPropName];else if(b=b[a])return b[0];return null},fetchItemByIdentity:function(c){var a,d;if(this._loadFinished)a=this._getItemByIdentity(c.identity),
c.onItem&&(d=c.scope?c.scope:b.global,c.onItem.call(d,a));else{var f=this;if(this._jsonFileUrl!==this._ccUrl)b.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store, not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0"),this.url=this._ccUrl=this._jsonFileUrl;else if(this.url!==this._ccUrl)this._ccUrl=this._jsonFileUrl=this.url;if(this.data!=null&&this._jsonData==null)this._jsonData=this.data,this.data=null;if(this._jsonFileUrl)this._loadInProgress?
this._queuedFetches.push({args:c}):(this._loadInProgress=!0,d=b.xhrGet({url:f._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk}),d.addCallback(function(d){var g=c.scope?c.scope:b.global;try{f._getItemsFromLoadedData(d),f._loadFinished=!0,f._loadInProgress=!1,a=f._getItemByIdentity(c.identity),c.onItem&&c.onItem.call(g,a),f._handleQueuedFetches()}catch(h){f._loadInProgress=!1,c.onError&&c.onError.call(g,h)}}),d.addErrback(function(a){f._loadInProgress=
!1;c.onError&&c.onError.call(c.scope?c.scope:b.global,a)}));else if(this._jsonData)f._getItemsFromLoadedData(f._jsonData),f._jsonData=null,f._loadFinished=!0,a=f._getItemByIdentity(c.identity),c.onItem&&(d=c.scope?c.scope:b.global,c.onItem.call(d,a))}},_getItemByIdentity:function(b){var a=null;this._itemsByIdentity&&Object.hasOwnProperty.call(this._itemsByIdentity,b)?a=this._itemsByIdentity[b]:Object.hasOwnProperty.call(this._arrayOfAllItems,b)&&(a=this._arrayOfAllItems[b]);a===void 0&&(a=null);return a},
getIdentityAttributes:function(){var b=this._features["dojo.data.api.Identity"];return b===Number?null:[b]},_forceLoad:function(){var c=this;if(this._jsonFileUrl!==this._ccUrl)b.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store, not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0"),this.url=this._ccUrl=this._jsonFileUrl;else if(this.url!==this._ccUrl)this._ccUrl=this._jsonFileUrl=this.url;if(this.data!=null)this._jsonData=this.data,this.data=
null;if(this._jsonFileUrl){var a=b.xhrGet({url:this._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk,sync:!0});a.addCallback(function(a){try{if(c._loadInProgress!==!0&&!c._loadFinished)c._getItemsFromLoadedData(a),c._loadFinished=!0;else if(c._loadInProgress)throw Error("dojo.data.ItemFileReadStore:  Unable to perform a synchronous load, an async load is in progress.");}catch(b){throw console.log(b),b;}});a.addErrback(function(a){throw a;})}else if(this._jsonData)c._getItemsFromLoadedData(c._jsonData),
c._jsonData=null,c._loadFinished=!0}});b.extend(b.data.ItemFileReadStore,b.data.util.simpleFetch);return b.data.ItemFileReadStore});
define("orion/widgets/_OrionDialogMixin",["i18n!orion/widgets/nls/messages","dojo","dijit"],function(b,c,a){c.declare("orion.widgets._OrionDialogMixin",null,{postMixInProperties:function(){this.inherited(arguments);this.title=this.options.title||b["Information Needed"];this.buttonCancel=b.Cancel},postCreate:function(){this.inherited(arguments);c.connect(this,"onKeyPress",c.hitch(this,function(a){a.keyCode===c.keys.ENTER&&this._onSubmit()}))},onHide:function(){this.inherited(arguments);setTimeout(c.hitch(this,
function(){if(c.isDescendant(a._curFocus,this.domNode))a._curFocus=null;if(c.isDescendant(a._prevFocus,this.domNode))a._prevFocus=null;this.destroyRecursive()}),this.duration)}})});define("text!orion/widgets/templates/NewItemDialog.html",[],function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" waiState="labelledby-${id}_title">\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="onclick: onCancel" title="${buttonCancel}">\n\t\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent">\n\t\t<\!-- Actual content here --\>\n\t\t<div style="display: table">\n\t\t\t<div style="display: table-row">\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<label dojoAttachPoint="itemNameLabel" for="${id}_itemName" style="padding-right: 10">${itemNameLabelText}</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 30em; text-align: left;">\n\t\t\t\t\t<input dojoType="dijit.form.ValidationTextBox" dojoAttachPoint="itemName" id="${id}_itemName" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display: none;" dojoAttachPoint="itemAdvancedInfo">\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<label dojoAttachPoint="itemURLLabel" for="itemURL" style="padding-right: 10">Server Path:</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; width: 40em; text-align: left; padding:5;">\n\t\t\t\t\t<input dojoAttachPoint="itemURL" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display: none;" dojoAttachPoint="itemAdvancedInfo1">\n\t\t\t\t<div style="display: table-cell;"></div>\n\t\t\t\t<div style="display: table-cell;">\n\t\t\t\t\t<input dojoAttachPoint="createCheckbox" id="${id}_createCheckbox" dojoType="dijit.form.CheckBox" checked="checked" value="on" type="checkbox">\n\t\t\t\t\t<label dojoAttachPoint="createCheckboxLabel" for="${id}_createCheckbox">Create if doesn\'t exist</label>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div style="display: table-row">\n\t\t\t\t<div style="display: table-cell; padding: 5"></div>\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<button dojoAttachPoint="newItemButton" dojoType="dijit.form.Button" type="submit" value="OK" style="padding: 20 0 10 0; float: right; clear: both;">OK\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>'});
define("text!dijit/templates/TreeNode.html",[],function(){return'<div class="dijitTreeNode" role="presentation"\n\t><div dojoAttachPoint="rowNode" class="dijitTreeRow" role="presentation" dojoAttachEvent="onmouseenter:_onMouseEnter, onmouseleave:_onMouseLeave, onclick:_onClick, ondblclick:_onDblClick"\n\t\t><img src="${_blankGif}" alt="" dojoAttachPoint="expandoNode" class="dijitTreeExpando" role="presentation"\n\t\t/><span dojoAttachPoint="expandoNodeText" class="dijitExpandoText" role="presentation"\n\t\t></span\n\t\t><span dojoAttachPoint="contentNode"\n\t\t\tclass="dijitTreeContent" role="presentation">\n\t\t\t<img src="${_blankGif}" alt="" dojoAttachPoint="iconNode" class="dijitIcon dijitTreeIcon" role="presentation"\n\t\t\t/><span dojoAttachPoint="labelNode" class="dijitTreeLabel" role="treeitem" tabindex="-1" aria-selected="false" dojoAttachEvent="onfocus:_onLabelFocus"></span>\n\t\t</span\n\t></div>\n\t<div dojoAttachPoint="containerNode" class="dijitTreeContainer" role="presentation" style="display: none;"></div>\n</div>'});
define("text!dijit/templates/Tree.html",[],function(){return'<div class="dijitTree dijitTreeContainer" role="tree"\n\tdojoAttachEvent="onkeypress:_onKeyPress">\n\t<div class="dijitInline dijitTreeIndent" style="position: absolute; top: -9999px" dojoAttachPoint="indentDetector"></div>\n</div>'});
define("dojo/DeferredList",["dojo"],function(b){b.DeferredList=function(c,a,d,f){var e=[];b.Deferred.call(this);var g=this;c.length===0&&!a&&this.resolve([0,[]]);var h=0;b.forEach(c,function(b,j){function k(a,b){e[j]=[a,b];h++;h===c.length&&g.resolve(e)}b.then(function(b){a?g.resolve([j,b]):k(!0,b)},function(a){d?g.reject(a):k(!1,a);if(f)return null;throw a;})})};b.DeferredList.prototype=new b.Deferred;b.DeferredList.prototype.gatherResults=function(c){c=new b.DeferredList(c,!1,!0,!1);c.addCallback(function(a){var d=
[];b.forEach(a,function(a){d.push(a[1])});return d});return c};return b.DeferredList});
define("dojo/cookie",["dojo","dojo/regexp"],function(b){b.cookie=function(c,a,d){var f=document.cookie;if(arguments.length==1){var e=f.match(RegExp("(?:^|; )"+b.regexp.escapeString(c)+"=([^;]*)"));return e?decodeURIComponent(e[1]):void 0}else{d=d||{};f=d.expires;if(typeof f=="number"){var g=new Date;g.setTime(g.getTime()+f*864E5);f=d.expires=g}if(f&&f.toUTCString)d.expires=f.toUTCString();a=encodeURIComponent(a);f=c+"="+a;for(e in d)f+="; "+e,g=d[e],g!==!0&&(f+="="+g);document.cookie=f}};b.cookie.isSupported=
function(){if(!("cookieEnabled"in navigator))this("__djCookieTest__","CookiesAllowed"),navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed",navigator.cookieEnabled&&this("__djCookieTest__","",{expires:-1});return navigator.cookieEnabled};return b.cookie});
define("dijit/tree/TreeStoreModel",["dojo","dijit"],function(b,c){b.declare("dijit.tree.TreeStoreModel",null,{store:null,childrenAttrs:["children"],newItemIdAttr:"id",labelAttr:"",root:null,query:null,deferItemLoadingUntilExpand:!1,constructor:function(a){b.mixin(this,a);this.connects=[];a=this.store;if(!a.getFeatures()["dojo.data.api.Identity"])throw Error("dijit.Tree: store must support dojo.data.Identity");if(a.getFeatures()["dojo.data.api.Notification"])this.connects=this.connects.concat([b.connect(a,
"onNew",this,"onNewItem"),b.connect(a,"onDelete",this,"onDeleteItem"),b.connect(a,"onSet",this,"onSetItem")])},destroy:function(){b.forEach(this.connects,b.disconnect)},getRoot:function(a,d){this.root?a(this.root):this.store.fetch({query:this.query,onComplete:b.hitch(this,function(d){if(d.length!=1)throw Error(this.declaredClass+": query "+b.toJson(this.query)+" returned "+d.length+" items, but must return exactly one item");this.root=d[0];a(this.root)}),onError:d})},mayHaveChildren:function(a){return b.some(this.childrenAttrs,
function(b){return this.store.hasAttribute(a,b)},this)},getChildren:function(a,d,c){var e=this.store;if(e.isItemLoaded(a)){for(var g=[],h=0;h<this.childrenAttrs.length;h++)var i=e.getValues(a,this.childrenAttrs[h]),g=g.concat(i);var j=0;this.deferItemLoadingUntilExpand||b.forEach(g,function(a){e.isItemLoaded(a)||j++});j==0?d(g):b.forEach(g,function(a,b){e.isItemLoaded(a)||e.loadItem({item:a,onItem:function(a){g[b]=a;--j==0&&d(g)},onError:c})})}else{var k=b.hitch(this,arguments.callee);e.loadItem({item:a,
onItem:function(a){k(a,d,c)},onError:c})}},isItem:function(a){return this.store.isItem(a)},fetchItemByIdentity:function(a){this.store.fetchItemByIdentity(a)},getIdentity:function(a){return this.store.getIdentity(a)},getLabel:function(a){return this.labelAttr?this.store.getValue(a,this.labelAttr):this.store.getLabel(a)},newItem:function(a,b,c){var e={parent:b,attribute:this.childrenAttrs[0]},g;this.newItemIdAttr&&a[this.newItemIdAttr]?this.fetchItemByIdentity({identity:a[this.newItemIdAttr],scope:this,
onItem:function(h){h?this.pasteItem(h,null,b,!0,c):(g=this.store.newItem(a,e))&&c!=void 0&&this.pasteItem(g,b,b,!1,c)}}):(g=this.store.newItem(a,e))&&c!=void 0&&this.pasteItem(g,b,b,!1,c)},pasteItem:function(a,d,c,e,g){var h=this.store,i=this.childrenAttrs[0];d&&b.forEach(this.childrenAttrs,function(c){if(h.containsValue(d,c,a)){if(!e){var f=b.filter(h.getValues(d,c),function(b){return b!=a});h.setValues(d,c,f)}i=c}});if(c)if(typeof g=="number"){var j=h.getValues(c,i).slice();j.splice(g,0,a);h.setValues(c,
i,j)}else h.setValues(c,i,h.getValues(c,i).concat(a))},onChange:function(){},onChildrenChange:function(){},onDelete:function(){},onNewItem:function(a,d){d&&this.getChildren(d.item,b.hitch(this,function(a){this.onChildrenChange(d.item,a)}))},onDeleteItem:function(a){this.onDelete(a)},onSetItem:function(a,d){if(b.indexOf(this.childrenAttrs,d)!=-1)this.getChildren(a,b.hitch(this,function(b){this.onChildrenChange(a,b)}));else this.onChange(a)}});return c.tree.TreeStoreModel});
define("dijit/tree/ForestStoreModel",["dojo","dijit","dijit/tree/TreeStoreModel"],function(b,c){b.declare("dijit.tree.ForestStoreModel",c.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,d,c){a===this.root?this.root.children?d(this.root.children):this.store.fetch({query:this.query,
onComplete:b.hitch(this,function(a){this.root.children=a;d(a)}),onError:c}):this.inherited(arguments)},isItem:function(a){return a===this.root?!0:this.inherited(arguments)},fetchItemByIdentity:function(a){if(a.identity==this.root.id){var d=a.scope?a.scope:b.global;a.onItem&&a.onItem.call(d,this.root)}else this.inherited(arguments)},getIdentity:function(a){return a===this.root?this.root.id:this.inherited(arguments)},getLabel:function(a){return a===this.root?this.root.label:this.inherited(arguments)},
newItem:function(a,b,c){return b===this.root?(this.onNewRootItem(a),this.store.newItem(a)):this.inherited(arguments)},onNewRootItem:function(){},pasteItem:function(a,b,f,e,g){if(b===this.root&&!e)this.onLeaveRoot(a);c.tree.TreeStoreModel.prototype.pasteItem.call(this,a,b===this.root?null:b,f===this.root?null:f,e,g);if(f===this.root)this.onAddToRoot(a)},onAddToRoot:function(a){console.log(this,": item ",a," added to root")},onLeaveRoot:function(a){console.log(this,": item ",a," removed from root")},
_requeryTop:function(){var a=this.root.children||[];this.store.fetch({query:this.query,onComplete:b.hitch(this,function(d){this.root.children=d;if(a.length!=d.length||b.some(a,function(a,b){return d[b]!=a}))this.onChildrenChange(this.root,d)})})},onNewItem:function(a,b){this._requeryTop();this.inherited(arguments)},onDeleteItem:function(a){b.indexOf(this.root.children,a)!=-1&&this._requeryTop();this.inherited(arguments)},onSetItem:function(a,b,c,e){this._requeryTop();this.inherited(arguments)}});
return c.tree.ForestStoreModel});define("text!orion/widgets/templates/_ExplorerTreeNode.html",[],function(){return'<div class="dijitTreeNode" waiRole="presentation">\n\t<div dojoAttachPoint="rowNode" class="dijitTreeRow"\n\t\twaiRole="presentation"\n\t\tdojoAttachEvent="onmouseenter:_onMouseEnter, onmouseleave:_onMouseLeave, onclick:_onClick, ondblclick:_onDblClick">\n\t\t<img src="${_blankGif}" alt="" dojoAttachPoint="expandoNode" class="dijitTreeExpando" waiRole="presentation" />\n\t\t<span dojoAttachPoint="expandoNodeText" class="dijitExpandoText" waiRole="presentation"></span>\n\t\t<span dojoAttachPoint="contentNode" class="dijitTreeContent" waiRole="presentation">\n\t\t\t<img src="${_blankGif}" alt="" dojoAttachPoint="iconNode" class="dijitIcon dijitTreeIcon" waiRole="presentation" />\n\t\t\t<\!-- labelNode\'s innerText will be label string --\>\n\t\t\t<span dojoAttachPoint="labelNode" class="dijitTreeLabel" wairole="treeitem" tabindex="-1" waiState="selected-false" dojoAttachEvent="onfocus:_onLabelFocus"></span>\n\t\t\t<a href="" dojoAttachPoint="followLink"><img src="${_blankGif}" alt="" dojoAttachPoint="followNode" class="dijitIcon dijitTreeIcon follow" waiRole="link"></a>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitTreeContainer"\n\t\twaiRole="presentation" style="display: none;">\n\t</div>\n</div>'});
define("text!orion/widgets/templates/DirectoryPrompterDialog.html",[],function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" waiState="labelledby-${id}_title">\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="onclick: onCancel" title="${buttonCancel}">\n\t\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent">\n\t\t<\!-- Actual content here --\>\n\t\t\t<div style="display: table">\n\t\t\t\t<div style="display: table-row" dojoAttachPoint="messageCell">\n\t\t\t\t\t<div style="display: table-cell;"><div style="width: 25em; padding-bottom: 5px;">${message}</div></div>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-row"> \n\n\t\t\t\t\t<div style="display: table-cell; padding: 1px; vertical-align: bottom;">\n\t\t\t\t\t\t<div dojoAttachPoint="treeContainerNode" id="${id}_treeContainerNode" dojoType="dijit.layout.BorderContainer" style="width:25em; height:25em; overflow:auto;" design="sidebar" gutters="true">\n\t\t\t\t\t\t\t<div dojoAttachPoint="treeContentPane" class="dijitDialogPaneContent" id="${id}_treeContentPane dojoType="dijit.layout.ContentPane" region="center" gutters="true">\n\t\t\t\t\t\t\t\t<div dojoAttachPoint="browseDirectoryExplorerTree" class="explorerTreeClass" id="${id}_browseDirectoryExplorerTree" style="margin-top: -3px;"></div> \n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px; vertical-align: bottom;">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px; vertical-align: bottom;">\n\t\t\t\t\t</div>\n\t\t\t\t</div> \n\t\t\t\t<div style="display: table-row">\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t\n\t\t\t\t\t\t<button dojoAttachPoint="directoryBrowserButton" dojoType="dijit.form.Button" type="submit" value="OK" style="padding: 20 0 10 0; float: right; clear: both;">${buttonOk}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div> <\!-- end table --\>\n\t</div> <\!-- content pane --\>\n</div>'});
define("dojox",["dojo"],function(b){return dojox=b._dojox||{}});define("text!dijit/templates/ProgressBar.html",[],function(){return'<div class="dijitProgressBar dijitProgressBarEmpty" role="progressbar"\n\t><div  dojoAttachPoint="internalProgress" class="dijitProgressBarFull"\n\t\t><div class="dijitProgressBarTile" role="presentation"></div\n\t\t><span style="visibility:hidden">&nbsp;</span\n\t></div\n\t><div dojoAttachPoint="labelNode" class="dijitProgressBarLabel" id="${id}_label"></div\n\t><img dojoAttachPoint="indeterminateHighContrastImage" class="dijitProgressBarIndeterminateHighContrastImage" alt=""\n/></div>'});
define("dojo/cldr/nls/number",{root:{scientificFormat:"#E0","currencySpacing-afterCurrency-currencyMatch":"[:letter:]",infinity:"\u221e",list:";",percentSign:"%",minusSign:"-","currencySpacing-beforeCurrency-surroundingMatch":"[:digit:]","decimalFormat-short":"000T","currencySpacing-afterCurrency-insertBetween":"\u00a0",nan:"NaN",nativeZeroDigit:"0",plusSign:"+","currencySpacing-afterCurrency-surroundingMatch":"[:digit:]","currencySpacing-beforeCurrency-currencyMatch":"[:letter:]",currencyFormat:"\u00a4\u00a0#,##0.00",
perMille:"\u2030",group:",",percentFormat:"#,##0%",decimalFormat:"#,##0.###",decimal:".",patternDigit:"#","currencySpacing-beforeCurrency-insertBetween":"\u00a0",exponential:"E"},ar:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,"en-au":!0,"en-gb":!0,es:!0,fi:!0,fr:!0,"fr-ch":!0,he:!0,hu:!0,it:!0,ja:!0,ko:!0,nb:!0,nl:!0,pl:!0,pt:!0,"pt-pt":!0,ro:!0,ru:!0,sk:!0,sl:!0,sv:!0,th:!0,tr:!0,zh:!0,"zh-hant":!0,"zh-hk":!0});
define("dojo/cldr/nls/en/number",{group:",",percentSign:"%",exponential:"E",scientificFormat:"#E0",percentFormat:"#,##0%",list:";",infinity:"\u221e",patternDigit:"#",minusSign:"-",decimal:".",nan:"NaN",nativeZeroDigit:"0",perMille:"\u2030",decimalFormat:"#,##0.###",currencyFormat:"\u00a4#,##0.00;(\u00a4#,##0.00)",plusSign:"+","decimalFormat-short":"000T"});
define("dojo/number",["dojo","dojo/i18n","i18n!dojo/cldr/nls/number","dojo/string","dojo/regexp"],function(b){b.getObject("number",!0,b);b.number.format=function(c,a){var a=b.mixin({},a||{}),d=b.i18n.normalizeLocale(a.locale),d=b.i18n.getLocalization("dojo.cldr","number",d);a.customs=d;d=a.pattern||d[(a.type||"decimal")+"Format"];return isNaN(c)||Math.abs(c)==Infinity?null:b.number._applyPattern(c,d,a)};b.number._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;b.number._applyPattern=function(c,a,d){var d=
d||{},f=d.customs.group,e=d.customs.decimal,a=a.split(";"),g=a[0],a=a[c<0?1:0]||"-"+g;if(a.indexOf("%")!=-1)c*=100;else if(a.indexOf("\u2030")!=-1)c*=1E3;else if(a.indexOf("\u00a4")!=-1)f=d.customs.currencyGroup||f,e=d.customs.currencyDecimal||e,a=a.replace(/\u00a4{1,3}/,function(a){return d[["symbol","currency","displayName"][a.length-1]]||d.currency||""});else if(a.indexOf("E")!=-1)throw Error("exponential notation not supported");var h=b.number._numberPatternRE,g=g.match(h);if(!g)throw Error("unable to find a number expression in pattern: "+
a);if(d.fractional===!1)d.places=0;return a.replace(h,b.number._formatAbsolute(c,g[0],{decimal:e,group:f,places:d.places,round:d.round}))};b.number.round=function(b,a,d){d=10/(d||10);return(d*+b).toFixed(a)/d};(0.9).toFixed()==0&&function(){var c=b.number.round;b.number.round=function(a,b,f){var e=Math.pow(10,-b||0),g=Math.abs(a);if(!a||g>=e||g*Math.pow(10,b+1)<5)e=0;return c(a,b,f)+(a>0?e:-e)}}();b.number._formatAbsolute=function(c,a,d){d=d||{};if(d.places===!0)d.places=0;if(d.places===Infinity)d.places=
6;var a=a.split("."),f=typeof d.places=="string"&&d.places.indexOf(","),e=d.places;if(f)e=d.places.substring(f+1);else if(!(e>=0))e=(a[1]||[]).length;d.round<0||(c=b.number.round(c,e,d.round));var c=String(Math.abs(c)).split("."),g=c[1]||"";if(a[1]||d.places){if(f)d.places=d.places.substring(0,f);f=d.places!==void 0?d.places:a[1]&&a[1].lastIndexOf("0")+1;f>g.length&&(c[1]=b.string.pad(g,f,"0",!0));e<g.length&&(c[1]=g.substr(0,e))}else c[1]&&c.pop();e=a[0].replace(",","");f=e.indexOf("0");f!=-1&&(f=
e.length-f,f>c[0].length&&(c[0]=b.string.pad(c[0],f)),e.indexOf("#")==-1&&(c[0]=c[0].substr(c[0].length-f)));var e=a[0].lastIndexOf(","),h,i;e!=-1&&(h=a[0].length-e-1,a=a[0].substr(0,e),e=a.lastIndexOf(","),e!=-1&&(i=a.length-e-1));a=[];for(e=c[0];e;)f=e.length-h,a.push(f>0?e.substr(f):e),e=f>0?e.slice(0,f):"",i&&(h=i,delete i);c[0]=a.reverse().join(d.group||",");return c.join(d.decimal||".")};b.number.regexp=function(c){return b.number._parseInfo(c).regexp};b.number._parseInfo=function(c){var c=
c||{},a=b.i18n.normalizeLocale(c.locale),a=b.i18n.getLocalization("dojo.cldr","number",a),d=c.pattern||a[(c.type||"decimal")+"Format"],f=a.group,e=a.decimal,g=1;if(d.indexOf("%")!=-1)g/=100;else if(d.indexOf("\u2030")!=-1)g/=1E3;else{var h=d.indexOf("\u00a4")!=-1;h&&(f=a.currencyGroup||f,e=a.currencyDecimal||e)}a=d.split(";");a.length==1&&a.push("-"+a[0]);a=b.regexp.buildGroupRE(a,function(a){a="(?:"+b.regexp.escapeString(a,".")+")";return a.replace(b.number._numberPatternRE,function(a){var d={signed:!1,
separator:c.strict?f:[f,""],fractional:c.fractional,decimal:e,exponent:!1},a=a.split("."),h=c.places;a.length==1&&g!=1&&(a[1]="###");if(a.length==1||h===0)d.fractional=!1;else{h===void 0&&(h=c.pattern?a[1].lastIndexOf("0")+1:Infinity);if(h&&c.fractional==void 0)d.fractional=!0;!c.places&&h<a[1].length&&(h+=","+a[1].length);d.places=h}a=a[0].split(",");if(a.length>1&&(d.groupSize=a.pop().length,a.length>1))d.groupSize2=a.pop().length;return"("+b.number._realNumberRegexp(d)+")"})},!0);h&&(a=a.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g,
function(a,d,e,f){a=b.regexp.escapeString(c[["symbol","currency","displayName"][e.length-1]]||c.currency||"");d=d?"[\\s\\xa0]":"";f=f?"[\\s\\xa0]":"";return!c.strict?(d&&(d+="*"),f&&(f+="*"),"(?:"+d+a+f+")?"):d+a+f}));return{regexp:a.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:f,decimal:e,factor:g}};b.number.parse=function(c,a){var d=b.number._parseInfo(a),f=RegExp("^"+d.regexp+"$").exec(c);if(!f)return NaN;var e=f[1];if(!f[1]){if(!f[2])return NaN;e=f[2];d.factor*=-1}e=e.replace(RegExp("["+d.group+"\\s\\xa0]",
"g"),"").replace(d.decimal,".");return e*d.factor};b.number._realNumberRegexp=function(c){c=c||{};if(!("places"in c))c.places=Infinity;if(typeof c.decimal!="string")c.decimal=".";if(!("fractional"in c)||/^0/.test(c.places))c.fractional=[!0,!1];if(!("exponent"in c))c.exponent=[!0,!1];if(!("eSigned"in c))c.eSigned=[!0,!1];var a=b.number._integerRegexp(c),d=b.regexp.buildGroupRE(c.fractional,function(a){var b="";a&&c.places!==0&&(b="\\"+c.decimal,c.places==Infinity?b="(?:"+b+"\\d+)?":b+="\\d{"+c.places+
"}");return b},!0),f=b.regexp.buildGroupRE(c.exponent,function(a){return a?"([eE]"+b.number._integerRegexp({signed:c.eSigned})+")":""});a+=d;d&&(a="(?:(?:"+a+")|(?:"+d+"))");return a+f};b.number._integerRegexp=function(c){c=c||{};if(!("signed"in c))c.signed=[!0,!1];if("separator"in c){if(!("groupSize"in c))c.groupSize=3}else c.separator="";var a=b.regexp.buildGroupRE(c.signed,function(a){return a?"[-+]":""},!0),d=b.regexp.buildGroupRE(c.separator,function(a){if(!a)return"(?:\\d+)";a=b.regexp.escapeString(a);
a==" "?a="\\s":a=="\u00a0"&&(a="\\s\\xa0");var d=c.groupSize,g=c.groupSize2;return g?(a="(?:0|[1-9]\\d{0,"+(g-1)+"}(?:["+a+"]\\d{"+g+"})*["+a+"]\\d{"+d+"})",d-g>0?"(?:"+a+"|(?:0|[1-9]\\d{0,"+(d-1)+"}))":a):"(?:0|[1-9]\\d{0,"+(d-1)+"}(?:["+a+"]\\d{"+d+"})*)"},!0);return a+d};return b.number});define("text!orion/widgets/templates/ImportDialog.html",[],function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" waiState="labelledby-${id}_title">\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="onclick: onCancel" title="${buttonCancel}">\n\t\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent">\n\t\t<\!-- Actual content here --\>\n\n\t\t<form method="post" id="importDialog.myForm"\n\t\t\tenctype="multipart/form-data" >\n\t\t\t<fieldset>\n\t\t\t\t<div style="display: table-row">\n\t\t\t\t\t<div style="display: table-row; height: 20px">\n\t\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t\t\tFile:\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div style="display: table-cell; padding: 1px; vertical-align: top;">\n\t\t\t\t\t\t\t<div id="files" dojoType="dojox.form.uploader.FileList" uploaderId="importDialog.uploader"></div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t\t\t<input name="uploadedfile" multiple="false" type="file" id="importDialog.uploader" force="iframe"\n\t\t\t\t\t\t\t\tdojoType="dojox.form.Uploader" style="height: 20px" label="Browse..." >\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="display: table-row">\n\t\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div style="display: table-cell; padding: 1px;">\n\t\t\t\t\t\t\t<input type="submit" label="Finish" value="OK" dojoType="dijit.form.Button"\n\t\t\t\t\t\t\t\tstyle="padding: 20 0 10 0; float: right; clear: both;"/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\t\n\t\t\t</fieldset>\n\t\t</form>\n\t</div>\n</div>'});
define("dojo/io/iframe",["dojo"],function(b){b.getObject("io",!0,b);b.io.iframe={create:function(c,a,d){if(window[c])return window[c];if(window.frames[c])return window.frames[c];var f=null;d||(b.config.useXDomain&&!b.config.dojoBlankHtmlUrl&&console.warn("dojo.io.iframe.create: When using cross-domain Dojo builds, please save dojo/resources/blank.html to your domain and set djConfig.dojoBlankHtmlUrl to the path on your domain to blank.html"),d=b.config.dojoBlankHtmlUrl||b.moduleUrl("dojo","resources/blank.html"));
f=b.place('<iframe id="'+c+'" name="'+c+'" src="'+d+'" onload="'+a+'" style="position: absolute; left: 1px; top: 1px; height: 1px; width: 1px; visibility: hidden">',b.body());return window[c]=f},setSrc:function(c,a,d){try{if(d){var f;(f=b.isIE||b.isWebKit?c.contentWindow.document:c.contentWindow)?f.location.replace(a):c.location=a}else b.isWebKit?c.location=a:frames[c.name].location=a}catch(e){console.log("dojo.io.iframe.setSrc: ",e)}},doc:function(c){return c.contentDocument||c.name&&c.document&&
b.doc.getElementsByTagName("iframe")[c.name].contentWindow&&b.doc.getElementsByTagName("iframe")[c.name].contentWindow.document||c.name&&b.doc.frames[c.name]&&b.doc.frames[c.name].document||null},send:function(c){if(!this._frame)this._frame=this.create(this._iframeName,b._scopeName+".io.iframe._iframeOnload();");c=b._ioSetArgs(c,function(a){a.canceled=!0;a.ioArgs._callNext()},function(a){var d=null;try{var c=a.ioArgs,e=b.io.iframe,g=e.doc(e._frame),h=c.handleAs,d=g;if(h!="html")if(h=="xml"){if(b.isIE<
9||b.isIE&&b.isQuirks){b.query("a",e._frame.contentWindow.document.documentElement).orphan();var i=e._frame.contentWindow.document.documentElement.innerText,i=i.replace(/>\s+</g,"><"),i=b.trim(i),d=b._contentHandlers.xml({responseText:i})}}else d=g.getElementsByTagName("textarea")[0].value,h=="json"?d=b.fromJson(d):h=="javascript"&&(d=b.eval(d))}catch(j){d=j}finally{c._callNext()}return d},function(a,b){b.ioArgs._hasError=!0;b.ioArgs._callNext();return a});c.ioArgs._callNext=function(){if(!this._calledNext)this._calledNext=
!0,b.io.iframe._currentDfd=null,b.io.iframe._fireNextRequest()};this._dfdQueue.push(c);this._fireNextRequest();b._ioWatch(c,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 c},_currentDfd:null,_dfdQueue:[],_iframeName:b._scopeName+"IoIframe",_fireNextRequest:function(){try{if(!(this._currentDfd||this._dfdQueue.length==0)){do var c=this._currentDfd=this._dfdQueue.shift();
while(c&&c.canceled&&this._dfdQueue.length);if(!c||c.canceled)this._currentDfd=null;else{var a=c.ioArgs,d=a.args;a._contentToClean=[];var f=b.byId(d.form),e=d.content||{};if(f){if(e){var g=function(d,c){b.create("input",{type:"hidden",name:d,value:c},f);a._contentToClean.push(d)},h;for(h in e){var i=e[h];if(b.isArray(i)&&i.length>1){var j;for(j=0;j<i.length;j++)g(h,i[j])}else f[h]?f[h].value=i:g(h,i)}}var k=f.getAttributeNode("action"),l=f.getAttributeNode("method"),m=f.getAttributeNode("target");
if(d.url)a._originalAction=k?k.value:null,k?k.value=d.url:f.setAttribute("action",d.url);if(!l||!l.value)l?l.value=d.method?d.method:"post":f.setAttribute("method",d.method?d.method:"post");a._originalTarget=m?m.value:null;m?m.value=this._iframeName:f.setAttribute("target",this._iframeName);f.target=this._iframeName;b._ioNotifyStart(c);f.submit()}else g=d.url+(d.url.indexOf("?")>-1?"&":"?")+a.query,b._ioNotifyStart(c),this.setSrc(this._frame,g,!0)}}}catch(n){c.errback(n)}},_iframeOnload:function(){var c=
this._currentDfd;if(c){var c=c.ioArgs,a=b.byId(c.args.form);if(a){for(var d=c._contentToClean,f=0;f<d.length;f++)for(var e=d[f],g=0;g<a.childNodes.length;g++){var h=a.childNodes[g];if(h.name==e){b.destroy(h);break}}c._originalAction&&a.setAttribute("action",c._originalAction);if(c._originalTarget)a.setAttribute("target",c._originalTarget),a.target=c._originalTarget}c._finished=!0}else this._fireNextRequest()}};return b.io.iframe});define("text!dijit/form/templates/DropDownBox.html",[],function(){return'<div class="dijit dijitReset dijitInlineTable dijitLeft"\n\tid="widget_${id}"\n\trole="combobox"\n\t><div class=\'dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton dijitArrowButtonContainer\'\n\t\tdojoAttachPoint="_buttonNode, _popupStateNode" role="presentation"\n\t\t><input class="dijitReset dijitInputField dijitArrowButtonInner" value="&#9660; " type="text" tabIndex="-1" readonly="readonly" role="presentation"\n\t\t\t${_buttonInputDisabled}\n\t/></div\n\t><div class=\'dijitReset dijitValidationContainer\'\n\t\t><input class="dijitReset dijitInputField dijitValidationIcon dijitValidationInner" value="&#935; " type="text" tabIndex="-1" readonly="readonly" role="presentation"\n\t/></div\n\t><div class="dijitReset dijitInputField dijitInputContainer"\n\t\t><input class=\'dijitReset dijitInputInner\' ${!nameAttrSetting} type="text" autocomplete="off"\n\t\t\tdojoAttachPoint="textbox,focusNode" role="textbox" aria-haspopup="true"\n\t/></div\n></div>'});
define("dijit/form/nls/ComboBox",{root:{previousMessage:"Previous choices",nextMessage:"More choices"},zh:!0,"zh-tw":!0,tr:!0,th:!0,sv:!0,sl:!0,sk:!0,ru:!0,ro:!0,pt:!0,"pt-pt":!0,pl:!0,nl:!0,nb:!0,ko:!0,kk:!0,ja:!0,it:!0,hu:!0,he:!0,fr:!0,fi:!0,es:!0,el:!0,de:!0,da:!0,cs:!0,ca:!0,ar:!0});define("text!orion/widgets/templates/SFTPConnectionDialog.html",[],function(){return'<div class="dijitDialog" tabindex="-1" waiRole="dialog" waiState="labelledby-${id}_title">\n\t<div dojoType="dojo.data.ItemFileReadStore" data="sftpConnectionStoreData" jsId="sftpConnectionStore">\n\t</div>\n\t<div dojoAttachPoint="titleBar" class="dijitDialogTitleBar">\n\t\t<span dojoAttachPoint="titleNode" class="dijitDialogTitle" id="${id}_title"></span>\n\t\t<span dojoAttachPoint="closeButtonNode" class="dijitDialogCloseIcon" dojoAttachEvent="onclick: onCancel" title="${buttonCancel}">\n\t\t\t<span dojoAttachPoint="closeText" class="closeText" title="${buttonCancel}">x</span>\n\t\t</span>\n\t</div>\n\t<div dojoAttachPoint="containerNode" class="dijitDialogPaneContent">\n\t\t<\!-- Actual content here --\>\n\t\t<div style="display: table">\n\t\t\t<div style="display: table-row">\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<label dojoAttachPoint="locationLabel" for="${id}_sftpPath" style="padding-right: 10">${locationLabelText}</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left;">\n\t\t\t\t\t<div dojoType="dijit.form.ComboBox" store="sftpConnectionStore" style="display: inline-block; width: 88%;" dojoAttachPoint="sftpConnectionList" searchAttr="name">\n\t\t\t\t\t</div>\n\t\t\t\t\t<div dojoType="dijit.form.DropDownButton">\n\t\t\t\t\t    <span>New</span>\n\t\t\t    \t\t<div dojoType="dijit.TooltipDialog">\n\t\t\t\t\t\t\t<div style="display: table">\n\t\t\t\t\t\t\t\t<div style="display: table-row">\n\t\t\t\t\t\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t\t\t\t\t\t<label dojoAttachPoint="sftpHostLabel" for="${id}_sftpHost" style="padding-right: 10">${sftpHostLabelText}</label>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left;">\n\t\t\t\t\t\t\t\t\t\t<input dojoAttachPoint="sftpHost" id="${id}_sftpHost" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div style="display: table-row">\n\t\t\t\t\t\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t\t\t\t\t\t<label dojoAttachPoint="sftpPathLabel" for="${id}_sftpPath" style="padding-right: 10">${sftpPathLabelText}</label>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left;">\n\t\t\t\t\t\t\t\t\t\t<input dojoAttachPoint="sftpPath" id="${id}_sftpPath" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\t\n\t\t\t\t\t\t\t\t<div style="display: table-row">\n\t\t\t\t\t\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t\t\t\t\t\t<label dojoAttachPoint="sftpUserLabel" for="${id}_sftpUser" style="padding-right: 10">${sftpUserLabelText}</label>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left;">\n\t\t\t\t\t\t\t\t\t\t<input dojoAttachPoint="sftpUser" id="${id}_sftpUser" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div style="display: table-row">\n\t\t\t\t\t\t\t\t\t<div style="display: table-cell; padding: 5"></div>\n\t\t\t\t\t\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t\t\t\t\t\t<button dojoAttachPoint="addSFTPConnection" type="submit" dojoType="dijit.form.Button" style="padding: 20 0 10 0; float: right; clear: both;">Add</button>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div><\!-- End inner table--\>\n\t\t\t    \t\t</div><\!-- End TooltipDialog --\>\n\t\t\t    \t</div><\!-- End DropDownButton --\>\n\t\t\t\t</div><\!-- End table cell --\>\n\t\t\t</div><\!-- End table row --\>\n\t\t\t<div style="display: table-row">\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<label dojoAttachPoint="sftpPasswordLabel" for="${id}_sftpPassword" style="padding-right: 10">${sftpPasswordLabelText}</label>\n\t\t\t\t</div>\n\t\t\t\t<div style="display: table-cell; padding: 5; width: 40em; text-align: left;">\n\t\t\t\t\t<input type="password" dojoAttachPoint="sftpPassword" id="${id}_sftpPassword" style="display: inline-block; width: 98%;" value="">\n\t\t\t\t</div>\n\t\t\t</div>\t\n\t\t\t<div style="display: table-row">\n\t\t\t\t<div style="display: table-cell; padding: 5"></div>\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<p>If the same file exists in both the source and destination:</p>\n\t\t\t\t    <input type="radio" dojoAttachPoint="overwriteCancel" dojoType="dijit.form.RadioButton" name="overwriteOption" id="overwriteCancel" checked value="overwriteCancel" />\n\t\t\t\t    <label for="radioOne">Cancel the transfer</label>\n\t\t\t\t    <br />\n\t\t\t\t    <input type="radio" dojoAttachPoint="overwriteAll" dojoType="dijit.form.RadioButton" name="overwriteOption" id="overwriteAll"/>\n\t\t\t\t    <label for="radioOne">Always overwrite destination</label>\n\t\t\t\t    <br />\n\t\t\t\t    <input type="radio" dojoAttachPoint="overwriteOlder" dojoType="dijit.form.RadioButton" name="overwriteOption" id="overwriteOlder"/>\n\t\t\t\t    <label for="radioOne">Overwrite if source is newer</label>\n\t\t\t\t</div>\n\t\t\t</div><\!-- End table row --\>\n\t\t\t<div style="display: table-row">\n\t\t\t\t<div style="display: table-cell; padding: 5"></div>\n\t\t\t\t<div style="display: table-cell; padding: 5">\n\t\t\t\t\t<button dojoAttachPoint="sftpConnectionButton" dojoType="dijit.form.Button" type="submit" value="OK" style="padding: 20 0 10 0; float: right; clear: both;">${buttonOk}\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t</div><\!-- End table row --\>\n\t\t</div><\!-- End table --\>\n\t</div><\!-- End dijitDialogPaneContent --\>\n</div>'});
define("orion/textview/keyBinding",[],function(){function b(a,b,c,e,g){this.keyCode=typeof a==="string"?a.toUpperCase().charCodeAt(0):a;this.mod1=b!==void 0&&b!==null?b:!1;this.mod2=c!==void 0&&c!==null?c:!1;this.mod3=e!==void 0&&e!==null?e:!1;this.mod4=g!==void 0&&g!==null?g:!1}var c=window.navigator.platform.indexOf("Mac")!==-1;b.prototype={match:function(a){return this.keyCode===a.keyCode?this.mod1!==(c?a.metaKey:a.ctrlKey)?!1:this.mod2!==a.shiftKey?!1:this.mod3!==a.altKey?!1:c&&this.mod4!==a.ctrlKey?
!1:!0:!1},equals:function(a){return!a?!1:this.keyCode!==a.keyCode?!1:this.mod1!==a.mod1?!1:this.mod2!==a.mod2?!1:this.mod3!==a.mod3?!1:this.mod4!==a.mod4?!1:!0}};return{KeyBinding:b}});
define("orion/contentTypes",[],function(){function b(a,b){function d(a,b,c,e){var c=b.filename.indexOf(c)>=0,f=b.extension.indexOf(e)>=0;if(c||f)if(!a||c&&a.extension.indexOf(e)>=0)return b;return a}for(var c=a&&a.split(".").pop(),f=null,k=0;k<b.length;k++){var l=b[k];d(f,l,a,c)===l&&(f=l)}return f}function c(b){this.serviceRegistry=b;this.map=function(a){function b(a){return a===null||typeof a==="undefined"?[]:a instanceof Array?a:[a]}for(var a=a.getServiceReferences(d).concat(a.getServiceReferences(f)),
c={},e=0;e<a.length;e++)for(var k=b(a[e].getProperty("contentTypes")),l=0;l<k.length;l++){var m=k[l];c[m.id]||(c[m.id]={id:m.id,name:m.name,image:m.image,"extends":m["extends"],extension:b(m.extension),filename:b(m.filename)})}return c}(b);b.registerService(a,this)}var a="orion.core.contenttypes",d="orion.core.contenttype",f="orion.file.contenttype";c.prototype={getContentTypes:function(){var a=this.getContentTypesMap(),b=[],d;for(d in a)a.hasOwnProperty(d)&&b.push(a[d]);return b},getContentTypesMap:function(){return this.map},
getFileContentType:function(a){return b(a.Name,this.getContentTypes())},getFilenameContentType:function(a){return b(a,this.getContentTypes())},getContentType:function(a){return this.map[a]||null},isExtensionOf:function(a,b){a=typeof a==="string"?this.getContentType(a):a;b=typeof b==="string"?this.getContentType(b):b;if(!a||!b)return!1;if(a.id===b.id)return!0;else for(var d=a,c={};d&&(d=this.getContentType(d["extends"]));){if(d.id===b.id)return!0;if(c[d.id])throw Error("Cycle: "+d.id);c[d.id]=!0}return!1},
isSomeExtensionOf:function(a,b){for(var d=0;d<b.length;d++)if(this.isExtensionOf(a,b[d]))return!0;return!1}};return{ContentTypeService:c,getFilenameContentType:b}});
define("orion/URITemplate",[],function(){function b(a){this._text=a}function c(a,b){if(b==="U")return encodeURIComponent(a).replace(/[!'()*]/g,function(a){return"%"+a.charCodeAt(0).toString(16).toUpperCase()});if(b==="U+R")return encodeURI(a).replace(/%5B/g,"[").replace(/%5D/g,"]");if(b==="U+R-,")return encodeURI(a).replace(/%5B/g,"[").replace(/%5D/g,"]").replace(/,/g,"%2C");throw Error("Unknown allowed character set: "+b);}function a(a,b,d){for(var e=[],f=0;f<a.length;f++)typeof a[f]!=="undefined"&&
e.push(c(a[f],b));return e.join(d)}function d(a,b,d,e){for(var f=Object.keys(a),g=[],h=0;h<f.length;h++)typeof a[f[h]]!=="undefined"&&g.push(c(f[h],b)+d+c(a[f[h]],b));return g.join(e)}function f(a){if(a.length===0)throw Error("Invalid Expression: 0 length expression");(this._operator=g[a[0]])?a=a.substring(1):this._operator=g.NUL;for(var b=[],d=a.split(","),c=0;c<d.length;c++){var e=d[c].match(h);if(e===null)throw Error("Bad VarSpec: "+a);b.push({name:e[1],explode:!!e[2],prefix:e[3]?parseInt(e[3],
10):-1})}this._varSpecList=b}function e(a){for(var d=[],c=0,e=a.indexOf("{",c);e!==-1;){d.push(new b(a.substring(c,e)));c=a.indexOf("}",e+1);if(c===-1)throw Error("Invalid template: "+a);d.push(new f(a.substring(e+1,c)));c+=1;e=a.indexOf("{",c)}d.push(new b(a.substring(c)));this._templateComponents=d}var g={NUL:{first:"",sep:",",named:!1,ifemp:"",allow:"U"},"+":{first:"",sep:",",named:!1,ifemp:"",allow:"U+R"},".":{first:".",sep:",",named:!1,ifemp:"",allow:"U"},"/":{first:"/",sep:"/",named:!1,ifemp:"",
allow:"U"},";":{first:";",sep:";",named:!0,ifemp:"",allow:"U"},"?":{first:"?",sep:"&",named:!0,ifemp:"=",allow:"U"},"&":{first:"&",sep:"&",named:!0,ifemp:"=",allow:"U"},"#":{first:"#",sep:",",named:!1,ifemp:"",allow:"U+R"},",":{first:"",sep:",",named:!1,ifemp:"",allow:"U+R-,"}},h=/^((?:(?:[a-zA-Z0-9_])|(?:%[0-9A-F][0-9A-F]))(?:(?:[a-zA-Z0-9_.])|(?:%[0-9A-F][0-9A-F]))*)(?:(\*)|:([0-9]+))?$/;b.prototype={expand:function(){return encodeURI(this._text)}};f.prototype={expand:function(b){for(var e=[],f=
0;f<this._varSpecList.length;f++){var g=this._varSpecList[f],h=g.name,n=b[h],o=typeof n;if(o!=="undefined"&&n!==null){var p=e.length===0?this._operator.first:this._operator.sep;if(o==="string")this._operator.named&&(p+=c(h,"U+R"),p+=n.length===0?this._operator.ifemp:"="),g.prefix!==-1&&g.prefix<n.length&&(n=n.substring(0,g.prefix)),p+=c(n,this._operator.allow);else if(Array.isArray(n))g.explode?p+=a(n,this._operator.allow,this._operator.sep):(this._operator.named&&(p+=c(h,"U+R"),p+=n.length===0?this._operator.ifemp:
"="),p+=a(n,this._operator.allow,","));else if(o==="object")g.explode?p+=d(n,this._operator.allow,"=",this._operator.sep):(this._operator.named&&(p+=c(h,"U+R"),p+=Object.keys(n).length===0?this._operator.ifemp:"="),p+=d(n,this._operator.allow,",",","));else throw Error("bad param type: "+h+" : "+o);e.push(p)}}return e.join("")}};e.prototype={expand:function(a){for(var b=[],d=0;d<this._templateComponents.length;d++)b.push(this._templateComponents[d].expand(a));return b.join("")}};return e});
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/compare/compareUtils",["dojo","dijit"],function(b,c){var a=a||{};a.compareUtils=a.compareUtils||{};a.compareUtils.lookUpMapper=function(a,b,c){for(var g=0,h=0;h<a.length;h++){var i=a[h][b];i===0&&(i=1);if(c>=g&&c<g+i)return{mapperIndex:h,startFrom:g};if(h===a.length-1)break;g+=a[h][b]}return{mapperIndex:a.length-1,startFrom:g}};a.compareUtils.lookUpLineIndex=function(a,b,c){if(c===0)return 0;for(var g=0,h=0;h<c;h++)g+=a[h][b];return g};a.compareUtils.updateMapper=function(b,c,e,g,h){if(g!==
h&&(g>0||h>0)){var i=a.compareUtils.lookUpMapper(b,c,e);if(!(i.mapperIndex<0)){if(g>0)for(var j=e-i.startFrom,e=i.mapperIndex;e<b.length;e++){j=b[e][c]-j;if(g<=j){b[e][c]-=g;break}b[e][c]-=j;g-=j;j=0}h>0&&(b[i.mapperIndex][c]+=h)}}};a.compareUtils.overlapMapper=function(a,b,c,g,h){a=c+a[b]-1;a<c&&(a=c);h<g&&(h=g);return a<g||h<c?!1:!0};a.compareUtils.findFirstDiff=function(b,c,e,g){for(var h=0,i=void 0,j=0;j<b.length;j++){if(h>g)break;if(a.compareUtils.overlapMapper(b[j],c,h,e,g)&&(i={mapperIndex:j,
startFrom:h},b[j][2]!==0))break;h+=b[j][c]}return i};a.compareUtils.matchMapper=function(b,c,e,g){if(b.length===0)return e;var h=e+Math.round((g-e)/3),i=a.compareUtils.findFirstDiff(b,c,e,g),j=b[i.mapperIndex][c]===0?i.startFrom:i.startFrom+b[i.mapperIndex][c]-1,k=a.compareUtils.lookUpLineIndex(b,1-c,i.mapperIndex),l=i.startFrom-e;return b[i.mapperIndex][2]===0?k-l:h>=i.startFrom&&h<=j?k-Math.round((g-e)/3):h<i.startFrom?k-l:(b[i.mapperIndex][1-c]===0?k:k+b[i.mapperIndex][1-c]-1)-(j-e)};a.compareUtils.getMapperLineCount=
function(a){for(var b=0,c=0;c<a.length;c++)b+=Math.max(a[c][0],a[c][1]);return b};a.compareUtils.getAnnotationIndex=function(a,b){for(var c=0;c<a.length;c++)if(a[c][0]===b)return c;return-1};a.compareUtils.getAnnotationMapperIndex=function(a,b){return a[b][1]};a.compareUtils.getAnnotationIndexByMapper=function(a,b){for(var c=0;c<a.length;c++)if(a[c][1]===b)return{current:c,prev:c-1,next:c+1};return{current:-1,prev:-1,next:-1}};a.compareUtils.isMapperConflict=function(a,b){return b<0?!1:!a[b][3]?!1:
a[b][3]===1};a.compareUtils.mergeDiffBlocks=function(a,b,c,g,h,i){for(var j=0;j<b.length;j++){var k=b[j][0],l=c[b[j][1]];if(l[0]>0){for(var m="",n=0;n<l[0];n++)m=m+g[l[2]-1+n].substring(h)+i;k=a.getLineStart(k);a.setText(m,k,k)}}};a.compareUtils.generateCompareHref=function(a,c){var e=require.toUrl("compare/compare.html"),g="",h="";c&&(c.readonly&&(g="?readonly"),c.conflict&&(g===""?g="?conflict":g+="&conflict"),c.block&&c.block>0&&(h=",block="+c.block,c.change&&c.change>0&&(h=h+"&change="+c.change)));
return b.create("a",{href:e+g+"#"+a+h}).href};a.compareUtils.parseCompareHash=function(a){var b={complexURL:a},c=a.indexOf(",block=");if(c>0){b.complexURL=a.substring(0,c);a=a.substring(c+1).split("&");for(c=0;c<a.length;c++){var g=a[c].split("=");if(g.length===2)if(g[0]==="block")b.block=parseInt(g[1]);else if(g[0]==="change")b.change=parseInt(g[1])}}return b};a.compareUtils.destroyDijit=function(a){(a=c.byId(a))&&a.destroyRecursive()};a.compareUtils.getDijitSizeStyle=function(a){return"height:"+
(b.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("orion/treetable",["i18n!orion/nls/messages","dojo"],function(b,c){function a(a){this._init(a)}a.prototype={_init:function(a){var f=a.parent,e=this;typeof f==="string"&&(f=c.byId(f));if(!f)throw b["no parent"];if(!a.model)throw b["no tree model"];if(!a.renderer)throw b["no renderer"];this._parent=f;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)):e._treeModel.getChildren(a,function(a){e._generate(a,0)})})},_generate:function(a,b){c.empty(this._parent);var e=document.createElement("table");e.id=this._id;this._tableStyle&&c.addClass(e,this._tableStyle);this._renderer.initTable(e,this);var g=document.createElement("tbody");g.id=this._id+
"tbody";this._generateChildren(a,b,g,"last");e.appendChild(g);this._parent.appendChild(e);this._rowsChanged()},_generateChildren:function(a,b,e,g){for(var h in a){var i=document.createElement("tr");i.id=this._treeModel.getId(a[h]);i._depth=b;i._item=a[h];this._renderer.render(a[h],i);c.style(i.childNodes[this._labelColumnIndex],"paddingLeft",this._indent*b+"px");c.place(i,e,g);g==="after"&&(e=i)}},_rowsChanged:function(){this._renderer.rowsChanged&&this._renderer.rowsChanged()},getSelected:function(){return this._renderer.getSelected()},
refresh:function(a,f,e){var g=this._treeModel.getId(a),h;if(g===this._id)this._removeChildRows(g),this._generateChildren(f,0,c.byId(g+"tbody"),"last"),this._rowsChanged();else{var i=c.byId(g);i?(i._item=a,i&&(e||i._expanded)?(i._expanded=!0,this._removeChildRows(g),this._renderer.updateExpandVisuals(i,!0),f?(this._generateChildren(f,i._depth+1,i,"after"),this._rowsChanged()):(h=this,f=this._treeModel.getChildren(i._item,function(a){h._generateChildren(a,i._depth+1,i,"after");h._rowsChanged()}))):
this._renderer.updateExpandVisuals(i,!1)):console.log(b["could not find table row "]+g)}},getItem:function(a){if(typeof a==="string"){var b=c.byId(a);if(b)return b._item}return a._item?a._item:a},toggle:function(a){var b=c.byId(a);b&&(b._expanded?(this.collapse(a),this._renderer.updateExpandVisuals(b,!1)):(this.expand(a),this._renderer.updateExpandVisuals(b,!0)))},isExpanded:function(a){return(a=c.byId(a))?a._expanded:!1},expand:function(a,b,e){var a=typeof a==="string"?a:this._treeModel.getId(a),
g=c.byId(a);if(g&&!g._expanded){g._expanded=!0;var h=this;this._renderer.updateExpandVisuals(g,!0);this._treeModel.getChildren(g._item,function(a){h._generateChildren(a,g._depth+1,g,"after");h._rowsChanged();b&&b.apply(this,e)})}},_removeChildRows:function(a){var b=a===this._id,e=!1,g=-1,h=[];c.query(".treeTableRow",this._parent).forEach(function(c){if(!e)if(b)c._depth>g?h.push(c):e=!0;else if(c.id===a)b=!0,g=c._depth});for(var i in h){var j=h[i];j.parentNode.removeChild(j)}},collapse:function(a){var a=
typeof a==="string"?a:this._treeModel.getId(a),b=c.byId(a);if(b){if(!b._expanded)return;b._expanded=!1;this._renderer.updateExpandVisuals(b,!1);this._removeChildRows(a);this._rowsChanged()}this._onCollapse&&this._onCollapse(b._item)}};a.prototype.constructor=a;return{TableTree:a}});
define("orion/treeModelIterator",[],function(){var b={};b.TreeModelIterator=function(){function b(a,d){this.firstLevelChildren=a;this.reset();this._init(d)}b.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 b=a.children&&a.children.length>0;this.isExpanded&&b&&(b=this.isExpanded(a));return b},_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 b=this._diveIn(this._cursor);if(!b){if(a&&this._expandable(this._cursor)&&this.forceExpandFunc){var c=this;return this.forceExpandFunc(this._cursor,"first",function(a){mdoel&&c.setCursor(a)})}(b=this._findSibling(this._cursor,!0))&&
this.setCursor(b)}return b},_backward:function(a){var b=this._findSibling(this._cursor,!1);b&&b!==this._cursor.parent&&(b=this._drillToLast(b));if(a&&b&&this._expandable(b)&&this.forceExpandFunc&&b!==this._cursor.parent)return this.forceExpandFunc(b,"last",function(a){mdoel&&that.setCursor(a)});b&&this.setCursor(b);return b},_findSibling:function(a,b){for(var c=this.topLevel(a),e=c?this.firstLevelChildren:a.parent.children,g=0;g<e.length;g++)if(e[g]===a)return g===0&&!b?c?null:a.parent:g===e.length-
1&&b?c?null:this._findSibling(a.parent,b):b?e[g+1]:e[g-1];return null},_inParentChain:function(a,b){for(var c=a.parent;c;){if(c===b)return!0;c=c.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,b,c){this.setCursor(b);var e=[];for(e.push(b);;){if(this.iterate(a))e.push(this.cursor());else break;if(c===
this.cursor())return e}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,b){var c=this.cursor(),e=this._scan(!0,a,b);e||(e=this._scan(!1,a,b));this.setCursor(c);return e},iterate:function(a,b){return a?this._forward(b):this._backward(b)},iterateOnTop:function(a,b){var c=this._findSibling(this._getTopLevelParent(this.cursor()),
a);c?this.setCursor(c):b&&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 b}();return b});
define("orion/explorerNavHandler",["i18n!orion/nls/messages","dojo","orion/treeModelIterator"],function(b,c,a){var b={},d=navigator.userAgent.indexOf("iPad")!==-1,f=window.navigator.platform.indexOf("Mac")!==-1;b.ExplorerNavHandler=function(){function b(d,e,f){this.explorer=d;this.model=this.explorer.model;this._navDict=e;this._listeners=[];this._selections=[];this._currentColumn=0;var j=this._getEventListeningDiv();c.attr(j,"tabIndex",0);c.addClass(j,"selectionModelContainer");this._modelIterator=
new a.TreeModelIterator([],{isExpanded:c.hitch(this,function(a){return this.isExpanded(a)}),isExpandable:this.explorer.renderer.isExpandable?c.hitch(this,function(a){return this.explorer.renderer.isExpandable(a)}):c.hitch(this,function(a){return this.isExpandable(a)}),forceExpandFunc:this.explorer.forceExpandFunc?c.hitch(this,function(a,b,d){return this.explorer.forceExpandFunc(a,b,d)}):void 0});this._init(f);(!f||f.setFocus!==!1)&&j.focus();this._listeners.push(c.connect(j,"onkeydown",c.hitch(this,
function(a){if(a.target){if(a.target!==j)return!0}else if(a.srcElement&&a.srcElement!==j)return!0;if(this.explorer.preventDefaultFunc&&this.explorer.preventDefaultFunc(a,this._modelIterator.cursor()))return!0;if(a.keyCode===c.keys.DOWN_ARROW)return this.onDownArrow(a);else if(a.keyCode===c.keys.UP_ARROW)return this.onUpArrow(a);else if(a.keyCode===c.keys.RIGHT_ARROW)return this.onRightArrow(a);else if(a.keyCode===c.keys.LEFT_ARROW)return this.onLeftArrow(a);else if(a.keyCode===c.keys.SPACE)return this.onSpace(a);
else if(a.keyCode===c.keys.ENTER)return this.onEnter(a)})));d=c.connect(j,"onblur",c.hitch(this,function(){if(this.explorer.onFocus)this.explorer.onFocus(!1);else this.toggleCursor(null,!1)}));e=c.connect(j,"onfocus",c.hitch(this,function(){if(this.explorer.onFocus)this.explorer.onFocus(!0);else this.toggleCursor(null,!0)}));this._listeners.push(d);this._listeners.push(e)}b.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 f?a.metaKey:a.ctrlKey},removeListeners:function(){if(this._listeners)for(var a=0;a<this._listeners.length;a++)c.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):c.byId(this.explorer._parentId)},isExpandable:function(a){return!a?
!1:c.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 b=this;this.explorer.selection&&this.explorer.selection.getSelections(function(d){b._clearSelection();for(var c=0;c<d.length;c++)b._selections.push(d[c]);b._selections.length>0&&b.cursorOn(b._selections[0],!0,!1,a)})},refreshModel:function(a,b,d,c){this._currentColumn=0;this.topIterationNodes=[];
this.model=b;this._navDict=a;if(this.model.getTopIterationNodes)this.topIterationNodes=this.model.getTopIterationNodes();else if(d)this.topIterationNodes=d;this._modelIterator.setTree(this.topIterationNodes);!c&&this.explorer.selection&&this._modelIterator.reset();this.refreshSelection(!0)},getTopLevelNodes:function(){return this._modelIterator.firstLevelChildren},_inSelection:function(a){for(var b=0;b<this._selections.length;b++)if(a===this._selections[b])return b;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,b){if(this._selectionPolicy==="cursorOnly")b&&this.explorer.renderer._useCheckboxSelection&&this._checkRow(a,!0);else if(this._isRowSelectable(a)){if(b){var d=this._inSelection(a);d>=0?(this._checkRow(a,!0),this._selections.splice(d,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,b){a||(a=this.currentModel());var d=this._getGridChildren(a);if(d&&d.length>1||b===0&&d){b!==0&&this.toggleCursor(a,!1);var c=this._currentColumn,e=!0;c+=b;c<0?(this._linearGridMove&&b!==0&&(this._modelIterator.iterate(!1)?a=this.currentModel():e=!1),c=e?d.length-1:this._currentColumn):c>=d.length&&(this._linearGridMove&&b!==0&&(this._modelIterator.iterate(!0)?
a=this.currentModel():e=!1),c=e?0:this._currentColumn);this._currentColumn=c;b!==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,b){var d=this.getRowDiv(a);d&&c.toggleClass(d,"treeIterationCursorRow",b);(d=this.getCurrentGrid(a))&&d.domNode&&c.toggleClass(d.domNode,
"treeIterationCursor",b)},currentModel:function(){return this._modelIterator.cursor()},cursorOn:function(a,b,d,c){var d=d===void 0?!1:d,e,f;if(a||b){if(f===this._modelIterator.cursor())return;e=this._modelIterator.cursor();f=a;this._modelIterator.setCursor(f)}else e=this._modelIterator.prevCursor(),f=this._modelIterator.cursor();if(e!==f||b)if(this.toggleCursor(e,!1),!b||f)if(this.moveColumn(null,0),this.toggleCursor(f,!0),(a=this.getRowDiv())&&!c&&!this._visible(a)&&a.scrollIntoView(!d),this.explorer.onCursorChanged)this.explorer.onCursorChanged(e,
f)},getSelection:function(){return this._selections},getSelectionIds:function(){for(var a=[],b=0;b<this._selections.length;b++)a.push(this.model.getId(this._selections[b]));return a},getRowDiv:function(a){a=a?a:this._modelIterator.cursor();if(!a)return null;var a=this.model.getId(a),b=this._navDict.getValue(a);return b&&b.rowDomNode?b.rowDomNode:c.byId(a)},iterate:function(a,b,d){this.topIterationNodes.length!==0&&this._modelIterator.iterate(a,b)&&(this.cursorOn(null,!1,a),d&&this.setSelection(this.currentModel(),
!0))},_checkRow:function(a,b){if(this.explorer.renderer._useCheckboxSelection){var d=this.getRowDiv(a);if(d){var e=c.byId(this.explorer.renderer.getCheckBoxId(d.id)),f=b?!e.checked:!0;if(f!==e.checked)this.explorer.renderer.onCheck(d,e,f,!0)}}else this._select(a,b)},_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 c.byId(a)&&
(mBox=c.marginBox(a))?mBox.h:0},_visible:function(a){if(a.offsetWidth===0||a.offsetHeight===0)return!1;var b=0;b+=this._getToolBarHeight("staticBanner");b+=this._getToolBarHeight("titleArea");b+=this._getToolBarHeight("pageToolbar");var d=this._getEventListeningDiv(!0).getClientRects()[0],c=this._vpHeight();this._vpWidth();for(var b=d.top>b?d.top:b,d=d.bottom<c?d.bottom:c,a=a.getClientRects(),c=0,e=a.length;c<e;c++){var f=a[c];if(f.top>=b&&f.top<=d&&f.bottom>=b&&f.bottom<=d)return!0}return!1},_select:function(a){a||
(a=this._modelIterator.cursor());var b=this.getRowDiv(a);b&&c.toggleClass(b,"checkedRow",this._inSelection(a)<0)},_onModelGrid:function(a,b){var d=this._getGridChildren(a);if(d)for(var c=0;c<d.length;c++)if(b.target===d[c].domNode)return!0;return!1},onClick:function(a,b){var e=c.byId(this.explorer.renderer.expandCollapseImageId(this.model.getId(a)));if(b.target!==e&&!this._onModelGrid(a,b))if(this.cursorOn(a,!0,!1,!0),d)this.setSelection(a,!0);else if(this._ctrlKeyOn(b))this.setSelection(a,!0);else if(b.shiftKey&&
this._lastSelection){if(e=this._modelIterator.scan(this._lastSelection,a)){this._clearSelection(!0);for(var f=0;f<e.length;f++)this.setSelection(e[f],!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 b=this.currentModel(),d=this._getGridChildren(b);return d&&d.length>1?this.isExpandable(b)?this._ctrlKeyOn(a):!0:!1},onLeftArrow:function(a){if(this._shouldMoveColumn(a))return this.moveColumn(null,-1),a.preventDefault(),!0;var b=this._modelIterator.cursor();if(!b)return!1;if(this.isExpandable(b)&&this.isExpanded(b))return this.explorer.myTree.collapse(b),a.preventDefault(),!0;this._modelIterator.topLevel(b)?
this.explorer.scopeUp&&typeof this.explorer.scopeUp==="function"&&this.explorer.scopeUp():(this.cursorOn(b.parent),this.setSelection(b.parent,!1))},onRightArrow:function(a){if(this._shouldMoveColumn(a))return this.moveColumn(null,1),a.preventDefault(),!0;var b=this._modelIterator.cursor();if(!b)return!1;if(this.isExpandable(b)&&!this.isExpanded(b))return this.explorer.myTree.expand(b),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 b=this.getCurrentGrid(this._modelIterator.cursor());if(b)if(b.widget)if(typeof b.onClick==="function")b.onClick();else typeof b.widget.focus==="function"&&b.widget.focus();else{var d=document.createEvent("MouseEvents");d.initMouseEvent("click",!0,!0,window,0,0,0,0,0,this._ctrlKeyOn(a),!1,!1,!1,0,null);b.domNode.dispatchEvent(d)}else if(this.explorer.renderer.getRowActionElement&&(b=this._modelIterator.cursor()))if(b=
this.explorer.renderer.getRowActionElement(this.model.getId(b)),b.href)this._ctrlKeyOn(a)?window.open(b.href):window.location.href=b.href}};return b}();b.ExplorerNavDict=function(){function a(b){this._dict={};this._model=b}a.prototype={addRow:function(a,b){this._dict[this._model.getId(a)]={model:a,rowDomNode:b}},getValue:function(a){return this._dict[a]},getGridNavHolder:function(a,b){if(!a)return null;var d=this._model.getId(a);if(this._dict[d]){if(!this._dict[d].gridChildren&&b)this._dict[d].gridChildren=
[];return this._dict[d].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 b});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/ssh/sshTools",[],function(){var b=b||{};b.SshService=function(){function b(a){if(a)this._serviceRegistry=a,this._serviceRegistration=a.registerService("orion.net.ssh",this)}b.prototype={_KNOWN_HOSTS:"known_hosts",addKnownHosts:function(a,b){b||(b="");var c=localStorage.getItem(b+this._KNOWN_HOSTS);c?c.indexOf(a)<0&&localStorage.setItem(b+this._KNOWN_HOSTS,c+"\n"+a):localStorage.setItem(b+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 b}();return b});
define("orion/links",[],function(){function b(b){this._init(b)}b.prototype={_init:function(b){this._registry=b.serviceRegistry;this._serviceRegistration=this._registry.registerService("orion.core.textlink",this)},_replaceLink:function(b,a,d,f,e){var g=b.search(d);g>0&&(a.appendChild(document.createTextNode(b.substring(0,g))),b=b.substring(g));var d=b.replace(d,""),g=b.substring(0,b.length-d.length),h=g.split(" ",f);if(h.length===f){for(var b=document.createElement("a"),i=0;i<f;i++)e=e.replace("%"+
(i+1),h[i]);b.setAttribute("href",e);b.innerHTML=g;a.appendChild(b);b=d}return b},addLinks:function(b,a){var d=a||document.createElement("div"),f=this._registry.getServiceReferences("orion.core.linkScanner");if(f.length>0)for(var e=f[0],f=RegExp(e.getProperty("pattern"),"i"),g=e.getProperty("words"),e=e.getProperty("anchor"),h=b.search(f);h>=0;)b=this._replaceLink(b,d,f,g,e),h=b.search(f);b.length>0&&d.appendChild(document.createTextNode(b));return d}};b.prototype.constructor=b;return{TextLinkService:b}});
define("dojo/parser",["dojo","dojo/date/stamp"],function(b){b.parser=new function(){function c(a,b){switch(b){case "string":return a;case "number":return a.length?Number(a):NaN;case "boolean":return typeof a=="boolean"?a:a.toLowerCase()!="false";case "function":f.isFunction(a)&&(a=a.toString(),a=f.trim(a.substring(a.indexOf("{")+1,a.length-1)));try{return a===""||a.search(/[^\w\.]+/i)!=-1?new Function(a):f.getObject(a,!1)||new Function(a)}catch(d){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 f.date.stamp.fromISOString(a)}case "url":return f.baseUrl+a;default:return f.fromJson(a)}}function a(a,b){for(var d in a)if(d.charAt(0)!="_"&&!(d in e)){var c=b,g=d,m;m=a[d];m=f.isString(m)?"string":typeof m=="number"?"number":typeof m=="boolean"?"boolean":f.isFunction(m)?"function":f.isArray(m)?"array":m instanceof Date?"date":m instanceof f._Url?"url":"object";c[g]=m}return b}function d(b,d){var c=g[b];
if(c){if(!d&&!c.params)c.params=a(c.cls.prototype,{})}else{var c=f.getObject(b),e=null;if(!c)return null;d||(e=a(c.prototype,{}));c={cls:c,params:e}}return c}var f=b,e={},g={};f.connect(f,"extend",function(){g={}});this._functionFromScript=function(a,b){var d="",c="",e=a.getAttribute(b+"args")||a.getAttribute("args");e&&f.forEach(e.split(/\s*,\s*/),function(a,b){d+="var "+a+" = arguments["+b+"]; "});(e=a.getAttribute("with"))&&e.length&&f.forEach(e.split(/\s*,\s*/),function(a){d+="with("+a+"){";c+=
"}"});return new Function(d+a.innerHTML+c)};this.instantiate=function(a,e,g){var k=[],e=e||{},g=g||{},l=(g.scope||f._scopeName)+"Type",m="data-"+(g.scope||f._scopeName)+"-";f.forEach(a,function(a){if(a){var h,p,r,s,q,t;a.node?(h=a.node,p=a.type,t=a.fastpath,s=(r=a.clsInfo||p&&d(p,t))&&r.cls,q=a.scripts):(h=a,q=(s=(r=(p=l in e?e[l]:h.getAttribute(l))&&d(p))&&r.cls)&&(s._noScript||s.prototype._noScript)?[]:f.query("> script[type^='dojo/']",h));if(!r)throw Error("Could not load class '"+p);var u={};
g.defaults&&f._mixin(u,g.defaults);a.inherited&&f._mixin(u,a.inherited);if(t){if((r=h.getAttribute(m+"props"))&&r.length)try{r=f.fromJson.call(g.propsThis,"{"+r+"}"),f._mixin(u,r)}catch(v){throw Error(v.toString()+" in data-dojo-props='"+r+"'");}if(r=h.getAttribute(m+"attach-point"))u.dojoAttachPoint=r;if(r=h.getAttribute(m+"attach-event"))u.dojoAttachEvent=r;b.mixin(u,e)}else{var a=h.attributes,A;for(A in r.params)if((p=A in e?{value:e[A],specified:!0}:a.getNamedItem(A))&&(p.specified||b.isIE&&A.toLowerCase()==
"value")){p=p.value;switch(A){case "class":p="className"in e?e.className:h.className;break;case "style":p="style"in e?e.style:h.style&&h.style.cssText}t=r.params[A];u[A]=typeof p=="string"?c(p,t):p}}var H=[],z=[];f.forEach(q,function(a){h.removeChild(a);var b=a.getAttribute(m+"event")||a.getAttribute("event"),d=a.getAttribute("type"),a=f.parser._functionFromScript(a,m);b?d=="dojo/connect"?H.push({event:b,func:a}):u[b]=a:z.push(a)});var C=(q=s.markupFactory||s.prototype&&s.prototype.markupFactory)?
q(u,h,s):new s(u,h);k.push(C);(s=h.getAttribute(m+"id")||h.getAttribute("jsId"))&&f.setObject(s,C);f.forEach(H,function(a){f.connect(C,a.event,null,a.func)});f.forEach(z,function(a){a.call(C)})}});e._started||f.forEach(k,function(a){!g.noStart&&a&&b.isFunction(a.startup)&&!a._started&&(!a.getParent||!a.getParent())&&a.startup()});return k};this.parse=function(a,c){function e(a,f){var g=b.clone(a.inherited);b.forEach(["dir","lang"],function(b){var d=a.node.getAttribute(b);d&&(g[b]=d)});for(var h=a.clsInfo&&
!a.clsInfo.cls.prototype._noScript?a.scripts:null,k=!a.clsInfo||!a.clsInfo.cls.prototype.stopParser||c&&c.template,n=a.node.firstChild;n;n=n.nextSibling)if(n.nodeType==1){var o,A=k&&n.getAttribute(m+"type");o=A?A:k&&n.getAttribute(l);A=A==o;o?(o={type:o,fastpath:A,clsInfo:d(o,A),node:n,scripts:[],inherited:g},f.push(o),e(o,f)):h&&n.nodeName.toLowerCase()=="script"?(o=n.getAttribute("type"))&&/^dojo\/\w/i.test(o)&&h.push(n):k&&e({node:n,inherited:g},f)}}var g;!c&&a&&a.rootNode?(c=a,g=c.rootNode):g=
a;g=g?b.byId(g):b.body();var c=c||{},l=(c.scope||f._scopeName)+"Type",m="data-"+(c.scope||f._scopeName)+"-",n={};if(c&&c.inherited)for(var o in c.inherited)c.inherited[o]&&(n[o]=c.inherited[o]);o=[];e({node:g,inherited:n},o);return this.instantiate(o,c&&c.template?{template:!0}:null,c)}};(function(){var c=function(){b.config.parseOnLoad&&b.parser.parse()};b.getObject("dijit.wai.onload")===b._loaders[0]?b._loaders.splice(1,0,c):b._loaders.unshift(c)})();return b.parser});
define("dijit/_Templated","dojo,dijit,dijit/_Widget,dojo/string,dojo/parser,dojo/cache".split(","),function(b,c){b.declare("dijit._Templated",null,{templateString:null,templatePath:null,widgetsInTemplate:!1,_skipNodeCache:!1,_earlyTemplatedStartup:!1,constructor:function(){this._attachPoints=[];this._attachEvents=[]},_stringRepl:function(a){var d=this.declaredClass,c=this;return b.string.substitute(a,this,function(a,g){g.charAt(0)=="!"&&(a=b.getObject(g.substr(1),!1,c));if(typeof a=="undefined")throw Error(d+
" template:"+g);return a==null?"":g.charAt(0)=="!"?a:a.toString().replace(/"/g,"&quot;")},this)},buildRendering:function(){var a=c._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache),d;if(b.isString(a)){if(d=b._toDom(this._stringRepl(a)),d.nodeType!=1)throw Error("Invalid template: "+a);}else d=a.cloneNode(!0);this.domNode=d;this.inherited(arguments);this._attachTemplateNodes(d);if(this.widgetsInTemplate)a=this._startupWidgets=b.parser.parse(d,{noStart:!this._earlyTemplatedStartup,
template:!0,inherited:{dir:this.dir,lang:this.lang},propsThis:this,scope:"dojo"}),this._supportingWidgets=c.findWidgets(d),this._attachTemplateNodes(a,function(a,b){return a[b]});this._fillContent(this.srcNodeRef)},_fillContent:function(a){var b=this.containerNode;if(a&&b)for(;a.hasChildNodes();)b.appendChild(a.firstChild)},_attachTemplateNodes:function(a,d){for(var d=d||function(a,b){return a.getAttribute(b)},f=b.isArray(a)?a:a.all||a.getElementsByTagName("*"),e=b.isArray(a)?0:-1;e<f.length;e++){var g=
e==-1?a:f[e];if(!this.widgetsInTemplate||!d(g,"dojoType")&&!d(g,"data-dojo-type")){var h=d(g,"dojoAttachPoint")||d(g,"data-dojo-attach-point");if(h)for(var i=h.split(/\s*,\s*/);h=i.shift();)b.isArray(this[h])?this[h].push(g):this[h]=g,this._attachPoints.push(h);if(h=d(g,"dojoAttachEvent")||d(g,"data-dojo-attach-event"))for(var i=h.split(/\s*,\s*/),j=b.trim;h=i.shift();)if(h){var k=null;h.indexOf(":")!=-1?(k=h.split(":"),h=j(k[0]),k=j(k[1])):h=j(h);k||(k=h);this._attachEvents.push(this.connect(g,h,
k))}(h=d(g,"waiRole"))&&c.setWaiRole(g,h);(h=d(g,"waiState"))&&b.forEach(h.split(/\s*,\s*/),function(a){a.indexOf("-")!=-1&&(a=a.split("-"),c.setWaiState(g,a[0],a[1]))})}}},startup:function(){b.forEach(this._startupWidgets,function(a){a&&!a._started&&a.startup&&a.startup()});this.inherited(arguments)},destroyRendering:function(){b.forEach(this._attachPoints,function(a){delete this[a]},this);this._attachPoints=[];b.forEach(this._attachEvents,this.disconnect,this);this._attachEvents=[];this.inherited(arguments)}});
c._Templated._templateCache={};c._Templated.getCachedTemplate=function(a,d,f){var e=c._Templated._templateCache,g=d||a,h=e[g];if(h){try{if(!h.ownerDocument||h.ownerDocument==b.doc)return h}catch(i){}b.destroy(h)}d||(d=b.cache(a,{sanitize:!0}));d=b.string.trim(d);if(f||d.match(/\$\{([^\}]+)\}/g))return e[g]=d;else{a=b._toDom(d);if(a.nodeType!=1)throw Error("Invalid template: "+d);return e[g]=a}};b.isIE&&b.addOnWindowUnload(function(){var a=c._Templated._templateCache,d;for(d in a){var f=a[d];typeof f==
"object"&&b.destroy(f);delete a[d]}});b.extend(c._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});return c._Templated});
define("dijit/form/_FormWidget","dojo,dijit,dojo/window,dijit/_Widget,dijit/_Templated,dijit/_CssStateMixin".split(","),function(b,c){b.declare("dijit.form._FormWidget",[c._Widget,c._Templated,c._CssStateMixin],{name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:!1,intermediateChanges:!1,scrollOnFocus:!0,attributeMap:b.delegate(c._Widget.prototype.attributeMap,{value:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode",title:"focusNode"}),postMixInProperties:function(){this.nameAttrSetting=
this.name?'name="'+this.name.replace(/'/g,"&quot;")+'"':"";this.inherited(arguments)},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onmousedown","_onMouseDown")},_setDisabledAttr:function(a){this._set("disabled",a);b.attr(this.focusNode,"disabled",a);this.valueNode&&b.attr(this.valueNode,"disabled",a);c.setWaiState(this.focusNode,"disabled",a);a?(this._set("hovering",!1),this._set("active",!1),a="tabIndex"in this.attributeMap?this.attributeMap.tabIndex:"focusNode",b.forEach(b.isArray(a)?
a:[a],function(a){a=this[a];b.isWebKit||c.hasDefaultTabStop(a)?a.setAttribute("tabIndex","-1"):a.removeAttribute("tabIndex")},this)):this.tabIndex!=""&&this.focusNode.setAttribute("tabIndex",this.tabIndex)},setDisabled:function(a){b.deprecated("setDisabled("+a+") is deprecated. Use set('disabled',"+a+") instead.","","2.0");this.set("disabled",a)},_onFocus:function(a){this.scrollOnFocus&&b.window.scrollIntoView(this.domNode);this.inherited(arguments)},isFocusable:function(){return!this.disabled&&this.focusNode&&
b.style(this.domNode,"display")!="none"},focus:function(){this.disabled||c.focus(this.focusNode)},compare:function(a,b){return typeof a=="number"&&typeof b=="number"?isNaN(a)&&isNaN(b)?0:a-b:a>b?1:a<b?-1:0},onChange:function(){},_onChangeActive:!1,_handleOnChange:function(a,d){if(this._lastValueReported==void 0&&(d===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||d||d===void 0)&&this._pendingOnChange)if(this._lastValueReported=a,this._pendingOnChange=!1,this._onChangeActive)this._onChangeHandle&&clearTimeout(this._onChangeHandle),this._onChangeHandle=setTimeout(b.hitch(this,function(){this._onChangeHandle=null;this.onChange(a)}),0)},create:function(){this.inherited(arguments);this._onChangeActive=!0},destroy:function(){this._onChangeHandle&&(clearTimeout(this._onChangeHandle),this.onChange(this._lastValueReported));this.inherited(arguments)},
setValue:function(a){b.deprecated("dijit.form._FormWidget:setValue("+a+") is deprecated.  Use set('value',"+a+") instead.","","2.0");this.set("value",a)},getValue:function(){b.deprecated(this.declaredClass+"::getValue() is deprecated. Use get('value') instead.","","2.0");return this.get("value")},_onMouseDown:function(a){if(!a.ctrlKey&&b.mouseButtons.isLeft(a)&&this.isFocusable())var d=this.connect(b.body(),"onmouseup",function(){this.isFocusable()&&this.focus();this.disconnect(d)})}});b.declare("dijit.form._FormValueWidget",
c.form._FormWidget,{readOnly:!1,attributeMap:b.delegate(c.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(a){b.attr(this.focusNode,"readOnly",a);c.setWaiState(this.focusNode,"readonly",a);this._set("readOnly",a)},postCreate:function(){this.inherited(arguments);if(b.isIE<9||b.isIE&&b.isQuirks)this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);if(this._resetValue===void 0)this._lastValueReported=this._resetValue=this.value},_setValueAttr:function(a,
b){this._handleOnChange(a,b)},_handleOnChange:function(a,b){this._set("value",a);this.inherited(arguments)},undo:function(){this._setValueAttr(this._lastValueReported,!1)},reset:function(){this._hasBeenBlurred=!1;this._setValueAttr(this._resetValue,!0)},_onKeyDown:function(a){if(a.keyCode==b.keys.ESCAPE&&!a.ctrlKey&&!a.altKey&&!a.metaKey){var d;if(b.isIE)a.preventDefault(),d=document.createEventObject(),d.keyCode=b.keys.ESCAPE,d.shiftKey=a.shiftKey,a.srcElement.fireEvent("onkeypress",d)}},_layoutHackIE7:function(){if(b.isIE==
7)for(var a=this.domNode,d=a.parentNode,c=a.firstChild||a,e=c.style.filter,g=this;d&&d.clientHeight==0;)(function(){var a=g.connect(d,"onscroll",function(){g.disconnect(a);c.style.filter=(new Date).getMilliseconds();setTimeout(function(){c.style.filter=e},0)})})(),d=d.parentNode}});return c.form._FormWidget});
define("dijit/form/TextBox",["dojo","dijit","text!dijit/form/templates/TextBox.html","dijit/form/_FormWidget"],function(b,c){b.declare("dijit.form.TextBox",c.form._FormValueWidget,{trim:!1,uppercase:!1,lowercase:!1,propercase:!1,maxLength:"",selectOnClick:!1,placeHolder:"",templateString:b.cache("dijit.form","templates/TextBox.html"),_singleNodeTemplate:'<input class="dijit dijitReset dijitLeft dijitInputField" dojoAttachPoint="textbox,focusNode" autocomplete="off" type="${type}" ${!nameAttrSetting} />',
_buttonInputDisabled:b.isIE?"disabled":"",baseClass:"dijitTextBox",attributeMap:b.delegate(c.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==c.form.TextBox.prototype.templateString)this.templateString=this._singleNodeTemplate;this.inherited(arguments)},_setPlaceHolderAttr:function(a){this._set("placeHolder",
a);if(!this._phspan)this._attachPoints.push("_phspan"),this._phspan=b.create("span",{className:"dijitPlaceHolder dijitInputField"},this.textbox,"after");this._phspan.innerHTML="";this._phspan.appendChild(document.createTextNode(a));this._updatePlaceHolder()},_updatePlaceHolder:function(){if(this._phspan)this._phspan.style.display=this.placeHolder&&!this._focused&&!this.textbox.value?"":"none"},_getValueAttr:function(){return this.parse(this.get("displayedValue"),this.constraints)},_setValueAttr:function(a,
b,c){var e;a!==void 0&&(e=this.filter(a),typeof c!="string"&&(c=e!==null&&(typeof e!="number"||!isNaN(e))?this.filter(this.format(e,this.constraints)):""));if(c!=null&&c!=void 0&&(typeof c!="number"||!isNaN(c))&&this.textbox.value!=c)this.textbox.value=c,this._set("displayedValue",this.get("displayedValue"));this._updatePlaceHolder();this.inherited(arguments,[e,b])},displayedValue:"",getDisplayedValue:function(){b.deprecated(this.declaredClass+"::getDisplayedValue() is deprecated. Use set('displayedValue') instead.",
"","2.0");return this.get("displayedValue")},_getDisplayedValueAttr:function(){return this.filter(this.textbox.value)},setDisplayedValue:function(a){b.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use set('displayedValue', ...) instead.","","2.0");this.set("displayedValue",a)},_setDisplayedValueAttr:function(a){a===null||a===void 0?a="":typeof a!="string"&&(a=String(a));this.textbox.value=a;this._setValueAttr(this.get("value"),void 0);this._set("displayedValue",this.get("displayedValue"))},
format:function(a){return a==null||a==void 0?"":a.toString?a.toString():a},parse:function(a){return a},_refreshState:function(){},_onInput:function(a){if(a&&a.type&&/key/i.test(a.type)&&a.keyCode)switch(a.keyCode){case b.keys.SHIFT:case b.keys.ALT:case b.keys.CTRL:case b.keys.TAB:return}if(this.intermediateChanges){var d=this;setTimeout(function(){d._handleOnChange(d.get("value"),!1)},0)}this._refreshState();this._set("displayedValue",this.get("displayedValue"))},postCreate:function(){b.isIE&&setTimeout(b.hitch(this,
function(){var a=b.getComputedStyle(this.domNode);if(a&&(a=a.fontFamily)){var d=this.domNode.getElementsByTagName("INPUT");if(d)for(var c=0;c<d.length;c++)d[c].style.fontFamily=a}}),0);this.textbox.setAttribute("value",this.textbox.value);this.inherited(arguments);b.isMoz||b.isOpera?this.connect(this.textbox,"oninput","_onInput"):(this.connect(this.textbox,"onkeydown","_onInput"),this.connect(this.textbox,"onkeyup","_onInput"),this.connect(this.textbox,"onpaste","_onInput"),this.connect(this.textbox,
"oncut","_onInput"))},_blankValue:"",filter:function(a){if(a===null)return this._blankValue;if(typeof a!="string")return a;this.trim&&(a=b.trim(a));this.uppercase&&(a=a.toUpperCase());this.lowercase&&(a=a.toLowerCase());this.propercase&&(a=a.replace(/[^\s]+/g,function(a){return a.substring(0,1).toUpperCase()+a.substring(1)}));return a},_setBlurValue:function(){this._setValueAttr(this.get("value"),!0)},_onBlur:function(a){if(!this.disabled){this._setBlurValue();this.inherited(arguments);this._selectOnClickHandle&&
this.disconnect(this._selectOnClickHandle);if(this.selectOnClick&&b.isMoz)this.textbox.selectionStart=this.textbox.selectionEnd=void 0;this._updatePlaceHolder()}},_onFocus:function(a){if(!this.disabled&&!this.readOnly){if(this.selectOnClick&&a=="mouse")this._selectOnClickHandle=this.connect(this.domNode,"onmouseup",function(){this.disconnect(this._selectOnClickHandle);var a;b.isIE?(a=b.doc.selection.createRange(),a=a.parentElement()==this.textbox&&a.text.length==0):a=this.textbox.selectionStart==
this.textbox.selectionEnd;a&&c.selectInputText(this.textbox)});this._updatePlaceHolder();this.inherited(arguments);this._refreshState()}},reset:function(){this.textbox.value="";this.inherited(arguments)}});c.selectInputText=function(a,d,f){var e=b.global,g=b.doc,a=b.byId(a);isNaN(d)&&(d=0);isNaN(f)&&(f=a.value?a.value.length:0);c.focus(a);g.selection&&b.body().createTextRange?a.createTextRange&&(a=a.createTextRange(),a.collapse(!0),a.moveStart("character",-99999),a.moveStart("character",d),a.moveEnd("character",
f-d),a.select()):e.getSelection&&a.setSelectionRange&&a.setSelectionRange(d,f)};return c.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(b,c){b.declare("dijit.form.Button",c.form._FormWidget,{label:"",showLabel:!0,iconClass:"",type:"button",baseClass:"dijitButton",templateString:b.cache("dijit.form","templates/Button.html"),attributeMap:b.delegate(c.form._FormWidget.prototype.attributeMap,
{value:"valueNode"}),_onClick:function(a){if(this.disabled)return!1;this._clicked();return this.onClick(a)},_onButtonClick:function(a){if(this._onClick(a)===!1)a.preventDefault();else if(this.type=="submit"&&!(this.valueNode||this.focusNode).form)for(var b=this.domNode;b.parentNode;b=b.parentNode){var f=c.byNode(b);if(f&&typeof f._onSubmit=="function"){f._onSubmit(a);break}}else this.valueNode&&(this.valueNode.click(),a.preventDefault())},buildRendering:function(){this.inherited(arguments);b.setSelectable(this.focusNode,
!1)},_fillContent:function(a){a&&(!this.params||!("label"in this.params))&&this.set("label",a.innerHTML)},_setShowLabelAttr:function(a){this.containerNode&&b.toggleClass(this.containerNode,"dijitDisplayNone",!a);this._set("showLabel",a)},onClick:function(){return!0},_clicked:function(){},setLabel:function(a){b.deprecated("dijit.form.Button.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",a)},_setLabelAttr:function(a){this._set("label",a);this.containerNode.innerHTML=
a;if(this.showLabel==!1&&!this.params.title)this.titleNode.title=b.trim(this.containerNode.innerText||this.containerNode.textContent||"")},_setIconClassAttr:function(a){b.replaceClass(this.iconNode,a||"dijitNoIcon",this.iconClass||"dijitNoIcon");this._set("iconClass",a)}});b.declare("dijit.form.DropDownButton",[c.form.Button,c._Container,c._HasDropDown],{baseClass:"dijitDropDownButton",templateString:b.cache("dijit.form","templates/DropDownButton.html"),_fillContent:function(){if(this.srcNodeRef){var a=
b.query("*",this.srcNodeRef);c.form.DropDownButton.superclass._fillContent.call(this,a[0]);this.dropDownContainer=this.srcNodeRef}},startup:function(){if(!this._started){if(!this.dropDown&&this.dropDownContainer){var a=b.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=c.byNode(a);delete this.dropDownContainer}this.dropDown&&c.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 d=b.connect(a,"onLoad",this,function(){b.disconnect(d);this.openDropDown()});a.refresh()}},isFocusable:function(){return this.inherited(arguments)&&!this._mouseDown}});b.declare("dijit.form.ComboButton",c.form.DropDownButton,{templateString:b.cache("dijit.form","templates/ComboButton.html"),attributeMap:b.mixin(b.clone(c.form.Button.prototype.attributeMap),{id:"",tabIndex:["focusNode","titleNode"],title:"titleNode"}),optionsTitle:"",baseClass:"dijitComboButton",
cssStateNodes:{buttonNode:"dijitButtonNode",titleNode:"dijitButtonContents",_popupStateNode:"dijitDownArrowButton"},_focusedNode:null,_onButtonKeyPress:function(a){if(a.charOrCode==b.keys[this.isLeftToRight()?"RIGHT_ARROW":"LEFT_ARROW"])c.focus(this._popupStateNode),b.stopEvent(a)},_onArrowKeyPress:function(a){if(a.charOrCode==b.keys[this.isLeftToRight()?"LEFT_ARROW":"RIGHT_ARROW"])c.focus(this.titleNode),b.stopEvent(a)},focus:function(a){this.disabled||c.focus(a=="start"?this.titleNode:this._popupStateNode)}});
b.declare("dijit.form.ToggleButton",c.form.Button,{baseClass:"dijitToggleButton",checked:!1,attributeMap:b.mixin(b.clone(c.form.Button.prototype.attributeMap),{checked:"focusNode"}),_clicked:function(){this.set("checked",!this.checked)},_setCheckedAttr:function(a,d){this._set("checked",a);b.attr(this.focusNode||this.domNode,"checked",a);c.setWaiState(this.focusNode||this.domNode,"pressed",a);this._handleOnChange(a,d)},setChecked:function(a){b.deprecated("setChecked("+a+") is deprecated. Use set('checked',"+
a+") instead.","","2.0");this.set("checked",a)},reset:function(){this._hasBeenBlurred=!1;this.set("checked",this.params.checked||!1)}});return c.form.Button});define("dijit/form/DropDownButton",["dojo","dijit","dijit/form/Button"],function(b,c){return c.form.DropDownButton});define("dijit/form/ToggleButton",["dojo","dijit","dijit/form/Button"],function(b,c){return c.form.ToggleButton});
define("dijit/form/CheckBox",["dojo","dijit","text!dijit/form/templates/CheckBox.html","dijit/form/ToggleButton"],function(b,c){b.declare("dijit.form.CheckBox",c.form.ToggleButton,{templateString:b.cache("dijit.form","templates/CheckBox.html"),baseClass:"dijitCheckBox",type:"checkbox",value:"on",readOnly:!1,attributeMap:b.delegate(c.form._FormWidget.prototype.attributeMap,{readOnly:"focusNode"}),_setReadOnlyAttr:function(a){this._set("readOnly",a);b.attr(this.focusNode,"readOnly",a);c.setWaiState(this.focusNode,
"readonly",a)},_setValueAttr:function(a,d){typeof a=="string"&&(this._set("value",a),b.attr(this.focusNode,"value",a),a=!0);this._created&&this.set("checked",a,d)},_getValueAttr:function(){return this.checked?this.value:!1},_setLabelAttr:void 0,postMixInProperties:function(){if(this.value=="")this.value="on";this.checkedAttrSetting=this.checked?"checked":"";this.inherited(arguments)},_fillContent:function(){},reset:function(){this._hasBeenBlurred=!1;this.set("checked",this.params.checked||!1);this._set("value",
this.params.value||"on");b.attr(this.focusNode,"value",this.value)},_onFocus:function(){this.id&&b.query("label[for='"+this.id+"']").addClass("dijitFocusedLabel");this.inherited(arguments)},_onBlur:function(){this.id&&b.query("label[for='"+this.id+"']").removeClass("dijitFocusedLabel");this.inherited(arguments)},_onClick:function(a){return this.readOnly?(b.stopEvent(a),!1):this.inherited(arguments)}});b.declare("dijit.form.RadioButton",c.form.CheckBox,{type:"radio",baseClass:"dijitRadio",_setCheckedAttr:function(a){this.inherited(arguments);
if(this._created&&a){var d=this;b.query("INPUT[type=radio]",this.focusNode.form||b.doc).forEach(function(a){a.name==d.name&&a!=d.focusNode&&a.form==d.focusNode.form&&(a=c.getEnclosingWidget(a))&&a.checked&&a.set("checked",!1)})}},_clicked:function(){this.checked||this.set("checked",!0)}});return c.form.CheckBox});
define("dijit/Tooltip",["dojo","dijit","dijit/_Widget","dijit/_Templated","text!dijit/templates/Tooltip.html"],function(b,c){b.declare("dijit._MasterTooltip",[c._Widget,c._Templated],{duration:c.defaultDuration,templateString:b.cache("dijit","templates/Tooltip.html"),postCreate:function(){b.body().appendChild(this.domNode);this.bgIframe=new c.BackgroundIframe(this.domNode);this.fadeIn=b.fadeIn({node:this.domNode,duration:this.duration,onEnd:b.hitch(this,"_onShow")});this.fadeOut=b.fadeOut({node:this.domNode,
duration:this.duration,onEnd:b.hitch(this,"_onHide")})},show:function(a,d,f,e){if(!(this.aroundNode&&this.aroundNode===d))this.domNode.width="auto",this.fadeOut.status()=="playing"?this._onDeck=arguments:(this.containerNode.innerHTML=a,c.placeOnScreenAroundElement(this.domNode,d,c.getPopupAroundAlignment(f&&f.length?f:c.Tooltip.defaultPosition,!e),b.hitch(this,"orient")),b.style(this.domNode,"opacity",0),this.fadeIn.play(),this.isShowingNow=!0,this.aroundNode=d)},orient:function(a,d,c,e,g){this.connectorNode.style.top=
"";var h=e.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"}[d+"-"+c];this.domNode.style.width="auto";var i=b.contentBox(this.domNode),j=Math.min(Math.max(h,1),i.w),k=j<i.w;this.domNode.style.width=j+"px";if(k&&(this.containerNode.style.overflow=
"auto",k=this.containerNode.scrollWidth,this.containerNode.style.overflow="visible",k>j))k=k+b.style(this.domNode,"paddingLeft")+b.style(this.domNode,"paddingRight"),this.domNode.style.width=k+"px";c.charAt(0)=="B"&&d.charAt(0)=="B"?(a=b.marginBox(a),d=this.connectorNode.offsetHeight,a.h>e.h?(this.connectorNode.style.top=e.h-g.h/2-d/2+"px",this.connectorNode.style.bottom=""):(this.connectorNode.style.bottom=Math.min(Math.max(g.h/2-d/2,0),a.h-d)+"px",this.connectorNode.style.top="")):(this.connectorNode.style.top=
"",this.connectorNode.style.bottom="");return Math.max(0,i.w-h)},_onShow:function(){if(b.isIE)this.domNode.style.filter=""},hide:function(a){if(this._onDeck&&this._onDeck[1]==a)this._onDeck=null;else if(this.aroundNode===a)this.fadeIn.stop(),this.isShowingNow=!1,this.aroundNode=null,this.fadeOut.play()},_onHide:function(){this.domNode.style.cssText="";this.containerNode.innerHTML="";if(this._onDeck)this.show.apply(this,this._onDeck),this._onDeck=null}});c.showTooltip=function(a,b,f,e){if(!c._masterTT)c._masterTT=
new c._MasterTooltip;return c._masterTT.show(a,b,f,e)};c.hideTooltip=function(a){if(!c._masterTT)c._masterTT=new c._MasterTooltip;return c._masterTT.hide(a)};b.declare("dijit.Tooltip",c._Widget,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(a){b.forEach(this._connections||[],function(a){b.forEach(a,b.hitch(this,"disconnect"))},this);var d=b.isArrayLike(a)?a:a?[a]:[];this._connections=b.map(d,function(a){return(a=b.byId(a))?[this.connect(a,"onmouseenter","_onTargetMouseEnter"),
this.connect(a,"onmouseleave","_onTargetMouseLeave"),this.connect(a,"onfocus","_onTargetFocus"),this.connect(a,"onblur","_onTargetBlur")]:[]},this);this._set("connectId",a);this._connectIds=d},addTarget:function(a){a=a.id||a;b.indexOf(this._connectIds,a)==-1&&this.set("connectId",this._connectIds.concat(a))},removeTarget:function(a){a=b.indexOf(this._connectIds,a.id||a);a>=0&&(this._connectIds.splice(a,1),this.set("connectId",this._connectIds))},buildRendering:function(){this.inherited(arguments);
b.addClass(this.domNode,"dijitTooltipData")},startup:function(){this.inherited(arguments);var a=this.connectId;b.forEach(b.isArrayLike(a)?a:[a],this.addTarget,this)},_onTargetMouseEnter:function(a){this._onHover(a)},_onTargetMouseLeave:function(a){this._onUnHover(a)},_onTargetFocus:function(a){this._focus=!0;this._onHover(a)},_onTargetBlur:function(a){this._focus=!1;this._onUnHover(a)},_onHover:function(a){if(!this._showTimer){var d=a.target;this._showTimer=setTimeout(b.hitch(this,function(){this.open(d)}),
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);c.showTooltip(this.label||this.domNode.innerHTML,a,this.position,!this.isLeftToRight());this._connectNode=a;this.onShow(a,this.position)},close:function(){this._connectNode&&(c.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)}});c.Tooltip.defaultPosition=["after","before"];return c.Tooltip});
define("dijit/form/ValidationTextBox","dojo,dijit,text!dijit/form/templates/ValidationTextBox.html,dojo/i18n,dijit/form/TextBox,dijit/Tooltip,i18n!dijit/form/nls/validate".split(","),function(b,c){b.declare("dijit.form.ValidationTextBox",c.form.TextBox,{templateString:b.cache("dijit.form","templates/ValidationTextBox.html"),baseClass:"dijitTextBox dijitValidationTextBox",required:!1,promptMessage:"",invalidMessage:"$_unset_$",missingMessage:"$_unset_$",message:"",constraints:{},regExp:".*",regExpGen:function(){return this.regExp},
state:"",tooltipPosition:[],_setValueAttr:function(){this.inherited(arguments);this.validate(this._focused)},validator:function(a,b){return RegExp("^(?:"+this.regExpGen(b)+")"+(this.required?"":"?")+"$").test(a)&&(!this.required||!this._isEmpty(a))&&(this._isEmpty(a)||this.parse(a,b)!==void 0)},_isValidSubset:function(){return this.textbox.value.search(this._partialre)==0},isValid:function(){return this.validator(this.textbox.value,this.constraints)},_isEmpty:function(a){return(this.trim?/^\s*$/:
/^$/).test(a)},getErrorMessage:function(){return this.required&&this._isEmpty(this.textbox.value)?this.missingMessage:this.invalidMessage},getPromptMessage:function(){return this.promptMessage},_maskValidSubsetError:!0,validate:function(a){var b="",f=this.disabled||this.isValid(a);if(f)this._maskValidSubsetError=!0;var e=this._isEmpty(this.textbox.value),g=!f&&a&&this._isValidSubset();this._set("state",f?"":((!this._hasBeenBlurred||a)&&e||g)&&this._maskValidSubsetError?"Incomplete":"Error");c.setWaiState(this.focusNode,
"invalid",f?"false":"true");this.state=="Error"?(this._maskValidSubsetError=a&&g,b=this.getErrorMessage(a)):this.state=="Incomplete"?(b=this.getPromptMessage(a),this._maskValidSubsetError=!this._hasBeenBlurred||a):e&&(b=this.getPromptMessage(a));this.set("message",b);return f},displayMessage:function(a){c.hideTooltip(this.domNode);a&&this._focused&&c.showTooltip(a,this.domNode,this.tooltipPosition,!this.isLeftToRight())},_refreshState:function(){this.validate(this._focused);this.inherited(arguments)},
constructor:function(){this.constraints={}},_setConstraintsAttr:function(a){if(!a.locale&&this.lang)a.locale=this.lang;this._set("constraints",a);this._computePartialRE()},_computePartialRE:function(){var a=this.regExpGen(this.constraints);this.regExp=a;var b="";a!=".*"&&this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(a){switch(a.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":b+=a;break;case ")":b+="|$)";break;default:b+="(?:"+a+"|$)"}});
try{"".search(b)}catch(c){b=this.regExp,console.warn("RegExp error in "+this.declaredClass+": "+this.regExp)}this._partialre="^(?:"+b+")$"},postMixInProperties:function(){this.inherited(arguments);this.messages=b.i18n.getLocalization("dijit.form","validate",this.lang);if(this.invalidMessage=="$_unset_$")this.invalidMessage=this.messages.invalidMessage;if(!this.invalidMessage)this.invalidMessage=this.promptMessage;if(this.missingMessage=="$_unset_$")this.missingMessage=this.messages.missingMessage;
if(!this.missingMessage)this.missingMessage=this.invalidMessage;this._setConstraintsAttr(this.constraints)},_setDisabledAttr:function(a){this.inherited(arguments);this._refreshState()},_setRequiredAttr:function(a){this._set("required",a);c.setWaiState(this.focusNode,"required",a);this._refreshState()},_setMessageAttr:function(a){this._set("message",a);this.displayMessage(a)},reset:function(){this._maskValidSubsetError=!0;this.inherited(arguments)},_onBlur:function(){this.displayMessage("");this.inherited(arguments)}});
b.declare("dijit.form.MappedTextBox",c.form.ValidationTextBox,{postMixInProperties:function(){this.inherited(arguments);this.nameAttrSetting=""},serialize:function(a){return a.toString?a.toString():""},toString:function(){var a=this.filter(this.get("value"));return a!=null?typeof a=="string"?a:this.serialize(a,this.constraints):""},validate:function(){this.valueNode.value=this.toString();return this.inherited(arguments)},buildRendering:function(){this.inherited(arguments);this.valueNode=b.place("<input type='hidden'"+
(this.name?" name='"+this.name.replace(/'/g,"&quot;")+"'":"")+"/>",this.textbox,"after")},reset:function(){this.valueNode.value="";this.inherited(arguments)}});b.declare("dijit.form.RangeBoundTextBox",c.form.MappedTextBox,{rangeMessage:"",rangeCheck:function(a,b){return("min"in b?this.compare(a,b.min)>=0:!0)&&("max"in b?this.compare(a,b.max)<=0:!0)},isInRange:function(){return this.rangeCheck(this.get("value"),this.constraints)},_isDefinitelyOutOfRange:function(){var a=this.get("value"),b=!1,c=!1;
if("min"in this.constraints)b=this.constraints.min,b=this.compare(a,typeof b=="number"&&b>=0&&a!=0?0:b),b=typeof b=="number"&&b<0;if("max"in this.constraints)c=this.constraints.max,c=this.compare(a,typeof c!="number"||c>0?c:0),c=typeof c=="number"&&c>0;return b||c},_isValidSubset:function(){return this.inherited(arguments)&&!this._isDefinitelyOutOfRange()},isValid:function(a){return this.inherited(arguments)&&(this._isEmpty(this.textbox.value)&&!this.required||this.isInRange(a))},getErrorMessage:function(a){var b=
this.get("value");return b!==null&&b!==""&&b!==void 0&&(typeof b!="number"||!isNaN(b))&&!this.isInRange(a)?this.rangeMessage:this.inherited(arguments)},postMixInProperties:function(){this.inherited(arguments);if(!this.rangeMessage)this.messages=b.i18n.getLocalization("dijit.form","validate",this.lang),this.rangeMessage=this.messages.rangeMessage},_setConstraintsAttr:function(a){this.inherited(arguments);this.focusNode&&(this.constraints.min!==void 0?c.setWaiState(this.focusNode,"valuemin",this.constraints.min):
c.removeWaiState(this.focusNode,"valuemin"),this.constraints.max!==void 0?c.setWaiState(this.focusNode,"valuemax",this.constraints.max):c.removeWaiState(this.focusNode,"valuemax"))},_setValueAttr:function(a,b){c.setWaiState(this.focusNode,"valuenow",a);this.inherited(arguments)}});return c.form.ValidationTextBox});
define("dijit/form/ComboBox","dojo,dijit,text!dijit/form/templates/DropDownBox.html,dojo/window,dojo/regexp,dojo/data/util/simpleFetch,dojo/data/util/filter,dijit/_CssStateMixin,dijit/form/_FormWidget,dijit/form/ValidationTextBox,dijit/_HasDropDown,i18n!dijit/form/nls/ComboBox".split(","),function(b,c){b.declare("dijit.form.ComboBoxMixin",c._HasDropDown,{item:null,pageSize:Infinity,store:null,fetchProperties:{},query:{},autoComplete:!0,highlightMatch:"first",searchDelay:100,searchAttr:"name",labelAttr:"",
labelType:"text",queryExpr:"${0}*",ignoreCase:!0,hasDownArrow:!0,templateString:b.cache("dijit.form","templates/DropDownBox.html"),baseClass:"dijitTextBox dijitComboBox",dropDownClass:"dijit.form._ComboBoxMenu",cssStateNodes:{_buttonNode:"dijitDownArrowButton"},maxHeight:-1,_stopClickEvents:!1,_getCaretPos:function(a){var d=0;if(typeof a.selectionStart=="number")d=a.selectionStart;else if(b.isIE){var c=b.doc.selection.createRange().duplicate(),a=a.createTextRange();c.move("character",0);a.move("character",
0);try{a.setEndPoint("EndToEnd",c),d=String(a.text).replace(/\r/g,"").length}catch(e){}}return d},_setCaretPos:function(a,b){b=parseInt(b);c.selectInputText(a,b,b)},_setDisabledAttr:function(a){this.inherited(arguments);c.setWaiState(this.domNode,"disabled",a)},_abortQuery:function(){if(this.searchTimer)clearTimeout(this.searchTimer),this.searchTimer=null;if(this._fetchHandle)this._fetchHandle.abort&&this._fetchHandle.abort(),this._fetchHandle=null},_onInput:function(a){if(!this.searchTimer&&(a.type==
"paste"||a.type=="input")&&this._lastInput!=this.textbox.value)this.searchTimer=setTimeout(b.hitch(this,function(){this._onKey({charOrCode:229})}),100);this.inherited(arguments)},_onKey:function(a){var d=a.charOrCode;if(!a.altKey&&!((a.ctrlKey||a.metaKey)&&d!="x"&&d!="v"||d==b.keys.SHIFT)){var c=!1,e=this.dropDown,g=b.keys,h=null;this._prev_key_backspace=!1;this._abortQuery();this.inherited(arguments);this._opened&&(h=e.getHighlightedOption());switch(d){case g.PAGE_DOWN:case g.DOWN_ARROW:case g.PAGE_UP:case g.UP_ARROW:this._opened&&
this._announceOption(h);b.stopEvent(a);break;case g.ENTER:if(h)if(h==e.nextButton){this._nextSearch(1);b.stopEvent(a);break}else{if(h==e.previousButton){this._nextSearch(-1);b.stopEvent(a);break}}else this._setBlurValue(),this._setCaretPos(this.focusNode,this.focusNode.value.length);(this._opened||this._fetchHandle)&&a.preventDefault();case g.TAB:d=this.get("displayedValue");if(e&&(d==e._messages.previousMessage||d==e._messages.nextMessage))break;h&&this._selectOption();if(this._opened)this._lastQuery=
null,this.closeDropDown();break;case " ":h?(b.stopEvent(a),this._selectOption(),this.closeDropDown()):c=!0;break;case g.DELETE:case g.BACKSPACE:c=this._prev_key_backspace=!0;break;default:c=typeof d=="string"||d==229}if(c)this.item=void 0,this.searchTimer=setTimeout(b.hitch(this,"_startSearchFromInput"),1)}},_autoCompleteText:function(a){var b=this.focusNode;c.selectInputText(b,b.value.length);var f=this.ignoreCase?"toLowerCase":"substr";if(a[f](0).indexOf(this.focusNode.value[f](0))==0){if(f=this._getCaretPos(b),
f+1>b.value.length)b.value=a,c.selectInputText(b,f)}else b.value=a,c.selectInputText(b)},_openResultList:function(a,d){this._fetchHandle=null;if(!this.disabled&&!(this.readOnly||d.query[this.searchAttr]!=this._lastQuery)){var c=this.dropDown._highlighted_option&&b.hasClass(this.dropDown._highlighted_option,"dijitMenuItemSelected");this.dropDown.clearResultList();if(!a.length&&!this._maxOptions)this.closeDropDown();else{d._maxOptions=this._maxOptions;var e=this.dropDown.createOptions(a,d,b.hitch(this,
"_getMenuLabelFromItem"));this._showResultList();d.direction?(1==d.direction?this.dropDown.highlightFirstOption():-1==d.direction&&this.dropDown.highlightLastOption(),c&&this._announceOption(this.dropDown.getHighlightedOption())):this.autoComplete&&!this._prev_key_backspace&&!/^[*]+$/.test(d.query[this.searchAttr])&&this._announceOption(e[1])}}},_showResultList:function(){this.closeDropDown(!0);this.displayMessage("");this.openDropDown();c.setWaiState(this.domNode,"expanded","true")},loadDropDown:function(){this._startSearchAll()},
isLoaded:function(){return!1},closeDropDown:function(){this._abortQuery();this._opened&&(this.inherited(arguments),c.setWaiState(this.domNode,"expanded","false"),c.removeWaiState(this.focusNode,"activedescendant"))},_setBlurValue:function(){var a=this.get("displayedValue"),b=this.dropDown;b&&(a==b._messages.previousMessage||a==b._messages.nextMessage)?this._setValueAttr(this._lastValueReported,!0):typeof this.item=="undefined"?(this.item=null,this.set("displayedValue",a)):(this.value!=this._lastValueReported&&
c.form._FormValueWidget.prototype._setValueAttr.call(this,this.value,!0),this._refreshState())},_onBlur:function(){this.closeDropDown();this.inherited(arguments)},_setItemAttr:function(a,b,f){f||(f=this.store.getValue(a,this.searchAttr));var e=this._getValueField()!=this.searchAttr?this.store.getIdentity(a):f;this._set("item",a);c.form.ComboBox.superclass._setValueAttr.call(this,e,b,f)},_announceOption:function(a){if(a){var d;a==this.dropDown.nextButton||a==this.dropDown.previousButton?(d=a.innerHTML,
this.item=void 0,this.value=""):(d=this.store.getValue(a.item,this.searchAttr).toString(),this.set("item",a.item,!1,d));this.focusNode.value=this.focusNode.value.substring(0,this._lastInput.length);c.setWaiState(this.focusNode,"activedescendant",b.attr(a,"id"));this._autoCompleteText(d)}},_selectOption:function(a){a&&this._announceOption(a.target);this.closeDropDown();this._setCaretPos(this.focusNode,this.focusNode.value.length);c.form._FormValueWidget.prototype._setValueAttr.call(this,this.value,
!0)},_startSearchAll:function(){this._startSearch("")},_startSearchFromInput:function(){this._startSearch(this.focusNode.value.replace(/([\\\*\?])/g,"\\$1"))},_getQueryString:function(a){return b.string.substitute(this.queryExpr,[a])},_startSearch:function(a){if(!this.dropDown){var d=this.id+"_popup";this.dropDown=new (b.getObject(this.dropDownClass,!1))({onChange:b.hitch(this,this._selectOption),id:d,dir:this.dir});c.removeWaiState(this.focusNode,"activedescendant");c.setWaiState(this.textbox,"owns",
d)}d=b.clone(this.query);this._lastInput=a;this._lastQuery=d[this.searchAttr]=this._getQueryString(a);this.searchTimer=setTimeout(b.hitch(this,function(a,d){this.searchTimer=null;var c={queryOptions:{ignoreCase:this.ignoreCase,deep:!0},query:a,onBegin:b.hitch(this,"_setMaxOptions"),onComplete:b.hitch(this,"_openResultList"),onError:function(a){d._fetchHandle=null;console.error("dijit.form.ComboBox: "+a);d.closeDropDown()},start:0,count:this.pageSize};b.mixin(c,d.fetchProperties);this._fetchHandle=
d.store.fetch(c);this._nextSearch=this.dropDown.onPage=b.hitch(this,function(a,b){a.start+=a.count*b;a.direction=b;this._fetchHandle=this.store.fetch(a);this.focus()},this._fetchHandle)},d,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 c.form._ComboBoxDataStore(this.srcNodeRef),!("value"in this.params))){var a=
this.item=this.store.fetchSelectedItem();if(a){var b=this._getValueField();this.value=this.store.getValue(a,b)}}this.inherited(arguments)},postCreate:function(){var a=b.query('label[for="'+this.id+'"]');if(a.length)a[0].id=this.id+"_label",c.setWaiState(this.domNode,"labelledby",a[0].id);this.inherited(arguments)},_setHasDownArrowAttr:function(a){this.hasDownArrow=a;this._buttonNode.style.display=a?"":"none"},_getMenuLabelFromItem:function(a){var a=this.labelFunc(a,this.store),b=this.labelType;this.highlightMatch!=
"none"&&this.labelType=="text"&&this._lastInput&&(a=this.doHighlight(a,this._escapeHtml(this._lastInput)),b="html");return{html:b=="html",label:a}},doHighlight:function(a,d){var c=(this.ignoreCase?"i":"")+(this.highlightMatch=="all"?"g":""),e=this.queryExpr.indexOf("${0}"),d=b.regexp.escapeString(d);return this._escapeHtml(a).replace(RegExp((e==0?"^":"")+"("+d+")"+(e==this.queryExpr.length-4?"$":""),c),'<span class="dijitComboBoxHighlightMatch">$1</span>')},_escapeHtml:function(a){return a=String(a).replace(/&/gm,
"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;")},reset:function(){this.item=null;this.inherited(arguments)},labelFunc:function(a,b){return b.getValue(a,this.labelAttr||this.searchAttr).toString()}});b.declare("dijit.form._ComboBoxMenu",[c._Widget,c._Templated,c._CssStateMixin],{templateString:"<ul class='dijitReset dijitMenu' dojoAttachEvent='onmousedown:_onMouseDown,onmouseup:_onMouseUp,onmouseover:_onMouseOver,onmouseout:_onMouseOut' style='overflow: \"auto\"; overflow-x: \"hidden\";'><li class='dijitMenuItem dijitMenuPreviousButton' dojoAttachPoint='previousButton' role='option'></li><li class='dijitMenuItem dijitMenuNextButton' dojoAttachPoint='nextButton' role='option'></li></ul>",
_messages:null,baseClass:"dijitComboBoxMenu",postMixInProperties:function(){this.inherited(arguments);this._messages=b.i18n.getLocalization("dijit.form","ComboBox",this.lang)},buildRendering:function(){this.inherited(arguments);this.previousButton.innerHTML=this._messages.previousMessage;this.nextButton.innerHTML=this._messages.nextMessage},_setValueAttr:function(a){this.value=a;this.onChange(a)},onChange:function(){},onPage:function(){},onClose:function(){this._blurOptionNode()},_createOption:function(a,
d){var c=b.create("li",{"class":"dijitReset dijitMenuItem"+(this.isLeftToRight()?"":" dijitMenuItemRtl"),role:"option"}),e=d(a);e.html?c.innerHTML=e.label:c.appendChild(b.doc.createTextNode(e.label));if(c.innerHTML=="")c.innerHTML="&nbsp;";c.item=a;return c},createOptions:function(a,d,c){this.previousButton.style.display=d.start==0?"none":"";b.attr(this.previousButton,"id",this.id+"_prev");b.forEach(a,function(a,d){var e=this._createOption(a,c);b.attr(e,"id",this.id+d);this.domNode.insertBefore(e,
this.nextButton)},this);var e=!1;d._maxOptions&&d._maxOptions!=-1?d.start+d.count<d._maxOptions?e=!0:d.start+d.count>d._maxOptions&&d.count==a.length&&(e=!0):d.count==a.length&&(e=!0);this.nextButton.style.display=e?"":"none";b.attr(this.nextButton,"id",this.id+"_next");return this.domNode.childNodes},clearResultList:function(){for(;this.domNode.childNodes.length>2;)this.domNode.removeChild(this.domNode.childNodes[this.domNode.childNodes.length-2]);this._blurOptionNode()},_onMouseDown:function(a){b.stopEvent(a)},
_onMouseUp:function(a){if(a.target!==this.domNode&&this._highlighted_option)if(a.target==this.previousButton)this._blurOptionNode(),this.onPage(-1);else if(a.target==this.nextButton)this._blurOptionNode(),this.onPage(1);else{for(a=a.target;!a.item;)a=a.parentNode;this._setValueAttr({target:a},!0)}},_onMouseOver:function(a){if(a.target!==this.domNode){a=a.target;if(!(a==this.previousButton||a==this.nextButton))for(;!a.item;)a=a.parentNode;this._focusOptionNode(a)}},_onMouseOut:function(a){a.target!==
this.domNode&&this._blurOptionNode()},_focusOptionNode:function(a){if(this._highlighted_option!=a)this._blurOptionNode(),this._highlighted_option=a,b.addClass(this._highlighted_option,"dijitMenuItemSelected")},_blurOptionNode:function(){if(this._highlighted_option)b.removeClass(this._highlighted_option,"dijitMenuItemSelected"),this._highlighted_option=null},_highlightNextOption:function(){if(this.getHighlightedOption()){var a=this._highlighted_option.nextSibling;a&&a.style.display!="none"?this._focusOptionNode(a):
this.highlightFirstOption()}else a=this.domNode.firstChild,this._focusOptionNode(a.style.display=="none"?a.nextSibling:a);b.window.scrollIntoView(this._highlighted_option)},highlightFirstOption:function(){var a=this.domNode.firstChild,d=a.nextSibling;this._focusOptionNode(d.style.display=="none"?a:d);b.window.scrollIntoView(this._highlighted_option)},highlightLastOption:function(){this._focusOptionNode(this.domNode.lastChild.previousSibling);b.window.scrollIntoView(this._highlighted_option)},_highlightPrevOption:function(){if(this.getHighlightedOption()){var a=
this._highlighted_option.previousSibling;a&&a.style.display!="none"?this._focusOptionNode(a):this.highlightLastOption()}else a=this.domNode.lastChild,this._focusOptionNode(a.style.display=="none"?a.previousSibling:a);b.window.scrollIntoView(this._highlighted_option)},_page:function(a){var d=0,c=this.domNode.scrollTop,e=b.style(this.domNode,"height");for(this.getHighlightedOption()||this._highlightNextOption();d<e;){if(a){if(!this.getHighlightedOption().previousSibling||this._highlighted_option.previousSibling.style.display==
"none")break;this._highlightPrevOption()}else{if(!this.getHighlightedOption().nextSibling||this._highlighted_option.nextSibling.style.display=="none")break;this._highlightNextOption()}var g=this.domNode.scrollTop;d+=(g-c)*(a?-1:1);c=g}},pageUp:function(){this._page(!0)},pageDown:function(){this._page(!1)},getHighlightedOption:function(){var a=this._highlighted_option;return a&&a.parentNode?a:null},handleKey:function(a){switch(a.charOrCode){case b.keys.DOWN_ARROW:return this._highlightNextOption(),
!1;case b.keys.PAGE_DOWN:return this.pageDown(),!1;case b.keys.UP_ARROW:return this._highlightPrevOption(),!1;case b.keys.PAGE_UP:return this.pageUp(),!1;default:return!0}}});b.declare("dijit.form.ComboBox",[c.form.ValidationTextBox,c.form.ComboBoxMixin],{_setValueAttr:function(a,b,f){this._set("item",null);a||(a="");c.form.ValidationTextBox.prototype._setValueAttr.call(this,a,b,f)}});b.declare("dijit.form._ComboBoxDataStore",null,{constructor:function(a){this.root=a;if(a.tagName!="SELECT"&&a.firstChild)a=
b.query("select",a),a.length>0?a=a[0]:(this.root.innerHTML="<SELECT>"+this.root.innerHTML+"</SELECT>",a=this.root.firstChild),this.root=a;b.query("> option",a).forEach(function(a){a.innerHTML=b.trim(a.innerHTML)})},getValue:function(a,b){return b=="value"?a.value:a.innerText||a.textContent||""},isItemLoaded:function(){return!0},getFeatures:function(){return{"dojo.data.api.Read":!0,"dojo.data.api.Identity":!0}},_fetchItems:function(a,d){if(!a.query)a.query={};if(!a.query.name)a.query.name="";if(!a.queryOptions)a.queryOptions=
{};var c=b.data.util.filter.patternToRegExp(a.query.name,a.queryOptions.ignoreCase),e=b.query("> option",this.root).filter(function(a){return(a.innerText||a.textContent||"").match(c)});a.sort&&e.sort(b.data.util.sorter.createSortFunction(a.sort,this));d(e,a)},close:function(){},getLabel:function(a){return a.innerHTML},getIdentity:function(a){return b.attr(a,"value")},fetchItemByIdentity:function(a){var d=b.query("> option[value='"+a.identity+"']",this.root)[0];a.onItem(d)},fetchSelectedItem:function(){var a=
this.root,d=a.selectedIndex;return typeof d=="number"?b.query("> option:nth-child("+(d!=-1?d+1:1)+")",a)[0]:null}});b.extend(c.form._ComboBoxDataStore,b.data.util.simpleFetch);return c.form.ComboBox});
define("dijit/MenuItem","dojo,dijit,text!dijit/templates/MenuItem.html,dijit/_Widget,dijit/_Templated,dijit/_Contained,dijit/_CssStateMixin".split(","),function(b,c){b.declare("dijit.MenuItem",[c._Widget,c._Templated,c._Contained,c._CssStateMixin],{templateString:b.cache("dijit","templates/MenuItem.html"),attributeMap:b.delegate(c._Widget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),baseClass:"dijitMenuItem",label:"",iconClass:"",
accelKey:"",disabled:!1,_fillContent:function(a){a&&!("label"in this.params)&&this.set("label",a.innerHTML)},buildRendering:function(){this.inherited(arguments);var a=this.id+"_text";b.attr(this.containerNode,"id",a);this.accelKeyNode&&(b.attr(this.accelKeyNode,"id",this.id+"_accel"),a+=" "+this.id+"_accel");c.setWaiState(this.domNode,"labelledby",a);b.setSelectable(this.domNode,!1)},_onHover:function(){this.getParent().onItemHover(this)},_onUnhover:function(){this.getParent().onItemUnhover(this);
this._set("hovering",!1)},_onClick:function(a){this.getParent().onItemClick(this,a);b.stopEvent(a)},onClick:function(){},focus:function(){try{b.isIE==8&&this.containerNode.focus(),c.focus(this.focusNode)}catch(a){}},_onFocus:function(){this._setSelected(!0);this.getParent()._onItemFocus(this);this.inherited(arguments)},_setSelected:function(a){b.toggleClass(this.domNode,"dijitMenuItemSelected",a)},setLabel:function(a){b.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use set('label', ...) instead.",
"","2.0");this.set("label",a)},setDisabled:function(a){b.deprecated("dijit.Menu.setDisabled() is deprecated.  Use set('disabled', bool) instead.","","2.0");this.set("disabled",a)},_setDisabledAttr:function(a){c.setWaiState(this.focusNode,"disabled",a?"true":"false");this._set("disabled",a)},_setAccelKeyAttr:function(a){this.accelKeyNode.style.display=a?"":"none";this.accelKeyNode.innerHTML=a;b.attr(this.containerNode,"colSpan",a?"1":"2");this._set("accelKey",a)}});return c.MenuItem});
define("dijit/CheckedMenuItem",["dojo","dijit","text!dijit/templates/CheckedMenuItem.html","dijit/MenuItem"],function(b,c){b.declare("dijit.CheckedMenuItem",c.MenuItem,{templateString:b.cache("dijit","templates/CheckedMenuItem.html"),checked:!1,_setCheckedAttr:function(a){b.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",a);c.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 c.CheckedMenuItem});
define("dijit/PopupMenuItem",["dojo","dijit","dijit/MenuItem"],function(b,c){b.declare("dijit.PopupMenuItem",c.MenuItem,{_fillContent:function(){if(this.srcNodeRef){var a=b.query("*",this.srcNodeRef);c.PopupMenuItem.superclass._fillContent.call(this,a[0]);this.dropDownContainer=this.srcNodeRef}},startup:function(){if(!this._started){this.inherited(arguments);if(!this.popup){var a=b.query("[widgetId]",this.dropDownContainer)[0];this.popup=c.byNode(a)}b.body().appendChild(this.popup.domNode);this.popup.startup();
this.popup.domNode.style.display="none";this.arrowWrapper&&b.style(this.arrowWrapper,"visibility","");c.setWaiState(this.focusNode,"haspopup","true")}},destroyDescendants:function(){this.popup&&(this.popup._destroyed||this.popup.destroyRecursive(),delete this.popup);this.inherited(arguments)}});return c.PopupMenuItem});
define("dijit/MenuSeparator","dojo,dijit,text!dijit/templates/MenuSeparator.html,dijit/_Widget,dijit/_Templated,dijit/_Contained".split(","),function(b,c){b.declare("dijit.MenuSeparator",[c._Widget,c._Templated,c._Contained],{templateString:b.cache("dijit","templates/MenuSeparator.html"),buildRendering:function(){this.inherited(arguments);b.setSelectable(this.domNode,!1)},isFocusable:function(){return!1}});return c.MenuSeparator});
define("dijit/Menu","dojo,dijit,text!dijit/templates/Menu.html,dojo/window,dijit/_Widget,dijit/_KeyNavContainer,dijit/_Templated,dijit/MenuItem,dijit/PopupMenuItem,dijit/CheckedMenuItem,dijit/MenuSeparator".split(","),function(b,c){b.declare("dijit._MenuBase",[c._Widget,c._Templated,c._KeyNavContainer],{parentMenu:null,popupDelay:500,startup:function(){this._started||(b.forEach(this.getChildren(),function(a){a.startup()}),this.startupKeyNavChildren(),this.inherited(arguments))},onExecute:function(){},
onCancel:function(){},_moveToPopup:function(a){this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled?this.focusedChild._onClick(a):(a=this._getTopMenu())&&a._isMenuBar&&a.focusNext()},_onPopupHover:function(){if(this.currentPopup&&this.currentPopup._pendingClose_timer){var a=this.currentPopup.parentMenu;a.focusedChild&&a.focusedChild._setSelected(!1);a.focusedChild=this.currentPopup.from_item;a.focusedChild._setSelected(!0);this._stopPendingCloseTimer(this.currentPopup)}},onItemHover:function(a){if(this.isActive&&
(this.focusChild(a),this.focusedChild.popup&&!this.focusedChild.disabled&&!this.hover_timer))this.hover_timer=setTimeout(b.hitch(this,"_openPopup"),this.popupDelay);this.focusedChild&&this.focusChild(a);this._hoveredChild=a},_onChildBlur:function(a){this._stopPopupTimer();a._setSelected(!1);var b=a.popup;if(b)this._stopPendingCloseTimer(b),b._pendingClose_timer=setTimeout(function(){b._pendingClose_timer=null;if(b.parentMenu)b.parentMenu.currentPopup=null;c.popup.close(b)},this.popupDelay)},onItemUnhover:function(a){this.isActive&&
this._stopPopupTimer();if(this._hoveredChild==a)this._hoveredChild=null},_stopPopupTimer:function(){if(this.hover_timer)clearTimeout(this.hover_timer),this.hover_timer=null},_stopPendingCloseTimer:function(a){if(a._pendingClose_timer)clearTimeout(a._pendingClose_timer),a._pendingClose_timer=null},_stopFocusTimer:function(){if(this._focus_timer)clearTimeout(this._focus_timer),this._focus_timer=null},_getTopMenu:function(){for(var a=this;a.parentMenu;a=a.parentMenu);return a},onItemClick:function(a,
b){typeof this.isShowingNow=="undefined"&&this._markActive();this.focusChild(a);if(a.disabled)return!1;a.popup?this._openPopup():(this.onExecute(),a.onClick(b))},_openPopup:function(){this._stopPopupTimer();var a=this.focusedChild;if(a){var d=a.popup;if(!d.isShowingNow){this.currentPopup&&(this._stopPendingCloseTimer(this.currentPopup),c.popup.close(this.currentPopup));d.parentMenu=this;d.from_item=a;var f=this;c.popup.open({parent:this,popup:d,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(){f.focusChild(a);f._cleanUp();a._setSelected(!0);f.focusedChild=a},onExecute:b.hitch(this,"_cleanUp")});this.currentPopup=d;d.connect(d.domNode,"onmouseenter",b.hitch(f,"_onPopupHover"));if(d.focus)d._focus_timer=setTimeout(b.hitch(d,function(){this._focus_timer=null;this.focus()}),0)}}},_markActive:function(){this.isActive=!0;b.replaceClass(this.domNode,"dijitMenuActive","dijitMenuPassive")},onOpen:function(){this.isShowingNow=
!0;this._markActive()},_markInactive:function(){this.isActive=!1;b.replaceClass(this.domNode,"dijitMenuPassive","dijitMenuActive")},onClose:function(){this._stopFocusTimer();this._markInactive();this.isShowingNow=!1;this.parentMenu=null},_closeChild:function(){this._stopPopupTimer();if(this.currentPopup)c._curFocus&&b.isDescendant(c._curFocus,this.currentPopup.domNode)&&this.focusedChild.focusNode.focus(),c.popup.close(this.currentPopup),this.currentPopup=null;if(this.focusedChild)this.focusedChild._setSelected(!1),
this.focusedChild._onUnhover(),this.focusedChild=null},_onItemFocus:function(a){this._hoveredChild&&this._hoveredChild!=a&&this._hoveredChild._onUnhover()},_onBlur:function(){this._cleanUp();this.inherited(arguments)},_cleanUp:function(){this._closeChild();typeof this.isShowingNow=="undefined"&&this._markInactive()}});b.declare("dijit.Menu",c._MenuBase,{constructor:function(){this._bindings=[]},templateString:b.cache("dijit","templates/Menu.html"),baseClass:"dijitMenu",targetNodeIds:[],contextMenuForWindow:!1,
leftClickToOpen:!1,refocus:!0,postCreate:function(){this.contextMenuForWindow?this.bindDomNode(b.body()):b.forEach(this.targetNodeIds,this.bindDomNode,this);var a=b.keys,d=this.isLeftToRight();this._openSubMenuKey=d?a.RIGHT_ARROW:a.LEFT_ARROW;this._closeSubMenuKey=d?a.LEFT_ARROW:a.RIGHT_ARROW;this.connectKeyNavHandlers([a.UP_ARROW],[a.DOWN_ARROW])},_onKeyPress:function(a){if(!a.ctrlKey&&!a.altKey)switch(a.charOrCode){case this._openSubMenuKey:this._moveToPopup(a);b.stopEvent(a);break;case this._closeSubMenuKey:if(this.parentMenu)if(this.parentMenu._isMenuBar)this.parentMenu.focusPrev();
else this.onCancel(!1);else b.stopEvent(a)}},_iframeContentWindow:function(a){return b.window.get(this._iframeContentDocument(a))||this._iframeContentDocument(a).__parent__||a.name&&b.doc.frames[a.name]||null},_iframeContentDocument:function(a){return a.contentDocument||a.contentWindow&&a.contentWindow.document||a.name&&b.doc.frames[a.name]&&b.doc.frames[a.name].document||null},bindDomNode:function(a){var a=b.byId(a),d;if(a.tagName.toLowerCase()=="iframe"){var c=a,e=this._iframeContentWindow(c);d=
b.withGlobal(e,b.body)}else d=a==b.body()?b.doc.documentElement:a;var g={node:a,iframe:c};b.attr(a,"_dijitMenu"+this.id,this._bindings.push(g));var h=b.hitch(this,function(a){return[b.connect(a,this.leftClickToOpen?"onclick":"oncontextmenu",this,function(a){b.stopEvent(a);this._scheduleOpen(a.target,c,{x:a.pageX,y:a.pageY})}),b.connect(a,"onkeydown",this,function(a){a.shiftKey&&a.keyCode==b.keys.F10&&(b.stopEvent(a),this._scheduleOpen(a.target,c))})]});g.connects=d?h(d):[];if(c)g.onloadHandler=b.hitch(this,
function(){var a=this._iframeContentWindow(c);d=b.withGlobal(a,b.body);g.connects=h(d)}),c.addEventListener?c.addEventListener("load",g.onloadHandler,!1):c.attachEvent("onload",g.onloadHandler)},unBindDomNode:function(a){var d;try{d=b.byId(a)}catch(c){return}a="_dijitMenu"+this.id;if(d&&b.hasAttr(d,a)){var e=b.attr(d,a)-1,g=this._bindings[e];b.forEach(g.connects,b.disconnect);var h=g.iframe;h&&(h.removeEventListener?h.removeEventListener("load",g.onloadHandler,!1):h.detachEvent("onload",g.onloadHandler));
b.removeAttr(d,a);delete this._bindings[e]}},_scheduleOpen:function(a,d,c){if(!this._openTimer)this._openTimer=setTimeout(b.hitch(this,function(){delete this._openTimer;this._openMyself({target:a,iframe:d,coords:c})}),1)},_openMyself:function(a){function d(){k.refocus&&c.focus(l);c.popup.close(k)}var f=a.target,e=a.iframe;if(a=a.coords){if(e){var f=b.position(e,!0),g=this._iframeContentWindow(e),g=b.withGlobal(g,"_docScroll",b),h=b.getComputedStyle(e),i=b._toPixelValue,j=(b.isIE&&b.isQuirks?0:i(e,
h.paddingLeft))+(b.isIE&&b.isQuirks?i(e,h.borderLeftWidth):0),e=(b.isIE&&b.isQuirks?0:i(e,h.paddingTop))+(b.isIE&&b.isQuirks?i(e,h.borderTopWidth):0);a.x+=f.x+j-g.x;a.y+=f.y+e-g.y}}else a=b.position(f,!0),a.x+=10,a.y+=10;var k=this,l=c.getFocus(this);c.popup.open({popup:this,x:a.x,y:a.y,onExecute:d,onCancel:d,orient:this.isLeftToRight()?"L":"R"});this.focus();this._onBlur=function(){this.inherited("_onBlur",arguments);c.popup.close(this)}},uninitialize:function(){b.forEach(this._bindings,function(a){a&&
this.unBindDomNode(a.node)},this);this.inherited(arguments)}});return c.Menu});
define("dijit/DialogUnderlay",["dojo","dijit","dojo/window","dijit/_Widget","dijit/_Templated"],function(b,c){b.declare("dijit.DialogUnderlay",[c._Widget,c._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper'><div class='dijitDialogUnderlay' dojoAttachPoint='node'></div></div>",dialogId:"","class":"",attributeMap:{id:"domNode"},_setDialogIdAttr:function(a){b.attr(this.node,"id",a+"_underlay");this._set("dialogId",a)},_setClassAttr:function(a){this.node.className="dijitDialogUnderlay "+
a;this._set("class",a)},postCreate:function(){b.body().appendChild(this.domNode)},layout:function(){var a=this.node.style,d=this.domNode.style;d.display="none";var c=b.window.getBox();d.top=c.t+"px";d.left=c.l+"px";a.width=c.w+"px";a.height=c.h+"px";d.display="block"},show:function(){this.domNode.style.display="block";this.layout();this.bgIframe=new c.BackgroundIframe(this.domNode)},hide:function(){this.bgIframe.destroy();delete this.bgIframe;this.domNode.style.display="none"}});return c.DialogUnderlay});
define("dijit/form/Form","dojo,dijit,dijit/_Widget,dijit/_Templated,dijit/form/_FormMixin,dijit/layout/_ContentPaneResizeMixin".split(","),function(b,c){b.declare("dijit.form.Form",[c._Widget,c._Templated,c.form._FormMixin,c.layout._ContentPaneResizeMixin],{name:"",action:"",method:"",encType:"","accept-charset":"",accept:"",target:"",templateString:"<form dojoAttachPoint='containerNode' dojoAttachEvent='onreset:_onReset,onsubmit:_onSubmit' ${!nameAttrSetting}></form>",attributeMap:b.delegate(c._Widget.prototype.attributeMap,
{action:"",method:"",encType:"","accept-charset":"",accept:"",target:""}),postMixInProperties:function(){this.nameAttrSetting=this.name?"name='"+this.name+"'":"";this.inherited(arguments)},execute:function(){},onExecute:function(){},_setEncTypeAttr:function(a){this.encType=a;b.attr(this.domNode,"encType",a);if(b.isIE)this.domNode.encoding=a},postCreate:function(){if(b.isIE&&this.srcNodeRef&&this.srcNodeRef.attributes){var a=this.srcNodeRef.attributes.getNamedItem("encType");a&&!a.specified&&typeof a.value==
"string"&&this.set("encType",a.value)}this.inherited(arguments)},reset:function(a){var b={returnValue:!0,preventDefault:function(){this.returnValue=!1},stopPropagation:function(){},currentTarget:a?a.target:this.domNode,target:a?a.target:this.domNode};this.onReset(b)!==!1&&b.returnValue&&this.inherited(arguments,[])},onReset:function(){return!0},_onReset:function(a){this.reset(a);b.stopEvent(a);return!1},_onSubmit:function(a){var d=c.form.Form.prototype;if(this.execute!=d.execute||this.onExecute!=
d.onExecute)b.deprecated("dijit.form.Form:execute()/onExecute() are deprecated. Use onSubmit() instead.","","2.0"),this.onExecute(),this.execute(this.getValues());this.onSubmit(a)===!1&&b.stopEvent(a)},onSubmit:function(){return this.isValid()},submit:function(){this.onSubmit()!==!1&&this.containerNode.submit()}});return c.form.Form});
define("dijit/ProgressBar","dojo,dijit,text!dijit/templates/ProgressBar.html,dojo/fx,dojo/number,dijit/_Widget,dijit/_Templated".split(","),function(b,c){b.declare("dijit.ProgressBar",[c._Widget,c._Templated],{progress:"0",value:"",maximum:100,places:0,indeterminate:!1,label:"",name:"",templateString:b.cache("dijit","templates/ProgressBar.html"),_indeterminateHighContrastImagePath:b.moduleUrl("dijit","themes/a11y/indeterminate_progress.gif"),postMixInProperties:function(){this.inherited(arguments);
if(!("value"in this.params))this.value=this.indeterminate?Infinity:this.progress},buildRendering:function(){this.inherited(arguments);this.indeterminateHighContrastImage.setAttribute("src",this._indeterminateHighContrastImagePath.toString());this.update()},update:function(a){b.mixin(this,a||{});var a=this.internalProgress,d=this.domNode,f=1;this.indeterminate?(c.removeWaiState(d,"valuenow"),c.removeWaiState(d,"valuemin"),c.removeWaiState(d,"valuemax")):(String(this.progress).indexOf("%")!=-1?(f=Math.min(parseFloat(this.progress)/
100,1),this.progress=f*this.maximum):(this.progress=Math.min(this.progress,this.maximum),f=this.progress/this.maximum),c.setWaiState(d,"describedby",this.labelNode.id),c.setWaiState(d,"valuenow",this.progress),c.setWaiState(d,"valuemin",0),c.setWaiState(d,"valuemax",this.maximum));this.labelNode.innerHTML=this.report(f);b.toggleClass(this.domNode,"dijitProgressBarIndeterminate",this.indeterminate);a.style.width=f*100+"%";this.onChange()},_setValueAttr:function(a){this._set("value",a);a==Infinity?
this.update({indeterminate:!0}):this.update({indeterminate:!1,progress:a})},_setLabelAttr:function(a){this._set("label",a);this.update()},_setIndeterminateAttr:function(a){this.indeterminate=a;this.update()},report:function(a){return this.label?this.label:this.indeterminate?"&nbsp;":b.number.format(a,{type:"percent",places:this.places,locale:this.lang})},onChange:function(){}});return c.ProgressBar});
define("dojo/dnd/Container",["dojo","dojo/dnd/common","dojo/parser"],function(b){b.declare("dojo.dnd.Container",null,{skipForm:!1,constructor:function(c,a){this.node=b.byId(c);a||(a={});this.creator=a.creator||null;this.skipForm=a.skipForm;this.parent=a.dropParent&&b.byId(a.dropParent);this.map={};this.current=null;this.containerState="";b.addClass(this.node,"dojoDndContainer");(!a||!a._skipStartup)&&this.startup();this.events=[b.connect(this.node,"onmouseover",this,"onMouseOver"),b.connect(this.node,
"onmouseout",this,"onMouseOut"),b.connect(this.node,"ondragstart",this,"onSelectStart"),b.connect(this.node,"onselectstart",this,"onSelectStart")]},creator:function(){},getItem:function(b){return this.map[b]},setItem:function(b,a){this.map[b]=a},delItem:function(b){delete this.map[b]},forInItems:function(c,a){var a=a||b.global,d=this.map,f=b.dnd._empty,e;for(e in d)e in f||c.call(a,d[e],e,this);return a},clearItems:function(){this.map={}},getAllNodes:function(){return b.query("> .dojoDndItem",this.parent)},
sync:function(){var c={};this.getAllNodes().forEach(function(a){if(a.id){var d=this.getItem(a.id);if(d){c[a.id]=d;return}}else a.id=b.dnd.getUniqueId();var d=a.getAttribute("dndType"),f=a.getAttribute("dndData");c[a.id]={data:f||a.innerHTML,type:d?d.split(/\s*,\s*/):["text"]}},this);this.map=c;return this},insertNodes:function(b,a,d){if(this.parent.firstChild)if(a){if(!d)d=this.parent.firstChild}else{if(d)d=d.nextSibling}else d=null;if(d)for(a=0;a<b.length;++a){var f=this._normalizedCreator(b[a]);
this.setItem(f.node.id,{data:f.data,type:f.type});this.parent.insertBefore(f.node,d)}else for(a=0;a<b.length;++a)f=this._normalizedCreator(b[a]),this.setItem(f.node.id,{data:f.data,type:f.type}),this.parent.appendChild(f.node);return this},destroy:function(){b.forEach(this.events,b.disconnect);this.clearItems();this.node=this.parent=this.current=null},markupFactory:function(c,a){c._skipStartup=!0;return new b.dnd.Container(a,c)},startup:function(){if(!this.parent&&(this.parent=this.node,this.parent.tagName.toLowerCase()==
"table")){var c=this.parent.getElementsByTagName("tbody");if(c&&c.length)this.parent=c[0]}this.defaultCreator=b.dnd._defaultCreator(this.parent);this.sync()},onMouseOver:function(b){for(var a=b.relatedTarget;a;){if(a==this.node)break;try{a=a.parentNode}catch(d){a=null}}a||(this._changeState("Container","Over"),this.onOverEvent());a=this._getChildByEvent(b);if(this.current!=a)this.current&&this._removeItemClass(this.current,"Over"),a&&this._addItemClass(a,"Over"),this.current=a},onMouseOut:function(b){for(b=
b.relatedTarget;b;){if(b==this.node)return;try{b=b.parentNode}catch(a){b=null}}if(this.current)this._removeItemClass(this.current,"Over"),this.current=null;this._changeState("Container","");this.onOutEvent()},onSelectStart:function(c){(!this.skipForm||!b.dnd.isFormElement(c))&&b.stopEvent(c)},onOverEvent:function(){},onOutEvent:function(){},_changeState:function(c,a){var d="dojoDnd"+c,f=c.toLowerCase()+"State";b.replaceClass(this.node,d+a,d+this[f]);this[f]=a},_addItemClass:function(c,a){b.addClass(c,
"dojoDndItem"+a)},_removeItemClass:function(c,a){b.removeClass(c,"dojoDndItem"+a)},_getChildByEvent:function(c){if(c=c.target)for(var a=c.parentNode;a;c=a,a=c.parentNode)if(a==this.parent&&b.hasClass(c,"dojoDndItem"))return c;return null},_normalizedCreator:function(c,a){var d=(this.creator||this.defaultCreator).call(this,c,a);if(!b.isArray(d.type))d.type=["text"];if(!d.node.id)d.node.id=b.dnd.getUniqueId();b.addClass(d.node,"dojoDndItem");return d}});b.dnd._createNode=function(c){return!c?b.dnd._createSpan:
function(a){return b.create(c,{innerHTML:a})}};b.dnd._createTrTd=function(c){var a=b.create("tr");b.create("td",{innerHTML:c},a);return a};b.dnd._createSpan=function(c){return b.create("span",{innerHTML:c})};b.dnd._defaultCreatorNodes={ul:"li",ol:"li",div:"div",p:"div"};b.dnd._defaultCreator=function(c){var c=c.tagName.toLowerCase(),a=c=="tbody"||c=="thead"?b.dnd._createTrTd:b.dnd._createNode(b.dnd._defaultCreatorNodes[c]);return function(d,c){var e=d&&b.isObject(d),g,h;e&&d.tagName&&d.nodeType&&
d.getAttribute?(g=d.getAttribute("dndData")||d.innerHTML,e=(e=d.getAttribute("dndType"))?e.split(/\s*,\s*/):["text"],h=d):(g=e&&d.data?d.data:d,e=e&&d.type?d.type:["text"],h=(c=="avatar"?b.dnd._createSpan:a)(String(g)));if(!h.id)h.id=b.dnd.getUniqueId();return{node:h,data:g,type:e}}};return b.dnd.Container});
define("dijit/tree/_dndContainer",["dojo","dijit","dojo/dnd/common","dojo/dnd/Container"],function(b,c){b.getObject("tree",!0,b);c.tree._compareNodes=function(a,b){if(a===b)return 0;if("sourceIndex"in document.documentElement)return a.sourceIndex-b.sourceIndex;else if("compareDocumentPosition"in document.documentElement)return a.compareDocumentPosition(b)&2?1:-1;else if(document.createRange){var c=doc.createRange();c.setStartBefore(a);var e=doc.createRange();e.setStartBefore(b);return c.compareBoundaryPoints(c.END_TO_END,
e)}else throw Error("dijit.tree._compareNodes don't know how to compare two different nodes in this browser");};b.declare("dijit.tree._dndContainer",null,{constructor:function(a,d){this.tree=a;this.node=a.domNode;b.mixin(this,d);this.map={};this.current=null;this.containerState="";b.addClass(this.node,"dojoDndContainer");this.events=[b.connect(this.node,"onmouseenter",this,"onOverEvent"),b.connect(this.node,"onmouseleave",this,"onOutEvent"),b.connect(this.tree,"_onNodeMouseEnter",this,"onMouseOver"),
b.connect(this.tree,"_onNodeMouseLeave",this,"onMouseOut"),b.connect(this.node,"ondragstart",b,"stopEvent"),b.connect(this.node,"onselectstart",b,"stopEvent")]},getItem:function(a){return{data:this.selection[a],type:["treeNode"]}},destroy:function(){b.forEach(this.events,b.disconnect);this.node=this.parent=null},onMouseOver:function(a){this.current=a},onMouseOut:function(){this.current=null},_changeState:function(a,d){var c="dojoDnd"+a,e=a.toLowerCase()+"State";b.replaceClass(this.node,c+d,c+this[e]);
this[e]=d},_addItemClass:function(a,d){b.addClass(a,"dojoDndItem"+d)},_removeItemClass:function(a,d){b.removeClass(a,"dojoDndItem"+d)},onOverEvent:function(){this._changeState("Container","Over")},onOutEvent:function(){this._changeState("Container","")}});return c.tree._dndContainer});
define("dijit/tree/_dndSelector",["dojo","dijit","dojo/dnd/common","dijit/tree/_dndContainer"],function(b,c){b.declare("dijit.tree._dndSelector",c.tree._dndContainer,{constructor:function(){this.selection={};this.anchor=null;c.setWaiState(this.tree.domNode,"multiselect",!this.singular);this.events.push(b.connect(this.tree.domNode,"onmousedown",this,"onMouseDown"),b.connect(this.tree.domNode,"onmouseup",this,"onMouseUp"),b.connect(this.tree.domNode,"onmousemove",this,"onMouseMove"))},singular:!1,getSelectedTreeNodes:function(){var a=
[],b=this.selection,c;for(c in b)a.push(b[c]);return a},selectNone:function(){this.setSelection([]);return this},destroy:function(){this.inherited(arguments);this.selection=this.anchor=null},addTreeNode:function(a,b){this.setSelection(this.getSelectedTreeNodes().concat([a]));if(b)this.anchor=a;return a},removeTreeNode:function(a){this.setSelection(this._setDifference(this.getSelectedTreeNodes(),[a]));return a},isTreeNodeSelected:function(a){return a.id&&!!this.selection[a.id]},setSelection:function(a){var d=
this.getSelectedTreeNodes();b.forEach(this._setDifference(d,a),b.hitch(this,function(a){a.setSelected(!1);this.anchor==a&&delete this.anchor;delete this.selection[a.id]}));b.forEach(this._setDifference(a,d),b.hitch(this,function(a){a.setSelected(!0);this.selection[a.id]=a}));this._updateSelectionProperties()},_setDifference:function(a,d){b.forEach(d,function(a){a.__exclude__=!0});var c=b.filter(a,function(a){return!a.__exclude__});b.forEach(d,function(a){delete a.__exclude__});return c},_updateSelectionProperties:function(){var a=
this.getSelectedTreeNodes(),d=[],c=[];b.forEach(a,function(a){c.push(a);d.push(a.getTreePath())});a=b.map(c,function(a){return a.item});this.tree._set("paths",d);this.tree._set("path",d[0]||[]);this.tree._set("selectedNodes",c);this.tree._set("selectedNode",c[0]||null);this.tree._set("selectedItems",a);this.tree._set("selectedItem",a[0]||null)},onMouseDown:function(a){if(this.current&&!this.tree.isExpandoNode(a.target,this.current)&&a.button!=b.mouseButtons.RIGHT){b.stopEvent(a);var d=this.current,
c=b.isCopyKey(a),e=d.id;!this.singular&&!a.shiftKey&&this.selection[e]?this._doDeselect=!0:(this._doDeselect=!1,this.userSelect(d,c,a.shiftKey))}},onMouseUp:function(a){if(this._doDeselect)this._doDeselect=!1,this.userSelect(this.current,b.isCopyKey(a),a.shiftKey)},onMouseMove:function(){this._doDeselect=!1},userSelect:function(a,b,f){if(this.singular)this.anchor==a&&b?this.selectNone():(this.setSelection([a]),this.anchor=a);else if(f&&this.anchor){f=this.anchor;c.tree._compareNodes(this.anchor.rowNode,
a.rowNode)<0?b=f:(b=a,a=f);for(nodes=[];b!=a;)nodes.push(b),b=this.tree._getNextNode(b);nodes.push(a);this.setSelection(nodes)}else this.selection[a.id]&&b?this.removeTreeNode(a):b?this.addTreeNode(a,!0):(this.setSelection([a]),this.anchor=a)},forInSelectedItems:function(a,d){var d=d||b.global,c;for(c in this.selection)a.call(d,this.getItem(c),c,this)}});return c.tree._dndSelector});
define("dijit/Tree","dojo,dijit,text!dijit/templates/TreeNode.html,text!dijit/templates/Tree.html,dojo/fx,dojo/DeferredList,dijit/_Widget,dijit/_Templated,dijit/_Container,dijit/_Contained,dijit/_CssStateMixin,dojo/cookie,dijit/tree/TreeStoreModel,dijit/tree/ForestStoreModel,dijit/tree/_dndSelector".split(","),function(b,c){b.declare("dijit._TreeNode",[c._Widget,c._Templated,c._Container,c._Contained,c._CssStateMixin],{item:null,isTreeNode:!0,label:"",isExpandable:null,isExpanded:!1,state:"UNCHECKED",
templateString:b.cache("dijit","templates/TreeNode.html"),baseClass:"dijitTreeNode",cssStateNodes:{rowNode:"dijitTreeRow",labelNode:"dijitTreeLabel"},attributeMap:b.delegate(c._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&&c.setWaiState(this.labelNode,"expanded",this.isExpanded);this.setSelected(!1)},
_setIndentAttr:function(a){var d=Math.max(a,0)*this.tree._nodePixelIndent+"px";b.style(this.domNode,"backgroundPosition",d+" 0px");b.style(this.rowNode,this.isLeftToRight()?"paddingLeft":"paddingRight",d);b.forEach(this.getChildren(),function(b){b.set("indent",a+1)});this._set("indent",a)},markProcessing:function(){this.state="LOADING";this._setExpando(!0)},unmarkProcessing:function(){this._setExpando(!1)},_updateItemClasses:function(a){var b=this.tree,c=b.model;b._v10Compat&&a===c.root&&(a=null);
this._applyClassAndStyle(a,"icon","Icon");this._applyClassAndStyle(a,"label","Label");this._applyClassAndStyle(a,"row","Row")},_applyClassAndStyle:function(a,d,c){var e="_"+d+"Class";d+="Node";var g=this[e];this[e]=this.tree["get"+c+"Class"](a,this.isExpanded);b.replaceClass(this[d],this[e]||"",g||"");b.style(this[d],this.tree["get"+c+"Style"](a,this.isExpanded)||{})},_updateLayout:function(){var a=this.getParent();!a||a.rowNode.style.display=="none"?b.addClass(this.domNode,"dijitTreeIsRoot"):b.toggleClass(this.domNode,
"dijitTreeIsLast",!this.getNextSibling())},_setExpando:function(a){var d=["dijitTreeExpandoLoading","dijitTreeExpandoOpened","dijitTreeExpandoClosed","dijitTreeExpandoLeaf"],a=a?0:this.isExpandable?this.isExpanded?1:2:3;b.replaceClass(this.expandoNode,d[a],d);this.expandoNodeText.innerHTML=["*","-","+","*"][a]},expand:function(){if(this._expandDeferred)return this._expandDeferred;this._wipeOut&&this._wipeOut.stop();this.isExpanded=!0;c.setWaiState(this.labelNode,"expanded","true");(this.tree.showRoot||
this!==this.tree.rootNode)&&c.setWaiRole(this.containerNode,"group");b.addClass(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);this==this.tree.rootNode&&c.setWaiState(this.tree.domNode,"expanded","true");var a,d=b.fx.wipeIn({node:this.containerNode,duration:c.defaultDuration,onEnd:function(){a.callback(!0)}});a=this._expandDeferred=new b.Deferred(function(){d.stop()});d.play();return a},collapse:function(){if(this.isExpanded){this._expandDeferred&&
(this._expandDeferred.cancel(),delete this._expandDeferred);this.isExpanded=!1;c.setWaiState(this.labelNode,"expanded","false");this==this.tree.rootNode&&c.setWaiState(this.tree.domNode,"expanded","false");b.removeClass(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);if(!this._wipeOut)this._wipeOut=b.fx.wipeOut({node:this.containerNode,duration:c.defaultDuration});this._wipeOut.play()}},indent:0,setChildItems:function(a){var d=this.tree,f=d.model,
e=[];b.forEach(this.getChildren(),function(a){c._Container.prototype.removeChild.call(this,a)},this);this.state="LOADED";a&&a.length>0?(this.isExpandable=!0,b.forEach(a,function(a){var b=f.getIdentity(a),c=d._itemNodesMap[b],j;if(c)for(var k=0;k<c.length;k++)if(c[k]&&!c[k].getParent()){j=c[k];j.set("indent",this.indent+1);break}j||(j=this.tree._createTreeNode({item:a,tree:d,isExpandable:f.mayHaveChildren(a),label:d.getLabel(a),tooltip:d.getTooltip(a),dir:d.dir,lang:d.lang,indent:this.indent+1}),c?
c.push(j):d._itemNodesMap[b]=[j]);this.addChild(j);(this.tree.autoExpand||this.tree._state(a))&&e.push(d._expandNode(j))},this),b.forEach(this.getChildren(),function(a){a._updateLayout()})):this.isExpandable=!1;this._setExpando&&this._setExpando(!1);this._updateItemClasses(this.item);if(this==d.rootNode)(a=this.tree.showRoot?this:this.getChildren()[0])?(a.setFocusable(!0),d.lastFocused=a):d.domNode.setAttribute("tabIndex","0");return new b.DeferredList(e)},getTreePath:function(){for(var a=this,b=
[];a&&a!==this.tree.rootNode;)b.unshift(a.item),a=a.getParent();b.unshift(this.tree.rootNode.item);return b},getIdentity:function(){return this.tree.model.getIdentity(this.item)},removeChild:function(a){this.inherited(arguments);var d=this.getChildren();if(d.length==0)this.isExpandable=!1,this.collapse();b.forEach(d,function(a){a._updateLayout()})},makeExpandable:function(){this.isExpandable=!0;this._setExpando(!1)},_onLabelFocus:function(){this.tree._onNodeFocus(this)},setSelected:function(a){c.setWaiState(this.labelNode,
"selected",a);b.toggleClass(this.rowNode,"dijitTreeRowSelected",a)},setFocusable:function(a){this.labelNode.setAttribute("tabIndex",a?"0":"-1")},_onClick:function(a){this.tree._onClick(this,a)},_onDblClick:function(a){this.tree._onDblClick(this,a)},_onMouseEnter:function(a){this.tree._onNodeMouseEnter(this,a)},_onMouseLeave:function(a){this.tree._onNodeMouseLeave(this,a)}});b.declare("dijit.Tree",[c._Widget,c._Templated],{store:null,model:null,query:null,label:"",showRoot:!0,childrenAttr:["children"],
paths:[],path:[],selectedItems:null,selectedItem:null,openOnClick:!1,openOnDblClick:!1,templateString:b.cache("dijit","templates/Tree.html"),persist:!0,autoExpand:!1,dndController:"dijit.tree._dndSelector",dndParams:"onDndDrop,itemCreator,onDndCancel,checkAcceptance,checkItemAcceptance,dragThreshold,betweenThreshold".split(","),onDndDrop:null,itemCreator:null,onDndCancel:null,checkAcceptance:null,checkItemAcceptance:null,dragThreshold:5,betweenThreshold:0,_nodePixelIndent:19,_publish:function(a,d){b.publish(this.id,
[b.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 b.Deferred;this.inherited(arguments)},postCreate:function(){this._initState();this.model||this._store2model();this.connect(this.model,"onChange","_onItemChange");this.connect(this.model,"onChildrenChange","_onItemChildrenChange");this.connect(this.model,"onDelete","_onItemDelete");
this._load();this.inherited(arguments);if(this.dndController){if(b.isString(this.dndController))this.dndController=b.getObject(this.dndController);for(var a={},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;b.deprecated("Tree: from version 2.0, should specify a model object rather than a store/query");var a={id:this.id+"_ForestStoreModel",store:this.store,
query:this.query,childrenAttrs:this.childrenAttr};if(this.params.mayHaveChildren)a.mayHaveChildren=b.hitch(this,"mayHaveChildren");if(this.params.getItemChildren)a.getChildren=b.hitch(this,function(a,b,c){this.getItemChildren(this._v10Compat&&a===this.model.root?null:a,b,c)});this.model=new c.tree.ForestStoreModel(a);this.showRoot=Boolean(this.label)},onLoad:function(){},_load:function(){this.model.getRoot(b.hitch(this,function(a){var d=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)d.rowNode.style.display="none",c.setWaiRole(this.domNode,"presentation"),c.setWaiRole(d.labelNode,"presentation"),c.setWaiRole(d.containerNode,"tree");this.domNode.appendChild(d.domNode);a=this.model.getIdentity(a);this._itemNodesMap[a]?this._itemNodesMap[a].push(d):this._itemNodesMap[a]=[d];d._updateLayout();this._expandNode(d).addCallback(b.hitch(this,function(){this._loadDeferred.callback(!0);this.onLoad()}))}),function(a){console.error(this,
": error loading root: ",a)})},getNodesByItem:function(a){return!a?[]:[].concat(this._itemNodesMap[b.isString(a)?a:this.model.getIdentity(a)])},_setSelectedItemAttr:function(a){this.set("selectedItems",[a])},_setSelectedItemsAttr:function(a){var d=this;this._loadDeferred.addCallback(b.hitch(this,function(){var c=b.map(a,function(a){return!a||b.isString(a)?a:d.model.getIdentity(a)}),e=[];b.forEach(c,function(a){e=e.concat(d._itemNodesMap[a]||[])});this.set("selectedNodes",e)}))},_setPathAttr:function(a){return a.length?
this.set("paths",[a]):this.set("paths",[])},_setPathsAttr:function(a){function d(a,g,h){var i=a.shift(),j=b.filter(g,function(a){return a.getIdentity()==i})[0];j?a.length?c._expandNode(j).addCallback(function(){d(a,j.getChildren(),h)}):h.callback(j):h.errback("Could not expand path at "+i)}var c=this;return(new b.DeferredList(b.map(a,function(a){var g=new b.Deferred,a=b.map(a,function(a){return b.isString(a)?a:c.model.getIdentity(a)});a.length?c._loadDeferred.addCallback(function(){d(a,[c.rootNode],
g)}):g.errback("Empty path");return g}))).addCallback(function(a){c.set("selectedNodes",b.map(b.filter(a,function(a){return a[0]}),function(a){return a[1]}))})},_setSelectedNodeAttr:function(a){this.set("selectedNodes",[a])},_setSelectedNodesAttr:function(a){this._loadDeferred.addCallback(b.hitch(this,function(){this.dndController.setSelection(a)}))},mayHaveChildren:function(){},getItemChildren:function(){},getLabel:function(a){return this.model.getLabel(a)},getIconClass:function(a,b){return!a||this.model.mayHaveChildren(a)?
b?"dijitFolderOpened":"dijitFolderClosed":"dijitLeaf"},getLabelClass:function(){},getRowClass:function(){},getIconStyle:function(){},getLabelStyle:function(){},getRowStyle:function(){},getTooltip:function(){return""},_onKeyPress:function(a){if(!a.altKey){var d=b.keys,f=c.getEnclosingWidget(a.target);if(f){var e=a.charOrCode;if(typeof e=="string"&&e!=" ")!a.altKey&&!a.ctrlKey&&!a.shiftKey&&!a.metaKey&&(this._onLetterKeyNav({node:f,key:e.toLowerCase()}),b.stopEvent(a));else{this._curSearch&&(clearTimeout(this._curSearch.timer),
delete this._curSearch);var g=this._keyHandlerMap;if(!g)g={},g[d.ENTER]="_onEnterKey",g[d.SPACE]=g[" "]="_onEnterKey",g[this.isLeftToRight()?d.LEFT_ARROW:d.RIGHT_ARROW]="_onLeftArrow",g[this.isLeftToRight()?d.RIGHT_ARROW:d.LEFT_ARROW]="_onRightArrow",g[d.UP_ARROW]="_onUpArrow",g[d.DOWN_ARROW]="_onDownArrow",g[d.HOME]="_onHomeKey",g[d.END]="_onEndKey",this._keyHandlerMap=g;this._keyHandlerMap[e]&&(this[this._keyHandlerMap[e]]({node:f,item:f.item,evt:a}),b.stopEvent(a))}}}},_onEnterKey:function(a){this._publish("execute",
{item:a.item,node:a.node});this.dndController.userSelect(a.node,b.isCopyKey(a.evt),a.evt.shiftKey);this.onClick(a.item,a.node,a.evt)},_onDownArrow:function(a){(a=this._getNextNode(a.node))&&a.isTreeNode&&this.focusNode(a)},_onUpArrow:function(a){var a=a.node,b=a.getPreviousSibling();if(b)for(a=b;a.isExpandable&&a.isExpanded&&a.hasChildren();)a=a.getChildren(),a=a[a.length-1];else if(b=a.getParent(),this.showRoot||b!==this.rootNode)a=b;a&&a.isTreeNode&&this.focusNode(a)},_onRightArrow:function(a){a=
a.node;a.isExpandable&&!a.isExpanded?this._expandNode(a):a.hasChildren()&&(a=a.getChildren()[0])&&a.isTreeNode&&this.focusNode(a)},_onLeftArrow:function(a){a=a.node;a.isExpandable&&a.isExpanded?this._collapseNode(a):(a=a.getParent())&&a.isTreeNode&&(this.showRoot||a!==this.rootNode)&&this.focusNode(a)},_onHomeKey:function(){var a=this._getRootOrFirstNode();a&&this.focusNode(a)},_onEndKey:function(){for(var a=this.rootNode;a.isExpanded;)a=a.getChildren(),a=a[a.length-1];a&&a.isTreeNode&&this.focusNode(a)},
multiCharSearchDuration:250,_onLetterKeyNav:function(a){var b=this._curSearch;b?(b.pattern+=a.key,clearTimeout(b.timer)):b=this._curSearch={pattern:a.key,startNode:a.node};var c=this;b.timer=setTimeout(function(){delete c._curSearch},this.multiCharSearchDuration);a=b.startNode;do(a=this._getNextNode(a))||(a=this._getRootOrFirstNode());while(a!==b.startNode&&a.label.toLowerCase().substr(0,b.pattern.length)!=b.pattern);a&&a.isTreeNode&&a!==b.startNode&&this.focusNode(a)},isExpandoNode:function(a,d){return b.isDescendant(a,
d.expandoNode)},_onClick:function(a,d){var c=this.isExpandoNode(d.target,a);this.openOnClick&&a.isExpandable||c?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));b.stopEvent(d)},_onDblClick:function(a,d){var c=d.target,c=c==a.expandoNode||c==a.expandoNodeText;this.openOnDblClick&&a.isExpandable||c?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));b.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 b=a.getNextSibling();if(b)return b;a=a.getParent()}return null}},_getRootOrFirstNode:function(){return this.showRoot?this.rootNode:this.rootNode.getChildren()[0]},
_collapseNode:function(a){a._expandNodeDeferred&&delete a._expandNodeDeferred;a.isExpandable&&a.state!="LOADING"&&(a.collapse(),this.onClose(a.item,a),a.item&&(this._state(a.item,!1),this._saveState()))},_expandNode:function(a,c){if(a._expandNodeDeferred&&!c)return a._expandNodeDeferred;var f=this.model,e=a.item,g=this;switch(a.state){case "UNCHECKED":a.markProcessing();var h=a._expandNodeDeferred=new b.Deferred;f.getChildren(e,function(b){a.unmarkProcessing();var b=a.setChildItems(b),c=g._expandNode(a,
!0);b.addCallback(function(){c.addCallback(function(){h.callback()})})},function(a){console.error(g,": error loading root children: ",a)});break;default:h=a._expandNodeDeferred=a.expand(),this.onOpen(a.item,a),e&&(this._state(e,!0),this._saveState())}return h},focusNode:function(a){c.focus(a.labelNode)},_onNodeFocus:function(a){if(a&&a!=this.lastFocused)this.lastFocused&&!this.lastFocused._destroyed&&this.lastFocused.setFocusable(!1),a.setFocusable(!0),this.lastFocused=a},_onNodeMouseEnter:function(){},
_onNodeMouseLeave:function(){},_onItemChange:function(a){var c=this._itemNodesMap[this.model.getIdentity(a)];if(c){var f=this.getLabel(a),e=this.getTooltip(a);b.forEach(c,function(b){b.set({item:a,label:f,tooltip:e});b._updateItemClasses(a)})}},_onItemChildrenChange:function(a,c){var f=this._itemNodesMap[this.model.getIdentity(a)];f&&b.forEach(f,function(a){a.setChildItems(c)})},_onItemDelete:function(a){var a=this.model.getIdentity(a),c=this._itemNodesMap[a];c&&(b.forEach(c,function(a){this.dndController.removeTreeNode(a);
var b=a.getParent();b&&b.removeChild(a);a.destroyRecursive()},this),delete this._itemNodesMap[a])},_initState:function(){if(this.persist){var a=b.cookie(this.cookieName);this._openedItemIds={};a&&b.forEach(a.split(","),function(a){this._openedItemIds[a]=!0},this)}},_state:function(a,b){if(!this.persist)return!1;var c=this.model.getIdentity(a);if(arguments.length===1)return this._openedItemIds[c];b?this._openedItemIds[c]=!0:delete this._openedItemIds[c]},_saveState:function(){if(this.persist){var a=
[],c;for(c in this._openedItemIds)a.push(c);b.cookie(this.cookieName,a.join(","),{expires:365})}},destroy:function(){this._curSearch&&(clearTimeout(this._curSearch.timer),delete this._curSearch);this.rootNode&&this.rootNode.destroyRecursive();this.dndController&&!b.isString(this.dndController)&&this.dndController.destroy();this.rootNode=null;this.inherited(arguments)},destroyRecursive:function(){this.destroy()},resize:function(a){a&&b.marginBox(this.domNode,a);this._nodePixelIndent=b._getMarginSize(this.tree.indentDetector).w;
this.tree.rootNode&&this.tree.rootNode.set("indent",this.showRoot?0:-1)},_createTreeNode:function(a){return new c._TreeNode(a)}});return c.Tree});
define("orion/widgets/ExplorerTree",["dojo","dijit","dijit/Tree","text!orion/widgets/templates/_ExplorerTreeNode.html"],function(b,c){b.declare("orion.widgets._ExplorerTreeNode",[c._TreeNode],{templateString:b.cache("orion","widgets/templates/_ExplorerTreeNode.html"),_updateItemClasses:function(a){this.inherited(arguments);this._applyClassAndStyle(a,"follow","Follow");typeof this.tree.updateFollowLink==="function"&&this.tree.updateFollowLink(a,this.followLink)}});b.declare("orion.widgets.ExplorerTree",
[c.Tree],{selectedNodes:{},postCreate:function(){b.connect(this,"onMouseDown",this._eatSelectionEvent);b.connect(this.domNode,"onselectstart",this._eatSelectionEvent);this.inherited(arguments)},getFollowClass:function(){},getFollowStyle:function(){},updateFollowLink:function(){},onFollowClick:function(){},getSelectedItems:function(){var a=[];this._forEachSelectedNode(function(b,c){a.push(c.item)});return a},_getSelectedNodes:function(){var a=[];this._forEachSelectedNode(function(b,c){a.push(c)});
return a},_forEachSelectedNode:function(a){var b=this.selectedNodes,c;for(c in b)b.hasOwnProperty(c)&&a(c,b[c])},_createTreeNode:function(a){return new orion.widgets._ExplorerTreeNode(a)},_eatSelectionEvent:function(a){(b.isCopyKey(a)||a.shiftKey)&&b.stopEvent(a)},_onClick:function(a,c){var f=c.target,e=f===a.expandoNode||f===a.expandoNodeText,f=f===a.followNode;if(b.isCopyKey(c))this._toggleSelectNode(a),this.focusNode(a);else if(c.shiftKey)this.selectedNode&&(this._selectRange(this.selectedNode,
a),this.focusNode(a));else{if(f)this.onFollowClick(a.item,a,c);else this.openOnClick&&a.isExpandable||e?a.isExpandable&&this._onExpandoClick({node:a}):(this._publish("execute",{item:a.item,node:a,evt:c}),this.onClick(a.item,a,c),this.focusNode(a));!e&&!f&&this._selectNode(a)}f||b.stopEvent(c)},_onItemDelete:function(a){var c=this._itemNodesMap[this.model.getIdentity(a)];if(c){var f=this;b.forEach(c,function(a){f._removeFromSelection(a)})}this.inherited(arguments)},_getVisibleAncestor:function(a){if(!a)return null;
for(var b=a.getParent();b&&(!b.isExpandable||!b.isExpanded);)a=b,b=b.getParent();return a},_toggleSelectNode:function(a){this.selectedNodes[a.get("id")]?(a.setSelected(!1),this._removeFromSelection(a)):(a.setSelected(!0),this._addToSelection(a))},_addToSelection:function(a){this.selectedNodes[a.get("id")]=a},_removeFromSelection:function(a){delete this.selectedNodes[a.get("id")]},_selectRange:function(a,b){function c(a,b){var d=[],e=a;do d.push(e),e=h._getNextNode(e);while(e&&e!==b);return e===b?
(d.push(b),d):null}var e=this._getVisibleAncestor(a),g=this._getVisibleAncestor(b);if(e&&g)if(e===g)this._selectNode(e);else{var h=this,i=c(e,g);i?this._selectNodes(i.reverse(),!0):(i=c(g,e))?this._selectNodes(i,!0):console.debug("Warning: couldn't select range from "+e.label+" to "+g.label)}},_selectNode:function(a){this._selectNodes(a?[a]:null)},_selectNodes:function(a){this._forEachSelectedNode(function(a,b){b._destroyed||b.setSelected(!1)});this.selectedNodes={};if(a)for(var b=0;b<a.length;b++){var c=
a[b];c.setSelected(!0);this._addToSelection(c);this.selectedNode=c}}})});
define("dojo/hash",["dojo"],function(b){(function(){function c(a,b){var c=a.indexOf(b);return c>=0?a.substring(c+1):""}function a(){return c(location.href,"#")}function d(){b.publish("/dojo/hashchange",[a()])}function f(){a()!==h&&(h=a(),d())}function e(a){if(i)if(i.isTransitioning())setTimeout(b.hitch(null,e,a),k);else{var c=i.iframe.location.href,d=c.indexOf("?");i.iframe.location.replace(c.substring(0,d)+"?"+a)}else location.replace("#"+a),!j&&f()}function g(){function e(){h=a();i=q?h:c(t.href,
"?");j=!1;r=null}var f=document.createElement("iframe"),g=b.config.dojoBlankHtmlUrl||b.moduleUrl("dojo","resources/blank.html");b.config.useXDomain&&!b.config.dojoBlankHtmlUrl&&console.warn("dojo.hash: When using cross-domain Dojo builds, please save dojo/resources/blank.html to your domain and set djConfig.dojoBlankHtmlUrl to the path on your domain to blank.html");f.id="dojo-hash-iframe";f.src=g+"?"+a();f.style.display="none";document.body.appendChild(f);this.iframe=b.global["dojo-hash-iframe"];
var i,j,r,s,q,t=this.iframe.location;this.isTransitioning=function(){return j};this.pollLocation=function(){if(!q)try{var u=c(t.href,"?");if(document.title!=s)s=this.iframe.document.title=document.title}catch(v){q=!0,console.error("dojo.hash: Error adding history entry. Server unreachable.")}var A=a();if(j&&h===A)if(q||u===r)e(),d();else{setTimeout(b.hitch(this,this.pollLocation),0);return}else if(!(h===A&&(q||i===u)))if(h!==A){h=A;j=!0;r=A;f.src=g+"?"+r;q=!1;setTimeout(b.hitch(this,this.pollLocation),
0);return}else if(!q)location.href="#"+t.search.substring(1),e(),d();setTimeout(b.hitch(this,this.pollLocation),k)};e();setTimeout(b.hitch(this,this.pollLocation),k)}b.hash=function(b,c){if(!arguments.length)return a();b.charAt(0)=="#"&&(b=b.substring(1));c?e(b):location.href="#"+b;return b};var h,i,j,k=b.config.hashPollFrequency||100;b.addOnLoad(function(){"onhashchange"in b.global&&(!b.isIE||b.isIE>=8&&document.compatMode!="BackCompat")?j=b.connect(b.global,"onhashchange",d):document.addEventListener?
(h=a(),setInterval(f,k)):document.attachEvent&&(i=new g)})})();return b.hash});
define("orion/util",["i18n!orion/nls/messages","dojo","dijit","dojo/hash","dijit/form/ValidationTextBox"],function(b,c,a){function d(a){var b=window.navigator.platform.indexOf("Mac")!==-1;return b&&a.metaKey||!b&&a.ctrlKey}function f(a){return typeof a.textContent!=="undefined"?a.textContent:a.innerText}return{getUserKeyString:function(a){var b="",d=navigator.platform.indexOf("Mac")!==-1;a.mod1&&(b+=d?"Cmd+":"Ctrl+");a.mod2&&(b+="Shift+");a.mod3&&(b+="Alt+");a.mod4&&d&&(b+="Ctrl+");if(a.alphaKey)return b+
a.alphaKey;for(var f in c.keys)if(typeof(c.keys[f]==="number")&&c.keys[f]===a.keyCode)return b+f;var j;switch(a.keyCode){case 59:j=a.mod2?":":";";break;case 61:j=a.mod2?"+":"=";break;case 188:j=a.mod2?"<":",";break;case 190:j=a.mod2?">":".";break;case 191:j=a.mod2?"?":"/";break;case 192:j=a.mod2?"~":"`";break;case 219:j=a.mod2?"{":"[";break;case 220:j=a.mod2?"|":"\\";break;case 221:j=a.mod2?"}":"]";break;case 222:j=a.mod2?'"':"'"}return j?b+j:b+String.fromCharCode(a.keyCode)},openDialog:function(b,
d){b.startup();if(typeof d==="string"){var f=c.byId(d);if(!f&&(f=a.byId(d)))f=f.domNode;d=f?f:null}d&&(f=c.position(d),b._setStyleAttr("left:"+(f.x+16)+"px !important;"),b._setStyleAttr("top:"+(f.y+16)+"px !important;"));b.show()},getUserText:function(b,d,f,i,j,k,l,m,n){var l=function(l){return function(m){var s=a.byId(b),q=s.get("value");l&&m.keyCode===c.keys.ESCAPE?(f&&c.style(d,"display","inline"),s.destroyRecursive(),k&&k()):l&&m.keyCode!==c.keys.ENTER||(!s.isValid()||!n&&q===i?f&&c.style(d,"display",
"inline"):j(q),s.destroyRecursive(),k&&k())}},o=new a.form.ValidationTextBox({id:b,required:!0,value:i||""});c.place(o.domNode,d,"after");c.addClass(o.domNode,"userEditBoxPrompt");f&&c.style(d,"display","none");c.connect(o,"onKeyDown",l(!0));c.connect(o,"onBlur",l(!1));window.setTimeout(function(){o.focus();if(i){var d=c.byId(b),f=m?i.indexOf(m):-1;f>0?a.selectInputText(d,0,f):d.select()}},0)},openInNewWindow:d,followLink:function(a,b){b&&d(b)?window.open(a):window.location=a},makeRelative:function(a){if(!a)return a;
var b=window.location.protocol+"//"+window.location.host;return a.indexOf(b)===0?a.substring(b.length):a},makeFullPath:function(a){if(!a)return a;var b=window.location.protocol+"//"+window.location.host;a.charAt(0)!=="/"&&(a="/"+a);return b+a},isAtRoot:function(a){return this.makeRelative(a).indexOf("/workspace")===0},processNavigatorParent:function(a,b){a.children=b;for(var c in b)b[c].parent=a;a.children.sort(function(a,b){var c=a.Directory;if(c!==b.Directory)return c?-1:1;var c=a.Name&&a.Name.toLowerCase(),
d=b.Name&&b.Name.toLowerCase();return c<d?-1:c>d?1:0})},getText:f,safeText:function(a){return f(document.createTextNode(a))},setText:function(a,b){typeof a.textContent!=="undefined"?a.textContent=b:a.innerText=b},forceLayout:function(b){for(typeof b==="string"&&(b=c.byId(b));b;){var d=a.byId(b.id);if(d&&typeof d.layout==="function"){d.layout();break}b=b.parentNode}},saveFileContents:function(a,c,d,f){a.write(c.Location,d,{ETag:c.ETag}).then(function(){f&&f()},function(j){j.status===412?window.confirm(b["Resource is out of sync with the server. Do you want to save it anyway?"])&&
a.write(c.Location,d).then(function(a){c.ETag=a.ETag;f&&f()}):j.log=!0})},splitFile:function(a){for(var b=0,c=0,d=0,f=0,k=[];;){b!==-1&&b<=d&&(b=a.indexOf("\r",d));c!==-1&&c<=d&&(c=a.indexOf("\n",d));if(c===-1&&b===-1){k.push(a.substring(f));break}var l=1;b!==-1&&c!==-1?b+1===c?(l=2,d=c+1):d=(b<c?b:c)+1:d=b!==-1?b+1:c+1;k.push(a.substring(f,d-l));f=d}return k}}});
define("orion/status",["require","dojo","orion/util"],function(b,c,a){function d(a,b,c,d,f){this._serviceRegistry=a;this._serviceRegistration=a.registerService("orion.page.message",this);this._operationsClient=b;this.notificationContainerDomId=f;this.domId=c;this.progressDomId=d||c;this._hookedClose=!1}function f(a,b,d,f){this.statusService=a;this.progressId=b;if(d){this.deferred=d;this.begin(f);var j=this;d.then(function(){c.hitch(j,j.done)()},function(){c.hitch(j,j.done)()})}}d.prototype={_init:function(){var a=
c.byId("closeNotifications");a&&!this._hookedClose&&(c.connect(a,"onclick",this,function(){this.setProgressMessage("");c.removeClass(this.notificationContainerDomId,"slideContainerActive")}),c.connect(a,"onkeypress",this,function(a){if(a.keyCode===c.keys.ENTER||a.keyCode===c.keys.SPACE)this.setProgressMessage(""),c.removeClass(this.notificationContainerDomId,"slideContainerActive")}))},setMessage:function(a,b,d){this._init();this.currentMessage=a;if(typeof d==="boolean"){var f=this,j=c.byId(this.domId),
k=c.attr(j,"aria-live");c.attr(j,"aria-live",d?"polite":"off");window.setTimeout(function(){c.place(window.document.createTextNode(a),f.domId,"only")},100);window.setTimeout(function(){c.attr(j,"aria-live",k)},200)}else c.place(window.document.createTextNode(a),this.domId,"only");typeof b==="number"&&(f=this,window.setTimeout(function(){var b=c.byId(f.domId);(typeof b.textContent==="string"?b.textContent:b.innerText)===a&&c.place(window.document.createTextNode(""),f.domId,"only")},b))},setErrorMessage:function(a){this.currentMessage=
a;this._init();var b=a.responseText||a.message||a;try{b=JSON.parse(b)}catch(d){}var a=b.Message||b,f="red";if(b.Severity)switch(b.Severity){case "Warning":f="#FFCC00";break;case "Error":f="red";break;case "Info":case "Ok":f="green"}b=c.create("span",{style:{color:f}});c.place(window.document.createTextNode(a),b);c.place(b,this.domId,"only")},setProgressMessage:function(b){this._init();this.currentMessage=b;var d=c.create("span",{"class":"imageSprite core-sprite-progress"});c.place(d,this.progressDomId,
"only");c.place(window.document.createTextNode(b),this.progressDomId,"last");c.addClass(this.notificationContainerDomId,"progressNormal");b&&b.length>0?c.addClass(this.notificationContainerDomId,"slideContainerActive"):this._progressMonitors&&this._progressMonitors.length>0?this._renderOngoingMonitors():c.removeClass(this.notificationContainerDomId,"slideContainerActive");a.forceLayout(this.notificationContainerDomId)},setProgressResult:function(b){this.currentMessage=b;b=b.responseText||b;try{b=
JSON.parse(b)}catch(d){}this._init();var f=b.Message||b,i="imageSprite core-sprite-info",j="progressInfo",k="progressWarning progressError progressNormal";if(b.Severity)switch(b.Severity){case "Warning":i="imageSprite core-sprite-warning";j="progressWarning";k="progressInfo progressError progressNormal";break;case "Error":i="imageSprite core-sprite-error",j="progressError",k="progressWarning progressInfo progressNormal"}i=c.create("span",{"class":i});c.place(i,this.progressDomId,"only");b.HTML?c.place(f,
this.progressDomId,"last"):(c.place(window.document.createTextNode("   "+f),this.progressDomId,"last"),j&&this.progressDomId!==this.domId&&(c.addClass(this.notificationContainerDomId,j),c.removeClass(this.notificationContainerDomId,k)));c.addClass(this.notificationContainerDomId,"slideContainerActive");a.forceLayout(this.notificationContainerDomId)},showWhile:function(a,b){var c=this;b&&(c.setProgressMessage(b),a.addBoth(function(){b===c.currentMessage&&c.setProgressMessage("")}));return a},_lastProgressId:0,
_progressMonitors:{length:0},createProgressMonitor:function(a,b){return new f(this,++this._lastProgressId,a,b)},_renderOngoingMonitors:function(){if(this._progressMonitors.length>0){var a="",b=!0,c;for(c in this._progressMonitors)this._progressMonitors[c].status&&(b||(a+=", "),a+=this._progressMonitors[c].status,b=!1);this.setProgressMessage(a)}else this.setProgressMessage("")},_beginProgressMonitor:function(a){this._progressMonitors[a.progressId]=a;this._progressMonitors.length++;this._renderOngoingMonitors()},
_workedProgressMonitor:function(a){this._progressMonitors[a.progressId]=a;this._renderOngoingMonitors()},_doneProgressMonitor:function(a){delete this._progressMonitors[a.progressId];this._progressMonitors.length--;a.status?this.setProgressResult(a.status):this._renderOngoingMonitors()}};d.prototype.constructor=d;f.prototype=new c.Deferred;f.prototype.begin=function(a){this.status=a;this.statusService._beginProgressMonitor(this)};f.prototype.done=function(a){this.status=a;this.statusService._doneProgressMonitor(this)};
f.prototype.worked=function(a){this.status=a;this.statusService._workedProgressMonitor(this)};f.prototype.constructor=f;return{StatusReportingService:d,ProgressMonitor:f}});
define("orion/searchUtils",["require","dojo","orion/editor/regex","orion/util"],function(b,c,a,d){var f=f||{};f.searchUtils=f.searchUtils||{};f.searchUtils.parseQueryStr=function(a){var b=a.indexOf("?"),c=a.indexOf("q=");b<c&&c>0&&(a=a.substring(b+1));b=a.split("&");a={queryStr:a,start:0,rows:10,sort:"Path asc",replace:null};for(c=0;c<b.length;c++){var d=b[c].indexOf("q="),j=b[c].indexOf("replace=");if(d>=0)f.searchUtils.parseLocationAndSearchStr(b[c].substring(d+2),a);else if(j>=0)a.replace=b[c].substring(j+
8);else if(d=b[c].split("="),d.length===2)if(d[0]==="rows")a.rows=parseInt(d[1]);else if(d[0]==="start")a.start=parseInt(d[1]);else if(d[0]==="sort")a.sort=d[1]}return a};f.searchUtils.copyQueryParams=function(a,b){return{sort:a.sort,rows:a.rows,start:a.start,searchStr:a.searchStr,location:a.location,replace:b?a.replace:null}};f.searchUtils.generateSearchHref=function(a){return b.toUrl("search/search.html")+"#"+f.searchUtils.generateSearchQuery(a)};f.searchUtils.generateSearchQuery=function(a){var b=
"Path asc",c=40,d=0,f="",k="",l="";if(a){if(a.sort)b=a.sort;if(a.rows)c=a.rows;if(a.start)d=a.start;if(a.searchStr)f=a.searchStr,f=f.split(" ").join("");if(a.location)k=a.location,k.length>0&&k[k.length-1]!=="*"&&(k+="*"),k!==""&&(k="+Location:"+k);a.replace!==null&&a.replace!==void 0&&(l="&replace="+a.replace)}return"?sort="+b+"&rows="+c+"&start="+d+"&q="+f+k+l};f.searchUtils.parseLocationAndSearchStr=function(a,b){var c=a.indexOf("+Location:")>-1;b.location="";b.searchStr=a;if(c&&(c=a.split("+Location:"),
c.length===2)){var d=c[1];d.length>0&&d[d.length-1]==="*"&&(d=d.substring(0,d.length-1));b.location=d;b.searchStr=c[0].split(" ").join("")}b.searchStrTitle=b.searchStr.split("\\").join("");b.inFileQuery=f.searchUtils.generateInFileQuery(b.searchStr)};f.searchUtils.generateInFileQuery=function(b){var c={};c.originalSearchStr=b;var d=b.indexOf("*")>-1,f=b.indexOf("?")>-1;d&&(b=b.split("*").join(".*"));f&&(b=b.split("?").join("."));if(!d&&!f)c.searchStr=b.split("\\").join("").toLowerCase(),c.wildCard=
!1;else if(c.searchStr=b.toLowerCase(),d=a.parse("/"+c.searchStr+"/"))b=d.pattern,d=d.flags,d+=d.indexOf("i")===-1?"i":"",c.regExp={pattern:b,flags:d},c.wildCard=!0;c.searchStrLength=c.searchStr.length;return c};f.searchUtils.generateFindURLBinding=function(a,b,c){a=",find="+a.originalSearchStr;typeof c==="string"&&(a=a+"@@replaceWith@@"+c);typeof b==="number"&&(a=a+"@@atLine@@"+b);return a};f.searchUtils.parseFindURLBinding=function(a){var b=null,c=a.split("@@atLine@@");c.length>1&&(b=parseInt(c[1]),
b<1&&(b=1));var a=null,c=c[0].split("@@replaceWith@@"),d=c[0];c.length>1&&(a=c[1]);c=f.searchUtils.generateInFileQuery(d);return{searchStr:c.searchStr,replaceStr:a,lineNumber:b,useRegExp:c.wildCard}};f.searchUtils.replaceRegEx=function(a,b,c){return a.replace(RegExp(b.pattern,b.flags),c)};f.searchUtils.replaceStringLiteral=function(b,c,d){c=a.parse("/"+c+"/gim");return f.searchUtils.replaceRegEx(b,c,d)};f.searchUtils.searchOnelineLiteral=function(a,b,c){var d;d=0;for(var f=!1,k=[];;)if(d=b.indexOf(a.searchStr,
d),d<0)break;else{k.push({startIndex:d});f=!0;if(c)break;d+=a.searchStrLength}return f?k:null};f.searchUtils.findRegExp=function(a,b,c,d){if(!b)return null;c=c||"";c+=(c.indexOf("g")===-1?"g":"")+(c.indexOf("m")===-1?"m":"");var f=null;return(f=RegExp(b,c).exec(a.substring(d)))&&{startIndex:f.index+d,length:f[0].length}};f.searchUtils.searchOnelineRegEx=function(a,b,c){for(var d=0,j=!1,k=[];;)if(d=f.searchUtils.findRegExp(b,a.regExp.pattern,a.regExp.flags,d)){k.push(d);j=!0;if(c)break;d=d.startIndex+
d.length}else break;return j?k:null};f.searchUtils.generateNewContents=function(a,b,c,d,j){if(c&&a){var k;k=b.length>0?!0:!1;for(var l=0;l<a.length;l++){for(var m=a[l],n=!1,o=!1,p=[],r,s=0,q=0;q<c.children.length;q++)if(c.children[q].lineNumber-1===l){s=q;for(n=0;n<c.children[q].matches.length;n++)c.children[q+n].checked!==!1&&p.push(n);o=p.length>0;r=c.children[q].matches;n=!0;break}if(n){if(o){p=f.searchUtils.replaceCheckedMatches(m,d,r,p,j);m=p.replacedStr;for(n=0;n<c.children[s].matches.length;n++)c.children[s+
n].newMatches=p.newMatches}else for(n=0;n<c.children[s].matches.length;n++)c.children[s+n].newMatches=c.children[s+n].matches;k?b[l]=m:b.push(m)}else k||b.push(m)}}};f.searchUtils.generateMatchContext=function(a,b,c){var d=[],f=a*2+1,k;b.length<=f?(k=0,a=b.length-1):(k=c-a,k<0?(k=0,a=k+f-1):(a=c+a,a>b.length-1&&(a=b.length-1,k=a-f+1)));for(f=k;f<=a;f++)d.push({context:b[f],current:f===c});return d};f.searchUtils.searchWithinFile=function(a,b,c,i,j,k){c=d.splitFile(c);if(j)b.contents=c;if(b){b.children=
[];for(var l=i=0;l<c.length;l++){var m=c[l];if(m&&m.length>0){var n=k?m:m.toLowerCase();if(n=a.wildCard?f.searchUtils.searchOnelineRegEx(a,n):f.searchUtils.searchOnelineLiteral(a,n)){var o=l+1;if(j)for(var p=0;p<n.length;p++){var r=p+1,r={parent:b,checked:b.checked,type:"detail",matches:n,lineNumber:o,matchNumber:r,name:m,location:b.location+"-"+o+"-"+r};b.children.push(r)}else r={parent:b,context:f.searchUtils.generateMatchContext(2,c,l),checked:b.checked,type:"detail",matches:n,lineNumber:o,name:m,
location:b.location+"-"+o},b.children.push(r);i+=n.length}}}b.totalMatches=i}};f.searchUtils.replaceCheckedMatches=function(a,b,c,d,f){for(var k=0,l="",m=[],n=0;n<c.length;n++){k!==c[n].startIndex&&(l+=a.substring(k,c[n].startIndex));if(c[n].length)f=c[n].length;for(var k=!1,o=0;o<d.length;o++)if(d[o]===n){k=!0;break}k?(m.push({startIndex:l.length,length:b.length}),l+=b):(m.push({startIndex:l.length,length:f}),l+=a.substring(c[n].startIndex,c[n].startIndex+f));k=c[n].startIndex+f}k<a.length&&(l+=
a.substring(k));return{replacedStr:l,newMatches:m}};f.searchUtils.fullPathNameByMeta=function(a){var b=a.length,c="";if(b>0)for(b-=1;b>-1;b--)c=c+(c===""?"":"/")+a[b].Name;return c};f.searchUtils.path2FolderName=function(a,b,c){return a.substring(0,a.length-b.length-(c?0:1))};return f.searchUtils});
define("orion/breadcrumbs",["require","dojo","orion/util"],function(b,c,a){function d(a){this._init(a)}d.prototype={_init:function(a){var b=a.container;typeof b==="string"&&(b=c.byId(b));if(!b)throw"no parent container";this._container=b;c.removeClass(b,"currentLocation");this._id=a.id||"eclipse.breadcrumbs";this._resource=a.resource||null;this._rootSegmentName=a.rootSegmentName;this._workspaceRootSegmentName=a.workspaceRootSegmentName;this._makeHref=a.makeHref;this.path="";this.render()},getNavigatorWorkspaceRootSegment:function(){if(this._workspaceRootSegmentName){var a;
this._resource&&this._resource.Parents?(a=document.createElement("a"),this._makeHref?this._makeHref(a,""):a.href=b.toUrl("navigate/table.html")+"#"):a=document.createElement("span");c.place(document.createTextNode(this._workspaceRootSegmentName),a,"only");return a}return null},render:function(){var d=this._container,e=c.byId(this._id);e?c.empty(e):(e=document.createElement("span"),e.id=this._id,d.appendChild(e));var g;if(g=this.getNavigatorWorkspaceRootSegment())if(c.addClass(g,"breadcrumb"),e.appendChild(g),
this._resource&&this._resource.Parents)g=document.createElement("span"),c.place(document.createTextNode(" / "),g,"only"),this.path+="/",c.addClass(g,"breadcrumbSeparator"),e.appendChild(g);else{g.href="";c.removeClass(g,"breadcrumb");c.addClass(g,"currentLocation");a.forceLayout(d);return}var h=this._rootSegmentName;if(this._resource){if(this._resource.Parents)for(var i=this._resource.Parents,j=i.length;--j>=0;)g=document.createElement("a"),c.addClass(g,"breadcrumb"),h?(c.place(document.createTextNode(h),
g,"only"),h=null):c.place(document.createTextNode(i[j].Name),g,"only"),this.path+=i[j].Name,this._makeHref?this._makeHref(g,i[j].Location):g.href=b.toUrl("navigate/table.html")+"#"+i[j].ChildrenLocation,e.appendChild(g),g=document.createElement("span"),c.place(document.createTextNode(" / "),g,"only"),this.path+="/",c.addClass(g,"breadcrumbSeparator"),e.appendChild(g);g=document.createElement("span");h?(c.place(document.createTextNode(h),g,"only"),h=null):c.place(document.createTextNode(this._resource.Name),
g,"only");c.addClass(g,"currentLocation");this.path+=this._resource.Name;e.appendChild(g)}e.childNodes.length===0&&(g=document.createElement("a"),c.place(document.createTextNode(h||document.title),g,"only"),c.addClass(g,"breadcrumb"),c.addClass(g,"currentLocation"),e.appendChild(g));a.forceLayout(d)}};d.prototype.constructor=d;return{BreadCrumbs:d}});
define("orion/favorites",["require","dojo","orion/util"],function(b,c,a){function d(a){this._favorites=[];this._init(a);this._initializeFavorites()}d.prototype={_init:function(a){this._registry=a.serviceRegistry;this._serviceRegistration=this._registry.registerService("orion.core.favorite",this)},_notifyListeners:function(){this._serviceRegistration.dispatchEvent("favoritesChanged",{navigator:this._favorites,registry:this._registry})},makeFavorites:function(b){for(var b=c.isArray(b)?b:[b],d=0;d<b.length;d++){var g=
b[d],h=g.ChildrenLocation?g.ChildrenLocation:g.Location,h=a.makeRelative(h);this.addFavorite(g.Name,h,g.Directory)}this._storeFavorites();this._notifyListeners()},addFavoriteUrl:function(a){this.addFavorite(a,a,!1,!0)},addFavorite:function(a,b,c){this._favorites.push({name:a,path:b,directory:c,isFavorite:!0});this._favorites.sort(this._sorter);this._storeFavorites();this._notifyListeners()},removeFavorite:function(a){for(var b in this._favorites)if(this._favorites[b].path===a){this._favorites.splice(b,
1);break}this._favorites.sort(this._sorter);this._storeFavorites();this._notifyListeners()},renameFavorite:function(a,b){var c=!1,d;for(d in this._favorites)if(this._favorites[d].path===a){var i=this._favorites[d];if(i.name!==b)i.name=b,c=!0}c&&(this._favorites.sort(this._sorter),this._storeFavorites(),this._notifyListeners())},hasFavorite:function(a){for(var b in this._favorites)if(this._favorites[b].path===a)return!0;return!1},_SPECIAL_CHARS:"^$\\+[]().",queryFavorites:function(a){var b;if(!a)return this._favorites;
var c="";for(b=0;b<a.length;b++){var d=a.charAt(b);c+=d==="*"?".*":d==="?"?".?":this._SPECIAL_CHARS.indexOf(d)>=0?"\\"+d:d}c+=".*";a=RegExp(c);c=[];for(b in this._favorites)this._favorites[b].name.search(a)===0&&c.push(this._favorites[b]);return c},_initializeFavorites:function(){var a=this;this._registry.getService("orion.core.preference").getPreferences("/window/favorites").then(function(b){var c,b=b.get("navigate");typeof b==="string"&&(b=JSON.parse(b));if(b)for(c in b)b[c].isFavorite=!0,a._favorites.push(b[c]);
a._favorites.sort(a._sorter);a._notifyListeners()})},_storeFavorites:function(){var a=this._favorites;this._registry.getService("orion.core.preference").getPreferences("/window/favorites").then(function(b){b.put("navigate",a)})},_sorter:function(a,b){var c=a.name.toLowerCase(),d=b.name.toLowerCase();return c>d?1:c<d?-1:0},getFavorites:function(){return{navigator:this._favorites}}};d.prototype.constructor=d;return{FavoritesService:d}});
define("orion/git/util",["i18n!git/nls/gitmessages","dojo","dijit","dojo/hash","dijit/form/ValidationTextBox"],function(){function b(a){for(var b=0;b<d.length;b++)if(a.type===d[b])return!0;return!1}function c(b){for(var c=0;c<a.length;c++)if(b.type===a[c])return!0;return!1}var a=["Missing","Modified","Untracked","Conflicting"],d=["Added","Changed","Removed"];return{statusUILocation:"git/git-status2.html",isStaged:b,isUnstaged:c,isChange:function(a){return b(a)||c(a)},hasStagedChanges:function(a){for(var b=
0;b<d.length;b++)if(a[d[b]].length>0)return!0;return!1},hasUnstagedChanges:function(b){for(var c=0;c<a.length;c++)if(b[a[c]].length>0)return!0;return!1}}});
define("dijit/layout/BorderContainer",["dojo","dijit","dijit/layout/_LayoutWidget","dojo/cookie","dijit/_Templated"],function(b,c){b.declare("dijit.layout.BorderContainer",c.layout._LayoutWidget,{design:"headline",gutters:!0,liveSplitters:!0,persist:!1,baseClass:"dijitBorderContainer",_splitterClass:"dijit.layout._Splitter",postMixInProperties:function(){this.gutters||(this.baseClass+="NoGutter");this.inherited(arguments)},startup:function(){this._started||(b.forEach(this.getChildren(),this._setupChild,
this),this.inherited(arguments))},_setupChild:function(a){var c=a.region;if(c){this.inherited(arguments);b.addClass(a.domNode,this.baseClass+"Pane");var f=this.isLeftToRight();c=="leading"&&(c=f?"left":"right");c=="trailing"&&(c=f?"right":"left");if(c!="center"&&(a.splitter||this.gutters)&&!a._splitterWidget)f=new (b.getObject(a.splitter?this._splitterClass:"dijit.layout._Gutter"))({id:a.id+"_splitter",container:this,child:a,region:c,live:this.liveSplitters}),f.isSplitter=!0,a._splitterWidget=f,b.place(f.domNode,
a.domNode,"after"),f.startup();a.region=c}},layout:function(){this._layoutChildren()},addChild:function(a,b){this.inherited(arguments);this._started&&this.layout()},removeChild:function(a){var c=a.region,f=a._splitterWidget;f&&(f.destroy(),delete a._splitterWidget);this.inherited(arguments);this._started&&this._layoutChildren();b.removeClass(a.domNode,this.baseClass+"Pane");b.style(a.domNode,{top:"auto",bottom:"auto",left:"auto",right:"auto",position:"static"});b.style(a.domNode,c=="top"||c=="bottom"?
"width":"height","auto")},getChildren:function(){return b.filter(this.inherited(arguments),function(a){return!a.isSplitter})},getSplitter:function(a){return b.filter(this.getChildren(),function(b){return b.region==a})[0]._splitterWidget},resize:function(a,c){if(!this.cs||!this.pe){var f=this.domNode;this.cs=b.getComputedStyle(f);this.pe=b._getPadExtents(f,this.cs);this.pe.r=b._toPixelValue(f,this.cs.paddingRight);this.pe.b=b._toPixelValue(f,this.cs.paddingBottom);b.style(f,"padding","0px")}this.inherited(arguments)},
_layoutChildren:function(a,d){if(this._borderBox&&this._borderBox.h){var f=b.map(this.getChildren(),function(a,b){return{pane:a,weight:[a.region=="center"?Infinity:0,a.layoutPriority,(this.design=="sidebar"?1:-1)*(/top|bottom/.test(a.region)?1:-1),b]}},this);f.sort(function(a,b){for(var c=a.weight,d=b.weight,e=0;e<c.length;e++)if(c[e]!=d[e])return c[e]-d[e];return 0});var e=[];b.forEach(f,function(a){a=a.pane;e.push(a);a._splitterWidget&&e.push(a._splitterWidget)});c.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},e,a,d)}},destroyRecursive:function(){b.forEach(this.getChildren(),function(a){var b=a._splitterWidget;b&&b.destroy();delete a._splitterWidget});this.inherited(arguments)}});b.extend(c._Widget,{region:"",layoutPriority:0,splitter:!1,minSize:0,maxSize:Infinity});b.declare("dijit.layout._Splitter",[c._Widget,c._Templated],{live:!0,templateString:'<div class="dijitSplitter" dojoAttachEvent="onkeypress:_onKeyPress,onmousedown:_startDrag,onmouseenter:_onMouse,onmouseleave:_onMouse" tabIndex="0" role="separator"><div class="dijitSplitterThumb"></div></div>',
postMixInProperties:function(){this.inherited(arguments);this.horizontal=/top|bottom/.test(this.region);this._factor=/top|left/.test(this.region)?1:-1;this._cookieName=this.container.id+"_"+this.region},buildRendering:function(){this.inherited(arguments);b.addClass(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V"));if(this.container.persist){var a=b.cookie(this._cookieName);a&&(this.child.domNode.style[this.horizontal?"height":"width"]=a)}},_computeMaxSize:function(){var a=this.horizontal?"h":
"w",c=b.marginBox(this.child.domNode)[a],f=b.filter(this.container.getChildren(),function(a){return a.region=="center"})[0],a=b.marginBox(f.domNode)[a];return Math.min(this.child.maxSize,c+a)},_startDrag:function(a){if(!this.cover)this.cover=b.doc.createElement("div"),b.addClass(this.cover,"dijitSplitterCover"),b.place(this.cover,this.child.domNode,"after");b.addClass(this.cover,"dijitSplitterCoverActive");this.fake&&b.destroy(this.fake);if(!(this._resize=this.live))(this.fake=this.domNode.cloneNode(!0)).removeAttribute("id"),
b.addClass(this.domNode,"dijitSplitterShadow"),b.place(this.fake,this.domNode,"after");b.addClass(this.domNode,"dijitSplitterActive dijitSplitter"+(this.horizontal?"H":"V")+"Active");this.fake&&b.removeClass(this.fake,"dijitSplitterHover dijitSplitter"+(this.horizontal?"H":"V")+"Hover");var c=this._factor,f=this.horizontal,e=f?"pageY":"pageX",g=a[e],h=this.domNode.style,i=b.marginBox(this.child.domNode)[f?"h":"w"],j=this._computeMaxSize(),k=this.child.minSize||20,f=this.region,l=f=="top"||f=="bottom"?
"top":"left",m=parseInt(h[l],10),n=this._resize,o=b.hitch(this.container,"_layoutChildren",this.child.id),f=b.doc;this._handlers=(this._handlers||[]).concat([b.connect(f,"onmousemove",this._drag=function(a,b){var f=a[e]-g,q=c*f+i,t=Math.max(Math.min(q,j),k);(n||b)&&o(t);h[l]=f+m+c*(t-q)+"px"}),b.connect(f,"ondragstart",b.stopEvent),b.connect(b.body(),"onselectstart",b.stopEvent),b.connect(f,"onmouseup",this,"_stopDrag")]);b.stopEvent(a)},_onMouse:function(a){a=a.type=="mouseover"||a.type=="mouseenter";
b.toggleClass(this.domNode,"dijitSplitterHover",a);b.toggleClass(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V")+"Hover",a)},_stopDrag:function(a){try{this.cover&&b.removeClass(this.cover,"dijitSplitterCoverActive"),this.fake&&b.destroy(this.fake),b.removeClass(this.domNode,"dijitSplitterActive dijitSplitter"+(this.horizontal?"H":"V")+"Active dijitSplitterShadow"),this._drag(a),this._drag(a,!0)}finally{this._cleanupHandlers(),delete this._drag}this.container.persist&&b.cookie(this._cookieName,
this.child.domNode.style[this.horizontal?"height":"width"],{expires:365})},_cleanupHandlers:function(){b.forEach(this._handlers,b.disconnect);delete this._handlers},_onKeyPress:function(a){this._resize=!0;var c=this.horizontal,f=1,e=b.keys;switch(a.charOrCode){case c?e.UP_ARROW:e.LEFT_ARROW:f*=-1;case c?e.DOWN_ARROW:e.RIGHT_ARROW:break;default:return}c=b._getMarginSize(this.child.domNode)[c?"h":"w"]+this._factor*f;this.container._layoutChildren(this.child.id,Math.max(Math.min(c,this._computeMaxSize()),
this.child.minSize));b.stopEvent(a)},destroy:function(){this._cleanupHandlers();delete this.child;delete this.container;delete this.cover;delete this.fake;this.inherited(arguments)}});b.declare("dijit.layout._Gutter",[c._Widget,c._Templated],{templateString:'<div class="dijitGutter" role="presentation"></div>',postMixInProperties:function(){this.inherited(arguments);this.horizontal=/top|bottom/.test(this.region)},buildRendering:function(){this.inherited(arguments);b.addClass(this.domNode,"dijitGutter"+
(this.horizontal?"H":"V"))}});return c.layout.BorderContainer});
define("dojo/html",["dojo","dojo/parser"],function(b){b.getObject("html",!0,b);(function(){var c=0;b.html._secureForInnerHtml=function(a){return a.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"")};b.html._emptyNode=b.empty;b.html._setNodeContent=function(a,c){b.empty(a);if(c)if(typeof c=="string"&&(c=b._toDom(c,a.ownerDocument)),!c.nodeType&&b.isArrayLike(c))for(var f=c.length,e=0;e<c.length;e=f==c.length?e+1:0)b.place(c[e],a,"last");else b.place(c,a,"last");return a};b.declare("dojo.html._ContentSetter",
null,{node:"",content:"",id:"",cleanContent:!1,extractContent:!1,parseContent:!1,parserScope:b._scopeName,startup:!0,constructor:function(a,d){b.mixin(this,a||{});d=this.node=b.byId(this.node||d);if(!this.id)this.id=["Setter",d?d.id||d.tagName:"",c++].join("_")},set:function(a,b){if(void 0!==a)this.content=a;b&&this._mixin(b);this.onBegin();this.setContent();this.onEnd();return this.node},setContent:function(){var a=this.node;if(!a)throw Error(this.declaredClass+": setContent given no node");try{a=
b.html._setNodeContent(a,this.content)}catch(c){var f=this.onContentError(c);try{a.innerHTML=f}catch(e){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+e.message,e)}}this.node=a},empty:function(){this.parseResults&&this.parseResults.length&&(b.forEach(this.parseResults,function(a){a.destroy&&a.destroy()}),delete this.parseResults);b.html._emptyNode(this.node)},onBegin:function(){var a=this.content;if(b.isString(a)&&(this.cleanContent&&(a=b.html._secureForInnerHtml(a)),
this.extractContent)){var c=a.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);c&&(a=c[1])}this.empty();this.content=a;return this.node},onEnd:function(){this.parseContent&&this._parse();return this.node},tearDown:function(){delete this.parseResults;delete this.node;delete this.content},onContentError:function(a){return"Error occured setting content: "+a},_mixin:function(a){var b={},c;for(c in a)c in b||(this[c]=a[c])},_parse:function(){var a=this.node;try{var c={};b.forEach(["dir","lang","textDir"],
function(a){this[a]&&(c[a]=this[a])},this);this.parseResults=b.parser.parse({rootNode:a,noStart:!this.startup,inherited:c,scope:this.parserScope})}catch(f){this._onError("Content",f,"Error parsing in _ContentSetter#"+this.id)}},_onError:function(a,c,f){a=this["on"+a+"Error"].call(this,c);f?console.error(f,c):a&&b.html._setNodeContent(this.node,a,!0)}});b.html.set=function(a,c,f){void 0==c&&(console.warn("dojo.html.set: no cont argument provided, using empty string"),c="");return f?(new b.html._ContentSetter(b.mixin(f,
{content:c,node:a}))).set():b.html._setNodeContent(a,c,!0)}})();return b.html});define("dijit/nls/loading",{root:{loadingState:"Loading...",errorState:"Sorry, an error occurred"},zh:!0,"zh-tw":!0,tr:!0,th:!0,sv:!0,sl:!0,sk:!0,ru:!0,ro:!0,pt:!0,"pt-pt":!0,pl:!0,nl:!0,nb:!0,ko:!0,kk:!0,ja:!0,it:!0,hu:!0,he:!0,fr:!0,fi:!0,es:!0,el:!0,de:!0,da:!0,cs:!0,ca:!0,ar:!0});
define("dijit/layout/ContentPane","dojo,dijit,dijit/_Widget,dijit/layout/_ContentPaneResizeMixin,dojo/string,dojo/html,i18n!dijit/nls/loading".split(","),function(b,c){b.declare("dijit.layout.ContentPane",[c._Widget,c.layout._ContentPaneResizeMixin],{href:"",extractContent:!1,parseOnLoad:!0,parserScope:b._scopeName,preventCache:!1,preload:!1,refreshOnShow:!1,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",
isLoaded:!1,baseClass:"dijitContentPane",ioArgs:{},onLoadDeferred:null,attributeMap:b.delegate(c._Widget.prototype.attributeMap,{title:[]}),stopParser:!0,template:!1,create:function(a,c){if((!a||!a.template)&&c&&!("href"in a)&&!("content"in a)){for(var f=b.doc.createDocumentFragment(),c=b.byId(c);c.firstChild;)f.appendChild(c.firstChild);a=b.delegate(a,{content:f})}this.inherited(arguments,[a,c])},postMixInProperties:function(){this.inherited(arguments);var a=b.i18n.getLocalization("dijit","loading",
this.lang);this.loadingMessage=b.string.substitute(this.loadingMessage,a);this.errorMessage=b.string.substitute(this.errorMessage,a)},buildRendering:function(){this.inherited(arguments);if(!this.containerNode)this.containerNode=this.domNode;this.domNode.title="";b.attr(this.domNode,"role")||c.setWaiRole(this.domNode,"group")},_startChildren:function(){this.inherited(arguments);this._contentSetter&&b.forEach(this._contentSetter.parseResults,function(a){if(!a._started&&!a._destroyed&&b.isFunction(a.startup))a.startup(),
a._started=!0},this)},setHref:function(a){b.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use set('href', ...) instead.","","2.0");return this.set("href",a)},_setHrefAttr:function(a){this.cancel();this.onLoadDeferred=new b.Deferred(b.hitch(this,"cancel"));this.onLoadDeferred.addCallback(b.hitch(this,"onLoad"));this._set("href",a);this.preload||this._created&&this._isShown()?this._load():this._hrefChanged=!0;return this.onLoadDeferred},setContent:function(a){b.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use set('content', ...) instead.",
"","2.0");this.set("content",a)},_setContentAttr:function(a){this._set("href","");this.cancel();this.onLoadDeferred=new b.Deferred(b.hitch(this,"cancel"));this._created&&this.onLoadDeferred.addCallback(b.hitch(this,"onLoad"));this._setContent(a||"");this._isDownloaded=!1;return this.onLoadDeferred},_getContentAttr:function(){return this.containerNode.innerHTML},cancel:function(){this._xhrDfd&&this._xhrDfd.fired==-1&&this._xhrDfd.cancel();delete this._xhrDfd;this.onLoadDeferred=null},uninitialize:function(){this._beingDestroyed&&
this.cancel();this.inherited(arguments)},destroyRecursive:function(a){this._beingDestroyed||this.inherited(arguments)},_onShow:function(){this.inherited(arguments);if(this.href&&!this._xhrDfd&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow))return this.refresh()},refresh:function(){this.cancel();this.onLoadDeferred=new b.Deferred(b.hitch(this,"cancel"));this.onLoadDeferred.addCallback(b.hitch(this,"onLoad"));this._load();return this.onLoadDeferred},_load:function(){this._setContent(this.onDownloadStart(),
!0);var a=this,c={preventCache:this.preventCache||this.refreshOnShow,url:this.href,handleAs:"text"};b.isObject(this.ioArgs)&&b.mixin(c,this.ioArgs);var f=this._xhrDfd=(this.ioMethod||b.xhrGet)(c);f.addCallback(function(b){try{a._isDownloaded=!0,a._setContent(b,!1),a.onDownloadEnd()}catch(c){a._onError("Content",c)}delete a._xhrDfd;return b});f.addErrback(function(b){f.canceled||a._onError("Download",b);delete a._xhrDfd;return b});delete this._hrefChanged},_onLoadHandler:function(a){this._set("isLoaded",
!0);try{this.onLoadDeferred.callback(a)}catch(b){console.error("Error "+this.widgetId+" running custom onLoad code: "+b.message)}},_onUnloadHandler:function(){this._set("isLoaded",!1);try{this.onUnload()}catch(a){console.error("Error "+this.widgetId+" running custom onUnload code: "+a.message)}},destroyDescendants:function(){this.isLoaded&&this._onUnloadHandler();var a=this._contentSetter;b.forEach(this.getChildren(),function(a){a.destroyRecursive&&a.destroyRecursive()});a&&(b.forEach(a.parseResults,
function(a){a.destroyRecursive&&a.domNode&&a.domNode.parentNode==b.body()&&a.destroyRecursive()}),delete a.parseResults);b.html._emptyNode(this.containerNode);delete this._singleChild},_setContent:function(a,c){this.destroyDescendants();var f=this._contentSetter;if(!(f&&f instanceof b.html._ContentSetter))f=this._contentSetter=new b.html._ContentSetter({node:this.containerNode,_onError:b.hitch(this,this._onError),onContentError:b.hitch(this,function(a){a=this.onContentError(a);try{this.containerNode.innerHTML=
a}catch(b){console.error("Fatal "+this.id+" could not change content due to "+b.message,b)}})});var e=b.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad,parserScope:this.parserScope,startup:!1,dir:this.dir,lang:this.lang},this._contentSetterParams||{});f.set(b.isObject(a)&&a.domNode?a.domNode:a,e);delete this._contentSetterParams;this.doLayout&&this._checkIfSingleChild();c||(this._started&&(this._startChildren(),this._scheduleLayout()),this._onLoadHandler(a))},
_onError:function(a,b,c){this.onLoadDeferred.errback(b);a=this["on"+a+"Error"].call(this,b);c?console.error(c,b):a&&this._setContent(a,!0)},onLoad:function(){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage},onContentError:function(){},onDownloadError:function(){return this.errorMessage},onDownloadEnd:function(){}});return c.layout.ContentPane});
define("dijit/TooltipDialog","dojo,dijit,text!dijit/templates/TooltipDialog.html,dijit/layout/ContentPane,dijit/_Templated,dijit/form/_FormMixin,dijit/_DialogMixin".split(","),function(b,c){b.declare("dijit.TooltipDialog",[c.layout.ContentPane,c._Templated,c.form._FormMixin,c._DialogMixin],{title:"",doLayout:!1,autofocus:!0,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:b.cache("dijit","templates/TooltipDialog.html"),_setTitleAttr:function(a){this.containerNode.title=
a;this._set("title",a)},postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey")},orient:function(a,c,f){a="dijitTooltipAB"+(f.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(f.charAt(0)=="T"?"Below":"Above");b.replaceClass(this.domNode,a,this._currentOrientClass||"");this._currentOrientClass=a},focus:function(){this._getFocusItems(this.containerNode);c.focus(this._firstFocusItem)},onOpen:function(a){this.orient(this.domNode,a.aroundCorner,a.corner);this._onShow()},
onClose:function(){this.onHide()},_onKey:function(a){var d=a.target,f=b.keys;a.charOrCode===f.TAB&&this._getFocusItems(this.containerNode);var e=this._firstFocusItem==this._lastFocusItem;a.charOrCode==f.ESCAPE?(setTimeout(b.hitch(this,"onCancel"),0),b.stopEvent(a)):d==this._firstFocusItem&&a.shiftKey&&a.charOrCode===f.TAB?(e||c.focus(this._lastFocusItem),b.stopEvent(a)):d==this._lastFocusItem&&a.charOrCode===f.TAB&&!a.shiftKey?(e||c.focus(this._firstFocusItem),b.stopEvent(a)):a.charOrCode===f.TAB&&
a.stopPropagation()}});return c.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(b,c,a,d){a.declare("orion.widgets.OperationsDialog",[d.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=c.toUrl("operations/list.html");this._setOperationsVisibility()},setOperations:function(a,b){this._operations=[];b=b||{};this._myOperations=[];if(a.Children)for(var c=0;c<a.Children.length;c++)b[a.Children[c].Id]?this._myOperations.push(a.Children[c]):this._operations.push(a.Children[c]);this._operations.sort(function(a,b){return parseInt(b.Modified)-parseInt(a.Modified)});this._myOperations.sort(function(a,b){return parseInt(b.Modified)-parseInt(a.Modified)});this._renderOperations()},
parseProgressResult:function(a){if(!a)return{};a=a.responseText||a;try{a=JSON.parse(a)}catch(b){}var c={Message:a.Message||a,Severity:a.Severity};if(a.DetailedMessage&&a.DetailedMessage!==c.Message)c.DetailedMessage=a.DetailedMessage;return c},_renderOperations:function(){this._renderOperationsTable(this.myOperationsList,this._myOperations);this._renderOperationsTable(this.operationsList,this._operations)},_renderOperationsTable:function(c,d){a.empty(c);for(var g=0;g<d.length;g++){var h=d[g],i=a.create("tr"),
j=a.create("td",{style:"padding-left: 5px; padding-right: 5px",innerHTML:h.Name},i),j=a.create("div",null,j,"only"),k=a.create("span",{innerHTML:h.Name,className:"primaryColumn"},j,"last");a.place(document.createTextNode(h.Name),k,"only");var l=a.create("span",null,j,"first");a.addClass(l,"imageSprite");k=this.parseProgressResult(h.Result);switch(k.Severity){case "Warning":a.addClass(l,"core-sprite-warning");a.attr(l,"aria-label",b["Operation resulted in a warning."]);break;case "Error":a.addClass(l,
"core-sprite-error");a.attr(l,"aria-label",b["Operation resulted in an error."]);break;default:h.Running===!0?(a.addClass(l,"core-sprite-start"),a.attr(l,"aria-label",b["Operation is running."])):h.Canceled===!0?(a.addClass(l,"core-sprite-stop"),a.attr(l,"aria-label",b["Operation is canceled."])):h.Failed===!0?(a.addClass(l,"core-sprite-error"),a.attr(l,"aria-label",b["Operation failed."])):(a.addClass(l,"core-sprite-ok"),a.attr(l,"aria-label","Operation ok."))}if(k.Message||h.Message)h=k.Message||
h.Message,k.DetailedMessage&&k.DetailedMessage!==""&&(h+=": "+k.DetailedMessage),a.create("br",null,j,"last"),a.create("span",{className:"secondaryColumn",style:"margin-left: 18px;",innerHTML:h},j,"last");a.place(i,c,"last")}this._setOperationsVisibility()},_setOperationsVisibility:function(){this.operationsList.style.display=this._operations.length>0?"":"none";this.otherOperations.style.display=this._operations.length>0?"":"none";this.myOperationsList.style.display=this._myOperations.length>0?"":
"none";this.myOperationsListEmpty.style.display=this._myOperations.length>0?"none":"";this.operationsDontExist.style.display=this._operations.length+this._myOperations.length>0?"none":"";this.operationsExist.style.display=this._operations.length+this._myOperations.length>0?"":"none"},_onBlur:function(){this.inherited(arguments);d.popup.hide&&d.popup.hide(this);d.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(b,c,a,d,f,e,g){function h(b,c,d){var e=function(){d&&a.addClass(this,d)},f=function(){d&&a.removeClass(this,d)};a.connect(b,"onmouseover",b,e);a.connect(c,"onfocus",b,e);a.connect(b,"onmouseout",b,f);a.connect(c,"onblur",b,f)}function i(a,
b,c,d,e){this.commandService=a;this.handler=b;this.items=c;this.userData=d;this.command=e;if(e.parameters)this.parameters=e.parameters.makeCopy();this.id=e.id}function j(a){this._commandList={};this._contributionsByScopeId={};this._activeBindings={};this._urlBindings={};this._init(a);this._parameterCollector=null;this.showMenuIcons=!1}function k(b,c,d){a.addClass(c,"commandImage");var e;b.imageClass?(e=a.create("span",{},c,"last"),a.addClass(e,b.spriteClass),a.addClass(e,b.imageClass)):(e=new Image,
e.alt=b.name,e.name=d,e.id=d,e.src=b.image,a.place(e,c,"last"));return e}function l(a){this._init(a)}function m(b,c,d,e,f,g,h){this.keyCode=typeof b==="string"?b.toUpperCase().charCodeAt(0):b;this.mod1=c!==void 0&&c!==null?c:!1;this.mod2=d!==void 0&&d!==null?d:!1;this.mod3=e!==void 0&&e!==null?e:!1;this.mod4=f!==void 0&&f!==null?f:!1;typeof g==="string"?(this.domScope=a.byId(g),this.scopeName=h||g):(this.domScope=g,this.scopeName=h||g?g.id:null)}function n(a,b){this.token=a;this.parameterName=b}function o(a,
b,c,d,e){this.name=a;this.type=b;this.label=c;this.value=d;this.lines=e||1}function p(a,b,c){this._storeParameters(a);this._hasOptionalParameters=b&&b.hasOptionalParameters;this._clientCollect=b&&b.clientCollect;this._options=b;this.optionsRequested=!1;this.getParameters=c}i.prototype={collectsParameters:function(){return this.commandService&&this.commandService.collectsParameters()},makeCopy:function(){var a=new i(this.commandService,this.handler,this.items,this.userData,this.command);a.domNode=
this.domNode;a.domParent=this.domParent;if(this.parameters)a.parameters=this.parameters.makeCopy();return a}};i.prototype.constructor=i;var r=a.declare(d.MenuItem,{constructor:function(){var b=arguments[0]||{};b.onKeyDown=a.hitch(this,function(b){if((b.keyCode===a.keys.ENTER||b.keyCode===a.keys.SPACE)&&this._anchorLocation)b.ctrlKey?window.open(this._anchorLocation):window.location=this._anchorLocation});this.inherited(arguments||[b])},postCreate:function(){var b=a.query("a",this.domNode)[0];if(b)a.addClass(b,
"commandMenuItemAnchor"),this._anchorLocation=b.href},setLink:function(a,b){this.set("label","<a class='commandMenuItemAnchor' href='"+a+"'>"+b+"</a>");this._anchorLocation=a},_onClick:function(a){this.hasLink||this.inherited(arguments)}}),s=a.declare(d.Tooltip,{constructor:function(){this.inherited(arguments);this.options=arguments[0]||{};this.showDelay=1E3},_onUnHover:function(){this._showTimer&&(window.clearTimeout(this._showTimer),delete this._showTimer);this.polling=!1;this.close()},_onHover:function(b){this.inherited(arguments);
this.polling=!0;this.pollForMissingTarget();window.setTimeout(function(){d._masterTT&&a.removeAttr(d._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&&d.byId(this.options.commandParent.id)&&a.connect(this.options.commandParent,"onClose",a.hitch(this,function(){this.close()}))}});j.prototype={_init:function(b){this._registry=b.serviceRegistry;this._serviceRegistration=this._registry.registerService("orion.page.command",this);this._defaultSelectionService=b.selection;a.connect(window.document,"onkeydown",a.hitch(this,function(a){a=a||window.event;if(a.target.contentEditable!=="true"){var b=a.target.nodeName.toLowerCase();
if(b==="input")switch(a.target.type.toLowerCase()){case "text":case "password":case "search":case "color":case "date":case "datetime":case "datetime-local":case "email":case "month":case "number":case "range":case "tel":case "time":case "url":case "week":return}else if(b==="textarea")return;this._processKey(a)}}))},_processKey:function(b){function c(a){window.document.all?a.keyCode=0:(a.preventDefault(),a.stopPropagation())}for(var d in this._activeBindings)if(this._activeBindings[d]&&this._activeBindings[d].keyBinding&&
this._activeBindings[d].command&&this._activeBindings[d].keyBinding.match(b)){var e=this._activeBindings[d],f=e.invocation;if(f)if(e=e.command,e.hrefCallback){c(b);b=e.hrefCallback.call(f.handler||window,f);b.then?b.then(function(a){window.open(a)}):window.open(b);break}else if(e.callback){c(b);window.setTimeout(a.hitch(this,function(){this._invoke(f)}),0);break}}},processURL:function(b){for(var c in this._urlBindings)if(this._urlBindings[c]&&this._urlBindings[c].urlBinding&&this._urlBindings[c].command){var d=
this._urlBindings[c].urlBinding.match(b);if(d){var e=this._urlBindings[c],f=e.command,g=e.invocation;if(g&&g.parameters&&f.callback){g.parameters.setValue(d.parameterName,d.parameterValue);window.setTimeout(a.hitch(this,function(){this._invoke(g)}),0);break}}}},findCommand:function(a){return this._commandList[a]},runCommand:function(b,c,d){if(c){var e=this._commandList[b];(e.visibleWhen?e.visibleWhen(c):1)&&e.callback&&window.setTimeout(a.hitch(this,function(){this._invoke(new i(this,d,c,null,e))}),
0)}else{var f=this._urlBindings[b];f&&f.command&&f.command.callback&&window.setTimeout(a.hitch(this,function(){this._invoke(f.invocation)}),0)}},getSelectionService:function(){return this._defaultSelectionService},setParameterCollector:function(a){this._parameterCollector=a},openParameterCollector:function(a,b,c){this._parameterCollector&&(this._parameterCollector.close(),this._parameterCollector.open(a,b,c))},closeParameterCollector:function(){this._parameterCollector&&this._parameterCollector.close()},
collectsParameters:function(){return this._parameterCollector},_invoke:function(a){return this._collectAndInvoke(a.makeCopy(),!1)},_collectAndInvoke:function(b,c){if(b)if(this._parameterCollector&&b.parameters&&b.parameters.hasParameters()&&(c||b.parameters.shouldCollectParameters())){var e=!1;b.parameters.updateParameters(b);e=this._parameterCollector.collectParameters(b);if(!e){var f=new d.TooltipDialog({onBlur:function(){d.popup.close(f)}}),g=a.create("div"),h=window.document.activeElement,i=this._parameterCollector.getFillFunction(b,
function(){d.popup.close(f);f.destroyRecursive();h&&h.focus()})(g);f.set("content",g);g=(g=d.byId(b.domParent.id))?a.position(g.eclipseScopeId,!0):a.position(b.domNode,!0);g.x&&g.y&&g.w&&(d.popup.open({popup:f,x:g.x+g.w-8,y:g.y+8}),window.setTimeout(function(){i.focus();i.select()},0),e=!0)}if(!e)b.parameters=null,b.command.callback.call(b.handler||window,b)}else b.command.callback.call(b.handler||window,b);else window.console.log("Client attempted to invoke command without an available (rendered) command invocation")},
collectParameters:function(a){this._collectAndInvoke(a,!0)},showKeyBindings:function(b){var c={},d,e,g;for(g in this._activeBindings)if((e=this._activeBindings[g])&&e.keyBinding&&e.command)e.keyBinding.scopeName?(c[e.keyBinding.scopeName]||(c[e.keyBinding.scopeName]=[]),c[e.keyBinding.scopeName].push(e)):(d=f.getUserKeyString(e.keyBinding),a.place("<span role='listitem'>"+d+" = "+e.command.name+"<br></span>",b,"last"));for(var h in c)if(c[h].length&&c[h].length>0){a.place("<h2>"+h+"</h2>",b,"last");
for(g=0;g<c[h].length;g++)e=c[h][g],d=f.getUserKeyString(e.keyBinding),a.place("<span role='listitem'>"+d+" = "+e.command.name+"<br></span>",b,"last")}},addCommand:function(a){this._commandList[a.id]=a},addCommandGroup:function(a,b,c,d,e,f){this._contributionsByScopeId[a]||(this._contributionsByScopeId[a]={});a=this._contributionsByScopeId[a];e&&(a=this._createEntryForPath(a,e));if(a[b]){if(d)a[b].title=d;if(c)a[b].position=c;a[b].emptyGroupMessage=f}else a[b]={title:d,position:c,emptyGroupMessage:f,
children:{}},a.sortedContributions=null},_createEntryForPath:function(a,b){if(b)for(var c=b.split("/"),d=0;d<c.length;d++)if(c[d].length>1)a[c[d]]||(a[c[d]]={position:0,children:{}}),a=a[c[d]].children;return a},registerSelectionService:function(a,b){this._contributionsByScopeId[a]||(this._contributionsByScopeId[a]={});this._contributionsByScopeId[a].localSelectionService=b},registerCommandContribution:function(a,b,c,d,e,f,g){this._contributionsByScopeId[a]||(this._contributionsByScopeId[a]={});a=
this._contributionsByScopeId[a];d&&(a=this._createEntryForPath(a,d));a[b]={position:c};f&&(c=this._commandList[b])&&(this._activeBindings[b]={command:c,keyBinding:f,bindingOnly:e});g&&(c=this._commandList[b])&&(this._urlBindings[b]={command:c,urlBinding:g,bindingOnly:e});a.sortedContributions=null},_isLastChildSeparator:function(b,c){if(c==="tool"||c==="button")return b.childNodes.length>0&&a.hasClass(b.childNodes[b.childNodes.length-1],"commandSeparator");if(c==="menu"){var e=b.getChildren();return e.length>
0&&e[e.length-1]instanceof d.MenuSeparator}return!1},renderCommands:function(b,c,d,e,g,h,i){if(typeof b!=="string")throw"a scope id for rendering must be specified";typeof c==="string"&&(c=a.byId(c));if(!c)throw"no parent";var k=this._contributionsByScopeId[b];if(!d&&k){var d=k.localSelectionService||this._defaultSelectionService,j=this;d&&d.getSelections(function(a){j.renderCommands(b,c,a,e,g,h)})}else k&&(this._render(this._contributionsByScopeId[b],c,d,e,g,h,i),g==="tool"||g==="button"?this._isLastChildSeparator(c,
g)&&c.removeChild(c.childNodes[c.childNodes.length-1]):g==="menu"&&this._isLastChildSeparator(c,g)&&(d=c.getChildren()[c.getChildren().length-1],c.removeChild(d),d.destroy()),f.forceLayout(c))},destroy:function(b){typeof b==="string"&&(b=a.byId(b));if(!b)throw"no parent";var c=d.findWidgets(b);a.forEach(c,function(a){a.destroyRecursive()});a.empty(b)},_render:function(c,e,f,k,j,l,m){var p=c.sortedContributions;if(!p){var p=[],n=!1,q;for(q in c)if(!c.hasOwnProperty||c.hasOwnProperty(q)){var s=c[q];
if(s&&typeof s.position==="number")s.id=q,p.push(s),n=!0}if(n)p.sort(function(a,b){return a.position-b.position}),c.sortedContributions=p}for(c=0;c<p.length;c++){var o,r;if(p[c].children&&Object.getOwnPropertyNames(p[c].children).length>0){q=p[c];var K,n=p[c].children,B=this;if(j==="tool"||j==="button")if(q.title){var y=new d.Menu({style:"display: none;"});o=new d.form.DropDownButton({label:q.title==="*"?b.Actions:q.title,showLabel:q.title!=="*",style:"visibility: hidden;",dropDown:y});a.addClass(o.domNode,
"commandMenu");m&&g.generateNavGrid(m,o.domNode,o);s=e;e.nodeName.toLowerCase()==="ul"?s=a.create("li",{},e):a.addClass(o.domNode,"commandMargins");a.removeAttr(o.titleNode,"title");a.destroy(o.valueNode);h(o.domNode,o.focusNode);a.place(o.domNode,s,"last");y.eclipseScopeId=e.eclipseScopeId||e.id;window.setTimeout(a.hitch({contributions:n,emptyGroupMessage:q.emptyGroupMessage},function(){if(!y._destroyed){B._render(this.contributions,y,f,k,"menu",l,m);K=y.getChildren();if(B._isLastChildSeparator(y,
"menu")){var b=K[K.length-1];y.removeChild(b);b.destroy();K=y.getChildren()}K.length===0?this.emptyGroupMessage?(a.connect(o.focusNode,"onclick",this,function(){var a=new d.TooltipDialog({content:"<p>"+this.emptyGroupMessage+"</p>",onMouseLeave:function(){d.popup.close(a);a.destroyRecursive()}});d.popup.open({popup:a,around:o.domNode});window.setTimeout(function(){d.popup.close(a);a.destroyRecursive()},15E3)}),a.style(o.domNode,"visibility","visible")):(m&&g.removeNavGrid(m,o.domNode),o.destroyRecursive()):
a.style(o.domNode,"visibility","visible")}}),0)}else{var L;e.childNodes.length>0&&!this._isLastChildSeparator(e,j)&&(L=this.generateSeparatorImage(e));B._render(n,e,f,k,j,l,m);e.childNodes.length>0&&e.childNodes[e.childNodes.length-1]!==L&&(L=this.generateSeparatorImage(e))}else if(q.title)s=new d.Menu,q=new d.PopupMenuItem({label:q.title,popup:s}),e.addChild(q),B._render(n,s,f,k,j,l,m),s.getChildren().length===0&&(q.set("label","removeme"),e.removeChild(q),q.destroyRecursive());else{var F;e.getChildren().length>
0&&!this._isLastChildSeparator(e,j)&&(F=new d.MenuSeparator,e.addChild(F));B._render(n,e,f,k,j,l,m);n=e.getChildren();n[n.length-1]!==F&&(F=new d.MenuSeparator,e.addChild(F))}}else{q=(n=this._commandList[p[c].id])?!0:!1;var M=null,M=null;if(n){r=new i(this,k,f,l,n);r.domParent=e;s=q&&(n.visibleWhen?n.visibleWhen(f):!0);if(this._activeBindings[n.id]&&this._activeBindings[n.id].keyBinding)M=this._activeBindings[n.id],M.invocation=s?r:null,M.bindingOnly&&(q=!1);if(this._urlBindings[n.id]&&this._urlBindings[n.id].urlBinding)M=
this._urlBindings[n.id],M.invocation=s?r:null,M.bindingOnly&&(q=!1);q=q&&s}if(q)if(n.choiceCallback)if(q=new d.Menu({style:"display: none;"}),j==="tool"||j==="button"){o=new d.form.DropDownButton({label:n.name,dropDown:q});a.addClass(o.domNode,"commandMenu");a.removeAttr(o.titleNode,"title");a.destroy(o.valueNode);if(n.image)a.addClass(o.iconNode,"commandImage"),o.iconNode.src=n.image;a.place(o.domNode,e,"last");o.eclipseCommand=n;o.eclipseChoices=q;a.connect(o,"onClick",o,function(){this.eclipseCommand.populateChoicesMenu(this.eclipseChoices,
f,k,l)})}else{if(j==="menu")s=new d.PopupMenuItem({label:n.name,popup:q}),e.addChild(s),s.eclipseCommand=n,s.eclipseChoices=q,a.connect(e,"_openPopup",s,function(){this.eclipseCommand.populateChoicesMenu(this.eclipseChoices,f,k,l)})}else j==="tool"?(q="tool"+n.id+c,n._addTool(e,q,r,m)):j==="button"?(q="button"+n.id+c,n._addButton(e,q,r,m)):j==="menu"&&n._addMenuItem(e,r,m)}}},generateSeparatorImage:function(b){b=b.nodeName.toLowerCase()==="ul"?a.create("li",null,b,"last"):a.create("span",null,b,"last");
a.addClass(b,"core-sprite-sep");a.addClass(b,"imageSprite");a.addClass(b,"commandSeparator");return b}};j.prototype.constructor=j;l.prototype={_init:function(a){this.id=a.id;this.name=a.name;this.tooltip=a.tooltip||a.name;this.callback=a.callback;this.hrefCallback=a.hrefCallback;this.choiceCallback=a.choiceCallback;this.image=a.image||c.toUrl("images/none.png");this.imageClass=a.imageClass;this.spriteClass=a.spriteClass||"commandSprite";this.visibleWhen=a.visibleWhen;this.parameters=a.parameters;
this.description=a.description},_addTool:function(b,c,d,e){d.handler=d.handler||this;var f,i;if(this.hrefCallback){if(f=this._makeLink(d),!f)return}else f=a.create("span",{tabindex:e?"-1":"0",role:"button"}),this.hasImage()?(i=k(this,f,c),this._addAccessibleLabel(f)):(c=window.document.createTextNode(this.name),a.place(c,f,"last"),a.addClass(f,"commandMissingImageButton commandButton")),this._hookCallback(f,d),h(f,f,i?"commandImageOver":"commandButtonOver");d.domNode=f;d.domParent=b;this.tooltip&&
new s({connectId:[f],label:this.tooltip,position:["above","left","right","below"],commandParent:b,commandService:d.commandService});b.nodeName.toLowerCase()==="ul"?b=a.create("li",{},b):a.addClass(f,"commandMargins");a.place(f,b,"last");g.generateNavGrid(e,d.domNode)},_addButton:function(b,c,d,e){d.handler=d.handler||this;var f;if(this.hrefCallback){if(f=this._makeLink(d),!f)return}else{f=a.create("span",{tabindex:"0",role:"button"});this._hookCallback(f,d);var i;this.name?(a.place(window.document.createTextNode(this.name),
f,"last"),a.addClass(f,"commandButton"),i="commandButtonOver"):(k(this,f,c),i="commandImageOver",this._addAccessibleLabel(f));h(f,f,i)}f.id=c;this.tooltip&&new s({connectId:[f],label:this.tooltip,position:["above","left","right","below"],commandParent:b,commandService:d.commandService});d.domParent=b;d.domNode=f;b.nodeName.toLowerCase()==="ul"?b=a.create("li",{},b):a.addClass(f,"commandMargins");a.place(f,b,"last");g.generateNavGrid(e,d.domNode)},_addMenuItem:function(b,c,d){var e=c.commandService.showMenuIcons;
c.domParent=b.domNode;var f=new r({labelType:this.hrefCallback?"html":"text",label:this.name,iconClass:e?this.imageClass:null,hasLink:!!this.hrefCallback});this.tooltip&&new s({connectId:[f.domNode],label:this.tooltip,commandParent:b,commandService:c.commandService});if(this.hrefCallback){var h=this.hrefCallback.call(c.handler,c);if(h)if(h.then)h.then(a.hitch(this,function(a){f.setLink(a,this.name)}));else if(h)f.setLink(h,this.name);else return}else if(this.callback)f.onClick=a.hitch(this,function(){c.commandService._invoke(c)});
f.eclipseCommand=this;b.addChild(f);if(e)if(this.imageClass)a.addClass(f.iconNode,this.spriteClass);else if(this.image)a.addClass(f.iconNode,"commandMenuItem"),f.iconNode.src=this.image;c.domNode=f.domNode;g.generateNavGrid(d,c.domNode)},_makeLink:function(b){var c=a.create("a",{tabindex:"0"});a.addClass(c,"commandLink");a.place(window.document.createTextNode(this.name),c,"last");b=this.hrefCallback.call(b.handler,b);if(b.then)b.then(function(a){c.href=a});else if(b)c.href=b;else return null;return c},
_hookCallback:function(b,c){a.connect(b,"onclick",this,function(){c.commandService._invoke(c)});a.connect(b,"onkeypress",this,function(b){(b.keyCode===a.keys.ENTER||b.charCode===a.keys.SPACE)&&c.commandService._invoke(c)})},_addAccessibleLabel:function(b){var c=this.name||this.tooltip;c&&a.attr(b,"aria-label",c)},populateChoicesMenu:function(b,c,e,f){b.focusedChild=null;a.forEach(b.getChildren(),function(a){b.removeChild(a);a.destroy()});for(var e=this.getChoices(c,e,f),f=this.showMenuIcons,g=0;g<
e.length;g++){var h=e[g],i;if(h.name){if(i=new d.MenuItem({label:h.name,iconClass:f?h.imageClass:null,onClick:this.makeChoiceCallback(h,c)}),f)if(h.imageClass)a.addClass(i.iconNode,h.spriteClass||"commandSprite");else if(h.image)a.addClass(i.iconNode,"commandImage"),i.iconNode.src=h.image}else i=new d.MenuSeparator;b.addChild(i)}},getChoices:function(a,b,c){return this.choiceCallback?this.choiceCallback.call(b,a,c):null},makeChoiceCallback:function(a,b){return function(c){a.callback&&a.callback.call(a,
b,c)}},hasImage:function(){return this.imageClass||this.image!==c.toUrl("images/none.png")}};l.prototype.constructor=l;var q=window.navigator.platform.indexOf("Mac")!==-1;m.prototype={match:function(a){if(this.keyCode===a.keyCode){if(this.mod1!==(q?a.metaKey:a.ctrlKey))return!1;if(this.mod2!==a.shiftKey)return!1;if(this.mod3!==a.altKey)return!1;if(q&&this.mod4!==a.ctrlKey)return!1;if(!this.domScope)return!0;for(a=a.target;a;){if(a===window.document)break;if(a===this.domScope)return!0;a=a.parentNode}}return!1},
equals:function(a){return!a?!1:this.keyCode!==a.keyCode?!1:this.mod1!==a.mod1?!1:this.mod2!==a.mod2?!1:this.mod3!==a.mod3?!1:this.mod4!==a.mod4?!1:this.domScope!==a.domScope?!1:!0}};m.prototype.constructor=m;n.prototype={match:function(a){a=e.matchResourceParameters(a);return typeof a[this.token]!=="undefined"?(this.parameterValue=a[this.token],this):null}};n.prototype.constructor=n;o.prototype={optionsRequested:function(){return this.optionsRequested}};o.prototype.constructor=o;p.prototype={_storeParameters:function(a){this.parameterTable=
null;if(a){this.parameterTable={};for(var b=0;b<a.length;b++)this.parameterTable[a[b].name]=a[b]}},updateParameters:function(a){typeof this.getParameters==="function"&&this._storeParameters(this.getParameters(a))},hasParameters:function(){return this.parameterTable!==null},shouldCollectParameters:function(){return!this._clientCollect&&this.hasParameters()},parameterNamed:function(a){return this.parameterTable[a]},valueFor:function(a){return(a=this.parameterTable[a])?a.value:null},setValue:function(a,
b){var c=this.parameterTable[a];if(c)c.value=b},forEach:function(a){for(var b in this.parameterTable)this.parameterTable[b].type&&this.parameterTable[b].name&&a(this.parameterTable[b])},makeCopy:function(){var a=[];this.forEach(function(b){b=new o(b.name,b.type,b.label,b.value,b.lines);a.push(b)});return new p(a,this._options,this.getParameters)},hasOptionalParameters:function(){return this._hasOptionalParameters}};p.prototype.constructor=p;return{CommandService:j,CommandKeyBinding:m,Command:l,CommandInvocation:i,
CommandMenuItem:r,URLBinding:n,ParametersDescription:p,CommandParameter:o,CommandTooltip:s}});
define("orion/parameterCollectors","i18n!orion/nls/messages,require,dojo,dijit,orion/commands,orion/util,dijit/Menu,dijit/MenuItem,dijit/form/DropDownButton".split(","),function(b,c,a,d,f,e){function g(){this._activeContainer=null}g.prototype={close:function(){if(this._activeElements){this._activeElements.parameterArea&&a.empty(this._activeElements.parameterArea);this._activeElements.parameterContainer&&(a.removeClass(this._activeElements.parameterContainer,"slideActive"),a.removeClass(this._activeElements.slideContainer,
"slideContainerActive"));this._activeElements.dismissArea&&a.empty(this._activeElements.dismissArea);this._activeElements.commandNode&&a.removeClass(this._activeElements.commandNode,"activeCommand");e.forceLayout(this._activeElements.parameterContainer);if(this._activeElements.onClose)this._activeElements.onClose();if(this._oldFocusNode)this._oldFocusNode.focus(),this._oldFocusNode=null}this._activeElements=null},_findParameterElements:function(b){var c={},d=null;typeof b==="string"&&(b=a.byId(b));
for(var e=b;e;){if(a.hasClass(e,"toolComposite")){d=e;break}e=e.parentNode}if(a.hasClass(b,"commandMarker"))c.commandNode=b;if(d)c.slideContainer=a.query(".slideParameters",d)[0],c.parameterContainer=a.query(".slide",d)[0],c.parameterArea=a.query(".parameters",d)[0],c.dismissArea=a.query(".parametersDismiss",d)[0];return c},open:function(c,d,f){typeof c==="string"&&(c=a.byId(c));this.close();this._activeElements=null;if((this._activeElements=this._findParameterElements(c))&&this._activeElements.parameterArea&&
this._activeElements.slideContainer&&this._activeElements.parameterContainer){this._activeElements.onClose=f;var g=d(this._activeElements.parameterArea,this._activeElements.dismissArea),c=a.query("#closebox",this._activeElements.dismissArea||this._activeElements.parameterArea);if(c.length===0)c=a.create("span",{id:"closebox",role:"button",tabindex:"0"},this._activeElements.dismissArea||this._activeElements.parameterArea,"last"),a.addClass(c,"imageSprite"),a.addClass(c,"core-sprite-close"),a.addClass(c,
"dismiss"),c.title=b.Close,a.connect(c,"onclick",a.hitch(this,function(){this.close()})),a.connect(c,"onkeypress",a.hitch(this,function(b){(b.keyCode===a.keys.ENTER||b.charCode===a.keys.SPACE)&&this.close()}));a.addClass(this._activeElements.slideContainer,"slideContainerActive");a.addClass(this._activeElements.parameterContainer,"slideActive");e.forceLayout(this._activeElements.parameterContainer);if(g)this._oldFocusNode=window.document.activeElement,window.setTimeout(function(){g.focus();g.select()},
0);this._activeElements.commandNode&&a.addClass(this._activeElements.commandNode,"activeCommand");return!0}return!1},_collectAndCall:function(b,c){a.query("input",c).forEach(function(a){a.type==="checkbox"?b.parameters.setValue(a.parameterName,a.checked):a.type!=="button"&&b.parameters.setValue(a.parameterName,a.value.trim())});a.query("textArea",c).forEach(function(a){b.parameters.setValue(a.parameterName,a.value.trim())});b.command.callback&&b.command.callback.call(b.handler,b)},collectParameters:function(b){return b.parameters?
(b.domNode&&a.addClass(b.domNode,"commandMarker"),this.open(b.domNode||b.domParent,this.getFillFunction(b))):!1},getFillFunction:function(c,d){return a.hitch(this,function(e,f){var g=null,m=a.hitch(this,function(){d&&d();this.close()}),n=a.hitch(this,function(b){b.keyCode===a.keys.ENTER&&this._collectAndCall(c,e);if(b.keyCode===a.keys.ESCAPE||b.keyCode===a.keys.ENTER)m(),a.stopEvent(b)});c.parameters.forEach(function(b){b.label&&a.create("label",{innerHTML:b.label,"class":"parameterInput","for":b.name+
"parameterCollector"},e,"last");var c={type:b.type,id:b.name+"parameterCollector"},d;if(b.type==="text"&&typeof b.lines==="number"&&b.lines>1)c.rows=b.lines,c.type="textarea",d=a.create("textarea",c,e,"last"),n=a.hitch(this,function(b){b.keyCode===a.keys.ESCAPE&&(m(),a.stopEvent(b))});else if(b.type==="boolean"){if(c.type="checkbox",b.value)c.checked=!0}else if(b.value)c.value=b.value;d||(d=a.create("input",c,e,"last"));a.addClass(d,"parameterInput parameterInput"+c.type);d.setAttribute("speech",
"speech");d.setAttribute("x-webkit-speech","x-webkit-speech");d.parameterName=b.name;g||(g=d);a.connect(d,"onkeypress",n)});var o=f||e,p=function(a){a._collectAndCall(c,e);m()};if(c.parameters.hasOptionalParameters()){c.parameters.optionsRequested=!1;var r=a.create("span",{role:"button",tabindex:"0"},o,"last");a.place(window.document.createTextNode("More"),r,"last");a.addClass(r,"dismiss");a.connect(r,"onclick",a.hitch(this,function(){c.parameters.optionsRequested=!0;p(this)}));a.connect(r,"onkeypress",
a.hitch(this,function(b){if(b.keyCode===a.keys.ENTER||b.charCode===a.keys.SPACE)c.parameters.optionsRequested=!0,p(this)}))}r=a.create("span",{role:"button",tabindex:"0"},o,"last");a.place(window.document.createTextNode("Submit"),r,"last");a.addClass(r,"dismiss");a.connect(r,"onclick",a.hitch(this,function(){p(this)}));a.connect(r,"onkeypress",a.hitch(this,function(b){(b.keyCode===a.keys.ENTER||b.charCode===a.keys.SPACE)&&p(this)}));o=a.create("span",{id:"closebox",role:"button",tabindex:"0"},o,"last");
a.addClass(o,"imageSprite");a.addClass(o,"core-sprite-close");a.addClass(o,"dismiss");o.title=b.Close;a.connect(o,"onclick",a.hitch(this,function(){m()}));a.connect(o,"onkeypress",a.hitch(this,function(b){(b.keyCode===a.keys.ENTER||b.charCode===a.keys.SPACE)&&m()}));return g})}};g.prototype.constructor=g;return{CommandParameterCollector:g}});
define("orion/widgets/UserMenu","i18n!orion/widgets/nls/messages,require,dojo,dijit,orion/commands,orion/util,dijit/Menu".split(","),function(b,c,a,d,f){a.declare("orion.widgets.UserMenu",[d.Menu],{widgetsInTemplate:!1,id:"userMenu",templateString:'<table role="menu" tabIndex="${tabIndex}" dojoAttachEvent="onkeypress:_onKeyPress" cellspacing="0"><tbody class="dijitReset" dojoAttachPoint="containerNode"></tbody></table>',label:b.test,postCreate:function(){this.inherited(arguments);a.style(this.domNode,
"border-radius","3px");a.style(this.domNode,"border","1px solid #DDD")},constructor:function(){this.inherited(arguments);this.options=arguments[0]||{};this.authenticatedServices={};this.unauthenticatedServices={}},isSingleService:function(){return this.length(this.unauthenticatedServices)+this.length(this.authenticatedServices)===1},hasServices:function(){return this.length(this.unauthenticatedServices)+this.length(this.authenticatedServices)>0},length:function(a){var b=0,c;for(c in a)a.hasOwnProperty(c)&&
b++;return b},_renderAuthenticatedService:function(c,d,h){var i=this;(d=this.authenticatedServices[c].authService)&&d.logout&&this.addChild(new f.CommandMenuItem({label:h?b["Sign Out "]+h:b["Sign Out"],onClick:a.hitch(this,function(b,c){return function(){b.logout().then(a.hitch(i,function(){this.addUserItem(c,b,this.authenticatedServices[c].label);localStorage.removeItem(c);for(var a=0,d=localStorage.length;a<d;a++){var e=localStorage.key(a);e&&e.indexOf("/orion/preferences/user")===0&&localStorage.removeItem(e)}b.getAuthForm(window.location.href).then(function(a){window.location=
a})}))}})(d,c)}))},_renderUnauthenticatedService:function(c,d,h){var i=this,j=this.unauthenticatedServices[c].authService;if(j)j.getAuthForm?a.hitch(i,function(a){j.getAuthForm(eclipse.globalCommandUtils.notifyAuthenticationSite).then(function(c){c+=c.indexOf("?")===-1?"?redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+a:"&redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+a;i.addChild(new f.CommandMenuItem({label:h?"<a target='_blank' href="+c+">"+b["Sign In To "]+
h+"</a>":"<a target='_blank' href="+c+">"+b["Sign In"]+"</a>",hasLink:!0}),d)})})(c):j.login&&this.addChild(new f.CommandMenuItem({label:h?"Sign In To "+h:"Sign In",onClick:a.hitch(i,function(a){return function(){a.login(eclipse.globalCommandUtils.notifyAuthenticationSite)}})(j)}),d);else{var k=this.unauthenticatedServices[c].SignInLocation;k+=k.indexOf("?")===-1?"?redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+c:"&redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+
"?key="+c;this.addChild(new f.Command.MenuItem({label:h?"<a target='_blank' href="+k+">"+b["Sign In To "]+h+"</a>":"<a target='_blank' href="+k+">"+b["Sign In"]+"</a>",hasLink:!0}),d)}},renderServices:function(){for(var a=this.getChildren(),g=0;g<a.length;g++)this.removeChild(a[g]);this.addChild(new f.CommandMenuItem({label:"<a href="+c.toUrl("help/index.jsp")+">"+b.Help+"</a>",hasLink:!0}));this.keyAssistFunction&&this.addChild(new f.CommandMenuItem({label:b["Keyboard Shortcuts"],onClick:this.keyAssistFunction}));
this.addChild(new d.MenuSeparator);this.addChild(new f.CommandMenuItem({label:"<a href="+c.toUrl("settings/settings.html")+">"+b.Settings+"</a>",hasLink:!0}));if(this.isSingleService())for(g in this.authenticatedServices)this._renderAuthenticatedService(g,0)},getUserLabel:function(a){if(a.data){var b=a.data.Name&&a.data.Name.replace(/^\s+|\s+$/g,"")!==""?a.data.Name:a.data.login;b.length>40&&(b=b.substring(0,30)+"...");b+=" ("+a.label+")";return b}else return a.label},setUserName:function(){},setKeyAssist:function(a){this.keyAssistFunction=
a;this.renderServices()},addUserItem:function(e,g,h,i){var j=this;i?(this.unauthenticatedServices[e]&&delete this.unauthenticatedServices[e],this.authenticatedServices[e]={authService:g,label:h,data:i}):(this.authenticatedServices[e]&&delete this.authenticatedServices[e],this.unauthenticatedServices[e]=this.unauthenticatedServices[e]?{authService:g,label:h,pending:this.unauthenticatedServices[e].pending}:{authService:g,label:h});a.hitch(this,this.renderServices)();if(a.byId("userInfo"))if(this.isSingleService()&&
i)h=e=i.Name&&i.Name.replace(/^\s+|\s+$/g,"")!==""?i.Name:i.login,h.length>40&&(h=h.substring(0,30)+"..."),i=a.create("a",{innerHTML:h,href:c.toUrl("profile/user-profile.html")+"#"+i.Location,"aria-label":b["View profile of "]+e,style:"margin-right: 0px"},a.byId("userInfo"),"only"),new f.CommandTooltip({connectId:[i],label:b["View profile of "]+e,position:["above","left","right","below"]});else if(this.isSingleService()&&!i)if(g.getAuthForm)a.hitch(this,function(c){g.getAuthForm(eclipse.globalCommandUtils.notifyAuthenticationSite).then(function(d){d+=
d.indexOf("?")===-1?"?redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+c:"&redirect="+eclipse.globalCommandUtils.notifyAuthenticationSite+"?key="+c;a.create("a",{innerHTML:b["Sign In"],href:d,style:"margin-right: 0px",target:"_blank"},a.byId("userInfo"),"only")})})(e);else{if(g.login){var k=a.create("a",{innerHTML:b["Sign In"],style:"margin-right: 0px"},a.byId("userInfo"),"only");a.connect(k,"onmouseover",k,function(){k.style.cursor="pointer"});a.connect(k,"onmouseout",k,function(){k.style.cursor=
"default"});a.connect(k,"onclick",function(){g.login(eclipse.globalCommandUtils.notifyAuthenticationSite)})}}else this.hasServices()?(k=a.create("a",{innerHTML:b.Profiles,style:"margin-right: 0px"},a.byId("userInfo"),"only"),a.connect(k,"onmouseover",k,function(){k.style.cursor="pointer"}),a.connect(k,"onmouseout",k,function(){k.style.cursor="default"}),a.connect(k,"onclick",function(){try{d.popup.open({popup:j.options.loginDialog,around:a.byId("userInfo")})}catch(b){}d.focus(j.options.loginDialog.domNode)})):
a.empty(a.byId("userInfo"))}})});define("orion/widgets/UserMenuDropDown","require,dojo,dijit,orion/commands,orion/util,dijit/form/DropDownButton".split(","),function(b,c,a){c.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/section",["dojo","orion/selection","orion/commands","orion/commonHTMLFragments"],function(b,c,a,d){function f(a,c){var e=this;this._expandImageClass="core-sprite-openarrow";this._collapseImageClass="core-sprite-closedarrow";this._twistieSpriteClass="modelDecorationSprite";if(!c.id)throw Error("Missing required argument: id");this.id=c.id;if(!c.title)throw Error("Missing required argument: title");this.domNode=b.create("div",{"class":(c.useAuxStyle?"sectionWrapper sectionWrapperAux":
"sectionWrapper")+" toolComposite",id:c.id},a);if(c.canHide)this.twistie=b.create("span",{"class":"modelDecorationSprite layoutLeft sectionTitle"},this.domNode),b.style(this.domNode,"cursor","pointer"),b.attr(this.domNode,"tabIndex","0"),b.connect(this.domNode,"onclick",function(a){(a.target===e.titleNode||a.target===e.twistie)&&e._changeExpandedState()}),b.connect(this.domNode,"onkeydown",function(a){a.keyCode===b.keys.ENTER&&(a.target===e.domNode||a.target===e.titleNode||a.target===e.twistie)&&
e._changeExpandedState()});if(c.iconClass){var f=b.create("span",{"class":"sectionIcon"},this.domNode);b.addClass(f,c.iconClass)}this.titleNode=b.create("div",{id:c.id+"Title","class":"sectionAnchor sectionTitle layoutLeft",innerHTML:c.title},this.domNode);this._progressNode=b.create("div",{id:c.id+"Progress","class":"sectionProgress sectionTitle layoutLeft",innerHTML:"..."},this.domNode);this._progressNode.style.visibility="hidden";this._toolActionsNode=b.create("div",{id:c.id+"ToolActionsArea",
"class":"layoutRight sectionActions"},this.domNode);this.actionsNode=b.create("div",{id:c.id+"ActionArea","class":"layoutRight sectionActions"},this.domNode);this.selectionNode=b.create("div",{id:c.id+"SelectionArea","class":"layoutRight sectionActions"},this.domNode);if(c.slideout)this.slideout=d.slideoutHTMLFragment(c.id),b.place(this.slideout,this.domNode);this._contentParent=b.create("div",{id:this.id+"Content",role:"region","class":"sectionTable","aria-labelledby":this.titleNode.id},a,"last");
c.content&&this.setContent(c.content);this.hidden=c.hidden;if(typeof c.onExpandCollapse==="function")this._onExpandCollapse=c.onExpandCollapse;this._preferenceService=c.preferenceService;b.style(this._contentParent,"display","none");this._preferenceService?this._preferenceService.getPreferences("/window/views").then(b.hitch(this,function(a){a=a.get(this.id);if(a!==void 0)this.hidden=!a;this.hidden||b.style(this._contentParent,"display","block");this._updateExpandedState(!this.hidden,!1)})):(this.hidden||
b.style(this._contentParent,"display","block"),this._updateExpandedState(!this.hidden,!1));this._commandService=c.commandService;this._lastMonitor=0;this._loading={}}function e(a){this._section=a;this._id=++a._lastMonitor}f.prototype={setTitle:function(a){this.titleNode.innerHTML=a},setContent:function(a){this._contentParent.innerHTML=a},createProgressMonitor:function(){return new e(this)},_setMonitorMessage:function(a,b){this._progressNode.style.visibility="visible";this._loading[a]=b;var c="",d;
for(d in this._loading)c!==""&&(c+="\n"),c+=this._loading[d];this._progressNode.title=c},_monitorDone:function(a){delete this._loading[a];var a="",b;for(b in this._loading)a!==""&&(a+="\n"),a+=this._loading[b];this._progressNode.title=a;if(a==="")this._progressNode.style.visibility="hidden"},_changeExpandedState:function(){var a=new b.fx.Toggler({node:this._contentParent.id,showDuration:500,hideDuration:500,showFunc:b.fx.wipeIn,hideFunc:b.fx.wipeOut});this.hidden?(a.show(),this.hidden=!1):(a.hide(),
this.hidden=!0);this._updateExpandedState(!this.hidden,!0)},_updateExpandedState:function(a,c){var d=this.twistie,e=this.id;d&&(b.addClass(d,a?this._expandImageClass:this._collapseImageClass),b.removeClass(d,a?this._collapseImageClass:this._expandImageClass));this._preferenceService&&c&&this._preferenceService.getPreferences("/window/views").then(function(b){b.put(e,a)});this._onExpandCollapse&&this._onExpandCollapse(a,this)}};f.prototype.constructor=f;e.prototype={begin:function(a){this.status=a;
this._section._setMonitorMessage(this.id,a)},worked:function(a){this.status=a;this._section._setMonitorMessage(this.id,a)},done:function(a){this.status=a;this._section._monitorDone(this.id)}};e.prototype.constructor=e;return{Section:f}});
define("orion/explorer","i18n!orion/nls/messages,require,dojo,orion/treetable,orion/explorerNavHandler,orion/commands".split(","),function(b,c,a,d,f,e){var g={};g.Explorer=function(){function b(a,c,d){this.registry=a;this.renderer=d;this.selection=c;this.myTree=null}b.prototype={changedItem:function(b,c){a.hitch(this.myTree,this.myTree.refresh)(b,c,!0)},updateCommands:function(b){this.myTree&&a.hitch(this.myTree._renderer,this.myTree._renderer.updateCommands(b))},makeNewItemPlaceHolder:function(b,
c,d){b=this.getRow(b);if(d&&(b=b.childNodes[d],a.place("<br><span id='"+c+"placeHolderRow'></span>",b,"last"),d=a.byId(c+"placeHolderRow")))return{tempNode:d,refNode:d};return b&&(a.place("<tr id='"+c+"placeHolderRow'><td id='"+c+"placeHolderCol'></td>",b,"after"),d=a.byId(c+"placeHolderRow"),b=a.byId(c+"placeHolderCol"),d&&b)?{tempNode:d,refNode:b}:null},getRow:function(b){if(b=this.model.getId(b))return a.byId(b)},collapseAll:function(){for(var a=this._navHandler.getTopLevelNodes(),b=0;b<a.length;b++)this.myTree.collapse(a[b])},
expandAll:function(a){if(a)this._expandRecursively(a);else if(this._navHandler)for(var a=this._navHandler.getTopLevelNodes(),b=0;b<a.length;b++)this._expandRecursively(a[b])},_expandRecursively:function(a){if(this._navHandler&&this._navHandler.isExpandable(a)){var b=this;this.myTree.expand(a,function(){b.model.getChildren(a,function(a){if(!(a===void 0||a===null))for(var c=a.length,d=0;d<c;d++)b._expandRecursively(a[d])})})}},createTree:function(b,c,e){this.selection&&this.selection.setSelections([]);
this.getNavHandler()&&this.getNavHandler()._clearSelection();var g=b+"innerTree",h=a.byId(g);h&&a.destroy(h);if(c)c.rootId=g;this.model=c;this._parentId=b;this._treeOptions=e;if(!e||e&&!e.noSelection)this.selectionPolicy=e?e.selectionPolicy:"",this._navDict=new f.ExplorerNavDict(this.model);this.myTree=new d.TableTree({id:g,model:c,showRoot:!1,parent:b,labelColumnIndex:this.renderer.getLabelColumnIndex(),renderer:this.renderer,indent:e?e.indent:void 0,onCollapse:e?e.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(),b=[];if(a&&this.getNavDict())for(var c=a.getSelection(),d=0;d<c.length;d++){var e=a.getRowDiv(c[d]);e&&e.parentNode&&(e=this.getNavDict().getValue(this.model.getId(c[d])),e.model&&b.push(e.model))}this.selection.setSelections(b)}},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 f.ExplorerNavHandler(this,this._navDict,{setFocus:a&&a.setFocus,selectionPolicy:a?a.selectionPolicy:null});var b=this;this.model.getRoot(function(c){c instanceof Array?b.getNavHandler().refreshModel(b.getNavDict(),b.model,c):c.children&&c.children instanceof Array&&b.getNavHandler().refreshModel(b.getNavDict(),b.model,c.children);
a&&a.setFocus&&b.getNavHandler().cursorOn(null,!1,!1,!0)})}},_lastHash:null,checkbox:!1};return b}();g.createExplorerCommands=function(a,c){function d(a){return typeof a.getItemCount==="function"?a.getItemCount()>0?c?c(a):!0:!1:!1}var f=new e.Command({tooltip:b["Expand all"],imageClass:"core-sprite-expandAll",id:"orion.explorer.expandAll",groupId:"orion.explorerGroup",visibleWhen:function(a){return d(a)},callback:function(a){a.items.expandAll()}}),g=new e.Command({tooltip:b["Collapse all"],imageClass:"core-sprite-collapseAll",
id:"orion.explorer.collapseAll",groupId:"orion.explorerGroup",visibleWhen:function(a){return d(a)},callback:function(a){a.items.collapseAll()}});a.addCommand(f);a.addCommand(g)};g.ExplorerModel=function(){function b(a,c){this.rootPath=a;this.fetchItems=c}b.prototype={destroy:function(){},getRoot:function(b){this.fetchItems(this.rootPath).then(a.hitch(this,function(a){this.root=a;b(a)}))},getChildren:function(b,c){b.Children?c(b.Children):b.ChildrenLocation?this.fetchItems(b.ChildrenLocation).then(a.hitch(this,
function(a){b.Children=a;c(a)})):c([])},getId:function(a){if(a.Location===this.root.Location)return this.rootId;for(var a=a.Location.replace(/[\\\/]/g,""),b="",c=0;c<a.length;c++)b+=a[c].match(/[^\.\:\-\_0-9A-Za-z]/g)?a.charCodeAt(c):a[c];return b}};return b}();g.ExplorerFlatModel=function(){function b(a,c,d){this.rootPath=a;this.fetchItems=c;this.root=d}b.prototype=new g.ExplorerModel;b.prototype.getRoot=function(b){this.root?b(this.root):this.fetchItems(this.rootPath).then(a.hitch(this,function(a){this.root=
a;b(a)}))};b.prototype.getChildren=function(a,b){a===this.root?b(this.root):b([])};return b}();g.ExplorerRenderer=function(){function b(a,c){this.explorer=c;this._init(a);this._expandImageClass="core-sprite-openarrow";this._collapseImageClass="core-sprite-closedarrow";this._twistieSpriteClass="modelDecorationSprite"}b.prototype={getLabelColumnIndex:function(){return this.explorer.checkbox?1:0},initTable:function(b,c){this.tableTree=c;a.empty(b);a.addClass(b,"treetable");this.renderTableHeader(b)},
getActionsColumn:function(b,c,d,e,f){var d=d||"tool",g=this.explorer.registry.getService("orion.page.command"),h=document.createElement("td");h.id=c.id+"actionswrapper";e&&a.addClass(h,e);this.actionScopeId?g.renderCommands(this.actionScopeId,h,b,this.explorer,d,null,f&&this.explorer.getNavDict()?this.explorer.getNavDict().getGridNavHolder(b,!0):null):window.console.log("Warning, no action scope was specified.  No commands rendered.");return h},initCheckboxColumn:function(){if(this._useCheckboxSelection)return document.createElement("th")},
getCheckboxColumn:function(b,c){if(this._useCheckboxSelection){var d=document.createElement("td"),e=document.createElement("span");e.id=this.getCheckBoxId(c.id);a.addClass(e,"core-sprite-check selectionCheckmarkSprite");e.itemId=c.id;if(this.getCheckedFunc)e.checked=this.getCheckedFunc(b),this._highlightSelection&&a.toggleClass(c,"checkedRow",e.checked),a.toggleClass(e,"core-sprite-check_on",e.checked);d.appendChild(e);a.connect(e,"onclick",a.hitch(this,function(a){this.onCheck(c,a.target,a.target.checked?
!1:!0,!0)}));return d}},getCheckBoxId:function(a){return a+"selectedState"},onCheck:function(b,c,d,e,f){c.checked=d;a.toggleClass(c,"core-sprite-check_on",d);if(this.onCheckedFunc)this.onCheckedFunc(c.itemId,d,e);this.explorer.getNavHandler()&&f&&this.explorer.getNavHandler().setSelection(this.explorer.getNavDict().getValue(b.id).model,!0)},storeSelections:function(){if(this.explorer.getNavHandler()){var a=this.explorer.getNavHandler().getSelectionIds(),b=this._getUIStatePreferencePath();b&&window.sessionStorage&&
(window.sessionStorage[b+"selection"]=JSON.stringify(a))}},_restoreSelections:function(b){b=window.sessionStorage[b+"selection"];typeof b==="string"&&(b=b.length>0?JSON.parse(b):null);var c;if(b&&this.explorer.getNavDict()){var d=[];for(c=0;c<b.length;c++){var e=this.explorer.getNavDict().getValue(b[c]);if(e&&e.rowDomNode&&e.model&&(d.push(e.model),this._highlightSelection&&a.addClass(e.rowDomNode,"checkedRow"),e=a.byId(this.getCheckBoxId(e.rowDomNode.id))))e.checked=!0,a.addClass(e,"core-sprite-check_on")}this.explorer.selection&&
(this.explorer.selection.setSelections(d),this.explorer.getNavHandler()&&this.explorer.getNavHandler().refreshSelection())}},_storeExpansions:function(a){window.sessionStorage[a+"expanded"]=JSON.stringify(this._expanded)},_restoreExpansions:function(b){var c=!1,d=window.sessionStorage[b+"expanded"];typeof d==="string"&&(d=d.length>0?JSON.parse(d):null);var e;if(d)for(e=0;e<d.length;e++)a.byId(d[e])&&(this._expanded.push(d[e]),this.tableTree.expand(d[e],a.hitch(this,function(){this._restoreSelections(b)})),
c=!0);return!c},_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(b,c){var d=a.byId(this.expandCollapseImageId(b.id));d&&(a.addClass(d,c?this._expandImageClass:this._collapseImageClass),a.removeClass(d,c?this._collapseImageClass:this._expandImageClass))},getExpandImage:function(b,
c,d,e){var f=a.create("span",{id:this.expandCollapseImageId(b.id)},c,"last");a.addClass(f,this._twistieSpriteClass);a.addClass(f,this._collapseImageClass);d&&(c=a.create("span",null,c,"last"),a.addClass(c,e||"imageSprite"),a.addClass(c,d));f.onclick=a.hitch(this,function(){this.tableTree.toggle(b.id);if(this.tableTree.isExpanded(b.id))this._expanded.push(b.id);else for(var a in this._expanded)if(this._expanded[a]===b.id){this._expanded.splice(a,1);break}(a=this._getUIStatePreferencePath())&&window.sessionStorage&&
this._storeExpansions(a)});return f},render:function(b,c){a.addClass(c,"navRow");this.renderRow(b,c)},rowsChanged:function(){this._decorateAlternatingLines&&a.query(".treeTableRow").forEach(function(b,c){c%2?(a.addClass(b,"darkTreeTableRow"),a.removeClass(b,"lightTreeTableRow")):(a.addClass(b,"lightTreeTableRow"),a.removeClass(b,"darkTreeTableRow"))});this.explorer.selectionPolicy!=="cursorOnly"&&(this.explorer.refreshSelection(),this.explorer.initNavHandler())},updateCommands:function(){var b=this.explorer.registry;
a.query(".treeTableRow").forEach(function(c){var d=a.byId(c.id+"actionswrapper");a.empty(d);this.actionScopeId&&b.getService("orion.page.command").renderCommands(this.actionScopeId,d,c._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 b}();g.SelectionRenderer=function(){function b(a,c){this._init(a);this.explorer=c}b.prototype=new g.ExplorerRenderer;b.prototype.renderTableHeader=function(b){var c=
document.createElement("thead"),d=document.createElement("tr");a.addClass(c,"navTableHeading");this._useCheckboxSelection&&d.appendChild(this.initCheckboxColumn(b));for(var e=0,f=this.getCellHeaderElement(e);f;)f.innerHTML.length>0&&a.addClass(f,"navColumn"),d.appendChild(f),f=this.getCellHeaderElement(++e);c.appendChild(d);b.appendChild(c)};b.prototype.renderRow=function(b,c){a.style(c,"verticalAlign","baseline");a.addClass(c,"treeTableRow");var d=this.explorer.getNavDict();d&&(d.addRow(b,c),a.connect(c,
"onclick",a.hitch(this,function(a){if(this.explorer.getNavHandler())this.explorer.getNavHandler().onClick(b,a)})));if(d=this.getCheckboxColumn(b,c))a.addClass(d,"checkColumn"),c.appendChild(d);for(var d=0,e=this.getCellElement(d,b,c);e;)c.appendChild(e),d===0?this.getPrimColumnStyle?a.addClass(e,this.getPrimColumnStyle()):a.addClass(e,"navColumn"):this.getSecondaryColumnStyle?a.addClass(e,this.getSecondaryColumnStyle()):a.addClass(e,"secondaryColumn"),e=this.getCellElement(++d,b,c)};b.prototype.getCellHeaderElement=
function(){};b.prototype.getCellElement=function(){};return b}();g.SimpleFlatModel=function(){function a(b,c,d){this.items=b;this.getKey=d;this.idPrefix=c;this.root={children:b}}a.prototype=new g.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,""),b="",c=0;c<a.length;c++)b+=a[c].match(/[^\.\:\-\_0-9A-Za-z]/g)?a.charCodeAt(c):a[c];return this.idPrefix+b};a.prototype.getChildren=function(a,
b){a===this.root?b(this.items):b([])};return a}();return g});
define("orion/widgets/LoginDialog","i18n!orion/widgets/nls/messages,require,dojo,dijit,orion/util,dijit/TooltipDialog,text!orion/widgets/templates/LoginDialog.html".split(","),function(b,c,a,d){a.declare("orion.widgets.LoginDialog",[d.TooltipDialog],{widgetsInTemplate:!0,templateString:a.cache("orion","widgets/templates/LoginDialog.html"),constructor:function(){this.inherited(arguments);this.options=arguments[0]||{};this.authenticatedServices={};this.unauthenticatedServices={}},postCreate:function(){this.inherited(arguments);
var b=this;a.addClass(this.closeLink,"imageSprite");a.addClass(this.closeLink,"core-sprite-close");a.connect(this.closeLink,"onmouseover",this.closeLink,function(){b.closeLink.style.cursor="pointer"});a.connect(this.closeLink,"onmouseout",this.closeLink,function(){b.closeLink.style.cursor="default"});a.connect(this.closeLink,"onclick",function(){a.hitch(b,b.closeDialog)()})},setPendingAuthentication:function(a){for(var b in this.unauthenticatedServices)delete this.unauthenticatedServices[b].pending;
for(b in a)this.unauthenticatedServices[a[b].SignInKey]?this.unauthenticatedServices[a[b].SignInKey].pending=!0:this.authenticatedServices[a[b].SignInKey]?(this.unauthenticatedServices[a[b].SignInKey]=this.authenticatedServices[a[b].SignInKey],this.unauthenticatedServices[a[b].SignInKey].pending=!0,delete this.authenticatedServices[a[b].SignInKey]):this.unauthenticatedServices[a[b].SignInKey]={label:a[b].label,SignInLocation:a[b].SignInLocation,pending:!0};this.renderUnauthenticatedServices();this.renderAuthenticatedServices()},
authenticatedService:function(a){this.unauthenticatedServices[a]&&!this.unauthenticatedServices[a].authService&&(this.authenticatedServices[a]=this.unauthenticatedServices[a],delete this.unauthenticatedServices[a])},addUserItem:function(b,c,d,h){h?(this.unauthenticatedServices[b]&&delete this.unauthenticatedServices[b],this.authenticatedServices[b]={authService:c,label:d,data:h}):(this.authenticatedServices[b]&&delete this.authenticatedServices[b],this.unauthenticatedServices[b]=this.unauthenticatedServices[b]?
{authService:c,label:d,pending:this.unauthenticatedServices[b].pending}:{authService:c,label:d});a.hitch(this,this.renderAuthenticatedServices)();a.hitch(this,this.renderUnauthenticatedServices)()},renderAuthenticatedServices:function(){a.empty(this.authenticatedList);this.authenticated.style.display=this.isEmpty(this.authenticatedServices)?"none":"";var d=this,e=!0,g;for(g in this.authenticatedServices){if(!e){var h=a.create("tr",null,this.authenticatedList);a.create("td",{style:"padding: 0; margin 0;",
colspan:2,innerHTML:"<hr style='border-bottom: medium none; border-top: 1px solid #D3D3D3; color: gray; height: 0; margin: 2px;'>"},h)}var e=!1,h=a.create("tr",{className:"navTableHeading"}),i=this.authenticatedServices[g].authService,j=a.create("td",null,h,"only"),k=a.create("h2",null,j,"only");if(i)i.getAuthForm?a.hitch(d,function(a,b){i.getAuthForm(eclipse.globalCommandUtils.notifyAuthenticationSite).then(function(c){if(d.authenticatedServices[b].label)a.innerHTML=d.authenticatedServices[b].label+
"<br>";a.innerHTML+=d.getHostname(c)})})(k,g):k.innerHTML=this.authenticatedServices[g].label?this.authenticatedServices[g].label:g;else{var l=this.authenticatedServices[g].SignInLocation;if(this.authenticatedServices[g].label)k.innerHTML=this.authenticatedServices[g].label+"<br>";k.innerHTML+=this.getHostname(l)}a.addClass(j,"LoginWindowLeft");j=a.create("td",{style:"text-align: right"},h,"last");a.addClass(j,"LoginWindowRight");k=this.authenticatedServices[g].data;i=this.authenticatedServices[g].authService;
if(!i){a.place(h,this.authenticatedList,"last");break}k.Location&&a.create("a",{href:c.toUrl("profile/user-profile.html")+"#"+k.Location,innerHTML:b.Profile},j,"last");a.place(document.createTextNode(" "),j,"last");if(i.logout){var m=a.create("a",{innerHTML:b["Sign out"]},j,"last");a.connect(m,"onmouseover",m,function(){m.style.cursor="pointer"});a.connect(m,"onmouseout",m,function(){m.style.cursor="default"});a.connect(m,"onclick",a.hitch(d,function(b,c){return function(){b.logout().then(a.hitch(d,
function(){this.addUserItem(c,b,this.authenticatedServices[c].label);this.isSingleService()&&this.closeDialog();localStorage.removeItem(c)}))}})(i,g))}a.place(h,this.authenticatedList,"last");j=b["N/A"];k&&k.lastlogintimestamp&&(j=a.date.locale.format(new Date(k.lastlogintimestamp),{formatLength:"short"}));k=k.Name&&k.Name.replace(/^\s+|\s+$/g,"")!==""?k.Name:k.login;h=a.create("tr");j=k.length>40?a.create("td",{innerHTML:k.substring(0,30)+"... "+b["logged in since "]+j,colspan:2,title:k+" "+b["logged in since "]+
j},h,"only"):a.create("td",{innerHTML:k+" "+b["logged in since "]+j,colspan:2},h,"only");a.addClass(j,"LoginWindowLeft");a.addClass(j,"LoginWindowRight");a.addClass(j,"LoginWindowComment");a.place(h,this.authenticatedList,"last")}},renderUnauthenticatedServices:function(){this.emptyListInfo.style.display=this.unauthenticatedServices.length===0&&this.authenticatedServices.length===0?"":"none";a.empty(this.otherUnauthenticatedList);var f=this;this.otherUnauthenticated.style.display=this.isEmpty(this.unauthenticatedServices)?
"none":"";var e=!0,g;for(g in this.unauthenticatedServices){if(!e||!this.isEmpty(this.authenticatedServices)){var h=a.create("tr",null,this.otherUnauthenticatedList);a.create("td",{style:"padding: 0; margin 0;",colspan:2,innerHTML:"<hr style='border-bottom: medium none; border-top: 1px solid #D3D3D3; color: gray; height: 0; margin: 2px;'>"},h)}var e=!1,h=a.create("tr",{className:"navTableHeading"}),i=a.create("td",null,h,"only");a.addClass(i,"LoginWindowLeft");var j=a.create("h2",null,i,"only"),i=
a.create("td",{style:"text-align: right"},h,"last");a.addClass(i,"LoginWindowRight");var k=this.unauthenticatedServices[g].authService,l=eclipse.globalCommandUtils.notifyAuthenticationSite,m=l+(l.indexOf("?")===-1?"?":"&")+"key="+g;if(k)if(k.getAuthForm)a.hitch(f,function(c,d){k.getAuthForm(m).then(function(e){a.create("a",{target:"_blank",href:e,innerHTML:b["Sign in"]},c,"last");if(f.unauthenticatedServices[d].label)j.innerHTML=f.unauthenticatedServices[d].label+"<br>";j.innerHTML+=f.getHostname(e)})})(i,
g);else{if(k.login){a.place(document.createTextNode(this.unauthenticatedServices[g].label?this.unauthenticatedServices[g].label:g),j,"only");var n=a.create("a",{innerHTML:b["Sign in"],style:"cursor: hand;"},i,"last");a.connect(n,"onmouseover",n,function(){n.style.cursor="pointer"});a.connect(n,"onmouseout",n,function(){n.style.cursor="default"});a.connect(n,"onclick",a.hitch(f,function(a){return function(){a.login(m).then(function(){f.isSingleService()&&d.popup.hide&&d.popup.hide(f);d.popup.close(f)})}})(k))}}else{l=
this.unauthenticatedServices[g].SignInLocation;l.indexOf("?")===-1?a.create("a",{target:"_blank",href:l+"?redirect="+encodeURIComponent(m),innerHTML:b["Sign in"]},i,"last"):a.create("a",{target:"_blank",href:l+"&redirect="+encodeURIComponent(m),innerHTML:b["Sign in"]},i,"last");if(this.unauthenticatedServices[g].label)j.innerHTML=this.unauthenticatedServices[g].label+"<br>";j.innerHTML+=this.getHostname(l)}a.place(h,this.otherUnauthenticatedList,"last");this.unauthenticatedServices[g].pending&&(h=
a.create("tr"),i=a.create("td",{innerHTML:b["Authentication required!"],style:"padding-left: 10px",colspan:2},h,"only"),a.addClass(i,"LoginWindowLeft"),a.addClass(i,"LoginWindowRight"),a.create("img",{src:c.toUrl("images/warning.gif"),style:"padding-right: 4px; vertical-align: bottom; padding-bottom: 2px;"},i,"first"),a.place(h,this.otherUnauthenticatedList,"last"))}},isSingleService:function(){return this.length(this.unauthenticatedServices)+this.length(this.authenticatedServices)===1},isEmpty:function(a){for(var b in a)if(a.hasOwnProperty(b))return!1;
return!0},length:function(a){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b},getHostname:function(a){var b=document.createElement("a");b.href=a;a=b.href;return a.match(/^(?:f|ht)tp(?:s)?:\/\/([^/]+)/im)[1].toString()},closeDialog:function(){d.popup.hide&&d.popup.hide(this);d.popup.close(this)}})});
define("orion/git/widgets/CommitTooltipDialog","i18n!git/nls/gitmessages,require,dojo,dijit,orion/util,dijit/TooltipDialog".split(","),function(b,c,a,d){a.declare("orion.git.widgets.CommitTooltipDialog",[d.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(c){var d=a.create("div",{style:"padding:10px; max-width:480px"},
this.containerNode),g=c.Message.split(/(\r?\n|$)/)[0];link=a.create("a",{"class":"gitMainDescription",href:"/git/git-commit.html#"+c.Location+"?page=1&pageSize=1"},d);a.place(document.createTextNode(g),link);a.create("div",{style:"padding-top:15px"},d);a.create("span",{"class":"gitSecondaryDescription",innerHTML:b[" commit: "]+c.Name},d);c.Parents&&c.Parents.length>0&&(a.create("div",null,d),a.place(document.createTextNode(b["parent: "]),d),link=a.create("a",{"class":"gitSecondaryDescription",href:"/git/git-commit.html#"+
c.Parents[0].Location+"?page=1&pageSize=1"},d),a.place(document.createTextNode(c.Parents[0].Name),link));a.create("div",{style:"padding-top:15px"},d);if(c.AuthorImage){var g=a.create("div",{"class":"git-author-icon-small",style:"margin-bottom:30px"},d),h=new Image;h.src=c.AuthorImage;h.name=c.AuthorName;h.width=35;h.height=35;a.place(h,g,"first")}a.create("span",{"class":"gitSecondaryDescription",innerHTML:a.string.substitute(b[" authored by ${0} {${1}) on ${2}"],[c.AuthorName,c.AuthorEmail,a.date.locale.format(new Date(c.Time),
{formatLength:"short"})])},d);a.create("div",null,d);a.create("span",{"class":"gitSecondaryDescription",innerHTML:a.string.substitute(b["committed by 0 (1)"],[c.CommitterName,c.CommitterEmail])},d)},_onBlur:function(){this.inherited(arguments);d.popup.hide&&d.popup.hide(this);d.popup.close(this)}})});
define("dijit/Dialog","dojo,dijit,text!dijit/templates/Dialog.html,dojo/dnd/move,dojo/dnd/TimedMoveable,dojo/fx,dojo/window,dijit/_Widget,dijit/_Templated,dijit/_CssStateMixin,dijit/form/_FormMixin,dijit/_DialogMixin,dijit/DialogUnderlay,dijit/layout/ContentPane,i18n!dijit/nls/common,dijit/TooltipDialog".split(","),function(b,c){b.declare("dijit._DialogBase",[c._Templated,c.form._FormMixin,c._DialogMixin,c._CssStateMixin],{templateString:b.cache("dijit","templates/Dialog.html"),baseClass:"dijitDialog",
cssStateNodes:{closeButtonNode:"dijitDialogCloseIcon"},attributeMap:b.delegate(c._Widget.prototype.attributeMap,{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}],"aria-describedby":""}),open:!1,duration:c.defaultDuration,refocus:!0,autofocus:!0,_firstFocusItem:null,_lastFocusItem:null,doLayout:!1,draggable:!0,"aria-describedby":"",postMixInProperties:function(){var a=b.i18n.getLocalization("dijit","common");b.mixin(this,a);this.inherited(arguments)},postCreate:function(){b.style(this.domNode,
{display:"none",position:"absolute"});b.body().appendChild(this.domNode);this.inherited(arguments);this.connect(this,"onExecute","hide");this.connect(this,"onCancel","hide");this._modalconnects=[]},onLoad:function(){this._position();this.autofocus&&c._DialogLevelManager.isTop(this)&&(this._getFocusItems(this.domNode),c.focus(this._firstFocusItem));this.inherited(arguments)},_endDrag:function(a){if(a&&a.node&&a.node===this.domNode)this._relativePosition=b.position(a.node)},_setup:function(){var a=
this.domNode;this.titleBar&&this.draggable?(this._moveable=b.isIE==6?new b.dnd.TimedMoveable(a,{handle:this.titleBar}):new b.dnd.Moveable(a,{handle:this.titleBar,timeout:0}),this._dndListener=b.subscribe("/dnd/move/stop",this,"_endDrag")):b.addClass(a,"dijitDialogFixed");this.underlayAttrs={dialogId:this.id,"class":b.map(this["class"].split(/\s/),function(a){return a+"_underlay"}).join(" ")}},_size:function(){this._checkIfSingleChild();if(this._singleChild){if(this._singleChildOriginalStyle)this._singleChild.domNode.style.cssText=
this._singleChildOriginalStyle;delete this._singleChildOriginalStyle}else b.style(this.containerNode,{width:"auto",height:"auto"});var a=b._getMarginSize(this.domNode),c=b.window.getBox();if(a.w>=c.w||a.h>=c.h){var f=Math.min(a.w,Math.floor(c.w*0.75)),a=Math.min(a.h,Math.floor(c.h*0.75));this._singleChild&&this._singleChild.resize?(this._singleChildOriginalStyle=this._singleChild.domNode.style.cssText,this._singleChild.resize({w:f,h:a})):b.style(this.containerNode,{width:f+"px",height:a+"px",overflow:"auto",
position:"relative"})}else this._singleChild&&this._singleChild.resize&&this._singleChild.resize()},_position:function(){if(!b.hasClass(b.body(),"dojoMove")){var a=this.domNode,c=b.window.getBox(),f=this._relativePosition,e=f?null:b._getBorderBox(a);b.style(a,{left:Math.floor(c.l+(f?f.x:(c.w-e.w)/2))+"px",top:Math.floor(c.t+(f?f.y:(c.h-e.h)/2))+"px"})}},_onKey:function(a){if(a.charOrCode){var d=b.keys,f=a.target;a.charOrCode===d.TAB&&this._getFocusItems(this.domNode);var e=this._firstFocusItem==this._lastFocusItem;
if(f==this._firstFocusItem&&a.shiftKey&&a.charOrCode===d.TAB)e||c.focus(this._lastFocusItem),b.stopEvent(a);else if(f==this._lastFocusItem&&a.charOrCode===d.TAB&&!a.shiftKey)e||c.focus(this._firstFocusItem),b.stopEvent(a);else{for(;f;){if(f==this.domNode||b.hasClass(f,"dijitPopup"))if(a.charOrCode==d.ESCAPE)this.onCancel();else return;f=f.parentNode}if(a.charOrCode!==d.TAB)b.stopEvent(a);else if(!b.isOpera)try{this._firstFocusItem.focus()}catch(g){}}}},show:function(){if(!this.open){this._started||
this.startup();if(!this._alreadyInitialized)this._setup(),this._alreadyInitialized=!0;this._fadeOutDeferred&&this._fadeOutDeferred.cancel();this._modalconnects.push(b.connect(window,"onscroll",this,"layout"));this._modalconnects.push(b.connect(window,"onresize",this,function(){var a=b.window.getBox();if(!this._oldViewport||a.h!=this._oldViewport.h||a.w!=this._oldViewport.w)this.layout(),this._oldViewport=a}));this._modalconnects.push(b.connect(this.domNode,"onkeypress",this,"_onKey"));b.style(this.domNode,
{opacity:0,display:""});this._set("open",!0);this._onShow();this._size();this._position();var a;this._fadeInDeferred=new b.Deferred(b.hitch(this,function(){a.stop();delete this._fadeInDeferred}));a=b.fadeIn({node:this.domNode,duration:this.duration,beforeBegin:b.hitch(this,function(){c._DialogLevelManager.show(this,this.underlayAttrs)}),onEnd:b.hitch(this,function(){this.autofocus&&c._DialogLevelManager.isTop(this)&&(this._getFocusItems(this.domNode),c.focus(this._firstFocusItem));this._fadeInDeferred.callback(!0);
delete this._fadeInDeferred})}).play();return this._fadeInDeferred}},hide:function(){if(this._alreadyInitialized){this._fadeInDeferred&&this._fadeInDeferred.cancel();var a;this._fadeOutDeferred=new b.Deferred(b.hitch(this,function(){a.stop();delete this._fadeOutDeferred}));a=b.fadeOut({node:this.domNode,duration:this.duration,onEnd:b.hitch(this,function(){this.domNode.style.display="none";c._DialogLevelManager.hide(this);this.onHide();this._fadeOutDeferred.callback(!0);delete this._fadeOutDeferred})}).play();
if(this._scrollConnected)this._scrollConnected=!1;b.forEach(this._modalconnects,b.disconnect);this._modalconnects=[];this._relativePosition&&delete this._relativePosition;this._set("open",!1);return this._fadeOutDeferred}},layout:function(){this.domNode.style.display!="none"&&(c._underlay&&c._underlay.layout(),this._position())},destroy:function(){this._fadeInDeferred&&this._fadeInDeferred.cancel();this._fadeOutDeferred&&this._fadeOutDeferred.cancel();this._moveable&&this._moveable.destroy();this._dndListener&&
b.unsubscribe(this._dndListener);b.forEach(this._modalconnects,b.disconnect);c._DialogLevelManager.hide(this);this.inherited(arguments)}});b.declare("dijit.Dialog",[c.layout.ContentPane,c._DialogBase],{});c._DialogLevelManager={show:function(a,d){var f=c._dialogStack;f[f.length-1].focus=c.getFocus(a);var e=c._underlay;!e||e._destroyed?e=c._underlay=new c.DialogUnderlay(d):e.set(a.underlayAttrs);var g=f[f.length-1].dialog?f[f.length-1].zIndex+2:950;f.length==1&&e.show();b.style(c._underlay.domNode,
"zIndex",g-1);b.style(a.domNode,"zIndex",g);f.push({dialog:a,underlayAttrs:d,zIndex:g})},hide:function(a){var d=c._dialogStack;if(d[d.length-1].dialog==a){d.pop();var f=d[d.length-1];d.length==1?c._underlay._destroyed||c._underlay.hide():(b.style(c._underlay.domNode,"zIndex",f.zIndex-1),c._underlay.set(f.underlayAttrs));if(a.refocus){d=f.focus;if(!d||f.dialog&&!b.isDescendant(d.node,f.dialog.domNode))f.dialog._getFocusItems(f.dialog.domNode),d=f.dialog._firstFocusItem;try{c.focus(d)}catch(e){}}}else f=
b.indexOf(b.map(d,function(a){return a.dialog}),a),f!=-1&&d.splice(f,1)},isTop:function(a){var b=c._dialogStack;return b[b.length-1].dialog==a}};c._dialogStack=[{dialog:null,focus:null,underlayAttrs:null}];return c.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(b,c,a){c.declare("orion.widgets.NewItemDialog",[a.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:!0,templateString:c.cache("orion","widgets/templates/NewItemDialog.html"),constructor:function(a){this.options=
a||{};this.options.advanced=this.options.advanced||!1},postMixInProperties:function(){this.inherited(arguments);this.itemNameLabelText=this.options.label||b["Name:"]},postCreate:function(){this.inherited(arguments);this.options.advanced?(this.itemAdvancedInfo.style.display="table-row",this.itemAdvancedInfo1.style.display="table-row",c.connect(this.itemURL,"onkeyup",null,c.hitch(this,this.onURLChange))):(this.itemAdvancedInfo.style.display="none",this.itemAdvancedInfo1.style.display="none")},execute:function(){var a,
b;this.newItemButton.focus();this.options.advanced&&(a=this.itemURL.value.replace(/^\s+|\s+$/g,""),b=this.createCheckbox.get("disabled")?!1:this.createCheckbox.get("checked"));this.options.func(this.itemName.value,a&&a!==""?a:void 0,b)},onURLChange:function(){var a=this.itemURL.value;a.match(/^file:\/\//)?this.createCheckbox.set("disabled",!1):a.match(/^[a-zA-Z][a-zA-Z]+:\/\/.+/)?this.createCheckbox.set("disabled",!0):this.createCheckbox.set("disabled",!1)}})});
define("orion/widgets/DirectoryPrompterDialog","i18n!orion/widgets/nls/messages,dojo,dijit,orion/util,dijit/Dialog,dijit/form/Button,orion/widgets/ExplorerTree,orion/widgets/_OrionDialogMixin,text!orion/widgets/templates/DirectoryPrompterDialog.html".split(","),function(b,c,a,d){c.declare("orion.widgets.DirectoryPrompterDialog",[a.Dialog,orion.widgets._OrionDialogMixin],{treeWidget:null,treeRoot:{},widgetsInTemplate:!0,templateString:c.cache("orion","widgets/templates/DirectoryPrompterDialog.html"),
constructor:function(){this.inherited(arguments);this.options=arguments[0]||{}},postMixInProperties:function(){this.inherited(arguments);this.title=this.options.title||b["Choose a Folder"];this.buttonOk=b.OK;this.message=this.options.message||""},postCreate:function(){this.inherited(arguments);this.loadFolderList("/");this.message||c.style(this.messageCell,{display:"none"})},loadFolderList:function(a){a=d.makeRelative(a);this.treeRoot.Location=a;this.options.fileClient.loadWorkspace(a).then(c.hitch(this,
function(a){for(var b in a)this.treeRoot[b]=a[b];d.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();
c.byId(this.treeContentPane.id).appendChild(this.treeWidget.domNode)},execute:function(){var a=this.treeWidget.getSelectedItems();this.onHide();this.options.func(a[0])}});orion.widgets.DirectoryTreeModel=function(){function a(b,c,d){this.registry=b;this.root=c;this.fileClient=d}a.prototype={destroy:function(){},getRoot:function(a){a(this.root)},mayHaveChildren:function(){return!0},getChildren:function(a,b){a.children?b(a.children):a.Directory!==void 0&&a.Directory===!1?b([]):a.Location?this.fileClient.fetchChildren(a.ChildrenLocation).then(c.hitch(this,
function(c){for(var f=[],j=0;j<c.length;j++)c[j].Directory&&f.push(c[j]);d.processNavigatorParent(a,f);b(f)})):b([])},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(b,c,a){localStorage.getItem("orion.sftpConnections")||localStorage.setItem("orion.sftpConnections",JSON.stringify({identifier:"name",label:b.name,items:[]}));window.sftpConnectionStoreData=JSON.parse(localStorage.getItem("orion.sftpConnections"));
c.declare("orion.widgets.SFTPConnectionDialog",[a.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:!0,templateString:c.cache("orion","widgets/templates/SFTPConnectionDialog.html"),constructor:function(){this.inherited(arguments);this.options=arguments[0]||{}},postMixInProperties:function(){this.inherited(arguments);this.title="SFTP Transfer";this.sftpHostLabelText=b["Remote host:"];this.sftpPathLabelText=b["Remote path:"];this.sftpUserLabelText=b["User name:"];this.sftpPasswordLabelText=
b["Password:"];this.buttonOk=b["Start Transfer"];this.locationLabelText=b["Location:"];sftpConnectionStoreData=JSON.parse(localStorage.getItem("orion.sftpConnections"))},postCreate:function(){this.inherited(arguments);c.connect(this.addSFTPConnection,"onClick",null,c.hitch(this,this.onAddConnection))},execute:function(){var a=this.sftpConnectionList.value.split("@");if(a.length===2){var b=a[0],c=a[1].indexOf("/");if(!(c<=0)){var g=a[1].substring(0,c),a=a[1].substring(c);this.options.func(g,a,b,this.sftpPassword.value,
this._computeOverwriteValue())}}},_computeOverwriteValue:function(){if(this.overwriteCancel.checked)return"no-overwrite";else if(this.overwriteOlder.checked)return"overwrite-older";return""},onAddConnection:function(){for(var a={name:this.sftpUser.value+"@"+this.sftpHost.value+this.sftpPath.value},b=JSON.parse(localStorage.getItem("orion.sftpConnections")),c=!1,g=0;g<b.items.length;g++)if(b.items[g].name===a.name){c=!0;break}c||(b.items.unshift(a),localStorage.setItem("orion.sftpConnections",JSON.stringify(b)),
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(b,c,a,d){return a.declare("orion.widgets.OpenResourceDialog",[d.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:!0,templateString:a.cache("orion","widgets/templates/OpenResourceDialog.html"),SEARCH_DELAY:500,timeoutId:null,time:null,options:null,searcher:null,
searchRenderer:null,favService:null,constructor:function(){this.inherited(arguments);this.timeoutId=null;this.time=0;this.searcher=(this.options=arguments[0])&&this.options.searcher;if(!this.searcher)throw Error("Missing required argument: searcher");this.searchRenderer=this.options&&this.options.searchRenderer;if(!this.searchRenderer||typeof this.searchRenderer.makeRenderFunction!=="function")throw Error(b["Missing required argument: searchRenderer"]);this.favService=this.options.favoriteService;
if(!this.favService)throw Error(b["Missing required argument: favService"]);},postMixInProperties:function(){this.options.title=this.options.title||b["Find File Named"];this.selectFile=b["Type the name of a file to open (? = any character, * = any string):"];this.searchPlaceHolder=b.Search;this.inherited(arguments)},postCreate:function(){this.inherited(arguments);a.connect(this.resourceName,"onChange",this,function(){this.time=+new Date;clearTimeout(this.timeoutId);this.timeoutId=setTimeout(a.hitch(this,
this.checkSearch),0)});a.connect(this.resourceName,"onKeyPress",this,function(b){b.keyCode===a.keys.ENTER&&this.results&&(b=a.query("a",this.results),b.length>0&&(window.open(b[0].href),this.hide()))});a.connect(this,"onKeyPress",this,function(b){var c,g,h,i,j;if(b.keyCode===a.keys.DOWN_ARROW||b.keyCode===a.keys.UP_ARROW)g=a.query("a",this.results),c=a.query("a",this.favresults),h=d.getFocus(),j=g.indexOf(h.node),i=c.indexOf(h.node),b.keyCode===a.keys.DOWN_ARROW?i>=0?d.focus(i<c.length-1?c[i+1]:g.length>
0?g[0]:c[0]):j>=0?d.focus(j<g.length-1?g[j+1]:c.length>0?c[0]:g[0]):(g.length>0||c.length>0)&&d.focus(-1<c.length-1?c[0]:g[0]):i>=0?(h=this.resourceName&&this.resourceName.get("textbox"),d.focus(i>0?c[i-1]:h)):j>=0?(h=this.resourceName&&this.resourceName.get("textbox"),d.focus(j>0?g[j-1]:c.length>0?c[c.length-1]:h)):g.length>0?d.focus(g[g.length-1]):c.length>0&&d.focus(c[c.length-1]),a.stopEvent(b)});a.connect(this,"onMouseUp",function(a){a.target.focus()});this.populateFavorites()},populateFavorites:function(){a.place("<div>"+
b["Populating favorites&#x2026;"]+"</div>",this.favresults,"only");this.favService.getFavorites().then(this.showFavorites());this.favService.addEventListener("favoritesChanged",this.showFavorites())},showFavorites:function(){var b=this;return function(c){if(c.navigator)c=c.navigator;b.searchRenderer.makeRenderFunction(b.favresults,!1,a.hitch(b,b.decorateResult),b.showFavoritesImage)(c);c&&c.length>0&&a.place("<hr/>",b.favresults,"last")}},showFavoritesImage:function(d){var e=new Image;a.addClass(e,
"modelDecorationSprite");a.addClass(e,"core-sprite-makeFavorite");e.src=c.toUrl("images/none.png");e.title=b.Favorite;d.appendChild(e);a.style(e,"verticalAlign","middle")},checkSearch:function(){clearTimeout(this.timeoutId);var b=(new Date).getTime();b-this.time>this.SEARCH_DELAY?(this.time=b,this.doSearch()):this.timeoutId=setTimeout(a.hitch(this,"checkSearch"),50)},doSearch:function(){var c=this.resourceName&&this.resourceName.get("value"),d=this.showFavorites();this.favService.queryFavorites(c).then(function(a){d(a)});
if(c){a.place("<div>"+b["Searching&#x2026;"]+"</div>",this.results,"only");var g=this;setTimeout(function(){var b=g.searcher.createSearchQuery(null,c,"NameLower"),d=g.searchRenderer.makeRenderFunction(g.results,!1,a.hitch(g,g.decorateResult));g.searcher.search(b,!1,d)},0)}},decorateResult:function(b){var c=this;a.query("a",b).forEach(function(b){a.connect(b,"onmouseup",function(b){!a.mouseButtons.isMiddle(b)&&!a.isCopyKey(b)&&c.hide()});a.connect(b,"onkeyup",c,function(b){b.keyCode===a.keys.ENTER&&
c.hide()})})},show:function(){this.inherited(arguments);this.resourceName.focus()},onHide:function(){clearTimeout(this.timeoutId);this.inherited(arguments)}})});
define("orion/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(b,c,a,d){a.declare("orion.git.widgets.CloneGitRepositoryDialog",[d.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:b["Clone Git Repository"];this.gitUrlLabelText=b["Repository URL:"];this.gitPathLabelText=b["Existing directory:"];this.gitNameLabelText=b["New folder:"];this.advancedShown=!1},postCreate:function(){var b=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(){b.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 d=new orion.widgets.DirectoryPrompterDialog({title:b["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='"+c.toUrl("navigate/table.html")+"#"+a.ChildrenLocation+"'>"+a.Name+"</a>";a.parent&&!a.parent.Projects;)this.shownGitPath.innerHTML="<a href='"+c.toUrl("navigate/table.html")+"#"+a.parent.ChildrenLocation+"'>"+a.parent.Name+"</a>/"+this.shownGitPath.innerHTML,a=a.parent}})});d.startup();d.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(b,c,a){c.declare("orion.git.widgets.AddRemoteDialog",[a.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:!0,templateString:c.cache("orion","git/widgets/templates/AddRemoteDialog.html"),constructor:function(){this.inherited(arguments);this.options=arguments[0]||{}},postMixInProperties:function(){this.inherited(arguments);
this.title=b["Add Remote"];this.gitRemoteLabelText=b["Remote Name:"];this.gitRemoteURILabelText=b["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(b,c,a){c.declare("orion.git.widgets.GitCredentialsDialog",[a.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:!0,templateString:c.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||b["Git Credentials"];this.gitUrlLabelText=b["Repository URL:"];this.gitSshUsernameLabelText=b["Username:"];this.gitSshPasswordLabelText=b["Ssh password:"];this.gitPrivateKeyLabelText=b["Private key:"];this.gitPassphraseLabelText=b["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||c.style(this.gitSshUsernameRow,"display","none");this.options.password||c.style(this.gitSshPasswordRow,"display","none");this.options.privatekey||c.style(this.gitPrivateKeyRow,"display","none");this.options.passphrase||(c.style(this.gitPassphraseRow,"display","none"),c.style(this.gitPassphraseRow_1,
"display","none"));if(this.options.errordata&&this.options.errordata.Url)c.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,c.style(this.gitSshUsernameRow,"display","none"),setTimeout(function(){a.gitSshPassword.focus()},400);c.connect(this.gitSshPassword,"onfocus",null,c.hitch(this,function(){this.isSshPassword.checked=
!0}));c.connect(this.gitPrivateKey,"onfocus",null,c.hitch(this,function(){this.isPrivateKey.checked=!0}));c.connect(this.gitPassphrase,"onfocus",null,c.hitch(this,function(){this.isPrivateKey.checked=!0}))},execute:function(){if(this._sshService){var a=this;this._sshService.getKnownHosts().then(function(b){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:b});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(b,c,a,d,f){c.declare("orion.git.widgets.RemotePrompterDialog",[a.Dialog,orion.widgets._OrionDialogMixin],{treeWidget:null,treeRoot:{},widgetsInTemplate:!0,templateString:c.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||b["Choose a Folder"];this.newBranchText=b["New Branch:"];this.buttonOk=b.OK},postCreate:function(){this.inherited(arguments);this.loadRemoteChildren(this.treeRoot);c.connect(this.newBranch,"onchange",c.hitch(this,this.validate));if(this.options.hideNewBranch)this.newBranchSection.style.display="none"},
loadRemoteChildren:function(a){this.treeRoot=a;this.createTree(new e(this.gitClient,null,this.gitClient.getGitClone,this.treeRoot))},createTree:function(a){var d=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+b[" [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"}}),e=this;this.treeWidget._inheritedSelectNode=this.treeWidget._selectNode;this.treeWidget._selectNode=function(a){d._inheritedSelectNode(a);e.newBranch.disabled=a.item&&a.item.Type==="Remote"?!1:!0;c.hitch(e,e.validate)()};this.treeWidget.startup();c.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 e=function(){function a(b,c,d,e){this.gitClient=b;this.rootPath=c;this.fetchItems=d;this.root=e?e:null}a.prototype=new f.ExplorerModel;a.prototype.getRoot=function(a){this.root?a(this.root):this.fetchItems(this.rootPath).then(c.hitch(this,function(b){this.root=b;a(b)}))};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,b){a.children=[];if(a.Children){for(var d=0;d<a.Children.length;d++)a.Children[d].parent=a,a.children[d]=a.Children[d];b(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}],b(a.children)):a.GroupNode?this.gitClient.getGitBranch(a.Location).then(c.hitch(this,function(c){a.children=c.Children;for(var d=0;d<c.Children.length;d++)c.Children[d].parent=a;b(c.Children)})):a.Type==="Remote"&&this.gitClient.getGitBranch(a.Location).then(c.hitch(this,function(c){a.children=c.Children;for(var d=0;d<c.Children.length;d++)c.Children[d].parent=a;b(c.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(b,c,a,d){return a.declare("orion.git.widgets.OpenCommitDialog",[d.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||b["Find Commit"];this.selectFile=
b["Type the commit name (sha1):"];this.searchPlaceHolder=b.Search;this.inherited(arguments)},postCreate:function(){this.inherited(arguments);a.connect(this.resourceName,"onChange",this,function(){this.time=+new Date;clearTimeout(this.timeoutId);this.timeoutId=setTimeout(a.hitch(this,this.checkSearch),0)});a.connect(this.resourceName,"onKeyPress",this,function(b){b.keyCode===a.keys.ENTER&&this.results&&(b=a.query("a",this.results),b.length>0&&(window.open(b[0].href),this.hide()))});a.connect(this,
"onMouseUp",function(a){a.target.focus()});this.resourceName.set("value",this.commitName)},checkSearch:function(){clearTimeout(this.timeoutId);var b=(new Date).getTime();b-this.time>this.SEARCH_DELAY?(this.time=b,this.doSearch()):this.timeoutId=setTimeout(a.hitch(this,"checkSearch"),50)},_findCommitLocation:function(b,c,d){var h=this;d==null&&(d=new a.Deferred);b.length>0?h.serviceRegistry.getService("orion.git.provider").doGitLog("/gitapi/commit/"+c+b[0].ContentLocation+"?page=1&pageSize=1").then(function(a){d.callback(a.Children[0])},
function(){h._findCommitLocation(b.slice(1),c,d)}):d.errback();return d},doSearch:function(){var c=this.resourceName&&this.resourceName.get("value");if(c){a.place("<div>"+b["Searching&#x2026;"]+"</div>",this.results,"only");var d=this;this.serviceRegistry.getService("orion.page.message").setProgressMessage(b["Looking for the commit"]);this._findCommitLocation(this.repositories,c).then(function(b){a.empty(d.results);d.displayCommit(b,d.results)},function(){a.place("<div>No commits found</div>",d.results,
"only");d.serviceRegistry.getService("orion.page.message").setProgressMessage("")})}},displayCommit:function(c,d){var g=a.create("div",{style:"padding:10px; max-width:480px"},d),h=c.Message.split(/(\r?\n|$)/)[0],i=a.create("a",{"class":"gitMainDescription",href:"/git/git-commit.html#"+c.Location+"?page=1&pageSize=1"},g);a.place(document.createTextNode(h),i);a.connect(i,"onclick",i,a.hitch(this,function(){this.hide()}));a.create("div",{style:"padding-top:15px"},g);a.create("span",{"class":"gitSecondaryDescription",
innerHTML:b[" commit: "]+c.Name},g);c.Parents&&c.Parents.length>0&&(a.create("div",null,g),a.place(document.createTextNode(b["parent: "]),g),h=a.create("a",{"class":"gitSecondaryDescription",href:"/git/git-commit.html#"+c.Parents[0].Location+"?page=1&pageSize=1"},g),a.place(document.createTextNode(c.Parents[0].Name),h),a.connect(h,"onclick",h,a.hitch(this,function(){this.hide()})));a.create("div",{style:"padding-top:15px"},g);if(c.AuthorImage)h=a.create("span",{"class":"git-author-icon-small",style:"margin-bottom:30px"},
g),i=new Image,i.src=c.AuthorImage,i.name=c.AuthorName,i.width=35,i.height=35,a.place(i,h,"first");a.create("span",{"class":"gitSecondaryDescription",innerHTML:a.string.substitute(b[" authored by ${0} (${1})) on ${2}"],[c.AuthorName,c.AuthorEmail,a.date.locale.format(new Date(c.Time),{formatLength:"short"})])},g);a.create("div",null,g);a.create("span",{"class":"gitSecondaryDescription",innerHTML:a.string.substitute(b["committed by 0 (1)"],[c.CommitterName,c.CommitterEmail])},g)},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(b,c,a){c.declare("orion.git.widgets.CommitDialog",[a.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:!0,templateString:c.cache("orion","git/widgets/templates/CommitDialog.html"),constructor:function(){this.inherited(arguments);this.options=arguments[0]||{}},postMixInProperties:function(){this.inherited(arguments);
this.title=b["Commit Changes"];this.commitMessageLabelText=b["Message:"];this.amendLabelText=b["Amend:"];this.committerNameLabelText=b["Committer Name:"];this.committerEmailLabelText=b["Committer Email:"];this.authorNameLabelText=b["Author Name:"];this.authorEmailLabelText=b["Author Email:"]},postCreate:function(){this.inherited(arguments);if(this.options.body.Message)this.commitMessage.value=this.options.body.Message;c.connect(this.commitMessage,"onkeyup",c.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;c.connect(this.committerName,"onkeyup",c.hitch(this,this.validate));if(this.options.body.CommitterEmail)this.committerEmail.value=this.options.body.CommitterEmail;c.connect(this.committerEmail,"onkeyup",c.hitch(this,this.validate));if(this.options.body.AuthorName)this.authorName.value=this.options.body.AuthorName;c.connect(this.authorName,"onkeyup",c.hitch(this,this.validate));if(this.options.body.AuthorEmail)this.authorEmail.value=
this.options.body.AuthorEmail;c.connect(this.authorEmail,"onkeyup",c.hitch(this,this.validate));this.validate()},validate:function(){this.commitMessage.value?this.committerName.value?this.committerEmail.value?this.authorName.value?this.authorEmail.value?(c.style(this.commitInfoBar,"display","none"),this.commitChangesButton.disabled=!1):(c.style(this.commitInfoBar,"display","block"),this.commitChangesButton.disabled=!0,this.commitInfo.innerHTML=b["The author mail is required."]):(c.style(this.commitInfoBar,
"display","block"),this.commitChangesButton.disabled=!0,this.commitInfo.innerHTML=b["The author name is required."]):(c.style(this.commitInfoBar,"display","block"),this.commitChangesButton.disabled=!0,this.commitInfo.innerHTML=b["The committer mail is required."]):(c.style(this.commitInfoBar,"display","block"),this.commitChangesButton.disabled=!0,this.commitInfo.innerHTML=b["The committer name is required."]):(c.style(this.commitInfoBar,"display","block"),this.commitChangesButton.disabled=!0,this.commitInfo.innerHTML=
b["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(b,c){b.declare("dojox.layout.ToggleSplitter",[c.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;b.addClass(this.domNode,"dojoxToggleSplitter"+a.charAt(0).toUpperCase()+a.substring(1));this.connect(this,"onDblClick","_toggleMe")},startup:function(){this.inherited(arguments);var a=this.child.domNode,c=b.style(a,this.horizontal?"height":"width");b.forEach(["toggleSplitterOpen","toggleSplitterClosedThreshold","toggleSplitterOpenSize"],function(a){var b=a.substring(14),b=b.charAt(0).toLowerCase()+b.substring(1);a in this.child&&(this[b]=this.child[a])},
this);if(!this.openSize)this.openSize=this.open?c+"px":"75px";this._openStyleProps=this._getStyleProps(a,!0);this._started=!0;this.set("open",this.open);return this},_onMouseUp:function(){b.disconnect(this._onMoveHandle);b.disconnect(this._onUpHandle);delete this._onMoveHandle;delete this._onUpHandle;delete this._startPosn},_onPrelimMouseMove:function(a){if(Math.abs((this._startPosn||0)-(this.horizontal?a.clientY:a.clientX))>=3)b.disconnect(this._onMoveHandle),this._startDrag(a)},_onMouseDown:function(a){if(this.open){if(!this._onUpHandle)this._onUpHandle=
b.connect(b.body(),"onmouseup",this,"_onMouseUp");if(!this._onMoveHandle)this._startPosn=this.horizontal?a.clientY:a.clientX,this._onMoveHandle=b.connect(b.body(),"onmousemove",this,"_onPrelimMouseMove")}},_handleOnChange:function(){var a=this.child.domNode,c;c=this.horizontal?"height":"width";if(this.open){var f=b.mixin({display:"block",overflow:"auto",visibility:"visible"},this._openStyleProps);f[c]=this._openStyleProps&&this._openStyleProps[c]?this._openStyleProps[c]:this.openSize;b.style(a,f);
this.connect(this.domNode,"onmousedown","_onMouseDown")}else f=b.getComputedStyle(a),c=this._getStyleProps(a,!0,f),f=this._getStyleProps(a,!1,f),this._openStyleProps=c,b.style(a,f);this._setStateClass();this.container._started&&this.container._layoutChildren(this.region)},_getStyleProps:function(a,c,f){f||(f=b.getComputedStyle(a));var e={},g=this.horizontal?"height":"width";e.visibility=c?f.visibility:"hidden";e[g]=c?a.style[g]||f[g]:this._closedSize;var h=["Top","Right","Bottom","Left"];b.forEach(["padding",
"margin","border"],function(a){for(var b=0;b<h.length;b++){var g=a+h[b];a=="border"&&(a+="Width");void 0!==f[g]&&(e[g]=c?f[g]:0)}});return e},_setStateClass:function(){this.open?(b.removeClass(this.domNode,"dojoxToggleSplitterClosed"),b.addClass(this.domNode,"dojoxToggleSplitterOpen"),b.removeClass(this.toggleNode,"dojoxToggleSplitterIconClosed"),b.addClass(this.toggleNode,"dojoxToggleSplitterIconOpen")):(b.addClass(this.domNode,"dojoxToggleSplitterClosed"),b.removeClass(this.domNode,"dojoxToggleSplitterOpen"),
b.addClass(this.toggleNode,"dojoxToggleSplitterIconClosed"),b.removeClass(this.toggleNode,"dojoxToggleSplitterIconOpen"))},_setOpenAttr:function(a){if(this._started)this.open=a,this._handleOnChange(a,!0),this[this.open?"onOpen":"onClose"](this.child)},onOpen:function(){},onClose:function(){},_toggleMe:function(a){a&&b.stopEvent(a);this.set("open",!this.open)},_onKeyPress:function(a){this.inherited(arguments)}});b.extend(c._Widget,{toggleSplitterOpen:!0,toggleSplitterClosedThreshold:5,toggleSplitterOpenSize:""})});
define("orion/widgets/eWebBorderContainer",["dojo","dijit","dijit/layout/BorderContainer","dojox/layout/ToggleSplitter"],function(b,c){b.declare("orion.widgets.eWebBorderContainer",c.layout.BorderContainer,{_splitterClass:"orion.widgets.eWebSplitter",getPreferredLeftPaneWidth:function(){var a=this.getSizeCookie();return a<=0?b.position(this.getRightPane()).w*0.25:a},isLeftPaneOpen:function(){var a=this.getSplitter("left");return a?a.open:!1},getLeftPane:function(){if(this._left)return this._left;
for(var a=this.getChildren(),b=0;b<a.length;b++)if(a[b].region&&(a[b].region==="leading"||a[b].region==="left"))return this._left=a[b].domNode},getHidingPane:function(){return this.getLeftPane()},getRightPane:function(){if(this._center)return this._center;for(var a=this.getChildren(),b=0;b<a.length;b++)if(a[b].region&&a[b].region==="center")return this._center=a[b].domNode},getSizeCookie:function(){var a=this.getSplitter("left");return a?a.getSizeCookie():0},setSizeCookie:function(a){var b=this.getSplitter("left");
if(b)return b.setSizeCookie(a)},toggleLeftPaneState:function(){var a=this.getSplitter("left");a&&a.toggleHidingPaneState()},setToggleCallback:function(a){this.toggleCallback=a},toggle:function(){if(!this._left||!this._center)for(var a=this.getChildren(),c=0;c<a.length;c++)if(a[c].region&&a[c].region==="center")this._center=a[c].domNode;else if(a[c].region&&(a[c].region==="leading"||a[c].region==="left"))this._left=a[c].domNode;var f=this._left,e=this._center,g=b.position(f).w,h=this.isLeftPaneOpen(),
i;i=h?0:this.getPreferredLeftPaneWidth();h||this.toggleLeftPaneState();var j=f.style.overflow,k=e.style.overflow;(new b.Animation({node:f,duration:300,curve:[1,100],onAnimate:b.hitch(this,function(a){f.style.width=g+(i-g)*a/100+"px";f.style.overflow="hidden";e.style.overflow="hidden";this.layout()}),onEnd:b.hitch(this,function(){e.style.overflow=k;f.style.overflow=j;this.toggleCallback&&this.toggleCallback.apply();h?this.toggleLeftPaneState():this.setSizeCookie(null)})})).play()}});b.declare("orion.widgets.eWebSplitter",
dojox.layout.ToggleSplitter,{postCreate:function(){this.inherited(arguments);this.connect(this.toggleNode,"onmousedown","_onThumbMouseDown");this.connect(this.domNode,"onmouseover","_onMouseOver");this._openStateCookieName=this.container.id+"_"+this.region+"_open"},startup:function(){this.inherited(arguments);if(this.container.persist){var a=b.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,c;c=this.horizontal?"height":"width";if(this.open){var f=b.mixin({display:"block",visibility:"visible"},this._openStyleProps);f[c]=this._openStyleProps&&this._openStyleProps[c]?this._openStyleProps[c]:this.openSize;b.style(a,f);this.connect(this.domNode,"onmousedown","_onMouseDown")}else f=b.getComputedStyle(a),c=this._getStyleProps(a,!0,f),f=this._getStyleProps(a,
!1,f),this._openStyleProps=c,b.style(a,f);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){b.stopEvent(a)},_onMouseDown:function(a){this.open?this._startDrag(a):this._removeFocusVisual(a)},_onMouseOver:function(){this.domNode.style.cursor=this.open?"e-resize":"default"},_onThumbMouseDown:function(a){a.stopPropagation();this._removeFocusVisual(a);
this.container.toggle()},_toggleMe:function(){},getSizeCookie:function(){if(this.container.persist){var a=b.cookie(this._cookieName);if(a)return parseInt(a.replace("px",""),10)}return 0},setSizeCookie:function(){this.container.persist&&b.cookie(this._cookieName,this.child.domNode.style[this.horizontal?"height":"width"],{expires:365})},toggleHidingPaneState:function(){this.set("open",!this.open);this.container.getHidingPane().style.visibility=this.open?"visible":"hidden";this.container.persist&&b.cookie(this._openStateCookieName,
this.open?"true":"false",{expires:365})}});b.declare("orion.widgets.eWebBorderContainerReverse",c.layout.BorderContainer,{_splitterClass:"orion.widgets.eWebSplitter",getPreferredRightPaneWidth:function(){var a=this.getSizeCookie();return a<=0?b.position(this.getLeftPane()).w*0.25:a},isRightPaneOpen:function(){var a=this.getSplitter("right");return a?a.open:!1},getRightPane:function(){if(this._right)return this._right;for(var a=this.getChildren(),b=0;b<a.length;b++)if(a[b].region&&(a[b].region==="trailing"||
a[b].region==="right"))return this._right=a[b].domNode},getHidingPane:function(){return this.getRightPane()},getLeftPane:function(){if(this._center)return this._center;for(var a=this.getChildren(),b=0;b<a.length;b++)if(a[b].region&&a[b].region==="center")return this._center=a[b].domNode},getSizeCookie:function(){var a=this.getSplitter("right");return a?a.getSizeCookie():0},setSizeCookie:function(a){var b=this.getSplitter("right");if(b)return b.setSizeCookie(a)},toggleRightPaneState:function(){var a=
this.getSplitter("right");a&&a.toggleHidingPaneState()},setToggleCallback:function(a){this.toggleCallback=a},toggle:function(){if(!this._right||!this._center)for(var a=this.getChildren(),c=0;c<a.length;c++)if(a[c].region&&a[c].region==="center")this._center=a[c].domNode;else if(a[c].region&&(a[c].region==="trailing"||a[c].region==="right"))this._right=a[c].domNode;var f=this._right,e=this._center,g=b.position(f).w,h=this.isRightPaneOpen(),i;i=h?0:this.getPreferredRightPaneWidth();h||this.toggleRightPaneState();
var j=f.style.overflow,k=e.style.overflow;(new b.Animation({node:f,duration:300,curve:[1,100],onAnimate:b.hitch(this,function(a){f.style.width=g+(i-g)*a/100+"px";f.style.overflow="hidden";e.style.overflow="hidden";this.layout()}),onEnd:b.hitch(this,function(){e.style.overflow=k;f.style.overflow=j;this.toggleCallback&&this.toggleCallback.apply();h?this.toggleRightPaneState():this.setSizeCookie(null)})})).play()}})});
define("dojox/form/uploader/Base","dojo,dijit,dojox,dojox/form/uploader/Base,dijit/_Widget,dijit/_Templated".split(","),function(b,c){b.declare("dojox.form.uploader.Base",[c._Widget,c._Templated],{getForm:function(){if(!this.form)for(var a=this.domNode;a&&a.tagName&&a!==document.body;){if(a.tagName.toLowerCase()=="form"){this.form=a;break}a=a.parentNode}return this.form},getUrl:function(){if(this.uploadUrl)this.url=this.uploadUrl;if(this.url)return this.url;if(this.getForm())this.url=this.form.action;
return this.url},connectForm:function(){this.url=this.getUrl();if(!this._fcon&&this.getForm())this._fcon=!0,this.connect(this.form,"onsubmit",function(a){b.stopEvent(a);this.submit(b.formToObject(this.form))})},supports:function(a){if(!this._hascache)this._hascache={testDiv:b.create("div"),testInput:b.create("input",{type:"file"}),xhr:window.XMLHttpRequest?new XMLHttpRequest:{}},b.style(this._hascache.testDiv,"opacity",0.7);switch(a){case "FormData":return!!window.FormData;case "sendAsBinary":return!!this._hascache.xhr.sendAsBinary;
case "opacity":return b.style(this._hascache.testDiv,"opacity")==0.7;case "multiple":if(this.force=="flash"||this.force=="iframe")break;a=b.attr(this._hascache.testInput,"multiple");return a===!0||a===!1}return!1},getMimeType:function(){return"application/octet-stream"},getFileType:function(a){return a.substring(a.lastIndexOf(".")+1).toUpperCase()},convertBytes:function(a){var b=Math.round(a/1024*1E5)/1E5,c=Math.round(a/1048576*1E5)/1E5,e=Math.round(a/1073741824*1E5)/1E5,g=a;b>1&&(g=b.toFixed(1)+
" kb");c>1&&(g=c.toFixed(1)+" mb");e>1&&(g=e.toFixed(1)+" gb");return{kb:b,mb:c,gb:e,bytes:a,value:g}}})});
define("dojox/form/Uploader",["dojo","dijit","dojox","dojox/form/uploader/Base"],function(b,c,a){b.declare("dojox.form.Uploader",[a.form.uploader.Base],{uploadOnSelect:!1,tabIndex:0,multiple:!1,label:"Upload...",url:"",name:"uploadedfile",flashFieldName:"",uploadType:"form",_nameIndex:0,widgetsInTemplate:!0,templateString:'<div class="dojoxFileInput"><div dojoType="dijit.form.Button" dojoAttachPoint="button">${label}</div></div>',postMixInProperties:function(){this._inputs=[];this._getButtonStyle(this.srcNodeRef);
this.inherited(arguments)},postCreate:function(){var a=!1,c=this._getNodePosition(this.domNode);if(!this.btnSize.w||!this.btnSize.h)b.body().appendChild(this.domNode),this._getButtonStyle(this.domNode),a=!0;this._setButtonStyle();a&&b.place(this.domNode,c.node,c.pos);this.inherited(arguments)},onChange:function(){},onBegin:function(){},onProgress:function(){},onComplete:function(){this.reset()},onCancel:function(){},onAbort:function(){},onError:function(){},upload:function(){},submit:function(){},
reset:function(){this._disconnectButton();b.forEach(this._inputs,b.destroy,b);this._inputs=[];this._nameIndex=0;this._createInput()},getFileList:function(){var a=[];this.supports("multiple")?b.forEach(this.inputNode.files,function(b,c){a.push({index:c,name:b.name,size:b.size,type:b.type})},this):b.forEach(this._inputs,function(b,c){a.push({index:c,name:b.value.substring(b.value.lastIndexOf("\\")+1),size:0,type:b.value.substring(b.value.lastIndexOf(".")+1)})},this);return a},_getValueAttr:function(){return this.getFileList()},
_setValueAttr:function(){console.error("Uploader value is read only")},_getDisabledAttr:function(){return this._disabled},_setDisabledAttr:function(a){this._disabled!=a&&(this.button.set("disabled",a),b.style(this.inputNode,"display",a?"none":"block"))},_getNodePosition:function(a){return a.previousSibling?{node:a.previousSibling,pos:"after"}:{node:a.nextSibling,pos:"before"}},_getButtonStyle:function(a){this.btnSize=a?b.marginBox(a):{w:80,h:25}},_setButtonStyle:function(){var a=!0;if(!this.domNode.parentNode||
!this.domNode.parentNode.tagName)document.body.appendChild(this.domNode),a=!1;b.style(this.domNode,{width:this.btnSize.w+"px",height:this.btnSize.h+4+"px",overflow:"hidden",position:"relative"});this.inputNodeFontSize=Math.max(2,Math.max(Math.ceil(this.btnSize.w/60),Math.ceil(this.btnSize.h/15)));this._createInput();b.style(this.button.domNode,{margin:"0px",display:"block",verticalAlign:"top"});b.style(this.button.domNode.firstChild,{margin:"0px",display:"block"});a||document.body.removeChild(this.domNode)},
_createInput:function(){this._inputs.length&&(b.style(this.inputNode,{top:"500px"}),this._disconnectButton(),this._nameIndex++);var a;a=this.supports("multiple")?this.name+"s[]":this.name+(this.multiple?this._nameIndex:"");this.inputNode=b.create("input",{type:"file",name:a,className:"dojoxInputNode"},this.domNode,"first");this.supports("multiple")&&this.multiple&&b.attr(this.inputNode,"multiple",!0);this._inputs.push(this.inputNode);b.style(this.inputNode,{fontSize:this.inputNodeFontSize+"em"});
a=b.marginBox(this.inputNode);b.style(this.inputNode,{position:"absolute",top:"-2px",left:"-"+(a.w-this.btnSize.w-2)+"px",opacity:0});this._connectButton()},_connectButton:function(){this._cons=[];var a=b.hitch(this,function(a){this._cons.push(b.connect(this.inputNode,a,this,function(){this.button._cssMouseEvent({type:a})}))});a("mouseover");a("mouseout");a("mousedown");this._cons.push(b.connect(this.inputNode,"change",this,function(a){this.onChange(this.getFileList(a));!this.supports("multiple")&&
this.multiple&&this._createInput()}));this.button.set("tabIndex",-1);if(this.tabIndex>-1){this.inputNode.tabIndex=this.tabIndex;var c=b.style(this.button.domNode.firstChild,"border");this._cons.push(b.connect(this.inputNode,"focus",this,function(){b.style(this.button.domNode.firstChild,"border","1px dashed #ccc")}));this._cons.push(b.connect(this.inputNode,"blur",this,function(){b.style(this.button.domNode.firstChild,"border",c)}))}},_disconnectButton:function(){b.forEach(this._cons,b.disconnect,
b)}});(function(){a.form.UploaderOrg=a.form.Uploader;var c=[a.form.UploaderOrg];a.form.addUploaderPlugin=function(a){c.push(a);b.declare("dojox.form.Uploader",c,{})}})()});
define("dojox/form/uploader/plugins/HTML5",["dojo","dijit","dojox","dojox/form/Uploader"],function(b,c,a){b.declare("dojox.form.uploader.plugins.HTML5",[],{errMsg:"Error uploading files. Try checking permissions",uploadType:"html5",postCreate:function(){this.connectForm();this.inherited(arguments);this.uploadOnSelect&&this.connect(this,"onChange","upload")},upload:function(a){this.onBegin(this.getFileList());this.supports("FormData")?this.uploadWithFormData(a):this.supports("sendAsBinary")&&this.sendAsBinary(a)},
submit:function(a){a=a?a.tagName?a:this.getForm():this.getForm();a=b.formToObject(a);console.log("form data:",a);this.upload(a)},sendAsBinary:function(a){if(this.getUrl()){var b="---------------------------"+(new Date).getTime(),c=this.createXhr();c.setRequestHeader("Content-Type","multipart/form-data; boundary="+b);if(a=this._buildRequestBody(a,b))c.sendAsBinary(a);else this.onError(this.errMsg)}else console.error("No upload url found.",this)},uploadWithFormData:function(a){if(this.getUrl()){var c=
new FormData;b.forEach(this.inputNode.files,function(a){c.append(this.name+"s[]",a)},this);if(a)for(var e in a)c.append(e,a[e]);this.createXhr().send(c)}else console.error("No upload url found.",this)},_xhrProgress:function(a){if(a.lengthComputable){var b={bytesLoaded:a.loaded,bytesTotal:a.total,type:a.type,timeStamp:a.timeStamp};a.type=="load"?(b.percent="100%",b.decimal=1):(b.decimal=a.loaded/a.total,b.percent=Math.ceil(a.loaded/a.total*100)+"%");this.onProgress(b)}},createXhr:function(){var a=
new XMLHttpRequest,c;a.upload.addEventListener("progress",b.hitch(this,"_xhrProgress"),!1);a.addEventListener("load",b.hitch(this,"_xhrProgress"),!1);a.addEventListener("error",b.hitch(this,function(a){this.onError(a);clearInterval(c)}),!1);a.addEventListener("abort",b.hitch(this,function(a){this.onAbort(a);clearInterval(c)}),!1);a.onreadystatechange=b.hitch(this,function(){a.readyState===4&&(console.info("COMPLETE"),clearInterval(c),this.onComplete(b.eval(a.responseText)))});a.open("POST",this.getUrl());
c=setInterval(b.hitch(this,function(){}),250);return a},_buildRequestBody:function(a,c){var e="",c="--"+c,g=[];b.forEach(this.inputNode.files,function(a,b){var d=this.name+"s[]",h=this.inputNode.files[b].fileName,m;try{m=this.inputNode.files[b].getAsBinary()+"\r\n",e+=c+"\r\n",e+="Content-Disposition: form-data; ",e+='name="'+d+'"; ',e+='filename="'+h+'"\r\n',e+="Content-Type: "+this.getMimeType()+"\r\n\r\n",e+=m}catch(n){g.push({index:b,name:h})}},this);g.length&&g.length>=this.inputNode.files.length&&
(this.onError({message:this.errMsg,filesInError:g}),e=!1);if(!e)return!1;if(a)for(var h in a)e+=c+"\r\n",e+="Content-Disposition: form-data; ",e+='name="'+h+'"\r\n\r\n',e+=a[h]+"\r\n";e+=c+"--\r\n";return e}});a.form.addUploaderPlugin(a.form.uploader.plugins.HTML5)});
define("dojox/form/uploader/plugins/IFrame","dojo,dijit,dojox,dojo/io/iframe,dojox/form/uploader/plugins/HTML5,dojox/form/Uploader".split(","),function(b,c,a){b.declare("dojox.form.uploader.plugins.IFrame",[],{force:"",postMixInProperties:function(){this.inherited(arguments);if(!this.supports("multiple"))this.uploadType="iframe"},upload:function(a){if(!this.supports("multiple")||this.force=="iframe")this.uploadIFrame(a),b.stopEvent(a)},uploadIFrame:function(){this.getUrl();b.io.iframe.send({url:this.getUrl(),
form:this.form,handleAs:"json",error:b.hitch(this,function(a){console.error("HTML Upload Error:"+a.message)}),load:b.hitch(this,function(a){this.onComplete(a)})})}});a.form.addUploaderPlugin(a.form.uploader.plugins.IFrame)});
define("dojox/form/uploader/FileList","dojo,dijit,dojox,dojox/form/uploader/Base,dijit/_Widget,dijit/_Templated".split(","),function(b,c,a){b.declare("dojox.form.uploader.FileList",[a.form.uploader.Base],{uploaderId:"",uploader:null,headerIndex:"#",headerType:"Type",headerFilename:"File Name",headerFilesize:"Size",_upCheckCnt:0,rowAmt:0,templateString:'<div class="dojoxUploaderFileList"><div dojoAttachPoint="progressNode" class="dojoxUploaderFileListProgress"><div dojoAttachPoint="percentBarNode" class="dojoxUploaderFileListProgressBar"></div><div dojoAttachPoint="percentTextNode" class="dojoxUploaderFileListPercentText">0%</div></div><table class="dojoxUploaderFileListTable"><tr class="dojoxUploaderFileListHeader"><th class="dojoxUploaderIndex">${headerIndex}</th><th class="dojoxUploaderIcon">${headerType}</th><th class="dojoxUploaderFileName">${headerFilename}</th><th class="dojoxUploaderFileSize">${headerFilesize}</th></tr><tr ><td colSpan="4" class="dojoxUploaderFileListContainer" dojoAttachPoint="containerNode"><table class="dojoxUploaderFileListContent" dojoAttachPoint="listNode"></table></td><tr></table><div>',
postCreate:function(){this.setUploader();this.hideProgress()},reset:function(){for(var a=0;a<this.rowAmt;a++)this.listNode.deleteRow(0);this.rowAmt=0},setUploader:function(){if(!this.uploaderId&&!this.uploader)console.warn("uploaderId not passed to UploaderFileList");else if(this.uploaderId&&!this.uploader)this.uploader=c.byId(this.uploaderId);else if(this._upCheckCnt>4){console.warn("uploader not found for ID ",this.uploaderId);return}this.uploader?(this.connect(this.uploader,"onChange","_onUploaderChange"),
this.connect(this.uploader,"reset","reset"),this.connect(this.uploader,"onBegin",function(){this.showProgress(!0)}),this.connect(this.uploader,"onProgress","_progress"),this.connect(this.uploader,"onComplete",function(){setTimeout(b.hitch(this,function(){this.hideProgress(!0)}),1250)})):(this._upCheckCnt++,setTimeout(b.hitch(this,"setUploader"),250))},hideProgress:function(a){this._hideShowProgress(a?{ani:!0,endDisp:"none",beg:15,end:0}:{endDisp:"none",ani:!1})},showProgress:function(a){this._hideShowProgress(a?
{ani:!0,endDisp:"block",beg:0,end:15}:{endDisp:"block",ani:!1})},_progress:function(a){this.percentTextNode.innerHTML=a.percent;b.style(this.percentBarNode,"width",a.percent)},_hideShowProgress:function(a){var c=this.progressNode,e=function(){b.style(c,"display",a.endDisp)};a.ani?(b.style(c,"display","block"),b.animateProperty({node:c,properties:{height:{start:a.beg,end:a.end,units:"px"}},onEnd:e}).play()):e()},_onUploaderChange:function(a){this.reset();b.forEach(a,function(a,b){this._addRow(b+1,
this.getFileType(a.name),a.name,a.size)},this)},_addRow:function(a,c,e,g){var h,i=this.listNode.insertRow(-1);h=i.insertCell(-1);b.addClass(h,"dojoxUploaderIndex");h.innerHTML=a;h=i.insertCell(-1);b.addClass(h,"dojoxUploaderIcon");h.innerHTML=c;h=i.insertCell(-1);b.addClass(h,"dojoxUploaderFileName");h.innerHTML=e;h=i.insertCell(-1);b.addClass(h,"dojoxUploaderSize");h.innerHTML=this.convertBytes(g).value;this.rowAmt++}})});
define("orion/widgets/ImportDialog","i18n!orion/widgets/nls/messages,dojo,dijit,dojox,dijit/Dialog,dojo/data/ItemFileReadStore,dojox/form/Uploader,dojox/form/uploader/FileList,dojox/form/uploader/plugins/IFrame,dijit/form/Button,dijit/ProgressBar,orion/widgets/_OrionDialogMixin,text!orion/widgets/templates/ImportDialog.html,dojo/io/iframe".split(","),function(b,c,a){c.declare("orion.widgets.ImportDialog",[a.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:!0,templateString:'<div class="dijitDialog" tabindex="-1" waiRole="dialog" waiState="labelledby-${id}_title"><div data-dojo-attach-point="titleBar" class="dijitDialogTitleBar"><span data-dojo-attach-point="titleNode" class="dijitDialogTitle" id="${id}_title"></span><span data-dojo-attach-point="closeButtonNode" class="dijitDialogCloseIcon" data-dojo-attach-event="onclick:onCancel" title="${buttonCancel}"><span data-dojo-attach-point="closeText" class="closeText" title="${buttonCancel}">x</span></span></div><div ondragover="event.preventDefault()" data-dojo-attach-point="containerNode" class="dijitDialogPaneContent"><div class="uploadContainer" data-dojo-attach-event="drop:drop,dragenter:dragEnter,dragexit:dragExit,dragover:dragOver"><div class="dottedOutline"><div data-dojo-attach-point="dragArea" class="floatingSection"><div class="uploadInstruction">'+
b["Drag a File or Zip here"]+'</div><div class="tipInstruction">'+b["or if you prefer"]+'</div><form data-dojo-attach-point="importform" method="post" id="importDialog.myForm" enctype="multipart/form-data" ><input class="uploadBrowser" data-dojo-attach-point="importloader" name="uploadedfile" multiple="false" type="file" id="importLoader" force="iframe" data-dojo-type="dojox.form.Uploader" style="height: 20px" label="'+b["Browse..."]+'" ><input type="submit" label="Finish" value="OK" dojoType="dijit.form.Button" style="visibility:hidden;padding: 20 0 10 0; float: right; clear: both;"/></form></div></div></div></div></div>',
constructor:function(){this.inherited(arguments);this.options=arguments[0]||{}},postMixInProperties:function(){this.inherited(arguments);this.title=b["Import a file or zip"]},handleReadyState:function(){this.req.readyState===4&&(this.hide(),this.options.func())},uploadDroppedFiles:function(a){this.req=new XMLHttpRequest;this.req.open("post",this.options.importLocation,!0);this.req.setRequestHeader("X-Requested-With","XMLHttpRequest");this.req.setRequestHeader("Slug",a.name);a.name.indexOf(".zip")!==
a.name.length-4&&this.req.setRequestHeader("X-Xfer-Options","raw");this.req.setRequestHeader("Content-Type",a.type);this.req.onreadystatechange=c.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);c.style(this.importloader.domNode,"left","100px");c.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;c.connect(this.importloader,"onChange",c.hitch(this,function(){this.importloader.upload({preventDefault:function(){},
stopPropagation:function(){}})}));c.connect(this.importloader,"onError",c.hitch(this,function(){setTimeout(c.hitch(this,function(){this.hide()}),2E3)}));c.connect(this.importloader,"onComplete",c.hitch(this,function(){setTimeout(c.hitch(this,function(){this.hide();this.options.func()}),2E3)}));c.connect(this.importloader,"onKeyPress",function(a){a.keyCode===c.keys.ENTER&&a.stopPropagation()})}})});
define("orion/extensionCommands","require,dojo,orion/util,orion/commands,orion/editor/regex,orion/contentTypes,orion/URITemplate,orion/i18nUtil,orion/widgets/NewItemDialog,orion/widgets/DirectoryPrompterDialog,orion/widgets/ImportDialog,orion/widgets/SFTPConnectionDialog".split(","),function(b,c,a,d,f,e,g,h){var i={},b=window.location.href.split("#")[0],j=b.substring(0,b.length-window.location.pathname.length);i._cloneItemWithoutChildren=function l(a){if(a===null||typeof a!=="object")return a;var b=
a.constructor(),c;for(c in a)c!=="children"&&c!=="Children"&&(b[c]=l(a[c]));return b};i._createOpenWithCommands=function(a){function b(a,c){for(var d=a.getServiceReferences("orion.navigate.openWith"),e=[],f=0;f<d.length;f++){var g=d[f];g.getProperty("editor")===c.id&&(g=g.getProperty("contentType"),g instanceof Array?e=e.concat(g):g!==null&&typeof g!=="undefined"&&e.push(g))}return e}for(var c=function(){for(var b=a.getServiceReferences("orion.edit.editor"),c=[],d=0;d<b.length;d++){var e=b[d],f=e.getProperty("id");
c.push({id:f,name:e.getProperty("name"),nameKey:e.getProperty("nameKey"),nls:e.getProperty("nls"),uriTemplate:e.getProperty("orionTemplate")||e.getProperty("uriTemplate")})}return c}(),d=function(a){for(a=a.getServiceReferences("orion.navigate.openWith.default");0<a.length;)return{editor:a[0].getProperty("editor")};return null}(a),e=[],f=0;f<c.length;f++){var g=c[f],h=d&&d.editor===g.id,i=b(a,g);i.length&&e.push({properties:{name:g.name||g.id,nameKey:g.nameKey,id:"eclipse.openWithCommand."+g.id,tooltip:g.name,
tooltipKey:g.nameKey,contentType:i,uriTemplate:g.uriTemplate,nls:g.nls,forceSingleItem:!0,isEditor:h?"default":"editor"},service:{}})}return e};i._makeValidator=function(a,b,d,f){function h(a,b,c,d){var e=c.match,f;if(b.indexOf("|")>=0)return f=b.substring(0,b.indexOf("|")),b=b.substring(b.indexOf("|")+1),h(a,f,c,d)?!0:h(a,b,c,d);else if(b.indexOf(":")>=0)return f=b.substring(0,b.indexOf(":")),b=b.substring(b.indexOf(":")+1),a[f]?h(a[f],b,c,d):!1;else{a:{f=!1;var g;if(a[b]){if(e)if(typeof e==="string"){if(!typeof(a[b]===
"string")){c=!1;break a}if(c.variableName){if(e=RegExp(e).exec(a[b]))f=e[0],g=c.variableMatchPosition==="before"?a[b].substring(0,e.index):c.variableMatchPosition==="after"?a[b].substring(e.index+f.length):c.variableMatchPosition==="only"?f:a[b],f=!0}else{c=RegExp(e).test(a[b]);break a}}else a[b]===e&&(g=a[b],f=!0);else g=a[b],f=!0;if(f&&c.variableName&&(d[c.variableName]=g,d.itemCached=a,c.replacements))for(a=0;a<c.replacements.length;a++)b=!1,c.replacements[a].pattern?d[c.variableName]=d[c.variableName].replace(RegExp(c.replacements[a].pattern),
c.replacements[a].replacement||""):b=!0,b&&window.console.log("Invalid replacements specified in validation property.  "+c.replacements[a]);c=f}else c=!1}return c}}b={info:a};b.validationFunction=c.hitch(b,function(b){typeof f==="function"&&(b=f.call(this,b));if(b){if(c.isArray(b)){if((this.info.forceSingleItem||this.info.uriTemplate)&&b.length!==1)return!1;if(b.length<1)return!1}else b=[b];for(var g=0;g<b.length;g++){var i;a:{var j=b[g],m=d;if(this.info.validationProperties)for(i=0;i<this.info.validationProperties.length;i++){var v=
this.info.validationProperties[i];if(v.source){if(!h(j,v.source,v,this)){i=!1;break a}}else{window.console.log("Invalid validationProperties in "+a.id+".  No source property specified.");i=!1;break a}}if(this.info.contentType&&m){v=!1;if(j=e.getFilenameContentType(j.Name,m))for(i=0;i<this.info.contentType.length;i++)if(j.id===this.info.contentType[i]){v=!0;break}i=v}else i=!0}if(!i)return!1}return!0}return!1});b.generatesURI=c.hitch(b,function(){return!!this.info.uriTemplate});b.getURI=c.hitch(b,
function(a){if(this.info.uriTemplate){var b={},c;for(c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);if(this.info.validationProperties)for(c=0;c<this.info.validationProperties.length;c++){var d=this.info.validationProperties[c];d.source&&d.variableName&&(this.itemCached===a&&this[d.variableName]||h(a,d.source,d,this),a[d.variableName]?window.console.log("Variable name "+d.variableName+" in the extension "+this.info.id+" conflicts with an existing property in the item metadata."):b[d.variableName]=this[d.variableName])}b.OrionHome=
j;a=new g(this.info.uriTemplate);return window.decodeURIComponent(a.expand(b))}return null});return b};i._createCommandOptions=function(a,b,d,e,f,g){function j(h,q){var s=i._makeValidator(a,d,e,g);h.visibleWhen=s.validationFunction;if(f)s.generatesURI()?h.hrefCallback=c.hitch(s,function(a){return this.getURI(c.isArray(a.items)?a.items[0]:a.items)}):h.callback=c.hitch(a,function(a){var e;if(this.forceSingleItem)a=c.isArray()?a.items[0]:a.items,e=i._cloneItemWithoutChildren(a);else if(c.isArray(a.items)){e=
[];for(var f=0;f<a.items.length;f++)e.push(i._cloneItemWithoutChildren(a.items[f]))}else e=i._cloneItemWithoutChildren(a.items);b.run?b.run(e):d&&d.getService(b).run(e)});q.resolve(h)}var q=new c.Deferred;a.nls?h.getMessageBundle(a.nls).then(function(b){j({name:a.nameKey?b[a.nameKey]:a.name,image:a.image,id:a.id||a.name,tooltip:a.tooltipKey?b[a.tooltipKey]:a.tooltip,isEditor:a.isEditor},q)}):j({name:a.name,image:a.image,id:a.id||a.name,tooltip:a.tooltip,isEditor:a.isEditor},q);return q};i.getOpenWithCommands=
function(a){var b=[],c;for(c in a._commandList){var d=a._commandList[c];d.isEditor&&b.push(d)}return b};return i});
define("orion/globalCommands","i18n!orion/nls/messages,require,dojo,dijit,orion/commonHTMLFragments,orion/commands,orion/parameterCollectors,orion/extensionCommands,orion/util,orion/textview/keyBinding,orion/breadcrumbs,orion/favorites,orion/contentTypes,orion/URITemplate,orion/PageUtil,dijit/Menu,dijit/MenuItem,dijit/form/DropDownButton,orion/widgets/OpenResourceDialog,orion/widgets/LoginDialog,orion/widgets/UserMenu,orion/widgets/UserMenuDropDown".split(","),function(b,c,a,d,f,e,g,h,i,j,k,l,m,n,
o){function p(b,c){if(b.getLabel)return b.getLabel();else{var d=new a.Deferred;d.callback(c.properties.name);return d}}function r(b){(b=b.getService("orion.page.progress"))&&a.hitch(b,b.init)("progressPane")}function s(a,b){var c=a.getService("orion.core.auth");c!==null&&c.getUser().then(function(a){a.Name?b.set("label",a.Name):a.login&&b.set("label",a.login)})}function q(c){var f=c.getServiceReferences("orion.core.auth");E=[];var g=a.byId("userMenu");if(g){if(!d.byId("logins")){var h=new orion.widgets.UserMenuDropDown({id:"logins",
dropDown:J,label:b.Options,showLabel:!0});a.place(h.domNode,g,"only");h.valueNode&&a.destroy(h.valueNode);h.titleNode&&a.attr(h.titleNode,"title")&&a.removeAttr(h.titleNode,"title");new e.CommandTooltip({connectId:[h.focusNode],label:b.Options,position:["above","left","right","below"]});s(c,h)}for(g=0;g<f.length;g++){var h=f[g],k=c.getService(h);a.hitch(this,function(a,b){p(a,b).then(function(b){a.getKey().then(function(c){E.push(c);a.getUser().then(function(d){x.addUserItem(c,a,b,d);J.addUserItem(c,
a,b,d)},function(d,e){x.addUserItem(c,a,b);J.addUserItem(c,a,b,e)});window.addEventListener("storage",function(){w[c]!==localStorage.getItem(c)&&(w[c]=localStorage.getItem(c),a.getUser().then(function(d){x.addUserItem(c,a,b,d);J.addUserItem(c,a,b,d)},function(){x.addUserItem(c,a,b);J.addUserItem(c,a,b)}))},!1)})})})(k,h)}}}function t(){if(a.byId("relatedLinks")&&D){var b=d.byId("related");b&&b.closeDropDown();D.focusedChild=null;a.forEach(D.getChildren(),function(a){D.removeChild(a);a.destroy()})}}
function u(c,e){D||(D=new d.Menu({style:"display: none;padding:3px;border-radius:3px;",id:"relatedLinksMenu"}));c._addMenuItem(D,e);var f=d.byId("related"),g=a.byId("relatedLinks");g&&!f&&(f=new orion.widgets.UserMenuDropDown({id:"related",label:b.Related,dropDown:D}),a.addClass(f.domNode,"bannerMenu"),a.place(f.domNode,g,"only"),i.forceLayout(g))}function v(b,c,d,f,g){var k,j=b.getServiceReferences("orion.page.link.related");if(!(j.length<=0)){var l=a.byId("relatedLinks");l&&a.when(function(){if(k)return k;
var a=b.getService("orion.core.contenttypes");a||(a=new m.ContentTypeService(b),a=b.getService("orion.core.contenttypes"));return a.getContentTypes().then(function(a){return k=a})}(),a.hitch(this,function(){var m;t();for(var p=[],n=0;n<j.length;n++){var q={},o,s=j[n].getPropertyNames();for(o=0;o<s.length;o++)q[s[o]]=j[n].getProperty(s[o]);if(q.id){var r=function(b){if(b)if(!b.visibleWhen||b.visibleWhen(c)){var d=new e.CommandInvocation(f,c,c,null,b);u(b,d)}else typeof g==="function"&&(m||(m=g()),
a.when(m,a.hitch(b,function(a){a&&c===G&&(!this.visibleWhen||this.visibleWhen(a))&&u(this,new e.CommandInvocation(f,a,a,null,this))})))},v=null;if(a.indexOf(d,q.id)<0)if((q.nls&&q.nameKey||q.name)&&q.uriTemplate)o=h._createCommandOptions(q,j[n],b,k,!0),p.push(o),o.then(a.hitch(this,function(a){a=new e.Command(a);r(a)}));else{if(!v&&(v=f.findCommand(q.id))){r(v);continue}if(!v){var A=b.getServiceReferences("orion.navigate.command");for(o=0;o<A.length;o++)if(A[o].getProperty("id")===q.id){for(var q=
{},s=A[o].getPropertyNames(),z=0;z<s.length;z++)q[s[z]]=A[o].getProperty(s[z]);o=h._createCommandOptions(q,A[o],b,k,!0);p.push(o);o.then(a.hitch(this,function(a){v=new e.Command(a);r(v)}));break}}}}}(new a.DeferredList(p)).addBoth(a.hitch(this,function(){var b=a.byId("relatedLinks");D&&b&&(D.getChildren().length===0?a.style(b,"visibility","hidden"):a.style(b,"visibility","visible"));i.forceLayout(l)}))}))}}function A(b){var c=a.byId("globalActions");c&&(a.empty(c),b.renderCommands(c.id,c,{},{},"tool"))}
function H(a){var c=a.getService("orion.core.favorite");c||(c=new l.FavoritesService({serviceRegistry:a}),c=a.getService("orion.core.favorite"));B&&B.Location&&c.hasFavorite(B.ChildrenLocation||B.Location).then(function(d){d?a.getService("orion.page.message").setMessage(B.Name+b[" is already a favorite."],2E3):(c.makeFavorites([B]),a.getService("orion.page.message").setMessage(B.Name+b[" has been added to the favorites list."],2E3))})}function z(c,d){var f=a.byId("pageFavorite");f&&(B&&B.Location?
(a.addClass(f,"bannerButton"),a.connect(f,"onclick",this,function(){H(c)}),a.connect(f,"onkeypress",this,function(b){b.keyCode===a.keys.ENTER&&H(c)}),new e.CommandTooltip({connectId:[f],label:b["Add to the favorites list"],position:["below","left","right","above"],commandService:d}),a.style(f,"visibility","visible")):a.style(f,"visibility","hidden"))}var C=function(a){var b=document.createElement("a");b.href=a;return b.href}(c.toUrl("auth/NotifyAuthentication.html")),w={},x=new orion.widgets.LoginDialog,
J=new orion.widgets.UserMenu({loginDialog:x}),E=[],D,G,K=[],B=null,y;return{generateUserInfo:q,generateRelatedLinks:v,generateDomCommandsInBanner:function(b,c,d,e,f,g,h){b.closeParameterCollector();if(g=a.byId("pageActions"))a.empty(g),(g=b.renderCommands(g.id,g,d||c,c,"button"))&&g.then?g.then(function(){b.processURL(window.location.href)}):b.processURL(window.location.href);if(!h&&(g=a.byId("pageNavigationActions")))a.empty(g),b.renderCommands(g.id,g,f||d||c,e||c,"button")},generateBanner:function(h,
k,m,p,s,t,u,v){function H(b){a.query(".targetSelector").forEach(function(a){a.target=b})}function C(){p.getPreferences("/settings",2).then(function(a){a=a.get("General");if(a!==void 0&&(a=JSON.parse(a)))a=p.getSetting(a,"Navigation","Links"),H(a==="Open in new tab"?"_blank":"_self")})}var w,x=a.byId(h);if(!x)throw b["could not find banner parent, id was "]+h;a.byId("staticBanner")||a.place(f.topHTMLFragment,x,"only");(h=a.byId("pageToolbar"))?(a.place(f.toolbarHTMLFragment,h,"only"),a.addClass(h,
"toolComposite")):(h=a.create("div",{id:"pageToolbar","class":"toolbar toolComposite layoutBlock"},"titleArea","after"),a.place(f.toolbarHTMLFragment,h,"only"));a.byId("footerContent")||(h=a.byId("footer"))&&a.place(f.bottomHTMLFragment,h,"only");m.setParameterCollector(new g.CommandParameterCollector);a.place('<div id="keyAssist" style="display: none" class="keyAssistFloat" role="list" aria-atomic="true" aria-live="assertive"></div>',document.body,"last");var D=a.byId("primaryNav");if(D)for(var h=
k.getServiceReferences("orion.page.link"),t=o.matchResourceParameters(window.location.href),E={OrionHome:window.location.protocol+"//"+window.location.host,Location:t.resource},t=0;t<h.length;t++){for(var y={},B=h[t].getPropertyNames(),G=0;G<B.length;G++)y[B[G]]=h[t].getProperty(B[G]);y.uriTemplate&&y.nls&&(y.name||y.nameKey)?c(["i18n!"+y.nls],function(b){var c=new n(y.uriTemplate),c=window.decodeURIComponent(c.expand(E)),c=a.create("a",{href:c,target:"_self","class":"targetSelector"},D,"last");w=
document.createTextNode(y.nameKey?b[y.nameKey]:y.name);a.place(w,c,"only")}):y.uriTemplate&&y.name&&(B=new n(y.uriTemplate),B=window.decodeURIComponent(B.expand(E)),B=a.create("a",{href:B,target:"_self","class":"targetSelector"},D,"last"),w=document.createTextNode(y.name),a.place(w,B,"only"))}var K=a.byId("search");if(!K)throw"failed to generate HTML for banner";a.connect(K,"onkeypress",function(d){if(d.charOrCode===a.keys.ENTER)if(s){if(K.value.length>0)d=s.createSearchQuery(K.value),window.location=
c.toUrl("search/search.html")+"#"+d}else window.alert(b["Can't search: no search service is available"])});h=new e.Command({name:b["Make Favorite"],tooltip:b["Add to the favorites list"],imageClass:"core-sprite-makeFavorite",id:"orion.makeFavorite",visibleWhen:function(b){b=a.isArray(b)?b:[b];if(b.length===0)return!1;for(var c=0;c<b.length;c++)if(!b[c].Location)return!1;return!0},callback:function(c){for(var c=a.isArray(c.items)?c.items:[c.items],d=k.getService("orion.core.favorite"),e=function(a){return function(c){c?
k.getService("orion.page.message").setMessage(a.Name+b[" is already a favorite."],2E3):d.makeFavorites(a)}},f=0;f<c.length;f++){var g=c[f];d.hasFavorite(g.ChildrenLocation||g.Location).then(e(g))}}});m.addCommand(h);var R=function(b,c,d){var e=c.getService("orion.core.favorite");e||(e=new l.FavoritesService({serviceRegistry:c}),e=c.getService("orion.core.favorite"));var f=new orion.widgets.OpenResourceDialog({searcher:b,searchRenderer:b.defaultRenderer,favoriteService:e});d&&a.connect(f,"onHide",
function(){d.getTextView().focus()});window.setTimeout(function(){f.show()},0)},h=new e.Command({name:b["Find File Named..."],tooltip:b["Choose a file by name and open an editor on it"],id:"eclipse.openResource",callback:function(){R(s,k,u)}});u&&(u.getTextView().setKeyBinding(new j.KeyBinding("f",!0,!0,!1),h.id),u.getTextView().setAction(h.id,function(){R(s,k,u);return!0},h));m.addCommand(h);m.registerCommandContribution("globalActions","eclipse.openResource",100,null,!0,new e.CommandKeyBinding("f",
!0,!0));h=new e.Command({name:b["Toggle banner and footer"],tooltip:b["Hide or show the page banner and footer"],id:"orion.toggleTrim",callback:function(){var b=d.byId(x.parentNode.id);if(b){var c=a.byId("footer");x.style.display==="none"?(x.style.display="block",c.style.display="block"):(x.style.display="none",c.style.display="none");b.layout()}return!0}});m.addCommand(h);m.registerCommandContribution("globalActions","orion.toggleTrim",100,null,!0,new e.CommandKeyBinding("m",!0,!0));u&&(u.getTextView().setKeyBinding(new e.CommandKeyBinding("m",
!0,!0),h.id),u.getTextView().setAction(h.id,h.callback,h));var O=a.byId("keyAssist");a.connect(document,"onkeypress",a.hitch(this,function(b){if(b.charOrCode===a.keys.ESCAPE)O.style.display="none"}));a.connect(document,"onclick",a.hitch(this,function(a){if((a=a.target||a.originalTarget||a.srcElement)&&a.id!=="keyAssist")O.style.display="none"}));u&&u.getTextView().addEventListener("MouseDown",function(){O.style.display="none"});v&&v.addHandler({isActive:function(){return O.style.display==="block"},
cancel:function(){return this.isActive()?(O.style.display="none",!0):!1}});v=new e.Command({name:b["System Configuration Details"],tooltip:b["System Config Tooltip"],id:"orion.configDetailsPage",hrefCallback:function(){return c.toUrl("help/about.html")}});m.addCommand(v);m.registerCommandContribution("globalActions","orion.configDetailsPage",100,null,!0,new e.CommandKeyBinding(112,!0,!0));v=new e.Command({name:b["Background Operations"],tooltip:b["Background Operations Tooltip"],id:"orion.backgroundOperations",
hrefCallback:function(){return c.toUrl("operations/list.html")}});m.addCommand(v);m.registerCommandContribution("globalActions","orion.backgroundOperations",100,null,!0,new e.CommandKeyBinding("o",!0,!0));v=new e.Command({name:b["Show Keys"],tooltip:b["Show a list of all the keybindings on this page"],id:"eclipse.keyAssist",callback:function(){if(O.style.display==="none"){a.empty(O);if(u){a.place("<h2>"+b.Editor+"</h2>",O,"last");for(var c=u.getTextView().getActions(!1),d=0;d<c.length;d++){var e=
c[d],f=e,g=u.getTextView(),h=g.getActionDescription(e);if(h&&h.name)f=h.name;e=g.getKeyBindings(e);for(g=0;g<e.length;g++)a.place('<span role="listitem">'+i.getUserKeyString(e[g])+" = "+f+"<br></span>",O,"last")}}a.place("<h2>"+b.Global+"</h2>",O,"last");m.showKeyBindings(O);O.style.display="block"}else O.style.display="none";return!0}});m.addCommand(v);m.registerCommandContribution("globalActions","eclipse.keyAssist",100,null,!0,new e.CommandKeyBinding(191,!1,!0));u&&(h=window.navigator.platform.indexOf("Mac")!==
-1,u.getTextView().setKeyBinding(new e.CommandKeyBinding(191,!1,!0,!h,h),v.id),u.getTextView().setAction(v.id,v.callback,v));J.setKeyAssist(v.callback);z(k,m);A(m);q(k);r(k);i.forceLayout(x.parentNode);a.subscribe("/dojo/hashchange",m,function(){m.processURL(window.location.href)});window.setTimeout(function(){C()},0)},notifyAuthenticationSite:C,setPendingAuthentication:function(b){x.setPendingAuthentication(b);for(var c in b)if(b.hasOwnProperty(c)){var e=a.byId("userMenu");if(e.innerHTML)try{d.popup.open({popup:x,
around:e})}catch(f){}else window.setTimeout(function(){try{d.popup.open({popup:x,around:e})}catch(a){}},500);return}d.popup.hide&&d.popup.hide(x);d.popup.close(x)},getAuthenticationIds:function(){return E},setPageTarget:function(b){var c,d,e=b.breadcrumbRootName;b.target?(b.searchService&&b.searchService.setLocationByMetaData(b.target),b.fileService&&!b.breadcrumbTarget&&(d=e?e+" ":"",d+=b.fileService.fileServiceName(b.target.Location),e=null),c=b.name||b.target.Name,G=b.target,v(b.serviceRegistry,
b.target,K,b.commandService,b.makeAlternate)):(b.breadcrumbTarget||(e=e||b.task||b.name),c=b.name);(y=b.title)||(y=c?c+" - "+b.task:b.task);window.document.title=y;a.empty("location");new k.BreadCrumbs({container:"location",resource:b.breadcrumbTarget||b.target,rootSegmentName:e,workspaceRootSegmentName:d,makeHref:b.makeBreadcrumbLink});B=b.target&&b.isFavoriteTarget?b.target:null;z(b.serviceRegistry,b.commandService)},setDirtyIndicator:function(b){if(y)y.charAt(0)==="*"&&!b&&(y=y.substring(1)),b&&
y.charAt(0)!=="*"&&(y="*"+y),window.document.title=y;var c=a.byId("dirty");if(c)c.innerHTML=b?"*":""},setPageCommandExclusions:function(a){K=a},authenticatedService:function(a){x.authenticatedService(a)}}});
define("orion/progress",["i18n!orion/nls/messages","require","dojo","orion/globalCommands","orion/widgets/OperationsDialog"],function(b,c,a,d){function f(a,b){this._serviceRegistry=a;this._serviceRegistration=a.registerService("orion.page.progress",this);this._operationsClient=b;this._initDone=!1;this._topicListeners={};this._myOperations={};this._lastIconClass=this._lastOperation=null}f.prototype={init:function(b){if(!this._progressPane){this._progressPane=a.byId(b);this._operationsDialog=new orion.widgets.OperationsDialog;
a.connect(this._progressPane,"onclick",a.hitch(this,this._openOperationsPopup));var c=this;a.connect(this._progressPane,"onkeypress",function(b){(b.charOrCode===" "||b.keyCode===a.keys.ENTER)&&a.hitch(c,c._openOperationsPopup)()});new Date-this.getLastListUpdate()>3E5?this._operationsClient.getRunningOperations().then(function(b){a.hitch(c,c._loadOperationsList)(b);window.setTimeout(function(){a.hitch(c,c._checkOperationsChanges())},5E3)},function(a){console.error(a)}):(a.hitch(c,c._generateOperationsInfo(JSON.parse(localStorage.getItem("orionOperations")||
'{"Children": []}'))),window.setTimeout(function(){a.hitch(c,c._checkOperationsChanges())},5E3));window.addEventListener("storage",function(b){d.getAuthenticationIds().indexOf(b.key)>=0&&c._operationsClient.getRunningOperations().then(function(b){a.hitch(c,c._loadOperationsList)(b)},function(a){console.error(a)})},!1);window.addEventListener("storage",function(b){b.key==="orionOperations"&&a.hitch(c,c._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,c,d){a.Message=b["Operation status is unknown"];a.Running=!1;a.Failed=!0;a.Result={HttpCode:d?d.xhr.staus:
500,Severity:c,Message:c.Message?c.Message:c};this.writeOperation(a)},_checkOperationsChanges:function(){for(var b=this,c=JSON.parse(localStorage.getItem("orionOperations")||'{"Children": []}'),d=[],f=[],j=0;j<c.Children.length;j++){var k=c.Children[j];if(k.Running==!0&&new Date-new Date(k.lastClientDate?k.lastClientDate:0)>5E3){var l=this._operationsClient.getOperation(k.Location);f.push(l);a.hitch(this,function(f){l.then(function(c){c.lastClientDate=new Date;a.hitch(b,b.writeOperation)(c)},function(k,
i){if(k.status==404)return d.push(f),k;a.hitch(b,b._markOperationAsFailed(c.Children[f],k,i))})})(j)}!k.Running&&new Date-new Date(k.lastClientDate?k.lastClientDate:0)>3E5&&d.push(j)}(new a.DeferredList(f)).addBoth(function(){if(d.length>0){c.lastClientDate=new Date;for(var f=d.length-1;f>=0;f--)c.Children.splice(d[f],1);localStorage.setItem("orionOperations",JSON.stringify(c));a.hitch(b,b._generateOperationsInfo)(c)}window.setTimeout(function(){a.hitch(b,b._checkOperationsChanges())},5E3)})},_openOperationsPopup:function(){try{dijit.popup.open({popup:this._operationsDialog,
around:this._progressPane})}catch(a){}dijit.focus(this._operationsDialog.domNode)},_switchIconTo:function(b){this._lastIconClass&&a.removeClass(this._progressPane,this._lastIconClass);this._lastIconClass=b;a.addClass(this._progressPane,this._lastIconClass)},_generateOperationsInfo:function(c){this._operationsDialog.setOperations(c,this._myOperations);if(!c.Children||c.Children.length==0)this._switchIconTo("progressPane_empty"),this._progressPane.title=b.Operations,this._progressPane.alt=b.Operations,
a.hasAttr(this._progressPane,"aria-valuetext")&&a.removeAttr(this._progressPane,"aria-valuetext");else{for(var d="",f=0;f<c.Children.length;f++){var i=c.Children[f];if(this._myOperations[i.Id]&&i.Running==!0){d="running";break}}if(d===""&&this._lastOperation!=null&&this._lastOperation.Result)switch(this._operationsDialog.parseProgressResult(this._lastOperation.Result).Severity){case "Warning":d!=="error"&&(d="warning");break;case "Error":d="error"}switch(d){case "running":this._progressPane.title=
b["Operations running"];this._progressPane.alt=b["Operations running"];a.attr(this._progressPane,"aria-valuetext",b["Operations running"]);this._switchIconTo("progressPane_running");break;case "warning":this._progressPane.title=b["Some operations finished with warning"];this._progressPane.alt=b["Some operations finished with warning"];a.attr(this._progressPane,"aria-valuetext",b["Some operations finished with warning"]);this._switchIconTo("progressPane_warning");break;case "error":this._progressPane.title=
b["Some operations finished with error"];this._progressPane.alt=b["Some operations finished with error"];a.attr(this._progressPane,"aria-valuetext",b["Some operations finished with error"]);this._switchIconTo("progressPane_error");break;default:this._progressPane.title=b.Operations,this._progressPane.alt=b.Operations,a.hasAttr(this._progressPane,"aria-valuetext")&&a.removeAttr(this._progressPane,"aria-valuetext"),this._switchIconTo("progressPane_operations")}}},followOperation:function(b,c,d){b.Id&&
(this._myOperations[b.Id]=!0);var f=c?c:new a.Deferred;this.writeOperation(b);var j=this;if(b&&b.Location&&b.Running==!0)window.setTimeout(function(){j._operationsClient.getOperation(b.Location).then(function(c){a.hitch(j,j.followOperation(c,f,b.Location))},function(c,d){a.hitch(j,j.setProgressResult)({Severity:"Error",Message:c});a.hitch(j,j._markOperationAsFailed(b,c,d));f.errback(c,d)})},2E3);else if(b&&b.Result)j._serviceRegistry.getService("orion.page.message").setProgressMessage(""),c=this._operationsDialog.parseProgressResult(b.Result).Severity,
c=="Error"||c=="Warning"?(b.Result.failedOperation={Location:d,Id:b.Id,Name:b.Name},f.callback(b),setTimeout(function(){j._myOperations[b.Id]&&a.hitch(j,j._openOperationsPopup)()},10)):f.callback(b),!b.Failed&&b.Idempotent==!0&&window.setTimeout(function(){a.hitch(j,j.removeOperation)(d,b.Id)},5E3);return f},removeOperation:function(b,c){that=this;if(c){if(this._lastOperation!=null&&this._lastOperation.Id===c)this._lastOperation=null;delete this._myOperations[c]}a.hitch(that._operationsClient,that._operationsClient.removeOperation)(b).then(function(){a.hitch(that,
that.removeOperationFromTheList)(c)})},removeOperationFromTheList:function(a){if(this._lastOperation!=null&&this._lastOperation.Id===a)this._lastOperation=null;delete this._myOperations[a];for(var b=JSON.parse(localStorage.getItem("orionOperations")||'{"Children": []}'),c=0;c<b.Children.length;c++){var d=b.Children[c];if(d.Id&&d.Id===a){b.Children.splice(c,1);break}}localStorage.setItem("orionOperations",JSON.stringify(b));this._generateOperationsInfo(b)},removeCompletedOperations:function(){for(var a=
JSON.parse(localStorage.getItem("orionOperations")||'{"Children": []}'),b=a.Children.length-1;b>=0;b--)a.Children[b].Running||a.Children.splice(b,1);localStorage.setItem("orionOperations",JSON.stringify(a));this._generateOperationsInfo(a)},setProgressResult:function(a){this._serviceRegistry.getService("orion.page.message").setProgressResult(a)},showWhile:function(b,c){c&&this._serviceRegistry.getService("orion.page.message").setProgressMessage(c);var d=this;return b.then(function(b){if(b&&b.Location&&
b.Message&&b.Running)return a.hitch(d,d.followOperation)(b,null,b.Location);d._serviceRegistry.getService("orion.page.message").setProgressMessage("");return b},function(b){a.hitch(d,d.setProgressResult)(b);return b})},followTopic:function(a,b){this._topicListeners[a]||(this._topicListeners[a]=[]);this._topicListeners[a].push(b)},writeOperation:function(a){this._lastOperation=a=JSON.parse(JSON.stringify(a));for(var b=JSON.parse(localStorage.getItem("orionOperations")||'{"Children": []}'),c=0;c<b.Children.length;c++){var d=
b.Children[c];if(d.Id&&d.Id===a.Id){b.Children.splice(c,1);break}}!a.Running&&!a.Failed&&delete a.Result;a.lastClientDate=new Date;b.Children.push(a);b.lastClientDate=new Date;localStorage.setItem("orionOperations",JSON.stringify(b));this._generateOperationsInfo(b)}};f.prototype.constructor=f;return{ProgressService:f}});
define("orion/auth","i18n!orion/nls/messages,dojo,dijit,orion/globalCommands,dojo/date/locale,orion/widgets/LoginDialog".split(","),function(b,c,a,d){var f,e={};c.addOnLoad(function(){window.dojo=c;window.eclipse=window.eclipse||{};eclipse.globalCommandUtils=d});return{handleAuthenticationError:function(c,h){if(c.status===403){typeof f==="undefined"&&(f=new a.Dialog({title:b["Forbidden access"]}));var i=c.message;c.responseText&&(i=JSON.parse(c.responseText).Message||c.message);f.set("content",i);
f.show()}else if(c.status===401)try{var j=JSON.parse(c.responseText);if(!j.SignInKey)return j;var k=localStorage.getItem(j.SignInKey),l=function(){var a=localStorage.getItem(j.SignInKey);k!==a&&(window.removeEventListener("storage",l,!1),delete e[j.SignInKey],d.setPendingAuthentication(e),d.authenticatedService(j.SignInKey),h&&h())};window.addEventListener("storage",l,!1);j.SignInKey&&(e[j.SignInKey]=j,d.setPendingAuthentication(e))}catch(m){}else try{return JSON.parse(c.responseText)}catch(n){return{Message:c.Message,
HttpCode:c.status}}}}});
define("orion/fileClient",["i18n!orion/navigate/nls/messages","orion/Deferred","orion/auth"],function(b,c,a){function d(d,e,f){if(!d[e])throw e+b[" is not supportted in this file system"];var j=new c;d[e].apply(d,f).then(function(a){j.resolve(a)},function(b){b.status===401?a.handleAuthenticationError(b,function(){d[e].apply(d,f).then(function(a){j.resolve(a)},function(a){j.reject(a)})}):j.reject(b)});return j}function f(a,e,i,j){if(!a.readBlob)throw b["source file service does not support binary read"];if(!i.writeBlob)throw b["target file service does not support binary write"];
if(e[e.length-1]!=="/")return d(a,"readBlob",[e]).then(function(a){return d(i,"writeBlob",[j,a])});var k=j.substring(0,j.length-1),l=decodeURIComponent(k.substring(k.lastIndexOf("/")+1)),k=k.substring(0,k.lastIndexOf("/")+1);return d(i,"createFolder",[k,l]).then(function(){},function(){}).then(function(){e.indexOf("/")===0&&(e+="?depth=1");return d(a,"fetchChildren",[e]).then(function(b){for(var d=[],e=0;e<b.length;++e){var h=b[e].Location,k=h;b[e].Directory&&(k=h.substring(0,h.length-1));k=decodeURIComponent(k.substring(k.lastIndexOf("/")+
1));k=j+encodeURIComponent(k);b[e].Directory&&(k+="/");d[e]=f(a,h,i,k)}return(new c).all(d)})})}function e(a,d){function e(a){var d=new c;d.reject(b["No Matching FileService for location:"]+a);return d}var f=a.getServiceReferences("orion.core.file"),k=f;if(d)for(var k=[],l=0;l<f.length;++l)d(f[l])&&k.push(f[l]);for(var m=[],n=[],o=[],p=[],r={fetchChildren:function(){var a=new c;a.resolve(p);return a},createWorkspace:function(){var a=new c;a.reject(b["no file service"]);return a},loadWorkspaces:function(){var a=
new c;a.reject(b["no file service"]);return a},loadWorkspace:function(){var a=new c;window.setTimeout(function(){a.resolve({Directory:!0,Length:0,LocalTimeStamp:0,Name:b["File Servers"],Location:"/",Children:p,ChildrenLocation:"/"})},100);return a},search:e,createProject:e,createFolder:e,createFile:e,deleteFile:e,moveFile:e,copyFile:e,read:e,write:e},f=0;f<k.length;++f)p[f]={Directory:!0,Length:0,LocalTimeStamp:0,Location:k[f].getProperty("top"),ChildrenLocation:k[f].getProperty("top"),Name:k[f].getProperty("Name")},
l=k[f].getProperty("pattern")||".*",l[0]!=="^"&&(l="^"+l),m[f]=RegExp(l),n[f]=a.getService(k[f]),o[f]=k[f].getProperty("Name");this._getServiceIndex=function(a){if(a==="/")return-1;else if(!a||a.length&&a.length===0)return n[0]?0:-1;for(var c=0;c<m.length;++c)if(m[c].test(a))return c;throw b["No Matching FileService for location:"]+a;};this._getService=function(a){a=this._getServiceIndex(a);return a===-1?r:n[a]};this._getServiceName=function(a){a=this._getServiceIndex(a);return a===-1?r.Name:o[a]}}
e.prototype={fileServiceName:function(a){return this._getServiceName(a)},fetchChildren:function(a){return d(this._getService(a),"fetchChildren",arguments)},createWorkspace:function(a){return d(this._getService(),"createWorkspace",arguments)},loadWorkspaces:function(){return d(this._getService(),"loadWorkspaces",arguments)},loadWorkspace:function(a){return d(this._getService(a),"loadWorkspace",arguments)},createProject:function(a,b,c,e){return d(this._getService(a),"createProject",arguments)},createFolder:function(a,
b){return d(this._getService(a),"createFolder",arguments)},createFile:function(a,b){return d(this._getService(a),"createFile",arguments)},deleteFile:function(a){return d(this._getService(a),"deleteFile",arguments)},moveFile:function(a,b,c){var e=this._getService(a),k=this._getService(b);if(e===k)return d(e,"moveFile",arguments);var l=a[a.length-1]==="/",m=b;m[m.length-1]!=="/"&&(m+="/");if(c)m+=encodeURIComponent(c);else{var n=a;l&&(n=n.substring(0,n.length-1));m+=n.substring(n.lastIndexOf("/")+1)}l&&
m[m.length-1]!=="/"&&(m+="/");return f(e,a,k,m).then(function(){return d(e,"deleteFile",[a])})},copyFile:function(a,b,c){var e=this._getService(a),k=this._getService(b);if(e===k)return d(e,"copyFile",arguments);var l=a[a.length-1]==="/",m=b;m[m.length-1]!=="/"&&(m+="/");if(c)m+=encodeURIComponent(c);else{var n=a;l&&(n=n.substring(0,n.length-1));m+=n.substring(n.lastIndexOf("/")+1)}l&&m[m.length-1]!=="/"&&(m+="/");return f(e,a,k,m)},read:function(a,b){return d(this._getService(a),"read",arguments)},
write:function(a,b,c){return d(this._getService(a),"write",arguments)},remoteImport:function(a,b){return d(this._getService(a),"remoteImport",arguments)},remoteExport:function(a,b){return d(this._getService(a),"remoteExport",arguments)},search:function(a,b){return d(this._getService(a),"search",arguments)}};e.prototype.constructor=e;return{FileClient:e}});
define("orion/operationsClient",["i18n!orion/operations/nls/messages","orion/auth","orion/Deferred"],function(b,c,a){function d(b,d,e){var f=new a;b[d].apply(b,e).then(function(a){f.resolve(a)},function(a){a.status===401?c.handleAuthenticationError(a,function(){b[d].apply(b,e).then(function(a){f.resolve(a)},function(a){f.reject(a)})}):f.reject(a)});return f}function f(a){this._location=a}function e(){var c=new a;c.reject(b["No Matching OperationService for location:"]+this._location);return c}function g(a){this._services=
[];this._patterns=[];this._operationListeners=[];this._currentLongpollingIds=[];for(var b=a.getServiceReferences("orion.core.operation"),c=0;c<b.length;c++){var d=a.getService(b[c]);this._services[c]=d;d=b[c].getProperty("pattern")||".*";d[0]!=="^"&&(d="^"+d);this._patterns[c]=RegExp(d)}this._getService=function(a){if(!a)return this._services[0];for(var b=0;b<this._patterns.length;++b)if(this._patterns[b].test(a))return this._services[b];return new f(a)}}function h(a){for(var b={Children:[]},c=0;c<
a.length;c++)b.Children=b.Children.concat(a[c].Children);return b}function i(a,b,c){var e=this,f={Longpolling:!0};if(c)f.LongpollingId=c;d(a,"getOperations",[f]).then(function(d){c&&e._currentLongpollingIds.indexOf(c)<0||(b(d,c),d.LongpollingId?(e._currentLongpollingIds.push(d.LongpollingId),i.bind(e)(a,b,d.LongpollingId)):i.bind(e)(a,b,c))},function(d){c&&e._currentLongpollingIds.indexOf(c)<0||("timeout"===d.dojoType?i.bind(e)(a,b,c):setTimeout(function(){i.bind(e)(a,b,c)},2E3))})}function j(a){for(var b=
0;b<this._operationListeners.length;b++)this._operationListeners[b](a)}f.prototype={getOperation:e,getOperations:e,removeCompletedOperations:e,removeOperation:e,cancelOperation:e};f.prototype.constructor=f;g.prototype={getOperations:function(){for(var b=new a,c=[],e=0;e<this._services.length;e++)c[e]=d(this._services[e],"getOperations",[void 0]);(new a).all(c).then(function(a){b.resolve(h(a))});return b},getRunningOperations:function(){for(var b=new a,c=[],e=0;e<this._services.length;e++)c[e]=d(this._services[e],
"getOperations",[{RunningOnly:!0}]);(new a).all(c).then(function(a){b.resolve(h(a))});return b},getOperation:function(a){return d(this._getService(a),"getOperation",arguments)},removeCompletedOperations:function(){for(var b=[],c=0;c<this._services.length;c++)b[c]=d(this._services[c],"removeCompletedOperations");return(new a).all(b)},removeOperation:function(a){return d(this._getService(a),"removeOperation",arguments)},cancelOperation:function(a){return d(this._getService(a),"cancelOperation",arguments)},
addOperationChangeListener:function(a){this._operationListeners.push(a);if(this._operationListeners.length===1){if(this._services.length<1)throw b["No operations services registered."];for(a=0;a<this._services.length;a++)i.bind(this)(this._services[a],j.bind(this))}},removeOperationChangeListener:function(a){for(var b=0;b<this._operationListeners.length;b++)if(this._operationListeners[b]===a){this._operationListeners.splice(b,1);break}if(this._operationListeners.length===0)this._currentLongpollingIds=
[]},resetChangeListeners:function(){this._currentLongpollingIds=[];if(this._services.length<1)throw b["No operations services registered."];for(var a=0;a<this._services.length;a++)i.bind(this)(this._services[a],j.bind(this))}};g.prototype.constructor=g;return{OperationsClient:g}});
define("orion/searchClient","i18n!orion/search/nls/messages,require,dojo,dijit,orion/auth,orion/util,orion/searchUtils,dijit/form/Button,dijit/layout/BorderContainer,dijit/layout/ContentPane".split(","),function(b,c,a,d,f,e,g){function h(a){this.registry=a.serviceRegistry;this._commandService=a.commandService;(this._fileService=a.fileService)||console.error("No file service on search client")}h.prototype={search:function(a,b,c){b=g.parseQueryStr(a);try{this._fileService.search(b.location,a).then(function(a){var b=
a.responseHeader.params.q,b=b.substring(b.indexOf("}")+1),b=b.substring(b.indexOf(":")+1);c(function(a){for(var b=[],c=0;c<a.response.docs.length;c++){var d=a.response.docs[c];b.push({name:d.Name,path:d.Location,folderName:g.path2FolderName(d.Path,d.Name),directory:d.Directory,lineNumber:d.LineNumber})}return b}(a),b)},function(a){c(null,null,a)})}catch(d){this.registry.getService("orion.page.message").setErrorMessage(d)}},handleError:function(b,c){console.error(b);var d=document.createTextNode(b);
a.place(d,c,"only");return b},setLocationByMetaData:function(c,d){var e="",f=null;d&&c&&c.Parents&&c.Parents.length>0?f=d.index==="last"?c.Parents[c.Parents.length-1]:c.Parents[0]:c&&c.Directory&&c.Location&&c.Parents&&(f=c);f?(this.setLocationByURL(f.Location),e=f.Name):c&&(e=this._fileService.fileServiceName(c&&c.Location));f=a.byId("search");e||(e="");if(f&&f.placeholder)f.value="",f.placeholder=e.length>23?b["Search "]+e.substring(0,20)+"...":b["Search "]+e;if(f&&f.title)f.title=b["Type a keyword or wild card to search in "]+
e},setLocationByURL:function(a){this.location=a},createSearchQuery:function(a,b,c,d){c||(c="Path");c+=" asc";return b?(a=/\*$/.test(b)?"":"*",g.generateSearchQuery({sort:c,rows:100,start:0,searchStr:"NameLower:"+this._luceneEscape(b,!0)+a})):g.generateSearchQuery({sort:c,rows:40,start:0,searchStr:this._luceneEscape(a,!0),location:d?"":this.location})},_luceneEscape:function(a,b){for(var c="",d='+-&|!(){}[]^"~:\\'+(!b?"*?":""),e=0;e<a.length;e++){var f=a.charAt(e);d.indexOf(f)>=0&&(c+="\\");c+=f}return c},
defaultRenderer:{makeRenderFunction:function(d,e,f,g){return function(h,n,o){if(o)a.place("<div>"+b["Search failed."]+"</div>",d,"only"),typeof f==="function"&&f(d);else{var o=function(){function a(b,c){var d=c.folderName?c.folderName:c.path,e=document.createElement("span");e.id=d.replace(/[^a-zA-Z0-9_\.:\-]/g,"");e.appendChild(document.createTextNode(" - "+d+" "));b.appendChild(e)}var b={};return function(c,d){var e=d.name;if(b.hasOwnProperty(e)){a(c,d);var f=b[e];typeof f==="function"&&(b[e]=null,
f())}else b[e]=function(){a(c,d)}}}(),p=!1;a.empty(d);if(h&&h.length>0){var r=document.createElement("table");r.setAttribute("role","presentation");for(var s=0;s<h.length;s++){var q=h[s],t;if(!p&&(p=!0,e))t=r.insertRow(0).insertCell(0),t.innerHTML=e;t=r.insertRow(-1).insertCell(0);t.colspan=2;g&&g(t);var u=document.createElement("a");a.place(document.createTextNode(q.name),u);q.LineNumber&&a.place(document.createTextNode(" (Line "+q.LineNumber+")"),u);var v=q.location;q.isExternalResource?v=q.path:
(v=q.directory?c.toUrl("navigate/table.html")+"#"+q.path:c.toUrl("edit/edit.html")+"#"+q.path,v==="#"&&(v=""));u.setAttribute("href",v);u.setAttribute("aria-describedby",(q.folderName?q.folderName:q.path).replace(/[^a-zA-Z0-9_\.:\-]/g,""));a.style(u,"verticalAlign","middle");t.appendChild(u);o(t,q)}a.place(r,d,"last");typeof f==="function"&&f(d)}!p&&n&&(h=a.place("<div>"+b["No matches found for "]+"</div>",d,"only"),h=a.create("b",null,h,"last"),a.place(document.createTextNode(n),h,"only"),typeof f===
"function"&&f(d))}}}}};h.prototype.constructor=h;return{Searcher:h}});
define("orion/git/gitClient",["require","dojo","orion/auth"],function(b,c,a){var d=d||{};d.GitService=function(){function d(a){if(a)this._serviceRegistry=a,this._serviceRegistration=a.registerService("orion.git.provider",this),this._sshService=a.getService("orion.net.ssh")}d.prototype={checkGitService:function(){},cloneGitRepository:function(a,d,f,i,j,k,l,m,n){var o=this,p={};if(a)p.Name=a;if(f)p.Path=f;if(d)p.GitUrl=d;p.Location=i;if(j)p.GitSshUsername=j;if(k)p.GitSshPassword=k;if(l)p.GitSshKnownHost=
l;if(m)p.GitSshPrivateKey=m;if(n)p.GitSshPassphrase=n;var a=b.toUrl("gitapi/clone/._"),a=a.substring(0,a.length-2),r=new c.Deferred;c.xhrPost({url:a,headers:{"Orion-Version":"1"},postData:c.toJson(p),handleAs:"json",timeout:15E3,load:function(a,b){c.hitch(o,o._getGitServiceResponse)(r,a,b)},error:function(a,b){return c.hitch(o,o._handleGitServiceResponseError)(r,this,a,b)}});return r},removeGitRepository:function(a){var b=this,d=new c.Deferred;c.xhrDelete({url:a,headers:{"Orion-Version":"1"},handleAs:"json",
timeout:5E3,load:function(a,e){c.hitch(b,b._getGitServiceResponse)(d,a,e)},error:function(a,e){return c.hitch(b,b._handleGitServiceResponseError)(d,this,a,e)}});return d},getDiffContent:function(a){var b=this,d=new c.Deferred;c.xhrGet({url:a,headers:{"Orion-Version":"1"},content:{parts:"diff"},handleAs:"text",timeout:15E3,load:function(a,e){c.hitch(b,b._getGitServiceResponse)(d,a,e)},error:function(a,e){return c.hitch(b,b._handleGitServiceResponseError)(d,this,a,e,c.xhrGet)}});return d},getDiffFileURI:function(a){var b=
this,d=new c.Deferred;c.xhrGet({url:a,headers:{"Orion-Version":"1"},content:{parts:"uris"},handleAs:"json",timeout:15E3,load:function(a,e){c.hitch(b,b._getGitServiceResponse)(d,a,e)},error:function(a,e){c.hitch(b,b._handleGitServiceResponseError)(d,this,a,e,c.xhrGet)}});return d},getGitStatus:function(a){var b=this,d=new c.Deferred;c.xhrGet({url:a,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,load:function(a,e){c.hitch(b,b._getGitServiceResponse)(d,a,e)},error:function(a,e){c.hitch(b,
b._handleGitServiceResponseError)(d,this,a,e,c.xhrGet)}});return d},stage:function(a){var b=this,d=new c.Deferred;c.xhrPut({url:a,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,load:function(a,e){c.hitch(b,b._getGitServiceResponse)(d,a,e)},error:function(a,e){c.hitch(b,b._handleGitServiceResponseError)(d,this,a,e)}});return d},stageMultipleFiles:function(a,b){var d=this,f=new c.Deferred;c.xhrPut({url:a,headers:{"Orion-Version":"1"},putData:c.toJson({Path:b}),handleAs:"json",timeout:15E3,
load:function(a,b){c.hitch(d,d._getGitServiceResponse)(f,a,b)},error:function(a,b){c.hitch(d,d._handleGitServiceResponseError)(f,this,a,b)}});return f},unstageAll:function(a,b){var d=this,f=new c.Deferred;c.xhrPost({url:a,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,postData:c.toJson({Reset:b}),load:function(a,b){c.hitch(d,d._getGitServiceResponse)(f,a,b)},error:function(a,b){c.hitch(d,d._handleGitServiceResponseError)(f,this,a,b)}});return f},unstage:function(a,b){var d=this,f=new c.Deferred;
c.xhrPost({url:a,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,postData:c.toJson({Path:b}),load:function(a,b){c.hitch(d,d._getGitServiceResponse)(f,a,b)},error:function(a,b){c.hitch(d,d._handleGitServiceResponseError)(f,this,a,b)}});return f},checkoutPath:function(a,b){var d=this,f=new c.Deferred;c.xhrPut({url:a,headers:{"Orion-Version":"1"},putData:c.toJson({Path:b,RemoveUntracked:"true"}),handleAs:"json",timeout:15E3,load:function(a,b){c.hitch(d,d._getGitServiceResponse)(f,a,b)},error:function(a,
b){return c.hitch(d,d._handleGitServiceResponseError)(f,this,a,b)}});return f},commitAll:function(a,b,d){var f=this,j=new c.Deferred;c.xhrPost({url:a,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,postData:d,load:function(a,b){c.hitch(f,f._getGitServiceResponse)(j,a,b)},error:function(a,b){c.hitch(f,f._handleGitServiceResponseError)(j,this,a,b)}});return j},getGitClone:function(a){var b=this,d=new c.Deferred;c.xhrGet({url:a,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(a,
e){c.hitch(b,b._getGitServiceResponse)(d,a,e)},error:function(a,e){c.hitch(b,b._handleGitServiceResponseError)(d,this,a,e,c.xhrGet)}});return d},getGitCloneConfig:function(a){var b=this,d=new c.Deferred;c.xhrGet({url:a,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(a,e){c.hitch(b,b._getGitServiceResponse)(d,a,e)},error:function(a,e){c.hitch(b,b._handleGitServiceResponseError)(d,this,a,e,c.xhrGet)}});return d},getGitBranch:function(a){var b=this,d=new c.Deferred;c.xhrGet({url:a,
headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(a,e){c.hitch(b,b._getGitServiceResponse)(d,a,e)},error:function(a,e){c.hitch(b,b._handleGitServiceResponseError)(d,this,a,e,c.xhrGet)}});return d},getGitRemote:function(a){var b=this,d=new c.Deferred;c.xhrGet({url:a,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(a,e){c.hitch(b,b._getGitServiceResponse)(d,a,e)},error:function(a,e){c.hitch(b,b._handleGitServiceResponseError)(d,this,a,e,c.xhrGet)}});return d},
checkoutBranch:function(a,b){var d=this,f=new c.Deferred;c.xhrPut({url:a,headers:{"Orion-Version":"1"},putData:c.toJson({Branch:b}),handleAs:"json",timeout:5E3,load:function(a,b){c.hitch(d,d._getGitServiceResponse)(f,a,b)},error:function(a,b){c.hitch(d,d._handleGitServiceResponseError)(f,this,a,b)}});return f},resetIndex:function(a,b){var d=this,f=new c.Deferred;c.xhrPost({url:a,headers:{"Orion-Version":"1"},postData:c.toJson({Commit:b,Reset:"HARD"}),handleAs:"json",timeout:5E3,load:function(a,b){c.hitch(d,
d._getGitServiceResponse)(f,a,b)},error:function(a,b){c.hitch(d,d._handleGitServiceResponseError)(f,this,a,b)}});return f},addBranch:function(a,b,d){var f=this,j={};if(b)j.Name=b;if(d)j.Branch=d;var k=new c.Deferred;c.xhrPost({url:a,headers:{"Orion-Version":"1"},postData:c.toJson(j),handleAs:"json",timeout:5E3,load:function(a,b){c.hitch(f,f._getGitServiceResponse)(k,a,b)},error:function(a,b){c.hitch(f,f._handleGitServiceResponseError)(k,this,a,b)}});return k},removeBranch:function(a){var b=this,d=
new c.Deferred;c.xhrDelete({url:a,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(a,e){c.hitch(b,b._getGitServiceResponse)(d,a,e)},error:function(a,e){c.hitch(b,b._handleGitServiceResponseError)(d,this,a,e)}});return d},addRemote:function(a,b,d){var f=this,j=new c.Deferred;c.xhrPost({url:a,headers:{"Orion-Version":"1"},putData:c.toJson({Remote:b,RemoteURI:d}),handleAs:"json",timeout:5E3,load:function(a,b){c.hitch(f,f._getGitServiceResponse)(j,a,b)},error:function(a,b){c.hitch(f,
f._handleGitServiceResponseError)(j,this,a,b)}});return j},removeRemote:function(a){var b=this,d=new c.Deferred;c.xhrDelete({url:a,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(a,e){c.hitch(b,b._getGitServiceResponse)(d,a,e)},error:function(a,e){c.hitch(b,b._handleGitServiceResponseError)(d,this,a,e)}});return d},doGitLog:function(a){var b=this,d=new c.Deferred;c.xhrGet({url:a,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(a,e){c.hitch(b,b._getGitServiceResponse)(d,
a,e)},error:function(a,e){c.hitch(b,b._handleGitServiceResponseError)(d,this,a,e,c.xhrGet)}});return d},getDiff:function(a,b){var d=this,f=new c.Deferred;c.xhrPost({url:a,headers:{"Orion-Version":"1"},postData:c.toJson({New:b}),handleAs:"json",timeout:5E3,load:function(a,b){f.callback(b.xhr.getResponseHeader("Location"))},error:function(a,b){c.hitch(d,d._handleGitServiceResponseError)(f,this,a,b,c.xhrPost)}});return f},doFetch:function(a,b,d,f,j,k,l){var m=this,n=new c.Deferred;c.xhrPost({url:a,headers:{"Orion-Version":"1"},
postData:c.toJson({Fetch:"true",Force:b,GitSshUsername:d,GitSshPassword:f,GitSshKnownHost:j,GitSshPrivateKey:k,GitSshPassphrase:l}),handleAs:"json",timeout:5E3,load:function(a,b){c.hitch(m,m._getGitServiceResponse)(n,a,b)},error:function(a,b){c.hitch(m,m._handleGitServiceResponseError)(n,this,a,b)}});return n},doPull:function(a,b,d,f,j,k,l){var m=this,n=new c.Deferred;c.xhrPost({url:a,headers:{"Orion-Version":"1"},postData:c.toJson({Pull:"true",Force:b,GitSshUsername:d,GitSshPassword:f,GitSshKnownHost:j,
GitSshPrivateKey:k,GitSshPassphrase:l}),handleAs:"json",timeout:5E3,load:function(a,b){c.hitch(m,m._getGitServiceResponse)(n,a,b)},error:function(a,b){c.hitch(m,m._handleGitServiceResponseError)(n,this,a,b)}});return n},doMerge:function(a,b){var d=this,f=new c.Deferred;c.xhrPost({url:a,headers:{"Orion-Version":"1"},postData:c.toJson({Merge:b}),handleAs:"json",timeout:5E3,load:function(a,b){var e=new c.Deferred;c.hitch(d,d._getGitServiceResponse)(e,a,b);e.then(function(a){f.callback({jsonData:a})})},
error:function(a,b){c.hitch(d,d._handleGitServiceResponseError)(f,this,a,b)}});return f},doCherryPick:function(a,b){var d=this,f=new c.Deferred;c.xhrPost({url:a,headers:{"Orion-Version":"1"},postData:c.toJson({"Cherry-Pick":b}),handleAs:"json",timeout:5E3,load:function(a,b){c.hitch(d,d._getGitServiceResponse)(f,a,b)},error:function(a,b){c.hitch(d,d._handleGitServiceResponseError)(f,this,a,b)}});return f},doRebase:function(a,b,d){var f=this,j={};j.Rebase=b;if(d)j.Operation=d;var k=new c.Deferred;c.xhrPost({url:a,
headers:{"Orion-Version":"1"},postData:c.toJson(j),handleAs:"json",timeout:5E3,load:function(a,b){c.hitch(f,f._getGitServiceResponse)(k,a,b)},error:function(a,b){c.hitch(f,f._handleGitServiceResponseError)(k,this,a,b)}});return k},doPush:function(a,b,d,f,j,k,l,m,n){var o=this,p=new c.Deferred;c.xhrPost({url:a,headers:{"Orion-Version":"1"},postData:c.toJson({PushSrcRef:b,PushTags:d,Force:f,GitSshUsername:j,GitSshPassword:k,GitSshKnownHost:l,GitSshPrivateKey:m,GitSshPassphrase:n}),handleAs:"json",timeout:5E3,
load:function(a,b){c.hitch(o,o._getGitServiceResponse)(p,a,b)},error:function(a,b){c.hitch(o,o._handleGitServiceResponseError)(p,this,a,b)}});return p},getLog:function(a,b){var d=this,f=new c.Deferred,j=new c.Deferred;c.xhrPost({url:a,headers:{"Orion-Version":"1"},postData:c.toJson({New:b}),handleAs:"json",timeout:5E3,load:function(a,b){j.callback(b.xhr.getResponseHeader("Location"))},error:function(a,b){c.hitch(d,d._handleGitServiceResponseError)(j,this,a,b,c.xhrPost)}});j.then(function(a){c.xhrGet({url:a,
headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(a,b){c.hitch(d,d._getGitServiceResponse)(f,a,b)},error:function(a,b){c.hitch(d,d._handleGitServiceResponseError)(f,this,a,b,c.xhrGet)}})});return f},getDefaultRemoteBranch:function(a){var b=this,d=new c.Deferred,f=new c.Deferred;c.xhrGet({url:a,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(a,d){c.hitch(b,b._getGitServiceResponse)(f,a,d)},error:function(a,d){c.hitch(b,b._handleGitServiceResponseError)(f,
this,a,d,c.xhrGet)}});f.then(function(a){if(a.Children[0]==null)return null;c.xhrGet({url:a.Children[0].Location,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(a,e){c.hitch(b,b._getGitServiceResponse)(d,a,e)},error:function(a,e){c.hitch(b,b._handleGitServiceResponseError)(d,this,a,e,c.xhrGet)}})});return d},doAddTag:function(a,b){var d=this,f=new c.Deferred;c.xhrPut({url:a,headers:{"Orion-Version":"1"},putData:c.toJson({Name:b}),handleAs:"json",timeout:5E3,load:function(a,
b){c.hitch(d,d._getGitServiceResponse)(f,a,b)},error:function(a,b){c.hitch(d,d._handleGitServiceResponseError)(f,this,a,b)}});return f},doRemoveTag:function(a){var b=this,d=new c.Deferred;c.xhrDelete({url:a,headers:{"Orion-Version":"1"},handleAs:"json",timeout:5E3,load:function(a,e){c.hitch(b,b._getGitServiceResponse)(d,a,e)},error:function(a,e){c.hitch(b,b._handleGitServiceResponseError)(d,this,a,e)}});return d},checkoutTag:function(a,b,d){var f=this,j=new c.Deferred;c.xhrPut({url:a,headers:{"Orion-Version":"1"},
putData:c.toJson({Tag:b,Branch:d}),handleAs:"json",timeout:5E3,load:function(a,b){c.hitch(f,f._getGitServiceResponse)(j,a,b)},error:function(a,b){c.hitch(f,f._handleGitServiceResponseError)(j,this,a,b)}});return j},addCloneConfigurationProperty:function(a,b,d){var f=this,j=new c.Deferred;c.xhrPost({url:a,headers:{"Orion-Version":"1"},postData:c.toJson({Key:b,Value:d}),handleAs:"json",timeout:15E3,load:function(a,b){c.hitch(f,f._getGitServiceResponse)(j,a,b)},error:function(a,b){c.hitch(f,f._handleGitServiceResponseError)(j,
this,a,b)}});return j},editCloneConfigurationProperty:function(a,b){var d=this,f=new c.Deferred;c.xhrPut({url:a,headers:{"Orion-Version":"1"},putData:c.toJson({Value:b}),handleAs:"json",timeout:15E3,load:function(a,b){c.hitch(d,d._getGitServiceResponse)(f,a,b)},error:function(a,b){c.hitch(d,d._handleGitServiceResponseError)(f,this,a,b)}});return f},deleteCloneConfigurationProperty:function(a){var b=this,d=new c.Deferred;c.xhrDelete({url:a,headers:{"Orion-Version":"1"},handleAs:"json",timeout:15E3,
load:function(a,e){c.hitch(b,b._getGitServiceResponse)(d,a,e)},error:function(a,e){c.hitch(b,b._handleGitServiceResponseError)(d,this,a,e)}});return d},_getGitServiceResponse:function(a,b,d){if(d&&d.xhr.status===202)return d=new c.Deferred,d.callback(b),this._serviceRegistry.getService("orion.page.progress").showWhile(d).then(function(b){a.callback(b.Result.Severity=="Ok"?b.Result.JsonData:b.Result)});a.callback(b)},_handleGitServiceResponseError:function(b,d,f,i,j){b||(b=new c.Deferred);if(f.status===
401||f.status===403)return a.handleAuthenticationError(i.xhr,function(){j?j(d).then(function(a,c){b.callback(a,c)},function(a,c){b.errback(a,c)}):b.errback(f)})!=null&&b.errback(f),b;b.errback(f);return b}};return d}();return d});
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(b,c,a){c.declare("orion.git.widgets.ApplyPatchDialog",[a.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:!0,templateString:c.cache("orion",
"git/widgets/templates/ApplyPatchDialog.html"),constructor:function(){this.inherited(arguments);this.options=arguments[0]||{}},postMixInProperties:function(){this.inherited(arguments);this.title=b["Apply Patch"]},postCreate:function(){function b(c){a.byId("files").set("disabled",c);a.byId("applyPatchDialog.uploader").set("disabled",c);a.byId("applyPatchDialog.url").set("disabled",!c)}this.inherited(arguments);c.byId("applyPatchDialog.myForm").action=this.options.diffLocation;c.byId("applyPatchDialog.uploader").url=
this.options.diffLocation;b(!0);c.connect(a.byId("applyPatchDialog.urlRadio"),"onclick",c.hitch(this,function(a){a.target.id==="applyPatchDialog.urlRadio"&&b(!0)}));c.connect(a.byId("applyPatchDialog.fileRadio"),"onclick",c.hitch(this,function(a){a.target.id==="applyPatchDialog.fileRadio"&&b(!1)}));c.connect(a.byId("applyPatchDialog.uploader"),"onError",c.hitch(this,function(){setTimeout(c.hitch(this,function(){this.hide()}),2E3)}));c.connect(a.byId("applyPatchDialog.uploader"),"onComplete",c.hitch(this,
function(){setTimeout(c.hitch(this,function(){this.hide()}),2E3)}));c.connect(a.byId("applyPatchDialog.uploader"),"onKeyPress",function(a){a.keyCode===c.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(b,c,a){c.declare("orion.git.widgets.ContentDialog",[a.Dialog,orion.widgets._OrionDialogMixin],{widgetsInTemplate:!0,templateString:c.cache("orion","git/widgets/templates/ContentDialog.html"),
constructor:function(){this.inherited(arguments);this.options=arguments[0]||{}},postMixInProperties:function(){this.inherited(arguments);this.title=b.Content},postCreate:function(){var a=this;this.inherited(arguments);for(var f=c.byId("div1"),e=c.query(".sectionAnchor"),g=0;g<e.length;g++){var h=e[g];c.create("li",{id:h.id+"Span"},f);var i=c.create("a",{href:window.location.href,title:c.string.substitute(b["Go to ${0} section"],[h.id]),innerHTML:h.id+"\n"},h.id+"Span");c.connect(i,"onclick",c.hitch(h,
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(b,c,a,d,f,e,g){var h={};(function(){function i(a){var b;
try{b=JSON.parse(a.responseText)}catch(c){b={Result:a.responseText}}b.HttpCode=a.status;return b}var j=!1;h.updateNavTools=function(b,c,d,e,f,g){var h=a.byId(d);if(h)a.empty(h);else throw"could not find toolbar "+d;var i=b.getService("orion.page.command");i.renderCommands(d,h,f,c,"button");if(g&&(d=a.byId(g)))a.empty(d),i.renderCommands(g,d,f,c,"button");if(e&&(f=a.byId(e)))a.empty(e),i.renderCommands(e,f,null,c,"button");j||(j=!0,b.getService("orion.page.selection").addEventListener("selectionChanged",
function(b,d){var f=a.byId(e);f&&(a.empty(f),i.renderCommands(e,f,d,c,"button"))}))};h.getNewItemName=function(b,c,d,e,g,h,i,j){var q,t;if(d)q=a.byId(e);else if(c.makeNewItemPlaceHolder!=null)(b=c.makeNewItemPlaceHolder(b,e,i))?(q=b.refNode,t=b.tempNode):q=a.byId(e);q?f.getUserText(e+"EditBox",q,!1,g,a.hitch(this,function(a){a&&(t&&t.parentNode.removeChild(t),h(a))}),void 0,void 0,void 0,j):(e=window.prompt(g))&&h(e)};h.handleKnownHostsError=function(c,d,e,f){if(confirm(a.string.substitute(b["Would you like to add ${0} key for host ${1} to continue operation? Key fingerpt is ${2}."],
[d.KeyType,d.Host,d.HostFingerprint]))){var g=c.getService("orion.net.ssh");g.addKnownHosts(d.Host+" "+d.KeyType+" "+d.HostKey).then(function(){g.getKnownHosts().then(function(a){e.knownHosts=a;f(e)});if(e.failedOperation){var b=c.getService("orion.page.progress");a.hitch(b,b.removeOperation)(e.failedOperation.Location,e.failedOperation.Id)}})}};h.handleSshAuthenticationError=function(b,c,d,e,f){c=new orion.git.widgets.GitCredentialsDialog({title:f,serviceRegistry:b,func:e,errordata:d.errordata,failedOperation:d.failedOperation});
c.startup();c.show();d.failedOperation&&(b=b.getService("orion.page.progress"),a.hitch(b,b.removeOperation)(d.failedOperation.Location,d.failedOperation.Id))};h.getDefaultSshOptions=function(b,c){var d=new a.Deferred,e=b.getService("orion.net.ssh"),f=c&&!c.optionsRequested?c.valueFor("sshuser"):"",g=c&&!c.optionsRequested?c.valueFor("sshpassword"):"";e.getKnownHosts().then(function(a){d.callback({knownHosts:a,gitSshUsername:f,gitSshPassword:g,gitPrivateKey:"",gitPassphrase:""})});return d};h.handleProgressServiceResponse=
function(b,c,d,e,f,g){b&&b.status&&(b=i(b));if(!b||!b.HttpCode)e&&e(b);else switch(b.HttpCode){case 200:case 201:case 202:e&&e(b.Result);break;case 401:if(b.JsonData)c.errordata=b.JsonData;if(b.failedOperation)c.failedOperation=b.failedOperation;a.hitch(this,h.handleSshAuthenticationError)(d,b.JsonData,c,f,g);break;case 400:if(b.JsonData&&b.JsonData.HostKey){if(b.failedOperation)c.failedOperation=b.failedOperation;a.hitch(this,h.handleKnownHostsError)(d,b.JsonData,c,f);break}default:c=[];c.Severity=
"Error";c.HTML=!1;try{c.Message=b.DetailedMessage?b.DetailedMessage:b.Message}catch(j){c.Message=error.message}d.getService("orion.page.message").setProgressResult(c)}};h.gatherSshCredentials=function(c,d,e){var f=new a.Deferred,g=function(a){c.getService("orion.net.ssh").getKnownHosts().then(function(b){f.callback({knownHosts:b,gitSshUsername:a.gitSshUsername,gitSshPassword:a.gitSshPassword,gitPrivateKey:a.gitPrivateKey,gitPassphrase:a.gitPassphrase})})},h=d.errorData;if(h&&h.HostKey)return confirm(a.string.substitute(b["Would you like to add ${0} key for host ${1} to continue operation? Key fingerpt is ${2}."],
[h.KeyType,h.Host,h.HostFingerprint]))&&c.getService("orion.net.ssh").addKnownHosts(h.Host+" "+h.KeyType+" "+h.HostKey).then(function(){g({gitSshUsername:"",gitSshPassword:"",gitPrivateKey:"",gitPassphrase:""})}),f;if(!d.parameters&&!d.optionsRequested)return g({gitSshUsername:"",gitSshPassword:"",gitPrivateKey:"",gitPassphrase:""}),f;if(d.parameters&&!d.optionsRequested)return e=d.parameters?d.parameters.valueFor("sshuser"):"",d=d.parameters?d.parameters.valueFor("sshpassword"):"",g({gitSshUsername:e,
gitSshPassword:d,gitPrivateKey:"",gitPassphrase:""}),f;d=new orion.git.widgets.GitCredentialsDialog({title:e,serviceRegistry:c,func:g,errordata:h});d.startup();d.show();return f};h.handleProgressServiceResponse2=function(b,c,d,e){b&&b.status&&(b=i(b));if(!b||!b.HttpCode)d&&d(b);else switch(b.HttpCode){case 200:case 201:case 202:d&&d(b.Result);break;case 401:b.failedOperation&&(c=c.getService("orion.page.progress"),a.hitch(c,c.removeOperation)(b.failedOperation.Location,b.failedOperation.Id));e(b);
break;case 400:if(b.JsonData&&b.JsonData.HostKey){b.failedOperation&&(c=c.getService("orion.page.progress"),a.hitch(c,c.removeOperation)(b.failedOperation.Location,b.failedOperation.Id));e(b);break}default:e=[];e.Severity="Error";e.HTML=!1;try{e.Message=b.DetailedMessage?b.DetailedMessage:b.Message}catch(f){e.Message=error.message}c.getService("orion.page.message").setProgressResult(e)}};h.createFileCommands=function(f,i,j){function n(a){if(!(a.status===401||a.status===403)){var b=[];b.Severity="Error";
b.HTML=!1;try{var c=JSON.parse(a.responseText);b.Message=c.DetailedMessage?c.DetailedMessage:c.Message}catch(d){b.Message=a.message}f.getService("orion.page.message").setProgressResult(b)}}var o=new d.Command({name:b["Link Repository"],imageClass:"core-sprite-link",id:"eclipse.linkRepository",callback:function(a){var d=new orion.widgets.NewItemDialog({title:b["Link Repository"],label:b["Folder name:"],func:function(d){var e=f.getService("orion.core.file");e.loadWorkspace("").then(function(f){e.createProject(f.Location,
d,a.items.ContentLocation,!1).then(function(a){alert(b["Repository was linked to "]+a.Name);e.read(a.ContentLocation,!0).then(function(a){window.location.replace(c.toUrl("navigate/table.html")+"#"+a.ChildrenLocation)})})})},advanced:!1});d.startup();d.show()},visibleWhen:function(a){return a.ContentLocation?!0:!1}});i.addCommand(o);o=new d.Command({name:b.Checkout,tooltip:b["Checkout the current tag, creating a local branch based on its contents."],imageClass:"git-sprite-checkout",spriteClass:"gitCommandSprite",
id:"eclipse.checkoutTag",callback:function(c){function d(){if(e.Repository)return e.Repository.BranchLocation;for(var a in e.parent.parent.children)if(e.parent.parent.children[a].Name==="Branches")return e.parent.parent.children[a];return e.parent.parent}var e=c.items;h.getNewItemName(e,j,!1,c.domNode.id,"tag_"+e.Name,function(c){if(c||c!=""){var g;g=e.Repository!=null?e.Repository.Location:e.parent.parent.Location;f.getService("orion.page.message").createProgressMonitor(f.getService("orion.git.provider").checkoutTag(g,
e.Name,c),a.string.substitute(b["Checking out tag ${0}"],[c])).deferred.then(function(){a.hitch(j,j.changedItem)(d())},n)}},void 0,!0)},visibleWhen:function(a){return a.Type==="Tag"}});i.addCommand(o);o=new d.Command({name:b.Checkout,tooltip:b["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(c){var d=c.items,e=f.getService("orion.git.provider"),g=f.getService("orion.page.message"),h=new a.Deferred;g.createProgressMonitor(h,d.Name?a.string.substitute(b["Checking out branch ${0}..."],[d.Name]):b["Checking out branch..."]);d.Type==="Branch"?e.checkoutBranch(d.CloneLocation,d.Name).then(function(){a.hitch(j,j.changedItem)(d.parent);h.callback();g.setProgressResult(b["Branch checked out."])},function(a){h.callback();n(a)}):e.addBranch(d.Repository!=null?d.Repository.BranchLocation:
d.parent.parent.BranchLocation,null,d.Name).then(function(c){e.checkoutBranch(c.CloneLocation,c.Name).then(function(){a.hitch(j,j.changedItem)(d.Repository?d.Repository.BranchLocation:d.parent.parent.parent);g.setProgressResult(b["Branch checked out."])},function(a){h.callback();n(a)})},function(a){h.callback();n(a)})},visibleWhen:function(a){return a.Type==="Branch"||a.Type==="RemoteTrackingBranch"}});i.addCommand(o);o=new d.ParametersDescription([new d.CommandParameter("name","text","Name:")]);
o=new d.Command({name:b["New Branch"],tooltip:b["Add a new local branch to the repository"],imageClass:"core-sprite-add",id:"eclipse.addBranch",parameters:o,callback:function(c){var d=c.items,e=function(b,c){f.getService("orion.git.provider").addBranch(b,c).then(function(){a.hitch(j,j.changedItem)(d)},n)},g;g=d.Type==="Clone"?d.BranchLocation:d.Location;c.parameters.valueFor("name")&&!c.parameters.optionsRequested?e(g,c.parameters.valueFor("name")):h.getNewItemName(d,j,!1,c.domNode.id,b["Branch name"],
function(a){(a||a!="")&&e(g,a)})},visibleWhen:function(a){return a.GroupNode&&a.Name==="Branches"||a.Type==="Clone"&&j.parentId==="artifacts"}});i.addCommand(o);o=new d.Command({name:b.Delete,tooltip:b["Delete the local branch from the repository"],imageClass:"core-sprite-delete",id:"eclipse.removeBranch",callback:function(c){var d=c.items;confirm(a.string.substitute(b["Are you sure you want to delete branch ${0}?"],[d.Name]))&&f.getService("orion.git.provider").removeBranch(d.Location).then(function(){j.changedItem?
a.hitch(j,j.changedItem)(d.parent):j.displayBranches&&a.hitch(j,j.displayBranches)(d.ParentLocation,null)},n)},visibleWhen:function(a){return a.Type==="Branch"&&!a.Current}});i.addCommand(o);o=new d.Command({name:b.Delete,tooltip:b["Delete the remote tracking branch from the repository"],imageClass:"core-sprite-delete",id:"eclipse.removeRemoteBranch",callback:function(c){var d=c.items;confirm(a.string.substitute(b["You're going to delete remote branch ${0} and push the change."],[d.Name])+"\n\n"+
b["Are you sure?"])&&h.getDefaultSshOptions(f).then(function(c){var e=arguments.callee,g=f.getService("orion.git.provider");f.getService("orion.page.message").createProgressMonitor(g.doPush(d.Location,"",!1,!1,c.gitSshUsername,c.gitSshPassword,c.knownHosts,c.gitPrivateKey,c.gitPassphrase),b["Removing remote branch: "]+d.Name).deferred.then(function(g){h.handleProgressServiceResponse(g,c,f,function(b){b.Result.Severity=="Ok"&&a.hitch(j,j.changedItem)(d.parent)},e,b["Delete Remote Branch"])},function(a){h.handleProgressServiceResponse(a,
c,f,function(){},e,b["Removing remote branch: "]+d.Name)})})},visibleWhen:function(a){return a.Type==="RemoteTrackingBranch"}});i.addCommand(o);o=new d.ParametersDescription([new d.CommandParameter("name","text","Name:"),new d.CommandParameter("url","url","Url:")]);o=new d.Command({name:b["New Remote"],tooltip:b["Add a new remote to the repository"],imageClass:"core-sprite-add",id:"eclipse.addRemote",parameters:o,callback:function(b){var c=b.items,d=function(b,d,e){f.getService("orion.git.provider").addRemote(b,
d,e).then(function(){a.hitch(j,j.changedItem)(c)},n)},e;e=c.Type==="Clone"?c.RemoteLocation:c.Location;b.parameters.valueFor("name")&&b.parameters.valueFor("url")&&!b.parameters.optionsRequested?d(e,b.parameters.valueFor("name"),b.parameters.valueFor("url")):(b=new orion.git.widgets.AddRemoteDialog({func:function(a,b){d(e,a,b)}}),b.startup(),b.show())},visibleWhen:function(a){return a.GroupNode&&a.Name==="Remotes"||a.Type==="Clone"&&j.parentId==="artifacts"}});i.addCommand(o);o=new d.Command({name:b.Delete,
tooltip:b["Delete the remote from the repository"],imageClass:"core-sprite-delete",id:"eclipse.removeRemote",callback:function(c){var d=c.items;confirm(a.string.substitute(b["Are you sure you want to delete remote ${0}?"],[d.Name]))&&f.getService("orion.git.provider").removeRemote(d.Location).then(function(){a.hitch(j,j.changedItem)(d.parent)},n)},visibleWhen:function(a){return a.Type==="Remote"}});i.addCommand(o);o=new d.Command({name:b.Pull,tooltip:b["Pull from the repository"],imageClass:"git-sprite-pull",
spriteClass:"gitCommandSprite",id:"eclipse.orion.git.pull",callback:function(c){var d=c.items,e=d.Location;h.getDefaultSshOptions(f).then(function(c){var g=arguments.callee,i=f.getService("orion.git.provider");f.getService("orion.page.message").createProgressMonitor(i.doPull(e,!1,c.gitSshUsername,c.gitSshPassword,c.knownHosts,c.gitPrivateKey,c.gitPassphrase),b["Pulling : "]+e).deferred.then(function(b){h.handleProgressServiceResponse(b,c,f,function(){d.Type==="Clone"&&a.hitch(j,j.changedItem)(d)},
g,"Pull Git Repository")},function(a){h.handleProgressServiceResponse(a,c,f,function(){},g,b["Pull Git Repository"])})})},visibleWhen:function(a){return a.Type==="Clone"}});i.addCommand(o);o=new d.Command({name:b["Git Log"],tooltip:b["Open the log for the branch"],id:"eclipse.openGitLog",imageClass:"git-sprite-log",spriteClass:"gitCommandSprite",hrefCallback:function(a){a=a.items;return c.toUrl("git/git-log.html")+"#"+a.CommitLocation+"?page=1"},visibleWhen:function(a){return a.Type==="Branch"||a.Type===
"RemoteTrackingBranch"}});i.addCommand(o);o=new d.Command({name:b["Git Log"],tooltip:b["Open the log for the repository"],id:"eclipse.openGitLogAll",imageClass:"git-sprite-log",spriteClass:"gitCommandSprite",hrefCallback:function(a){return c.toUrl("git/git-log.html")+"#"+a.items.CommitLocation+"?page=1"},visibleWhen:function(a){return!a.CommitLocation||!a.StatusLocation?!1:!0}});i.addCommand(o);o=new d.Command({name:b["Git Status"],tooltip:b["Open the status for the repository"],id:"eclipse.openGitStatus",
imageClass:"git-sprite-status",spriteClass:"gitCommandSprite",hrefCallback:function(a){return c.toUrl(e.statusUILocation)+"#"+a.items.StatusLocation},visibleWhen:function(a){return!a.StatusLocation?!1:!0}});i.addCommand(o);o=new d.Command({name:b["Show in Navigator"],tooltip:b["Show the repository folder in the file navigator"],id:"eclipse.openCloneContent",hrefCallback:function(a){return c.toUrl("navigate/table.html")+"#"+a.items.ContentLocation+"?depth=1"},visibleWhen:function(a){return!a.ContentLocation?
!1:!0}});i.addCommand(o);o=new d.Command({name:b["Compare With Each Other"],imageClass:"git-sprite-open_compare",spriteClass:"gitCommandSprite",id:"eclipse.compareGitCommits",hrefCallback:function(a){a=a.items;return f.getService("orion.git.provider").getDiff(a[1].DiffLocation,a[0].Name).then(function(a){return g.generateCompareHref(a,{readonly:!0})})},visibleWhen:function(b){return j.isDirectory?!1:a.isArray(b)&&b.length===2&&b[0].Type==="Commit"&&b[1].Type==="Commit"?!0:!1}});i.addCommand(o);o=
new d.Command({name:b["Compare With Working Tree"],imageClass:"git-sprite-open_compare",spriteClass:"gitCommandSprite",id:"eclipse.compareWithWorkingTree",hrefCallback:function(a){return g.generateCompareHref(a.items.DiffLocation,{})},visibleWhen:function(a){return a.Type==="Commit"&&!j.isDirectory}});i.addCommand(o);o=new d.Command({name:b.Open,id:"eclipse.openGitCommit",hrefCallback:function(a){return c.toUrl("edit/edit.html")+"#"+a.items.ContentLocation},visibleWhen:function(a){return a.Type===
"Commit"&&a.ContentLocation!=null&&!j.isDirectory}});i.addCommand(o);o=new d.Command({name:b.Fetch,tooltip:b["Fetch from the remote"],imageClass:"git-sprite-fetch",spriteClass:"gitCommandSprite",id:"eclipse.orion.git.fetch",callback:function(c){var e=c.items,g=e.Location,q=function(a,c){if(a.JsonData.HostKey)c.parameters=null;else if(!c.optionsRequested)c.parameters=a.JsonData.User?new d.ParametersDescription([new d.CommandParameter("sshpassword","password",b["SSH Password:"])],{hasOptionalParameters:!0}):
new d.ParametersDescription([new d.CommandParameter("sshuser","text",b["SSH User Name:"]),new d.CommandParameter("sshpassword","password",b["SSH Password:"])],{hasOptionalParameters:!0});c.errorData=a.JsonData;i.collectParameters(c)};c.parameters&&c.parameters.optionsRequested?(c.parameters=null,c.optionsRequested=!0,i.collectParameters(c)):h.gatherSshCredentials(f,c).then(function(d){var i=f.getService("orion.git.provider");f.getService("orion.page.message").createProgressMonitor(i.doFetch(g,!1,
d.gitSshUsername,d.gitSshPassword,d.knownHosts,d.gitPrivateKey,d.gitPassphrase),b["Fetching remote: "]+g).deferred.then(function(d){h.handleProgressServiceResponse2(d,f,function(){i.getGitRemote(g).then(function(c){j.parentId==="explorer-tree"&&(a.place(document.createTextNode(b["Getting git incoming changes..."]),"explorer-tree","only"),i.getLog(c.HeadLocation,c.Id).then(function(a){j.renderer.setIncomingCommits(a.Children);j.loadCommitsList(c.CommitLocation+"?page=1",c,!0)}));a.hitch(j,j.changedItem)(e)},
n)},function(a){q(a,c)})},function(a){h.handleProgressServiceResponse2(a,f,function(){},function(a){q(a,c)})})})},visibleWhen:function(a){return a.Type==="RemoteTrackingBranch"?!0:a.Type==="Remote"?!0:a.Type==="Commit"&&a.toRef&&a.toRef.Type==="RemoteTrackingBranch"?!0:!1}});i.addCommand(o);o=new d.Command({name:b["Force Fetch"],tooltip:b["Fetch from the remote branch into your remote tracking branch overriding its current content"],id:"eclipse.orion.git.fetchForce",callback:function(c){if(confirm(b["You're going to override content of the remote tracking branch. This can cause the branch to lose commits."]+
"\n\n"+b["Are you sure?"])){var e=c.items,g=e.Location,q=function(a,c){if(a.JsonData.HostKey)c.parameters=null;else if(!c.optionsRequested)c.parameters=a.JsonData.User?new d.ParametersDescription([new d.CommandParameter("sshpassword","password",b["SSH Password:"])],{hasOptionalParameters:!0}):new d.ParametersDescription([new d.CommandParameter("sshuser","text",b["SSH User Name:"]),new d.CommandParameter("sshpassword","password",b["SSH Password:"])],{hasOptionalParameters:!0});c.errorData=a.JsonData;
i.collectParameters(c)};c.parameters&&c.parameters.optionsRequested?(c.parameters=null,c.optionsRequested=!0,i.collectParameters(c)):h.gatherSshCredentials(f,c).then(function(d){var i=f.getService("orion.git.provider");f.getService("orion.page.message").createProgressMonitor(i.doFetch(g,!0,d.gitSshUsername,d.gitSshPassword,d.knownHosts,d.gitPrivateKey,d.gitPassphrase),b["Fetching remote: "]+g).deferred.then(function(d){h.handleProgressServiceResponse2(d,f,function(){i.getGitRemote(g).then(function(c){j.parentId===
"explorer-tree"&&(a.place(document.createTextNode(b["Getting git incoming changes..."]),"explorer-tree","only"),i.getLog(c.HeadLocation,c.Id).then(function(a){j.renderer.setIncomingCommits(a.Children);j.loadCommitsList(c.CommitLocation+"?page=1",c,!0)}));a.hitch(j,j.changedItem)(e)},n)},function(a){q(a,c)})},function(a){h.handleProgressServiceResponse2(a,f,function(){},function(a){q(a,c)})})})}},visibleWhen:function(a){return a.Type==="RemoteTrackingBranch"?!0:a.Type==="Remote"?!0:a.Type==="Commit"&&
a.toRef&&a.toRef.Type==="RemoteTrackingBranch"?!0:!1}});i.addCommand(o);o=new d.Command({name:b.Merge,tooltip:b["Merge the content from the branch to your active branch"],imageClass:"git-sprite-merge",spriteClass:"gitCommandSprite",id:"eclipse.orion.git.merge",callback:function(d){var g=d.items,d=f.getService("orion.git.provider"),h=f.getService("orion.page.message");d.doMerge(g.HeadLocation,g.Name).then(function(d){var f=[];if(d.jsonData&&(d.jsonData.Result=="FAST_FORWARD"||d.jsonData.Result=="ALREADY_UP_TO_DATE"))a.query(".treeTableRow").forEach(function(b){a.toggleClass(b,
"incomingCommitsdRow",!1)}),f.Severity="Ok",f.HTML=!1,f.Message=d.jsonData.Result,a.hitch(j,j.changedItem)(g);else if(d.jsonData){var i=g.HeadLocation.replace("commit/HEAD","status");f.Severity="Warning";f.HTML=!0;f.Message="<span>"+d.jsonData.Result+a.string.substitute(b[". Go to ${0}."],['<a href="'+c.toUrl(e.statusUILocation)+"#"+i+'">'+b["Git Status page"]+"</a>"])+"</span>"}else if(d.error)i=g.HeadLocation.replace("commit/HEAD","status"),f.Severity="Error",d.error.responseText&&JSON.parse(d.error.responseText)?
(d=JSON.parse(d.error.responseText),f.Message=d.DetailedMessage?d.DetailedMessage:d.Message):f.Message=d.error.message,f.HTML=!0,f.Message="<span>"+f.Message+a.string.substitute(b[". Go to ${0}."],['<a href="'+c.toUrl(e.statusUILocation)+"#"+i+'">'+b["Git Status page"]+"</a>"])+"</span>";h.setProgressResult(f)},function(d,h){var i=[],j=g.HeadLocation.replace("commit/HEAD","status");i.Severity="Error";i.HTML=!0;i.Message="<span>"+a.fromJson(h.xhr.responseText).DetailedMessage+a.string.substitute(b[". Go to ${0}."],
['<a href="'+c.toUrl(e.statusUILocation)+"#"+j+'">'+b["Git Status page"]+"</a>"])+".</span>";f.getService("orion.page.message").setProgressResult(i)})},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}});i.addCommand(o);o=new d.Command({name:b.Rebase,tooltip:b["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(d){var g=d.items;f.getService("orion.page.message").createProgressMonitor(f.getService("orion.git.provider").doRebase(g.HeadLocation,g.Name,"BEGIN"),g.Name?b["Rebase on top of "]+g.Name:b.Rebase).deferred.then(function(d){var h=[],i=g.HeadLocation.replace("commit/HEAD","status");d.Result=="OK"||d.Result=="FAST_FORWARD"||d.Result==
"UP_TO_DATE"?(h.Severity="Ok",h.HTML=!1,h.Message=d.Result,a.hitch(j,j.changedItem)(g)):d.Result=="STOPPED"?(h.Severity="Warning",h.HTML=!0,h.Message="<span>"+d.Result+b[". Some conflicts occurred. Please resolve them and continue, skip patch or abort rebasing"]+a.string.substitute(b[". Go to ${0}."],['<a href="'+c.toUrl(e.statusUILocation)+"#"+i+'">'+b["Git Status page"]+"</a>"])+".</span>"):d.Result=="FAILED_WRONG_REPOSITORY_STATE"?(h.Severity="Error",h.HTML=!0,h.Message="<span>"+d.Result+b[". Repository state is invalid (i.e. already during rebasing)"]+
a.string.substitute(". Go to ${0}.",['<a href="'+c.toUrl(e.statusUILocation)+"#"+i+'">'+b["Git Status page"]+"</a>"])+".</span>"):d.Result=="FAILED_UNMERGED_PATHS"?(h.Severity="Error",h.HTML=!0,h.Message="<span>"+d.Result+b[". Repository contains unmerged paths"]+a.string.substitute(b[". Go to ${0}."],['<a href="'+c.toUrl(e.statusUILocation)+"#"+i+'">'+b["Git Status page"]+"</a>"])+".</span>"):d.Result=="FAILED_PENDING_CHANGES"?(h.Severity="Error",h.HTML=!0,h.Message="<span>"+d.Result+b[". Repository contains pending changes. Please commit or stash them"]+
a.string.substitute(b[". Go to ${0}."],['<a href="'+c.toUrl(e.statusUILocation)+"#"+i+'">Git Status page</a>'])+".</span>"):(h.Severity="Warning",h.HTML=!0,h.Message="<span>"+d.Result+a.string.substitute(b[". Go to ${0}."],['<a href="'+c.toUrl(e.statusUILocation)+"#"+i+'">'+b["Git Status page"]+"</a>"])+".</span>");f.getService("orion.page.message").setProgressResult(h)},n)},visibleWhen:function(a){this.tooltip=b["Rebase your commits by removing them from the active branch, "]+b["starting the active branch again based on the latest state of '"]+
a.Name+"' "+b["and applying each commit again to the updated active branch."];return a.Type==="RemoteTrackingBranch"||a.Type==="Branch"&&!a.Current}});i.addCommand(o);o=new d.Command({name:b["Push All"],tooltip:b["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(c){var e=c.items,g=a.hash();if(e.toRef)e=e.toRef;var n=function(a,c){if(a.JsonData.HostKey)c.parameters=null;else if(!c.optionsRequested)c.parameters=
a.JsonData.User?new d.ParametersDescription([new d.CommandParameter("sshpassword","password",b["SSH Password:"])],{hasOptionalParameters:!0}):new d.ParametersDescription([new d.CommandParameter("sshuser","text",b["SSH User Name:"]),new d.CommandParameter("sshpassword","password",b["SSH Password:"])],{hasOptionalParameters:!0});c.errorData=a.JsonData;i.collectParameters(c)};c.parameters&&c.parameters.optionsRequested?(c.parameters=null,c.optionsRequested=!0,i.collectParameters(c)):h.gatherSshCredentials(f,
c).then(function(d){var i=f.getService("orion.git.provider");if(e.RemoteLocation.length==1&&e.RemoteLocation[0].Children.length==1)f.getService("orion.page.message").createProgressMonitor(i.doPush(e.RemoteLocation[0].Children[0].Location,"HEAD",!0,!1,d.gitSshUsername,d.gitSshPassword,d.knownHosts,d.gitPrivateKey,d.gitPassphrase),b["Pushing remote: "]+g).deferred.then(function(b){h.handleProgressServiceResponse2(b,f,function(){j.parentId==="explorer-tree"?(!b||!b.HttpCode)&&a.query(".treeTableRow").forEach(function(b){a.toggleClass(b,
"outgoingCommitsdRow",!1)}):a.hitch(j,j.changedItem)()},function(a){n(a,c)})},function(a){h.handleProgressServiceResponse2(a,f,function(){},function(a){n(a,c)})});else{var l=new orion.git.widgets.RemotePrompterDialog({title:b["Choose Branch"],serviceRegistry:f,gitClient:i,treeRoot:{Children:e.RemoteLocation},hideNewBranch:!0,func:a.hitch(this,function(e,g){f.getService("orion.page.message").createProgressMonitor(i.doPush(e.Location,"HEAD",!0,!0,d.gitSshUsername,d.gitSshPassword,d.knownHosts,d.gitPrivateKey,
d.gitPassphrase),b["Pushing remote: "]+g.Name).deferred.then(function(b){h.handleProgressServiceResponse2(b,f,function(){j.parentId==="explorer-tree"?(!b||!b.HttpCode)&&a.query(".treeTableRow").forEach(function(b){a.toggleClass(b,"outgoingCommitsdRow",!1)}):a.hitch(j,j.changedItem)()},function(a){n(a,c)})},function(a){h.handleProgressServiceResponse2(a,f,function(){},function(a){n(a,c)})})})});l.startup();l.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}});i.addCommand(o);o=new d.Command({name:b["Force Push All"],tooltip:b["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(c){if(confirm(b["You're going to override content of the remote branch. This can cause the remote repository to lose commits."]+"\n\n"+
b["Are you sure?"])){var e=c.items,g=a.hash();if(e.toRef)e=e.toRef;var n=function(a,c){if(a.JsonData.HostKey)c.parameters=null;else if(!c.optionsRequested)c.parameters=a.JsonData.User?new d.ParametersDescription([new d.CommandParameter("sshpassword","password",b["SSH Password:"])],{hasOptionalParameters:!0}):new d.ParametersDescription([new d.CommandParameter("sshuser","text",b["SSH User Name:"]),new d.CommandParameter("sshpassword","password",b["SSH Password:"])],{hasOptionalParameters:!0});c.errorData=
a.JsonData;i.collectParameters(c)};c.parameters&&c.parameters.optionsRequested?(c.parameters=null,c.optionsRequested=!0,i.collectParameters(c)):h.gatherSshCredentials(f,c).then(function(d){var i=f.getService("orion.git.provider");if(e.RemoteLocation.length==1&&e.RemoteLocation[0].Children.length==1)f.getService("orion.page.message").createProgressMonitor(i.doPush(e.RemoteLocation[0].Children[0].Location,"HEAD",!0,!0,d.gitSshUsername,d.gitSshPassword,d.knownHosts,d.gitPrivateKey,d.gitPassphrase),b["Pushing remote: "]+
g).deferred.then(function(b){h.handleProgressServiceResponse2(b,f,function(){j.parentId==="explorer-tree"?(!b||!b.HttpCode)&&a.query(".treeTableRow").forEach(function(b){a.toggleClass(b,"outgoingCommitsdRow",!1)}):a.hitch(j,j.changedItem)()},function(a){n(a,c)})},function(a){h.handleProgressServiceResponse2(a,f,function(){},function(a){n(a,c)})});else{var l=new orion.git.widgets.RemotePrompterDialog({title:b["Choose Branch"],serviceRegistry:f,gitClient:i,treeRoot:{Children:e.RemoteLocation},hideNewBranch:!0,
func:a.hitch(this,function(e,g){f.getService("orion.page.message").createProgressMonitor(i.doPush(e.Location,"HEAD",!0,!0,d.gitSshUsername,d.gitSshPassword,d.knownHosts,d.gitPrivateKey,d.gitPassphrase),b["Pushing remote: "]+g.Name).deferred.then(function(b){h.handleProgressServiceResponse2(b,f,function(){j.parentId==="explorer-tree"?(!b||!b.HttpCode)&&a.query(".treeTableRow").forEach(function(b){a.toggleClass(b,"outgoingCommitsdRow",!1)}):a.hitch(j,j.changedItem)()},function(a){n(a,c)})},function(a){h.handleProgressServiceResponse2(a,
f,function(){},function(a){n(a,c)})})})});l.startup();l.show()}})}},visibleWhen:function(a){if(a.toRef)return a.RepositoryPath===""&&a.toRef.Type==="Branch"&&a.toRef.Current&&a.toRef.RemoteLocation}});i.addCommand(o);o=new d.Command({name:b["< Previous Page"],tooltip:b["Show previous page of git log"],id:"eclipse.orion.git.previousLogPage",hrefCallback:function(a){return c.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}});i.addCommand(o);o=new d.Command({name:b["Next Page >"],tooltip:b["Show next page of git log"],id:"eclipse.orion.git.nextLogPage",hrefCallback:function(a){return c.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}});i.addCommand(o);o=new d.Command({name:b["Push to..."],
tooltip:b["Push from your local branch into the selected remote branch"],imageClass:"git-sprite-push",spriteClass:"gitCommandSprite",id:"eclipse.orion.git.pushto",callback:function(c){var d=c.items,c={},e;for(e in d.parent.parent.children)d.parent.parent.children[e].Name==="Remote"&&(c=d.parent.parent.children[e]);e=f.getService("orion.git.provider");c=new orion.git.widgets.RemotePrompterDialog({title:b["Choose Branch"],serviceRegistry:f,gitClient:e,treeRoot:c,func:a.hitch(this,function(a,b,c){console.info("Branch "+
a+" remote "+b+" new branch "+c)})});c.startup();c.show()},visibleWhen:function(){return!1}});i.addCommand(o);o=new d.Command({name:b.Reset,tooltip:b["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(c){var d=c.items;if(confirm(b["The content of your active branch will be replaced with "]+d.Name+". "+b["All unstaged and staged changes will be discarded and cannot be recovered. Are you sure?"])){var c=
f.getService("orion.git.provider"),e=f.getService("orion.page.message");e.createProgressMonitor(c.resetIndex(d.IndexLocation,d.Name),b["Resetting index..."]).deferred.then(function(){a.hitch(j,j.changedItem)(d);e.setProgressResult({Severity:"Info",HTML:!1,Message:"Ok"})},function(a){var b={Severity:"Error",HTML:!1};b.Message=a.message;e.setProgressResult(b)})}},visibleWhen:function(a){return a.Type==="RemoteTrackingBranch"}});i.addCommand(o);o=new d.ParametersDescription([new d.CommandParameter("name",
"text",b["Name:"])]);o=new d.Command({name:b.Tag,tooltip:b["Create a tag for the commit"],imageClass:"git-sprite-tag",spriteClass:"gitCommandSprite",id:"eclipse.orion.git.addTag",parameters:o,callback:function(c){var d=c.items,e=function(b,c){f.getService("orion.git.provider").doAddTag(b,c).then(function(){a.hitch(j,j.changedItem)(d)},n)},g=d.Location;c.parameters.valueFor("name")&&!c.parameters.optionsRequested?e(g,c.parameters.valueFor("name")):h.getNewItemName(d,j,!1,c.domNode.id,b["Tag name"],
function(a){(a||a!="")&&e(g,a)})},visibleWhen:function(a){return a.Type==="Commit"}});i.addCommand(o);o=new d.Command({name:b.Delete,tooltip:b["Delete the tag from the repository"],imageClass:"core-sprite-delete",id:"eclipse.removeTag",callback:function(c){var d=c.items;confirm(a.string.substitute(b["Are you sure you want to delete tag ${0}?"],[d.Name]))&&f.getService("orion.git.provider").doRemoveTag(d.Location).then(function(){a.hitch(j,j.changedItem)(d.parent)},n)},visibleWhen:function(a){return a.Type===
"Tag"}});i.addCommand(o);o=new d.Command({name:b["Cherry-Pick"],tooltip:b["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(d){var g=d.items,h=a.hash(),i=f.getService("orion.git.provider"),d=g.Location.replace(g.Name,"HEAD");i.doCherryPick(d,g.Name).then(function(d){var l=[],n=g.Location.replace("commit/"+g.Name,"status");d.Result=="OK"?(l.Severity="Ok",d.HeadUpdated?
(l.HTML=!1,l.Message=d.Result,j.parentId==="explorer-tree"&&i.doGitLog(h).then(function(c){c.HeadLocation?(a.place(document.createTextNode(b["Getting git incoming changes..."]),"explorer-tree","only"),i.getLog(c.HeadLocation,c.Id).then(function(a){j.renderer.setIncomingCommits(a.Children);j.loadCommitsList(c.CommitLocation+"?page=1",c,!0)})):(a.place(document.createTextNode(b["Getting git incoming changes..."]),"explorer-tree","only"),i.getLog(h,"HEAD").then(function(a){j.renderer.setOutgoingCommits(a.Children);
j.loadCommitsList(h,c,!0)}))})):(l.HTML=!0,l.Message="<span>"+b["Nothing changed."]+"</span>")):d.Result=="CONFLICTING"?(l.Severity="Warning",l.HTML=!0,l.Message="<span>"+d.Result+b[". Some conflicts occurred"]+ +a.string.substitute(b[". Go to ${0}."],['<a href="'+c.toUrl(e.statusUILocation)+"#"+n+'">'+b["Git Status page"]+"</a>"])+".</span>"):d.Result=="FAILED"?(l.Severity="Error",l.HTML=!0,l.Message="<span>"+d.Result+a.string.substitute(b[". Go to ${0}."],['<a href="'+c.toUrl(e.statusUILocation)+
"#"+n+'">'+b["Git Status page"]+"</a>"])+".</span>"):(l.Severity="Warning",l.HTML=!1,l.Message=d.Result);f.getService("orion.page.message").setProgressResult(l)},n)},visibleWhen:function(a){return a.Type==="Commit"}});i.addCommand(o)};h.createStatusCommands=function(c,e,f,g,i){var j=new d.Command({name:b.Fetch,tooltip:b["Fetch from the remote branch into your remote tracking branch"],imageClass:"git-sprite-fetch",spriteClass:"gitCommandSprite",id:"eclipse.orion.git.fetch",callback:function(d){var e=
d.items.Location,f=c.getService("orion.git.provider");h.getDefaultSshOptions(c).then(function(d){var g=arguments.callee;c.getService("orion.page.message").createProgressMonitor(f.doFetch(e,!1,d.gitSshUsername,d.gitSshPassword,d.knownHosts,d.gitPrivateKey,d.gitPassphrase),b["Fetching remote: "]+e).deferred.then(function(j){h.handleProgressServiceResponse(j,d,c,function(){f.getGitRemote(e).then(function(b){i._gitCommitNavigatorRem.parentId&&a.place(document.createTextNode("Getting git incoming changes..."),
i._gitCommitNavigatorRem.parentId,"only");f.getLog(b.HeadLocation,b.Id).then(function(a){i._gitCommitNavigatorRem.renderer.setIncomingCommits(a.Children);i._gitCommitNavigatorRem.loadCommitsList(b.CommitLocation+"?page=1&pageSize=5",b,!0)})})},g,b["Fetch Git Repository"])},function(a){h.handleProgressServiceResponse(a,d,c,function(){},g,b["Fetch Git Repository"])})})},visibleWhen:function(a){return a.Type==="RemoteTrackingBranch"}});e.addCommand(j);e.registerCommandContribution("itemLevelCommands",
"eclipse.orion.git.fetch",g+1);j=new d.Command({name:b.Merge,tooltip:b["Merge the content from the branch to your active branch"],imageClass:"git-sprite-merge",spriteClass:"gitCommandSprite",id:"eclipse.orion.git.merge",callback:function(b){var b=b.items,d=c.getService("orion.git.provider"),e=c.getService("orion.page.message");d.doMerge(b.HeadLocation,b.Name).then(function(b){var c=[];if(b.jsonData&&(b.jsonData.Result=="FAST_FORWARD"||b.jsonData.Result=="ALREADY_UP_TO_DATE"))a.query(".treeTableRow").forEach(function(b){a.toggleClass(b,
"incomingCommitsdRow",!1)}),c.Severity="Ok",c.HTML=!1,c.Message=b.jsonData.Result,f(),e.setProgressResult(c);else if(b.jsonData)c.Severity="Warning",c.HTML=!0,c.Message="<span>"+b.jsonData.Result+"<span>",e.setProgressResult(c);else if(b.error)c.Severity="Error",b.error.responseText&&JSON.parse(b.error.responseText)?(b=JSON.parse(b.error.responseText),c.Message=b.DetailedMessage?b.DetailedMessage:b.Message):c.Message=b.error.message,c.HTML=!0,c.Message="<span>"+c.Message+"<span>",e.setProgressResult(c)},
function(b,c){var d=[];d.Severity="Error";d.HTML=!0;d.Message="<span>"+a.fromJson(c.xhr.responseText).DetailedMessage+"</span>";e.setProgressResult(d)})},visibleWhen:function(a){return a.Type==="RemoteTrackingBranch"||a.Type==="Branch"&&!a.Current}});e.addCommand(j);e.registerCommandContribution("itemLevelCommands","eclipse.orion.git.merge",g+2);j=new d.Command({name:b.Push,tooltip:b["Push from your local branch into the remote branch"],imageClass:"git-sprite-push",spriteClass:"gitCommandSprite",
id:"eclipse.orion.git.push",callback:function(d){var e=d.items,g=a.hash(),i=c.getService("orion.git.provider");e.RemoteLocation.length==1&&e.RemoteLocation[0].Children.length==1?h.getDefaultSshOptions(c).then(function(d){var j=arguments.callee;c.getService("orion.page.message").createProgressMonitor(i.doPush(e.RemoteLocation[0].Children[0].Location,"HEAD",!0,!1,d.gitSshUsername,d.gitSshPassword,d.knownHosts,d.gitPrivateKey,d.gitPassphrase),b["Pushing remote: "]+g).deferred.then(function(b){h.handleProgressServiceResponse(b,
d,c,function(b){if(!b||!b.HttpCode)a.query(".treeTableRow").forEach(function(b){a.toggleClass(b,"outgoingCommitsdRow",!1)}),f()},j,"Push Git Repository")},function(a){h.handleProgressServiceResponse(a,d,c,function(){},j,b["Push Git Repository"])})}):(d=new orion.git.widgets.RemotePrompterDialog({title:b["Choose Branch"],serviceRegistry:c,gitClient:i,treeRoot:{Children:e.RemoteLocation},hideNewBranch:!0,func:a.hitch(this,function(d,e){h.getDefaultSshOptions(c).then(function(g){var j=arguments.callee;
c.getService("orion.page.message").createProgressMonitor(i.doPush(d.Location,"HEAD",!0,!1,g.gitSshUsername,g.gitSshPassword,g.knownHosts,g.gitPrivateKey,g.gitPassphrase),b["Pushing remote: "]+e).deferred.then(function(d){h.handleProgressServiceResponse(d,g,c,function(b){if(!b||!b.HttpCode)a.query(".treeTableRow").forEach(function(b){a.toggleClass(b,"outgoingCommitsdRow",!1)}),f()},j,b["Push Git Repository"])})},function(a){h.handleProgressServiceResponse(a,options,c,function(){},func,b["Pushing remote: "]+
e)})})}),d.startup(),d.show())},visibleWhen:function(a){return a.Type==="LocalBranch"}});e.addCommand(j);e.registerCommandContribution("itemLevelCommands","eclipse.orion.git.push",g+3)};h.createGitClonesCommands=function(c,e,f,g,i,j){function r(a){if(!(a.status===401||a.status===403)){var b=[];b.Severity="Error";b.HTML=!1;try{var d=JSON.parse(a.responseText);b.Message=d.DetailedMessage?d.DetailedMessage:d.Message}catch(e){b.Message=a.message}c.getService("orion.page.message").setProgressResult(b)}}
function s(b){a.isArray(b)&&(b=b.length>1?{}:b[0]);return b}g=new d.ParametersDescription([new d.CommandParameter("key","text",b["Key:"]),new d.CommandParameter("value","text",b["Value:"])]);g=new d.Command({name:b["New Configuration Entry"],tooltip:"Add a new entry to the repository configuration",imageClass:"core-sprite-add",id:"eclipse.orion.git.addConfigEntryCommand",parameters:g,callback:function(b){var d=b.items,e=c.getService("orion.git.provider");b.parameters.valueFor("key")&&b.parameters.valueFor("value")&&
e.addCloneConfigurationProperty(d.ConfigLocation,b.parameters.valueFor("key"),b.parameters.valueFor("value")).then(function(){a.hitch(f,f.changedItem)(d)},r)}});e.addCommand(g);g=new d.ParametersDescription([new d.CommandParameter("value","text",b["Value:"])]);g=new d.Command({name:b.Edit,tooltip:b["Edit the configuration entry"],imageClass:"core-sprite-edit",id:"eclipse.orion.git.editConfigEntryCommand",parameters:g,callback:function(b){var d=b.items,e=c.getService("orion.git.provider");b.parameters.valueFor("value")&&
e.editCloneConfigurationProperty(d.Location,b.parameters.valueFor("value")).then(function(){a.hitch(f,f.changedItem)(d)},r)},visibleWhen:function(a){return a.Key&&a.Value&&a.Location}});e.addCommand(g);g=new d.Command({name:b.Delete,tooltip:b["Delete the configuration entry"],imageClass:"core-sprite-delete",id:"eclipse.orion.git.deleteConfigEntryCommand",callback:a.hitch(this,function(d){var e=d.items,d=c.getService("orion.git.provider");confirm(a.string.substitute(b["Are you sure you want to delete ${0}?"],
[e.Key]))&&d.deleteCloneConfigurationProperty(e.Location).then(function(){a.hitch(f,f.changedItem)(e)},r)}),visibleWhen:function(a){return a.Key&&a.Value&&a.Location}});e.addCommand(g);g=new d.ParametersDescription([new d.CommandParameter("url","url",b["Repository URL:"])],{hasOptionalParameters:!0});g=new d.Command({name:b["Clone Repository"],tooltip:b["Clone an existing Git repository to a folder"],id:"eclipse.cloneGitRepository",parameters:g,callback:function(d){var e=c.getService("orion.git.provider"),
g=function(d,g,i){h.getDefaultSshOptions(c).then(function(j){var l=arguments.callee;c.getService("orion.page.message").createProgressMonitor(e.cloneGitRepository(i,d,g,f.defaultPath,j.gitSshUsername,j.gitSshPassword,j.knownHosts,j.gitPrivateKey,j.gitPassphrase),b["Cloning repository: "]+d).deferred.then(function(d){h.handleProgressServiceResponse(d,j,c,function(){f.changedItem&&a.hitch(f,f.changedItem)()},l,b["Clone Git Repository"])},function(a){h.handleProgressServiceResponse(a,j,c,function(){},
l,b["Clone Git Repository"])})})};d.parameters.valueFor("url")&&!d.parameters.optionsRequested?g(d.parameters.valueFor("url")):(d=new orion.git.widgets.CloneGitRepositoryDialog({serviceRegistry:c,fileClient:j,url:d.parameters.valueFor("url"),alwaysShowAdvanced:d.parameters.optionsRequested,func:g}),d.startup(),d.show())},visibleWhen:function(){return!0}});e.addCommand(g);g=new d.ParametersDescription([new d.CommandParameter("folderName","text",b["New folder:"])],{hasOptionalParameters:!0});g=new d.Command({name:b["Init Repository"],
tooltip:b["Create a new Git repository in a new folder"],id:"eclipse.initGitRepository",parameters:g,callback:function(d){var e=c.getService("orion.git.provider"),g=function(d,g,i){h.getDefaultSshOptions(c).then(function(j){var l=arguments.callee;c.getService("orion.page.message").createProgressMonitor(e.cloneGitRepository(i,d,g,f.defaultPath),b["Initializing repository: "]+i).deferred.then(function(d){h.handleProgressServiceResponse(d,j,c,function(){f.changedItem&&a.hitch(f,f.changedItem)()},l,b["Init Git Repository"])},
function(a){h.handleProgressServiceResponse(a,j,c,function(){},l,b["Init Git Repository"])})})};d.parameters.valueFor("folderName")&&!d.parameters.optionsRequested?g(null,null,d.parameters.valueFor("folderName")):(d=new orion.git.widgets.CloneGitRepositoryDialog({serviceRegistry:c,title:b["Init Git Repository"],fileClient:j,advancedOnly:!0,func:g}),d.startup(),d.show())},visibleWhen:function(){return!0}});e.addCommand(g);g=new d.Command({name:b.Delete,tooltip:b["Delete the repository"],imageClass:"core-sprite-delete",
id:"eclipse.git.deleteClone",visibleWhen:function(a){return a.Type==="Clone"},callback:function(d){var e=d.items,d=c.getService("orion.git.provider");if(a.isArray(e)){if(confirm(a.string.substitute(b["Are you sure you want do delete ${0} repositories?"],[e.length])))for(var g=0,h=0;h<e.length;h++)d.removeGitRepository(e[h].Location).then(function(){g++;g>=e.length&&f.changedItem&&a.hitch(f,f.changedItem)()},r)}else confirm(a.string.substitute(b["Are you sure you want to delete ${0}?"],[e.Name]))&&
d.removeGitRepository(e.Location).then(function(){f.changedItem&&a.hitch(f,f.changedItem)()},r)}});e.addCommand(g);g=new d.Command({name:b["Apply Patch"],tooltip:b["Apply a patch on the selected repository"],id:"eclipse.orion.git.applyPatch",imageClass:"git-sprite-apply_patch",spriteClass:"gitCommandSprite",callback:function(a){a=s(a.items);a=new orion.git.widgets.ApplyPatchDialog({title:b["Apply Patch"],diffLocation:a.DiffLocation});a.startup();a.show()},visibleWhen:function(a){return a.Type==="Clone"}});
e.addCommand(g);g=new d.Command({name:b["Show content"],tooltip:b["Apply a patch on the selected repository"],id:"eclipse.orion.git.showContent",imageClass:"git-sprite-apply_patch",spriteClass:"gitCommandSprite",callback:function(a){a=s(a.items);a=new orion.git.widgets.ContentDialog({title:b.Content,diffLocation:a.DiffLocation});a.startup();a.show()}});e.addCommand(g);g=new d.ParametersDescription([new d.CommandParameter("commitName","text",b["Commit name:"])],{hasOptionalParameters:!0});g=new d.Command({name:b["Open Commit"],
tooltip:b["Open the commit with the given name"],id:"eclipse.orion.git.openCommitCommand",imageClass:"git-sprite-apply_patch",spriteClass:"gitCommandSprite",parameters:g,callback:function(d){var e=function(f,g,h){h==null&&(h=new a.Deferred);f.length>0?c.getService("orion.git.provider").doGitLog("/gitapi/commit/"+d.parameters.valueFor("commitName")+f[0].ContentLocation+"?page=1&pageSize=1",null,null,b["Looking for the commit"]).then(function(a){h.callback(a.Children[0].Location)},function(){e(f.slice(1),
g,h)}):h.errback();return h},f=function(a){d.parameters.optionsRequested?(new orion.git.widgets.OpenCommitDialog({repositories:a,serviceRegistry:c,commitName:d.parameters.valueFor("commitName")})).show():(c.getService("orion.page.message").setProgressMessage(b["Looking for the commit"]),e(a,d.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=b["No commits found"];c.getService("orion.page.message").setProgressResult(a)}))};
if(d.items.Type==="Clone"){var g=[d.items];f(g)}else d.items.CloneLocation?c.getService("orion.git.provider").getGitClone(d.items.CloneLocation).then(function(a){f(a.Children)}):(g=d.items,f(g))},visibleWhen:function(a){return a.Type==="Clone"||a.CloneLocation||a.length>1&&a[0].Type==="Clone"}});e.addCommand(g)};h.createGitStatusCommands=function(c,f,g){function h(a){if(!(a.status===401||a.status===403)){var b=[];b.Severity="Error";b.HTML=!1;try{var d=JSON.parse(a.responseText);b.Message=d.DetailedMessage?
d.DetailedMessage:d.Message}catch(e){b.Message=a.message}c.getService("orion.page.message").setProgressResult(b)}}function i(b){a.isArray(b)||(b=[b]);return b}function j(d,e){c.getService("orion.page.message").createProgressMonitor(c.getService("orion.git.provider").doRebase(d,"",e),e).deferred.then(function(d){if(d.Result=="OK"||d.Result=="ABORTED"||d.Result=="FAST_FORWARD"||d.Result=="UP_TO_DATE"){var e=[];e.Severity="Ok";e.HTML=!1;e.Message=d.Result;c.getService("orion.page.message").setProgressResult(e);
a.hitch(g,g.changedItem)({})}if(d.Result=="STOPPED")e=[],e.Severity="Warning",e.HTML=!1,e.Message=d.Result+b[". Repository still contains conflicts."],c.getService("orion.page.message").setProgressResult(e),a.hitch(g,g.changedItem)({});else if(d.Result=="FAILED_UNMERGED_PATHS")e=[],e.Severity="Error",e.HTML=!1,e.Message=d.Result+b[". Repository contains unmerged paths. Resolve conflicts first."],c.getService("orion.page.message").setProgressResult(e)},h)}var r=new d.Command({name:b.Stage,tooltip:b["Stage the change"],
imageClass:"git-sprite-stage",spriteClass:"gitCommandSprite",id:"eclipse.orion.git.stageCommand",callback:function(d){var e=i(d.items),f=c.getService("orion.page.message");if(e.length===1)f.createProgressMonitor(c.getService("orion.git.provider").stage(e[0].indexURI),b["Staging changes"]).deferred.then(function(){a.hitch(g,g.changedItem)(e)},h);else{for(var j=[],l=0;l<e.length;l++)j[l]=e[l].name;f.createProgressMonitor(c.getService("orion.git.provider").stageMultipleFiles(d.userData.Clone.IndexLocation,
j),"Staging changes").deferred.then(function(){a.hitch(g,g.changedItem)(e)},h)}},visibleWhen:function(a){a=i(a);if(a.length===0)return!1;for(var b=0;b<a.length;b++)if(!e.isChange(a[b])||e.isStaged(a[b]))return!1;return!0}});f.addCommand(r);r=new d.Command({name:b.Unstage,tooltip:b["Unstage the change"],imageClass:"git-sprite-unstage",spriteClass:"gitCommandSprite",id:"eclipse.orion.git.unstageCommand",callback:function(d){var e=i(d.items),f=c.getService("orion.page.message");if(e.length===1)f.createProgressMonitor(c.getService("orion.git.provider").unstage(e[0].indexURI,
e[0].name),b["Staging changes"]).deferred.then(function(){a.hitch(g,g.changedItem)(e)},h);else{for(var j=[],l=0;l<e.length;l++)j[l]=e[l].name;f.createProgressMonitor(c.getService("orion.git.provider").unstage(d.userData.Clone.IndexLocation,j),b["Staging changes"]).deferred.then(function(){a.hitch(g,g.changedItem)(e)},h)}},visibleWhen:function(a){a=i(a);if(a.length===0)return!1;for(var b=0;b<a.length;b++)if(!e.isChange(a[b])||!e.isStaged(a[b]))return!1;return!0}});f.addCommand(r);r=new d.ParametersDescription([new d.CommandParameter("name",
"text",b["Commit message:"],"",4),new d.CommandParameter("amend","boolean",b["Amend:"],!1)],{hasOptionalParameters:!0});r=new d.Command({name:"Commit",tooltip:"Commit",id:"eclipse.orion.git.commitCommand",parameters:r,callback:function(d){var e=d.items.status,f=function(d){c.getService("orion.page.message").createProgressMonitor(c.getService("orion.git.provider").commitAll(e.Clone.HeadLocation,null,a.toJson(d)),b["Committing changes"]).deferred.then(function(){a.hitch(g,g.changedItem)(e)},h)},i={};
i.Message=d.parameters.valueFor("name");i.Amend=d.parameters.valueFor("amend");for(var j=e.Clone.Config,l=0;l<j.length;l++)if(j[l].Key==="user.name")i.CommitterName=j[l].Value,i.AuthorName=j[l].Value;else if(j[l].Key==="user.email")i.CommitterEmail=j[l].Value,i.AuthorEmail=j[l].Value;i.Message&&i.CommitterName&&i.CommitterEmail&&!d.parameters.optionsRequested?f(i):(d=new orion.git.widgets.CommitDialog({body:i,func:f}),d.startup(),d.show())},visibleWhen:function(){return!0}});f.addCommand(r);r=new d.Command({name:b.Reset,
tooltip:b["Reset the branch, discarding all staged and unstaged changes"],imageClass:"core-sprite-refresh",id:"eclipse.orion.git.resetCommand",callback:function(d){var e=d.items;c.getService("orion.page.dialog").confirm(b["All unstaged and staged changes in the working directory and index will be discarded and cannot be recovered."]+"\n"+b["Are you sure you want to continue?"],function(d){d&&c.getService("orion.page.message").createProgressMonitor(c.getService("orion.git.provider").unstageAll(e.IndexLocation,
"HARD"),b["Resetting local changes"]).deferred.then(function(){a.hitch(g,g.changedItem)(e)},h)})},visibleWhen:function(a){return e.hasStagedChanges(a)||e.hasUnstagedChanges(a)}});f.addCommand(r);r=new d.Command({name:b.Checkout,tooltip:b["Checkout files, discarding all changes"],imageClass:"git-sprite-checkout",spriteClass:"gitCommandSprite",id:"eclipse.orion.git.checkoutCommand",callback:function(d){var e=i(d.items);c.getService("orion.page.dialog").confirm(b["Your changes to the selected files will be discarded and cannot be recovered."]+
"\n"+b["Are you sure you want to continue?"],function(f){if(f){for(var f=c.getService("orion.page.message"),i=[],j=0;j<e.length;j++)i[j]=e[j].name;f.createProgressMonitor(c.getService("orion.git.provider").checkoutPath(d.userData.Clone.Location,i),b["Resetting local changes"]).deferred.then(function(){a.hitch(g,g.changedItem)(e)},h)}})},visibleWhen:function(a){a=i(a);if(a.length===0)return!1;for(var b=0;b<a.length;b++)if(!e.isChange(a[b])||e.isStaged(a[b]))return!1;return!0}});f.addCommand(r);r=new d.Command({name:b["Show Patch"],
tooltip:b["Show workspace changes as a patch"],imageClass:"git-sprite-diff",spriteClass:"gitCommandSprite",id:"eclipse.orion.git.showPatchCommand",hrefCallback:function(a){for(var b=i(a.items),a=a.userData.Clone.DiffLocation+"?parts=diff",c=0;c<b.length;c++)a+="&Path=",a+=b[c].name;return a},visibleWhen:function(a){a=i(a);if(a.length===0)return!1;for(var b=0;b<a.length;b++)if(e.isStaged(a[b]))return!1;return!0}});f.addCommand(r);r=new d.Command({name:b.Continue,tooltip:b["Contibue Rebase"],id:"eclipse.orion.git.rebaseContinueCommand",
callback:function(a){return j(a.items.Clone.HeadLocation,"CONTINUE")},visibleWhen:function(a){return a.RepositoryState.indexOf("REBASING")!=-1}});f.addCommand(r);r=new d.Command({name:b["Skip Patch"],tooltip:b["Skip Patch"],id:"eclipse.orion.git.rebaseSkipPatchCommand",callback:function(a){return j(a.items.Clone.HeadLocation,"SKIP")},visibleWhen:function(a){return a.RepositoryState.indexOf("REBASING")!=-1}});f.addCommand(r);r=new d.Command({name:b.Abort,tooltip:b["Abort Rebase"],id:"eclipse.orion.git.rebaseAbortCommand",
callback:function(a){return j(a.items.Clone.HeadLocation,"ABORT")},visibleWhen:function(a){return a.RepositoryState.indexOf("REBASING")!=-1}});f.addCommand(r)}})();return h});
define("orion/git/gitRepositoryExplorer","i18n!git/nls/gitmessages,require,dojo,orion/commands,orion/section,orion/util,orion/PageUtil,orion/globalCommands,orion/git/gitCommands,orion/git/widgets/CommitTooltipDialog".split(","),function(b,c,a,d,f,e,g,h){d={};d.GitRepositoryExplorer=function(){function d(a,b,c,e,f,g){this.parentId=f;this.registry=a;this.linkService=c;this.commandService=b;this.selection=e;this.parentId=f;this.actionScopeId=g;this.checkbox=!1}d.prototype.handleError=function(a){var b=
{Severity:"Error",HTML:!1};try{var c=JSON.parse(a.responseText);b.Message=c.DetailedMessage?c.DetailedMessage:c.Message}catch(d){b.Message=a.message}this.registry.getService("orion.page.message").setProgressResult(b);a.status===404&&(this.initTitleBar(),this.displayRepositories())};d.prototype.setDefaultPath=function(a){this.defaultPath=a};d.prototype.changedItem=function(){this.redisplay()};d.prototype.redisplay=function(){var a=g.matchResourceParameters();if(a.resource)this.displayRepository(a.resource);
else{var a=e.makeRelative(this.defaultPath),b=c.toUrl("gitapi/clone._"),b=b.substring(0,b.length-2);this.displayRepositories2(a[0]==="/"?b+a:b+"/"+a)}};d.prototype.displayRepositories2=function(b){var c=this;this.loadingDeferred=new a.Deferred;this.registry.getService("orion.page.message").showWhile(this.loadingDeferred,"Loading...");this.registry.getService("orion.git.provider").getGitClone(b).then(function(a){if(a.Children.length===0)c.initTitleBar({}),c.displayRepositories([],"full");else if(a.Children[0].Type===
"Clone")a=a.Children,c.initTitleBar(a),c.displayRepositories(a,"full",!0);c.commandService.processURL(window.location.href)},function(b){a.hitch(c,c.handleError)(b)})};d.prototype.displayRepository=function(c){var d=this;this.loadingDeferred=new a.Deferred;var e=this.registry.getService("orion.page.message");e.showWhile(this.loadingDeferred,"Loading...");this.registry.getService("orion.git.provider").getGitClone(c).then(function(c){c.Children.length===0?(d.initTitleBar({}),d.displayRepositories([],
"full")):c.Children.length==1&&c.Children[0].Type==="Clone"?(c=c.Children,d.initTitleBar(c[0]),d.displayRepositories(c),d.displayStatus(c[0]),d.displayCommits(c[0]),d.displayBranches(c[0]),d.displayTags(c[0]),d.displayRemotes(c[0]),d.displayConfig(c[0])):c.Children[0].Type==="Clone"?(c=c.Children,d.initTitleBar(c),d.displayRepositories(c,"full",!0)):c.Children[0].Type==="Branch"?(c=c.Children,d.registry.getService("orion.git.provider").getGitClone(c[0].CloneLocation).then(function(a){a=a.Children;
d.initTitleBar(a[0],"Branches");d.displayRepositories(a,"mini",!0);d.displayBranches(a[0],"full");d.displayRemoteBranches(a[0],"full")},function(){a.hitch(d,d.handleError)(error)})):c.Children[0].Type==="Tag"?(c=c.Children,d.registry.getService("orion.git.provider").getGitClone(c[0].CloneLocation).then(function(a){a=a.Children;d.initTitleBar(a[0],b.Tags);d.displayRepositories(a,"mini",!0);d.displayTags(a[0],"full")},function(){a.hitch(d,d.handleError)(error)})):c.Children[0].Type==="Config"&&d.registry.getService("orion.git.provider").getGitClone(c.CloneLocation).then(function(a){a=
a.Children;d.initTitleBar(a[0],b.Configuration);d.displayRepositories(a,"mini",!0);d.displayConfig(a[0],"full")},function(){a.hitch(d,d.handleError)(error)});d.commandService.processURL(window.location.href);e.setProgressMessage("")},function(b){a.hitch(d,d.handleError)(b)})};var j=function(b,c,d,e){var f=a.byId(c);if(f)a.empty(f);else throw"could not find toolbar "+c;b.getService("orion.page.command").renderCommands(d,f,e,null,"button")};d.prototype.initTitleBar=function(a,b){var c={},d="repoPageActions",
e;a&&a.Type==="Clone"&&b?(e=a,c.Name=b,c.Parents=[],c.Parents[0]={},c.Parents[0].Name=e.Name,c.Parents[0].Location=e.Location,c.Parents[0].ChildrenLocation=e.Location,c.Parents[1]={},c.Parents[1].Name="Repositories"):a&&a.Type==="Clone"?(e=a,c.Name=e.Name,c.Parents=[],c.Parents[0]={},c.Parents[0].Name="Repositories"):(c.Name="Repositories",d="reposPageActions");j(this.registry,"pageActions",d,e||{});h.setPageTarget({task:"Repositories",target:e,breadcrumbTarget:c,makeBreadcrumbLink:function(a,b){a.href=
"/git/git-repository.html#"+(b?b:"")},serviceRegistry:this.registry,commandService:this.commandService})};d.prototype.decorateRepositories=function(b,c,d){var e=this;d==null&&(d=new a.Deferred);b.length>0?this.registry.getService("orion.core.file").loadWorkspace(b[0].ContentLocation+"?parts=meta").then(function(a){b[0].Content={};var f="root / ";if(a.Parents!=null)for(var g=a.Parents.length;g>0;g--)f+=a.Parents[g-1].Name+" / ";f+=a.Name;b[0].Content.Path=f;c!=="full"?e.decorateRepositories(b.slice(1),
c,d):e.registry.getService("orion.git.provider").getGitStatus(b[0].StatusLocation).then(function(a){b[0].Status=a;e.registry.getService("orion.git.provider").getGitBranch(b[0].BranchLocation).then(function(a){for(var a=a.Children,f,g=0;g<a.length;g++)if(a[g].Current){f=a[g];break}f&&f.RemoteLocation[0]!=null&&(f.RemoteLocation.length==1&&f.RemoteLocation[0].Children.length===1&&f.RemoteLocation[0].Children[0].CommitLocation?e.registry.getService("orion.git.provider").getLog(f.RemoteLocation[0].Children[0].CommitLocation+
"?page=1&pageSize=20","HEAD").then(function(a){b[0].CommitsToPush=a.Children.length}):e.registry.getService("orion.git.provider").doGitLog(f.CommitLocation+"?page=1&pageSize=20").then(function(a){b[0].CommitsToPush=a.Children.length}));e.decorateRepositories(b.slice(1),c,d)})})}):d.callback();return d};d.prototype.displayRepositories=function(c,d,e){var g=this,h=a.byId("table");a.empty(h);var i=this.registry.getService("orion.page.message");!c||c.length===0?((new f.Section(h,{id:"repositorySection",
title:"Repository",iconClass:"gitImageSprite git-sprite-repository"})).setTitle(d==="full"?b["No Repositories"]:b["Repository Not Found"]),g.loadingDeferred.callback(),i.setProgressMessage("")):(a.create("div",{role:"region","class":"sectionTable"},h,"last").innerHTML='<list id="repositoryNode" class="mainPadding"></list>',this.decorateRepositories(c,d).then(function(){for(var a=0;a<c.length;a++)g.renderRepository(c[a],a,c.length,d,e);g.loadingDeferred.callback();i.setProgressMessage("")},function(){g.loadingDeferred.errback();
i.setProgressMessage("")}))};d.prototype.renderRepository=function(c,d,e,f,g){var d=a.create("div",{"class":"sectionTableItem "+(e==1?"":d%2?"darkTreeTableRow":"lightTreeTableRow")},a.byId("repositoryNode")),d=a.create("div",null,d),e=a.create("div",{"class":"stretch"},d),h=a.create("span",{"class":"gitMainDescription"},e);g?(link=a.create("a",{"class":"navlinkonpage",href:"/git/git-repository.html#"+c.Location},h),a.place(document.createTextNode(c.Name),link)):a.place(document.createTextNode(c.Name),
h);a.create("div",null,e);a.create("span",{"class":"gitSecondaryDescription",innerHTML:c.GitUrl!=null?"git url: "+c.GitUrl:b["(no remote)"]},e);a.create("div",null,e);a.create("span",{"class":"gitSecondaryDescription",innerHTML:b["location: "]+c.Content.Path},e);h=c.Status;if(f==="full")g=h.Untracked.length+h.Conflicting.length+h.Modified.length,h=h.Changed.length+h.Added.length+h.Removed.length,g=g>0||h>0?a.string.substitute(b["${0} file(s) to stage and ${1} file(s) to commit."],[g,h]):b["Nothing to commit."],
a.create("div",{style:"padding-top:10px"},e),a.create("span",{"class":"gitSecondaryDescription",style:"padding-left:10px",innerHTML:g},e),g=c.CommitsToPush,a.create("span",{"class":"gitSecondaryDescription",style:"padding-left:10px",innerHTML:g>0?g+b[" commit(s) to push."]:b["Nothing to push."]},e);f==="full"&&this.commandService.renderCommands(this.actionScopeId,a.create("div",{id:"repositoryActionsArea","class":"sectionTableItemActions"},d),c,this,"tool")};d.prototype.displayStatus=function(b){var c=
b.StatusLocation,d=this,e=a.byId("table"),e=new f.Section(e,{id:"workingDirectorySection",title:"Working Directory",content:'<list id="workingDirectoryNode" class="mainPadding"></list>'});d.commandService.registerCommandContribution(e.actionsNode.id,"eclipse.orion.git.repositories.viewAllCommand",10);d.commandService.renderCommands(e.actionsNode.id,e.actionsNode.id,{ViewAllLink:"/git/git-status2.html#"+b.StatusLocation,ViewAllLabel:"See Full Status",ViewAllTooltip:"See the status"},d,"button");var g=
e.createProgressMonitor();g.begin("Loading status");this.registry.getService("orion.git.provider").getGitBranch(c).then(function(a){g.done();d.renderStatus(b,a)},function(a){g.done(a)})};d.prototype.renderStatus=function(c,d){var e=a.create("div",{"class":"sectionTableItem"},a.byId("workingDirectoryNode")),f=a.create("div",null,e),e=d.Untracked.length+d.Conflicting.length+d.Modified.length,g=d.Changed.length+d.Added.length+d.Removed.length,h=b["You have no changes to commit."];if(e>0||g>0)h=b["You have changes to commit in your workspace!"];
f=a.create("div",{"class":"vbox stretch details-view"},f);a.create("span",{"class":"gitMainDescription",innerHTML:h},f);a.create("div",null,f);a.create("span",{"class":"gitSecondaryDescription",innerHTML:a.string.substitute(b["${0} file(s) to stage and ${1} file(s) to commit."],[e,g])},f)};d.prototype.decorateBranches=function(b,c){var d=this;c==null&&(c=new a.Deferred);b.length>0?this.registry.getService("orion.git.provider").doGitLog(b[0].CommitLocation+"?page=1&pageSize=1").then(function(a){b[0].Commit=
a.Children[0];d.decorateBranches(b.slice(1),c)}):c.callback();return c};d.prototype.displayBranches=function(c,d){var e=c.BranchLocation,g=this,h=a.byId("table"),i=new f.Section(h,{id:"branchSection",title:b.Branches,iconClass:"gitImageSprite git-sprite-branch",slideout:!0,content:'<list id="branchNode" class="mainPadding"></list>',canHide:!0,preferenceService:this.registry.getService("orion.core.preference")}),j=i.createProgressMonitor();j.begin("Getting branches");this.registry.getService("orion.git.provider").getGitBranch(e+
(d==="full"?"?commits=1":"?commits=1&page=1&pageSize=5")).then(function(a){a=a.Children;j.done();d!=="full"&&a.length!==0&&(g.commandService.registerCommandContribution(i.actionsNode.id,"eclipse.orion.git.repositories.viewAllCommand",10),g.commandService.renderCommands(i.actionsNode.id,i.actionsNode.id,{ViewAllLink:"/git/git-repository.html#"+e+"?page=1",ViewAllLabel:b["View All"],ViewAllTooltip:b["View all local and remote tracking branches"]},g,"button"));g.commandService.registerCommandContribution(i.actionsNode.id,
"eclipse.addBranch",200);g.commandService.renderCommands(i.actionsNode.id,i.actionsNode.id,c,g,"button");for(var f=0;f<a.length;f++)a[f].ParentLocation=e,g.renderBranch(a[f],f)},function(b){j.done();a.hitch(g,g.handleError)(b)})};d.prototype.renderBranch=function(c,d){var e=a.create("div",{"class":"sectionTableItem "+(d%2?"darkTreeTableRow":"lightTreeTableRow")},a.byId("branchNode")),e=a.create("div",null,e),f=a.create("div",{"class":"stretch"},e);c.Current&&a.create("span",{"class":"sectionIcon gitImageSprite git-sprite-branch_active"},
f);a.create("span",{"class":"gitMainDescription "+(c.Current?"activeBranch":""),innerHTML:c.Name},f);a.create("div",null,f);var g=c.Commit.Children[0],h=c.RemoteLocation.length==1&&c.RemoteLocation[0].Children.length==1?a.string.substitute(b["tracks ${0}, "],[c.RemoteLocation[0].Children[0].Name]):b["tracks no branch, "];a.create("span",{"class":"gitSecondaryDescription",innerHTML:h+a.string.substitute(b["last modified ${0} by ${1}"],[a.date.locale.format(new Date(g.Time),{formatLength:"short"}),
g.AuthorName])},f);this.commandService.renderCommands(this.actionScopeId,a.create("div",{id:"branchActionsArea","class":"sectionTableItemActions"},e),c,this,"tool")};d.prototype.displayRemoteBranches=function(c){var d=c.RemoteLocation,e=this,g=a.byId("table"),h=new f.Section(g,{id:"remoteBranchSection",title:"Remote Branches",iconClass:"gitImageSprite git-sprite-branch",content:'<list id="remoteBranchNode" class="mainPadding"></list>',canHide:!0,preferenceService:this.registry.getService("orion.core.preference")}),
i=h.createProgressMonitor();i.begin("Getting remote branches");this.registry.getService("orion.git.provider").getGitRemote(d).then(function(a){a=a.Children;i.done();a.length===0?h.setTitle(b["No Remote Branches"]):(i=h.createProgressMonitor(),i.begin(b["Rendering branches"]),e.displayRemoteBranches2(h,a,c).addBoth(function(){i.done()}))},function(a){i.done(a)})};d.prototype.displayRemoteBranches2=function(c,d,e,f,g){var h=this;f==null&&(f=new a.Deferred);d.length>0?this.registry.getService("orion.git.provider").getGitRemote(d[0].Location).then(function(a){for(var a=
a.Children,b=0;b<a.length;b++)a[b].Repository=e,h.renderRemoteBranch(a[b],b);h.displayRemoteBranches2(c,d.slice(1),e,f,g||a.length>0)},function(){}):(g||c.setTitle(b["No Remote Branches"]),f.callback());return f};d.prototype.renderRemoteBranch=function(b,c){var d=a.create("div",{"class":"sectionTableItem "+(c%2?"darkTreeTableRow":"lightTreeTableRow")},a.byId("remoteBranchNode")),d=a.create("div",null,d),e=a.create("div",{"class":"vbox stretch details-view"},d);a.create("span",{"class":"gitMainDescription",
innerHTML:b.Name},e);a.create("div",null,e);this.commandService.renderCommands(this.actionScopeId,a.create("div",{id:"branchActionsArea","class":"sectionTableItemActions"},d),b,this,"tool")};d.prototype.displayCommits=function(c){var d=this,e=a.byId("table"),g=new f.Section(e,{id:"commitSection",title:b.Commits,slideout:!0,content:'<list id="commitNode" class="mainPadding"></list>',canHide:!0,preferenceService:this.registry.getService("orion.core.preference")}),h=g.createProgressMonitor();h.begin(b["Getting current branch"]);
this.registry.getService("orion.git.provider").getGitBranch(c.BranchLocation).then(function(c){for(var c=c.Children,e,f=0;f<c.length;f++)if(c[f].Current){e=c[f];break}e?(c=e.RemoteLocation.length===1&&e.RemoteLocation[0].Children.length===1,g.setTitle('Commits for "'+e.Name+'" branch'),d.commandService.registerCommandContribution(g.actionsNode.id,"eclipse.orion.git.repositories.viewAllCommand",10),d.commandService.renderCommands(g.actionsNode.id,g.actionsNode.id,{ViewAllLink:"/git/git-log.html#"+
e.CommitLocation+"?page=1",ViewAllLabel:b["See Full Log"],ViewAllTooltip:"See the full log"},d,"button"),c&&(d.commandService.registerCommandContribution(g.actionsNode.id,"eclipse.orion.git.fetch",100),d.commandService.registerCommandContribution(g.actionsNode.id,"eclipse.orion.git.merge",100),d.commandService.registerCommandContribution(g.actionsNode.id,"eclipse.orion.git.rebase",100),d.commandService.registerCommandContribution(g.actionsNode.id,"eclipse.orion.git.resetIndex",100),d.commandService.renderCommands(g.actionsNode.id,
g.actionsNode.id,e.RemoteLocation[0].Children[0],d,"button")),d.commandService.registerCommandContribution(g.actionsNode.id,"eclipse.orion.git.push",100),d.commandService.renderCommands(g.actionsNode.id,g.actionsNode.id,e,d,"button"),e.RemoteLocation[0]===null?(h.done(),d.renderNoCommit()):(h.worked(a.string.substitute(b['Getting commits for "${0}" branch'],[e.Name])),c&&e.RemoteLocation[0].Children[0].CommitLocation?d.registry.getService("orion.git.provider").getLog(e.RemoteLocation[0].Children[0].CommitLocation+
"?page=1&pageSize=20","HEAD").then(function(a){h.worked(b["Rendering commits"]);for(var c=a.Children.length,f=0;f<a.Children.length;f++)d.renderCommit(a.Children[f],!0,f);h.worked(b["Getting outgoing commits"]);d.registry.getService("orion.git.provider").getLog(e.CommitLocation+"?page=1&pageSize=20",e.RemoteLocation[0].Children[0].Id).then(function(a){h.worked("Rendering commits");for(var b=0;b<a.Children.length;b++)d.renderCommit(a.Children[b],!1,b+c);c+=a.Children.length;c===0&&d.renderNoCommit();
h.done()},function(a){h.done(a)})},function(a){h.done(a)}):d.registry.getService("orion.git.provider").doGitLog(e.CommitLocation+"?page=1&pageSize=20").then(function(a){h.worked(b["Rendering commits"]);for(var c=0;c<a.Children.length;c++)d.renderCommit(a.Children[c],!0,c);a.Children.length===0&&d.renderNoCommit();h.done()},function(a){h.done(a)}))):h.done()})};d.prototype.renderNoCommit=function(){var c=a.create("div",{"class":"sectionTableItem"},a.byId("commitNode")),c=a.create("div",null,c),c=a.create("div",
{"class":"stretch"},c);a.create("span",{"class":"gitMainDescription",innerHTML:b["The branch is up to date."]},c);a.create("div",null,c);a.create("span",{"class":"gitSecondaryDescription",innerHTML:b["You have no outgoing or incoming commits."]},c)};d.prototype.renderCommit=function(c,d,e){e=a.create("div",{"class":"sectionTableItem "+(e%2?"darkTreeTableRow":"lightTreeTableRow")},a.byId("commitNode"));e=a.create("div",null,e);a.create("span",{"class":"sectionIcon gitImageSprite "+(d?"git-sprite-outgoing_commit":
"git-sprite-incoming_commit")},e);if(c.AuthorImage){var d=a.create("span",{"class":"git-author-icon"},e),f=new Image;f.src=c.AuthorImage;f.name=c.AuthorName;f.width=30;f.height=30;a.place(f,d,"first")}var d=a.create("div",{"class":"stretch"},e),g=a.create("a",{"class":"gitMainDescription navlinkonpage",href:"/git/git-commit.html#"+c.Location+"?page=1&pageSize=1"},d);a.place(document.createTextNode(c.Message),g);var h,i=new orion.git.widgets.CommitTooltipDialog({commit:c,onMouseLeave:function(){dijit.popup.hide&&
dijit.popup.hide(i);dijit.popup.close(i)},onMouseEnter:function(){clearTimeout(h)}});a.connect(g,"onmouseover",g,function(){clearTimeout(h);h=setTimeout(function(){dijit.popup.open({popup:i,around:g,orient:{BR:"TL",TR:"BL"}})},600)});a.connect(g,"onmouseout",g,function(){clearTimeout(h);h=setTimeout(function(){dijit.popup.hide&&dijit.popup.hide(i);dijit.popup.close(i)},200)});a.create("div",null,d);a.create("span",{"class":"gitSecondaryDescription",innerHTML:b[" (SHA "]+c.Name+b[") by "]+c.AuthorName+
" on "+a.date.locale.format(new Date(c.Time),{formatLength:"short"})},d);this.commandService.renderCommands(this.actionScopeId,a.create("div",{id:"branchActionsArea","class":"sectionTableItemActions"},e),c,this,"tool")};d.prototype.decorateTags=function(b,c){var d=this;c==null&&(c=new a.Deferred);b.length>0?this.registry.getService("orion.git.provider").doGitLog(b[0].CommitLocation+"?page=1&pageSize=1").then(function(a){b[0].Commit=a.Children[0];d.decorateTags(b.slice(1),c)}):c.callback();return c};
d.prototype.displayTags=function(c,d){var e=c.TagLocation,g=this,h=a.byId("table"),i=new f.Section(h,{id:"tagSection",iconClass:"gitImageSprite git-sprite-tag",title:"Tags"+(d==="full"?"":" (5 most recent)"),content:'<list id="tagNode" class="mainPadding"></list>',canHide:!0,hidden:!0,preferenceService:this.registry.getService("orion.core.preference")}),j=i.createProgressMonitor();j.begin(b["Getting tags"]);this.registry.getService("orion.git.provider").getGitBranch(e+(d==="full"?"":"?commits=1&page=1&pageSize=5")).then(function(a){var f=
a.Children.slice(0,5);if(d==="full")f=a.Children;j.done();d!=="full"&&f.length!==0&&(g.commandService.registerCommandContribution(i.actionsNode.id,"eclipse.orion.git.repositories.viewAllCommand",10),g.commandService.renderCommands(i.actionsNode.id,i.actionsNode.id,{ViewAllLink:"/git/git-repository.html#"+e+"?page=1",ViewAllLabel:b["View All"],ViewAllTooltip:b["View all tags"]},g,"button"));if(f.length===0)i.setTitle(b["No Tags"]);else for(a=0;a<f.length;a++)f[a].Repository=c,g.renderTag(f[a],a)},
function(b){j.done();a.hitch(g,g.handleError)(b)})};d.prototype.renderTag=function(c,d){var e=a.create("div",{"class":"sectionTableItem "+(d%2?"darkTreeTableRow":"lightTreeTableRow")},a.byId("tagNode")),e=a.create("div",null,e),f=a.create("div",{"class":"stretch"},e);a.create("span",{"class":"gitMainDescription",innerHTML:c.Name},f);a.create("div",null,f);if(c.Commit){var f=a.create("span",{"class":"tag-description"},f),g=c.Commit.Children[0],h=a.create("a",{"class":"navlinkonpage",href:"/git/git-commit.html#"+
g.Location+"?page=1&pageSize=1"},f);a.place(document.createTextNode(g.Message),h);a.place(document.createTextNode(b[" by "]+g.AuthorName+b[" on "]+a.date.locale.format(new Date(g.Time),{formatLength:"short"})),f,"last");var i,j=new orion.git.widgets.CommitTooltipDialog({commit:g,onMouseLeave:function(){dijit.popup.hide&&dijit.popup.hide(j);dijit.popup.close(j)},onMouseEnter:function(){clearTimeout(i)}});a.connect(h,"onmouseover",h,function(){clearTimeout(i);i=setTimeout(function(){dijit.popup.open({popup:j,
around:h,orient:{BR:"TL",TR:"BL"}})},600)});a.connect(h,"onmouseout",h,function(){clearTimeout(i);i=setTimeout(function(){dijit.popup.hide&&dijit.popup.hide(j);dijit.popup.close(j)},200)})}this.commandService.renderCommands(this.actionScopeId,a.create("div",{id:"tagActionsArea","class":"sectionTableItemActions"},e),c,this,"tool")};d.prototype.displayRemotes=function(c){var d=c.RemoteLocation,e=this,g=a.byId("table"),h=new f.Section(g,{id:"remoteSection",title:b.Remotes,iconClass:"gitImageSprite git-sprite-remote",
slideout:!0,content:'<list id="remoteNode" class="mainPadding"></list>',canHide:!0,hidden:!0,preferenceService:this.registry.getService("orion.core.preference")}),i=h.createProgressMonitor();i.begin("Getting remotes");e.commandService.registerCommandContribution(h.actionsNode.id,"eclipse.addRemote",100);e.commandService.renderCommands(h.actionsNode.id,h.actionsNode.id,c,e,"button");this.registry.getService("orion.git.provider").getGitRemote(d).then(function(a){a=a.Children;i.worked(b["Rendering remotes"]);
if(a.length===0)h.setTitle(b["No Remotes"]);else for(var c=0;c<a.length;c++)e.renderRemote(a[c],c);i.done()},function(b){i.done();a.hitch(e,e.handleError)(b)})};d.prototype.renderRemote=function(b,c){var d=a.create("div",{"class":"sectionTableItem "+(c%2?"darkTreeTableRow":"lightTreeTableRow")},a.byId("remoteNode")),d=a.create("div",null,d),e=a.create("div",{"class":"stretch"},d);a.create("span",{"class":"gitMainDescription",innerHTML:b.Name},e);a.create("div",null,e);a.create("span",{"class":"gitSecondaryDescription",
innerHTML:b.GitUrl},e);this.commandService.renderCommands(this.actionScopeId,a.create("div",{id:"remoteActionsArea","class":"sectionTableItemActions"},d),b,this,"tool")};d.prototype.displayConfig=function(c,d){var e=c.ConfigLocation,g=this,h=a.byId("table"),i=new f.Section(h,{id:"configSection",title:b.Configuration+(d==="full"?"":" (user.*)"),slideout:!0,content:'<list id="configNode" class="mainPadding"></list>',canHide:!0,hidden:!0,preferenceService:this.registry.getService("orion.core.preference")}),
j=i.createProgressMonitor();j.begin(b["Getting confituration"]);this.registry.getService("orion.git.provider").getGitCloneConfig(e).then(function(a){j.worked("Rendering configuration");a=a.Children;d!=="full"&&a.length!==0&&(g.commandService.registerCommandContribution(i.actionsNode.id,"eclipse.orion.git.repositories.viewAllCommand",10),g.commandService.renderCommands(i.actionsNode.id,i.actionsNode.id,{ViewAllLink:"/git/git-repository.html#"+e,ViewAllLabel:b["View All"],ViewAllTooltip:b["View all configuration entries"]},
g,"button"));d==="full"&&(g.commandService.registerCommandContribution(i.actionsNode.id,"eclipse.orion.git.addConfigEntryCommand",1E3),g.commandService.renderCommands(i.actionsNode.id,i.actionsNode.id,c,g,"button"));if(a.length===0)i.setTitle("No Configuration");else for(var f=0;f<a.length;f++)(d==="full"||a[f].Key.indexOf("user.")!==-1)&&g.renderConfigEntry(a[f],f);j.done()},function(b){j.done();a.hitch(g,g.handleError)(b)})};d.prototype.renderConfigEntry=function(b,c){var d=a.create("div",{"class":"sectionTableItem "+
(c%2?"darkTreeTableRow":"lightTreeTableRow")},a.byId("configNode")),d=a.create("div",null,d),e=a.create("div",{"class":"stretch"},d);a.create("span",{"class":"gitMainDescription",innerHTML:b.Key},e);a.create("span",{"class":"gitSecondaryDescription",style:"margin-left:20px",innerHTML:b.Value},e);this.commandService.renderCommands(this.actionScopeId,a.create("div",{id:"configActionsArea","class":"sectionTableItemActions"},d),b,this,"tool")};return d}();return d});var eclipse;
define("git/git-repository","i18n!git/nls/gitmessages,require,dojo,orion/bootstrap,orion/status,orion/progress,orion/util,orion/PageUtil,orion/commands,orion/dialogs,orion/selection,orion/fileClient,orion/operationsClient,orion/searchClient,orion/globalCommands,orion/git/gitRepositoryExplorer,orion/git/gitCommands,orion/git/gitClient,orion/ssh/sshTools,orion/links,dojo/parser,dojo/hash,dijit/layout/BorderContainer,dijit/layout/ContentPane,orion/widgets/eWebBorderContainer".split(","),function(b,c,
a,d,f,e,g,h,i,j,k,l,m,n,o,p,r,s,q,t){d.startup().then(function(d){var g=d.serviceRegistry,h=d.preferences;document.body.style.visibility="visible";a.parser.parse();new j.DialogService(g);new k.Selection(g);new q.SshService(g);var d=new i.CommandService({serviceRegistry:g}),H=new m.OperationsClient(g);new e.ProgressService(g,H);new f.StatusReportingService(g,H,"statusPane","notifications","notificationArea");H=new t.TextLinkService({serviceRegistry:g});new s.GitService(g);var z=new l.FileClient(g),
C=new n.Searcher({serviceRegistry:g,commandService:d,fileService:z}),w=new p.GitRepositoryExplorer(g,d,H,null,"artifacts","itemLevelCommands");o.generateBanner("banner",g,d,h,C,w);r.createFileCommands(g,d,w,"pageActions","selectionTools");r.createGitClonesCommands(g,d,w,"pageActions","selectionTools",z);d.addCommandGroup("pageActions","eclipse.gitGroup",100);d.addCommandGroup("pageActions","eclipse.gitGroup",200);d.registerCommandContribution("reposPageActions","eclipse.cloneGitRepository",100,"eclipse.gitGroup",
!1,null,new i.URLBinding("cloneGitRepository","url"));d.registerCommandContribution("reposPageActions","eclipse.initGitRepository",200,"eclipse.gitGroup");d.registerCommandContribution("repoPageActions","eclipse.orion.git.pull",100,"eclipse.gitGroup");d.registerCommandContribution("repoPageActions","eclipse.orion.git.applyPatch",200,"eclipse.gitGroup");d.registerCommandContribution("repoPageActions","eclipse.git.deleteClone",300,"eclipse.gitGroup");d.registerCommandContribution("reposPageActions",
"eclipse.orion.git.openCommitCommand",1E3,"eclipse.gitGroup",!0,new i.CommandKeyBinding("h",!0,!0),new i.URLBinding("openGitCommit","commitName"));d.registerCommandContribution("reposPageActions","eclipse.orion.git.showContent",1100,null,!0,new i.CommandKeyBinding("e",!0,!0));d.registerCommandContribution("repoPageActions","eclipse.orion.git.openCommitCommand",1E3,"eclipse.gitGroup",!0,new i.CommandKeyBinding("h",!0,!0),new i.URLBinding("openGitCommit","commitName"));d.registerCommandContribution("repoPageActions",
"eclipse.orion.git.showContent",1100,null,!0,new i.CommandKeyBinding("e",!0,!0));d.registerCommandContribution("itemLevelCommands","eclipse.openCloneContent",100);d.registerCommandContribution("itemLevelCommands","eclipse.openGitStatus",100);d.registerCommandContribution("itemLevelCommands","eclipse.openGitLog",100);d.registerCommandContribution("itemLevelCommands","eclipse.orion.git.pull",200);d.registerCommandContribution("itemLevelCommands","eclipse.removeBranch",1E3);d.registerCommandContribution("itemLevelCommands",
"eclipse.checkoutTag",200);d.registerCommandContribution("itemLevelCommands","eclipse.removeTag",1E3);d.registerCommandContribution("itemLevelCommands","eclipse.checkoutBranch",200);d.registerCommandContribution("itemLevelCommands","eclipse.orion.git.applyPatch",300);d.registerCommandContribution("itemLevelCommands","eclipse.git.deleteClone",1E3);d.registerCommandContribution("itemLevelCommands","eclipse.orion.git.fetch",500);d.registerCommandContribution("itemLevelCommands","eclipse.orion.git.merge",
600);d.registerCommandContribution("itemLevelCommands","eclipse.orion.git.rebase",700);d.registerCommandContribution("itemLevelCommands","eclipse.orion.git.resetIndex",800);d.registerCommandContribution("itemLevelCommands","eclipse.removeRemote",1E3);d.registerCommandContribution("itemLevelCommands","eclipse.orion.git.deleteConfigEntryCommand",1E3);d.registerCommandContribution("itemLevelCommands","eclipse.orion.git.editConfigEntryCommand",200);g=new i.Command({name:b["View All"],id:"eclipse.orion.git.repositories.viewAllCommand",
hrefCallback:function(a){return c.toUrl(a.items.ViewAllLink)},visibleWhen:function(a){this.name=a.ViewAllLabel;this.tooltip=a.ViewAllTooltip;return a.ViewAllLabel&&a.ViewAllTooltip&&a.ViewAllLink}});d.addCommand(g);d.processURL(window.location.href);z.loadWorkspace().then(function(a){w.setDefaultPath(a.Location);w.redisplay()});a.subscribe("/dojo/hashchange",w,function(){z.loadWorkspace().then(function(a){w.setDefaultPath(a.Location);w.redisplay()})})})});