/**
 * @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
 * 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, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.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) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.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) 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). 
 * 
 * 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). 
 *
 * 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) 2011, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2009, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.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) 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 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) 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, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.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) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (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) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (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) 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) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.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: 
 *		Felipe Heidrich (IBM Corporation) - initial API and implementation
 *		Silenio Quarti (IBM Corporation) - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2010, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: Anton McConville - IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: Anton McConville - IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 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) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 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) 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, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.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) 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, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.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) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.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) 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) 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) 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, 2012 IBM Corporation and others 
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.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, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *     Andy Clement (vmware) - bug 344614
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     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) 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, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.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). 
 * 
 * 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) 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, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.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). 


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

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

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

 Contributors:
 IBM Corporation - initial API and implementation

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

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

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

 Contributors: IBM Corporation - initial API and implementation

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

 Contributors: IBM Corporation - initial API and implementation

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

 Contributors: Anton McConville - IBM Corporation - initial API and implementation

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

 Contributors: Anton McConville - IBM Corporation - initial API and implementation

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


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


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

 Contributors:
 IBM Corporation - initial API and implementation

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

 Contributors: IBM Corporation - initial API and implementation

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

 Contributors: IBM Corporation - initial API and implementation

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

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

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

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

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

 Contributors: IBM Corporation - initial API and implementation

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

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2009, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.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
 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, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.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
*/
(function(){function h(d,e,b,c,a,j){e[d]&&(b.push(d),(e[d]===!0||e[d]===1)&&c.push(a+d+"/"+j))}function i(d,e,b,c,a){e=c+e+"/"+a;require._fileExists(d.toUrl(e))&&b.push(e)}var f=/(^.*(^|\/)nls(\/|$))([^\/]*)\/?([^\/]*)/,e={};define("i18n",{version:"1.0.0",load:function(d,g,b,c){var c=c||{},a=f.exec(d),j=a[1],k=a[4],n=a[5],l=k.split("-"),r=[],q={},m,p,o="";a[5]?(j=a[1],d=j+n):(n=a[4],k=c.locale||(c.locale=typeof navigator==="undefined"?"root":(navigator.language||navigator.userLanguage||"root").toLowerCase()),
l=k.split("-"));if(c.isBuild){r.push(d);i(g,"root",r,j,n);for(m=0;p=l[m];m++)o+=(o?"-":"")+p,i(g,o,r,j,n);g(r,function(){b()})}else g([d],function(a){var c=[];h("root",a,c,r,j,n);for(m=0;p=l[m];m++)o+=(o?"-":"")+p,h(o,a,c,r,j,n);g(r,function(){var k,d;for(k=c.length-1;k>-1&&(p=c[k]);k--){d=a[p];if(d===!0||d===1)d=g(j+p+"/"+n);var l=q,o=void 0;for(o in d)!(o in e)&&!(o in l)&&(l[o]=d[o])}b(q)})})}})})();
define("orion/i18n",[],function(){return{load:function(h,i,f,e){var e=e||{},d=/(^.*(?:^|\/)nls(?:\/|$))([^\/]*)\/?([^\/]*)/,g=d.exec(h);if(g)if(i.defined(h))f(i(h));else if(e.isBuild||e.isTest)f({});else{var b=g[1],c=g[3]?g[2]:"",a=g[3]||g[2];i(["orion/bootstrap"],function(j){j.startup().then(function(j){var n=j.serviceRegistry,j=n.getServiceReferences("orion.i18n.message");if(c)j.some(function(a){return h===a.getProperty("name")?(n.getService(a).getMessageBundle().then(function(a){f(a)},function(){f({})}),
!0):!1})||f({});else{var l={},r;j.forEach(function(j){var k=j.getProperty("name");if((g=d.exec(k))&&b===g[1]&&a===(g[3]||g[2]))if(c=g[3]?g[2]:""){if((j=e.locale||(typeof navigator!=="undefined"?navigator.language||navigator.userLanguage:null))&&j.indexOf(c)===0)l[c]=!0,i.specified(k)||define(k,["orion/i18n!"+k],function(a){return a})}else r=j});i.specified(h)?f(l):r?n.getService(r).getMessageBundle().then(function(a){Object.keys(l).forEach(function(j){typeof a[j]==="undefined"&&(a[j]=l[j])});define(h,
[],a);f(a)},function(){define(h,[],l);f(l)}):(define(h,[],l),f(l))}})})}else f(null)}}});
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",
"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","Compare with each other":"Compare with each other","Compare the selected 2 files with each other":"Compare the selected 2 files with each other","Compare with...":"Compare with...","Compare the selected folder with a specified folder":"Compare the selected folder with a specified folder",
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 ${1} menu.":"You can create favorites by selecting any file or folder in the navigator and choosing ${0} from the ${1} 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","Name:":"Name:","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 ${0}":"Importing from ${0}","SFTP to...":"SFTP to...","Copy files and folders to a specified SFTP location":"Copy files and folders to a specified SFTP location","Exporting from ${0}":"Exporting from ${0}","Pasting ${0}":"Pasting ${0}",
"Copy to":"Copy to","Move to":"Move to","Copying ${0}":"Copying ${0}","Moving ${0}":"Moving ${0}","Renaming ${0}":"Renaming ${0}","Deleting ${0}":"Deleting ${0}","Creating ${0}":"Creating ${0}","Linking to ${0}":"Linking to ${0}","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","Orion Content":"Orion Content"," is not supported in this file system":" is not supported in this file system","Create new content":"Create new content",Favorites:"Favorites",
"Import from HTTP...":"Import from HTTP...","File URL:":"File URL:","Copy a file from a URL and optionally unzip it":"Copy a file from a URL and optionally unzip it","Unzip *.zip files:":"Unzip *.zip files:","Extracted from:":"Extracted from:","Did not drop ${0}.  Folder drop is not supported in this browser.":"Did not drop ${0}.  Folder drop is not supported in this browser.","You cannot copy files directly into the workspace.  Create a folder first.":"You cannot copy files directly into the workspace.  Create a folder first.",
"Unzip ${0}?":"Unzip ${0}?"});define("orion/navigate/nls/messages",["orion/i18n!orion/navigate/nls/messages","orion/navigate/nls/root/messages"],function(h,i){var f={root:i};Object.keys(h).forEach(function(e){typeof f[e]==="undefined"&&(f[e]=h[e])});return f});
define("orion/EventTarget",[],function(){function h(){this._namedListeners={}}h.prototype={dispatchEvent:function(h){if(!h.type)throw Error("unspecified type");var f=this._namedListeners[h.type];f&&f.forEach(function(e){try{typeof e==="function"?e(h):e.handleEvent(h)}catch(d){typeof console!=="undefined"&&console.log(d)}});return!h.defaultPrevented},addEventListener:function(h,f){if(typeof f==="function"||f.handleEvent)this._namedListeners[h]=this._namedListeners[h]||[],this._namedListeners[h].push(f)},
removeEventListener:function(h,f){var e=this._namedListeners[h];if(e)for(var d=0;d<e.length;d++)if(e[d]===f){e.length===1?delete this._namedListeners[h]:e.splice(d,1);break}}};h.prototype.constructor=h;h.attach=function(i){var f=new h;i.dispatchEvent=f.dispatchEvent.bind(f);i.addEventListener=f.addEventListener.bind(f);i.removeEventListener=f.removeEventListener.bind(f)};return h});
define("orion/serviceTracker",[],function(){function h(e,d){function g(j){var k=j.getProperty("service.id"),b=this.addingService(j);b&&(c[k]=j,a[k]=b)}function b(j){var k=j.getProperty("service.id"),b=a[k];delete c[k];delete a[k];this.removedService(j,b)}this.serviceRegistry=e;var c={},a={},j=i,k,n;this.close=function(){if(j!==f)throw"Already closed";j=i;e.removeEventListener("registered",k);e.removeEventListener("unregistering",n);n=k=null;var a=this;this.getServiceReferences().forEach(function(j){b.call(a,
j)});if(typeof this.onClose==="function")this.onClose()};this.getServiceReferences=function(){return c.length?Object.keys(c).map(function(a){return c[a]}):null};this.open=function(){if(j!==i)throw"Already open";j=f;var a=this;k=function(j){if(j.serviceReference.getProperty("objectClass").indexOf(d)!==-1&&(g.call(a,j.serviceReference),typeof a.onServiceAdded==="function"))return a.onServiceAdded(j.serviceReference,a.serviceRegistry.getService(j.serviceReference))};n=function(j){j.serviceReference.getProperty("objectClass").indexOf(d)!==
-1&&b.call(a,j.serviceReference)};e.addEventListener("registered",k);e.addEventListener("unregistering",n);e.getServiceReferences(d).forEach(function(j){g.call(a,j)});if(typeof this.onOpen==="function")this.onOpen()}}var i=0,f=1;h.prototype={addingService:function(e){return this.serviceRegistry.getService(e)},onOpen:null,onClose:null,onServiceAdded:null,removedService:function(){}};return h});
(function(h,i){typeof define==="function"&&define.amd?define("orion/Deferred",[],i):typeof exports==="object"?module.exports=i():(h.orion=h.orion||{},h.orion.Deferred=i())})(this,function(){function h(){for(var j;j=b.shift()||c.shift();)j();a=!1}function i(j,k){(k?c:b).push(j);a||(a=!0,k?setTimeout(h,0):h())}function f(a){return function(){a.apply(null,arguments)}}function e(){}function d(){var a=Error("Cancel");a.name="Cancel";return a}function g(){function a(){for(var j;j=l.shift();){var d=j.deferred,
g=b==="resolved"?"resolve":"reject";if(typeof j[g]==="function")try{var o=j[g](c);o&&typeof o.then==="function"?(d.cancel=o.cancel||e,o.then(f(d.resolve),f(d.reject),d.progress)):d.resolve(o)}catch(r){d.reject(r)}else d[g](c)}}var c,b,l=[],r=this;this.reject=function(d){b||(b="rejected",c=d,l.length&&i(a));return r.promise};this.resolve=function(d){b||(b="resolved",c=d,l.length&&i(a));return r.promise};this.progress=function(a){b||l.forEach(function(j){j.progress&&j.progress(a)});return r.promise};
this.cancel=function(){b||r.reject(d())};this.then=function(c,k,d){var c={resolve:c,reject:k,progress:d,deferred:new g},e=c.deferred,f=this.cancel.bind(this),r=function(){i(function(){(e.cancel===r?f:e.cancel)()},!0)};e.cancel=r;k=e.promise;k.cancel=function(){e.cancel()};l.push(c);b&&i(a,!0);return k};this.promise={then:this.then,cancel:this.cancel}}var b=[],c=[],a=!1;g.all=function(a,c){function b(a,j){h||(f[a]=j,--e===0&&i.resolve(f))}function d(a,j){if(!h){if(c)try{b(a,c(j));return}catch(e){j=
e}i.reject(j)}}var e=a.length,f=[],h=!1,i=new g;i.then(null,function(){h=!0;a.forEach(function(a){a.cancel&&a.cancel()})});e===0?i.resolve(f):a.forEach(function(a,j){a.then(b.bind(null,j),d.bind(null,j))});return i.promise};g.when=function(a,c,b,d){var e;if(!(a&&typeof a.then==="function"))e=new g,e.resolve(a),a=e.promise;return a.then(c,b,d)};return g});
define("orion/serviceregistry",["orion/Deferred","orion/EventTarget"],function(h,i){function f(c,a,j){this._properties=j||{};this._properties["service.id"]=c;this._properties.objectClass=a;this._properties["service.names"]=a}function e(c,a,j){this._serviceId=c;this._serviceReference=a;this._internalRegistry=j}function d(c,a){function j(j){return function(){var k;try{if(!a())throw Error("Service was unregistered");var b=c[j].apply(c,Array.prototype.slice.call(arguments));if(b&&typeof b.then==="function")return b;
else k=new h,k.resolve(b)}catch(d){k=new h,k.reject(d)}return k.promise}}for(var k in c)typeof c[k]==="function"&&(this[k]=j(k))}function g(c,a){this.type=c;this.serviceReference=a}function b(){this._entries=[];this._namedReferences={};this._serviceEventTarget=new i;var c=this;this._internalRegistry={isRegistered:function(a){return c._entries[a]?!0:!1},unregisterService:function(a){var j=c._entries[a];if(!j)throw Error("already unregistered");var k=j.reference;c._serviceEventTarget.dispatchEvent(new g("unregistering",
k));c._entries[a]=null;k.getProperty("objectClass").forEach(function(a){for(var j=c._namedReferences[a],b=0;b<j.length;b++)if(j[b]===k){j.length===1?delete c._namedReferences[a]:j.splice(b,1);break}})},modifyService:function(a){a=c._entries[a];if(!a)throw Error("already unregistered");c._serviceEventTarget.dispatchEvent(new g("modified",a.reference))}}}f.prototype={getPropertyKeys:function(){var c=[],a;for(a in this._properties)this._properties.hasOwnProperty(a)&&c.push(a);return c},getProperty:function(c){return this._properties[c]}};
f.prototype.constructor=f;e.prototype={unregister:function(){this._internalRegistry.unregisterService(this._serviceId)},getReference:function(){if(!this._internalRegistry.isRegistered(this._serviceId))throw Error("already unregistered");return this._serviceReference},setProperties:function(c){var a=this._serviceReference._properties;this._serviceReference._properties=c||{};c["service.id"]=this._serviceId;c.objectClass=a.objectClass;c["service.names"]=a["service.names"];this._internalRegistry.modifyService(this._serviceId)}};
e.prototype.constructor=e;b.prototype={getService:function(c){var a;if(typeof c==="string")(c=this._namedReferences[c])&&c.some(function(j){a=this._entries[j.getProperty("service.id")].service;return!!a},this);else if(c=this._entries[c.getProperty("service.id")])a=c.service;return a||null},getServiceReferences:function(c){if(c)return this._namedReferences[c]?this._namedReferences[c]:[];var a=[];this._entries.forEach(function(j){j&&a.push(j.reference)});return a},registerService:function(c,a,j){if(typeof a===
"undefined"||a===null)throw Error("invalid service");typeof c==="string"?c=[c]:Array.isArray(c)||(c=[]);var k=this._entries.length,b=new f(k,c,j),l=this._namedReferences;c.forEach(function(a){l[a]=l[a]||[];l[a].push(b)});c=new d(a,this._internalRegistry.isRegistered.bind(null,k));this._entries.push({reference:b,service:c});c=this._internalRegistry;this._serviceEventTarget.dispatchEvent(new g("registered",b));return new e(k,b,c)},addEventListener:function(c,a){this._serviceEventTarget.addEventListener(c,
a)},removeEventListener:function(c,a){this._serviceEventTarget.removeEventListener(c,a)}};b.prototype.constructor=b;return{ServiceRegistry:b}});
define("orion/xhr",["orion/Deferred"],function(h){function i(f,e,d,g){var b=typeof d.response!=="undefined"?d.response:d.responseText,c;try{c=d.status}catch(a){c=0}f={args:e,response:b,responseText:typeof b==="string"?b:null,status:c,url:f,xhr:d};if(typeof g!=="undefined")f.error=g;return f}return function(f,e,d){var d=d||{},g=arguments.length>3&&arguments[3]?arguments[3]:new XMLHttpRequest,b=new h,c=d.headers||{},a=d.log||!1,j;typeof c["X-Requested-With"]==="undefined"&&(c["X-Requested-With"]="XMLHttpRequest");
if(typeof d.data!=="undefined"&&(f==="POST"||f==="PUT"))j=d.data;if(typeof d.responseType==="string")g.responseType=d.responseType;g.onprogress=function(a){a.xhr=g;b.progress(a)};g.onreadystatechange=function(){if(g.readyState===4){var j=i(e,d,g),c=g.status;200<=c&&c<400?b.resolve(j):(a&&typeof console!=="undefined"&&console.log(Error(g.statusText)),b.reject(j))}};try{g.open(f,e,!0);if(typeof d.timeout==="number")if(typeof g.timeout==="number")g.timeout=d.timeout,g.addEventListener("timeout",function(){b.reject(i(e,
d,g,"Timeout exceeded"))});else{var k=setTimeout(function(){b.reject(i(e,d,g,"Timeout exceeded"))},d.timeout);b.then(clearTimeout.bind(null,k),clearTimeout.bind(null,k))}Object.keys(c).forEach(function(a){g.setRequestHeader(a,c[a])});g.send(j)}catch(n){b.reject(i(e,d,g,n))}return b.promise}});
define("orion/preferences",["require","orion/Deferred","orion/xhr"],function(h,i,f){function e(a,c){this._name=a;this._providers=c;this._flushPending=!1;this._cached=null;this._stores=[];this._dirty=[]}function d(a,c){return{get:function(b,d){if(c===0)return null;var e=localStorage.getItem(a+b);if(e===null)return null;e=JSON.parse(e);return d||c===-1||e._expires&&e._expires>(new Date).getTime()?(delete e._expires,e):null},set:function(b,d){if(c!==0){if(c!==-1)d._expires=(new Date).getTime()+1E3*c;
if(Object.keys(d).length===0)localStorage.removeItem(a+b);else{var e=JSON.stringify(d);localStorage.setItem(a+b,e);delete d._expires}}},remove:function(c){localStorage.removeItem(a+c)}}}function g(a){this._currentPromises={};this._cache=new d("/orion/preferences/user",3600);this._service=null;this.available=function(){if(!this._service){var c=a.getServiceReferences("orion.core.preference.provider");if(c.length>0)this._service=a.getService(c[0])}return!!this._service}}function b(a){this._location=
a;this._currentPromise=null;this._cache=new d("/orion/preferences/default",3600)}function c(){this._cache=new d("/orion/preferences/local",-1)}function a(a,k){this._userProvider=new g(a);this._localProvider=new c;k=k||"defaults.pref";k.indexOf("://")===-1&&(k=h.toUrl(k));this._defaultsProvider=new b(k);this._serviceRegistration=a.registerService("orion.core.preference",this)}e.prototype={_flush:function(){for(var a=[],c=0;c<this._stores.length;++c){var b=this._stores[c];this._dirty.indexOf(b)!==-1&&
a.push(this._providers[c].put(this._name,b))}this._dirty=[];return i.all(a)},_scheduleFlush:function(a){this._dirty.indexOf(a)===-1&&this._dirty.push(a);if(!this._flushPending)this._flushPending=!0,window.setTimeout(function(){if(this._flushPending)this._flushPending=!1,this._flush()}.bind(this),0)},_getCached:function(){if(!this._cached){this._cached={};for(var a=0;a<this._stores.length;++a){var c=this._stores[a],b;for(b in c)c.hasOwnProperty(b)&&typeof this._cached[b]==="undefined"&&(this._cached[b]=
c[b])}}return this._cached},keys:function(){return Object.keys(this._getCached())},get:function(a){return this._getCached()[a]},put:function(a,c){if(this._stores.length!==0){var b=this._stores[0];if(b[a]!==c)b[a]=c,this._cached=null,this._scheduleFlush(b)}},remove:function(a){for(var c=0;c<this._stores.length;++c){var b=this._stores[c];if(b.hasOwnProperty(a))return delete b[a],this._cached=null,this._scheduleFlush(b),!0}return!1},clear:function(){for(var a=0;a<this._stores.length;++a)this._stores[a]=
{},this._scheduleFlush(this._stores[a]);this._cached=null},sync:function(a){if(this._flushPending)return this._flushPending=!1,this._flush();for(var c=this,b=[],d=0;d<this._providers.length;++d)b.push(this._providers[d].get(this._name,a).then(function(a){return function(j){c._stores[a]=j}}(d)));return i.all(b).then(function(){c._cached=null;c._getCached()})},flush:function(){this._flush()}};g.prototype={get:function(a,c){if(this._currentPromises[a])return this._currentPromises[a];var b=new i,d=null;
c?this._cache.remove(a):d=this._cache.get(a);if(d!==null)b.resolve(d);else{this._currentPromises[a]=b;var e=this;this._service.get(a).then(function(c){e._cache.set(a,c);delete e._currentPromises[a];b.resolve(c)},function(c){c.status===404?(c={},e._cache.set(a,c),delete e._currentPromises[a],b.resolve(c)):(delete e._currentPromises[a],b.resolve(e._cache.get(a,!0)||{}))})}return b},put:function(a,c){this._cache.set(a,c);return this._service.put(a,c)}};b.prototype={get:function(a,c){if(this._currentPromise)return this._currentPromise;
var b=new i,d=null;c?this._cache.remove(a):d=this._cache.get(a);if(d!==null)b.resolve(d);else{this._currentPromise=b;var e=this;f("GET",this._location,{headers:{"Orion-Version":"1"},timeout:15E3}).then(function(c){c=JSON.parse(c.response);e._cache.set(a,c[a]||{});e._currentPromise=null;b.resolve(c[a]||{})},function(c){c.xhr.status===401||c.xhr.status===404?(e._cache.set(a,{}),e._currentPromise=null,b.resolve({})):(e._currentPromise=null,c=e._cache.get(a,!0),c!==null?b.resolve(c[a]||{}):b.resolve({}))})}return b},
put:function(){var a=new i;a.resolve();return a}};c.prototype={get:function(a){var c=new i,a=this._cache.get(a);a!==null?c.resolve(a):c.resolve({});return c},put:function(a,c){var b=new i;this._cache.set(a,c);b.resolve();return b}};a.DEFAULT_SCOPE=1;a.LOCAL_SCOPE=2;a.USER_SCOPE=4;a.prototype={listenForChangedSettings:function(a){window.addEventListener("storage",a,!1);return"/orion/preferences/local/settings"},getPreferences:function(c,b){if(!b||typeof b!=="number"||b>7||b<1)b=a.DEFAULT_SCOPE|a.LOCAL_SCOPE|
a.USER_SCOPE;var d=[];a.USER_SCOPE&b&&this._userProvider.available()&&d.push(this._userProvider);a.LOCAL_SCOPE&b&&d.push(this._localProvider);a.DEFAULT_SCOPE&b&&d.push(this._defaultsProvider);var g=new e(c,d);return g.sync().then(function(){return g})},getSetting:function(a,c,b){for(var d,e=0;e<a.length;e++)if(a[e].label===c)for(var g=0;g<a[e].data.length;g++)if(a[e].data[g].label===b){d=a[e].data[g].value;break}return d}};return{PreferencesService:a}});
define("orion/pluginregistry",["orion/Deferred","orion/EventTarget"],function(h,i){function f(a,c){var b=Object.keys(a),d=Object.keys(c);if(b.length!==d.length)return!1;b.sort();d.sort();for(var e=0,g=b.length;e<g;e++){var f=b[e];if(f!==d[e])return!1;var h=a[f],f=c[f];if(h!==f&&JSON.stringify(h)!==JSON.stringify(f))return!1}return!0}function e(a){if(a.indexOf("://")===-1){var c=document.createElement("a");c.href=a;return c.href}return a}function d(a){var c=null;return{key:function(b){return(c=c||
Object.keys(a))[b]},getItem:function(c){return a[c]},setItem:function(b,d){a[b]=d;c=null},removeItem:function(b){delete a[b];c=null},clear:function(){(c=c||Object.keys(a)).forEach(function(c){delete a[c]}.bind(this));c=null}}}function g(a,c){return{type:a,plugin:c}}function b(a,c,b){function d(a,c,j){if(!G)return(new h).reject(Error("plugin not connected"));var e=w++,g=new h;g.then(null,function(a){x==="active"&&a instanceof Error&&a.name==="Cancel"&&b.postMessage({id:e,cancel:a.message||"Cancel"},
G)});L[String(e)]=g;b.postMessage({id:e,serviceId:a,method:c,params:j},G);return g.promise}function e(a){var c={};if(a.methods&&(a.methods.forEach(function(b){c[b]=function(){var c=Array.prototype.slice.call(arguments);return x==="active"?d(a.serviceId,b,c):o.start({"transient":!0}).then(function(){return d(a.serviceId,b,c)})}}),c.addEventListener&&c.removeEventListener)){var b=new i;c.dispatchEvent=b.dispatchEvent.bind(b);var j=c.addEventListener;c.addEventListener=function(a,c){b._namedListeners[a]||
j(a);b.addEventListener(a,c)};var k=c.removeEventListener;c.removeEventListener=function(a,c){b.removeEventListener(a,c);b._namedListeners[a]&&k(a)}}return c}function r(c){var b=JSON.parse(JSON.stringify(c.properties));b.__plugin__=a;c=c.names||c.type||[];Array.isArray(c)||(c=[c]);b.objectClass=c;return b}function q(a){var c=e(a),j=r(a),j=b.registerService(a.names||a.type,c,j);B[a.serviceId]={registration:j,proxy:c}}function m(){b.persist(a,{created:A,headers:t,services:v,autostart:z,lastModified:y})}
function p(a){var c;try{if(a.method)if("manifest"===a.method||"plugin"===a.method){var j=a.params[0];J({headers:j.headers,services:j.services}).then(function(){H.resolve(o)})}else if("dispatchEvent"===a.method){var d=B[a.serviceId].proxy;d.dispatchEvent.apply(d,a.params)}else if("progress"===a.method)c=L[String(a.requestId)],c.progress.apply(c,a.params);else if("timeout"===a.method)H&&H.reject(a.error);else throw Error("Bad response method: "+a.method);else if(c=L[String(a.id)],delete L[String(a.id)],
a.error){var e=b.handleServiceError(o,a.error);c.reject(e)}else c.resolve(a.result)}catch(g){console.log("Plugin._responseHandler "+g)}}var o=this,c=c||{},A=c.created||(new Date).getTime(),t=c.headers||{},v=c.services||[],z=c.autostart,y=c.lastModified||0,x="installed",C,H,G,B={},w=0,L={},J;this._persist=m;this._resolve=function(){x="resolved";b.dispatchEvent(new g("resolved",o))};this._getAutostart=function(){return z};this._getCreated=function(){return A};this.getLocation=function(){return a};this.getHeaders=
function(){return JSON.parse(JSON.stringify(t))};this.getName=function(){var a=this.getHeaders();return a?a.name||"":null};this.getVersion=function(){var a=this.getHeaders();return a?a.version||"0.0.0":null};this.getLastModified=function(){return y};this.getServiceReferences=function(){var a=[];Object.keys(B).forEach(function(c){a.push(B[c].registration.getReference())});return a};this.getState=function(){return x};this.start=function(c){if(x==="uninstalled")return(new h).reject(Error("Plugin is uninstalled"));
if(C)return C.promise.then(this.start.bind(this,c));if(x==="active")return(new h).resolve();if(!c||!c["transient"]){var j=c&&c.lazy?"lazy":"started";j!==z&&(z=j,m())}j=b.getState();if(j!=="starting"&&j!=="active")return c["transient"]?(new h).reject(Error("start transient error")):(new h).resolve();if(x==="installed")try{this._resolve()}catch(d){return(new h).reject(d)}x==="resolved"&&v.forEach(function(a){q(a)});if(c&&c.lazy)return x!=="starting"&&(x="starting",b.dispatchEvent(new g("lazy activation",
o))),(new h).resolve();var e=new h;C=e;x="starting";b.dispatchEvent(new g("starting",o));H=new h;G=b.connect(a,p);H.then(function(){H=null;x="active";b.dispatchEvent(new g("started",o));C=null;e.resolve()},function(){H=null;x="stopping";b.dispatchEvent(new g("stopping",o));Object.keys(B).forEach(function(a){B[a].registration.unregister();delete B[a]});b.disconnect(G);G=null;x="resolved";C=null;b.dispatchEvent(new g("stopped",o));e.reject(Error("plugin activation error"))});return e.promise};this.stop=
function(a){if(x==="uninstalled")return(new h).reject(Error("Plugin is uninstalled"));if(C)return C.promise.then(this.stop.bind(this,a));if((!a||!a["transient"])&&"stopped"!==z)z="stopped",m();if(x!=="active"&&x!=="starting")return(new h).resolve();C=a=new h;x="stopping";b.dispatchEvent(new g("stopping",o));Object.keys(B).forEach(function(a){B[a].registration.unregister();delete B[a]});G&&(b.disconnect(G),G=null);x="resolved";C=null;b.dispatchEvent(new g("stopped",o));a.resolve();return a.promise};
J=function(c){if(x==="uninstalled")return(new h).reject(Error("Plugin is uninstalled"));if(!c)return y===0&&(y=(new Date).getTime(),m()),b.loadManifest(a).then(J);var j=t,d=v,e=z;t=c.headers||{};v=c.services||{};z=c.autostart||z;c.lastModified?y=c.lastModified:(y=(new Date).getTime(),m());if(f(t,j)&&f(v,d)&&z===e)return(new h).resolve();if(x==="active"||x==="starting"){var n=[];Object.keys(v).forEach(function(a){var c=v[a];n.push(a);var b=B[a];if(b){if(f(c.methods,Object.keys(b.proxy))){var a=r(c),
j=b.registration.getReference(),d={};j.getPropertyKeys().forEach(function(a){d[a]=j.getProperty(a)});f(a,d)||b.registration.setProperties(a);return}b.registration.unregister();delete B[a]}q(c)});Object.keys(B).forEach(function(a){n.indexOf(a)===-1&&(B[a].registration.unregister(),delete B[a])})}x==="active"&&(b.disconnect(G),H=new h,G=b.connect(a,p),H.then(function(){H=null},function(){H=null;x="stopping";b.dispatchEvent(new g("stopping"),o);Object.keys(B).forEach(function(a){B[a].registration.unregister();
delete B[a]});b.disconnect(G);G=null;x="resolved";b.dispatchEvent(new g("stopped",o))}));return(new h).resolve()};this.update=function(a){return J(a).then(function(){b.dispatchEvent(new g("updated",o))})};this.uninstall=function(){if(x==="uninstalled")return(new h).reject(Error("Plugin is uninstalled"));if(x==="active"||x==="starting"||x==="stopping")return this.stop().then(this.uninstall.bind(this),this.uninstall.bind(this));b.removePlugin(this);x="uninstalled";b.dispatchEvent(new g("uninstalled",
o));return(new h).resolve()}}var c=/^http[s]?/i;return{Plugin:b,PluginRegistry:function(a,j){function k(a){var c=a.source;q.some(function(b){if(c===b.target){if(typeof b.useStructuredClone==="undefined")b.useStructuredClone=typeof a.data!=="string";b.handler(b.useStructuredClone?a.data:JSON.parse(a.data));return!0}})}var j=j||{},n=j.storage||localStorage;n.getItem||(n=d(n));var l="installed",f=[],q=[],m=new i,p={},o={registerService:a.registerService.bind(a),connect:function(a,c,b){function d(a){a=
Error(a);a.name="timeout";c({method:"timeout",error:a})}var k={handler:c,url:a},e=setTimeout(d.bind(null,"Load timeout for: "+a),b||15E3),g=document.createElement("iframe");g.name=a+"_"+(new Date).getTime();if(!j.visible)g.style.display="none",g.style.visibility="hidden";g.src=a;g.onload=function(){clearTimeout(e);setTimeout(d.bind(null,"Plugin handshake timeout for: "+a),5E3)};g.sandbox="allow-scripts allow-same-origin";document.body.appendChild(g);k.target=g.contentWindow;k.close=function(){g&&
(document.body.removeChild(g),g=null)};q.push(k);return k},disconnect:function(a){for(var c=0;c<q.length;c++)if(a===q[c]){q.splice(c,1);try{a.close()}catch(b){}break}},removePlugin:function(a){for(var c=0;c<f.length;c++)if(a===f[c]){f.splice(c,1);break}n.removeItem("plugin."+a.getLocation())},persist:function(a,c){n.setItem("plugin."+a,JSON.stringify(c))},postMessage:function(a,c){c.target.postMessage(c.useStructuredClone?a:JSON.stringify(a),c.url)},dispatchEvent:function(a){try{m.dispatchEvent(a)}catch(c){console&&
console.log("PluginRegistry.dispatchEvent "+c)}},loadManifest:function(a){var c=new h,b=o.connect(a,function(a){b&&a.method&&("manifest"===a.method||"plugin"===a.method?(a=a.params[0],o.disconnect(b),b=null,c.resolve(a)):"timeout"===a.method&&(o.disconnect(b),b=null,c.reject(a.error)))});return c.promise},getState:function(){return l},handleServiceError:function(a,b){if(b&&b.status===401){var j=a.getHeaders(),d=a.getName()||a.getLocation(),k=document.createElement("span");k.appendChild(document.createTextNode("Authentication required for: "+
d+"."));if(j.login)k.appendChild(document.createTextNode(" ")),d=document.createElement("a"),d.target="_blank",d.textContent="Login",d.href=j.login,c.test(d.href)?(k.appendChild(d),k.appendChild(document.createTextNode(" and re-try the request."))):console.log("Illegal Login URL: "+j.login);return{Severity:"Error",HTML:!0,Message:(new XMLSerializer).serializeToString(k)}}if(b.__isError){var e=b,b=Error(e.message);Object.keys(e).forEach(function(a){b[a]=e[a]});delete b.__isError}return b}};this.getLocation=
function(){return"System"};this.getHeaders=function(){return{}};this.getName=function(){return"System"};this.getVersion=function(){return"0.0.0"};this.getLastModified=function(){return 0};this.getState=o.getState;this.init=function(){if(!(l==="starting"||l==="active"||l==="stopping")){addEventListener("message",k,!1);for(var a=[],c=0,d=n.length;c<d;c++)a.push(n.key(c));a.forEach(function(a){if(a.indexOf("plugin.")===0){var c=a.substring(7),a=JSON.parse(n.getItem(a));a.created&&f.push(new b(c,a,o))}});
f.sort(function(a,c){return a._getCreated()<c._getCreated()?-1:1});j.plugins&&Object.keys(j.plugins).forEach(function(a){a=e(a);if(!this.getPlugin(a)){var c=j.plugins[a],c=typeof c==="object"||{};c.autostart=c.autostart||j.defaultAutostart||"lazy";f.push(new b(a,c,o))}}.bind(this));l="starting"}};this.start=function(){l!=="starting"&&this.init();if(l!=="starting")return(new h).reject("Cannot start framework. Framework is already "+l+".");var a=[],c=(new Date).getTime();f.forEach(function(b){var j=
b._getAutostart();b.getLastModified()===0?a.push(b.update().then(function(){if("started"===j)return b.start({"transient":!0});if("lazy"===j)return b.start({lazy:!0,"transient":!0});b._resolve()})):"started"===j?a.push(b.start({"transient":!0})):"lazy"===j?(a.push(b.start({lazy:!0,"transient":!0})),c>b.getLastModified()+864E5&&b.update()):b._resolve()});return h.all(a,function(a){console.log("PluginRegistry.stop "+a)}).then(function(){l="active"})};this.stop=function(){if(l!=="starting"&&l!=="active")return(new h).reject("Cannot stop registry. Registry is already "+
l+".");l="stopping";var a=[];f.forEach(function(c){a.push(c.stop({"transient":!0}))});return h.all(a,function(a){console.log("PluginRegistry.stop "+a)}).then(function(){removeEventListener("message",k);l="resolved"})};this.update=function(){this.stop().then(this.start.bind(this))};this.uninstall=function(){return(new h).reject("Cannot uninstall registry")};this.installPlugin=function(a,c){var a=e(a),j=this.getPlugin(a);if(j)return(new h).resolve(j);if(p[a])return p[a];if(c)return j=new b(a,c,o),f.push(j),
j._persist(),o.dispatchEvent(new g("installed",j)),(new h).resolve(j);var d=o.loadManifest(a).then(function(c){j=new b(a,c,o);f.push(j);j._persist();delete p[a];o.dispatchEvent(new g("installed",j));return j},function(c){delete p[a];throw c;});return p[a]=d};this.getPlugins=function(){return f.slice()};this.getPlugin=function(a){var c=null,a=e(a);f.some(function(b){if(a===b.getLocation())return c=b,!0});return c};this.addEventListener=m.addEventListener.bind(m);this.removeEventListener=m.removeEventListener.bind(m);
this.resolvePlugins=function(){var a=!0;f.forEach(function(c){a=a&&c._resolve()});return a}}}});
define("orion/config",["orion/Deferred","orion/serviceTracker"],function(h,i){var f,e,d,g,b,c="pid";f=function(a,b,d){function e(a,c,j){c.forEach(function(d,e){try{var g=a[e].getProperty("__plugin__"),n=g&&b.getPlugin(g);(!g||n&&n.getState()==="active")&&c[e].updated(j)}catch(l){typeof console!=="undefined"&&console.log(l)}})}i.call(this,a,"orion.cm.managedservice");var g={},f={},m=function(b){var k=[];b.plugin.getServiceReferences().forEach(function(b){if(b.getProperty("objectClass").indexOf("orion.cm.managedservice")!==
-1){var e=b.getProperty(c),b=a.getService(b);e&&b&&(e=(e=d._find(e))&&e.getProperties(),k.push(b.updated(e)))}});return h.all(k)};this.addingService=function(b){var d=b.getProperty(c),k=a.getService(b);if(!d||!k)return null;g[d]||(g[d]=[]);f[d]||(f[d]=[]);g[d].push(b);f[d].push(k);return k};this.onServiceAdded=function(a,b){var j=a.getProperty(c),j=d._find(j);e([a],[b],j&&j.getProperties())};this.onOpen=function(){b.addEventListener("started",m)};this.onClose=function(){b.removeEventListener("started",
m)};this.notifyUpdated=function(a){var c=a.getPid();e(g[c]||[],f[c]||[],a.getProperties())};this.notifyDeleted=function(a){a=a.getPid();e(g[a]||[],f[a]||[],null)};this.removedService=function(a,b){var j=a.getProperty(c),d=g[j],k=f[j];d.length>1?d.splice(d.indexOf(a),1):delete g[j];k.length>1?k.splice(k.indexOf(b),1):delete f[j]}};e=function(){function a(c,b,j){this.store=new d(this,j);this.configAdmin=new g(this,this.store);this.tracker=new f(c,b,this.store)}a.prototype={getConfigurationAdmin:function(){var a=
this;return this.configAdmin._init().then(function(c){a.tracker.open();return c})},notifyDeleted:function(a){this.tracker.notifyDeleted(a)},notifyUpdated:function(a){this.tracker.notifyUpdated(a)}};return a}();g=function(){function a(c,b){this.factory=c;this.store=b}a.prototype={_init:function(){var a=this;return this.store._init().then(function(){return a})},getConfiguration:function(a){return this.store.get(a)},listConfigurations:function(){return this.store.list()}};return a}();var a="/cm/configurations";
d=function(){function j(j,d){this.factory=j;this.prefsService=d;this.configs=Object.create(null);this.pref=null;var e=this;this.initPromise=this.prefsService.getPreferences(a).then(function(a){e.pref=a;a.keys().forEach(function(j){if(!e.configs[j]){var d=a.get(j);typeof d==="object"&&d!==null&&Object.keys(d).length>0&&(d[c]=j,e.configs[j]=new b(e.factory,e,d))}})})}j.prototype={_init:function(){return this.initPromise},_find:function(a){return this.configs[a]||null},get:function(a){var c=this._find(a);
c||(c=new b(this.factory,this,a),this.configs[a]=c);return c},list:function(){var a=this,c=[];this.pref.keys().forEach(function(b){(b=a._find(b))&&b.getProperties()!==null&&c.push(b)});return c},remove:function(a){this.pref.remove(a);delete this.configs[a]},save:function(a,c){this.pref.put(a,c.getProperties(!0)||{})}};return j}();b=function(){function a(c){for(var b={},j=Object.keys(c),d=0;d<j.length;d++){var e=j[d],k=c[e];b[e]=k instanceof Array?k.slice():k}return b}function b(d,e,k){this.factory=
d;this.store=e;if(k!==null&&typeof k==="object")this.pid=k[c],d=a(k),delete d[c],this.properties=d;else if(typeof k==="string")this.pid=k,this.properties=null;else throw Error("Invalid pid/properties "+k);}b.prototype={_checkRemoved:function(){if(this._removed)throw Error("Configuration was removed");},getPid:function(){this._checkRemoved();return this.pid},getProperties:function(b){this._checkRemoved();var d=null;if(this.properties&&(d=a(this.properties),!b))d[c]=this.pid;return d},remove:function(){this._checkRemoved();
this.factory.notifyDeleted(this);this.store.remove(this.pid);this._removed=!0},update:function(b){this._checkRemoved();b=a(b);delete b[c];this.properties=b;this.store.save(this.pid,this);this.factory.notifyUpdated(this)},toString:function(){return"[ConfigImpl pid: "+this.pid+", properties: "+JSON.stringify(this.properties)+"]"}};return b}();return{ConfigurationAdminFactory:e}});
define("orion/bootstrap","require,orion/Deferred,orion/serviceregistry,orion/preferences,orion/pluginregistry,orion/config".split(","),function(h,i,f,e,d,g){var b;return{startup:function(){if(b)return b;b=new i;var c=window.serviceRegistry=new f.ServiceRegistry,a=new e.PreferencesService(c);return a.getPreferences("/plugins").then(function(j){var e={plugins:{}};j.keys().forEach(function(a){var c=h.toUrl(a);e.plugins[c]=j[a]});var n=window.pluginRegistry=new d.PluginRegistry(c,e);return n.start().then(function(){if(c.getServiceReferences("orion.core.preference.provider").length>
0)return a.getPreferences("/plugins",a.USER_SCOPE).then(function(a){var c=[];a.keys().forEach(function(a){a=h.toUrl(a);n.getPlugin(a)||c.push(n.installPlugin(a,{autostart:"lazy"}).then(function(a){return a.update().then(function(){return a.start({lazy:!0})})}))});return i.all(c,function(a){console.log(a)})})}).then(function(){return(new g.ConfigurationAdminFactory(c,n,a)).getConfigurationAdmin().then(c.registerService.bind(c,"orion.cm.configadmin"))}).then(function(){var a=c.getService("orion.core.auth");
if(a){var b=a.getUser().then(function(c){if(c)localStorage.setItem("lastLogin",(new Date).getTime());else return a.getAuthForm(window.location.href).then(function(a){window.location=a})}),j=localStorage.getItem("lastLogin");if(!j||j<(new Date).getTime()-9E5)return b}}).then(function(){var j={serviceRegistry:c,preferences:a,pluginRegistry:n};b.resolve(j);return j})})}}});
define("orion/i18nUtil",["require","orion/Deferred"],function(h,i){function f(d){if(d=localStorage.getItem("orion/messageBundle/"+d))if(d=JSON.parse(d),d._expires&&d._expires>(new Date).getTime())return delete d._expires,d;return null}var e={};return{getMessageBundle:function(d){function g(){h(["i18n!"+d],function(a){if(a){var c=d;a._expires=(new Date).getTime()+9E5;localStorage.setItem("orion/messageBundle/"+c,JSON.stringify(a));delete a._expires}b.resolve(a)})}if(e[d])return e[d];var b=new i;e[d]=
b;var c=f(d);if(c)return b.resolve(c),b;try{h([d],g)}catch(a){h(["orion/i18n!"+d],g)}return b},formatMessage:function(d){var e=arguments;return d.replace(/\$\{([^\}]+)\}/g,function(b,c){return e[(c<<0)+1]})}}});
define("orion/webui/littlelib",["require"],function(){function h(c,a){a||(a=document);return a.querySelectorAll(c)}function i(c,a){var b=c.compareDocumentPosition(a);return c===a||Boolean(b&16)}function f(c){if(c.tabIndex>=0)return c;if(c.hasChildNodes())for(var a=0;a<c.childNodes.length;a++){var b=f(c.childNodes[a]);if(b)return b}return null}function e(c){if(c.tabIndex>=0)return c;if(c.hasChildNodes())for(var a=c.childNodes.length-1;a>=0;a--){var b=e(c.childNodes[a]);if(b)return b}return null}function d(c,
a){if(c.nodeType===3){var b=g.exec(c.nodeValue);b&&b.length>1&&c.parentNode.replaceChild(document.createTextNode(a[b[1]]||b[1]),c)}if(c.hasChildNodes())for(b=0;b<c.childNodes.length;b++)d(c.childNodes[b],a)}var g=/\$\{([^\}]+)\}/,b=[];return{$:function(c,a){a||(a=document);return a.querySelector(c)},$$:h,$$array:function(c,a){return Array.prototype.slice.call(h(c,a))},node:function(c){var a=c;typeof c==="string"&&(a=document.getElementById(c));return a},contains:i,bounds:function(c){c=c.getBoundingClientRect();
return{left:c.left+document.body.scrollLeft,top:c.top+document.body.scrollTop,width:c.width,height:c.height}},empty:function(c){for(;c.hasChildNodes();)c.removeChild(c.firstChild)},firstTabbable:f,lastTabbable:e,stop:function(c){window.document.all?c.keyCode=0:(c.preventDefault(),c.stopPropagation())},processTextNodes:d,addAutoDismiss:function(c,a){b.length===0&&document.addEventListener("click",function(a){for(var c=[],d=0;d<b.length;d++){for(var e=b[d].excludeNodes,g=b[d].dismiss,f=!1,h=!0,p=0;p<
e.length;p++)if((f=document.compareDocumentPosition(document,e[p])!==1)&&i(e[p],a.target)){h=!1;break}h&&(g(),f=document.compareDocumentPosition(document,e[p])!==1);f&&c.push(b[d])}b=c},!0);b.push({excludeNodes:c,dismiss:a})},KEY:{BKSPC:8,TAB:9,ENTER:13,ESCAPE:27,SPACE:32,PAGEUP:33,PAGEDOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,INSERT:45,DEL:46}}});
define("orion/selection",["orion/EventTarget"],function(h){function i(f,e){e||(e="orion.page.selection");this._serviceRegistry=f;h.attach(this);this._serviceRegistration=f.registerService(e,this);this._selections=null}i.prototype={getSelection:function(f){f(this._getSingleSelection())},getSelections:function(f){f(this._selections||[])},_getSingleSelection:function(){return this._selections&&this._selections.length>0?this._selections[0]:null},setSelections:function(f){var e=this._selections;this._selections=
Array.isArray(f)?f.length>0?f:null:f?[f]:null;e!==this._selections&&this.dispatchEvent({type:"selectionChanged",selection:this._getSingleSelection(),selections:this._selections})}};i.prototype.constructor=i;return{Selection:i}});
define("orion/nls/root/messages",{Navigator:"Navigator",Sites:"Sites",Repositories:"Repositories",Shell:"Shell","Get Plugins":"Get Plugins",Global:"Global",Editor:"Editor","Orion Editor":"Orion 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.":"Orion build I20130222-1257. See the FAQ for terms of service","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",Search:"Search","Advanced search":"Advanced search",Submit:"Submit",More:"More","Saved searches":"Saved searches","Recent searches":"Recent searches","Open in new tab":"Open in new tab","Regular expression":"Regular expression","Search options":"Search options","Global search":"Global search","Orion Home":"Orion Home","Close notification":"Close notification","Operations - Press spacebar to show current operations":"Operations - Press spacebar to show current operations",
"Type a keyword or wild card to search in root":"Type a keyword or wild card to search in root","Toggle side panel":"Toggle side panel","Open or close the side panel":"Open or close the side panel",Projects:"Projects","Toggle Outliner":"Toggle Outliner","Sample HTML5 Site":"Sample HTML5 Site","Generate an HTML5 'Hello World' website, including JavaScript, HTML, and CSS files.":"Generate an HTML5 'Hello World' website, including JavaScript, HTML, and CSS files.","Sample Orion Plugin":"Sample Orion Plugin",
"Generate a sample plugin for integrating with Orion.":"Generate a sample plugin for integrating with Orion."});define("orion/nls/messages",["orion/i18n!orion/nls/messages","orion/nls/root/messages"],function(h,i){var f={root:i};Object.keys(h).forEach(function(e){typeof f[e]==="undefined"&&(f[e]=h[e])});return f});
define("orion/operations/nls/root/messages",{More:"More","No Matching OperationService for location:":"No Matching OperationService for location:","No operations services registered.":"No operations services registered.","could not find toolbar ":"could not find toolbar ","Remove Completed":"Remove Completed","Remove all completed operations":"Remove all completed operations",Remove:"Remove","Remove operations from the operations list.":"Remove operations from the operations list.",Cancel:"Cancel",
"Cancel operations from the operations list.":"Cancel operations from the operations list.","Operation resulted in a warning.":"Operation resulted in a warning.","Operation resulted in an error.":"Operation resulted in an error.","Operation is running.":"Operation is running.","Operation is canceled.":"Operation is canceled.","Operation failed.":"Operation failed.",Name:"Name",Actions:"Actions",Status:"Status",Scheduled:"Scheduled"});
define("orion/operations/nls/messages",["orion/i18n!orion/operations/nls/messages","orion/operations/nls/root/messages"],function(h,i){var f={root:i};Object.keys(h).forEach(function(e){typeof f[e]==="undefined"&&(f[e]=h[e])});return f});
define("orion/webui/tooltip",["require","orion/webui/littlelib"],function(h,i){function f(e){this._init(e)}f.prototype={_init:function(e){this._node=i.node(e.node);if(!this._node)throw"no dom node for tooltip found";this._position=e.position||["right","above","below","left"];this._text=e.text;this._hideDelay=e.hideDelay===void 0?200:e.hideDelay;this._tailSize=e.tailSize||10;this._trigger=e.trigger||"mouseover";this._afterShowing=e.afterShowing;this._afterHiding=e.afterHiding;var d=this;if(this._trigger===
"click")this._showDelay=0,this._node.addEventListener("click",function(b){b.target===d._node&&(d.show(),i.stop(b))},!1);else if(this._trigger==="mouseover"){this._showDelay=e.showDelay===void 0?1E3:e.showDelay;e=["mouseout","click"];this._node.addEventListener("mouseover",function(b){i.contains(d._node,b.target)&&(d.show(),i.stop(b))},!1);for(var g=0;g<e.length;g++)this._node.addEventListener(e[g],function(b){i.contains(d._node,b.target)&&d.hide()},!1)}},_makeTipNode:function(){if(!this._tip){this._tip=
document.createElement("span");this._tip.classList.add("tooltipContainer");this._tipInner=document.createElement("span");this._tipInner.classList.add("tooltip");this._text&&this._tipInner.appendChild(document.createTextNode(this._text));this._tip.appendChild(this._tipInner);document.body.appendChild(this._tip);var e=this;i.addAutoDismiss([this._tip,this._node],function(){e.hide()});if(this._trigger==="mouseover")this._tipInner.role="tooltip",this._tipInner.id="tooltip"+(new Date).getTime().toString(),
this._node.setAttribute("aria-describedby",this._tipInner.id),this._tip.addEventListener("mouseover",function(){if(e._timeout)window.clearTimeout(e._timeout),e._timeout=null;e._tip.addEventListener("mouseout",function(d){i.contains(e._tip,d.target)&&(e.hide(),i.stop(d))},!1)},!1)}return this._tip},_positionTip:function(e,d){this._makeTipNode();if(this._tailBorder)this._tip.removeChild(this._tailBorder),this._tailBorder=null,this._tip.removeChild(this._tail),this._tail=null;e==="left"?this._tipInner.classList.add("left"):
this._tipInner.classList.remove("left");var g=i.bounds(this._node),b=i.bounds(this._tipInner),c;switch(e){case "above":c=g.top-b.height-this._tailSize-1;g=g.left-this._tailSize;break;case "below":c=g.top+g.height+this._tailSize+1;g=g.left-this._tailSize;break;case "left":c=g.top-this._tailSize/2;g=g.left-b.width-this._tailSize-1;break;default:c=g.top-this._tailSize/2,g=g.left+g.width+this._tailSize+1}var a=i.bounds(document.documentElement);if(c+b.height>a.height)if(d)c=a.height-b.height-1;else return!1;
if(g+b.width>a.width)if(d)g=a.width-b.width-1;else return!1;if(g<0)if(d)g=4;else return!1;if(c<0)if(d)c=4;else return!1;this._tailBorder=document.createElement("span");this._tailBorder.classList.add("tooltipTailBorderFrom"+e);this._tail=document.createElement("span");this._tail.classList.add("tooltipTailFrom"+e);e==="above"||e==="left"?(this._tip.appendChild(this._tailBorder),this._tip.appendChild(this._tail)):(this._tip.insertBefore(this._tailBorder,this._tipInner),this._tip.insertBefore(this._tail,
this._tipInner));this._tip.style.top=c+"px";this._tip.style.left=g+"px";this._tip.style.width=b.width+"px";this._tip.style.height=b.height+"px";return!0},contentContainer:function(){this._makeTipNode();return this._tipInner},show:function(){if(!this._tip||!this._tip.classList.contains("tooltipShowing")){var e=this;if(this._timeout)window.clearTimeout(this._timeout),this._timeout=null;this._timeout=window.setTimeout(function(){for(var d=!1,g=0;!d&&g<e._position.length;)d=e._positionTip(e._position[g]),
g++;d||e._positionTip(e._position[0],!0);e._tip.classList.add("tooltipShowing");e._afterShowing&&e._afterShowing()},this._showDelay)}},hide:function(e){if(this._timeout)window.clearTimeout(this._timeout),this._timeout=null;if(this._tip&&this._tip.classList.contains("tooltipShowing")){if(e===void 0)e=this._hideDelay;var d=this;this._timeout=window.setTimeout(function(){d._tip.classList.remove("tooltipShowing");d._afterHiding&&d._afterHiding()},e)}},destroy:function(){if(this._timeout)window.clearTimeout(this._timeout),
this._timeout=null;if(this._tip)document.body.removeChild(this._tip),this._tailBorder=this._tail=this._tipInner=this._tip=null}};f.prototype.constructor=f;return{Tooltip:f}});
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:","Port:":"SFTP Port:","Remote path:":"Remote path:","User name:":"User name:","Password:":"Password:","Start Transfer":"Start Transfer","Location:":"Location:","orion.sftpConnections":"orion.sftpConnections","Drag a file here":"Drag a file here","unzip zips":"Unzip *.zip files","or if you prefer":"(or upload a file using the buttons below)",Upload:"Upload","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...":"Populating favorites...",Favorite:"Favorite","Searching...":"Searching...",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","If the same file exists in both the source and destination:":"If the same file exists in both the source and destination:","Cancel the transfer":"Cancel the transfer","Always overwrite destination":"Always overwrite destination",
"Overwrite if source is newer":"Overwrite if source is newer",New:"New","Building file skeleton...":"Building file skeleton...",Add:"Add","Upload...":"Upload...","For a list of available commands type '${0}'.":"For a list of available commands type '${0}'."});define("orion/widgets/nls/messages",["orion/i18n!orion/widgets/nls/messages","orion/widgets/nls/root/messages"],function(h,i){var f={root:i};Object.keys(h).forEach(function(e){typeof f[e]==="undefined"&&(f[e]=h[e])});return f});
define("orion/webui/popupdialog",["i18n!orion/widgets/nls/messages","require","orion/webui/littlelib","orion/webui/tooltip"],function(h,i,f,e){function d(){}d.prototype={_initialize:function(d,b,c,a,j){this._tooltip=new e.Tooltip({node:d,hideDelay:j||0,afterShowing:this._afterShowingFunction(b).bind(this),afterHiding:c,trigger:a?a:"click"});this.$parent=this._tooltip.contentContainer();this.$parent.role="dialog";d=document.createRange();d.selectNode(this.$parent);d=d.createContextualFragment(this.TEMPLATE);
this.messages&&f.processTextNodes(d,h);this.$parent.appendChild(d);var k=this._tooltip;this.$parent.addEventListener("keydown",function(a){a.keyCode===f.KEY.ESCAPE&&k.hide()},!1);this._bindElements(this.$parent);typeof this._bindToDom==="function"&&this._bindToDom(this.$parent)},_bindElements:function(d){for(var b=0;b<d.childNodes.length;b++){var c=d.childNodes[b];c.id&&(this["$"+c.id]=c);this._bindElements(c)}},_afterShowingFunction:function(d){return function(){d&&d.bind(this)();if(!this.customFocus){var b=
f.firstTabbable(this.$parent);b&&b.focus()}}},hide:function(){this._tooltip.hide()},show:function(){this._tooltip.show()}};d.prototype.constructor=d;return{PopupDialog:d}});define("orion/dialogs",[],function(){function h(h){this._serviceRegistry=h;this._serviceRegistration=h.registerService("orion.page.dialog",this)}h.prototype={confirm:function(h,f){f(window.confirm(h))},openFiles:function(){}};h.prototype.constructor=h;return{DialogService:h}});
define("orion/ssh/sshTools",[],function(){var h=h||{};h.SshService=function(){function h(f){if(f)this._serviceRegistry=f,this._serviceRegistration=f.registerService("orion.net.ssh",this)}h.prototype={_KNOWN_HOSTS:"known_hosts",addKnownHosts:function(f,e){e||(e="");var d=localStorage.getItem(e+this._KNOWN_HOSTS);d?d.indexOf(f)<0&&localStorage.setItem(e+this._KNOWN_HOSTS,d+"\n"+f):localStorage.setItem(e+this._KNOWN_HOSTS,f)},clearKnownhosts:function(f){f||(f="");localStorage.removeItem(f+this._KNOWN_HOSTS)},
getKnownHosts:function(f){f||(f="");return localStorage.getItem(f+this._KNOWN_HOSTS)}};return h}();return h});
define("orion/uiUtils",["i18n!orion/nls/messages","orion/webui/littlelib"],function(h,i){function f(e){var d=window.navigator.platform.indexOf("Mac")!==-1;return d&&e.metaKey||!d&&e.ctrlKey}return{getUserKeyString:function(e){var d="",g=navigator.platform.indexOf("Mac")!==-1;e.mod1&&(d+=g?"Cmd+":"Ctrl+");e.mod2&&(d+="Shift+");e.mod3&&(d+="Alt+");e.mod4&&g&&(d+="Ctrl+");if(e.alphaKey)return d+e.alphaKey;for(var b in i.KEY)if(typeof(i.KEY[b]==="number")&&i.KEY[b]===e.keyCode)return d+b;var c;switch(e.keyCode){case 59:c=
e.mod2?":":";";break;case 61:c=e.mod2?"+":"=";break;case 188:c=e.mod2?"<":",";break;case 190:c=e.mod2?">":".";break;case 191:c=e.mod2?"?":"/";break;case 192:c=e.mod2?"~":"`";break;case 219:c=e.mod2?"{":"[";break;case 220:c=e.mod2?"|":"\\";break;case 221:c=e.mod2?"}":"]";break;case 222:c=e.mod2?'"':"'"}return c?d+c:e.keyCode>=112&&e.keyCode<=123?d+"F"+(e.keyCode-111):d+String.fromCharCode(e.keyCode)},getUserText:function(e,d,g,b,c,a,j,k,n){var l=!1,j=function(j){return function(k){if(!l){var f=i.node(e),
o=f.value;if(f)if(j&&k.keyCode===i.KEY.ESCAPE){if(g)d.style.display="inline";f.parentNode.removeChild(f);l=!0;a&&a()}else if(!(j&&k.keyCode!==i.KEY.ENTER)){if(o.length===0||!n&&o===b){if(g)d.style.display="inline"}else c(o);l=!0;f.parentNode&&f.parentNode.removeChild(f);a&&a()}}}},f=document.createElement("input");f.id=e;f.value=b||"";d.parentNode.insertBefore(f,d.nextSibling);f.classList.add("userEditBoxPrompt");if(g)d.style.display="none";f.addEventListener("keydown",j(!0),!1);f.addEventListener("blur",
j(!1),!1);window.setTimeout(function(){f.focus();if(b){var a=i.node(e),c=k?b.indexOf(k):-1;if(c>0)if(a.createTextRange)a=a.createTextRange(),a.collapse(!0),a.moveStart("character",0),a.moveEnd("character",c),a.select();else if(a.setSelectionRange)a.setSelectionRange(0,c);else{if(a.selectionStart!==void 0)a.selectionStart=0,a.selectionEnd=c}else a.select()}},0)},openInNewWindow:f,followLink:function(e,d){d&&f(d)?window.open(e):window.location=e},createButton:function(e,d){var g=document.createElement("span");
g.role="button";g.tabIndex=0;g.appendChild(document.createTextNode(e));g.className="commandButton commandMargins";g.addEventListener("click",function(b){d();i.stop(b)},!1);g.addEventListener("keydown",function(b){if(b.keyCode===i.KEY.ENTER||b.keyCode===i.KEY.SPACE)d(),i.stop(b)},!1);return g}}});
define("orion/webui/dropdown",["require","orion/webui/littlelib"],function(h,i){function f(e){this._init(e)}f.prototype={_init:function(e){this._dropdownNode=i.node(e.dropdown);if(!this._dropdownNode)throw"no dom node for dropdown found";this._triggerNode=i.$(".dropdownTrigger",this._dropdownNode.parentNode);if(!this._triggerNode)throw"no dom node for dropdown trigger found";this._populate=e.populate;var d=this;this._triggerNode.addEventListener("click",function(e){d.toggle()&&i.stop(e)},!1);this._triggerNode.tagName.toLowerCase()===
"span"&&this._triggerNode.addEventListener("keydown",function(e){if(e.keyCode===i.KEY.ENTER||e.keyCode===i.KEY.SPACE)d.toggle(),i.stop(e)},!1);this._dropdownNode.addEventListener("keydown",this._dropdownKeyDown.bind(this),!1)},toggle:function(){return this._triggerNode.classList.contains("dropdownTriggerOpen")?this.close():this.open()},open:function(){this._populate&&(this.empty(),this._populate(this._dropdownNode));var e=this.getItems();if(e.length>0){if(!this._hookedAutoDismiss)i.addAutoDismiss([this._triggerNode,
this._dropdownNode],this.close.bind(this)),this._hookedAutoDismiss=!0;this._positionDropdown();this._triggerNode.classList.add("dropdownTriggerOpen");this._dropdownNode.classList.add("dropdownMenuOpen");e[0].focus();return!0}return!1},_positionDropdown:function(){this._dropdownNode.style.left="";var e=i.bounds(this._dropdownNode),d=i.bounds(this._boundingNode(this._triggerNode));if(e.left+e.width>d.left+d.width)this._dropdownNode.style.right=0},_boundingNode:function(e){return e.style.right!==""||
e.style.position==="absolute"||!e.parentNode||!e.parentNode.style?e:this._boundingNode(e.parentNode)},close:function(e){this._triggerNode.classList.remove("dropdownTriggerOpen");this._dropdownNode.classList.remove("dropdownMenuOpen");e&&this._triggerNode.focus();return!0},getItems:function(){var e=[],d=this;i.$$array("li:not(.dropdownSeparator) > .dropdownMenuItem",this._dropdownNode,!0).forEach(function(g){g.parentNode.parentNode===d._dropdownNode&&e.push(g)});return e},empty:function(){var e=this;
i.$$array("li",this._dropdownNode).forEach(function(d){d.parentNode===e._dropdownNode&&d.parentNode.removeChild(d)})},_dropdownKeyDown:function(e){if(e.keyCode===i.KEY.UP||e.keyCode===i.KEY.DOWN||e.keyCode===i.KEY.RIGHT||e.keyCode===i.KEY.ENTER||e.keyCode===i.KEY.LEFT){var d=this.getItems(),g=document.activeElement;if(d.length&&d.length>0&&g){var b=d.indexOf(g);b>=0&&(e.keyCode===i.KEY.UP&&b>0?(b--,d[b].focus()):e.keyCode===i.KEY.DOWN&&b<d.length-1?(b++,d[b].focus()):e.keyCode===i.KEY.ENTER||e.keyCode===
i.KEY.RIGHT?g.classList.contains("dropdownTrigger")&&g.dropdown&&g.dropdown.open():e.keyCode===i.KEY.LEFT&&g.parentNode.parentNode.classList.contains("dropdownMenuOpen")&&this.close(!0),i.stop(e))}}else e.keyCode===i.KEY.ESCAPE&&(this.close(!0),i.stop(e))}};f.prototype.constructor=f;return{Dropdown:f}});
define("orion/explorers/navigationUtils",[],function(){function h(f,e){if(!i&&f)f.push({domNode:e}),e.tabIndex=-1,e.style.outline="none"}var i=navigator.userAgent.indexOf("iPad")!==-1;return{addNavGrid:function(f,e,d){f&&(f=f.getGridNavHolder(e,!0))&&h(f,d)},generateNavGrid:h,removeNavGrid:function(f,e){if(f)for(var d=0;d<f.length;d++)if(f[d].domNode===e){f.splice(d,1);break}}}});
(function(){var h=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],i=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,f=/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,e=typeof location!=="undefined"&&location.href,d=e&&location.protocol&&location.protocol.replace(/\:/,""),g=e&&location.hostname,b=e&&(location.port||void 0),c=[];define("text",[],function(){var a,j,k;typeof window!=="undefined"&&window.navigator&&window.document?j=function(c,b){var d=a.createXhr();d.open("GET",c,!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,c){var b=k.readFileSync(a,"utf8");b.indexOf("\ufeff")===0&&(b=b.substring(1));c(b)}):typeof Packages!=="undefined"&&(j=function(a,c){var b=new java.io.File(a),d=java.lang.System.getProperty("line.separator"),b=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(b),"utf-8")),j,e,k="";try{j=new java.lang.StringBuffer;
(e=b.readLine())&&e.length()&&e.charAt(0)===65279&&(e=e.substring(1));for(j.append(e);(e=b.readLine())!==null;)j.append(d),j.append(e);k=String(j.toString())}finally{b.close()}c(k)});return a={version:"1.0.7",strip:function(a){if(a){var a=a.replace(i,""),c=a.match(f);c&&(a=c[1])}else a="";return a},jsEscape:function(a){return a.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")},createXhr:function(){var a,c,
b;if(typeof XMLHttpRequest!=="undefined")return new XMLHttpRequest;else for(c=0;c<3;c++){b=h[c];try{a=new ActiveXObject(b)}catch(d){}if(a){h=[b];break}}if(!a)throw Error("createXhr(): XMLHttpRequest not available");return a},get:j,parseName:function(a){var c=!1,b=a.indexOf("."),d=a.substring(0,b),a=a.substring(b+1,a.length),b=a.indexOf("!");b!==-1&&(c=a.substring(b+1,a.length),c=c==="strip",a=a.substring(0,b));return{moduleName:d,ext:a,strip:c}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(c,
b,d,j){var e=a.xdRegExp.exec(c),k;if(!e)return!0;c=e[2];e=e[3];e=e.split(":");k=e[1];e=e[0];return(!c||c===b)&&(!e||e===d)&&(!k&&!e||k===j)},finishLoad:function(b,d,j,e,k){j=d?a.strip(j):j;k.isBuild&&(c[b]=j);e(j)},load:function(c,j,k,f){if(f.isBuild&&!f.inlineText)k();else{var h=a.parseName(c),i=h.moduleName+"."+h.ext,o=j.toUrl(i),A=f&&f.text&&f.text.useXhr||a.useXhr;!e||A(o,d,g,b)?a.get(o,function(b){a.finishLoad(c,h.strip,b,k,f)}):j([i],function(c){a.finishLoad(h.moduleName+"."+h.ext,h.strip,c,
k,f)})}},write:function(b,d,j){if(d in c){var e=a.jsEscape(c[d]);j.asModule(b+"!"+d,"define(function () { return '"+e+"';});\n")}},writeFile:function(c,b,d,j,e){var b=a.parseName(b),k=b.moduleName+"."+b.ext,g=d.toUrl(b.moduleName+"."+b.ext)+".js";a.load(k,d,function(){var b=function(a){return j(g,a)};b.asModule=function(a,c){return j.asModule(a,g,c)};a.write(c,k,b,e)},e)}}})})();define("text!orion/banner/slideout.html",[],function(){return'<div id="slideContainer" class="slideParameters slideContainer">\n\t<span id="pageCommandParameters" class="layoutLeft parameters"></span>\n\t<span id="pageCommandDismiss" class="layoutRight parametersDismiss"></span>\n</div>'});
define("orion/commonHTMLFragments",["require","orion/webui/littlelib","text!orion/banner/slideout.html"],function(h,i,f){return{slideoutHTMLFragment:function(e){var d=document.createElement("div");d.innerHTML=f;var g=i.$("#slideContainer",d);g.id=e+g.id;g=i.$("#pageCommandParameters",d);g.id=e+g.id;g=i.$("#pageCommandDismiss",d);g.id=e+g.id;return d.innerHTML}}});
define("orion/webui/treetable",["i18n!orion/nls/messages","orion/webui/littlelib"],function(h,i){function f(e){this._init(e)}f.prototype={_init:function(e){var d=e.parent,g=this,d=i.node(d);if(!d)throw h["no parent"];if(!e.model)throw h["no tree model"];if(!e.renderer)throw h["no renderer"];this._parent=d;this._treeModel=e.model;this._renderer=e.renderer;this._showRoot=e.showRoot===void 0?!1:e.showRoot;this._indent=e.indent===void 0?16:e.indent;this._onCollapse=e.onCollapse;this._labelColumnIndex=
e.labelColumnIndex===void 0?0:e.labelColumnIndex;this._id=e.id===void 0?"treetable":e.id;this._tableStyle=e.tableStyle;this._tableElement=e.tableElement||"table";this._tableBodyElement=e.tableBodyElement||"tbody";this._tableRowElement=e.tableRowElement||"tr";this._root=this._treeModel.getRoot(function(b){g._showRoot?(b._depth=0,g._generate([b],0)):g._treeModel.getChildren(b,function(c){g._generate(c,0)})})},_generate:function(e,d){i.empty(this._parent);var g=document.createElement(this._tableElement);
g.id=this._id;this._tableStyle&&g.classList.add(this._tableStyle);this._renderer.initTable(g,this);this._bodyElement=document.createElement(this._tableBodyElement);this._bodyElement.id=this._id+"tbody";this._generateChildren(e,d);g.appendChild(this._bodyElement);this._parent.appendChild(g);this._rowsChanged()},_generateChildren:function(e,d,g){for(var b=0;b<e.length;b++){var c=document.createElement(this._tableRowElement);c.id=this._treeModel.getId(e[b]);c._depth=d;c._item=e[b];this._renderer.render(e[b],
c);c.childNodes[this._labelColumnIndex].style.paddingLeft=this._indent*d+"px";g?(this._bodyElement.insertBefore(c,g.nextSibling),g&&(g=c)):this._bodyElement.appendChild(c)}},_rowsChanged:function(){this._renderer.rowsChanged&&this._renderer.rowsChanged()},getSelected:function(){return this._renderer.getSelected()},refresh:function(e,d,g){var b=this._treeModel.getId(e),c;if(b===this._id)this._removeChildRows(b),this._generateChildren(d,0),this._rowsChanged();else{var a=i.node(b);a?(a._item=e,a&&(g||
a._expanded)?(a._expanded=!0,this._removeChildRows(b),this._renderer.updateExpandVisuals(a,!0),d?(this._generateChildren(d,a._depth+1,a),this._rowsChanged()):(c=this,d=this._treeModel.getChildren(a._item,function(b){c._generateChildren(b,a._depth+1,a);c._rowsChanged()}))):this._renderer.updateExpandVisuals(a,!1)):console.log(h["could not find table row "]+b)}},getItem:function(e){var d=i.node(e);return d&&d._item?d._item:e},toggle:function(e){var d=i.node(e);d&&(d._expanded?(this.collapse(e),this._renderer.updateExpandVisuals(d,
!1)):(this.expand(e),this._renderer.updateExpandVisuals(d,!0)))},isExpanded:function(e){return(e=i.node(e))?e._expanded:!1},expand:function(e,d,g){var e=typeof e==="string"?e:this._treeModel.getId(e),b=i.node(e);if(b&&!b._expanded){b._expanded=!0;var c=this;this._renderer.updateExpandVisuals(b,!0);this._treeModel.getChildren(b._item,function(a){c._generateChildren(a,b._depth+1,b);c._rowsChanged();d&&d.apply(c,g)})}},_removeChildRows:function(e){for(var d=e===this._id,g=!1,b=-1,c=[],a=i.$$array(".treeTableRow",
this._parent),j=0;j<a.length;j++){var k=a[j];if(g)break;if(d)k._depth>b?c.push(k):g=!0;else if(k.id===e)d=!0,b=k._depth}for(e=0;e<c.length;e++)d=c[e],d.parentNode.removeChild(d)},collapse:function(e){var e=typeof e==="string"?e:this._treeModel.getId(e),d=i.node(e);if(d){if(!d._expanded)return;d._expanded=!1;this._renderer.updateExpandVisuals(d,!1);this._removeChildRows(e);this._rowsChanged()}this._onCollapse&&this._onCollapse(d._item)}};f.prototype.constructor=f;return{TableTree:f}});
define("orion/treeModelIterator",[],function(){var h={};h.TreeModelIterator=function(){function h(f,e){this.firstLevelChildren=f;this.reset();this._init(e)}h.prototype={_init:function(f){if(f)this.isExpanded=f.isExpanded,this.isExpandable=f.isExpandable,this.forceExpandFunc=f.forceExpandFunc},topLevel:function(f){return f.parent?f.parent===this.root:!0},_expanded:function(f){if(!f)return!0;var e=f.children&&f.children.length>0;this.isExpanded&&e&&(e=this.isExpanded(f));return e},_expandable:function(f){return!f?
!0:this.isExpandable?this.isExpandable(f):!1},_diveIn:function(f){return this._expanded(f)?(this.setCursor(f.children[0]),this.cursor()):null},_drillToLast:function(f){return this._expanded(f)?this._drillToLast(f.children[f.children.length-1]):f},_forward:function(f){if(!this._cursor)return null;var e=this._diveIn(this._cursor);if(!e){if(f&&this._expandable(this._cursor)&&this.forceExpandFunc){var d=this;return this.forceExpandFunc(this._cursor,"first",function(e){e&&d.setCursor(e)})}(e=this._findSibling(this._cursor,
!0))&&this.setCursor(e)}return e},_backward:function(f){if(!this._cursor)return null;var e=this._findSibling(this._cursor,!1);e&&e!==this._cursor.parent&&(e=this._drillToLast(e));if(f&&e&&this._expandable(e)&&this.forceExpandFunc&&e!==this._cursor.parent){var d=this;return this.forceExpandFunc(e,"last",function(e){e&&d.setCursor(e)})}e&&this.setCursor(e);return e},_findSibling:function(f,e){for(var d=this.topLevel(f),g=d?this.firstLevelChildren:f.parent.children,b=0;b<g.length;b++)if(g[b]===f)return b===
0&&!e?d?null:f.parent:b===g.length-1&&e?d?null:this._findSibling(f.parent,e):e?g[b+1]:g[b-1];return null},_inParentChain:function(f,e){for(var d=f.parent;d;){if(d===e)return!0;d=d.parent}return!1},_getTopLevelParent:function(f){if(this.topLevel(f))return f;for(f=f.parent;f;){if(this.topLevel(f))return f;f=f.parent}return null},_onCollapse:function(f){return this._expanded(f.parent)?f:this._onCollapse(f.parent)},_scan:function(f,e,d){this.setCursor(e);var g=[];for(g.push(e);;){if(this.iterate(f))g.push(this.cursor());
else break;if(d===this.cursor())return g}return null},setCursor:function(f){this._prevCursor=this._cursor;this._cursor=f},setTree:function(f){this.firstLevelChildren=f;if(this.firstLevelChildren.length>0)this.root=this.firstLevelChildren[0].parent},scan:function(f,e){var d=this.cursor(),g=this._scan(!0,f,e);g||(g=this._scan(!1,f,e));this.setCursor(d);return g},iterate:function(f,e){return f?this._forward(e):this._backward(e)},iterateOnTop:function(f,e){var d=this._findSibling(this._getTopLevelParent(this.cursor()),
f);d?this.setCursor(d):e&&this.firstLevelChildren.length>0&&this.setCursor(f?this.firstLevelChildren[0]:this.firstLevelChildren[this.firstLevelChildren.length-1])},collapse:function(f){if(!this._cursor)return null;return this._inParentChain(this._cursor,f)?(this.setCursor(f),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 h}();return h});
define("orion/explorers/explorerNavHandler",["i18n!orion/nls/messages","orion/webui/littlelib","orion/treeModelIterator"],function(h,i,f){var h={},e=navigator.userAgent.indexOf("iPad")!==-1,d=window.navigator.platform.indexOf("Mac")!==-1;h.ExplorerNavHandler=function(){function g(b,c,a){this.explorer=b;this.model=this.explorer.model;this._navDict=c;this._listeners=[];this._selections=[];this._currentColumn=0;var d=this._getEventListeningDiv();d.tabIndex=0;d.classList.add("selectionModelContainer");
var e=this;this._modelIterator=new f.TreeModelIterator([],{isExpanded:this.isExpanded.bind(this),isExpandable:this.explorer.renderer.isExpandable?function(a){return e.explorer.renderer.isExpandable(a)}:function(a){return e.isExpandable(a)},forceExpandFunc:this.explorer.forceExpandFunc?function(a,c,b){return e.explorer.forceExpandFunc(a,c,b)}:void 0});this._init(a);(!a||a.setFocus!==!1)&&d.focus();b=function(a){if(a.target===d){if(e.explorer.preventDefaultFunc&&e.explorer.preventDefaultFunc(a,e._modelIterator.cursor()))return!0;
if(a.keyCode===i.KEY.DOWN)return e.onDownArrow(a);else if(a.keyCode===i.KEY.UP)return e.onUpArrow(a);else if(a.keyCode===i.KEY.RIGHT)return e.onRightArrow(a);else if(a.keyCode===i.KEY.LEFT)return e.onLeftArrow(a);else if(a.keyCode===i.KEY.SPACE)return e.onSpace(a);else if(a.keyCode===i.KEY.ENTER)return e.onEnter(a)}};d.addEventListener("keydown",b,!1);this._listeners.push({type:"keydown",listener:b});b=function(){if(e.explorer.onFocus)e.explorer.onFocus(!1);else e.toggleCursor(null,!1)};d.addEventListener("blur",
b,!1);this._listeners.push({type:"blur",listener:b});b=function(){if(e.explorer.onFocus)e.explorer.onFocus(!0);else e.toggleCursor(null,!0)};d.addEventListener("focus",b,!1);this._listeners.push({type:"focus",listener:b});this._parentDiv=d}g.prototype={_init:function(b){this._linearGridMove=!1;if(b)this._selectionPolicy=b.selectionPolicy,this.preventDefaultFunc=b.preventDefaultFunc,this.postDefaultFunc=b.postDefaultFunc},_ctrlKeyOn:function(b){return d?b.metaKey:b.ctrlKey},removeListeners:function(){if(this._listeners)for(var b=
0;b<this._listeners.length;b++)this._parentDiv.removeEventListener(this._listeners[b].type,this._listeners[b].listener,!1)},focus:function(){var b=this._getEventListeningDiv();b&&b.focus()},_getEventListeningDiv:function(b){return this.explorer.keyEventListeningDiv&&typeof this.explorer.keyEventListeningDiv==="function"?this.explorer.keyEventListeningDiv(b):i.node(this.explorer._parentId)},isExpandable:function(b){return!b?!1:i.node(this.explorer.renderer.expandCollapseImageId(this.model.getId(b)))?
!0:!1},isExpanded:function(b){return!b?!1:this.explorer.myTree.isExpanded(this.model.getId(b))},refreshSelection:function(b){var c=this;this.explorer.selection&&this.explorer.selection.getSelections(function(a){c._clearSelection();for(var d=0;d<a.length;d++)c._selections.push(a[d]);c._selections.length>0&&c.cursorOn(c._selections[0],!0,!1,b)})},refreshModel:function(b,c,a,d){this._currentColumn=0;this.topIterationNodes=[];this.model=c;this._navDict=b;if(this.model.getTopIterationNodes)this.topIterationNodes=
this.model.getTopIterationNodes();else if(a)this.topIterationNodes=a;this._modelIterator.setTree(this.topIterationNodes);!d&&this.explorer.selection&&this._modelIterator.reset();this.refreshSelection(!0)},getTopLevelNodes:function(){return this._modelIterator.firstLevelChildren},_inSelection:function(b){for(var c=0;c<this._selections.length;c++)if(b===this._selections[c])return c;return-1},_clearSelection:function(b){if(b)for(b=0;b<this._selections.length;b++)this._checkRow(this._selections[b],!0);
this._selections=[]},setSelection:function(b,c){if(this._selectionPolicy==="cursorOnly")c&&this.explorer.renderer._useCheckboxSelection&&this._checkRow(b,!0);else if(this._isRowSelectable(b)){if(!c||this._selectionPolicy==="singleSelection")this._clearSelection(!0),this._checkRow(b,!1),this._selections.push(b),this._lastSelection=b;else{var a=this._inSelection(b);a>=0?(this._checkRow(b,!0),this._selections.splice(a,1)):(this._checkRow(b,!1),this._selections.push(b),this._lastSelection=b)}this.explorer.selection&&
(this.explorer.renderer.storeSelections(),this.explorer.selection.setSelections(this._selections))}},moveColumn:function(b,c){b||(b=this.currentModel());var a=this._getGridChildren(b);if(a&&a.length>1||c===0&&a){c!==0&&this.toggleCursor(b,!1);var d=this._currentColumn,e=!0;d+=c;d<0?(this._linearGridMove&&c!==0&&(this._modelIterator.iterate(!1)?b=this.currentModel():e=!1),d=e?a.length-1:this._currentColumn):d>=a.length&&(this._linearGridMove&&c!==0&&(this._modelIterator.iterate(!0)?b=this.currentModel():
e=!1),d=e?0:this._currentColumn);this._currentColumn=d;c!==0&&this.toggleCursor(b,!0);return!0}return!1},_getGridChildren:function(b){return this._navDict?this._navDict.getGridNavHolder(b):null},getCurrentGrid:function(b){b||(b=this.currentModel());return(b=this._getGridChildren(b))&&b.length>0?b[this._currentColumn]:null},toggleCursor:function(b,c){var a=this.getRowDiv(b),d=this.getCurrentGrid(b);d?(a&&(c?a.classList.add("treeIterationCursorRow"):a.classList.remove("treeIterationCursorRow")),d.domNode&&
(c?d.domNode.classList.add("treeIterationCursor"):d.domNode.classList.remove("treeIterationCursor"))):a&&(c?a.classList.add("treeIterationCursorRow_Dotted"):a.classList.remove("treeIterationCursorRow_Dotted"))},currentModel:function(){return this._modelIterator.cursor()},cursorOn:function(b,c,a,d){var a=a===void 0?!1:a,e,g;if(b||c){if(g===this._modelIterator.cursor())return;e=this._modelIterator.cursor();g=b;this._modelIterator.setCursor(g)}else e=this._modelIterator.prevCursor(),g=this._modelIterator.cursor();
if(e!==g||c)if(this.toggleCursor(e,!1),!c||g)if(this.moveColumn(null,0),this.toggleCursor(g,!0),(b=this.getRowDiv())&&!d&&!this._visible(b)&&b.scrollIntoView(!a),this.explorer.onCursorChanged)this.explorer.onCursorChanged(e,g)},getSelection:function(){return this._selections},getSelectionIds:function(){for(var b=[],c=0;c<this._selections.length;c++)b.push(this.model.getId(this._selections[c]));return b},getRowDiv:function(b){b=b?b:this._modelIterator.cursor();if(!b)return null;var b=this.model.getId(b),
c=this._navDict.getValue(b);return c&&c.rowDomNode?c.rowDomNode:i.node(b)},iterate:function(b,c,a){this.topIterationNodes.length!==0&&this._modelIterator.iterate(b,c)&&(this.cursorOn(null,!1,b),a&&this.setSelection(this.currentModel(),!0))},_checkRow:function(b,c){if(this.explorer.renderer._useCheckboxSelection){var a=this.getRowDiv(b);if(a){var d=i.node(this.explorer.renderer.getCheckBoxId(a.id)),e=c?!d.checked:!0;if(e!==d.checked)this.explorer.renderer.onCheck(a,d,e,!0)}}else this._select(b,c)},
_vpWidth:function(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth},_vpHeight:function(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight},_getToolBarHeight:function(b){return(b=i.node(b))?i.bounds(b).height:0},_visible:function(b){if(b.offsetWidth===0||b.offsetHeight===0)return!1;var c=0;c+=this._getToolBarHeight("staticBanner");c+=this._getToolBarHeight("titleArea");c+=this._getToolBarHeight("pageToolbar");var a=
this._getEventListeningDiv(!0).getClientRects()[0],d=this._vpHeight();this._vpWidth();for(var c=a.top>c?a.top:c,a=a.bottom<d?a.bottom:d,b=b.getClientRects(),d=0,e=b.length;d<e;d++){var g=b[d];if(g.top>=c&&g.top<=a&&g.bottom>=c&&g.bottom<=a)return!0}return!1},_select:function(b){b||(b=this._modelIterator.cursor());var c=this.getRowDiv(b);c&&(this._inSelection(b)<0?c.classList.add("checkedRow"):c.classList.remove("checkedRow"))},_onModelGrid:function(b,c){var a=this._getGridChildren(b);if(a)for(var d=
0;d<a.length;d++)if(c.target===a[d].domNode)return!0;return!1},onClick:function(b,c){var a=i.node(this.explorer.renderer.expandCollapseImageId(this.model.getId(b)));if(c.target!==a&&!this._onModelGrid(b,c))if(this.cursorOn(b,!0,!1,!0),e)this.setSelection(b,!0);else if(this._ctrlKeyOn(c))this.setSelection(b,!0);else if(c.shiftKey&&this._lastSelection){if(a=this._modelIterator.scan(this._lastSelection,b)){this._clearSelection(!0);for(var d=0;d<a.length;d++)this.setSelection(a[d],!0)}}else this.setSelection(b,
!1)},onCollapse:function(b){this._modelIterator.collapse(b)&&this.cursorOn()},onUpArrow:function(b){this.iterate(!1,!1,b.shiftKey);!this._ctrlKeyOn(b)&&!b.shiftKey&&this.setSelection(this.currentModel(),!1);b.preventDefault();return!1},onDownArrow:function(b){this.iterate(!0,!1,b.shiftKey);!this._ctrlKeyOn(b)&&!b.shiftKey&&this.setSelection(this.currentModel(),!1);b.preventDefault();return!1},_shouldMoveColumn:function(b){var c=this.currentModel(),a=this._getGridChildren(c);return a&&a.length>1?this.isExpandable(c)?
this._ctrlKeyOn(b):!0:!1},onLeftArrow:function(b){if(this._shouldMoveColumn(b))return this.moveColumn(null,-1),b.preventDefault(),!0;var c=this._modelIterator.cursor();if(!c)return!1;if(this.isExpandable(c)&&this.isExpanded(c))return this.explorer.myTree.collapse(c),b.preventDefault(),!0;this._modelIterator.topLevel(c)?this.explorer.scopeUp&&typeof this.explorer.scopeUp==="function"&&this.explorer.scopeUp():(this.cursorOn(c.parent),this.setSelection(c.parent,!1))},onRightArrow:function(b){if(this._shouldMoveColumn(b))return this.moveColumn(null,
1),b.preventDefault(),!0;var c=this._modelIterator.cursor();if(!c)return!1;if(this.isExpandable(c)&&!this.isExpanded(c))return this.explorer.myTree.expand(c),b.preventDefault(),!1},_isRowSelectable:function(b){return this.explorer.isRowSelectable?this.explorer.isRowSelectable(b):!0},onSpace:function(b){this.setSelection(this.currentModel(),!0);b.preventDefault()},onEnter:function(b){var c=this.getCurrentGrid(this._modelIterator.cursor());if(c)if(c.widget)if(typeof c.onClick==="function")c.onClick();
else typeof c.widget.focus==="function"&&c.widget.focus();else{var a=document.createEvent("MouseEvents");a.initMouseEvent("click",!0,!0,window,0,0,0,0,0,this._ctrlKeyOn(b),!1,!1,!1,0,null);c.domNode.dispatchEvent(a)}else if(this.explorer.renderer.getRowActionElement&&(c=this._modelIterator.cursor()))if(c=this.explorer.renderer.getRowActionElement(this.model.getId(c)),c.href)this._ctrlKeyOn(b)?window.open(c.href):window.location.href=c.href}};return g}();h.ExplorerNavDict=function(){function d(b){this._dict=
{};this._model=b}d.prototype={addRow:function(b,c){this._dict[this._model.getId(b)]={model:b,rowDomNode:c}},getValue:function(b){return this._dict[b]},getGridNavHolder:function(b,c){if(!b)return null;var a=this._model.getId(b);if(this._dict[a]){if(!this._dict[a].gridChildren&&c)this._dict[a].gridChildren=[];return this._dict[a].gridChildren}return null},initGridNavHolder:function(b){if(!b)return null;b=this._model.getId(b);if(this._dict[b])this._dict[b].gridChildren=null}};return d}();return h});
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 ${0}":"Search ${0}","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 ${0}":"No matches found for ${0}","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/search/nls/messages",["orion/i18n!orion/search/nls/messages","orion/search/nls/root/messages"],function(h,i){var f={root:i};Object.keys(h).forEach(function(e){typeof f[e]==="undefined"&&(f[e]=h[e])});return f});
define("orion/editor/regex",[],function(){return{escape:function(h){return h.replace(/([\\$\^*\/+?\.\(\)|{}\[\]])/g,"\\$&")},parse:function(h){return(h=/^\s*\/(.+)\/([gim]{0,3})\s*$/.exec(h))?{pattern:h[1],flags:h[2]}:null}}});
define("orion/crawler/nls/root/messages",{"Searching file:":"Searching file:","is not supported in this file system":"is not supported in this file system","${0} files found out of ${1}":"${0} files found out of ${1}","The search term on this location will not use indexed files.":"The search term on this location will not use indexed files.","It will take longer time. Do you want to proceed?":"It will take longer time. Do you want to proceed?"});
define("orion/crawler/nls/messages",["orion/i18n!orion/crawler/nls/messages","orion/crawler/nls/root/messages"],function(h,i){var f={root:i};Object.keys(h).forEach(function(e){typeof f[e]==="undefined"&&(f[e]=h[e])});return f});
define("orion/fileClient",["i18n!orion/navigate/nls/messages","orion/Deferred","orion/i18nUtil"],function(h,i,f){function e(b,c,a){if(!b[c])throw c+h[" is not supported in this file system"];return b[c].apply(b,a)}function d(b,c,a,j){if(!b.readBlob)throw h["source file service does not support binary read"];if(!a.writeBlob)throw h["target file service does not support binary write"];if(c[c.length-1]!=="/")return e(b,"readBlob",[c]).then(function(c){return e(a,"writeBlob",[j,c])});var k=j.substring(0,
j.length-1),g=decodeURIComponent(k.substring(k.lastIndexOf("/")+1)),k=k.substring(0,k.lastIndexOf("/")+1);return e(a,"createFolder",[k,g]).then(function(){},function(){}).then(function(){return e(b,"fetchChildren",[c]).then(function(c){for(var e=[],k=0;k<c.length;++k){var g=c[k].Location,f=g;c[k].Directory&&(f=g.substring(0,g.length-1));f=decodeURIComponent(f.substring(f.lastIndexOf("/")+1));f=j+encodeURIComponent(f);c[k].Directory&&(f+="/");e[k]=d(b,g,a,f)}return i.all(e)})})}function g(b,c){function a(a){var c=
new i;c.reject(h["No Matching FileService for location:"]+a);return c}var d=b.getServiceReferences("orion.core.file"),e=d;if(c)for(var e=[],g=0;g<d.length;++g)c(d[g])&&e.push(d[g]);for(var l=[],r=[],q=[],m=[],p={fetchChildren:function(){var a=new i;a.resolve(m);return a},createWorkspace:function(){var a=new i;a.reject(h["no file service"]);return a},loadWorkspaces:function(){var a=new i;a.reject(h["no file service"]);return a},loadWorkspace:function(){var a=new i;window.setTimeout(function(){a.resolve({Directory:!0,
Length:0,LocalTimeStamp:0,Name:h["File Servers"],Location:"/",Children:m,ChildrenLocation:"/"})},100);return a},search:a,createProject:a,createFolder:a,createFile:a,deleteFile:a,moveFile:a,copyFile:a,read:a,write:a},d=0;d<e.length;++d)m[d]={Directory:!0,Length:0,LocalTimeStamp:0,Location:e[d].getProperty("top"),ChildrenLocation:e[d].getProperty("top"),Name:e[d].getProperty("Name")},g=e[d].getProperty("pattern")||".*",g[0]!=="^"&&(g="^"+g),l[d]=RegExp(g),r[d]=b.getService(e[d]),q[d]=e[d].getProperty("Name"),
e[d].getProperty("NameKey")&&e[d].getProperty("nls")&&f.getMessageBundle(e[d].getProperty("nls")).then(function(a,c){m[a].Name=c[e[a].getProperty("NameKey")];q[a]=c[e[a].getProperty("NameKey")]}.bind(this,d));this._getServiceIndex=function(a){if(a==="/")return-1;else if(!a||a.length&&a.length===0)return r[0]?0:-1;for(var c=0;c<l.length;++c)if(l[c].test(a))return c;throw h["No Matching FileService for location:"]+a;};this._getService=function(a){a=this._getServiceIndex(a);return a===-1?p:r[a]};this._getServiceName=
function(a){a=this._getServiceIndex(a);return a===-1?p.Name:q[a]};this._getServiceRootURL=function(a){a=this._getServiceIndex(a);return a===-1?p.Location:m[a].Location}}g.prototype={getService:function(b){return this._getService(b)},fileServiceName:function(b){return this._getServiceName(b)},fileServiceRootURL:function(b){return this._getServiceRootURL(b)},fetchChildren:function(b){return e(this._getService(b),"fetchChildren",arguments)},createWorkspace:function(b){return e(this._getService(),"createWorkspace",
arguments)},loadWorkspaces:function(){return e(this._getService(),"loadWorkspaces",arguments)},loadWorkspace:function(b){return e(this._getService(b),"loadWorkspace",arguments)},createProject:function(b,c,a,d){return e(this._getService(b),"createProject",arguments)},createFolder:function(b,c){return e(this._getService(b),"createFolder",arguments)},createFile:function(b,c){return e(this._getService(b),"createFile",arguments)},deleteFile:function(b){return e(this._getService(b),"deleteFile",arguments)},
moveFile:function(b,c,a){var j=this._getService(b),k=this._getService(c);if(j===k)return e(j,"moveFile",arguments);var g=b[b.length-1]==="/",f=c;f[f.length-1]!=="/"&&(f+="/");if(a)f+=encodeURIComponent(a);else{var h=b;g&&(h=h.substring(0,h.length-1));f+=h.substring(h.lastIndexOf("/")+1)}g&&f[f.length-1]!=="/"&&(f+="/");return d(j,b,k,f).then(function(){return e(j,"deleteFile",[b])})},copyFile:function(b,c,a){var j=this._getService(b),k=this._getService(c);if(j===k)return e(j,"copyFile",arguments);
var g=b[b.length-1]==="/",f=c;f[f.length-1]!=="/"&&(f+="/");if(a)f+=encodeURIComponent(a);else{var h=b;g&&(h=h.substring(0,h.length-1));f+=h.substring(h.lastIndexOf("/")+1)}g&&f[f.length-1]!=="/"&&(f+="/");return d(j,b,k,f)},read:function(b,c){return e(this._getService(b),"read",arguments)},write:function(b,c,a){return e(this._getService(b),"write",arguments)},remoteImport:function(b,c){return e(this._getService(b),"remoteImport",arguments)},remoteExport:function(b,c){return e(this._getService(b),
"remoteExport",arguments)},search:function(b){return e(this._getService(b.resource),"search",arguments)}};g.prototype.constructor=g;return{FileClient:g}});
define("orion/operationsClient",["i18n!orion/operations/nls/messages","orion/Deferred"],function(h,i){function f(b,c,a){return b[c].apply(b,a)}function e(b){this._location=b}function d(){var b=new i;b.reject(h["No Matching OperationService for location:"]+this._location);return b}function g(b){this._services=[];this._patterns=[];this._operationListeners=[];this._currentLongpollingIds=[];this._preferenceService=b.getService("orion.core.preference");for(var c=b.getServiceReferences("orion.core.operation"),
a=0;a<c.length;a++){var d=b.getService(c[a]);this._services[a]=d;d=c[a].getProperty("pattern")||".*";d[0]!=="^"&&(d="^"+d);this._patterns[a]=RegExp(d)}this._getService=function(a){if(!a)return this._services[0];for(var c=0;c<this._patterns.length;++c)if(this._patterns[c].test(a))return this._services[c];return new e(a)}}e.prototype={getOperation:d,getOperations:d,removeCompletedOperations:d,removeOperation:d,cancelOperation:d};e.prototype.constructor=e;g.prototype={getOperations:function(){var b=
new i;if(this._operations)return b.resolve(this._operations),b;var c=this;this._preferenceService.getPreferences("/operations").then(function(a){c._operations=a;b.resolve(c._operations)});return b},getOperation:function(b){return f(this._getService(b),"getOperation",arguments)},removeCompletedOperations:function(){for(var b=[],c=this,a=0;a<this._services.length;a++){var d=this._patterns[a],e=new i;b[a]=e.promise;f(this._services[a],"removeCompletedOperations").then(function(a){return function(b){Array.isArray(b)&&
c.getOperations.bind(c)().then(function(c){for(var e=c.keys(),k=0;k<e.length;k++){var g=e[k];d.test(g)&&b.indexOf(g)<0&&c.remove(g)}a.resolve()})}}(e),function(a){return function(c){a.reject(c)}}(e))}return i.all(b)},removeOperation:function(b){var c=this;return f(this._getService(b),"removeOperation",arguments).then(function(){c.getOperations.bind(c)().then(function(a){a.remove(b)})},function(a){return a},function(a){return a})}};g.prototype.constructor=g;return{OperationsClient:g}});
define("orion/parameterCollectors",["i18n!orion/nls/messages","require","orion/webui/littlelib"],function(h,i,f){function e(d,e){this._activeContainer=null;this._getElementsFunction=d;this._toolbarLayoutFunction=e}e.prototype={close:function(){if(this._activeElements){this._activeElements.parameterArea&&f.empty(this._activeElements.parameterArea);this._activeElements.slideContainer&&this._activeElements.slideContainer.classList.remove("slideContainerActive");this._activeElements.dismissArea&&f.empty(this._activeElements.dismissArea);
this._activeElements.commandNode&&this._activeElements.commandNode.classList.remove("activeCommand");this._toolbarLayoutFunction(this._activeElements);if(this._activeElements.onClose)this._activeElements.onClose();if(this._oldFocusNode)this._oldFocusNode.focus(),this._oldFocusNode=null}this._activeElements=null},open:function(d,e,b){typeof d==="string"&&(d=f.node(d));if(this._activeElements&&this._activeElements.slideContainer&&this._activeElements.commandNode===d)return this._activeElements.focusNode&&
this._activeElements.focusNode.focus(),!0;this.close();this._activeElements=null;if((this._activeElements=this._getElementsFunction(d))&&this._activeElements.parameterArea&&this._activeElements.slideContainer){this._activeElements.onClose=b;var c=e(this._activeElements.parameterArea,this._activeElements.dismissArea);if(!c)return!1;this._activeElements.focusNode=c;d=f.$$array("#closebox",this._activeElements.dismissArea||this._activeElements.parameterArea);if(d.length===0){e=this._activeElements.dismissArea||
this._activeElements.parameterArea;d=document.createElement("span");d.id="closebox";d.role="button";d.tabIndex=0;d.classList.add("imageSprite");d.classList.add("core-sprite-close");d.classList.add("dismiss");d.title=h.Close;e.appendChild(d);var a=this;d.addEventListener("click",function(){a.close()},!1);d.addEventListener("keydown",function(c){(c.keyCode===f.KEY.ENTER||c.keyCode===f.KEY.SPACE)&&a.close()},!1)}this._activeElements.slideContainer.classList.add("slideContainerActive");this._toolbarLayoutFunction(this._activeElements);
if(c)this._oldFocusNode=window.document.activeElement,window.setTimeout(function(){c.focus();c.select()},0);this._activeElements.commandNode&&this._activeElements.commandNode.classList.add("activeCommand");return!0}return!1},_collectAndCall:function(d,e){f.$$array("input",e).forEach(function(b){b.type==="checkbox"?d.parameters.setValue(b.parameterName,b.checked):b.type!=="button"&&d.parameters.setValue(b.parameterName,b.value.trim())});f.$$array("textArea",e).forEach(function(b){d.parameters.setValue(b.parameterName,
b.value.trim())});d.command.callback&&d.command.callback.call(d.handler,d)},collectParameters:function(d){return d.parameters?(d.domNode&&d.domNode.classList.add("commandMarker"),this.open(d.domNode||d.domParent,this.getFillFunction(d))):!1},getFillFunction:function(d,e){var b=this;return function(c,a){var j=null,k=function(){e&&e();b.close()},n=function(a){a.keyCode===f.KEY.ENTER&&b._collectAndCall(d,c);if(a.keyCode===f.KEY.ESCAPE||a.keyCode===f.KEY.ENTER)k(),f.stop(a)};d.parameters.forEach(function(a){var b=
null;if(a.label)b=document.createElement("label"),b.classList.add("parameterInput"),b.setAttribute("for",a.name+"parameterCollector"),b.textContent=a.label,c.appendChild(b);var d=a.name+"parameterCollector",e=b||c;if(a.type==="text"&&typeof a.lines==="number"&&a.lines>1)b=document.createElement("textarea"),b.rows=a.lines,b.type="textarea",b.id=d,e.appendChild(b),n=function(a){a.keyCode===f.KEY.ESCAPE&&(k(),f.stop(a))};else if(a.type==="boolean"){if(b=document.createElement("input"),b.type="checkbox",
b.id=d,e.appendChild(b),a.value)b.checked=!0}else if(b=document.createElement("input"),b.type=a.type,b.id=d,e.appendChild(b),a.value)b.value=a.value;b.classList.add("parameterInput");b.classList.add("parameterInput"+b.type);b.setAttribute("speech","speech");b.setAttribute("x-webkit-speech","x-webkit-speech");b.parameterName=a.name;j||(j=b);b.addEventListener("keydown",n,!1)});var l=a;if(!l)l=document.createElement("span"),l.className="layoutRight parametersDismiss",c.appendChild(l);var i=function(a){a._collectAndCall(d,
c);k()},q=function(a,c){var b=document.createElement("span");b.role="button";b.tabIndex=0;c.appendChild(b);a&&b.appendChild(document.createTextNode(a));b.classList.add("dismiss");return b};if(d.parameters.hasOptionalParameters()){d.parameters.optionsRequested=!1;var m=q(h.More,l);m.addEventListener("click",function(){d.parameters.optionsRequested=!0;i(b)},!1);m.addEventListener("keydown",function(a){if(a.keyCode===f.KEY.ENTER||a.keyCode===f.KEY.SPACE)d.parameters.optionsRequested=!0,i(b)},!1)}m=q(h.Submit,
l);m.addEventListener("click",function(){i(b)},!1);m.addEventListener("keydown",function(a){(a.keyCode===f.KEY.ENTER||a.keyCode===f.KEY.SPACE)&&i(b)},!1);l=q(null,l);l.id="closebox";l.classList.add("imageSprite");l.classList.add("core-sprite-close");l.title=h.Close;l.addEventListener("click",function(){k()},!1);l.addEventListener("keydown",function(a){(a.keyCode===f.KEY.ENTER||a.keyCode===f.KEY.SPACE)&&k()},!1);return j}}};e.prototype.constructor=e;return{CommandParameterCollector:e}});
define("orion/editor/util",[],function(){var h=navigator.userAgent,i=parseFloat(h.split("MSIE")[1])||void 0,f=parseFloat(h.split("Firefox/")[1]||h.split("Minefield/")[1])||void 0,e=h.indexOf("Opera")!==-1,d=parseFloat(h.split("Chrome/")[1])||void 0,g=h.indexOf("Safari")!==-1&&!d,b=parseFloat(h.split("WebKit/")[1])||void 0,c=h.indexOf("Android")!==-1,a=h.indexOf("iPad")!==-1,h=h.indexOf("iPhone")!==-1,j=a||h,k=navigator.platform.indexOf("Mac")!==-1,n=navigator.platform.indexOf("Win")!==-1,l=navigator.platform.indexOf("Linux")!==
-1;return{formatMessage:function(a){var c=arguments;return a.replace(/\$\{([^\}]+)\}/g,function(a,b){return c[(b<<0)+1]})},createElement:function(a,c){return a.createElementNS?a.createElementNS("http://www.w3.org/1999/xhtml",c):a.createElement(c)},isIE:i,isFirefox:f,isOpera:e,isChrome:d,isSafari:g,isWebkit:b,isAndroid:c,isIPad:a,isIPhone:h,isIOS:j,isMac:k,isWindows:n,isLinux:l,platformDelimiter:n?"\r\n":"\n"}});
define("orion/editor/keyBinding",["orion/editor/util"],function(h){function i(f,e,d,g,b){this.keyCode=typeof f==="string"?f.toUpperCase().charCodeAt(0):f;this.mod1=e!==void 0&&e!==null?e:!1;this.mod2=d!==void 0&&d!==null?d:!1;this.mod3=g!==void 0&&g!==null?g:!1;this.mod4=b!==void 0&&b!==null?b:!1}i.prototype={match:function(f){return this.keyCode===f.keyCode?this.mod1!==(h.isMac?f.metaKey:f.ctrlKey)?!1:this.mod2!==f.shiftKey?!1:this.mod3!==f.altKey?!1:h.isMac&&this.mod4!==f.ctrlKey?!1:!0:!1},equals:function(f){return!f?
!1:this.keyCode!==f.keyCode?!1:this.mod1!==f.mod1?!1:this.mod2!==f.mod2?!1:this.mod3!==f.mod3?!1:this.mod4!==f.mod4?!1:!0}};return{KeyBinding:i}});
define("orion/breadcrumbs",["require","orion/webui/littlelib"],function(h,i){function f(e){this._init(e)}f.prototype={_init:function(e){var d=i.node(e.container);if(!d)throw"no parent container";this._container=d;d.classList.remove("currentLocation");this._id=e.id||"eclipse.breadcrumbs";this._resource=e.resource||null;this._rootSegmentName=e.rootSegmentName;this._workspaceRootSegmentName=e.workspaceRootSegmentName;this._makeHref=e.makeHref;this.path="";this.render()},getNavigatorWorkspaceRootSegment:function(){if(this._workspaceRootSegmentName){var e;
this._resource&&this._resource.Parents?(e=document.createElement("a"),this._makeHref?this._makeHref(e,""):e.href=h.toUrl("navigate/table.html")+"#"):e=document.createElement("span");i.empty(e);e.appendChild(document.createTextNode(this._workspaceRootSegmentName));return e}return null},render:function(){var e=this._container,d=i.node(this._id);d?i.empty(d):(d=document.createElement("span"),d.id=this._id,e.appendChild(d));var g;if(g=this.getNavigatorWorkspaceRootSegment())if(g.classList.add("breadcrumb"),
d.appendChild(g),this._resource&&this._resource.Parents)g=document.createElement("span"),g.appendChild(document.createTextNode(" / ")),this.path+="/",g.classList.add("breadcrumbSeparator"),d.appendChild(g);else{g.href="";g.classList.remove("breadcrumb");g.classList.add("currentLocation");return}e=this._rootSegmentName;if(this._resource){if(this._resource.Parents)for(var b=this._resource.Parents,c=b.length;--c>=0;)g=document.createElement("a"),g.classList.add("breadcrumb"),e?(g.appendChild(document.createTextNode(e)),
e=null):g.appendChild(document.createTextNode(b[c].Name)),this.path+=b[c].Name,this._makeHref?this._makeHref(g,b[c].Location):g.href=h.toUrl("navigate/table.html")+"#"+b[c].ChildrenLocation,d.appendChild(g),g=document.createElement("span"),g.appendChild(document.createTextNode(" / ")),this.path+="/",g.classList.add("breadcrumbSeparator"),d.appendChild(g);g=document.createElement("span");e?(g.appendChild(document.createTextNode(e)),e=null):g.appendChild(document.createTextNode(this._resource.Name));
g.classList.add("currentLocation");this.path+=this._resource.Name;d.appendChild(g)}d.childNodes.length===0&&(g=document.createElement("span"),g.appendChild(document.createTextNode(e||document.title)),g.classList.add("breadcrumb"),g.classList.add("currentLocation"),d.appendChild(g))}};f.prototype.constructor=f;return{BreadCrumbs:f}});
define("orion/webui/splitter",["require","orion/webui/littlelib"],function(h,i){function f(e){this._init(e)}f.prototype={_init:function(e){this._tracking=null;this._resizeListeners=[];this._animationDelay=501;this.$node=i.node(e.node);if(!this.$node)throw"no dom node for splitter found";this.$sideNode=i.node(e.sidePanel);if(!this.$sideNode)throw"no dom node for side panel found";this.$mainNode=i.node(e.mainPanel);if(!this.$mainNode)throw"no dom node for main panel found";this._vertical=e.vertical;
this._prefix="/orion/splitter/"+(this.$node.id||document.body.id||"");if(e.toggle)this._thumb=document.createElement("div"),this.$node.appendChild(this._thumb),this._thumb.classList.add("splitThumb"),this._thumb.classList.add("splitThumbLayout");this._initializeFromStoredSettings();this._closed?(this._closed=!1,this._thumbDown()):this._adjustToSplitPosition();this.$node.style.visibility="visible";this.$mainNode.style.display="block";this.$sideNode.style.display="block";this.$node.addEventListener("mousedown",
this._mouseDown.bind(this),!1);window.addEventListener("mouseup",this._mouseUp.bind(this),!1);window.addEventListener("resize",this._resize.bind(this),!1)},toggleSidePanel:function(){this._thumbDown()},openSidePanel:function(){this._closed||this._thumbDown()},addResizeListener:function(e){this._resizeListeners.push(e)},_initializeFromStoredSettings:function(){this._closed=localStorage.getItem(this._prefix+"/toggleState")==="closed";var e;if(this._vertical){if(e=localStorage.getItem(this._prefix+"/yPosition"))this._splitTop=
parseInt(e,10)}else if(e=localStorage.getItem(this._prefix+"/xPosition"))this._splitLeft=parseInt(e,10)},_adjustToSplitPosition:function(e){var d=i.bounds(this.$node),g=i.bounds(this.$node.parentNode);if(this._vertical){this._splitHeight=d.height;if(e||!this._splitTop)this._splitTop=d.top,localStorage.setItem(this._prefix+"/yPosition",this._splitTop);e=this._splitTop;this.$node.parentNode.style.position==="relative"&&(e=this._splitTop-g.top);this.$sideNode.style.height=e+"px";this.$sideNode.style.bottom=
e-1+"px";this.$sideNode.style.display="block";this.$node.style.top=e+"px"}else{this._splitWidth=d.width;if(e||!this._splitLeft)this._splitLeft=d.left,localStorage.setItem(this._prefix+"/xPosition",this._splitLeft);e=this._splitLeft;this.$node.parentNode.style.position==="relative"&&(e=this._splitLeft-g.left);this.$sideNode.style.width=e+"px";this.$sideNode.style.right=e-1+"px";this.$sideNode.style.display="block";this.$node.style.left=e+"px"}this._resize()},_resize:function(e){var e=e||0,d=i.bounds(this.$node.parentNode),
g=i.bounds(this.$node);this._vertical?this.$mainNode.style.height=d.height-(g.top-d.top+g.height)+"px":this.$mainNode.style.width=d.width-(g.left-d.left+g.width)+"px";var b=this;window.setTimeout(function(){b._notifyResizeListeners(b.$mainNode)},e);window.setTimeout(function(){b._notifyResizeListeners(b.$sideNode)},e)},_notifyResizeListeners:function(e){for(var d=0;d<this._resizeListeners.length;d++)this._resizeListeners[d](e)},_thumbDown:function(){this._closed?(this._closed=!1,this._addAnimation(),
this._vertical?(this.$sideNode.style.height=this._splitTop+"px",this.$node.style.top=this._splitTop+"px"):(this.$sideNode.style.width=this._splitLeft+"px",this.$node.style.left=this._splitLeft+"px")):(this._closed=!0,this._addAnimation(),this._vertical?(this.$sideNode.style.top=0,this.$node.style.top="1px"):(this.$sideNode.style.width=0,this.$node.style.left="1px"));this._resize(this._animationDelay);this._removeAnimation();localStorage.setItem(this._prefix+"/toggleState",this._closed?"closed":null)},
_removeAnimation:function(){var e=this;window.setTimeout(function(){e.$sideNode.classList.remove("sidePanelLayoutAnimation");e.$mainNode.classList.remove("mainPanelLayoutAnimation");e.$node.classList.remove("splitLayoutAnimation");e._thumb.classList.remove("splitLayoutAnimation")},this._animationDelay)},_addAnimation:function(){this.$sideNode.classList.add("sidePanelLayoutAnimation");this.$mainNode.classList.add("mainPanelLayoutAnimation");this.$node.classList.add("splitLayoutAnimation");this._thumb&&
this._thumb.classList.add("splitLayoutAnimation")},_mouseDown:function(e){if(e.target===this._thumb)return i.stop(e),this._thumbDown(e);if(!this._tracking)this.$node.classList.add("splitTracking"),this.$mainNode.classList.add("panelTracking"),this.$sideNode.classList.add("panelTracking"),this._tracking=this._mouseMove.bind(this),window.addEventListener("mousemove",this._tracking),i.stop(e)},_mouseMove:function(e){if(this._tracking){var d;this._vertical?(d=this._splitTop=e.clientY,this.$node.parentNode.style.position===
"relative"&&(d=i.bounds(this.$node.parentNode),d=this._splitTop-d.top),this.$node.style.top=d+"px"):(d=this._splitLeft=e.clientX,this.$node.parentNode.style.position==="relative"&&(d=i.bounds(this.$node.parentNode),d=this._splitLeft-d.left),this.$node.style.left=d+"px");this._adjustToSplitPosition(!0);i.stop(e)}},_mouseUp:function(e){if(this._tracking)window.removeEventListener("mousemove",this._tracking),this._tracking=null,this.$node.classList.remove("splitTracking"),this.$mainNode.classList.remove("panelTracking"),
this.$sideNode.classList.remove("panelTracking"),i.stop(e)}};f.prototype.constructor=f;return{Splitter:f}});
define("orion/widgets/themes/ThemeClass",[],function(){function h(h){this.attributes=[];this.element=document.createElement("div");this.style=this.element.style;this.className=h;this.classString="."+h+"{ "}h.prototype.className=null;h.prototype.classString=void 0;h.prototype.style=void 0;h.prototype.closeString=" }\n";h.prototype.toString=function(){return this.classString=this.classString+this.style.cssText+this.closeString};return{ThemeClass:h}});
define("orion/widgets/themes/container/ThemeSheetWriter",["orion/widgets/themes/ThemeClass"],function(h){function i(){}i.prototype.navbar="#333";i.prototype.button="#777777";i.prototype.location="#EFEFEF";i.prototype.selection="FEC";i.prototype.sidepanel="#FBFBFB";i.prototype.mainpanel="white";i.prototype.navtext="#bfbfbf";i.prototype.content="#3087B3";i.prototype.search="#444";i.prototype.toolpanel="white";i.prototype.writeNavigationStyle=function(){var f="",e=[],d=new h.ThemeClass("orionPage");
d.style.backgroundColor="#fdfdfd";d.style.width="100%";d.style.height="100%";e.push(d);d=new h.ThemeClass("topRowBanner");d.style.margin="0";d.style.border="0";d.style.backgroundColor=this.navbar;d.style.background="-webkit-gradient(linear, left top, left bottom, color-stop(0%,"+this.navbar+"), color-stop(100%,"+this.navbar+"))";d.style.background="-moz-linear-gradient(top,"+this.navbar+"0%,"+this.navbar+"100%)";d.style.height="28px";e.push(d);d=new h.ThemeClass("a");d.style.textDecoration="none";
d.style.color=this.content;e.push(d);d=new h.ThemeClass("navlink");d.style.display="inline-block";d.style.padding="2px";d.style.color=this.content;e.push(d);d=new h.ThemeClass("primaryNav");d.style.color=this.navtext;d.style.fontSize="8pt";d.style.fontWeight="normal";d.style.paddingTop="6px";d.style.verticalAlign="baseline";e.push(d);d=new h.ThemeClass("primaryNav a");d.style.fontSize="8pt";d.style.color=this.navtext;d.style.marginRight="6px";d.style.marginLeft="6px";d.style.verticalAlign="baseline";
d.style.textDecoration="none";e.push(d);d=new h.ThemeClass("primaryNav a:hover");d.style.color="#bfbfbf";d.style.cursor="hand";d.style.color="white";d.style.fontWeight="normal";e.push(d);for(var g in e)f+=e[g].toString();return f};i.prototype.writeLocationStyle=function(){var f="",e=[],d=new h.ThemeClass("titleArea");d.style.margin="0";d.style.paddingTop="5px";d.style.border="0";d.style.background=this.location;d.style.background="-webkit-gradient(linear, left top, left bottom, color-stop(0%,"+this.location+
"), color-stop(100%,"+this.location+"))";d.style.borderBottom="1px solid "+this.location;d.style.minHeight="20px";e.push(d);d=new h.ThemeClass("breadcrumb");d.style.fontSize="8pt";d.style.textDecoration="none";d.style.color=this.content;d.style.paddingTop="2px";e.push(d);d=new h.ThemeClass("a.breadcrumb:hover");d.style.textDecoration="none";d.style.borderBottom="1px dotted";d.style.color="#F58B0F";d.style.cursor="pointer";e.push(d);d=new h.ThemeClass("breadcrumbSeparator");d.style.fontSize="8pt";
d.style.textDecoration="none";d.style.color=this.navbar;d.style.fontWeight="bold";e.push(d);d=new h.ThemeClass("currentLocation");d.style.fontWeight="bold";d.style.fontSize="8pt";d.style.color=this.navbar;d.style.textDecoration="none";d.style.textWrap="normal";d.style.lineHeight="10pt";e.push(d);d=new h.ThemeClass("a.currentLocation:hover");d.style.fontWeight="bold";d.style.fontSize="10pt";d.style.color="#666666";d.style.textDecoration="none";d.style.borderBottom="0";e.push(d);d=new h.ThemeClass("navlinkonpage");
d.style.color=this.content;e.push(d);for(var g in e)f+=e[g].toString();return f};i.prototype.writeButtonStyle=function(){var f="",e=[],d=new h.ThemeClass("commandButton");d.style.color="#222";d.style.border="1px solid #dedede";d.style.backgroundColor=this.button;d.style.textAlign="center";d.style.verticalAlign="baseline";d.style.cursor="pointer";d.style.display="inline-block";d.style.padding="6px";d.style.paddingTop="4px";d.style.borderRadius="1px";d.style.lineHeight="12px";d.style.fontSize="8pt";
d.style.userSelect="none";e.push(d);d=new h.ThemeClass("commandButton:over");d.style.backgroundColor="#e6e6e6";d.style.border="1px solid #808080";e.push(d);d=new h.ThemeClass("commandMenu");d.style.color="#222";d.style.display="inline-block";d.style.verticalAlign="baseline";d.style.margin="0";d.style.fontSize="8pt";d.style.fontWeight="normal";d.style.border="1px solid #dedede";d.style.backgroundColor="#efefef";d.style.cursor="pointer";d.style.borderRadius="1px";e.push(d);d=new h.ThemeClass("commandMenuItem");
d.style.border="0";d.style.padding="0";d.style.margin="0";e.push(d);for(var g in e)f+=e[g].toString();return f};i.prototype.writeMainStyle=function(){var f="",e=[],d=new h.ThemeClass("searchbox");d.style.backgroundImage="url(../images/core_sprites.png)";d.style.backgroundRepeat="no-repeat";d.style.backgroundPosition="4px -297px";d.style.width="12px";d.style.height="12px";d.style.backgroundColor=this.search;d.style.border="1px solid "+this.search;d.style.fontSize="11px";d.style.width="15em";d.style.height=
"16px";d.style.borderRadius="10px";d.style.color="#999";d.style.padding="0";d.style.paddingLeft="20px";d.style.marginLeft="5px";d.style.marginTop="6px !important";d.style.font="7pt Lucida Sans Unicode,Lucida Grande,Verdana,Arial,Helvetica,Myriad,Tahoma,clean,sans-serif !important";e.push(d);d=new h.ThemeClass("searchbox:focus");d.style.color="white";d.style.outline="none";e.push(d);d=new h.ThemeClass("checkedRow");d.style.cssText="background-color:"+this.selection+" !important;";e.push(d);d=new h.ThemeClass("navbar-item-selected");
d.style.background=this.selection;d.style.color=this.content;e.push(d);d=new h.ThemeClass("auxpane");d.style.border="0";d.style.background=this.sidepanel;d.style.background="-webkit-gradient(linear, left top, left bottom, color-stop(0%,"+this.sidepanel+"), color-stop(100%,"+this.sidepanel+"))";d.style.background="-moz-linear-gradient(top, "+this.sidepanel+" 0%, "+this.sidepanel+" 100%)";d.style.overflowX="auto";d.style.minWidth="200px";d.style.paddingTop="16px";e.push(d);d=new h.ThemeClass("mainpane");
d.style.background=this.mainpanel;d.style.border=0;e.push(d);d=new h.ThemeClass("mainToolbar");d.style.background=this.toolpanel;d.style.height="31px";d.style.borderBottom="1px solid #ebebeb";e.push(d);for(var g in e)f+=e[g].toString();return f};i.prototype.render=function(){console.log(this.writeNavigationStyle());console.log(this.writeLocationStyle());console.log(this.writeMainStyle());console.log(this.writeButtonStyle())};i.prototype.getSheet=function(f){f.navbar.value?(this.navbar=f.navbar.value,
this.button=f.button.value,this.location=f.location.value,this.selection=f.selection.value,this.sidepanel=f.sidepanel.value,this.mainpanel=f.mainpanel.value,this.navtext=f.navtext.value,this.search=f.search.value,this.content=f.content.value,this.toolpanel=f.toolpanel.value):(this.navbar=f.navbar,this.button=f.button,this.location=f.location,this.selection=f.selection,this.sidepanel=f.sidepanel,this.mainpanel=f.mainpanel,this.navtext=f.navtext,this.search=f.search,this.content=f.content,this.toolpanel=
f.toolpanel);return this.writeNavigationStyle()+this.writeLocationStyle()+this.writeMainStyle()+this.writeButtonStyle()};return{ThemeSheetWriter:i}});
define("orion/inputCompletion/inputCompletion",[],function(){function h(h,f,e){this._inputField=h;if(typeof this._inputField==="string")this._inputField=document.getElementById(this._inputField);this._binderFunc=f;(h=e?e.group:null)||(h=this._inputField.id?this._inputField.id:"default__input__group");this._completionIdPrefix=h+"__completion__";this._proposeFromStart=e?e.proposeFromStart:!1;this._extendedProvider=e?e.extendedProvider:null;this._proposalIndex=-1;this._dismissed=!0;this._mouseDown=!1;
this._dataList=[];this._initUI();var d=this;this._completionUIContainer.addEventListener("mousedown",function(){d._mouseDown=!0});this._completionUIContainer.addEventListener("mouseup",function(){d._mouseDown=!1});this._inputField.addEventListener("blur",function(){d._mouseDown?window.setTimeout(function(){d._inputField.focus()},200):d._dismiss()});this._inputField.addEventListener("keydown",function(e){d.onKeyDown(e)});this._inputField.addEventListener("input",function(){d._proposeOn(d._inputField.value)});
this._inputField.addEventListener("focus",function(){if(d._dismissed&&d._binderFunc)d._dismissing?d._dismissing=!1:d._binderFunc&&d._binderFunc(function(e){d._bind(e);d._proposeOn(d._inputField.value)})})}h.prototype.onKeyDown=function(h){if(this._dismissed)return!0;var f=h.charCode||h.keyCode;if(f===13){if(this._proposalList&&this._proposalList.length>0&&this._proposalIndex>=0&&this._proposalIndex<this._proposalList.length)return h.preventDefault(),this._dismiss(this._proposalList[this._proposalIndex].item.value,
h.ctrlKey),h.stopPropagation(),!1}else if((f===40||f===38)&&this._proposalList&&this._proposalList.length>0)return h.preventDefault(),this._walk(f===40),h.stopPropagation(),!1;else if(f===27)return h.preventDefault(),this._dismiss(),!1;return!0};h.prototype._bind=function(h){this._dataList=h};h.prototype._getUIContainerID=function(){return this._completionIdPrefix+"UIContainer"};h.prototype._getUIProposalListId=function(){return this._completionIdPrefix+"UIProposalList"};h.prototype._initUI=function(){this._completionUIContainer=
document.getElementById(this._getUIContainerID());if(!this._completionUIContainer)this._completionUIContainer=document.createElement("div"),this._completionUIContainer.id=this._getUIContainerID(),this._completionUIContainer.style.display="none",this._completionUIContainer.className="inputCompletionContainer",this._completionUIContainer.setAttribute("role","list"),this._completionUIContainer.setAttribute("aria-atomic","true"),this._completionUIContainer.setAttribute("aria-live","assertive"),document.body.appendChild(this._completionUIContainer);
this._completionUIContainer.textContent="";this._completionUL=document.getElementById(this._getUIProposalListId());if(!this._completionUL)this._completionUL=document.createElement("ul"),this._completionUL.id=this._getUIProposalListId(),this._completionUL.className="inputCompletionUL";this._completionUL.textContent="";this._completionUIContainer.appendChild(this._completionUL)};h.prototype._createProposalLink=function(h,f,e,d){var g=document.createElement("a");g.href=require.toUrl(f);g.appendChild(this._createBoldText(h,
e,d));return g};h.prototype._createBoldText=function(h,f,e){if(f<0)return document.createTextNode(h);var d=document.createElement("span"),g;0!==f&&(g=document.createTextNode(h.substring(0,f)),d.appendChild(g));var b=document.createElement("b");d.appendChild(b);g=document.createTextNode(h.substring(f,f+e));b.appendChild(g);f+e<h.length-1&&(g=document.createTextNode(h.substring(f+e)),d.appendChild(g));return d};h.prototype._proposeOnCategory=function(h,f){if(f.length!==0){var e=this;if(h){var d=document.createElement("li");
d.className="inputCompletionLICategory";var g=document.createTextNode(h);d.appendChild(g);this._completionUL.appendChild(d)}for(g=0;g<f.length;g++){d=document.createElement("li");d.onmouseover=function(c){e._selectProposal(c.currentTarget)};d.onclick=function(c){e._dismiss(c.currentTarget.completionItem.value)};d.className="inputCompletionLINormal";d.completionItem=f[g].item;if(typeof f[g].item.value==="string"){var b=this._createBoldText(f[g].item.value,f[g].boldIndex,f[g].boldLength);d.appendChild(b)}else f[g].item.value.name&&
f[g].item.value.type==="link"&&d.appendChild(this._createProposalLink(f[g].item.value.name,f[g].item.value.value,f[g].boldIndex,f[g].boldLength));this._completionUL.appendChild(d);this._proposalList.push({item:f[g].item,domNode:d})}}};h.prototype._domNode2Index=function(h){for(var f=0;f<this._proposalList.length;f++)if(this._proposalList[f].domNode===h)return f;return-1};h.prototype._highlight=function(h,f){var e=h,d=!1;isNaN(e)||(d=!0,e=this._proposalList&&h>=0&&h<this._proposalList.length?this._proposalList[h].domNode:
null);if(e)e.className=f?"inputCompletionLISelected":"inputCompletionLINormal",f&&d&&(e.offsetTop<this._completionUIContainer.scrollTop?e.scrollIntoView(!0):e.offsetTop+e.offsetHeight>this._completionUIContainer.scrollTop+this._completionUIContainer.clientHeight&&e.scrollIntoView(!1))};h.prototype._selectProposal=function(h){var f=h;isNaN(f)&&(f=this._domNode2Index(h));if(f!==this._proposalIndex)this._highlight(this._proposalIndex,!1),this._proposalIndex=f,this._highlight(this._proposalIndex,!0)};
h.prototype._dismiss=function(h,f){if(!this._mouseDown){this._dismissed=!0;this._proposalList=null;this._proposalIndex=-1;if(typeof h==="string")this._inputField.value=h,this._dismissing=!0,this._inputField.focus();else if(h&&h.name&&h.type==="link")f?window.open(h.value):window.location.href=h.value;var e=this;window.setTimeout(function(){e._completionUIContainer.style.display="none"},200)}};h.prototype._show=function(){if(this._proposalList&&this._proposalList.length>0){for(var h=0,f=0,e=this._inputField;e;)h+=
e.offsetLeft,f+=e.offsetTop,e=e.offsetParent;this._completionUIContainer.style.display="block";this._completionUIContainer.style.top=f+this._inputField.offsetHeight+2+"px";this._completionUIContainer.style.left=h+"px";this._completionUIContainer.style.width=this._inputField.offsetWidth+"px";this._dismissed=this._mouseDown=!1}else this._dismissed=!0,this._proposalList=null,this._proposalIndex=-1,this._completionUIContainer.style.display="none"};h.prototype._walk=function(h){h=this._proposalIndex+(h?
1:-1);h<-1?h=this._proposalList.length-1:h>=this._proposalList.length&&(h=-1);this._selectProposal(h)};h.prototype._proposeOnList=function(h,f,e){for(var d="",g=[],b=f?f.length:0,c=0;c<h.length;c++)if(h[c].type==="category")this._proposeOnCategory(d,g),d=h[c].label,g=[];else{var a=!0,j=-1;if(f&&e){var k;typeof h[c].value==="string"?k=h[c].value.toLowerCase():h[c].value.name&&(k=h[c].value.name.toLowerCase());j=k.indexOf(f);j<0?a=!1:this._proposeFromStart&&(a=j===0)}a&&g.push({item:h[c],boldIndex:j,
boldLength:b})}this._proposeOnCategory(d,g)};h.prototype._proposeOn=function(h){this._completionUL.textContent="";var f=h?h.toLowerCase():null;this._proposalList=[];this._proposeOnList(this._dataList,f,!0);if(this._extendedProvider&&f){var e=this;this._extendedProvider(h,function(d){if(d)for(var g=0;g<d.length;g++)e._proposeOnList(d[g].proposals,d[g].filterForMe?f:h,d[g].filterForMe);e._show()},[])}else this._show()};h.prototype.constructor=h;return{InputCompletion:h}});
define("orion/globalSearch/nls/root/messages",{"Files that contain:":"Files that contain:",Search:"Search","All types":"All types","File type:":"File type:","All ${0} files":"All ${0} files","Type a search term":"Type a search term","Case sensitive":"Case sensitive","Regular expression":"Regular expression"});
define("orion/globalSearch/nls/messages",["orion/i18n!orion/globalSearch/nls/messages","orion/globalSearch/nls/root/messages"],function(h,i){var f={root:i};Object.keys(h).forEach(function(e){typeof f[e]==="undefined"&&(f[e]=h[e])});return f});
define("orion/webui/dialog",["i18n!orion/widgets/nls/messages","require","orion/webui/littlelib","orion/uiUtils"],function(h,i,f,e){function d(){}d.prototype={DISABLED:"disabled",CONTAINERTEMPLATE:'<div class="dialog" role="dialog"><div class="dialogTitle"><span id="title" class="dialogTitleText layoutLeft"></span><span tabindex="0" role="button" aria-label="Close" class="dialogDismiss layoutRight core-sprite-close imageSprite" id="closeDialog"></span></div><div id="dialogContent" class="dialogContent layoutBlock"></div><div id="buttons" class="dialogButtons"></div></div>',_initialize:function(){var d=
document.body;this.$frameParent=d;this.$$modalExclusions=this.$$modalExclusions||[];var b=document.createRange();b.selectNode(d);b=b.createContextualFragment(this.CONTAINERTEMPLATE);d.appendChild(b);this.$frame=d.lastChild;this.title&&f.$("#title",this.$frame).appendChild(document.createTextNode(this.title));this.$close=f.$("#closeDialog",this.$frame);var c=this;this.$close.addEventListener("click",function(){c.hide()},!1);this.$parent=f.$(".dialogContent",this.$frame);b=document.createRange();b.selectNode(this.$parent);
d=b.createContextualFragment(this.TEMPLATE);this.messages&&f.processTextNodes(d,this.messages);this.$parent.appendChild(d);this.$buttonContainer=f.$(".dialogButtons",this.$frame);this._makeButtons();this.$close.addEventListener("keydown",function(a){(a.keyCode===f.KEY.ENTER||a.keyCode===f.KEY.SPACE)&&c.hide()},!1);this.$frame.addEventListener("keydown",function(a){a.keyCode===f.KEY.ESCAPE?c.hide():a.keyCode===f.KEY.ENTER&&typeof c._defaultCallback==="function"&&c._defaultCallback()},!1);this._bindElements(this.$parent);
typeof this._bindToDom==="function"&&this._bindToDom(this.$parent);this.modal&&this._makeModal()},_makeButtons:function(){if(this.$buttonContainer&&Array.isArray(this.buttons)){var d=this;this.buttons.forEach(function(b){var c=e.createButton(b.text,b.callback);if(b.id)c.id=b.id,d["$"+c.id]=c;if(b.isDefault)d._defaultCallback=b.callback,d._defaultButton=c;d.$buttonContainer.appendChild(c)})}},_makeModal:function(){var d=this;this.$frame.addEventListener("blur",function(a){d.$lastFocusedElement=a.target},
!0);this._modalListener=function(a){var c=!f.contains(d.$frame,a.target);if(c)for(var b=0;b<d.$$modalExclusions.length;b++)if(f.contains(d.$$modalExclusions[b],a.target)){c=!1;break}c&&(window.setTimeout(function(){(d.$lastFocusedElement||d.$parent).focus()},0),f.stop(a))};this.$frameParent.addEventListener("focus",this._modalListener,!0);this.$frameParent.addEventListener("click",this._modalListener,!0);var b=this.$frameParent.childNodes,c=!1;this._addedBackdrop=[];for(var a=0;a<b.length;a++){for(var e=
0;e<this.$$modalExclusions.length;e++)if(f.contains(this.$$modalExclusions[e],b[a])){c=!0;break}!c&&b[a]!==d.$frame&&b[a].classList&&!b[a].classList.contains("tooltipContainer")&&(e=b[a],e.classList.contains("modalBackdrop")||(e.classList.add("modalBackdrop"),this._addedBackdrop.push(e)))}(b=f.lastTabbable(this.$buttonContainer)||f.lastTabbable(this.$parent))&&b.addEventListener("keydown",function(a){if(a.keyCode===f.KEY.TAB){var c=d._getFirstFocusField();c&&c!==a.target&&c.focus();f.stop(a)}},!1)},
_addChildDialog:function(d){this.$$modalExclusions.push(d.$frame||d.$parent)},_bindElements:function(d){for(var b=0;b<d.childNodes.length;b++){var c=d.childNodes[b];c.id&&(this["$"+c.id]=c);this._bindElements(c)}},hide:function(){typeof this._beforeHiding==="function"&&this._beforeHiding();this._modalListener&&(this.$frameParent.removeEventListener("focus",this._modalListener,!0),this.$frameParent.removeEventListener("click",this._modalListener,!0));this.$frame.classList.remove("dialogShowing");typeof this._afterHiding===
"function"&&this._afterHiding();var d=this;this.keepAlive||window.setTimeout(function(){d.destroy()},0)},show:function(d){typeof this._beforeShowing==="function"&&this._beforeShowing();var b=f.bounds(this.$frame),c=f.bounds(document.documentElement),a;d?(a=f.bounds(d),d=a.top+a.height+4,a=a.left+4,d+b.height>c.height&&(d=Math.max(0,c.height-b.height-4)),a+b.width>c.width&&(a=Math.max(0,c.width-b.width-4))):(a=Math.max(0,(c.width-b.width)/2),d=Math.max(0,(c.height-b.height)/2));this.$lastFocusedElement=
document.activeElement;this.$frame.style.top=d+"px";this.$frame.style.left=a+"px";this.$frame.classList.add("dialogShowing");typeof this._afterShowing==="function"&&this._afterShowing();this.customFocus||this._getFirstFocusField().focus()},_getFirstFocusField:function(){return f.firstTabbable(this.$parent)||this._defaultButton||f.firstTabbable(this.$buttonContainer)||this.$close},destroy:function(){this._addedBackdrop&&this._addedBackdrop.length>0&&this._addedBackdrop.forEach(function(d){d.classList.remove("modalBackdrop")});
this.$frameParent.removeEventListener("focus",this._modalListener,!0);this.$frameParent.removeEventListener("click",this._modalListener,!0);this.$frameParent.removeChild(this.$frame);this.$parent=this.$frame=void 0}};d.prototype.constructor=d;return{Dialog:d}});define("text!orion/banner/banner.html",[],function(){return'<header id="banner" role="banner" class="headerLayout">\n\t<\!-- Requires some js code to bind the home link, link to progress image, and binding NLS variables  --\>\n\t<\!-- Top row:  Logo + discovery links + search + user --\>\n\t<div id="staticBanner" class="primaryNav layoutBlock topRowBanner">\n\t\t<a id="home" class="layoutLeft logo"></a>\n\t\t<nav id="primaryNav" class="layoutLeft" role="navigation"></nav>\n\t\t<div class="layoutRight">\n\t\t\t<div id="globalActions" class="spacingLeft layoutLeft"></div>\n\t\t\t<div id="relatedLinks" class="spacingLeft layoutLeft" style="padding-top:1px;">\n\t\t\t\t<span tabindex="0" role="button" id="relatedTrigger" class="dropdownTrigger hidden">${Related}<span class="dropdownArrowDown"></span></span>\n\t\t\t\t<ul id="relatedDropdown" class="dropdownMenu" role="menu"></ul>\n\t\t\t</div>\n\t\t\t<input type="text" id="search" autocomplete="off" class="layoutLeft spacingLeft searchbox" role="search">\n\t\t\t<div id="searchOptions" class="layoutLeft" style="padding-top:1px;"></div>\n\t\t\t<div id="userMenu" class="spacingLeft layoutLeft">\n\t\t\t\t<span id="userTrigger" tabindex="0" role="button" class="dropdownTrigger">${Options}<span class="dropdownArrowDown"></span></span>\n\t\t\t\t<ul id="userDropdown" class="dropdownMenu" role="menu"></ul>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\t<\!-- Task + resource (title) area --\>\n\t<div id="titleArea" class="layoutBlock titleArea">\n\t\t<div class="clear" style="padding-bottom:5px;display:inline;"><span id="location" class="currentLocation"></span><span id="dirty" class="currentLocation"></span></div>\n\t\t<div class="layoutRight pageNav">\n\t\t\t<img class="progressPane" id="progressPane" tabindex="0" role="progressbar"></img>\n\t\t</div>\n\t</div>\n</header>'});
define("text!orion/banner/footer.html",[],function(){return'<footer id="footerContent" class="layoutBlock footerLayout" role="contentinfo">\n\t<\!-- Requires some js code to bind the NLS variables  --\>\n\t<div class="footerBlock">${Orion is in Beta. Please try it out but BEWARE your data may be lost.}</div>\n\t<div class="footerRightBlock">\n\t\t<a href="http://wiki.eclipse.org/Orion/FAQ" target="_blank">${FAQ}</a>\n\t\t<a href="https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Orion&version=2.0" target="_blank">${Report a Bug}</a>|\n\t\t<a href="http://www.eclipse.org/legal/privacy.php" target="_blank">${Privacy Policy}</a>|\n\t\t<a href="http://www.eclipse.org/legal/termsofuse.php" target="_blank">${Terms of Use}</a>|\n\t\t<a href="http://www.eclipse.org/legal/copyright.php" target="_blank">${Copyright Agent}</a>\n\t</div>\n</footer>'});
define("text!orion/banner/toolbar.html",[],function(){return'<ul class="layoutLeft commandList pageActions" id="pageActions"></ul>\n<ul class="layoutLeft commandList pageActions" id="selectionTools"></ul>\n<div class="layoutRight" style="padding-left:7px;padding-right:7px;margin-top:3px;" id="settingsTab" style="visibility:hidden;">\n\t<div class="layoutRight core-sprite-settings" id="settingsAction" role="settings" aria-live="off" style="visibility:hidden;"></div>\n</div>\n<div class="layoutRight status" id="statusPane" role="status" aria-live="off"></div>\n<ul class="layoutRight commandList pageActions" id="pageNavigationActions"></ul>\n<div id="notificationArea" class="layoutLeft layoutBlock slideContainer">\n\t<div class="layoutLeft" id="notifications" aria-live="assertive" aria-atomic="true"></div>\n\t<div class="layoutRight"><span tabindex="0" role="button" class="layoutRight core-sprite-close imageSprite" id="closeNotifications"></span></div>\n</div>\n\t\t\n\t'});
define("orion/webui/dialogs/SFTPConnectionDialog",["i18n!orion/widgets/nls/messages","orion/webui/littlelib","orion/webui/popupdialog","orion/webui/dialog"],function(h,i,f,e){function d(b,c){this.messages=h;this._initialize(b);this._notify=c}function g(b){this._init(b)}localStorage.getItem("orion.sftpConnections")||localStorage.setItem("orion.sftpConnections",JSON.stringify({identifier:"name",label:h.name,items:[]}));d.prototype=new f.PopupDialog;d.prototype.TEMPLATE='<div><label for="sftpHost">${Remote host:}</label><input id="sftpHost" /></div><div><label for="sftpPort">${Port:}</label><input id="sftpPort" /></div><div><label for="sftpPath">${Remote path:}</label><input id="sftpPath" /></div><div><label for="sftpUser">${User name:}</label><input id="sftpUser" /></div><div class="layoutBlock layoutRight"><span id="addSftpConnection" role="button" class="dropdownTrigger commandButton" tabindex="0">${Add}</span></div>';
d.prototype._bindToDom=function(){var b=this,c=function(){this._notify({name:this.$sftpUser.value+"@"+this.$sftpHost.value+":"+this.$sftpPort.value+this.$sftpPath.value});this.hide()};this.$addSftpConnection.addEventListener("click",c.bind(b),!1);this.$addSftpConnection.addEventListener("keydown",function(a){if(a.keyCode===i.KEY.ENTER||a.keyCode===i.KEY.SPACE)c.bind(b)(),i.stop(a)},!1)};d.prototype.constructor=d;g.prototype=new e.Dialog;g.prototype.TEMPLATE='<div><div><label for="sftpPath">${Location:}</label></div><div><select id="sftpConnectionList" name="sftpConnectionList"></select><span id="newSftpConnection" role="button" style="margin-left: 16px;" class="dropdownTrigger commandButton" tabindex="0">${New}<span class="dropdownArrowDown"></span></span></div><div><label for="sftpPassword">${Password:}</label></div><div><input id="sftpPassword" type="password" /></div><p>${If the same file exists in both the source and destination:}</p><input type="radio" name="overwriteOption" id="overwriteCancel" checked value="overwriteCancel" /><label for="overwriteCancel">${Cancel the transfer}</label><br /><input type="radio" name="overwriteOption" id="overwriteAll" value="overwriteAll" /><label for="overwriteAll">${Always overwrite destination}</label><br /><input type="radio" name="overwriteOption" id="overwriteOlder" value="overWriteOlder" /><label for="overwriteOlder">${Overwrite if source is newer}</label></div>';
g.prototype._init=function(b){this.title="SFTP Transfer";this.messages=h;this.modal=!0;this.buttons=[{text:h["Start Transfer"],callback:this.done.bind(this)}];this.sftpConnectionStoreData=JSON.parse(localStorage.getItem("orion.sftpConnections"));this._func=b.func;this._initialize()};g.prototype._bindToDom=function(){var b=this;this.$sftpConnectionList.style.minWidth="220px";this._popupDialog=new d(this.$newSftpConnection,this.onAddConnection.bind(this));this.$newSftpConnection.addEventListener("keydown",
function(c){if(c.keyCode===i.KEY.ENTER||c.charCode===i.KEY.SPACE)b._popupDialog.show(),i.stop(c)},!1);this._addChildDialog(this._popupDialog);this._populateSelect()};g.prototype._afterHiding=function(){this._popupDialog.hide()};g.prototype.done=function(){var b=this.$sftpConnectionList.value.split("@"),c,a,d;if(b.length===2)d=b[0],a=b[1];else if(b.length===3)d=b[0]+"@"+b[1],a=b[2];else{this.hide();return}var e=a.indexOf(":");e<=0&&(c=22);var g=a.indexOf("/");g<=0||(c?b=a.substring(0,g):(b=a.substring(0,
e),c=a.substring(e+1,g)),a=a.substring(g),this._func(b,c,a,d,this.$sftpPassword.value,this._computeOverwriteValue()));this.hide()};g.prototype._computeOverwriteValue=function(){if(this.$overwriteCancel.checked)return"no-overwrite";else if(this.$overwriteOlder.checked)return"overwrite-older";return""};g.prototype._populateSelect=function(){i.empty(this.$sftpConnectionList);for(var b=0;b<this.sftpConnectionStoreData.items.length;b++){var c=this.sftpConnectionStoreData.items[b].name,a=document.createElement("option");
a.appendChild(document.createTextNode(c));a.value=c;this.$sftpConnectionList.appendChild(a)}};g.prototype.onAddConnection=function(b){for(var c=!1,a=0;a<this.sftpConnectionStoreData.items.length;a++)if(this.sftpConnectionStoreData.items[a].name===b.name){c=!0;break}if(!c)this.sftpConnectionStoreData.items.unshift(b),localStorage.setItem("orion.sftpConnections",JSON.stringify(this.sftpConnectionStoreData)),this._populateSelect(),this.$sftpConnectionList.value=b.name};g.prototype.constructor=g;return{SFTPConnectionDialog:g}});
define("orion/webui/dialogs/ImportDialog",["i18n!orion/widgets/nls/messages","orion/webui/littlelib","orion/webui/dialog"],function(h,i,f){function e(d){this._init(d)}e.prototype=new f.Dialog;e.prototype.TEMPLATE='<div ondragover="event.preventDefault()"><div class="uploadContainer" id="uploadContainer"><div class="dottedOutline"><div id="dragArea" class="floatingSection"><div class="uploadInstruction">${Drag a file here}</div><div class="uploadOptions">(<input style="height: 20px;" class="uploadOptionsItem" id="unzipCheckbox" checked="true" type="checkbox"><label style="line-height: 20px;" class="uploadOptionsItem" for="${id}_unzipCheckbox">${unzip zips}</label>)</div><div class="tipInstruction">${or if you prefer}</div></div></div></div><div class="layoutBlock layoutRight"><input type="file" name="selectedFile" id="selectedFile" class="uploadChooser" /><span id="uploadButton" role="button" class="commandButton disabled" tabindex="0">${Upload}</span></div></div>';
e.prototype._init=function(d){this.title=h["Import a file or zip"];this.messages=h;this.modal=!0;this._importLocation=d.importLocation;this._func=d.func;this._initialize()};e.prototype._bindToDom=function(){this.$uploadContainer.addEventListener("dragenter",this.dragEnter.bind(this),!1);this.$uploadContainer.addEventListener("dragover",this.dragOver.bind(this),!1);this.$uploadContainer.addEventListener("dragleave",this.dragLeave.bind(this),!1);this.$uploadContainer.addEventListener("drop",this.drop.bind(this),
!1);this.$selectedFile.addEventListener("change",this.checkUploadState.bind(this),!1);this.$uploadButton.addEventListener("click",this.uploadSelected.bind(this),!1)};e.prototype.handleReadyState=function(){this.req.readyState===4&&(this.hide(),this._func())};e.prototype.checkUploadState=function(){this.$selectedFile.files&&this.$selectedFile.files.length>0?this.$uploadButton.classList.remove(this.DISABLED):this.$uploadButton.classList.add(this.DISABLED)};e.prototype.uploadFile=function(d){var e=this.$unzipCheckbox.checked&&
d.name.indexOf(".zip")===d.name.length-4;this.req=new XMLHttpRequest;this.req.open("post",this._importLocation,!0);this.req.setRequestHeader("X-Requested-With","XMLHttpRequest");this.req.setRequestHeader("Slug",d.name);e||this.req.setRequestHeader("X-Xfer-Options","raw");this.req.setRequestHeader("Content-Type",d.type);this.req.onreadystatechange=this.handleReadyState.bind(this);this.req.send(d)};e.prototype.uploadSelected=function(){this.$uploadButton.classList.contains(this.DISABLED)||this.$selectedFile.files&&
this.$selectedFile.files.length>0&&this.uploadFile(this.$selectedFile.files[0])};e.prototype.dragEnter=function(d){if(d.dataTransfer.effectAllowed==="all"||d.dataTransfer.effectAllowed==="uninitialized"||d.dataTransfer.effectAllowed.indexOf("copy")>=0)d.dataTransfer.dropEffect="copy";i.stop(d)};e.prototype.dragLeave=function(d){i.stop(d)};e.prototype.dragOver=function(d){if(d.dataTransfer.effectAllowed==="all"||d.dataTransfer.effectAllowed==="uninitialized"||d.dataTransfer.effectAllowed.indexOf("copy")>=
0)d.dataTransfer.dropEffect="copy";i.stop(d)};e.prototype.drop=function(d){i.stop(d);d=d.dataTransfer.files;if(d.length&&d.length>0)for(var e=0;e<d.length;e++)this.uploadFile(d[e])};e.prototype.constructor=e;return{ImportDialog:e}});
define("orion/fileUtils",["i18n!orion/nls/messages"],function(){return{makeRelative:function(h){if(!h)return h;var i=window.location.protocol+"//"+window.location.host;return h.indexOf(i)===0?h.substring(i.length):h},isAtRoot:function(h){return this.makeRelative(h).indexOf("/workspace")===0}}});
define("orion/favorites",["require","orion/fileUtils","orion/EventTarget"],function(h,i,f){function e(d){this._favorites=[];f.attach(this);this._init(d);this._initializeFavorites()}e.prototype={_init:function(d){this._registry=d.serviceRegistry;this._serviceRegistration=this._registry.registerService("orion.core.favorite",this)},_notifyListeners:function(){this.dispatchEvent({type:"favoritesChanged",navigator:this._favorites,registry:this._registry})},makeFavorites:function(d){for(var d=Array.isArray(d)?
d:[d],e=0;e<d.length;e++){var b=d[e],c=b.ChildrenLocation?b.ChildrenLocation:b.Location,c=i.makeRelative(c);this.addFavorite(b.Name,c,b.Directory)}this._storeFavorites();this._notifyListeners()},addFavoriteUrl:function(d){this.addFavorite(d,d,!1,!0)},addFavorite:function(d,e,b){this._favorites.push({name:d,path:e,directory:b,isFavorite:!0});this._favorites.sort(this._sorter);this._storeFavorites();this._notifyListeners()},removeFavorite:function(d){for(var e in this._favorites)if(this._favorites[e].path===
d){this._favorites.splice(e,1);break}this._favorites.sort(this._sorter);this._storeFavorites();this._notifyListeners()},renameFavorite:function(d,e){var b=!1,c;for(c in this._favorites)if(this._favorites[c].path===d){var a=this._favorites[c];if(a.name!==e)a.name=e,b=!0}b&&(this._favorites.sort(this._sorter),this._storeFavorites(),this._notifyListeners())},hasFavorite:function(d){for(var e in this._favorites)if(this._favorites[e].path===d)return!0;return!1},_SPECIAL_CHARS:"^$\\+[]().",queryFavorites:function(d){var e;
if(!d)return this._favorites;var b="";for(e=0;e<d.length;e++){var c=d.charAt(e);b+=c==="*"?".*":c==="?"?".?":this._SPECIAL_CHARS.indexOf(c)>=0?"\\"+c:c}b+=".*";d=RegExp(b);b=[];for(e in this._favorites)this._favorites[e].name.search(d)===0&&b.push(this._favorites[e]);return b},_initializeFavorites:function(){var d=this;this._registry.getService("orion.core.preference").getPreferences("/window/favorites").then(function(e){var b,e=e.get("navigate");typeof e==="string"&&(e=JSON.parse(e));if(e)for(b in e)e[b].isFavorite=
!0,d._favorites.push(e[b]);d._favorites.sort(d._sorter);d._notifyListeners()})},_storeFavorites:function(){var d=this._favorites;this._registry.getService("orion.core.preference").getPreferences("/window/favorites").then(function(e){e.put("navigate",d)})},_sorter:function(d,e){var b=d.name.toLowerCase(),c=e.name.toLowerCase();return b>c?1:b<c?-1:0},getFavorites:function(){return{navigator:this._favorites}}};e.prototype.constructor=e;return{FavoritesService:e}});
define("orion/PageUtil",[],function(){var h=/^http[s]?/i;return{matchResourceParameters:function(h){var h=h||window.location.toString(),f={resource:""},e=h.indexOf("#");if(e!==-1&&(h=h.substring(e+1),h.length!==0)){h=h.split(",");Object.defineProperty(f,"resourceRaw",{value:h[0]});f.resource=decodeURIComponent(h[0]);for(e=1;e<h.length;e++){var d=/([^=]*)(=?)(.*)/.exec(h[e]),g=decodeURIComponent(d[1]||""),d=decodeURIComponent(d[3]||"");g!==""&&g!=="resource"&&(f[g]=d)}}return f},validateURLScheme:function(i,
f){var e=i;if(i.indexOf("://")===-1){var d=document.createElement("a");d.href=i;e=d.href}d=!1;return(d=f?f.some(function(d){return RegExp("^"+d+":","i").test(e)}):h.test(e))?i:(console.log("Illegal URL Scheme: '"+i+"'"),"")}}});
define("orion/commands","i18n!orion/nls/messages,require,orion/uiUtils,orion/PageUtil,orion/webui/littlelib,orion/webui/dropdown,orion/webui/tooltip,orion/explorers/navigationUtils".split(","),function(h,i,f,e,d,g,b,c){function a(a,c,b,d,e){this.commandService=a;this.handler=c;this.items=b;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}function k(a,c,b){c.classList.add("commandImage");var d;a.imageClass?(d=document.createElement("span"),c.appendChild(d),d.classList.add(a.spriteClass),d.classList.add(a.imageClass)):(d=new Image,d.alt=a.name,d.name=b,d.id=b,d.src=a.image,c.appendChild(d));return d}function n(a){this._init(a)}function l(a,c,b,e,j,k,g){this.keyCode=typeof a==="string"?a.toUpperCase().charCodeAt(0):a;this.mod1=c!==void 0&&c!==null?c:!1;this.mod2=b!==void 0&&b!==null?b:!1;this.mod3=
e!==void 0&&e!==null?e:!1;this.mod4=j!==void 0&&j!==null?j:!1;this.domScope=d.node(k);this.scopeName=g||(k?k.id:null)}function r(a,c){this.token=a;this.parameterName=c}function q(a,c,b,d,e){this.name=a;this.type=c;this.label=b;this.value=d;this.lines=e||1}function m(a,c,b){this._storeParameters(a);this._hasOptionalParameters=c&&c.hasOptionalParameters;this._options=c;this.optionsRequested=!1;this.getParameters=b;this.clientCollect=c&&c.clientCollect}var p=window.navigator.platform.indexOf("Mac")!==
-1;a.prototype={collectsParameters:function(){return this.commandService&&this.commandService.collectsParameters()},makeCopy:function(c){var b=new a(this.commandService,this.handler,this.items,this.userData,this.command);b.domNode=this.domNode;b.domParent=this.domParent;if(c)b.parameters=c.makeCopy();else if(this.parameters)b.parameters=this.parameters.makeCopy();return b}};a.prototype.constructor=a;j.prototype={_init:function(a){this._registry=a.serviceRegistry;this._serviceRegistration=this._registry.registerService("orion.page.command",
this);this._defaultSelectionService=a.selection;var c=this;window.document.addEventListener("keydown",function(a){a=a||window.event;if(function(a){if(p){if(a.metaKey&&!a.altKey)return!a.shiftKey&&!a.ctrlKey&&(a.keyCode===65||a.keyCode===67||a.keyCode===86||a.keyCode===88||a.keyCode===90)?!0:!1}else{if(a.ctrlKey&&!a.altKey)return!a.shiftKey&&(a.keyCode===65||a.keyCode===67||a.keyCode===86||a.keyCode===88||a.keyCode===90)?!0:!1;if(a.altKey&&!a.ctrlKey)return!1}if(a["char"])return a["char"].length>0;
else if(a.charCode||a.keyCode)switch(a=a.charCode||a.keyCode,a){case 8:case 9:case 13:case 46:return!0;default:return a>=32&&a<112||a>123}return!1}(a)){if(a.target.contentEditable==="true")return;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}c._processKey(a)},!1)},_processKey:function(a){function c(a){window.document.all?a.keyCode=0:(a.preventDefault(),a.stopPropagation())}for(var b in this._activeBindings)if(this._activeBindings[b]&&this._activeBindings[b].keyBinding&&this._activeBindings[b].command&&this._activeBindings[b].keyBinding.match(a)){var d=this._activeBindings[b],e=d.invocation;if(e)if(d=d.command,d.hrefCallback){c(a);a=d.hrefCallback.call(e.handler||window,e);a.then?a.then(function(a){window.open(a)}):window.open(a);
break}else if(d.callback){c(a);var j=this;window.setTimeout(function(){j._invoke(e)},0);break}}},processURL:function(a){for(var c in this._urlBindings)if(this._urlBindings[c]&&this._urlBindings[c].urlBinding&&this._urlBindings[c].command){var b=this._urlBindings[c].urlBinding.match(a);if(b){var d=this._urlBindings[c],e=d.command,j=d.invocation;if(j&&j.parameters&&e.callback){j.parameters.setValue(b.parameterName,b.parameterValue);var k=this;window.setTimeout(function(){k._invoke(j)},0);break}}}},
findCommand:function(a){return this._commandList[a]},runCommand:function(c,b,d,e){b?(c=this._commandList[c])&&(c.visibleWhen?c.visibleWhen(b):1)&&c.callback&&this._invoke(new a(this,d,b,null,c),e):(b=this._urlBindings[c])&&b.command&&b.command.callback&&this._invoke(b.invocation,e)},getSelectionService:function(){return this._defaultSelectionService},setParameterCollector:function(a){this._parameterCollector=a},openParameterCollector:function(a,c,b){this._parameterCollector&&(this._parameterCollector.close(),
this._parameterCollector.open(a,c,b))},closeParameterCollector:function(){this._parameterCollector&&this._parameterCollector.close()},collectsParameters:function(){return this._parameterCollector},_invoke:function(a,c){return this._collectAndInvoke(a.makeCopy(c),!1)},_collectAndInvoke:function(a,c){if(a)if(this._parameterCollector&&a.parameters&&a.parameters.hasParameters()&&(c||a.parameters.shouldCollectParameters())){var d=!1;a.parameters.updateParameters(a);d=this._parameterCollector.collectParameters(a);
if(!d){var e=new b.Tooltip({node:a.domNode,trigger:"click",position:["below","right","above","left"]}),d=e.contentContainer();d.classList.add("parameterPopup");var j=window.document.activeElement,k=this._parameterCollector.getFillFunction(a,function(){j&&j.focus();e.destroy()})(d);e.show();window.setTimeout(function(){k.focus();k.select()},0);d=!0}d||a.command.callback.call(a.handler||window,a)}else a.command.callback.call(a.handler||window,a);else window.console.log("Client attempted to invoke command without an available (rendered) command invocation")},
collectParameters:function(a){this._collectAndInvoke(a,!0)},showKeyBindings:function(a){var c={},b,d,e,j;for(j in this._activeBindings)if((d=this._activeBindings[j])&&d.keyBinding&&d.command)d.keyBinding.scopeName?(c[d.keyBinding.scopeName]||(c[d.keyBinding.scopeName]=[]),c[d.keyBinding.scopeName].push(d)):(b=f.getUserKeyString(d.keyBinding),e=document.createElement("span"),e.role="listitem",e.appendChild(document.createTextNode(b+" = "+d.command.name)),e.appendChild(document.createElement("br")),
a.appendChild(e));for(var k in c)if(c[k].length&&c[k].length>0){b=document.createElement("h2");a.appendChild(b);b.appendChild(document.createTextNode(k));for(j=0;j<c[k].length;j++)d=c[k][j],b=f.getUserKeyString(d.keyBinding),e=document.createElement("span"),e.role="listitem",e.appendChild(document.createTextNode(b+" = "+d.command.name)),e.appendChild(document.createElement("br")),a.appendChild(e)}},addCommand:function(a){this._commandList[a.id]=a},addCommandGroup:function(a,c,b,d,e,j){this._contributionsByScopeId[a]||
(this._contributionsByScopeId[a]={});a=this._contributionsByScopeId[a];e&&(a=this._createEntryForPath(a,e));if(a[c]){if(d)a[c].title=d;if(b)a[c].position=b;a[c].emptyGroupMessage=j}else a[c]={title:d,position:b,emptyGroupMessage:j,children:{}},a.sortedContributions=null},_createEntryForPath:function(a,c){if(c)for(var b=c.split("/"),d=0;d<b.length;d++)if(b[d].length>1)a[b[d]]||(a[b[d]]={position:0,children:{}}),a=a[b[d]].children;return a},registerSelectionService:function(a,c){this._contributionsByScopeId[a]||
(this._contributionsByScopeId[a]={});this._contributionsByScopeId[a].localSelectionService=c},registerCommandContribution:function(a,c,b,d,e,j,k){this._contributionsByScopeId[a]||(this._contributionsByScopeId[a]={});a=this._contributionsByScopeId[a];d&&(a=this._createEntryForPath(a,d));a[c]={position:b};j&&(b=this._commandList[c])&&(this._activeBindings[c]={command:b,keyBinding:j,bindingOnly:e});k&&(b=this._commandList[c])&&(this._urlBindings[c]={command:b,urlBinding:k,bindingOnly:e});a.sortedContributions=
null},_checkForTrailingSeparator:function(a,c,b){var e;if(c==="tool"||c==="button")if((e=a.childNodes.length>0?a.childNodes[a.childNodes.length-1]:null)&&e.classList.contains("commandSeparator"))return b?(a.removeChild(e),!1):!0;if(c==="menu"&&(a=d.$$array("li > *",a),a.length>0&&a[a.length-1].classList.contains("dropdownSeparator")))if(e=a[a.length-1],b)e.parentNode.parentNode.removeChild(e.parentNode);else return!0;return!1},renderCommands:function(a,c,b,e,j,k,g){if(typeof a!=="string")throw"a scope id for rendering must be specified";
c=d.node(c);if(!c)throw"no parent";var f=this._contributionsByScopeId[a];if(!b&&f){var b=f.localSelectionService||this._defaultSelectionService,h=this;b&&b.getSelections(function(b){h.renderCommands(a,c,b,e,j,k)})}else f&&(this._render(this._contributionsByScopeId[a],c,b,e,j||"button",k,g),this._checkForTrailingSeparator(c,j,!0))},destroy:function(a){a=d.node(a);if(!a)throw"no parent";for(;a.hasChildNodes();){var c=a.firstChild;c.commandTooltip&&c.commandTooltip.destroy();c.emptyGroupTooltip&&c.emptyGroupTooltip.destroy();
this.destroy(c);a.removeChild(c)}},_render:function(d,e,j,k,g,f,h){var l=d.sortedContributions;if(!l){var l=[],n=!1,i;for(i in d)if(!d.hasOwnProperty||d.hasOwnProperty(i)){var r=d[i];if(r&&typeof r.position==="number")r.id=i,l.push(r),n=!0}if(n)l.sort(function(a,c){return a.position-c.position}),d.sortedContributions=l}for(d=0;d<l.length;d++){var m;if(l[d].children&&Object.getOwnPropertyNames(l[d].children).length>0){var r=l[d],n=l[d].children,q=this,p;if(g==="tool"||g==="button")if(r.title){p=this._createDropdownMenu(e,
r.title);h&&c.generateNavGrid(h,p.menuButton);var O=n,u=r;window.setTimeout(function(){q._render(O,p.menu,j,k,"menu",f,h);q._checkForTrailingSeparator(p.menu,"menu",!0);if(p.menu.childNodes.length===0)if(u.emptyGroupMessage){if(!p.menuButton.emptyGroupTooltip)p.menuButton.emptyGroupTooltip=new b.Tooltip({node:p.menuButton,text:u.emptyGroupMessage,trigger:"click",position:["below","right","above","left"]})}else h&&c.removeNavGrid(h,p.menuButton),p.menu.parentNode&&p.menu.parentNode.removeChild(p.menu),
p.destroyButton&&p.destroyButton.parentNode&&p.destroyButton.parentNode.removeChild(p.destroyButton);else p.menuButton.style.visibility="visible"},0)}else{var s;e.childNodes.length>0&&!this._checkForTrailingSeparator(e,g)&&(s=this.generateSeparatorImage(e));q._render(n,e,j,k,g,f,h);e.childNodes.length>0&&e.childNodes[e.childNodes.length-1]!==s&&(s=this.generateSeparatorImage(e))}else r.title?(i=document.createElement("li"),e.appendChild(i),r=this._createDropdownMenu(i,r.title,!0),q._render(n,r.menu,
j,k,"menu",f,h),r.menu.childNodes.length===0&&e.removeChild(i)):(e.childNodes.length>0&&this._generateMenuSeparator(e),q._render(n,e,j,k,g,f,h),this._generateMenuSeparator(e))}else{i=(n=this._commandList[l[d].id])?!0:!1;var D=null,D=null;if(n){m=new a(this,k,j,f,n);m.domParent=e;r=i&&(n.visibleWhen?n.visibleWhen(j):!0);if(this._activeBindings[n.id]&&this._activeBindings[n.id].keyBinding)D=this._activeBindings[n.id],D.invocation=r?m:null,D.bindingOnly&&(i=!1);if(this._urlBindings[n.id]&&this._urlBindings[n.id].urlBinding)D=
this._urlBindings[n.id],D.invocation=r?m:null,D.bindingOnly&&(i=!1);i=i&&r}if(i)if(n.choiceCallback){g==="tool"||g==="button"?(i=e,r=!1,e.nodeName.toLowerCase()==="ul"&&(i=document.createElement("li"),e.appendChild(i))):(i=e,r=!0);var Q=this;this._createDropdownMenu(i,n.name,r,function(a){this.populateChoicesMenu(a,j,k,f,Q)}.bind(n))}else g==="tool"?(i="tool"+n.id+d,n._addTool(e,i,m,h)):g==="button"?(i="button"+n.id+d,n._addButton(e,i,m,h)):g==="menu"&&n._addMenuItem(e,m,h)}}},_createDropdownMenu:function(a,
c,b,e){var a=d.node(a),j,k=document.createElement("span");k.classList.add("dropdownTrigger");b?(k.classList.add("dropdownMenuItem"),j="dropdownSubMenu",b="dropdownArrowRight",k.tabIndex=0,k.role="menuitem"):(k.classList.add("commandButton"),b="dropdownArrowDown",k.tabIndex=0,k.role="button");c=document.createTextNode(c);k.appendChild(c);c=document.createElement("span");c.classList.add(b);k.appendChild(c);b=a;a.nodeName.toLowerCase()==="ul"?(b=document.createElement("li"),a.appendChild(b),a=b):(k.classList.add("commandMargins"),
a=k);b.appendChild(k);j&&b.classList.add(j);j=document.createElement("ul");b.appendChild(j);j.classList.add("dropdownMenu");k.dropdown=new g.Dropdown({dropdown:j,populate:e});j.dropdown=k.dropdown;return{menuButton:k,menu:j,dropdown:k.dropdown,destroyButton:a}},_generateCheckedMenuItem:function(a,c,b,d){var e=document.createElement("li");a.appendChild(e);a=document.createElement("label");a.classList.add("dropdownMenuItem");var j=document.createElement("input");j.type="checkbox";j.role="menuitem";
j.checked=b;j.classList.add("checkedMenuItem");a.appendChild(j);c=document.createTextNode(c);a.appendChild(c);e.appendChild(a);j.addEventListener("change",d,!1)},_generateMenuSeparator:function(a){if(!this._checkForTrailingSeparator(a,"menu")){var c=document.createElement("li");c.classList.add("dropdownSeparator");var b=document.createElement("span");b.classList.add("dropdownSeparator");c.appendChild(b);a.appendChild(c)}},generateSeparatorImage:function(a){var c;c=a.nodeName.toLowerCase()==="ul"?
document.createElement("li"):document.createElement("span");a.appendChild(c);c.classList.add("core-sprite-sep");c.classList.add("imageSprite");c.classList.add("commandSeparator");return c}};j.prototype.constructor=j;n.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||i.toUrl("images/none.png");this.imageClass=a.imageClass;this.spriteClass=a.spriteClass||
"commandSprite";this.visibleWhen=a.visibleWhen;this.parameters=a.parameters},_addTool:function(a,d,e,j){e.handler=e.handler||this;var g;if(this.hrefCallback){if(g=this._makeLink(a,e,"commandLink"),!g)return}else g=document.createElement("span"),g.tabIndex=j?-1:0,g.role="button",this.hasImage()?(k(this,g,d),this.name&&g.setAttribute("aria-label",this.name)):(d=window.document.createTextNode(this.name),g.appendChild(d),g.classList.add("commandMissingImageButton"),g.classList.add("commandButton")),this._hookCallback(g,
e);e.domNode=g;e.domParent=a;if(this.tooltip)g.commandTooltip=new b.Tooltip({node:g,text:this.tooltip,position:["above","below","right","left"]});a.nodeName.toLowerCase()==="ul"?(d=document.createElement("li"),a.appendChild(d),a=d):g.classList.add("commandMargins");a.appendChild(g);c.generateNavGrid(j,e.domNode)},_addButton:function(a,d,e,j){e.handler=e.handler||this;var g;if(this.hrefCallback)g=this._makeLink(a,e,"commandLink");else if(!this.name&&this.hasImage()){if(g=document.createElement("span"),
g.tabIndex=0,g.role="button",k(this,g,d),this.tooltip&&g.setAttribute("aria-label",this.tooltip),this._hookCallback(g,e),this.tooltip)g.commandTooltip=new b.Tooltip({node:g,text:this.tooltip,position:["above","below","right","left"]})}else g=this._makeButton(a,e,"commandButton"),this._hookCallback(g,e);e.domParent=a;a.nodeName.toLowerCase()==="ul"?(d=document.createElement("li"),a.appendChild(d),a=d):g.classList.add("commandMargins");a.appendChild(g);c.generateNavGrid(j,e.domNode)},_addMenuItem:function(a,
b,d){b.domParent=a;var e,j=a.dropdown;this.hrefCallback?e=this._makeLink(a,b,"dropdownMenuItem",["right","left","above","below"]):(e=this._makeButton(a,b,"dropdownMenuItem",["right","left","above","below"]),this.callback&&this._hookCallback(e,b,function(){j.close(!0)}));e.role="menuitem";c.generateNavGrid(d,b.domNode);a.nodeName.toLowerCase()==="ul"?(b=document.createElement("li"),a.appendChild(b),a=b):e.classList.add("commandMargins");a.appendChild(e)},_makeButton:function(a,c,d,e){a=document.createElement("span");
a.role="button";a.tabIndex=0;a.id=this.name;var j=document.createTextNode(this.name);a.appendChild(j);d&&a.classList.add(d);if(this.tooltip)a.commandTooltip=new b.Tooltip({node:a,text:this.tooltip,position:e||["above","below","right","left"]});return c.domNode=a},_makeLink:function(a,c,d,e){var j=document.createElement("a");j.id=this.name;d&&j.classList.add(d);j.appendChild(document.createTextNode(this.name));if(this.hrefCallback)a=this.hrefCallback.call(c.handler,c),a.then?a.then(function(a){j.href=
a}):j.href=a?a:"#";if(this.tooltip)j.commandTooltip=new b.Tooltip({node:j,text:this.tooltip,position:e||["above","below","right","left"]});return c.domNode=j},_hookCallback:function(a,c,b,e){a.addEventListener("click",function(a){b&&b();c.commandService._invoke(c);e&&e();d.stop(a)},!1);a.addEventListener("keydown",function(a){if(a.keyCode===d.KEY.ENTER||a.keyCode===d.KEY.SPACE)b&&b(),c.commandService._invoke(c),e&&e(),d.stop(a)},!1)},populateChoicesMenu:function(a,c,b,e,j){b=this.getChoices(c,b,e);
for(e=0;e<b.length;e++){var k=b[e];if(k.name){var g=document.createElement("li");a.appendChild(g);var f=document.createElement("span");f.tabIndex=0;f.role="menuitem";f.classList.add("dropdownMenuItem");var h=document.createTextNode(k.name);f.appendChild(h);g.appendChild(f);f.choice=k;f.addEventListener("click",function(a){a.target.choice&&a.target.choice.callback.call(a.target.choice,c)},!1);f.addEventListener("keydown",function(a){(a.keyCode===d.KEY.ENTER||a.keyCode===d.KEY.SPACE)&&a.target.choice&&
a.target.choice.callback.call(a.target.choice,c)},!1)}else j._generateMenuSeparator(a)}},getChoices:function(a,c,b){return this.choiceCallback?this.choiceCallback.call(c,a,b):null},makeChoiceCallback:function(a,c){return function(b){a.callback&&a.callback.call(a,c,b)}},hasImage:function(){return this.imageClass||this.image!==i.toUrl("images/none.png")}};n.prototype.constructor=n;l.prototype={match:function(a){if(this.keyCode===a.keyCode){if(this.mod1!==(p?a.metaKey:a.ctrlKey))return!1;if(this.mod2!==
a.shiftKey)return!1;if(this.mod3!==a.altKey)return!1;if(p&&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}};l.prototype.constructor=l;r.prototype={match:function(a){a=e.matchResourceParameters(a);return typeof a[this.token]!==
"undefined"?(this.parameterValue=a[this.token],this):null}};r.prototype.constructor=r;q.prototype={optionsRequested:function(){return this.optionsRequested}};q.prototype.constructor=q;m.prototype={_storeParameters:function(a){this.parameterTable=null;if(a){this.parameterTable={};for(var c=0;c<a.length;c++)this.parameterTable[a[c].name]=a[c]}},updateParameters:function(a){typeof this.getParameters==="function"&&this._storeParameters(this.getParameters(a))},hasParameters:function(){return this.parameterTable!==
null},shouldCollectParameters:function(){return!this.clientCollect&&this.hasParameters()},parameterNamed:function(a){return this.parameterTable[a]},valueFor:function(a){return(a=this.parameterTable[a])?a.value:null},setValue:function(a,c){var b=this.parameterTable[a];if(b)b.value=c},forEach:function(a){for(var c in this.parameterTable)this.parameterTable[c].type&&this.parameterTable[c].name&&a(this.parameterTable[c])},makeCopy:function(){var a=[];this.forEach(function(c){c=new q(c.name,c.type,c.label,
c.value,c.lines);a.push(c)});var c=new m(a,this._options,this.getParameters);c.clientCollect=this.clientCollect;return c},hasOptionalParameters:function(){return this._hasOptionalParameters}};m.prototype.constructor=m;return{CommandService:j,CommandKeyBinding:l,Command:n,CommandInvocation:a,URLBinding:r,ParametersDescription:m,CommandParameter:q}});
define("orion/operationsCommands",["i18n!orion/operations/nls/messages","require","orion/webui/littlelib","orion/commands"],function(h,i,f,e){var d={};(function(){var g=!1;d.updateNavTools=function(b,c,a,d,e){var n=b.getService("orion.page.command"),l=f.node(a);if(l)n.destroy(l);else throw h["could not find toolbar "]+a;n.renderCommands(a,l,e,c,"button");if(d&&(a=f.node(d)))n.destroy(a),n.renderCommands(d,a,null,c,"button");g||(g=!0,b.getService("orion.page.selection").addEventListener("selectionChanged",
function(a){var e=f.node(d);if(e){var k=b.getService("orion.page.command");k.destroy(e);k.renderCommands(d,e,a.selections,c,"button")}}))};d.createOperationsCommands=function(b,c,a){function d(a){return!a.operation||!a.operation.type?!1:a.operation.type==="loadstart"||a.operation.type==="progress"}var k=new e.Command({name:h["Remove Completed"],tooltip:h["Remove all completed operations"],id:"eclipse.removeCompletedOperations",callback:function(){a.removeCompletedOperations().then(function(){c.loadOperations.bind(c)()})},
visibleWhen:function(){return!0}});b.addCommand(k);k=new e.Command({name:h.Remove,tooltip:h["Remove operations from the operations list."],imageClass:"core-sprite-delete",id:"eclipse.removeOperation",callback:function(b){for(var b=Array.isArray(b.items)?b.items:[b.items],d=0;d<b.length;d++){var e=b[d];a.removeOperation.bind(a)(e.Location).then(function(){c.loadOperations.bind(c)()},function(){c.loadOperations.bind(c)()})}},visibleWhen:function(a){if(!Array.isArray(a)||a.length===0)return!d(a);for(var c in a)if(d(a[c]))return!1;
return!0}});b.addCommand(k);k=new e.Command({name:h.Cancel,tooltip:h["Cancel operations from the operations list."],imageClass:"core-sprite-stop",id:"eclipse.cancelOperation",callback:function(a){for(var a=Array.isArray(a.items)?a.items:[a.items],c=0;c<a.length;c++){var b=a[c];b.deferred&&b.deferred.cancel()}},visibleWhen:function(a){if(!Array.isArray(a)||a.length===0)return d(a)&&(a.operation&&a.operation.cancelable?!0:!1);for(var c in a)if(!d(a[c])||!a[c].operation||!a[c].operation.cancelable)return!1;
return!0}});b.addCommand(k)}})();return d});
define("orion/webui/dialogs/OperationsDialog",["i18n!orion/operations/nls/messages","require","orion/webui/littlelib","orion/webui/popupdialog","orion/operationsCommands"],function(h,i,f,e,d){function g(b){this._options=b}g.prototype=new e.PopupDialog;g.prototype.TEMPLATE='<table style="width: 360px;"><tr><td><h2>Recent operations</h2></td><td style="text-align: right;"><a id="allOperationsLink">All Operations</a></td></tr></table><span id="operationsExist"><span class="secondaryColumn" id="myOperationsListEmpty">No operations running on this page.</span><table id="myOperationsList" style="display: none;"></table></span><span class="secondaryColumn" id="operationsDontExist">No operations running.</span>';g.prototype._init=
function(b){this._myOperations=[];this._operationsDeferreds=[];this._commandService=b.serviceRegistry.getService("orion.page.command");d.createOperationsCommands(this._commandService);this._commandService.registerCommandContribution("operationsDialogItems","eclipse.cancelOperation",1);this._initialize(b.triggerNode)};g.prototype._bindToDom=function(){this.$allOperationsLink.href=i.toUrl("operations/list.html");this._setOperationsVisibility()};g.prototype.setOperations=function(b,c){this._myOperations||
this._init(this._options);this._myOperations=[];this._operationsDeferreds=[];if(b)for(var a in b)this._myOperations.push(b[a]),this._operationsDeferreds.push(c[a]);this._renderOperations()};g.prototype.parseProgressResult=function(b){if(!b)return{};b=b.responseText||b;try{b=JSON.parse(b)}catch(c){}var a={Message:b.Message||b,Severity:b.Severity};if(b.DetailedMessage&&b.DetailedMessage!==a.Message)a.DetailedMessage=b.DetailedMessage;return a};g.prototype._renderOperations=function(){this._renderOperationsTable(this.$myOperationsList,
this._myOperations,this._operationsDeferreds)};g.prototype._renderOperationsTable=function(b,c,a){f.empty(b);for(var d=0;d<c.length;d++){var e=c[d],g=document.createElement("tr"),l=document.createElement("td");l.style.paddingLeft="5px;";l.style.paddingRight="5px;";l.textContent=e.Name;g.appendChild(l);var i=document.createElement("div");l.appendChild(i);l=document.createElement("span");i.appendChild(l);l.classList.add("imageSprite");var q=document.createElement("span");q.classList.add("primaryColumn");
i.appendChild(q);q.appendChild(document.createTextNode(e.Name));switch(e.type){case "Warning":l.classList.add("core-sprite-warning");l.setAttribute("aria-label",h["Operation resulted in a warning."]);break;case "error":l.classList.add("core-sprite-error");l.setAttribute("aria-label",h["Operation resulted in an error."]);break;case "loadstart":case "progress":l.classList.add("core-sprite-start");l.setAttribute("aria-label",h["Operation is running."]);break;case "abort":l.classList.add("core-sprite-stop");
l.setAttribute("aria-label",h["Operation is canceled."]);break;case "load":case "loadend":l.classList.add("core-sprite-ok"),l.setAttribute("aria-label","Operation ok.")}if(e.error)l=e.error.Message||e.error,e.error.DetailedMessage&&e.error.DetailedMessage!==""&&(l+=": "+e.error.DetailedMessage),i.appendChild(document.createElement("br")),q=document.createElement("span"),q.classList.add("secondaryColumn"),q.style.marginLeft="18px;",i.appendChild(q),q.textContent=l;l=document.createElement("span");
i.appendChild(l);this._commandService.renderCommands("operationsDialogItems",i,{operation:e,deferred:a[d]},this,"tool");b.appendChild(g)}this._setOperationsVisibility()};g.prototype._setOperationsVisibility=function(){this.$myOperationsList.style.display=this._myOperations.length>0?"":"none";this.$myOperationsListEmpty.style.display=this._myOperations.length>0?"none":"";this.$operationsDontExist.style.display=this._myOperations.length>0?"none":"";this.$operationsExist.style.display=this._myOperations.length>
0?"":"none"};g.prototype.constructor=g;return{OperationsDialog:g}});
define("orion/progress",["i18n!orion/nls/messages","require","orion/Deferred","orion/webui/littlelib","orion/webui/dialogs/OperationsDialog"],function(h,i,f,e,d){function g(c,a){if(!this._progressPane){this._progressPane=e.node(c);this._operationsDialog=new d.OperationsDialog({triggerNode:this._progressPane,serviceRegistry:a});var b=this;this._progressPane.addEventListener("keydown",function(a){(a.charOrCode===" "||a.keyCode===e.KEY.ENTER)&&b._operationsDialog.show()})}}function b(c,a,b){this._serviceRegistry=
c;this._serviceRegistration=c.registerService("orion.page.progress",this);this._operationsClient=a;this._operations={};this._operationDeferrds={};this._operationsIndex=0;this._lastIconClass=this._lastOperation=null;this._progressMonitorClass=b}g.prototype={_switchIconTo:function(c){this._lastIconClass&&this._progressPane.classList.remove(this._lastIconClass);this._lastIconClass=c;this._progressPane.classList.add(this._lastIconClass)},generateOperationsInfo:function(c,a){var b={},d;for(d in c)c[d].progressMonitor||
(b[d]=c[d]);if(this._isEmpty(b))this._switchIconTo("progressPane_empty"),this._progressPane.title=h.Operations,this._progressPane.alt=h.Operations,this._progressPane.hasAttribute("aria-valuetext")&&this._progressPane.removeAttribute("aria-valuetext");else{var e="";for(d in b){var g=b[d];if(g.type&&(g.type==="loadstart"||g.type==="progress")){e="running";break}}switch(e){case "running":this._progressPane.title=h["Operations running"];this._progressPane.alt=h["Operations running"];this._progressPane.setAttribute("aria-valuetext",
h["Operations running"]);this._switchIconTo("progressPane_running");break;case "warning":this._progressPane.title=h["Some operations finished with warning"];this._progressPane.alt=h["Some operations finished with warning"];this._progressPane.setAttribute("aria-valuetext",h["Some operations finished with warning"]);this._switchIconTo("progressPane_warning");break;case "error":this._progressPane.title=h["Some operations finished with error"];this._progressPane.alt=h["Some operations finished with error"];
this._progressPane.setAttribute("aria-valuetext",h["Some operations finished with error"]);this._switchIconTo("progressPane_error");break;default:this._progressPane.title=h.Operations,this._progressPane.alt=h.Operations,this._progressPane.hasAttribute("aria-valuetext")&&this._progressPane.removeAttribute("aria-valuetext"),this._switchIconTo("progressPane_operations")}}this._operationsDialog.setOperations(b,a)},_isEmpty:function(c){for(var a in c)return!1;return!0}};g.prototype.constructon=g;b.prototype=
{init:function(c){if(!this._progressMonitorClass)this._progressMonitorTool=new g(c,this._serviceRegistry)},progress:function(c,a,b){var d=this,e=this._operationsIndex++;!b&&this._progressMonitorClass&&(b=new this._progressMonitorClass,b.begin(a));c.then(function(){if(d._operations[e]){var g=d._operations[e];if(a)g.Name=a;d._lastOperation=g;g.type="loadend";if(b)g.progressMonitor=b;d.writeOperation.bind(d)(e,g,c);g.Location||d._removeOperationFromTheList.bind(d)(e)}},function(g){if(d._operations[e]){var f=
d._operations[e];if(a)f.Name=a;if(b)f.progressMonitor=b;d._lastOperation=f;f.type=g.canceled?"abort":"error";f.error=g;d.writeOperation.bind(d)(e,f,c);f.Location||d._removeOperationFromTheList.bind(d)(e)}},function(g){if(a)g.Name=a;if(b)g.progressMonitor=b;d.writeOperation.bind(d)(e,g,c)});return c},removeOperation:function(c){for(var a in this._operations)if(this._operations[a].Location&&this._operations[a].Location===c){this._removeOperationFromTheList(a);break}this._operationsClient.removeOperation.bind(this._operationsClient)(c)},
_removeOperationFromTheList:function(c){var a=this._operations[c].progressMonitor;delete this._operations[c];delete this._operationDeferrds[c];a?a.done():this._progressMonitorTool.generateOperationsInfo(this._operations,this._operationDeferrds)},removeCompletedOperations:function(){for(var c in this._operations){var a=this._operations[c];if(a.type&&a.type!=="loadstart"&&a.type!=="progress")(a=this._operations[c].progressMonitor)&&a.done(),delete this._operations[c],delete this._operationDeferrds[c]}this._progressMonitorTool.generateOperationsInfo(operations,
this._operationDeferrds)},setProgressResult:function(c){this._serviceRegistry.getService("orion.page.message").setProgressResult(c)},showWhile:function(c,a){a&&this._serviceRegistry.getService("orion.page.message").setProgressMessage(a);var b=this;c.then(function(){b._serviceRegistry.getService("orion.page.message").setProgressMessage("")},function(a){b.setProgressResult.bind(b)(a);return a});return this.progress(c,a)},writeOperation:function(c,a,b){this._operations[c]=a;this._operationDeferrds[c]=
b;a.Location&&serviceRegistry.getService("orion.core.preference").getPreferences("/operations").then(function(c){c.put(a.Location,{Name:a.Name,expires:a.expires})});a.progressMonitor?a.progressMonitor.progress(a.Name):this._progressMonitorTool.generateOperationsInfo(this._operations,this._operationDeferrds)}};b.prototype.constructor=b;return{ProgressService:b}});
define("orion/section",["orion/webui/littlelib","orion/selection","orion/commands","orion/commonHTMLFragments"],function(h,i,f,e){function d(b,c){var a=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");var d=c.useAuxStyle?["sectionWrapper","sectionWrapperAux","toolComposite"]:
["sectionWrapper","toolComposite"];this.domNode=document.createElement("div");b.appendChild(this.domNode);for(var k=0;k<d.length;k++)this.domNode.classList.add(d[k]);this.domNode.id=c.id;if(c.canHide)this.twistie=document.createElement("span"),this.twistie.classList.add("modelDecorationSprite"),this.twistie.classList.add("layoutLeft"),this.twistie.classList.add("sectionTitle"),this.domNode.style.cursor="pointer",this.domNode.appendChild(this.twistie),this.domNode.tabIndex=0,this.domNode.addEventListener("click",
function(c){(c.target===a.titleNode||c.target===a.twistie)&&a._changeExpandedState()},!1),this.domNode.addEventListener("keydown",function(c){c.keyCode===h.KEY.ENTER&&(c.target===a.domNode||c.target===a.titleNode||c.target===a.twistie)&&a._changeExpandedState()},!1);if(c.iconClass){var g=document.createElement("span");g.classList.add("sectionIcon");this.domNode.appendChild(g);(Array.isArray(c.iconClass)?c.iconClass:[c.iconClass]).forEach(function(a){g.classList.add(a)})}this.titleNode=document.createElement("div");
this.titleNode.id=c.id+"Title";this.titleNode.classList.add("sectionAnchor");this.titleNode.classList.add("sectionTitle");this.titleNode.classList.add("layoutLeft");this.domNode.appendChild(this.titleNode);this.titleNode.textContent=c.title;if(typeof c.getItemCount==="function")d=document.createElement("div"),d.classList.add("layoutLeft"),d.classList.add("sectionItemCount"),this.domNode.appendChild(d),d.textContent=c.getItemCount(this);this._progressNode=document.createElement("div");this._progressNode.id=
c.id+"Progress";this._progressNode.classList.add("sectionProgress");this._progressNode.classList.add("sectionTitle");this._progressNode.classList.add("layoutLeft");this._progressNode.style.visibility="hidden";this._progressNode.textContent="...";this.domNode.appendChild(this._progressNode);d=document.createElement("div");d.id=c.id+"FilterSearchBox";this.domNode.appendChild(d);this._toolActionsNode=document.createElement("div");this._toolActionsNode.id=c.id+"ToolActionsArea";this._toolActionsNode.classList.add("layoutRight");
this._toolActionsNode.classList.add("sectionActions");this.domNode.appendChild(this._toolActionsNode);this.actionsNode=document.createElement("div");this.actionsNode.id=c.id+"ActionArea";this.actionsNode.classList.add("layoutRight");this.actionsNode.classList.add("sectionActions");this.domNode.appendChild(this.actionsNode);this.selectionNode=document.createElement("div");this.selectionNode.id=c.id+"SelectionArea";this.selectionNode.classList.add("layoutRight");this.selectionNode.classList.add("sectionActions");
this.domNode.appendChild(this.selectionNode);c.slideout&&(d=e.slideoutHTMLFragment(c.id),k=document.createRange(),k.selectNode(this.domNode),d=k.createContextualFragment(d),this.domNode.appendChild(d));this._contentParent=document.createElement("div");this._contentParent.id=this.id+"Content";this._contentParent.role="region";this._contentParent.classList.add("sectionTable");this._contentParent.setAttribute("aria-labelledby",this.titleNode.id);b.appendChild(this._contentParent);c.content&&this.setContent(c.content);
this.hidden=c.hidden;if(typeof c.onExpandCollapse==="function")this._onExpandCollapse=c.onExpandCollapse;this._preferenceService=c.preferenceService;this._contentParent.style.display="none";if(this._preferenceService){var f=this;this._preferenceService.getPreferences("/window/views").then(function(a){a=a.get(f.id);if(a!==void 0)f.hidden=!a;if(!f.hidden)f._contentParent.style.display="block";f._updateExpandedState(!f.hidden,!1)})}else{if(!this.hidden)this._contentParent.style.display="block";this._updateExpandedState(!this.hidden,
!1)}this._commandService=c.commandService;this._lastMonitor=0;this._loading={}}function g(b){this._section=b;this._id=++b._lastMonitor}d.prototype={setTitle:function(b){this.titleNode.textContent=b},setContent:function(b){typeof b==="string"?this._contentParent.innerHTML=b:(this._contentParent.innerHTML="",this._contentParent.appendChild(b))},getContentElement:function(){return this._contentParent},createProgressMonitor:function(){return new g(this)},_setMonitorMessage:function(b,c){this._progressNode.style.visibility=
"visible";this._loading[b]=c;var a="",d;for(d in this._loading)a!==""&&(a+="\n"),a+=this._loading[d];this._progressNode.title=a},_monitorDone:function(b){delete this._loading[b];var b="",c;for(c in this._loading)b!==""&&(b+="\n"),b+=this._loading[c];this._progressNode.title=b;if(b==="")this._progressNode.style.visibility="hidden"},_changeExpandedState:function(){this.hidden?(this._contentParent.style.display="block",this.hidden=!1):(this._contentParent.style.display="none",this.hidden=!0);this._updateExpandedState(!this.hidden,
!0)},_updateExpandedState:function(b,c){var a=this.twistie,d=this.id;a&&(a.classList.add(b?this._expandImageClass:this._collapseImageClass),a.classList.remove(b?this._collapseImageClass:this._expandImageClass));this._preferenceService&&c&&this._preferenceService.getPreferences("/window/views").then(function(a){a.put(d,b)});this._onExpandCollapse&&this._onExpandCollapse(b,this)}};d.prototype.constructor=d;g.prototype={begin:function(b){this.status=b;this._section._setMonitorMessage(this.id,b)},worked:function(b){this.status=
b;this._section._setMonitorMessage(this.id,b)},done:function(b){this.status=b;this._section._monitorDone(this.id)}};g.prototype.constructor=g;return{Section:d}});
define("orion/tasks",["i18n!orion/nls/messages","require","orion/webui/littlelib","orion/section","orion/commands"],function(h,i,f,e){function d(d){var b=f.node(d.parent);if(!b)throw h["no parent"];if(!d.serviceRegistry)throw h["no service registry"];this._parent=b;this._registry=d.serviceRegistry;this._description=d.description;this._tasks=d.tasks;this._title=d.title||h.Tasks;this._collapsed=d.collapsed;this._id=d.id||this._parent.id+"taskList";this._contentId=this._parent.id+"taskContent";this._item=
d.item;this._handler=d.handler;this._commandService=d.commandService;this._descriptionProperty=d.descriptionProperty;this.renderTasks()}d.prototype={renderTasks:function(){if(!this._taskSection){var d="taskListContent"+this._title,b=document.createElement("div");b.id=d;this._taskSection=new e.Section(this._parent,{id:this._id,title:this._title,content:b,preferenceService:this._registry.getService("orion.core.preference"),canHide:!0,hidden:this._collapsed,useAuxStyle:!0});this._description&&(d=document.createElement("p"),
d.appendChild(document.createTextNode(this._description)),b.appendChild(d));d=document.createElement("table");d.role="presentation";b.appendChild(d);for(b=0;b<this._tasks.length;b++){var c=document.createElement("tr");d.appendChild(c);var a=document.createElement("td");c.appendChild(a);this._commandService.registerCommandContribution("task"+b,this._tasks[b].commandId,1);this._commandService.renderCommands("task"+b,a,this._item,this._handler,"button");a.childNodes.length>0&&a.childNodes[0].classList.add("taskTitle");
a=document.createElement("td");c.appendChild(a);a.classList.add("taskDescription");(c=this._commandService.findCommand(this._tasks[b].commandId))&&a.appendChild(document.createTextNode(this._descriptionProperty?c[this._descriptionProperty]:c.tooltip))}}}};d.prototype.constructor=d;return{TaskList:d}});
define("orion/explorers/explorer","i18n!orion/nls/messages,require,orion/webui/littlelib,orion/webui/treetable,orion/explorers/explorerNavHandler,orion/commands".split(","),function(h,i,f,e,d,g){var b={};b.Explorer=function(){function c(a,c,b){this.registry=a;this.renderer=b;this.selection=c;this.myTree=null}c.prototype={changedItem:function(a,c){this.myTree&&this.myTree.refresh.bind(this.myTree)(a,c,!0)},updateCommands:function(a){this.myTree&&this.myTree._renderer.updateCommands.bind(this.myTree._renderer)(a)},
makeNewItemPlaceHolder:function(a,c,b){a=this.getRow(a);if(b)return a=a.childNodes[b],a.appendChild(document.createElement("br")),b=document.createElement("span"),b.id=c+"placeHolderRow",a.appendChild(b),{tempNode:b,refNode:b};if(a){b=document.createElement("tr");b.id=c+"placeHolderRow";var d=document.createElement("td");d.id=c+"placeHolderCol";b.appendChild(d);a.appendChild(b);b=f.node(c+"placeHolderRow");a=f.node(c+"placeHolderCol");if(b&&a)return{tempNode:b,refNode:a}}return null},getRow:function(a){if(a=
this.model.getId(a))return f.node(a)},collapseAll:function(){for(var a=this._navHandler.getTopLevelNodes(),c=0;c<a.length;c++)this.myTree.collapse(a[c])},expandAll:function(a){if(a)this._expandRecursively(a);else if(this._navHandler)for(var a=this._navHandler.getTopLevelNodes(),c=0;c<a.length;c++)this._expandRecursively(a[c])},_expandRecursively:function(a){if(this._navHandler&&this._navHandler.isExpandable(a)){var c=this;this.myTree.expand(a,function(){c.model.getChildren(a,function(a){if(!(a===
void 0||a===null))for(var b=a.length,d=0;d<b;d++)c._expandRecursively(a[d])})})}},createTree:function(a,c,b){this.selection&&this.selection.setSelections([]);this.getNavHandler()&&this.getNavHandler()._clearSelection();var g=a+"innerTree",h=f.node(g);h&&f.empty(h);if(c)c.rootId=g;this.model=c;this._parentId=a;this._treeOptions=b;if(!b||b&&!b.noSelection)this.selectionPolicy=b?b.selectionPolicy:"",this._navDict=new d.ExplorerNavDict(this.model);this.myTree=new e.TableTree({id:g,model:c,parent:a,labelColumnIndex:this.renderer.getLabelColumnIndex(),
renderer:this.renderer,showRoot:b?!!b.showRoot:!1,indent:b?b.indent:void 0,onCollapse:b?b.onCollapse:void 0,tableElement:b?b.tableElement:void 0,tableBodyElement:b?b.tableBodyElement:void 0,tableRowElement:b?b.tableRowElement:void 0});this.renderer._initializeUIState();this.selectionPolicy==="cursorOnly"&&this.initNavHandler()},getNavHandler:function(){return this._navHandler},getNavDict:function(){return this._navDict},refreshSelection:function(){if(this.selection){var a=this.getNavHandler(),c=[];
if(a&&this.getNavDict())for(var b=a.getSelection(),d=0;d<b.length;d++){var e=a.getRowDiv(b[d]);e&&e.parentNode&&(e=this.getNavDict().getValue(this.model.getId(b[d])),e.model&&c.push(e.model))}this.selection.setSelections(c)}},getRootPath:function(){return this.model&&this.model.root?this.model.root.Location:null},initNavHandler:function(){var a=this._treeOptions;if(!a||a&&!a.noSelection){if(!this.getNavHandler())this._navHandler=new d.ExplorerNavHandler(this,this._navDict,{setFocus:a&&a.setFocus,
selectionPolicy:a?a.selectionPolicy:null});var c=this;this.model.getRoot(function(b){b instanceof Array?c.getNavHandler().refreshModel(c.getNavDict(),c.model,b):b.children&&b.children instanceof Array&&c.getNavHandler().refreshModel(c.getNavDict(),c.model,b.children);a&&a.setFocus&&c.getNavHandler().cursorOn(null,!1,!1,!0)})}},_lastHash:null,checkbox:!1};return c}();b.createExplorerCommands=function(c,a){function b(c){return typeof c.getItemCount==="function"?c.getItemCount()>0?a?a(c):!0:!1:!1}var d=
new g.Command({tooltip:h["Expand all"],imageClass:"core-sprite-expandAll",id:"orion.explorer.expandAll",groupId:"orion.explorerGroup",visibleWhen:function(a){return b(a)},callback:function(a){a.items.expandAll()}}),e=new g.Command({tooltip:h["Collapse all"],imageClass:"core-sprite-collapseAll",id:"orion.explorer.collapseAll",groupId:"orion.explorerGroup",visibleWhen:function(a){return b(a)},callback:function(a){a.items.collapseAll()}});c.addCommand(d);c.addCommand(e)};b.ExplorerModel=function(){function c(a,
c,b){this.rootPath=a;this.fetchItems=c;this.idPrefix=b||""}c.prototype={destroy:function(){},getRoot:function(a){var c=this;this.fetchItems(this.rootPath).then(function(b){c.root=b;a(b)})},getChildren:function(a,c){a.Children?c(a.Children):a.ChildrenLocation?this.fetchItems(a.ChildrenLocation).then(function(b){a.Children=b;c(b)}):c([])},getId:function(a){if(a.Location===this.root.Location)return this.rootId;for(var a=a.Location.replace(/[\\\/]/g,""),c=this.idPrefix,b=0;b<a.length;b++)c+=a[b].match(/[^\.\:\-\_0-9A-Za-z]/g)?
a.charCodeAt(b):a[b];return c}};return c}();b.ExplorerFlatModel=function(){function c(a,c,b){this.rootPath=a;this.fetchItems=c;this.root=b}c.prototype=new b.ExplorerModel;c.prototype.getRoot=function(a){if(this.root)a(this.root);else{var c=this;this.fetchItems(this.rootPath).then(function(b){c.root=b;a(b)})}};c.prototype.getChildren=function(a,c){a===this.root?c(this.root):c([])};return c}();b.ExplorerRenderer=function(){function c(a,c){this.explorer=c;this._init(a);this._expandImageClass="core-sprite-openarrow";
this._collapseImageClass="core-sprite-closedarrow";this._twistieSpriteClass="modelDecorationSprite"}c.prototype={_init:function(a){if(a){this._useCheckboxSelection=a.checkbox===void 0?!1:a.checkbox;this.selectionPolicy=a.singleSelection?"singleSelection":"";this._cachePrefix=a.cachePrefix;this.getCheckedFunc=a.getCheckedFunc;this.onCheckedFunc=a.onCheckedFunc;this._highlightSelection=!0;this._treeTableClass=a.treeTableClass||"treetable";if(a.highlightSelection===!1)this._highlightSelection=!1;if(!this.actionScopeId)this.actionScopeId=
a.actionScopeId}},getLabelColumnIndex:function(){return this.explorer.checkbox?1:0},initTable:function(a,c){this.tableTree=c;f.empty(a);this._treeTableClass&&a.classList.add(this._treeTableClass);this.renderTableHeader(a)},getActionsColumn:function(a,c,b,d,e){var b=b||"tool",g=this.explorer.registry.getService("orion.page.command"),f=document.createElement("td");f.id=c.id+"actionswrapper";d&&f.classList.add(d);this.actionScopeId?g.renderCommands(this.actionScopeId,f,a,this.explorer,b,null,e&&this.explorer.getNavDict()?
this.explorer.getNavDict().getGridNavHolder(a,!0):null):window.console.log("Warning, no action scope was specified.  No commands rendered.");return f},initCheckboxColumn:function(){if(this._useCheckboxSelection)return document.createElement("th")},getCheckboxColumn:function(a,c){if(this._useCheckboxSelection){var b=document.createElement("td"),d=document.createElement("span");d.id=this.getCheckBoxId(c.id);d.classList.add("core-sprite-check");d.classList.add("selectionCheckmarkSprite");d.rowId=c.id;
if(this.getCheckedFunc)d.checked=this.getCheckedFunc(a),d.checked?(this._highlightSelection&&c.classList.add("checkedRow"),d.classList.add("core-sprite-check_on")):(this._highlightSelection&&c.classList.remove("checkedRow"),d.classList.remove("core-sprite-check_on"));b.appendChild(d);var e=this;d.addEventListener("click",function(a){e.onCheck(c,a.target,a.target.checked?!1:!0,!0)},!1);return b}},getCheckBoxId:function(a){return a+"selectedState"},onCheck:function(a,c,b,d,e){(c.checked=b)?c.classList.add("core-sprite-check_on"):
c.classList.remove("core-sprite-check_on");if(this.onCheckedFunc)this.onCheckedFunc(c.rowId,b,d);this.explorer.getNavHandler()&&e&&this.explorer.getNavHandler().setSelection(this.explorer.getNavDict().getValue(a.id).model,!0)},storeSelections:function(){if(this.explorer.getNavHandler()){var a=this.explorer.getNavHandler().getSelectionIds(),c=this._getUIStatePreferencePath();c&&window.sessionStorage&&(window.sessionStorage[c+"selection"]=JSON.stringify(a))}},_restoreSelections:function(a){a=window.sessionStorage[a+
"selection"];typeof a==="string"&&(a=a.length>0?JSON.parse(a):null);var c;if(a&&this.explorer.getNavDict()){var b=[];for(c=0;c<a.length;c++){var d=this.explorer.getNavDict().getValue(a[c]);if(d&&d.rowDomNode&&d.model&&(b.push(d.model),this._highlightSelection&&d.rowDomNode.classList.add("checkedRow"),d=f.node(this.getCheckBoxId(d.rowDomNode.id))))d.checked=!0,d.classList.add("core-sprite-check_on")}this.explorer.selection&&(this.explorer.selection.setSelections(b),this.explorer.getNavHandler()&&this.explorer.getNavHandler().refreshSelection())}},
_storeExpansions:function(a){window.sessionStorage[a+"expanded"]=JSON.stringify(this._expanded)},_restoreExpansions:function(a){var c=!1,b=window.sessionStorage[a+"expanded"];typeof b==="string"&&(b=b.length>0?JSON.parse(b):null);var d;if(b)for(d=0;d<b.length;d++)if(f.node(b[d])){this._expanded.push(b[d]);var e=this;this.tableTree.expand(b[d],function(){e._restoreSelections(a)});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(a,c){var b=f.node(this.expandCollapseImageId(a.id));b&&(b.classList.add(c?this._expandImageClass:this._collapseImageClass),b.classList.remove(c?this._collapseImageClass:this._expandImageClass))},getExpandImage:function(a,c,b,d){var e=document.createElement("span");e.id=this.expandCollapseImageId(a.id);c.appendChild(e);e.classList.add(this._twistieSpriteClass);
e.classList.add(this._collapseImageClass);if(b){var g=document.createElement("span");c.appendChild(g);g.classList.add(d||"imageSprite");g.classList.add(b)}var f=this;e.onclick=function(){f.tableTree.toggle(a.id);if(f.tableTree.isExpanded(a.id))f._expanded.push(a.id);else for(var c in f._expanded)if(f._expanded[c]===a.id){f._expanded.splice(c,1);break}(c=f._getUIStatePreferencePath())&&window.sessionStorage&&f._storeExpansions(c)};return e},render:function(a,c){c.classList.add("navRow");this.renderRow(a,
c)},rowsChanged:function(){this.explorer.selectionPolicy!=="cursorOnly"&&(this.explorer.refreshSelection(),this.explorer.initNavHandler())},updateCommands:function(){for(var a=this.explorer.registry,c=f.$$array(".treeTableRow"),b=0;b<c.length;b++){var d=c[b],e=f.node(d.id+"actionswrapper"),g=a.getService("orion.page.command");g.destroy(e);this.actionScopeId&&g.renderCommands(this.actionScopeId,e,d._item,this.explorer,"tool")}},_initializeUIState:function(){this._expanded=[];var a=this._getUIStatePreferencePath();
a&&window.sessionStorage&&this._restoreExpansions(a)&&this._restoreSelections(a)}};return c}();b.SelectionRenderer=function(){function c(a,c){this._init(a);this.explorer=c}c.prototype=new b.ExplorerRenderer;c.prototype.renderTableHeader=function(a){var c=document.createElement("thead"),b=document.createElement("tr");c.classList.add("navTableHeading");this._useCheckboxSelection&&b.appendChild(this.initCheckboxColumn(a));for(var d=0,e=this.getCellHeaderElement(d);e;)e.innerHTML.length>0&&e.classList.add("navColumn"),
b.appendChild(e),e=this.getCellHeaderElement(++d);c.appendChild(b);a.appendChild(c)};c.prototype.renderRow=function(a,c){c.verticalAlign="baseline";c.classList.add("treeTableRow");var b=this.explorer.getNavDict();if(b){b.addRow(a,c);var d=this;c.addEventListener("click",function(c){if(d.explorer.getNavHandler())d.explorer.getNavHandler().onClick(a,c)},!1)}if(b=this.getCheckboxColumn(a,c))b.classList.add("checkColumn"),c.appendChild(b);for(var b=0,e=this.getCellElement(b,a,c);e;)c.appendChild(e),b===
0?this.getPrimColumnStyle?e.classList.add(this.getPrimColumnStyle()):e.classList.add("navColumn"):this.getSecondaryColumnStyle?e.classList.add(this.getSecondaryColumnStyle()):e.classList.add("secondaryColumn"),e=this.getCellElement(++b,a,c)};c.prototype.getCellHeaderElement=function(){};c.prototype.getCellElement=function(){};return c}();b.SimpleFlatModel=function(){function c(a,c,b){this.items=a;this.getKey=b;this.idPrefix=c;this.root={children:a}}c.prototype=new b.ExplorerModel;c.prototype.getRoot=
function(a){a(this.root)};c.prototype.destroy=function(){};c.prototype.getId=function(a){for(var a=this.getKey(a).replace(/[\\\/]/g,""),c="",b=0;b<a.length;b++)c+=a[b].match(/[^\.\:\-\_0-9A-Za-z]/g)?a.charCodeAt(b):a[b];return this.idPrefix+c};c.prototype.getChildren=function(a,c){a===this.root?c(this.items):c([])};return c}();return b});
define("orion/explorers/explorer-table","i18n!orion/navigate/nls/messages,require,orion/Deferred,orion/webui/littlelib,orion/i18nUtil,orion/fileUtils,orion/explorers/explorer".split(","),function(h,i,f,e,d,g,b){function c(a,c,b,d,e,g){this.registry=a;this.root=c;this.fileClient=b;this.idPrefix=d||"";this.excludeFiles=!!e;this.excludeFolders=!!g}function a(a){this.registry=a.serviceRegistry;this.treeRoot=a.treeRoot;this.selection=a.selection;this.fileClient=a.fileClient;this.excludeFiles=a.excludeFiles;
this.excludeFolders=a.excludeFolders;this.parentId=a.parentId;this.renderer=a.rendererFactory(this);this.dragAndDrop=a.dragAndDrop;this.myTree=this.model=null;this._hookedDrag=this.checkbox=!1;var c=this.renderer;this.registry&&this.registry.registerService("orion.cm.managedservice",{updated:function(a){c.setTarget(a&&a["links.newtab"]!=="undefined"?a["links.newtab"]?"_blank":"_self":"_self")}},{pid:"nav.config"})}c.prototype=new b.ExplorerModel;c.prototype.getRoot=function(a){a(this.root)};c.prototype.processParent=
function(a,c){if(this.excludeFiles||this.excludeFolders){var b=[],d;for(d in c)if(!(c[d].Directory?this.excludeFolders:this.excludeFiles))b.push(c[d]),c[d].parent=a;c=b}else for(b in c)c[b].parent=a;a.children=c;a.children.sort(function(a,c){var b=a.Directory;if(b!==c.Directory)return b?-1:1;var b=a.Name&&a.Name.toLowerCase(),d=c.Name&&c.Name.toLowerCase();return b<d?-1:b>d?1:0});return c};c.prototype.getChildren=function(a,c){var b=this;a.children?c(a.children):a.Directory!==void 0&&a.Directory===
!1?c([]):a.Location?this.registry.getService("orion.page.progress").progress(this.fileClient.fetchChildren(a.ChildrenLocation),"Fetching children of "+a.Name).then(function(d){c(b.processParent(a,d))}):c([])};c.prototype.constructor=c;a.prototype=new b.Explorer;a.prototype._makeDropTarget=function(a,c,b){function g(a,c,b,e,j,f){c=c||"";if(a.isFile)b.Location.indexOf("/workspace")===0?e.registry.getService("orion.page.message").setProgressResult({Severity:"Error",Message:h["You cannot copy files directly into the workspace.  Create a folder first."]}):
a.file(function(a){j(b,a,e,a.name.indexOf(".zip")===a.name.length-4&&window.confirm(d.formatMessage(h["Unzip ${0}?"],a.name)))});else if(a.isDirectory){var k=a.createReader(),n=function(b){k.readEntries(function(d){for(var h=0;h<d.length;h++)g(d[h],c+a.name+"/",b,e,j,f)})},i=e.registry.getService("orion.page.progress");b.Location.indexOf("/workspace")===0?i.progress(f.createProject(b.ChildrenLocation,a.name),"Initializing project "+a.name).then(function(a){e.loadResourceList(e.treeRoot.Path,!0);i.progress(f.read(a.ContentLocation,
!0),"Loading project info "+a.name).then(function(a){n(a)})}):i.progress(f.createFolder(b.Location,a.name),"Creating folder "+a.name).then(function(a){e.changedItem(b,!0);n(a)})}}if(this.dragAndDrop){var f=this,i=this.dragAndDrop,m=function(a){c.classList.remove("dragOver");a.preventDefault();a.stopPropagation()};if(b)this._oldDragLeave&&c.removeEventListener("dragleave",this._oldDragLeave,!1),this._oldDragLeave=m;c.addEventListener("dragleave",m,!1);m=function(a){if(a.dataTransfer.effectAllowed===
"all"||a.dataTransfer.effectAllowed==="uninitialized"||a.dataTransfer.effectAllowed.indexOf("copy")>=0)a.dataTransfer.dropEffect="copy";c.classList.add("dragOver");e.stop(a)};if(b)this._oldDragEnter&&c.removeEventListener("dragenter",this._oldDragEnter,!1),this._oldDragEnter=m;c.addEventListener("dragenter",m,!1);m=function(a){if(a.dataTransfer.effectAllowed==="all"||a.dataTransfer.effectAllowed==="uninitialized"||a.dataTransfer.effectAllowed.indexOf("copy")>=0)a.dataTransfer.dropEffect="copy";e.stop(a)};
if(b&&!this._oldDragOver)c.addEventListener("dragover",m,!1),this._oldDragOver=m;m=function(b){c.classList.remove("dragOver");if(b.dataTransfer.items&&b.dataTransfer.items.length>0)for(var n=0;n<b.dataTransfer.items.length;n++){var m=null;typeof b.dataTransfer.items[n].getAsEntry==="function"?m=b.dataTransfer.items[n].getAsEntry():typeof b.dataTransfer.items[n].webkitGetAsEntry==="function"&&(m=b.dataTransfer.items[n].webkitGetAsEntry());m&&g(m,null,a,f,i,f.fileClient)}else if(b.dataTransfer.files&&
b.dataTransfer.files.length>0)for(n=0;n<b.dataTransfer.files.length;n++)m=b.dataTransfer.files[n],!m.length&&(!m.type||m.type==="")?f.registry.getService("orion.page.message").setProgressResult({Severity:"Error",Message:d.formatMessage(h["Did not drop ${0}.  Folder drop is not supported in this browser."],m.name)}):a.Location.indexOf("/workspace")===0?f.registry.getService("orion.page.message").setProgressResult({Severity:"Error",Message:h["You cannot copy files directly into the workspace.  Create a folder first."]}):
i(a,m,f,m.name.indexOf(".zip")===m.name.length-4&&window.confirm(d.formatMessage(h["Unzip ${0}?"],m.name)));e.stop(b)};if(b)this._oldDrop&&c.removeEventListener("drop",this._oldDrop,!1),this._oldDrop=m;c.addEventListener("drop",m,!1)}};a.prototype.changedItem=function(a,c){var b=this;this.registry.getService("orion.page.progress").progress(this.fileClient.fetchChildren(a.ChildrenLocation),"Fetching children of "+a.Name).then(function(d){d=b.model.processParent(a,d);b.getNavHandler();b.myTree.refresh.bind(b.myTree)(a,
d,c)})};a.prototype.isExpanded=function(a){return this.renderer.tableTree.isExpanded(this.model.getId(a))};a.prototype.getNameNode=function(a){if(a=this.model.getId(a))return e.node(a+"NameLink")};a.prototype.scopeUp=function(){if(this.treeRoot&&this.treeRoot.Parents)if(this.treeRoot.Parents.length===0)window.location.href="#";else if(this.treeRoot.Parents[0].ChildrenLocation)window.location.href="#"+this.treeRoot.Parents[0].ChildrenLocation};a.prototype.loadResourceList=function(a,c,b){a=g.makeRelative(a);
if(c||a!==this._lastPath){this._lastPath=a;var d=this;(c||a!==this.treeRoot.Path)&&this.load(this.fileClient.loadWorkspace(a),"Loading "+a,function(){d.treeRoot.Path=a;typeof b==="function"&&b()})}};a.prototype.load=function(a,b,d){var g=e.node(this.parentId),i=e.node("progress");if(!i)i=document.createElement("div"),i.id="progress",e.empty(g),g.appendChild(i);e.empty(i);var q=setTimeout(function(){e.empty(i);i.appendChild(document.createTextNode(b))},500),m=this;f.when(a,function(a){m.treeRoot={};
clearTimeout(q);for(var b in a)m.treeRoot[b]=a[b];m.model=new c(m.registry,m.treeRoot,m.fileClient,m.parentId,m.excludeFiles,m.excludeFolders);m.model.processParent(m.treeRoot,a.Children);if(m.dragAndDrop)m._hookedDrag?m._makeDropTarget(m.treeRoot,g,!0):(a=(a=g&&("draggable"in g||"ondragstart"in g&&"ondrop"in g))&&!(!window.File||!window.FileList||!window.FileReader),m._hookedDrag=!0,a?m._makeDropTarget(m.treeRoot,g,!0):(m.dragAndDrop=null,window.console.log("Local file drag and drop is not supported in this browser.")));
m.createTree(m.parentId,m.model,{setFocus:!0,selectionPolicy:m.renderer.selectionPolicy,onCollapse:function(a){if(m.getNavHandler())m.getNavHandler().onCollapse(a)}});if(typeof d==="function")try{d()}catch(e){m.registry&&m.registry.getService("orion.page.message").setErrorMessage(e)}if(typeof m.onchange==="function")m.onchange(m.treeRoot)},function(a){clearTimeout(q);if(a.status&&a.status!==401){try{a=JSON.parse(a.responseText)}catch(c){}e.empty(i);i.appendChild(document.createTextNode(h["Sorry, an error occurred: "]+
a.Message))}else m.registry.getService("orion.page.message").setProgressResult(a)})};a.prototype.onchange=function(){};a.prototype.constructor=a;return{FileExplorer:a,FileModel:c}});
define("orion/webui/dialogs/DirectoryPrompterDialog","i18n!orion/widgets/nls/messages,orion/webui/littlelib,orion/webui/dialog,orion/fileUtils,orion/selection,orion/explorers/navigationUtils,orion/explorers/explorer,orion/explorers/explorer-table".split(","),function(h,i,f,e,d,g,b,c){function a(a,c){this.explorer=c;this._init(a)}function j(a){this._init(a)}a.prototype=new b.SelectionRenderer;a.prototype.constructor=a;a.prototype.getLabelColumnIndex=function(){return 0};a.prototype.getCellElement=
function(a,c,b){a=document.createElement("td");b.appendChild(a);var d=document.createElement("span");d.id=b.id+"navSpan";a.appendChild(d);d.className="mainNavColumn singleNavColumn";this.getExpandImage(b,d);d.appendChild(document.createTextNode(c.Name))};j.prototype=new f.Dialog;j.prototype.TEMPLATE='<div id="message" style="width: 25em; padding-bottom: 5px;"></div><div id="directoryTree" class="explorerTreeClass" style="width:25em; min-height: 25em; max-height:30em; height: auto; overflow-y: auto;"></div>';
j.prototype._init=function(a){this.title=a.title||h["Choose a Folder"];this.modal=!0;this.buttons=[{text:h.OK,isDefault:!0,callback:this.done.bind(this)}];this.customFocus=!0;this._fileClient=a.fileClient;this._serviceRegistry=a.serviceRegistry;this._message=a.message||"";this._func=a.func;this._initialize()};j.prototype._bindToDom=function(){this.loadFolderList("/");this._message?this.$message.appendChild(document.createTextNode(this._message)):this.$message.style.display="none";this.$directoryTree.focus()};
j.prototype.loadFolderList=function(b){b=e.makeRelative(b);this.selection=new d.Selection(this._serviceRegistry,"orion.directoryPrompter.selection");this.explorer=new c.FileExplorer({treeRoot:{children:[]},selection:this.selection,serviceRegistry:this._serviceRegistry,fileClient:this._fileClient,parentId:"directoryTree",excludeFiles:!0,rendererFactory:function(c){return new a({checkbox:!1,singleSelection:!0,treeTableClass:"directoryPrompter"},c)}});this.explorer.loadResourceList(b,!0,null)};j.prototype.done=
function(){this.selection.getSelection(function(a){this.hide();this._func(a)}.bind(this))};j.prototype.constructor=j;return{DirectoryPrompterDialog:j}});
define("orion/URITemplate",[],function(){function h(a){this._text=a}function i(a,c){if(c==="U")return encodeURIComponent(a).replace(/[!'()*]/g,function(a){return"%"+a.charCodeAt(0).toString(16).toUpperCase()});if(c==="U+R")return encodeURI(a).replace(/%5B/g,"[").replace(/%5D/g,"]");if(c==="U+R-,")return encodeURI(a).replace(/%5B/g,"[").replace(/%5D/g,"]").replace(/,/g,"%2C");throw Error("Unknown allowed character set: "+c);}function f(a,c,b){for(var d=[],e=0;e<a.length;e++)typeof a[e]!=="undefined"&&
d.push(i(a[e],c));return d.join(b)}function e(a,c,b,d){for(var e=Object.keys(a),g=[],f=0;f<e.length;f++)typeof a[e[f]]!=="undefined"&&g.push(i(e[f],c)+b+i(a[e[f]],c));return g.join(d)}function d(a){if(a.length===0)throw Error("Invalid Expression: 0 length expression");(this._operator=b[a[0]])?a=a.substring(1):this._operator=b.NUL;for(var d=[],e=a.split(","),g=0;g<e.length;g++){var f=e[g].match(c);if(f===null)throw Error("Bad VarSpec: "+a);d.push({name:f[1],explode:!!f[2],prefix:f[3]?parseInt(f[3],
10):-1})}this._varSpecList=d}function g(a){for(var c=[],b=0,e=a.indexOf("{",b);e!==-1;){c.push(new h(a.substring(b,e)));b=a.indexOf("}",e+1);if(b===-1)throw Error("Invalid template: "+a);c.push(new d(a.substring(e+1,b)));b+=1;e=a.indexOf("{",b)}c.push(new h(a.substring(b)));this._templateComponents=c}var b={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-,"}},c=/^((?:(?:[a-zA-Z0-9_])|(?:%[0-9A-F][0-9A-F]))(?:(?:[a-zA-Z0-9_.])|(?:%[0-9A-F][0-9A-F]))*)(?:(\*)|:([0-9]+))?$/;h.prototype={expand:function(){return encodeURI(this._text)}};d.prototype={expand:function(a){for(var c=[],b=
0;b<this._varSpecList.length;b++){var d=this._varSpecList[b],g=d.name,h=a[g],q=typeof h;if(q!=="undefined"&&h!==null){var m=c.length===0?this._operator.first:this._operator.sep;if(q==="string")this._operator.named&&(m+=i(g,"U+R"),m+=h.length===0?this._operator.ifemp:"="),d.prefix!==-1&&d.prefix<h.length&&(h=h.substring(0,d.prefix)),m+=i(h,this._operator.allow);else if(Array.isArray(h))d.explode?m+=f(h,this._operator.allow,this._operator.sep):(this._operator.named&&(m+=i(g,"U+R"),m+=h.length===0?this._operator.ifemp:
"="),m+=f(h,this._operator.allow,","));else if(q==="object")d.explode?m+=e(h,this._operator.allow,"=",this._operator.sep):(this._operator.named&&(m+=i(g,"U+R"),m+=Object.keys(h).length===0?this._operator.ifemp:"="),m+=e(h,this._operator.allow,",",","));else throw Error("bad param type: "+g+" : "+q);c.push(m)}}return c.join("")}};g.prototype={expand:function(a){for(var c=[],b=0;b<this._templateComponents.length;b++)c.push(this._templateComponents[b].expand(a));return c.join("")}};return g});
define("orion/searchUtils","i18n!orion/nls/messages,require,orion/editor/regex,orion/commands,orion/PageUtil,orion/URITemplate".split(","),function(h,i,f,e,d,g){function b(a,c,b){var d="";b&&(d="^");if(d=f.parse("/"+d+a.searchStr+"/"))b=d.pattern,d=d.flags,d.indexOf("i")===-1&&!c.caseSensitive&&(d+="i"),a.regExp={pattern:b,flags:d},a.wildCard=!0}var c=c||{};c.searchUtils=c.searchUtils||{};c.searchUtils.ALL_FILE_TYPE="*.*";c.searchUtils.doSearch=function(a,b,d,e){if(a){var g=!0;d==="*"&&(d="");d===
""&&(g=e&&e.type!==c.searchUtils.ALL_FILE_TYPE);if(g){d!==""&&c.searchUtils.addRecentSearch(b,d,e?e.regEx:!1);var a=a.createSearchParams(d,!1,!1,e),f=c.searchUtils.generateSearchHref(a);c.searchUtils.getOpenSearchPref(b,function(a){a?window.open(f):window.location=f})}}else window.alert(h["Can't search: no search service is available"])};c.searchUtils.generateSearchHelper=function(a,d){var e=a.keyword,g=e,f={};a.fileType&&a.fileType!==c.searchUtils.ALL_FILE_TYPE&&e===""&&(g="*."+a.fileType);if(a.regEx)f.searchStr=
e,b(f,a,d);else{var h=e.indexOf("*")>-1,i=e.indexOf("?")>-1;h&&(e=e.split("*").join(".*"));i&&(e=e.split("?").join("."));!h&&!i&&!a.nameSearch?(f.searchStr=a.caseSensitive?e.split("\\").join(""):e.split("\\").join("").toLowerCase(),f.wildCard=!1):(f.searchStr=a.caseSensitive?e:e.toLowerCase(),b(f,a,d),f.wildCard=!0)}f.searchStrLength=f.searchStr.length;return{params:a,inFileQuery:f,displayedSearchTerm:g}};c.searchUtils.convertSearchParams=function(a){if(a.rows!==void 0)a.rows=parseInt(a.rows);if(a.start!==
void 0)a.start=parseInt(a.start);if(typeof a.regEx==="string")a.regEx=a.regEx.toLowerCase()==="true";if(typeof a.caseSensitive==="string")a.caseSensitive=a.caseSensitive.toLowerCase()==="true";if(typeof a.nameSearch==="string")a.nameSearch=a.nameSearch.toLowerCase()==="true"};c.searchUtils.copySearchParams=function(a,c){var b={},d;for(d in a)if(a[d]!==void 0&&a[d]!==null&&(c||d!=="replace"))b[d]=a[d];return b};c.searchUtils.generateSearchHref=function(a){var b=i.toUrl("search/search.html"),a=c.searchUtils.copySearchParams(a,
!0),d=a.resource;a.resource=void 0;return(new g(b+"#{,resource,params*}")).expand({resource:d,params:a})};c.searchUtils.generateFindURLBinding=function(a,c,b,d){a={find:c.searchStr,regEx:c.wildCard?!0:void 0,caseSensitive:a.caseSensitive?!0:void 0,replaceWith:typeof d==="string"?d:void 0,atLine:typeof b==="number"?b:void 0};return","+(new g("{,params*}")).expand({params:a})};c.searchUtils.convertFindURLBinding=function(a){if(typeof a.regEx==="string")a.regEx=a.regEx.toLowerCase()==="true";if(typeof a.caseSensitive===
"string")a.caseSensitive=a.caseSensitive.toLowerCase()==="true";if(typeof a.atLine==="string")a.atLine=parseInt(a.atLine)};c.searchUtils.replaceRegEx=function(a,c,b){return a.replace(RegExp(c.pattern,c.flags),b)};c.searchUtils.replaceStringLiteral=function(a,b,d){b=f.parse("/"+b+"/gim");return c.searchUtils.replaceRegEx(a,b,d)};c.searchUtils.searchOnelineLiteral=function(a,c,b){var d;d=0;for(var e=!1,g=[];;)if(d=c.indexOf(a.searchStr,d),d<0)break;else{g.push({startIndex:d,length:a.searchStrLength});
e=!0;if(b)break;d+=a.searchStrLength}return e?g:null};c.searchUtils.findRegExp=function(a,c,b,d){if(!c)return null;b=b||"";b+=(b.indexOf("g")===-1?"g":"")+(b.indexOf("m")===-1?"m":"");var e=null;return(e=RegExp(c,b).exec(a.substring(d)))&&{startIndex:e.index+d,length:e[0].length}};c.searchUtils.searchOnelineRegEx=function(a,b,d){for(var e=0,g=!1,f=[];;)if(e=c.searchUtils.findRegExp(b,a.regExp.pattern,a.regExp.flags,e)){f.push(e);g=!0;if(d)break;e=e.startIndex+e.length}else break;return g?f:null};
c.searchUtils.generateNewContents=function(a,b,d,e,g,f){if(e&&b){if(!a)d.contents=[];for(var h=0;h<b.length;h++){for(var i=b[h],p=!1,o=!1,A=[],t,v=0,z=0;z<e.children.length;z++)if(e.children[z].lineNumber-1===h){v=z;for(p=0;p<e.children[z].matches.length;p++)e.children[z+p].checked!==!1&&A.push(p);o=A.length>0;t=e.children[z].matches;p=!0;break}if(p){if(o){A=c.searchUtils.replaceCheckedMatches(i,g,t,A,f);i=A.replacedStr;for(p=0;p<e.children[v].matches.length;p++)e.children[v+p].newMatches=A.newMatches}else for(p=
0;p<e.children[v].matches.length;p++)e.children[v+p].newMatches=e.children[v+p].matches;a?d.contents[h]=i:d.contents.push(i)}else a||d.contents.push(i)}}};c.searchUtils.generateMatchContext=function(a,c,b){var d=[],e=a*2+1,g;c.length<=e?(g=0,a=c.length-1):(g=b-a,g<0?(g=0,a=g+e-1):(a=b+a,a>c.length-1&&(a=c.length-1,g=a-e+1)));for(e=g;e<=a;e++)d.push({context:c[e],current:e===b});return d};c.searchUtils.splitFile=function(a){for(var c=0,b=0,d=0,e=0,g=[];;){c!==-1&&c<=d&&(c=a.indexOf("\r",d));b!==-1&&
b<=d&&(b=a.indexOf("\n",d));if(b===-1&&c===-1){g.push(a.substring(e));break}var f=1;c!==-1&&b!==-1?c+1===b?(f=2,d=b+1):d=(c<b?c:b)+1:d=c!==-1?c+1:b+1;g.push(a.substring(e,d-f));e=d}return g};c.searchUtils.searchWithinFile=function(a,b,d,e,g,f){d=c.searchUtils.splitFile(d);if(g)b.contents=d;if(b){b.children=[];for(var h=e=0;h<d.length;h++){var i=d[h];if(i&&i.length>0){var p=f?i:i.toLowerCase();if(p=a.wildCard?c.searchUtils.searchOnelineRegEx(a,p):c.searchUtils.searchOnelineLiteral(a,p)){var o=h+1;
if(g)for(var A=0;A<p.length;A++){var t=A+1,t={parent:b,checked:b.checked,type:"detail",matches:p,lineNumber:o,matchNumber:t,name:i,location:b.location+"-"+o+"-"+t};b.children.push(t)}else t={parent:b,context:c.searchUtils.generateMatchContext(2,d,h),checked:b.checked,type:"detail",matches:p,lineNumber:o,name:i,location:b.location+"-"+o},b.children.push(t);e+=p.length}}}b.totalMatches=e}};c.searchUtils.replaceCheckedMatches=function(a,c,b,d,e){for(var g=0,f="",h=[],i=0;i<b.length;i++){g!==b[i].startIndex&&
(f+=a.substring(g,b[i].startIndex));if(b[i].length)e=b[i].length;for(var g=!1,o=0;o<d.length;o++)if(d[o]===i){g=!0;break}g?(h.push({startIndex:f.length,length:c.length}),f+=c):(h.push({startIndex:f.length,length:e}),f+=a.substring(b[i].startIndex,b[i].startIndex+e));g=b[i].startIndex+e}g<a.length&&(f+=a.substring(g));return{replacedStr:f,newMatches:h}};c.searchUtils.fullPathNameByMeta=function(a){var c=a.length,b="";if(c>0)for(c-=1;c>-1;c--)b=b+(b===""?"":"/")+a[c].Name;return b};c.searchUtils.path2FolderName=
function(a,c,b){return a.substring(0,a.length-c.length-(b?0:1))};c.searchUtils._storeRecentSearch=function(a,c){a.getService("orion.core.preference").getPreferences("/window/favorites").then(function(a){a.put("recentSearch",c)})};c.searchUtils.addRecentSearch=function(a,b,d){typeof b==="string"&&b&&a.getService("orion.core.preference").getPreferences("/window/favorites").then(function(e){var g,e=e.get("recentSearch");typeof e==="string"&&(e=JSON.parse(e));if(e){for(g in e)if(e[g].name===b)return;
e.length>=20&&e.splice(19,e.length-20+1)}else e=[];e.splice(0,0,{name:b,regEx:d});c.searchUtils._storeRecentSearch(a,e)})};c.searchUtils.getSearches=function(a,c,b){a.getService("orion.core.preference").getPreferences("/window/favorites").then(function(a){a=a.get(c);typeof a==="string"&&(a=JSON.parse(a));a&&b&&b(a)})};c.searchUtils.getMixedSearches=function(a,b,d,e){a.getService("orion.core.preference").getPreferences("/window/favorites").then(function(a){var g,f=a.get("recentSearch");typeof f===
"string"&&(f=JSON.parse(f));if(b)for(g in a=a.get("search"),typeof a==="string"&&(a=JSON.parse(a)),a)if(d){var h=c.searchUtils.parseQueryStr(a[g].query);f.some(function(a){return h.searchStrTitle===a.name})||f.push({name:h.searchStrTitle,label:a[g].name})}else f.push({name:null,label:a[g].name,value:a[g].query});f&&e&&e(f)})};c.searchUtils.getOpenSearchPref=function(a,c){a.getService("orion.core.preference").getPreferences("/cm/configurations").then(function(a){a=a.get("nav.config");c(a&&a["links.newtab"]!==
"undefined"?a["links.newtab"]?!0:!1:!1)})};c.searchUtils.setOpenSearchPref=function(a,c){a.getService("orion.core.preference").getPreferences("/window/favorites").then(function(a){a.put("openSearchPref",{openInNewTab:c})})};return c.searchUtils});
define("orion/compare/compareUtils",["orion/URITemplate"],function(h){var i=i||{};i.compareUtils=i.compareUtils||{};i.compareUtils.lookUpMapper=function(f,e,d){for(var g=0,b=0;b<f.length;b++){var c=f[b][e];c===0&&(c=1);if(d>=g&&d<g+c)return{mapperIndex:b,startFrom:g};if(b===f.length-1)break;g+=f[b][e]}return{mapperIndex:f.length-1,startFrom:g}};i.compareUtils.lookUpLineIndex=function(f,e,d){if(d===0)return 0;for(var g=0,b=0;b<d;b++)g+=f[b][e];return g};i.compareUtils.updateMapper=function(f,e,d,g,
b){if(g!==b&&(g>0||b>0)){var c=i.compareUtils.lookUpMapper(f,e,d);if(!(c.mapperIndex<0)){if(g>0)for(var a=d-c.startFrom,d=c.mapperIndex;d<f.length;d++){a=f[d][e]-a;if(g<=a){f[d][e]-=g;break}f[d][e]-=a;g-=a;a=0}b>0&&(f[c.mapperIndex][e]+=b)}}};i.compareUtils.overlapMapper=function(f,e,d,g,b){f=d+f[e]-1;f<d&&(f=d);b<g&&(b=g);return f<g||b<d?!1:!0};i.compareUtils.findFirstDiff=function(f,e,d,g){for(var b=0,c=void 0,a=0;a<f.length;a++){if(b>g)break;if(i.compareUtils.overlapMapper(f[a],e,b,d,g)&&(c={mapperIndex:a,
startFrom:b},f[a][2]!==0))break;b+=f[a][e]}return c};i.compareUtils.matchMapper=function(f,e,d,g){if(f.length===0)return d;var b=d+Math.round((g-d)/3),c=i.compareUtils.findFirstDiff(f,e,d,g),a=f[c.mapperIndex][e]===0?c.startFrom:c.startFrom+f[c.mapperIndex][e]-1,h=i.compareUtils.lookUpLineIndex(f,1-e,c.mapperIndex),k=c.startFrom-d;return f[c.mapperIndex][2]===0?h-k:b>=c.startFrom&&b<=a?h-Math.round((g-d)/3):b<c.startFrom?h-k:(f[c.mapperIndex][1-e]===0?h:h+f[c.mapperIndex][1-e]-1)-(a-d)};i.compareUtils.getMapperLineCount=
function(f){for(var e=0,d=0;d<f.length;d++)e+=Math.max(f[d][0],f[d][1]);return e};i.compareUtils.getAnnotationIndex=function(f,e){for(var d=0;d<f.length;d++)if(f[d][0]===e)return d;return-1};i.compareUtils.getAnnotationMapperIndex=function(f,e){return f[e][1]};i.compareUtils.getAnnotationIndexByMapper=function(f,e){for(var d=0;d<f.length;d++)if(f[d][1]===e)return{current:d,prev:d-1,next:d+1};return{current:-1,prev:-1,next:-1}};i.compareUtils.isMapperConflict=function(f,e){return e<0?!1:!f[e][3]?!1:
f[e][3]===1};i.compareUtils.mergeDiffBlocks=function(f,e,d,g,b,c){for(var a=0;a<e.length;a++){var h=e[a][0],k=d[e[a][1]];if(k[0]>0){for(var i="",l=0;l<k[0];l++)i=i+g[k[2]-1+l].substring(b)+c;k=f.getLineCount();h>=k&&(h=k-1);h=f.getLineStart(h);f.setText(i,h,h)}}};i.compareUtils.generateCompareHref=function(f,e){var d=require.toUrl("compare/compare.html");if(!e.conflict)e.conflict=void 0;if(!e.readonly)e.readonly=void 0;return(new h(d+"#{,resource,params*}")).expand({resource:f,params:e})};i.compareUtils.generateCompareTreeHref=
function(f,e){var d=require.toUrl("compare-tree/compare-tree.html");return(new h(d+"#{,resource,params*}")).expand({resource:f,params:e})};return i.compareUtils});
define("orion/contentTypes",[],function(){function h(d,b){function c(a,c,b,d){var b=c.filename.indexOf(b)>=0,e=c.extension.indexOf(d)>=0;if(b||e)if(!a||b&&a.extension.indexOf(d)>=0)return c;return a}for(var a=d&&d.split(".").pop(),e=null,f=0;f<b.length;f++){var h=b[f];c(e,h,d,a)===h&&(e=h)}return e}function i(g){this.serviceRegistry=g;this.map=function(b){function c(a){return a===null||typeof a==="undefined"?[]:a instanceof Array?a:[a]}for(var b=b.getServiceReferences(e).concat(b.getServiceReferences(d)),
a={},g=0;g<b.length;g++)for(var f=c(b[g].getProperty("contentTypes")),h=0;h<f.length;h++){var i=f[h];a[i.id]||(a[i.id]={id:i.id,name:i.name,image:i.image,"extends":i["extends"],extension:c(i.extension),filename:c(i.filename)})}return a}(g);g.registerService(f,this)}var f="orion.core.contenttypes",e="orion.core.contenttype",d="orion.file.contenttype";i.prototype={getContentTypes:function(){var d=this.getContentTypesMap(),b=[],c;for(c in d)d.hasOwnProperty(c)&&b.push(d[c]);return b},getContentTypesMap:function(){return this.map},
getFileContentType:function(d){return h(d.Name,this.getContentTypes())},getFilenameContentType:function(d){return h(d,this.getContentTypes())},getContentType:function(d){return this.map[d]||null},isExtensionOf:function(d,b){d=typeof d==="string"?this.getContentType(d):d;b=typeof b==="string"?this.getContentType(b):b;if(!d||!b)return!1;if(d.id===b.id)return!0;else for(var c=d,a={};c&&(c=this.getContentType(c["extends"]));){if(c.id===b.id)return!0;if(a[c.id])throw Error("Cycle: "+c.id);a[c.id]=!0}return!1},
isSomeExtensionOf:function(d,b){for(var c=0;c<b.length;c++)if(this.isExtensionOf(d,b[c]))return!0;return!1}};return{ContentTypeService:i,getFilenameContentType:h}});
define("orion/crawler/searchCrawler","i18n!orion/crawler/nls/messages,require,orion/i18nUtil,orion/searchUtils,orion/contentTypes,orion/Deferred".split(","),function(h,i,f,e,d,g){function b(c,a,b,d){this.registry=c;this.fileClient=a;this.fileLocations=[];this.fileSkeleton=[];this._totalCounter=this._hitCounter=0;this._searchOnName=d&&d.searchOnName;this._buildSkeletonOnly=d&&d.buildSkeletonOnly;this._fetchChildrenCallBack=d&&d.fetchChildrenCallBack;this._searchParams=b;this.searchHelper=this._searchOnName||
this._buildSkeletonOnly?null:e.generateSearchHelper(b);this._location=d&&d.location;this._childrenLocation=d&&d.childrenLocation?d.childrenLocation:this._location}b.prototype.search=function(c){var a=this.registry.getService("orion.core.contenttypes");this._onSearchComplete=c;var b=this;this.registry.getService("orion.page.dialog").confirm(h["The search term on this location will not use indexed files."]+"\n"+h["It will take longer time. Do you want to proceed?"],function(c){c&&a.getContentTypes().then(function(a){b.contentTypesCache=
a;b._visitRecursively(b._childrenLocation).then(function(){b._sort(b.fileLocations);b._onSearchComplete({response:{numFound:b.fileLocations.length,docs:b.fileLocations}})})})})};b.prototype.searchName=function(c,a){if(c)this.searchHelper=e.generateSearchHelper(c,!0);if(a)this.onSearchNameComplete=a;var b=[];this._sort(this.fileSkeleton);if(this.fileSkeleton.length>0){for(var d=0;d<this.fileSkeleton.length;d++){var g=this.fileSkeleton[d].Name.toLowerCase();if(this.searchHelper.inFileQuery.wildCard?
e.searchOnelineRegEx(this.searchHelper.inFileQuery,g,!0):e.searchOnelineLiteral(this.searchHelper.inFileQuery,g,!0))if(b.push(this.fileSkeleton[d]),b.length>=this.searchHelper.params.rows)break}this.onSearchNameComplete({response:{numFound:b.length,docs:b}})}};b.prototype.buildSkeleton=function(c,a){this._buildingSkeleton=!0;var b=this.registry.getService("orion.core.contenttypes"),d=this;c();b.getContentTypes().then(function(c){d.contentTypesCache=c;d._visitRecursively(d._childrenLocation).then(function(){d._buildingSkeleton=
!1;a();d.searchHelper&&!d._buildSkeletonOnly&&d.searchName()})})};b.prototype._searchCompleted=function(){console.log("Search Completed.")};b.prototype._searchFiles=function(){var c=[],a;if(this.fileLocations.length>0){a=this;for(var b=0;b<a.fileLocations.length;b++)c.push(a._sniffSearch(a.fileLocations[b]))}return g.all(c)};b.prototype._sort=function(c){c.sort(function(a,c){var b=a.Name&&a.Name.toLowerCase(),d=c.Name&&c.Name.toLowerCase();return b<d?-1:b>d?1:0})};b.prototype._onFileType=function(c){return this.searchHelper.params.fileType?
this.searchHelper.params.fileType===e.ALL_FILE_TYPE?!0:c.extension.indexOf(this.searchHelper.params.fileType)>=0:!0};b.prototype._visitRecursively=function(c){var a=[],b=this;this._fetchChildrenCallBack&&this._fetchChildrenCallBack(c);var e=b.registry.getService("orion.page.progress");return(e?e.progress(b.fileClient.fetchChildren(c),"Crawling search for children of "+c):b.fileClient.fetchChildren(c)).then(function(c){for(var e=0;e<c.length;e++)if(c[e].Directory!==void 0&&c[e].Directory===!1)if(b._searchOnName)a.push(b._buildSingleSkeleton(c[e]));
else if(b._buildSkeletonOnly)a.push(b._buildSingleSkeleton(c[e]));else{var f=d.getFilenameContentType(c[e].Name,b.contentTypesCache);f&&(f["extends"]==="text/plain"||f.id==="text/plain")&&b._onFileType(f)&&a.push(b._sniffSearch(c[e]))}else c[e].Location&&a.push(b._visitRecursively(c[e].ChildrenLocation));return g.all(a)})};b.prototype._hitOnceWithinFile=function(c){c=this._searchParams.caseSensitive?c:c.toLowerCase();return this.searchHelper.inFileQuery.wildCard?e.searchOnelineRegEx(this.searchHelper.inFileQuery,
c,!0):e.searchOnelineLiteral(this.searchHelper.inFileQuery,c,!0)};b.prototype._reportSingleHit=function(c){c.LastModified=c.LocalTimeStamp;this.fileLocations.push(c);this._hitCounter++;this._sort(this.fileLocations);this._onSearchComplete({response:{numFound:this.fileLocations.length,docs:this.fileLocations}},!0)};b.prototype._sniffSearch=function(c){this._totalCounter++;var a=this;if(this.searchHelper.params.keyword==="")this._reportSingleHit(c),this.registry.getService("orion.page.message").setProgressResult({Message:f.formatMessage(h["${0} files found out of ${1}"],
this._hitCounter,this._totalCounter)});else return this.registry.getService("orion.page.progress").progress(a.fileClient.read(c.Location),"Reading file "+c.Location).then(function(b){a._hitOnceWithinFile(b)&&a._reportSingleHit(c);a.registry.getService("orion.page.message").setProgressResult({Message:f.formatMessage(h["${0} files found out of ${1}"],a._hitCounter,a._totalCounter)})},function(a){console.error("Error loading file content: "+a.message)})};b.prototype._buildSingleSkeleton=function(c){this._totalCounter++;
this.fileSkeleton.push(c);this.searchHelper&&!this._buildSkeletonOnly&&this._totalCounter%100===0&&this.searchName();c=new g;c.resolve(this._totalCounter);return c};b.prototype.constructor=b;return{SearchCrawler:b}});
define("orion/searchClient","i18n!orion/search/nls/messages,require,orion/webui/littlelib,orion/i18nUtil,orion/searchUtils,orion/crawler/searchCrawler".split(","),function(h,i,f,e,d,g){function b(c){this.registry=c.serviceRegistry;this._commandService=c.commandService;(this._fileService=c.fileService)||console.error("No file service on search client")}b.prototype={search:function(c,a,b){var e=function(a){for(var c=[],b=0;b<a.response.docs.length;b++){var e=a.response.docs[b];c.push({name:e.Name,path:e.Location,
folderName:d.path2FolderName(e.Path?e.Path:e.Location,e.Name),directory:e.Directory,lineNumber:e.LineNumber})}return c};if(this._crawler&&c.nameSearch)this._crawler.searchName(c,function(a){b(e(a),null)});else try{this.registry.getService("orion.page.progress").progress(this._fileService.search(c),"Searching "+c.keyword).then(function(a){var d=c.keyword,d=d.substring(d.indexOf("}")+1),d=d.substring(d.indexOf(":")+1);b(e(a),d)},function(a){b(null,null,a)})}catch(f){typeof f==="string"&&f.indexOf("search")>
-1&&this._crawler?this._crawler.searchName(c,function(a){b(e(a),null)}):typeof f==="string"&&f.indexOf("search")>-1&&!c.nameSearch?(new g.SearchCrawler(this.registry,this._fileService,c,{childrenLocation:this.getChildrenLocation()})).search(function(a){b(e(a),null)}):this.registry.getService("orion.page.message").setErrorMessage(f)}},getFileService:function(){return this._fileService},setCrawler:function(c){this._crawler=c},handleError:function(c,a){console.error(c);f.empty(a);a.appendChild(document.createTextNode(c));
return c},setLocationByMetaData:function(c,a){var b="",d=null;this._searchRootLocation=this._fileService.fileServiceRootURL(c.Location);a&&c&&c.Parents&&c.Parents.length>0?d=a.index==="last"?c.Parents[c.Parents.length-1]:c.Parents[0]:c&&c.Directory&&c.Location&&c.Parents&&(d=c);if(d)this.setLocationbyURL(d.Location),b=d.Name,this._childrenLocation=d.ChildrenLocation;else if(c)this.setLocationbyURL(this._searchRootLocation),b=this._fileService.fileServiceName(c.Location),this._childrenLocation=c.ChildrenLocation;
d=f.node("search");b||(b="");if(d&&d.placeholder){d.value="";var g=e.formatMessage(h["Search ${0}"],b);d.placeholder=g.length>30?g.substring(0,27)+"...":e.formatMessage(h["Search ${0}"],b)}if(d&&d.title)d.title=h["Type a keyword or wild card to search in "]+b},setLocationbyURL:function(c){this._searchLocation=c},setRootLocationbyURL:function(c){this._searchRootLocation=c},setChildrenLocationbyURL:function(c){this._childrenLocation=c},getSearchLocation:function(){return this._searchLocation?this._searchLocation:
this._fileService.fileServiceRootURL()},getSearchRootLocation:function(){return this._searchRootLocation?this._searchRootLocation:this._fileService.fileServiceRootURL()},getChildrenLocation:function(){return this._childrenLocation?this._childrenLocation:this._fileService.fileServiceRootURL()},createSearchParams:function(c,a,b,d){b=b?this.getSearchRootLocation():this.getSearchLocation();return a?{resource:b,sort:"NameLower asc",rows:100,start:0,nameSearch:!0,keyword:c}:{resource:b,sort:"Path asc",
rows:40,start:0,caseSensitive:d?d.caseSensitive:void 0,regEx:d?d.regEx:void 0,fileType:d?d.type:void 0,keyword:c}},defaultRenderer:{makeRenderFunction:function(c,a,b,d,g){function l(a){return!c?!0:(a=c.getFilenameContentType(a))&&(a["extends"]==="text/plain"||a.id==="text/plain")?!0:!1}return function(c,q,m){if(m)f.empty(a),c=document.createElement("div"),c.appendChild(document.createTextNode(h["Search failed."])),a.appendChild(c),typeof d==="function"&&d(a);else{var m=function(){function a(c,b){var d=
b.folderName?b.folderName:b.path,e=document.createElement("span");e.id=d.replace(/[^a-zA-Z0-9_\.:\-]/g,"");e.appendChild(document.createTextNode(" - "+d+" "));c.appendChild(e)}var c={};return function(b,d){var e=d.name;if(c.hasOwnProperty(e)){a(b,d);var g=c[e];typeof g==="function"&&(c[e]=null,g())}else c[e]=function(){a(b,d)}}}(),p=!1;f.empty(a);if(c&&c.length>0){var o=document.createElement("table");o.setAttribute("role","presentation");for(var A=0;A<c.length;A++){var t=c[A],v;if(!p&&(p=!0,b))v=
o.insertRow(0).insertCell(0),v.textContent=b;v=o.insertRow(-1).insertCell(0);v.colspan=2;g&&g(v);var z=document.createElement("a");z.appendChild(document.createTextNode(t.name));t.LineNumber&&z.appendChild(document.createTextNode(" (Line "+t.LineNumber+")"));var y=t.location;t.isExternalResource?y=t.path:(y=t.directory?i.toUrl("navigate/table.html")+"#"+t.path:l(t.name)?i.toUrl("edit/edit.html")+"#"+t.path:t.path,y==="#"&&(y=""));z.setAttribute("href",y);z.setAttribute("aria-describedby",(t.folderName?
t.folderName:t.path).replace(/[^a-zA-Z0-9_\.:\-]/g,""));z.style.verticalAlign="middle";v.appendChild(z);m(v,t)}a.appendChild(o);typeof d==="function"&&d(a)}!p&&q&&(c=e.formatMessage(h["No matches found for ${0}"],q),f.empty(a),a.appendChild(document.createTextNode(c)),typeof d==="function"&&d(a))}}}}};b.prototype.constructor=b;return{Searcher:b}});
define("orion/globalSearch/advSearchOptContainer",["i18n!orion/globalSearch/nls/messages","require","orion/searchUtils","orion/contentTypes","orion/i18nUtil"],function(h,i,f,e,d){function g(c,a,d,e){this._inputField=c;if(typeof this._inputField==="string")this._inputField=document.getElementById(this._inputField);(c=e?e.group:null)||(c=this._inputField.id?this._inputField.id:"default__dropDown__group");this._idPrefix=c+"__dropDown__";this.containerId=this._idPrefix+"UIContainer";this._dismissed=!0;
var g=this;this._optRenderer=new b(a,d,function(){g.dismiss();g._inputField.focus()});this._initUI()}function b(c,a,b){this._searcher=c;this._serviceRegistry=a;this._cancelCallBack=b}g.prototype._initUI=function(){this._optUIContainer=document.getElementById(this.containerId);if(!this._optUIContainer)this._optUIContainer=document.createElement("div"),this._optUIContainer.id=this.containerId,this._optUIContainer.style.display="none",this._optUIContainer.className="advSearchOptContainer",document.body.appendChild(this._optUIContainer),
this._optRenderer.render(this._optUIContainer)};g.prototype.dismiss=function(){this._dismissed=!0;this._optUIContainer.style.display="none"};g.prototype.show=function(c){for(var a=0,b=0,d=this._inputField;d;)a+=d.offsetLeft,b+=d.offsetTop,d=d.offsetParent;this._optUIContainer.style.display="block";this._optUIContainer.style.top=b+this._inputField.offsetHeight+2+"px";this._optUIContainer.style.left=a+"px";this._optUIContainer.style.width=this._inputField.offsetWidth+"px";this._optRenderer._searchBox.value=
c;this._optRenderer._searchBox.focus();this._dismissed=this._mouseDown=!1};g.prototype.toggle=function(){this._dismissed?this.show(this._inputField.value):this.dismiss()};g.prototype.constructor=g;b.prototype.getOptions=function(){return{searchStr:this._searchBox.value,caseSensitive:this._caseSensitiveCB.checked,regEx:this._regExCB.checked,type:this._fileTypes.options[this._fileTypes.selectedIndex].value}};b.prototype.render=function(c,a){this._parentDiv=c;if(typeof this._parentDiv==="string")this._parentDiv=
document.getElementById(this._parentDiv);var b=this._serviceRegistry.getService("orion.core.contenttypes");if(b){var d=this;b.getContentTypes().then(function(c){d.contentTypesCache=c;d._render(a)})}else b=new e.ContentTypeService(this._serviceRegistry),this.contentTypesCache=b.getContentTypes(),this._render(a)};b.prototype._render=function(c){c?this._renderHTML(c):this._renderRaw()};b.prototype._submitSearch=function(){var c=this.getOptions();f.doSearch(this._searcher,this._serviceRegistry,c.searchStr,
c)};b.prototype._initControls=function(){this._searchBox=document.getElementById("advSearchInput");this._fileTypes=document.getElementById("advSearchTypes");this._caseSensitiveCB=document.getElementById("advSearchCaseSensitive");this._regExCB=document.getElementById("advSearchRegEx");this._submitButton=document.getElementById("advSearchSubmit");for(var c=[{label:h["All types"],value:f.ALL_FILE_TYPE}],a=0;a<this.contentTypesCache.length;a++)if(this.contentTypesCache[a]["extends"]==="text/plain"||this.contentTypesCache[a].id===
"text/plain")for(var b=0;b<this.contentTypesCache[a].extension.length;b++)c.push({label:this.contentTypesCache[a].extension[b],value:this.contentTypesCache[a].extension[b]});for(a=0;a<c.length;a++){var b=document.createElement("option"),e=document.createTextNode(c[a].label);b.appendChild(e);this._fileTypes.appendChild(b);b.value=c[a].value}var g=this;this._searchBox.addEventListener("keydown",function(a){a=a.charCode||a.keyCode;a===13&&g._submitSearch();a===27&&g._cancelCallBack&&g._cancelCallBack()});
this._fileTypes.addEventListener("change",function(){var a=g._fileTypes.options[g._fileTypes.selectedIndex].value;g._searchBox.placeholder=a===f.ALL_FILE_TYPE?h["Type a search term"]:d.formatMessage(h["All ${0} files"],a)});this._submitButton.onclick=function(){g._submitSearch()}};b.prototype._initHTMLLabels=function(){document.getElementById("advSearchLabel").appendChild(document.createTextNode(h["Files that contain:"]));document.getElementById("advSearchInput").placeholder=h["Type a search term"];
document.getElementById("advSearchTypeLabel").appendChild(document.createTextNode(h["File type:"]));document.getElementById("advSearchCaseSensitiveLabel").appendChild(document.createTextNode(h["Case sensitive"]));document.getElementById("advSearchRegExLabel").appendChild(document.createTextNode(h["Regular expression"]));document.getElementById("advSearchSubmit").value=h.Search};b.prototype._renderHTML=function(c){var a=this,b=new XMLHttpRequest;b.open("GET",i.toUrl(c),!0);b.onreadystatechange=function(){if(this.readyState===
4&&this.status===200)a._parentDiv.innerHTML=this.responseText,a._initHTMLLabels(),a._initControls()};b.send()};b.prototype._htmlTemplate='<ul class="advSearchOptUL"><li class="advSearchOptLILabel"><label>'+h["Files that contain:"]+'</label></li><li class="advSearchOptLIControl"><input type="text" id="advSearchInput" placeholder="'+h["Type a search term"]+'"></input></li><li class="advSearchOptLIControl"><label>'+h["File type:"]+'</label><select id="advSearchTypes"></select></li><li class="advSearchOptLIControl"><label>'+
h["Case sensitive"]+'</label><input type="checkbox" id="advSearchCaseSensitive"></input></li><li class="advSearchOptLIControl"><label>'+h["Regular expression"]+'</label><input type="checkbox" id="advSearchRegEx"></input></li><li class="advSearchOptLIControl"><input type="button" class="advSearchOptButton" id="advSearchSubmit" value="'+h.Search+'"></input></li></ul>';b.prototype._renderRaw=function(){this._parentDiv.innerHTML=this._htmlTemplate;this._initControls()};b.prototype.constructor=b;return{advSearchOptContainer:g,
advSearchOptRenderer:b}});
define("orion/webui/dialogs/OpenResourceDialog","i18n!orion/widgets/nls/messages,orion/crawler/searchCrawler,orion/contentTypes,require,orion/webui/littlelib,orion/webui/dialog".split(","),function(h,i,f,e,d,g){function b(c){this._init(c)}b.prototype=new g.Dialog;b.prototype.TEMPLATE='<div role="search"><div><label for="fileName">${Type the name of a file to open (? = any character, * = any string):}</label></div><div><input id="fileName" type="text" class="setting-control" style="width:90%;"/></div><div id="progress" style="padding: 2px 0 0; width: 100%;"><img src="'+e.toUrl("../../../images/progress_running.gif")+
'" class="progressPane_running_dialog" id="crawlingProgress"></img></div><div id="favresults" style="max-height:400px; height:auto; overflow-y:auto;"></div><div id="results" style="max-height:400px; height:auto; overflow-y:auto;" aria-live="off"></div><div id="statusbar"></div></div>';b.prototype._init=function(c){this.title=c.title||h["Find File Named"];this.modal=!0;this.messages=h;this._searcher=c.searcher;this._progress=c.progress;this._onHide=c.onHide;this._contentTypeService=new f.ContentTypeService(this._searcher.registry);
if(!this._searcher)throw Error("Missing required argument: searcher");this._searchDelay=c.searchDelay||500;this._time=0;this._searcher.setCrawler(null);this._forceUseCrawler=!1;this._searchOnRoot=!0;this._fileService=this._searcher.getFileService();if(!this._fileService)throw Error(h["Missing required argument: fileService"]);this._searchRenderer=c.searchRenderer;if(!this._searchRenderer||typeof this._searchRenderer.makeRenderFunction!=="function")throw Error(h["Missing required argument: searchRenderer"]);
this._favService=c.favoriteService;if(!this._favService)throw Error(h["Missing required argument: favService"]);this._initialize()};b.prototype._bindToDom=function(c){var a=this;a.$crawlingProgress.style.display="none";this.$fileName.setAttribute("placeholder",h.Search);this.$fileName.addEventListener("input",function(){a._time=+new Date;a._timeoutId&&clearTimeout(a._timeoutId);a._timeoutId=setTimeout(a.checkSearch.bind(a),0)},!1);this.$fileName.addEventListener("keydown",function(c){if(c.keyCode===
d.KEY.ENTER){var b=d.$("a",a.$results);b&&(d.stop(c),window.open(b.href),a.hide())}},!1);c.addEventListener("keydown",function(c){var b,e,g,f,h;if(c.keyCode===d.KEY.DOWN||c.keyCode===d.KEY.UP)e=d.$$array("a",a.$results),b=d.$$array("a",a.$favresults),g=document.activeElement,h=e.indexOf(g),f=b.indexOf(g),c.keyCode===d.KEY.DOWN?f>=0?(f<b.length-1?b[f+1]:e.length>0?e[0]:b[0]).focus():h>=0?(h<e.length-1?e[h+1]:b.length>0?b[0]:e[0]).focus():(e.length>0||b.length>0)&&(-1<b.length-1?b[0]:e[0]).focus():
f>=0?(g=a.$fileName,(f>0?b[f-1]:g).focus()):h>=0?(g=a.$fileName,(h>0?e[h-1]:b.length>0?b[b.length-1]:g).focus()):e.length>0?e[e.length-1].focus():b.length>0&&b[b.length-1].focus(),d.stop(c)});c.addEventListener("mouseup",function(a){a.target.focus()},!1);this.populateFavorites();setTimeout(function(){if(a._forceUseCrawler||!a._fileService.getService(a._searcher.getSearchLocation()).search){var b=a._searchOnRoot?a._searcher.getSearchRootLocation():a._searcher.getChildrenLocation(),b=new i.SearchCrawler(a._searcher.registry,
a._fileService,"",{searchOnName:!0,location:b});a._searcher.setCrawler(b);b.buildSkeleton(function(){a.$crawlingProgress.style.display="inline";a.$progress.appendChild(document.createTextNode(h["Building file skeleton..."]))},function(){a.$crawlingProgress.style.display="none";a.$progress.removeChild(a.$progress.lastChild)})}},0)};b.prototype.populateFavorites=function(){var b=document.createElement("div");b.appendChild(document.createTextNode(h["Populating favorites&#x2026;"]));d.empty(this.$favresults);
this.$favresults.appendChild(b);this._progress?this._progress.progress(this._favService.getFavorites(),"Getting favorites").then(this.showFavorites()):this._favService.getFavorites().then(this.showFavorites());this._favService.addEventListener("favoritesChanged",this.showFavorites())};b.prototype.showFavorites=function(){var b=this;return function(a){if(a.navigator)a=a.navigator;b._searchRenderer.makeRenderFunction(b._contentTypeService,b.$favresults,!1,b.decorateResult.bind(b),b.showFavoritesImage)(a);
if(a&&a.length>0)a=document.createElement("div"),a.style.borderBottom="1px dashed #BBBBBB",a.style.padding="5px",b.$favresults.appendChild(a)}};b.prototype.showFavoritesImage=function(b){var a=new Image;a.classList.add("modelDecorationSprite");a.classList.add("core-sprite-makeFavorite");a.src=e.toUrl("images/none.png");a.title=h.Favorite;b.appendChild(a);a.style.verticalAlign="middle"};b.prototype.checkSearch=function(){clearTimeout(this._timeoutId);var b=(new Date).getTime();b-this._time>this._searchDelay?
(this._time=b,this.doSearch()):this._timeoutId=setTimeout(this.checkSearch.bind(this),50)};b.prototype.doSearch=function(){var b=this.$fileName.value,a=this.showFavorites();this._progress?this._progress.progress(this._favService.queryFavorites(b),"Getting favorites for: "+b).then(function(b){a(b)}):this._favService.queryFavorites(b).then(function(b){a(b)});if(b){var e=document.createElement("div");e.appendChild(document.createTextNode(h["Searching..."]));d.empty(this.$favresults);this.$results.appendChild(e);
var g=this;setTimeout(function(){var a=g._searcher.createSearchParams(b,!0,g._searchOnRoot),d=g._searchRenderer.makeRenderFunction(g._contentTypeService,g.$results,!1,g.decorateResult.bind(g));g._searcher.search(a,!1,d)},0)}};b.prototype.decorateResult=function(b){for(var a=this,b=d.$$array("a",b),e=0;e<b.length;e++){var g=b[e];g.addEventListener("mouseup",function(b){b.button===0&&!b.ctrlKey&&!b.metaKey&&a.hide()},!1);g.addEventListener("keyup",function(b){b.keyCode===d.KEY.ENTER&&a.hide()},!1)}};
b.prototype._beforeHiding=function(){clearTimeout(this._timeoutId)};b.prototype._afterHiding=function(){this._onHide&&this._onHide()};b.prototype.constructor=b;return{OpenResourceDialog:b}});
(function(){function h(a){return a?a.slice(1).split("&"):[]}function i(a){return a.length===0?"":"?"+a.join("&")}function f(a){var b=/([^=]*)(?:=?)(.*)/.exec(a),a=b[1]?decodeURIComponent(b[1]):"",b=b[2]?decodeURIComponent(b[2]):"";return[a,b]}function e(a){var b=encodeURIComponent(a[0]);a[1]&&(b+="="+encodeURIComponent(a[1]));return b}function d(a,b){var c="",d=[],e=0;return{next:function(){if(c!==a.search)c=a.search,d=h(c);if(e<d.length){var g=f(d[e++]);switch(b){case "keys":return g[0];case "values":return g[1];
case "keys+values":return[g[0],g[1]];default:throw new TypeError;}}throw n;}}}function g(a){if(typeof a!=="string")throw new TypeError;}function b(a){var b=a.protocol;return!b||b===":"||b==="http:"&&!a.hostname?!1:!0}function c(a){Object.defineProperty(this,"_anchor",{value:a})}function a(a,d){a=a||"";if(typeof a!=="string")throw new TypeError("url");d=d?d.href||d:"";if(typeof d!=="string")throw new TypeError("base");Object.defineProperty(this,"_input",{value:a,writable:!0});var e=document.implementation.createHTMLDocument("");
if(d){var g=e.createElement("a");g.href=d;if(g.protocol.length<2||!g.host)throw Error("InvalidStateError");var f=e.createElement("base");f.href=g.href;e.head.appendChild(f)}var h=e.createElement("a");h.href=a;e.body.appendChild(h);Object.defineProperty(this,"_urlAnchor",{value:h});var j=new c(h);Object.defineProperty(this,"query",{get:function(){return b(h)?j:null},enumerable:!0})}try{if(typeof window.URL==="function"&&window.URL.length!==0&&(new window.URL("http://www.w3.org")).protocol==="http:")return}catch(j){}var k=
/([^:]*):?(.*)/,n=typeof StopIteration!=="undefined"?StopIteration:Error("Stop Iteration");Object.defineProperties(c.prototype,{get:{value:function(a){g(a);var b;h(this._anchor.search).some(function(c){c=f(c);if(c[0]===a)return b=c[1],!0});return b},enumerable:!0},set:{value:function(a,b){g(a);g(b);var c=h(this._anchor.search);c.some(function(d,g){var h=f(d);if(h[0]===a)return h[1]=b,c[g]=e(h),!0})||c.push(e([a,b]));this._anchor.search=i(c)},enumerable:!0},has:{value:function(a){g(a);return h(this._anchor.search).some(function(b){if(f(b)[0]===
a)return!0})},enumerable:!0},"delete":{value:function(a){g(a);var b=h(this._anchor.search),c=b.filter(function(b){return f(b)[0]!==a});return c.length!==b.length?(this._anchor.search=i(c),!0):!1},enumerable:!0},clear:{value:function(){this._anchor.search=""},enumerable:!0},forEach:{value:function(a,b){if(typeof a!=="function")throw new TypeError;var c=d(this._anchor,"keys+values");try{for(;;){var e=c.next();a.call(b,e[1],e[0],this)}}catch(g){if(g!==n)throw g;}},enumerable:!0},keys:{value:function(){return d(this._anchor,
"keys")},enumerable:!0},values:{value:function(){return d(this._anchor,"values")},enumerable:!0},items:{value:function(){return d(this._anchor,"keys+values")}},size:{get:function(){return h(this._anchor.search).length},enumerable:!0},getAll:{value:function(a){g(a);var b=[];h(this._anchor.search).forEach(function(c){c=f(c);c[0]===a&&b.push(c[1])});return b},enumerable:!0},append:{value:function(a,b){g(a);g(b);var c=h(this._anchor.search);c.push(e([a,b]));this._anchor.search=i(c)},enumerable:!0}});
Object.defineProperties(a.prototype,{href:{get:function(){return b(this._urlAnchor)?this._urlAnchor.href:this._input},set:function(a){g(a);this._input=a;this._urlAnchor.href=a},enumerable:!0},origin:{get:function(){return b(this._urlAnchor)?this._urlAnchor.protocol+"//"+this._urlAnchor.host:""},enumerable:!0},protocol:{get:function(){return b(this._urlAnchor)?this._urlAnchor.protocol:":"},set:function(a){g(a);this._urlAnchor.protocol=a},enumerable:!0},_userinfo:{get:function(){return!b(this._urlAnchor)?
"":RegExp("^"+this._urlAnchor.protocol+"(\\/\\/)(?:([^@]*)?@)?"+this._urlAnchor.host).exec(this._urlAnchor.href)[2]||""},set:function(a){g(a);this._urlAnchor.href=this._urlAnchor.href.replace(RegExp("^"+this._urlAnchor.protocol+"(\\/\\/)(?:([^@]*)?@)?"+this._urlAnchor.host),this._urlAnchor.protocol+"//"+(a?a+"@":"")+this._urlAnchor.host)}},username:{get:function(){if(!b(this._urlAnchor))return"";var a=k.exec(this._userinfo);return decodeURIComponent(a[1]||"")},set:function(a){g(a);var b=k.exec(this._userinfo),
a=[encodeURIComponent(a||"")];b[2]&&a.push(b[2]);this._userinfo=a.join(":")},enumerable:!0},password:{get:function(){if(!b(this._urlAnchor))return"";var a=k.exec(this._userinfo);return decodeURIComponent(a[2]||"")},set:function(a){g(a);var b=[k.exec(this._userinfo)[1]||""];a&&b.push(encodeURIComponent(a));this._userinfo=b.join(":")},enumerable:!0},host:{get:function(){return b(this._urlAnchor)?this._urlAnchor.host:""},set:function(a){g(a);this._urlAnchor.host=a},enumerable:!0},hostname:{get:function(){return b(this._urlAnchor)?
this._urlAnchor.hostname:""},set:function(a){g(a);this._urlAnchor.hostname=a},enumerable:!0},port:{get:function(){return b(this._urlAnchor)?this._urlAnchor.port:""},set:function(a){g(a);this._urlAnchor.port=a},enumerable:!0},pathname:{get:function(){return b(this._urlAnchor)?this._urlAnchor.pathname:""},set:function(a){g(a);this._urlAnchor.pathname=a},enumerable:!0},search:{get:function(){return b(this._urlAnchor)?this._urlAnchor.search:""},set:function(a){g(a);this._urlAnchor.search=a},enumerable:!0},
hash:{get:function(){return b(this._urlAnchor)?this._urlAnchor.hash:""},set:function(a){g(a);this._urlAnchor.hash=a},enumerable:!0}});window.URL&&window.URL.createObjectURL&&(Object.defineProperty(a,"createObjectURL",{value:window.URL.createObjectURL.bind(window.URL),enumerable:!1}),Object.defineProperty(a,"revokeObjectURL",{value:window.URL.revokeObjectURL.bind(window.URL),enumerable:!1}));window.URL=a})();define("orion/URL-shim",function(){});
define("orion/extensionCommands","require,orion/Deferred,orion/commands,orion/editor/regex,orion/contentTypes,orion/URITemplate,orion/i18nUtil,orion/URL-shim".split(","),function(h,i,f,e,d,g,b){var c={},a=(new URL(h.toUrl("."),window.location)).href.slice(0,-1);c._cloneItemWithoutChildren=function k(a){if(a===null||typeof a!=="object")return a;var b=a.constructor(),c;for(c in a)c!=="children"&&c!=="Children"&&(b[c]=k(a[c]));return b};c._createOpenWithCommands=function(a){function b(a,c){for(var d=
a.getServiceReferences("orion.navigate.openWith"),e=[],g=0;g<d.length;g++){var f=d[g];f.getProperty("editor")===c.id&&(f=f.getProperty("contentType"),f instanceof Array?e=e.concat(f):f!==null&&typeof f!=="undefined"&&e.push(f))}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],g=e.getProperty("id");c.push({id:g,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=[],g=0;g<c.length;g++){var f=c[g],h=d&&d.editor===f.id,i=b(a,f);i.length&&e.push({properties:{name:f.name||f.id,nameKey:f.nameKey,id:"eclipse.openWithCommand."+f.id,tooltip:f.name,tooltipKey:f.nameKey,contentType:i,uriTemplate:f.uriTemplate,nls:f.nls,forceSingleItem:!0,isEditor:h?"default":"editor"},service:{}})}return e};
c._makeValidator=function(b,c,e,f){function h(a,b,c,d){var e=c.match,g;if(b.indexOf("|")>=0)return g=b.substring(0,b.indexOf("|")),b=b.substring(b.indexOf("|")+1),h(a,g,c,d)?!0:h(a,b,c,d);else if(b.indexOf(":")>=0)return g=b.substring(0,b.indexOf(":")),b=b.substring(b.indexOf(":")+1),a[g]?h(a[g],b,c,d):!1;else{a:{g=!1;var f;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]))g=e[0],f=c.variableMatchPosition==="before"?a[b].substring(0,
e.index):c.variableMatchPosition==="after"?a[b].substring(e.index+g.length):c.variableMatchPosition==="only"?g:a[b],g=!0}else{c=RegExp(e).test(a[b]);break a}}else a[b]===e&&(f=a[b],g=!0);else f=a[b],g=!0;if(g&&c.variableName&&(d[c.variableName]=f,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=g}else c=!1}return c}}return{info:b,validationFunction:function(a){typeof f==="function"&&(a=f.call(this,a));if(a){if(Array.isArray(a)){if((this.info.forceSingleItem||this.info.uriTemplate)&&a.length!==1)return!1;if(a.length<1)return!1}else a=[a];for(var c=0;c<a.length;c++){var g;a:{var i=a[c],n=e;if(this.info.validationProperties)for(g=0;g<this.info.validationProperties.length;g++){var v=this.info.validationProperties[g];if(v.source){if(!h(i,v.source,v,this)){g=!1;break a}}else{window.console.log("Invalid validationProperties in "+
b.id+".  No source property specified.");g=!1;break a}}if(this.info.contentType&&n){v=!1;if(i=d.getFilenameContentType(i.Name,n))for(g=0;g<this.info.contentType.length;g++)if(i.id===this.info.contentType[g]){v=!0;break}g=v}else g=!0}if(!g)return!1}return!0}return!1},generatesURI:function(){return!!this.info.uriTemplate},getURI:function(b){if(this.info.uriTemplate){var c={},d;for(d in b)b.hasOwnProperty(d)&&(c[d]=b[d]);if(this.info.validationProperties)for(d=0;d<this.info.validationProperties.length;d++){var e=
this.info.validationProperties[d];e.source&&e.variableName&&(this.itemCached===b&&this[e.variableName]||h(b,e.source,e,this),b[e.variableName]?window.console.log("Variable name "+e.variableName+" in the extension "+this.info.id+" conflicts with an existing property in the item metadata."):c[e.variableName]=this[e.variableName])}c.OrionHome=a;b=new g(this.info.uriTemplate);return window.decodeURIComponent(b.expand(c))}return null}}};c._createCommandOptions=function(a,d,e,g,f,h){function p(b,i){var o=
c._makeValidator(a,e,g,h);b.visibleWhen=o.validationFunction.bind(o);if(f)if(o.generatesURI.bind(o)())b.hrefCallback=function(a){a=Array.isArray(a.items)?a.items[0]:a.items;return o.getURI.bind(o)(a)};else{var p=a;b.callback=function(a){var g;if(p.forceSingleItem)a=Array.isArray(a.items)?a.items[0]:a.items,g=c._cloneItemWithoutChildren(a);else if(Array.isArray(a.items)){g=[];for(var f=0;f<a.items.length;f++)g.push(c._cloneItemWithoutChildren(a.items[f]))}else g=c._cloneItemWithoutChildren(a.items);
if(e)var h=e.getService("orion.page.progress");d.run?h?h.progress(d.run(g),"Running command: "+b.name):d.run(g):e&&(h?h.progress(e.getService(d).run(g),"Running command: "+b.name):e.getService(d).run(g))}}i.resolve(b)}var o=new i;a.nls?b.getMessageBundle(a.nls).then(function(b){p({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},o)}):p({name:a.name,image:a.image,id:a.id||a.name,tooltip:a.tooltip,isEditor:a.isEditor},
o);return o};c.getOpenWithCommands=function(a){var b=[],c;for(c in a._commandList){var d=a._commandList[c];d.isEditor&&b.push(d)}return b};return c});
define("orion/fileCommands","i18n!orion/navigate/nls/messages,require,orion/webui/littlelib,orion/i18nUtil,orion/uiUtils,orion/fileUtils,orion/commands,orion/extensionCommands,orion/contentTypes,orion/compare/compareUtils,orion/Deferred,orion/webui/dialogs/DirectoryPrompterDialog,orion/webui/dialogs/SFTPConnectionDialog,orion/webui/dialogs/ImportDialog".split(","),function(h,i,f,e,d,g,b,c,a,j,k,n,l,r){function q(a){this.registry=a;this.favorites=[];var b=this,a=this.registry.getService("orion.core.favorite");
y||(y=this.registry.getService("orion.page.progress"));y.progress(a.getFavorites(),"Getting favorites").then(function(a){b.cacheFavorites(a.navigator)});a.addEventListener("favoritesChanged",function(a){b.cacheFavorites(a.navigator)})}function m(a){y?y.setProgressResult(a):window.console.log(a)}function p(a,b,c,e,g){var h;b.Location===a.treeRoot.Location?a=f.node(c):(b=a.makeNewItemPlaceHolder(b,c))?(a=b.refNode,h=b.tempNode):a=f.node(c);a?d.getUserText(c+"EditBox",a,!1,e,function(a){a&&(h&&h.parentNode&&
h.parentNode.removeChild(h),g(a))}):(c=window.prompt(e))&&g(c)}function o(a){if(!a)return{};Array.isArray(a)&&(a=a.length===1?a[0]:{});return a}function A(a){a=o(a);return a.Location&&g.isAtRoot(a.Location)}function t(a,b,c,d,e,f){y=c;if(d){var h;h=g.isAtRoot(a.treeRoot.ChildrenLocation)?a.treeRoot:y.progress(b.loadWorkspace(""),"Loading workspace");k.when(h,function(g){g=b.createProject(g.ChildrenLocation,d);f&&(g=c.showWhile(g,f));g.then(function(g){c.progress(b.read(g.ContentLocation,!0),"Reading metadata of newly created project "+
d).then(function(b){e&&e(b);a.loadResourceList("",!0)},m)},m)},m)}}var v={},z=null,y=null,x=null;q.prototype={cacheFavorites:function(a){this.favorites=[];for(var b=0;b<a.length;b++)a[b].directory&&this.favorites.push(a[b]);this.favorites.sort(function(a,b){return a<b?-1:a>b?1:0})}};q.prototype.constructor=q;v.uploadFile=function(a,b,c,d){this.req=new XMLHttpRequest;this.req.open("post",a.ImportLocation,!0);this.req.setRequestHeader("X-Requested-With","XMLHttpRequest");this.req.setRequestHeader("Slug",
b.name);d||this.req.setRequestHeader("X-Xfer-Options","raw");this.req.setRequestHeader("Content-Type",b.type);this.req.onreadystatechange=function(){c&&c.changedItem(a,!0)};this.req.send(b)};v.updateNavTools=function(a,b,c,d,e){var g=a.getService("orion.page.command"),h=f.node(c);if(h)g.destroy(h);else throw"could not find toolbar "+c;if(e.Location!==x)g.closeParameterCollector(),x=e.Location;g.renderCommands(h.id,h,e,b,"button").then(function(){x&&g.processURL(window.location.href)});if(d&&(c=f.node(d)))g.destroy(c),
g.renderCommands(d,c,null,b,"button");z||(z=new q(a),a.getService("orion.page.selection").addEventListener("selectionChanged",function(a){var c=f.node(d);c&&(g.destroy(c),g.renderCommands(c.id,c,a.selections,b,"button"))}))};v.createFileCommands=function(c,f,i,k){function q(a,b){for(var c=0;c<a.length;c++)if(a[c]===b)return!0;return!1}function v(a){var a=g.makeRelative(a),a=a.split("#"),a=a[a.length-1],b=a.indexOf("/?");b>0&&(a=a.substring(0,b+1));return a}function x(a,b,d){for(var a=Array.isArray(a)?
a:[a],g=i,f=function(){g.changedItem.bind(g)(g.treeRoot,!0)},b=function(a){Array.isArray(a)||(a=[a]);for(var b=0;b<a.length;b++)(d?k.copyFile:k.moveFile).apply(k,[a[b].Location,this.path]).then(f,m)},j=[],l=0;l<a.length;l++){if(a[l].parent&&a[l].parent.Location)a[l].parent.stripped=a[l].parent.stripped||v(a[l].parent.Location),q(j,a[l].parent.stripped)||j.push(a[l].parent.stripped);if(a[l].Directory&&!d)a[l].stripped=a[l].stripped||v(a[l].Location),j.push(a[l].stripped)}a=[];if(z){for(var o=z.favorites,
l=0;l<o.length;l++){var M=v(o[l].path);q(j,M)||a.push({name:o[l].name,imageClass:"core-sprite-makeFavorite",path:M,callback:b})}o.length>0&&a.push({})}o=[];M=i.treeRoot.Children;for(l=0;l<M.length;l++){var N=M[l];N.stripped=N.stripped||(N.Directory?v(N.Location):null);N.stripped&&!q(j,N.stripped)&&o.push(N)}o.sort(function(a,b){return a.stripped<b.stripped?-1:a.stripped>b.stripped?1:0});for(l=0;l<o.length;l++){for(var j=o[l],M=j.Name,N=j.stripped.split("/").length+1,p=0;p<N-2;p++)M="  "+M;a.push({name:M,
path:j.stripped,callback:b})}o.length>0&&a.push({});a.push({name:h["Choose folder..."],callback:function(a){(new n.DirectoryPrompterDialog({title:h["Choose a Folder"],serviceRegistry:c,fileClient:k,func:function(b){if(b&&b.Location){Array.isArray(a)||(a=[a]);for(var c=0;c<a.length;c++){var g=b.Location,j=a[c],i=j.Name||null,l=d?k.copyFile:k.moveFile,n=e.formatMessage(d?h["Copying ${0}"]:h["Moving ${0}"],j.Location);d&&j.parent&&j.parent.Location===g&&((i=window.prompt(e.formatMessage(h["Enter a new name for '${0}'"],
j.Name),e.formatMessage(h["Copy of ${0}"],j.Name)))||(g=null));g&&(g=l.apply(k,[j.Location,b.Location,i]),y.showWhile(g,n).then(f,m))}}}})).show()}});return a}y=c.getService("orion.page.progress");var u=function(a){a=Array.isArray(a)?a:[a];if(a.length===0)return!1;for(var b=0;b<a.length;b++)if(!a[b].Location)return!1;return!0},s=new b.Command({name:h.Rename,tooltip:h["Rename the selected files or folders"],imageClass:"core-sprite-rename",id:"eclipse.renameResource",visibleWhen:function(a){return Array.isArray(a)?
a.length===1&&a[0].Name:a.Location},callback:function(a){var b=o(a.items),c=i.getNameNode(b);if(!c)c=a.domNode;d.getUserText(c.id+"EditBox",c,!0,b.Name,function(a){var c=b.Location;if(b.parent.Projects)for(var d=0;d<b.parent.Projects.length;d++){var g=b.parent.Projects[d];if(g.Id===b.Id){c=g.Location;break}}var a=k.moveFile(c,b.parent.Location,a),f=i;y.showWhile(a,e.formatMessage(h["Renaming ${0}"],c)).then(function(a){var c=null;b.parent.Projects?c=f.isExpanded(b)&&b:b.Directory&&(c=f.isExpanded(b)&&
a);f.changedItem(b.parent,!0);c&&f.changedItem(c,!0)},m)},null,null,".")}});f.addCommand(s);var D=new a.ContentTypeService(c),s=new b.Command({name:h["Compare with each other"],tooltip:h["Compare the selected 2 files with each other"],id:"eclipse.compareWithEachOther",visibleWhen:function(a){if(Array.isArray(a))if(a.length===2&&!a[0].Directory&&!a[1].Directory){var b=D.getFilenameContentType(a[0].Name),a=D.getFilenameContentType(a[1].Name);if(b&&(b["extends"]==="text/plain"||b.id==="text/plain")&&
a&&(a["extends"]==="text/plain"||a.id==="text/plain"))return!0}else if(a.length===2&&a[0].Directory&&a[1].Directory)return!0;return!1},hrefCallback:function(a){return a.items[0].Directory&&a.items[1].Directory?j.generateCompareTreeHref(a.items[0].Location,{compareTo:a.items[1].Location,readonly:!0}):j.generateCompareHref(a.items[0].Location,{compareTo:a.items[1].Location,readonly:!0})}});f.addCommand(s);s=new b.Command({name:h["Compare with..."],tooltip:h["Compare the selected folder with a specified folder"],
id:"eclipse.compareWith",visibleWhen:function(a){return Array.isArray(a)&&a.length===1&&a[0].Directory?!0:!1},callback:function(a){(new n.DirectoryPrompterDialog({title:h["Choose a Folder"],serviceRegistry:c,fileClient:k,func:function(b){b&&b.Location&&(b=j.generateCompareTreeHref(a.items[0].Location,{compareTo:b.Location,readonly:!0}),window.open(b))}})).show()}});f.addCommand(s);s=new b.Command({name:h.Delete,tooltip:h["Delete the selected files or folders"],imageClass:"core-sprite-delete",id:"eclipse.deleteFile",
visibleWhen:u,callback:function(a){var b=Array.isArray(a.items)?a.items:[a.items],a=b.length===1?e.formatMessage(h["Are you sure you want to delete '${0}'?"],b[0].Name):e.formatMessage(h["Are you sure you want to delete these ${0} items?"],b.length);c.getService("orion.page.dialog").confirm(a,function(a){if(a)for(var c=0,a=0;a<b.length;a++){var d=b[a],g=d.Location,f=d.parent;if(d.parent.Projects)for(var f=i.treeRoot,g=null,j=0;j<d.parent.Projects.length;j++){var l=d.parent.Projects[j];if(l.Id===d.Id){g=
l.Location;break}}g&&(d=k.deleteFile(g),y.showWhile(d,e.formatMessage(h["Deleting ${0}"],g)).then(function(){var a=f;c++;c===b.length&&i.changedItem(a,!0)},function(a){m(a);a=f;c++;c===b.length&&i.changedItem(a,!0)}))}})}});f.addCommand(s);s=new b.Command({name:h["Export as zip"],tooltip:h["Create a zip file of the folder contents and download it"],imageClass:"core-sprite-exportzip",id:"eclipse.downloadFile",visibleWhen:function(a){a=o(a);return a.ExportLocation&&a.Directory},hrefCallback:function(a){return o(a.items).ExportLocation}});
f.addCommand(s);s=new b.ParametersDescription([new b.CommandParameter("name","text",h["Name:"],h["New File"])]);s=new b.Command({name:h["New File"],tooltip:h["Create a new file"],imageClass:"core-sprite-new_file",id:"eclipse.newFile",parameters:s,callback:function(a){i.selection.getSelections(function(b){var c;c=b.length===1&&b[0].Directory?b[0]:o(a.items);b=function(a){if(a){var b=k.createFile(c.Location,a),d=i;y.showWhile(b,e.formatMessage(h["Creating ${0}"],a)).then(function(){d.changedItem.bind(d)(c,
!0)},m)}};a.parameters&&a.parameters.valueFor("name")?b(a.parameters.valueFor("name")):p(i,c,a.domNode.id,h["New File"],b)})},visibleWhen:function(a){a=o(a);return a.Directory&&!g.isAtRoot(a.Location)}});f.addCommand(s);var s=new b.ParametersDescription([new b.CommandParameter("name","text",h["Folder name:"],h["New Folder"])]),C=new b.Command({name:h["New Folder"],tooltip:h["Create a new folder"],imageClass:"core-sprite-new_folder",id:"eclipse.newFolder",parameters:s,callback:function(a){i.selection.getSelections(function(b){var c;
c=b.length===1&&b[0].Directory?b[0]:o(a.items);b=function(a){if(a){var b=k.createFolder(c.Location,a),d=i;y.showWhile(b,e.formatMessage(h["Creating ${0}"],a)).then(function(){d.changedItem.bind(d)(c,!0)},m)}};a.parameters&&a.parameters.valueFor("name")?b(a.parameters.valueFor("name")):p(i,c,a.domNode.id,h["New Folder"],b)})},visibleWhen:function(a){a=o(a);return a.Directory&&!g.isAtRoot(a.Location)}});f.addCommand(C);var F=new b.ParametersDescription([new b.CommandParameter("url","url",h["File URL:"],
"URL"),new b.CommandParameter("unzip","boolean",h["Unzip *.zip files:"],!0)]),F=new b.Command({name:h["Import from HTTP..."],tooltip:h["Copy a file from a URL and optionally unzip it"],id:"orion.importZipURL",parameters:F,callback:function(a){var b=o(a.items),c=a.parameters&&a.parameters.valueFor("url");if(b&&c){var b=b.ImportLocation+"?source="+c,a=a.parameters&&a.parameters.valueFor("unzip")&&c.indexOf(".zip")===c.length-4?"":"raw",a=k.remoteImport(b,{OptionHeader:a}),d=i;y.showWhile(a,e.formatMessage(h["Importing from ${0}"],
c)).then(function(){d.changedItem.bind(d)(this.treeRoot,!0)},m)}},visibleWhen:function(a){a=o(a);return a.Directory&&!g.isAtRoot(a.Location)}});f.addCommand(F);s=new b.Command({name:h.Folder,parameters:s,imageClass:"core-sprite-new_folder",tooltip:h["Create an empty folder"],description:h["Create an empty folder on the Orion server.  You can import, upload, or create content in the editor."],id:"orion.new.project",callback:function(a){i.selection.getSelections(function(b){b.length===1&&b[0].Directory?
C.callback(a):(o(a.items),a.parameters&&a.parameters.valueFor("name")?t(i,k,y,a.parameters.valueFor("name")):p(a.items,a.domNode.id,h["New Folder"],function(a){t(i,k,y,a)}))})},visibleWhen:A});f.addCommand(s);s=new b.Command({name:h["Link to Server"],tooltip:h["Link to existing content on the server"],description:h["Create a folder that links to an existing folder on the server."],imageClass:"core-sprite-link",id:"orion.new.linkProject",parameters:new b.ParametersDescription([new b.CommandParameter("name",
"text","Name:","New Folder"),new b.CommandParameter("url","url",h["Server path:"],"")]),callback:function(a){var b=function(a,b){if(a&&b){var c=k.createProject(i.treeRoot.ChildrenLocation,a,b,!0),d=i;y.showWhile(c,e.formatMessage(h["Linking to ${0}"],b)).then(function(){d.loadResourceList(d.treeRoot.Path,!0)},m)}};a.parameters&&a.parameters.valueFor("name")&&a.parameters.valueFor("url")?b(a.parameters.valueFor("name"),a.parameters.valueFor("url")):m(h["The name and server location were not specified."])},
visibleWhen:A});f.addCommand(s);s=new b.Command({name:h["Go Up"],tooltip:h["Move up to the parent folder"],imageClass:"core-sprite-move_up",id:"eclipse.upFolder",callback:function(a){if(a=o(a.items).Parents)window.document.location=a.length>0?"#"+a[0].ChildrenLocation:"#"},visibleWhen:function(a){a=o(a);return a.Parents}});f.addCommand(s);s=new b.Command({name:h["Import local file..."],tooltip:h["Copy files and folders from your local file system"],imageClass:"core-sprite-importzip",id:"orion.import",
callback:function(a){var b=o(a.items),c=i;(new r.ImportDialog({importLocation:b.ImportLocation,func:function(){c.changedItem.bind(c)(b,!0)}})).show()},visibleWhen:function(a){a=o(a);return a.Directory&&!g.isAtRoot(a.Location)}});f.addCommand(s);s=new b.Command({name:h["SFTP from..."],tooltip:h["Copy files and folders from a specified SFTP connection"],imageClass:"core-sprite-transferin",id:"orion.importSFTP",callback:function(a){var b=o(a.items);(new l.SFTPConnectionDialog({func:function(a,c,d,g,
f,j){var c=k.remoteImport(b.ImportLocation,{OptionHeader:j?"sftp,"+j:"sftp",Host:a,Port:c,Path:d,UserName:g,Passphrase:f}),l=i;y.showWhile(c,e.formatMessage(h["Importing from ${0}"],a)).then(function(){l.changedItem.bind(l)(this.treeRoot,!0)},m)}})).show()},visibleWhen:function(a){a=o(a);return a.Directory&&!g.isAtRoot(a.Location)}});f.addCommand(s);s=new b.Command({name:h["SFTP to..."],tooltip:h["Copy files and folders to a specified SFTP location"],imageClass:"core-sprite-transferout",id:"eclipse.exportSFTPCommand",
callback:function(a){var b=o(a.items);(new l.SFTPConnectionDialog({func:function(a,c,d,g,f){var c=k.remoteExport(b.ExportLocation,{OptionHeader:f?"sftp,"+f:"sftp",Host:a,Path:c,UserName:d,Passphrase:g}),j=i;y.showWhile(c,e.formatMessage(h["Exporting from ${0}"],a)).then(function(){j.changedItem.bind(j)(this.treeRoot,!0)},m)}})).show()},visibleWhen:function(a){a=o(a);return a.Directory&&!g.isAtRoot(a.Location)}});f.addCommand(s);s=new b.Command({name:h["Copy to"],tooltip:"Copy files and folders to a specified location",
id:"eclipse.copyFile",choiceCallback:function(a,b){return x(a,b,!0)},visibleWhen:u});f.addCommand(s);u=new b.Command({name:h["Move to"],tooltip:h["Move files and folders to a new location"],id:"eclipse.moveFile",choiceCallback:function(a,b){return x(a,b,!1)},visibleWhen:u});f.addCommand(u);var I=[],u=new b.Command({name:h["Copy Items"],tooltip:h["Copy the selected items to the copy/paste buffer"],id:"eclipse.copySelections",callback:function(){i.selection.getSelections(function(a){I=a})}});f.addCommand(u);
u=new b.Command({name:h["Paste Items"],tooltip:h["Paste items from the copy/paste buffer"],id:"eclipse.pasteSelections",visibleWhen:function(a){a=o(a);return a.Directory&&!g.isAtRoot(a.Location)},callback:function(a){i.selection.getSelections(function(b){var c;c=b.length===1&&b[0].Directory?b[0]:o(a.items);if(I.length>0)if(g.isAtRoot(c.Location))m(h["Cannot paste into the root"]);else for(b=0;b<I.length;b++){var d=I[b].Location,f=I[b].Name||null;if(d&&(I[b].parent&&I[b].parent.Location===c.Location&&
((f=window.prompt(e.formatMessage(h["Enter a new name for '${0}'"],I[b].Name),e.formatMessage(h["Copy of ${0}"],I[b].Name)))||(d=null)),d)){var f=k.copyFile(d,c.Location,f),j=i;y.showWhile(f,e.formatMessage(h["Pasting ${0}"],d)).then(function(){j.changedItem.bind(j)(c,!0)},m)}}})}});f.addCommand(u)};var C;v.createNewContentCommand=function(a,c,d,e,g,f,j){var e=d?[]:[new b.CommandParameter("folderName","text",h["Folder name:"],c),new b.CommandParameter("url","url",h["Extracted from:"],e),new b.CommandParameter("unzip",
"boolean",h["Unzip *.zip files:"],!0)],i=null;e.length>0&&(i=new b.ParametersDescription(e));return new b.Command({name:c,parameters:i,id:a,callback:function(a){if(d)window.open(d);else if(a.parameters&&a.parameters.valueFor("folderName")){var b=a.parameters.valueFor("folderName");t(g,f,j,b,function(b){a.parameters.clientCollect=!0;a.commandService.runCommand("orion.importZipURL",b,g,a.parameters)})}else p(g,a.items,a.domNode.id,c,function(b){t(g,f,j,b,function(b){a.commandService.runCommand("orion.importZipURL",
b,g,a.parameters)})})},visibleWhen:A})};v.createAndPlaceFileCommandsExtension=function(a,d,e,g,f,j){var i=new k,l=a.getServiceReferences("orion.navigate.command"),n=[],m;for(m=0;m<l.length;m++)if(l[m].getProperty("id")!=="orion.navigateFromMetadata"){for(var o=a.getService(l[m]),q={},p=l[m].getPropertyKeys(),r=0;r<p.length;r++)q[p[r]]=l[m].getProperty(p[r]);n.push({properties:q,service:o})}k.when(function(){return C||a.getService("orion.core.contenttypes").getContentTypes().then(function(a){return C=
a})}(),function(){n=n.concat(c._createOpenWithCommands(a,C));var l=!1,o=!1,p=[];for(m=0;m<n.length;m++){var q=n[m].properties,r=c._createCommandOptions(q,n[m].service,a,C,!0);p.push(r);r.then(function(a){a=new b.Command(a);if(this.isEditor)a.isEditor=this.isEditor;d.addCommand(a);l||(l=!0,d.addCommandGroup(f,"eclipse.fileCommandExtensions",1E3,null,j));o||(o=!0,d.addCommandGroup(f,"eclipse.openWith",1E3,h["Open With"],j+"/eclipse.fileCommandExtensions"));this.isEditor?d.registerCommandContribution(f,
a.id,this.index,j+"/eclipse.fileCommandExtensions/eclipse.openWith"):d.registerCommandContribution(f,a.id,this.index,j+"/eclipse.fileCommandExtensions")}.bind({isEditor:q.isEditor,index:m}))}k.all(p,function(a){return{_error:a}}).then(function(){v.updateNavTools(a,e,g,f,e.treeRoot);e.updateCommands();i.resolve({})})});return i};return v});
define("orion/explorers/navigatorRenderer","i18n!orion/navigate/nls/messages,require,orion/Deferred,orion/webui/littlelib,orion/explorers/explorer,orion/explorers/navigationUtils,orion/extensionCommands,orion/contentTypes".split(","),function(h,i,f,e,d,g,b){function c(a,c,d,e,g,h,i,p){var o;if(c.Directory)o=document.createElement("a"),o.className="navlinkonpage",o.id=d+"NameLink",o.href=a+"#"+c.ChildrenLocation,o.appendChild(document.createTextNode(c.Name));else{h||(h=b.getOpenWithCommands(e));if(!i)for(a=
0;a<h.length;a++)h[a].isEditor==="default"&&(i=h[a]);o=document.createElement("a");o.className="navlink targetSelector";o.id=d+"NameLink";p&&typeof p==="object"&&Object.keys(p).forEach(function(a){o[a]=p[a]});o.appendChild(document.createTextNode(c.Name));for(var A=c.Location,t=!1,a=0;a<h.length;a++)if(d=h[a],d.visibleWhen(c)){A=d.hrefCallback({items:c});t=!0;break}f.when(g.getFileContentType(c),function(a){var b;if(b=!t)if(b=i){a:{switch(a&&a.id){case "image/jpeg":case "image/png":case "image/gif":case "image/ico":case "image/tiff":case "image/svg":b=
!0;break a}b=!1}b=!b}b&&(A=i.hrefCallback({items:c}));b=o;var d=c.Location,e;switch(a&&a.id){case "image/jpeg":case "image/png":case "image/gif":case "image/ico":case "image/tiff":case "image/svg":e=document.createElement("img");e.src=d;e.classList.add("thumbnail");break;default:a&&a.image?(e=document.createElement("img"),e.src=a.image,e.classList.add("thumbnail")):(e=document.createElement("span"),e.className="core-sprite-file_model modelDecorationSprite")}b.firstChild?b.insertBefore(e,b.firstChild):
b.appendChild(e);o.href=A})}return o}function a(a,b,c,d){this.explorer=b;this.commandService=c;this.contentTypeService=d;this.openWithCommands=null;this.actionScopeId=a.actionScopeId;this._init(a);this.target="_self"}a.prototype=new d.SelectionRenderer;a.prototype.getCellHeaderElement=function(a){if(this.oneColumn&&a!==0)return null;switch(a){case 0:case 1:case 2:document.createElement("th").style.height="8px"}};a.prototype.setTarget=function(a){this.target=a};a.prototype.getCellElement=function(a,
d,e){switch(a){case 0:var a=document.createElement("td"),f=document.createElement("span");f.id=e.id+"MainCol";a.appendChild(f);f.className="mainNavColumn";var h;if(d.Directory)this.getExpandImage(e,f),h=c(this.folderLink||"",d,e.id,this.commandService,this.contentTypeService),f.appendChild(h),this.explorer._makeDropTarget(d,e),this.explorer._makeDropTarget(d,h);else{if(!this.openWithCommands){this.openWithCommands=b.getOpenWithCommands(this.commandService);for(h=0;h<this.openWithCommands.length;h++)if(this.openWithCommands[h].isEditor===
"default")this.defaultEditor=this.openWithCommands[h]}h=c("",d,e.id,this.commandService,this.contentTypeService,this.openWithCommands,this.defaultEditor,{target:this.target});f.appendChild(h)}g.addNavGrid(this.explorer.getNavDict(),d,h);this.actionScopeId&&this.commandService.renderCommands(this.actionScopeId,f,d,this.explorer,"tool",null,!0);return a;case 1:if(this.oneColumn)return null;e=document.createElement("td");if(d.LocalTimeStamp)e.textContent=(new Date(d.LocalTimeStamp)).toLocaleString();
return e;case 2:if(this.oneColumn)return null;e=document.createElement("td");if(!d.Directory&&typeof d.Length==="number")d=parseInt(d.Length,10)/1024,e.textContent=Math.ceil(d).toLocaleString()+" KB";e.style.textAlign="right";return e}};a.prototype.constructor=a;return{NavigatorRenderer:a,createLink:c}});
define("orion/navoutliner","i18n!orion/navigate/nls/messages,require,orion/webui/littlelib,orion/i18nUtil,orion/commands,orion/section,orion/selection,orion/explorers/explorer,orion/explorers/navigatorRenderer,orion/explorers/navigationUtils".split(","),function(h,i,f,e,d,g,b,c,a,j){function k(a,b){this.explorer=b;this._init(a)}function n(a,b,c){this.selection=b;this.registry=a;this.renderer=new k({checkbox:!1},this);this.renderer.commandService=c;this.renderer.contentTypeService=a.getService("orion.core.contenttypes")}
function l(a){var b=f.node(a.parent);if(!b)throw"no parent";if(!a.serviceRegistry)throw"no service registry";this._parent=b;this._registry=a.serviceRegistry;this.commandService=a.commandService;var c=a.serviceRegistry,g=this,b=new d.Command({name:"Delete",imageClass:"core-sprite-delete",id:"eclipse.deleteFave",visibleWhen:function(a){a=Array.isArray(a)?a:[a];if(a.length===0)return!1;for(var b=0;b<a.length;b++)if(!a[b].isFavorite)return!1;return!0},callback:function(b){var b=Array.isArray(b.items)?
b.items:[b.items],c=b.length===1?e.formatMessage(h["Are you sure you want to delete '${0}' from the favorites?"],b[0].name):e.formatMessage(h["Are you sure you want to delete these ${0} favorites?"],b.length);if(window.confirm(c))for(c=0;c<b.length;c++)a.serviceRegistry.getService("orion.page.progress").progress(a.serviceRegistry.getService("orion.core.favorite").removeFavorite(b[c].path),"Removing favorite "+b[c].name)}}),i=new d.Command({name:h.Rename,imageClass:"core-sprite-rename",id:"eclipse.renameFave",
parameters:new d.ParametersDescription([new d.CommandParameter("name","text","Name:","")]),visibleWhen:function(a){a=Array.isArray(a)?a:[a];return a.length===1&&a[0].isFavorite},callback:function(a){var b=Array.isArray(a.items)?a.items[0]:a.items;a.parameters&&a.parameters.valueFor("name")&&c.getService("orion.page.progress").progress(c.getService("orion.core.favorite").renameFavorite(b.path,a.parameters.valueFor("name")),"Rename favorite "+b.name+" to "+a.parameters.valueFor("name"))}});this.commandService.addCommand(b);
this.commandService.addCommand(i);b=this._registry.getService("orion.core.favorite");i=this._registry.getService("orion.page.progress");if(b){var j=this._registry;i.progress(b.getFavorites(),"Getting favorites").then(function(a){g.render(a.navigator,j)});b.addEventListener("favoritesChanged",function(a){for(var b=[],c=0;c<a.navigator.length;c++)a.navigator[c].isExternalResource||b.push(a.navigator[c]);g.render(b,a.registry)})}}k.prototype=c.SelectionRenderer.prototype;k.prototype.constructor=k;k.prototype.getLabelColumnIndex=
function(){return 0};k.prototype.getCellElement=function(b,c,d){var e,g,f,k,b=document.createElement("td");d.appendChild(b);b.classList.add("mainNavColumn");b.classList.add("singleNavColumn");c.directory?k=a.createLink(i.toUrl("navigate/table.html"),{Name:c.name,ChildrenLocation:c.path,Directory:!0},"",this.commandService,this.contentTypeService):c.path?k=a.createLink("",{Name:c.name,Location:c.path},"",this.commandService,this.contentTypeService):typeof c.getProperty==="function"&&c.getProperty("Name")&&
c.getProperty("top")?(e=i.toUrl("navigate/table.html")+"#"+c.getProperty("top"),g="navlinkonpage",f=c.getProperty("Name")):(e="",f=h["Unknown item"]);e==="#"&&(e="");if(!k)k=document.createElement("a"),k.href=e,k.className=g,k.appendChild(document.createTextNode(f));b.appendChild(k);j.addNavGrid(this.explorer.getNavDict(),c,k)};n.prototype=c.Explorer.prototype;n.prototype.constructor=n;l.prototype={render:function(a,i){var j=this.commandService,k=this;if(i){var l=i.getServiceReferences("orion.core.file");
if(l.length>1){if(!this.fileSystemsSection)this.fileSystemsSection=new g.Section(this._parent,{id:"fileSystemsSection",title:"Places",content:'<div id="fileSystemsContent"></div>',preferenceService:i.getService("orion.core.preference"),canHide:!0,useAuxStyle:!0,slideout:!0,onExpandCollapse:function(a,b){j.destroy(b.selectionNode);a&&j.renderCommands(b.selectionNode.id,b.selectionNode,null,k,"button")}});this.explorer=new n(i,this.fileSystemSelection);this.fileSystemsTable=this.explorer.createTree("fileSystemsContent",
new c.SimpleFlatModel(l,"fs",function(a){return typeof a.getProperty==="function"&&a.getProperty("top")?a.getProperty("top"):""}))}}if(!this.favoritesSection){this.favoritesSection=new g.Section(this._parent,{id:"favoritesSection",title:h.Favorites,content:'<div id="favoritesContent"></div>',preferenceService:i.getService("orion.core.preference"),canHide:!0,useAuxStyle:!0,slideout:!0,onExpandCollapse:function(a,b){j.destroy(b.selectionNode);a&&j.renderCommands(b.selectionNode.id,b.selectionNode,null,
k,"button")}});this.favoritesSelection=new b.Selection(i,"orion.favorites.selection");this.commandService.registerCommandContribution(this.favoritesSection.selectionNode.id,"eclipse.renameFave",1,null,!1,new d.CommandKeyBinding(113,!1,!1,!1,!1,"favoritesContent","Favorites"));this.commandService.registerCommandContribution(this.favoritesSection.selectionNode.id,"eclipse.deleteFave",2,null,!1,new d.CommandKeyBinding(46,!1,!1,!1,!1,"favoritesContent","Favorites"));j.registerSelectionService(this.favoritesSection.selectionNode.id,
this.favoritesSelection);var A=this.favoritesSection.selectionNode.id;i.getService("orion.favorites.selection").addEventListener("selectionChanged",function(a){var b=f.node(A);b&&(j.destroy(b),j.renderCommands(A,b,a.selections,k,"button"))})}if(a.length>0)this.explorer=new n(i,this.favoritesSelection,this.commandService),this.favoritesTable=this.explorer.createTree("favoritesContent",new c.SimpleFlatModel(a,"fav",function(a){return a.path||""})),this.explorer.getNavHandler()._clearSelection(!1);else if(l=
f.node("favoritesContent")){f.empty(l);var t=document.createElement("p");t.appendChild(document.createTextNode(e.formatMessage(h["You can create favorites by selecting any file or folder in the navigator and choosing ${0} from the ${1} menu."],"'"+h["Make Favorite"]+"'","'"+h.Actions+"'")));l.appendChild(t)}}};l.prototype.constructor=l;return{NavigationOutliner:l}});
define("orion/PageLinks",["require","orion/Deferred","orion/PageUtil","orion/URITemplate","orion/URL-shim"],function(h,i,f,e){function d(d,b){for(var c=d.getServiceReferences(b||"orion.page.link"),a=f.matchResourceParameters(window.location.href),j={OrionHome:(new URL(h.toUrl("."),window.location)).href.slice(0,-1),Location:a.resource},a=[],k=0;k<c.length;k++){for(var n={},l=c[k].getPropertyKeys(),r=0;r<l.length;r++)n[l[r]]=c[k].getProperty(l[r]);if(n.uriTemplate&&n.nls&&(n.name||n.nameKey)){var q=
new i;h(["i18n!"+n.nls],function(a){var b=new e(n.uriTemplate),b=window.decodeURIComponent(b.expand(j)),b=f.validateURLScheme(b);n.href=b;n.textContent=n.nameKey?a[n.nameKey]:n.name;q.resolve(n)});a.push(q)}else if(n.uriTemplate&&n.name)l=new e(n.uriTemplate),l=window.decodeURIComponent(l.expand(j)),l=f.validateURLScheme(l),n.href=l,n.textContent=n.name,a.push((new i).resolve(n))}return i.all(a)}return{createPageLinks:function(e,b){return d(e,b).then(function(b){return b.map(function(a){var b=a.href,
a=a.textContent,c=document.createElement("a");c.href=b;c.target="_self";c.classList.add("targetSelector");c.textContent=a;return c})})},getPageLinksInfo:d}});
define("orion/widgets/UserMenu",["i18n!orion/widgets/nls/messages","require","orion/webui/littlelib","orion/PageLinks"],function(h,i,f,e){function d(d){this._init(d)}d.prototype={_init:function(d){this._dropdownNode=f.node(d.dropdownNode);if(!this._dropdownNode)throw"no dom node for dropdown found";this._dropdown=d.dropdown;this._serviceRegistry=d.serviceRegistry;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(d){var b=0,c;for(c in d)d.hasOwnProperty(c)&&b++;return b},_makeMenuItem:function(d,b){var c=document.createElement("span");c.role="menuitem";c.tabIndex=0;var a=document.createTextNode(d);c.appendChild(a);c.classList.add("dropdownMenuItem");c.addEventListener("click",b,!1);c.addEventListener("keydown",function(a){(a.keyCode===
f.KEY.ENTER||a.keyCode===f.KEY.SPACE)&&b()},!1);return c},_renderAuthenticatedService:function(d){var b=this,c=this.authenticatedServices[d].authService;if(c&&c.logout){var a=document.createElement("li"),e=this._makeMenuItem(h["Sign Out"],function(){c.logout().then(function(){b.addUserItem(d,c,b.authenticatedServices[d].label);localStorage.removeItem(d);localStorage.removeItem("lastLogin");for(var a=localStorage.length-1;a>=0;a--){var e=localStorage.key(a);e&&e.indexOf("/orion/preferences/user")===
0&&localStorage.removeItem(e)}c.getAuthForm(window.location.href).then(function(a){window.location=a})})});a.appendChild(e);this._dropdownNode.appendChild(a)}},renderServices:function(){function d(a){c[a]||(c[a]=b.createDocumentFragment());return c[a]}var b=document,c=[];e.getPageLinksInfo(this._serviceRegistry,"orion.page.link.user").then(function(a){this._dropdown.empty();a.forEach(function(a){var c=d(typeof a.category==="number"?a.category:1),e=b.createElement("li"),f=b.createElement("a");f.role=
"menuitem";f.classList.add("dropdownMenuItem");f.href=a.href;f.textContent=a.textContent;e.appendChild(f);c.appendChild(e)});if(this.keyAssistFunction){var a=document.createElement("li"),e=this._makeMenuItem(h["Keyboard Shortcuts"],this.keyAssistFunction);e.classList.add("key-assist-menuitem");a.appendChild(e);d(0).appendChild(a)}var f=this;c.sort(function(a,b){return a-b}).forEach(function(a,b){if(b<c.length-1){var d=document.createElement("li");d.classList.add("dropdownSeparator");var e=document.createElement("span");
e.classList.add("dropdownSeparator");d.appendChild(e);a.appendChild(d)}f._dropdownNode.appendChild(a)});if(this.isSingleService())for(var i in this.authenticatedServices)this.authenticatedServices.hasOwnProperty(i)&&this._renderAuthenticatedService(i,0)}.bind(this))},setKeyAssist:function(d){this.keyAssistFunction=d;this.renderServices()},addUserItem:function(d,b,c,a){a?(this.unauthenticatedServices[d]&&delete this.unauthenticatedServices[d],this.authenticatedServices[d]={authService:b,label:c,data:a}):
(this.authenticatedServices[d]&&delete this.authenticatedServices[d],this.unauthenticatedServices[d]=this.unauthenticatedServices[d]?{authService:b,label:c,pending:this.unauthenticatedServices[d].pending}:{authService:b,label:c});this.renderServices()}};d.prototype.constructor=d;return{UserMenu:d}});
define("orion/globalCommands","i18n!orion/nls/messages,require,orion/commonHTMLFragments,orion/commands,orion/parameterCollectors,orion/extensionCommands,orion/uiUtils,orion/editor/keyBinding,orion/breadcrumbs,orion/webui/littlelib,orion/webui/splitter,orion/webui/dropdown,orion/webui/tooltip,orion/favorites,orion/contentTypes,orion/URITemplate,orion/PageUtil,orion/widgets/themes/container/ThemeSheetWriter,orion/searchUtils,orion/inputCompletion/inputCompletion,orion/globalSearch/advSearchOptContainer,orion/Deferred,orion/widgets/UserMenu,orion/PageLinks,orion/webui/dialogs/OpenResourceDialog,text!orion/banner/banner.html,text!orion/banner/footer.html,text!orion/banner/toolbar.html".split(","),function(h,
i,f,e,d,g,b,c,a,j,k,n,l,r,q,m,p,o,A,t,v,z,y,x,C,H,G,B){function w(a,b){if(a.getLabel)return a.getLabel();else{var c=new z;c.resolve(b.properties.name);return c}}function L(a){j.node("progressPane").setAttribute("aria-label",h["Operations - Press spacebar to show current operations"]);(a=a.getService("orion.page.progress"))&&a.init.bind(a)("progressPane")}function J(a,b){var c=a.getService("orion.core.auth");c!==null&&c.getUser().then(function(a){var c;a.Name?c=document.createTextNode(a.Name):a.login&&
(c=document.createTextNode(a.login));c&&(b.childNodes.length>0?b.childNodes[0].nodeType===3?b.replaceChild(c,b.childNodes[0]):b.insertBefore(c,b.childNodes[0]):b.appendChild(c))})}function O(a,b){var c=a.getServiceReferences("orion.core.auth");V=[];if(j.node("userMenu")){var d=j.node("userDropdown"),e=new n.Dropdown({dropdown:d}),g=new y.UserMenu({dropdownNode:d,dropdown:e,serviceRegistry:a}),d=j.node("userTrigger");new l.Tooltip({node:d,text:h.Options,position:["below","left"]});J(a,d);g.setKeyAssist(b);
for(d=0;d<c.length;d++){var e=c[d],f=a.getService(e);w(f,e).then(function(a){f.getKey().then(function(b){V.push(b);f.getUser().then(function(c){g.addUserItem(b,f,a,c)},function(c,d){g.addUserItem(b,f,a,d)});window.addEventListener("storage",function(){U[b]!==localStorage.getItem(b)&&(U[b]=localStorage.getItem(b),f.getUser().then(function(c){g.addUserItem(b,f,a,c)},function(){g.addUserItem(b,f,a)}))},!1)})})}}}function u(a){var b=document.createElement("span");b.id="advancedSearchDropDown";j.node("searchOptions").appendChild(b);
b.tabIndex=0;b.classList.add("advancedSearchDecorationSprite");b.classList.add("core-sprite-openarrow");b.title=h["Advanced search"];b.onclick=function(){a.toggle()};b.addEventListener("keydown",function(b){(b.charCode||b.keyCode)===13&&a.toggle()});b.classList.add("bannerMenuSearchOptions")}function s(a,b){var c=j.node("relatedDropdown");K||(K=new n.Dropdown({dropdown:c}));a._addMenuItem(c,b)}function D(a,b,c,d,f){var h,i=a.getServiceReferences("orion.page.link.related");i.length<=0||j.node("relatedLinks")&&
z.when(function(){if(h)return h;var b=a.getService("orion.core.contenttypes");b||(b=new q.ContentTypeService(a),b=a.getService("orion.core.contenttypes"));return b.getContentTypes().then(function(a){return h=a})}(),function(){var k;j.node("relatedLinks")&&K&&(K.close(),K.empty());for(var l=[],n=0;n<i.length;n++){var m={},o,p=i[n].getPropertyKeys();for(o=0;o<p.length;o++)m[p[o]]=i[n].getProperty(p[o]);if(m.id){var r=function(a){if(a)if(!a.visibleWhen||a.visibleWhen(b)){var c=new e.CommandInvocation(d,
b,b,null,a);s(a,c)}else typeof f==="function"&&(k||(k=f()),z.when(k,function(c){c&&b===R&&(!a.visibleWhen||a.visibleWhen(c))&&s(a,new e.CommandInvocation(d,c,c,null,a))}))},q=null;o=null;if(c.indexOf(m.id)<0)if((m.nls&&m.nameKey||m.name)&&m.uriTemplate)o=g._createCommandOptions(m,i[n],a,h,!0),l.push(o),o.then(function(a){a=new e.Command(a);r(a)});else{if(!q&&(q=d.findCommand(m.id))){r(q);continue}if(!q){var S=a.getServiceReferences("orion.navigate.command");for(o=0;o<S.length;o++)if(S[o].getProperty("id")===
m.id){for(var m={},p=S[o].getPropertyKeys(),t=0;t<p.length;t++)m[p[t]]=S[o].getProperty(p[t]);o=g._createCommandOptions(m,S[o],a,h,!0);l.push(o);o.then(function(a){q=new e.Command(a);r(q)});break}}}}}z.all(l,function(a){return a}).then(function(){var a=j.node("relatedTrigger");if(K&&a)a.style.visibility=K.getItems().length===0?"hidden":"visible"})})}function Q(a){var b=j.node("globalActions");b&&(a.destroy(b),a.renderCommands(b.id,b,{},{},"tool"))}function F(a){a.getPreferences("/themes",2).then(function(a){var b=
a.get("selected");if(b&&(b=JSON.parse(b),a=a.get("styles"))){var a=JSON.parse(a),c;for(c in a)if(a[c].name===b.selected){c=a[c];c=(new o.ThemeSheetWriter).getSheet(c);b=document.createElement("STYLE");b.appendChild(document.createTextNode(c));(document.getElementsByTagName("HEAD")[0]||document.documentElement).appendChild(b);break}}})}function I(a){var b={},c=null;typeof a==="string"&&(a=j.node(a));a||(a=j.node("pageActions"));for(var d=a;d&&d.classList;){if(d.classList.contains("toolComposite")){c=
d;break}d=d.parentNode}if(a.classList.contains("commandMarker"))b.commandNode=a;if(c&&(b.slideContainer=j.$(".slideParameters",c),b.parameterArea=j.$(".parameters",c),b.dismissArea=j.$(".parametersDismiss",c),b.notifications=j.$("#notificationArea",c),c.parentNode&&(b.toolbarTarget=j.$(".toolbarTarget",c.parentNode),b.toolbarTarget)))a=j.bounds(c),b.toolbarTargetY=a.height+1;return b}function T(a){if(a.toolbarTarget&&a.toolbarTargetY){var b=0,c;a.notifications&&a.notifications.classList.contains("slideContainerActive")&&
(c=j.bounds(a.notifications),b+=c.height);a.slideContainer&&a.slideContainer.classList.contains("slideContainerActive")&&(c=j.bounds(a.slideContainer),b+=c.height);b>0&&(b+=8);a.toolbarTarget.style.top=a.toolbarTargetY+b+"px";a.toolbarTarget.style.bottom=0}}var m=function(a){var b=document.createElement("a");b.href=a;return b.href}(i.toUrl("auth/NotifyAuthentication.html")),U={},V=[],K,R,W=[],E,P=null;return{addSettings:function(a){var b=document.getElementById("settingsTab"),c=document.getElementById("settingsAction"),
d=!1,e;b.style.visibility="";c.style.visibility="";c.onclick=function(){if(!d){d=!0;b.style.backgroundColor="#555";b.style.zIndex="99";b.style.borderTopRightRadius="3px";b.style.borderTopLeftRadius="3px";c.className="core-sprite-settings-white";b.id="settingsNode";c.id="settingsButton";var g=document.getElementById("innerPanels"),f=g.getBoundingClientRect(),h=b.getBoundingClientRect();e?e.style.visibility="visible":(e=document.createElement("div"),e.className="settingsPanel",e.style.width="150px",
e.style.height="150px",e.style.backgroundColor="#555",e.style.zIndex="99",e.style.top=h.top-f.top+24-4+"px",e.id="settingsPanel",e.style.borderTopLeftRadius="3px",e.style.borderBottomRightRadius="3px",e.style.borderBottomLeftRadius="3px",g.appendChild(e),j.addAutoDismiss([c,b,e],function(){c.className="core-sprite-settings";b.style.backgroundColor="white";e.style.visibility="hidden";d=!1}));j.empty(e);a.appendTo(e)}}},generateBanner:function(a,g,m,n,o,p,q,s){function y(a){a.registerService("orion.cm.managedservice",
{updated:function(a){for(var a=a&&a["links.newtab"]!=="undefined"?a["links.newtab"]?"_blank":"_self":"_self",b=j.$$array(".targetSelector"),c=0;c<b.length;c++)b[c].target=a}},{pid:"nav.config"})}F(n);n=j.node(a);if(!n)throw h["could not find banner parent, id was "]+a;a=document.createRange();a.selectNode(n);a=a.createContextualFragment(H);j.processTextNodes(a,h);n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a);a=j.node("home");a.href=i.toUrl("navigate/table.html");a.setAttribute("aria-label",
h["Orion Home"]);j.node("progressPane").src=i.toUrl("images/none.png");if(a=j.node("pageToolbar"))a.classList.add("toolbarLayout"),a.innerHTML=B+f.slideoutHTMLFragment("mainToolbar");(a=j.node("closeNotifications"))&&a.setAttribute("aria-label",h["Close notification"]);if(a=j.node("footer"))a.innerHTML=G,j.processTextNodes(a,h);m.setParameterCollector(new d.CommandParameterCollector(I,T));var w=document.createElement("div");w.id="keyAssist";w.style.display="none";w.classList.add("keyAssistFloat");
w.role="list";w.setAttribute("aria-atomic","true");w.setAttribute("aria-live","assertive");document.body.appendChild(w);document.addEventListener("keydown",function(a){if(a.charOrCode===j.KEY.ESCAPE)w.style.display="none"},!1);j.addAutoDismiss([w],function(){w.style.display="none"});var R=j.node("primaryNav");R&&x.createPageLinks(g,"orion.page.link").then(function(a){a.forEach(function(a){R.appendChild(a)})});var E=j.node("search");if(!E)throw"failed to generate HTML for banner";E.setAttribute("placeholder",
h.Search);new l.Tooltip({node:E,text:h["Type a keyword or wild card to search in root"],position:["below","left"]});var D=new v.advSearchOptContainer(E,o,g,{group:"advancedSearch"});new t.InputCompletion(E,function(a){A.getMixedSearches(g,!0,!1,function(b){var c,d=[],e=!1,g=!1;for(c in b)b[c].label&&b[c].value?(e||(d.push({type:"category",label:h["Saved searches"]}),e=!0),d.push({type:"proposal",value:{name:b[c].label,value:i.toUrl("search/search.html")+"#"+b[c].value,type:"link"}})):(g||(d.push({type:"category",
label:h["Recent searches"]}),g=!0),d.push({type:"proposal",label:b[c].name,value:b[c].name}));a(d)})},{group:"globalSearch",extendedProvider:function(a,b){var c=g.getServiceReferences("orion.search.proposal");if(!c||c.length===0)b(null);else{var d=[];c.forEach(function(b){var c=b.getProperty("filterForMe");d.push(g.getService(b).run(a).then(function(a){for(var b={filterForMe:c,proposals:[]},d=0;d<a.length;d++){b.proposals.push({type:"category",label:a[d].category});for(var e=0;e<a[d].datalist.length;e++)b.proposals.push({type:"proposal",
label:a[d].datalist[e],value:a[d].datalist[e]})}return b}))});z.all(d).then(function(a){b(a)})}}});E.addEventListener("keydown",function(a){a.defaultPrevented||(a.charCode||a.keyCode)===13&&A.doSearch(o,g,E.value)});u(D);j.addAutoDismiss([j.node(D.containerId),j.node("advancedSearchDropDown")],function(){D.dismiss()});if(a=j.$(".split")){var n=j.$(".sidePanelLayout"),K=j.$(".mainPanelLayout");if(n&&K)P={side:n,main:K},P.splitter=new k.Splitter({node:a,sidePanel:n,mainPanel:K,toggle:!0}),a=new e.Command({name:h["Toggle side panel"],
tooltip:h["Open or close the side panel"],id:"orion.toggleSidePane",callback:function(){P.splitter.toggleSidePanel()}}),m.addCommand(a),m.registerCommandContribution("pageActions","orion.toggleSidePane",1,null,!0,new e.CommandKeyBinding("o",!0)),q&&(P.splitter.addResizeListener(function(a){q&&a===K&&q.getTextView().resize()}),q.getTextView().setKeyBinding(new c.KeyBinding("o",!0),"toggleOutliner"),q.getTextView().setAction("toggleOutliner",function(){P.splitter.toggleSidePanel();return!0},{name:h["Toggle Outliner"]}))}a=
new e.Command({name:h["Make Favorite"],tooltip:h["Add to the favorites list"],imageClass:"core-sprite-makeFavorite",id:"orion.makeFavorite",visibleWhen:function(a){a=Array.isArray(a)?a:[a];if(a.length===0)return!1;for(var b=0;b<a.length;b++)if(!a[b].Location)return!1;return!0},callback:function(a){for(var a=Array.isArray(a.items)?a.items:[a.items],b=g.getService("orion.core.favorite"),c=g.getService("orion.page.progress"),d=function(a){return function(d){d?g.getService("orion.page.message").setMessage(a.Name+
h[" is already a favorite."],2E3):c.progress(b.makeFavorites(a),"Making favorite "+a.Name)}},e=0;e<a.length;e++){var f=a[e];c.progress(b.hasFavorite(f.ChildrenLocation||f.Location),"Checking favorite "+f.Name).then(d(f))}}});m.addCommand(a);var J=function(a,b,c){var d=b.getService("orion.core.favorite"),e=b.getService("orion.page.progress");d||(d=new r.FavoritesService({serviceRegistry:b}),d=b.getService("orion.core.favorite"));var g=new C.OpenResourceDialog({searcher:a,progress:e,searchRenderer:a.defaultRenderer,
favoriteService:d,onHide:function(){c&&c.getTextView().focus()}});window.setTimeout(function(){g.show()},0)},a=new e.Command({name:h["Find File Named..."],tooltip:h["Choose a file by name and open an editor on it"],id:"eclipse.openResource",callback:function(){J(o,g,q)}});q&&(q.getTextView().setKeyBinding(new c.KeyBinding("f",!0,!0,!1),a.id),q.getTextView().setAction(a.id,function(){J(o,g,q);return!0},a));m.addCommand(a);m.registerCommandContribution("globalActions","eclipse.openResource",100,null,
!0,new e.CommandKeyBinding("f",!0,!0));a=new e.Command({name:h["Global search"],tooltip:h["Global search"],id:"eclipse.globalSearch",callback:function(){var a=j.node("search");a&&a.focus()}});q&&(q.getTextView().setKeyBinding(new c.KeyBinding("h",!0,!1,!0),a.id),q.getTextView().setAction(a.id,function(){var a=q.getSelection(),b=null;a.end>a.start&&(b=q.getModel().getText(a.start,a.end));if(a=j.node("search")){if(b)a.value=b;a.focus()}return!0},a));m.addCommand(a);m.registerCommandContribution("globalActions",
"eclipse.globalSearch",101,null,!0,new e.CommandKeyBinding("h",!0,!1,!0));a=new e.Command({name:h["Toggle banner and footer"],tooltip:h["Hide or show the page banner and footer"],id:"orion.toggleTrim",callback:function(){var a=j.node("banner"),b=j.node("footer"),c=j.$(".content-fixedHeight");a.style.display==="none"?(a.style.display="block",b.style.display="block",c.classList.remove("content-fixedHeight-maximized")):(a.style.display="none",b.style.display="none",c.classList.add("content-fixedHeight-maximized"));
q&&q.getTextView().resize();return!0}});m.addCommand(a);m.registerCommandContribution("globalActions","orion.toggleTrim",100,null,!0,new e.CommandKeyBinding("m",!0,!0));q&&(q.getTextView().setKeyBinding(new e.CommandKeyBinding("m",!0,!0),a.id),q.getTextView().setAction(a.id,a.callback,a));s&&s.addHandler({isActive:function(){return w.style.display==="block"},cancel:function(){return this.isActive()?(w.style.display="none",!0):!1}});s=new e.Command({name:h["System Configuration Details"],tooltip:h["System Config Tooltip"],
id:"orion.configDetailsPage",hrefCallback:function(){return i.toUrl("help/about.html")}});m.addCommand(s);m.registerCommandContribution("globalActions","orion.configDetailsPage",100,null,!0,new e.CommandKeyBinding(112,!0,!0));s=new e.Command({name:h["Background Operations"],tooltip:h["Background Operations Tooltip"],id:"orion.backgroundOperations",hrefCallback:function(){return i.toUrl("operations/list.html")}});m.addCommand(s);m.registerCommandContribution("globalActions","orion.backgroundOperations",
100,null,!0,new e.CommandKeyBinding("o",!0,!0));s=new e.Command({name:h["Show Keys"],tooltip:h["Show a list of all the keybindings on this page"],id:"eclipse.keyAssist",callback:function(){if(w.style.display==="none"){var a;j.empty(w);if(q){a=document.createElement("h2");a.appendChild(document.createTextNode(h.Editor));w.appendChild(a);a=q.getTextView().getActions(!1);for(var c=0;c<a.length;c++){var d=a[c],e=d,g=q.getTextView(),f=g.getActionDescription(d);if(f&&f.name)e=f.name;d=g.getKeyBindings(d);
for(g=0;g<d.length;g++){var f=b.getUserKeyString(d[g]),i=document.createElement("span");i.role="listitem";i.appendChild(document.createTextNode(f+" = "+e));i.appendChild(document.createElement("br"));w.appendChild(i)}}}a=document.createElement("h2");a.appendChild(document.createTextNode(h.Global));w.appendChild(a);m.showKeyBindings(w);w.style.display="block"}else w.style.display="none";return!0}});m.addCommand(s);m.registerCommandContribution("globalActions","eclipse.keyAssist",100,null,!0,new e.CommandKeyBinding(191,
!1,!0));q&&(a=window.navigator.platform.indexOf("Mac")!==-1,q.getTextView().setKeyBinding(new e.CommandKeyBinding(191,!1,!0,!a,a),s.id),q.getTextView().setAction(s.id,s.callback,s));Q(m);O(g,s.callback);L(g);window.addEventListener("hashchange",function(){m.processURL(window.location.href)},!1);window.setTimeout(function(){y(g)},0)},getToolbarElements:I,getMainSplitter:function(){return P},layoutToolbarElements:T,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,R=b.target,D(b.serviceRegistry,b.target,W,b.commandService,b.makeAlternate)):(b.breadcrumbTarget||(e=e||b.task||b.name),c=b.name);(E=b.title)||(E=c?c+" - "+b.task:b.task);window.document.title=E;j.empty(j.node("location"));new a.BreadCrumbs({container:"location",resource:b.breadcrumbTarget||b.target,rootSegmentName:e,
workspaceRootSegmentName:d,makeHref:b.makeBreadcrumbLink})},setDirtyIndicator:function(a){if(E)E.charAt(0)==="*"&&!a&&(E=E.substring(1)),a&&E.charAt(0)!=="*"&&(E="*"+E),window.document.title=E;var b=j.node("dirty");if(b)b.textContent=a?"*":""},setPageCommandExclusions:function(a){W=a},notifyAuthenticationSite:m}});
define("orion/status",["require","orion/webui/littlelib","orion/globalCommands"],function(h,i,f){function e(d,b,c,a,e){this._serviceRegistry=d;this._serviceRegistration=d.registerService("orion.page.message",this);this._operationsClient=b;this.notificationContainerDomId=e;this.domId=c;this.progressDomId=a||c;this._hookedClose=!1}function d(d,b,c,a){this.statusService=d;this.progressId=b;if(c){this.deferred=c;this.begin(a);var e=this;c.then(function(){e.done.bind(e)()},function(){e.done.bind(e)()})}}
e.prototype={_init:function(){var d=i.node("closeNotifications"),b=this;d&&!this._hookedClose&&(d.addEventListener("click",function(){b.setProgressMessage("")},!1),d.addEventListener("keydown",function(c){(c.keyCode===i.KEY.ENTER||c.keyCode===i.KEY.SPACE)&&b.setProgressMessage("")},!1))},_getNotifierElements:function(){if(!this._notifierElements)this._notifierElements=f.getToolbarElements(this.notificationContainerDomId);return this._notifierElements},setMessage:function(d,b,c){this._init();this.currentMessage=
d;var a=i.node(this.domId);if(typeof c==="boolean"){var e=this,f=a.getAttribute("aria-live");a.setAttribute("aria-live",c?"polite":"off");window.setTimeout(function(){d===e.currentMessage&&(i.empty(a),a.appendChild(document.createTextNode(d)),window.setTimeout(function(){a.setAttribute("aria-live",f)},100))},100)}else i.empty(a),a.appendChild(document.createTextNode(d));typeof b==="number"&&(e=this,window.setTimeout(function(){d===e.currentMessage&&(i.empty(a),a.appendChild(document.createTextNode("")))},
b))},setErrorMessage:function(d){this.currentMessage=d;this._init();var b=d.responseText||d.message||d;try{b=JSON.parse(b)}catch(c){}var d=b.Message||b,a="red";if(b.Severity)switch(b.Severity){case "Warning":a="#FFCC00";break;case "Error":a="red";break;case "Info":case "Ok":a="green"}b=document.createElement("span");b.style.color=a;b.appendChild(document.createTextNode(d));d=i.node(this.domId);i.empty(d);d.appendChild(b)},setProgressMessage:function(d){this._init();this.currentMessage=d;var b=document.createElement("span");
b.classList.add("imageSprite");b.classList.add("core-sprite-progress");var c=i.node(this.progressDomId);i.empty(c);c.appendChild(b);c.appendChild(document.createTextNode(d));b=i.node(this.notificationContainerDomId);b.classList.add("progressNormal");if(d&&d.length>0)b.classList.add("slideContainerActive");else if(this._progressMonitors&&this._progressMonitors.length>0)return this._renderOngoingMonitors();else b.classList.remove("slideContainerActive");f.layoutToolbarElements(this._getNotifierElements())},
setProgressResult:function(d){this.currentMessage=d;var b=d.responseText||d;try{b=JSON.parse(b)}catch(c){}this._init();var a=b.Message||b,e="core-sprite-info",h="progressInfo",n=document.createElement("span");n.classList.add("imageSprite");d=[];if(b.Severity)switch(b.Severity){case "Warning":e="core-sprite-warning";h="progressWarning";d.push("progressInfo");d.push("progressError");d.push("progressNormal");break;case "Error":e="core-sprite-error";h="progressError";d.push("progressWarning");d.push("progressInfo");
d.push("progressNormal");break;default:d.push("progressWarning"),d.push("progressError"),d.push("progressNormal")}n.classList.add(e);var l=i.node(this.progressDomId),e=i.node(this.notificationContainerDomId);i.empty(l);l.appendChild(n);b.HTML?(b=document.createElement("span"),b.innerHTML=a,l.appendChild(b)):l.appendChild(document.createTextNode("   "+a));if(h&&this.progressDomId!==this.domId){e.classList.add(h);for(a=0;a<d.length;a++)e.classList.remove(d[a])}e.classList.add("slideContainerActive");
f.layoutToolbarElements(this._getNotifierElements())},showWhile:function(d,b){var c=this;if(b){c.setProgressMessage(b);var a=function(){b===c.currentMessage&&c.setProgressMessage("")};d.then(a,a)}return d},_lastProgressId:0,_progressMonitors:{length:0},createProgressMonitor:function(e,b){return new d(this,++this._lastProgressId,e,b)},_renderOngoingMonitors:function(){if(this._progressMonitors.length>0){var d="",b=!0,c;for(c in this._progressMonitors)this._progressMonitors[c].status&&(b||(d+=", "),
d+=this._progressMonitors[c].status,b=!1);this.setProgressMessage(d)}else this.setProgressMessage("")},_beginProgressMonitor:function(d){this._progressMonitors[d.progressId]=d;this._progressMonitors.length++;this._renderOngoingMonitors()},_workedProgressMonitor:function(d){this._progressMonitors[d.progressId]=d;this._renderOngoingMonitors()},_doneProgressMonitor:function(d){delete this._progressMonitors[d.progressId];this._progressMonitors.length--;d.status?this.setProgressResult(d.status):this._renderOngoingMonitors()}};
e.prototype.constructor=e;d.prototype.begin=function(d){this.status=d;this.statusService._beginProgressMonitor(this)};d.prototype.done=function(d){this.status=d;this.statusService._doneProgressMonitor(this)};d.prototype.worked=function(d){this.status=d;this.statusService._workedProgressMonitor(this)};d.prototype.constructor=d;return{StatusReportingService:e,ProgressMonitor:d}});
define("navigate/table","require,i18n!orion/navigate/nls/messages,orion/bootstrap,orion/Deferred,orion/i18nUtil,orion/webui/littlelib,orion/selection,orion/status,orion/progress,orion/dialogs,orion/ssh/sshTools,orion/commands,orion/favorites,orion/tasks,orion/navoutliner,orion/searchClient,orion/fileClient,orion/operationsClient,orion/globalCommands,orion/fileCommands,orion/explorers/explorer-table,orion/explorers/navigatorRenderer,orion/fileUtils,orion/PageUtil,orion/URITemplate,orion/contentTypes,orion/URL-shim".split(","),function(h,
i,f,e,d,g,b,c,a,j,k,n,l,r,q,m,p,o,A,t,v,z,y,x,C,H){f.startup().then(function(f){function B(){var a=x.matchResourceParameters();window.location.href.split("#");var b=(new URL(h.toUrl("."),window.location)).href.slice(0,-1);F.loadResourceList(a.resource,!1,function(){A.setPageTarget({task:"Navigator",target:F.treeRoot,serviceRegistry:w,searchService:D,fileService:s,commandService:u});t.updateNavTools(w,F,"pageActions","selectionTools",F.treeRoot);var a=y.isAtRoot(F.treeRoot.Location),c=g.node("gettingStartedTasks");
if(a&&!c){var f=[];w.getServiceReferences("orion.core.content").forEach(function(a){var c=new e;f.push(c);var g,h,i=null,j=a.getProperty("id");if(i=a.getProperty("uriTemplate"))i=new C(i),g=window.decodeURIComponent(i.expand({OrionHome:b}));if(i=a.getProperty("contentURITemplate"))i=new C(i),h=window.decodeURIComponent(i.expand({OrionHome:b}));a.getProperty("nls")?d.getMessageBundle(a.getProperty("nls")).then(function(b){var d=a.getProperty("nameKey")?b[a.getProperty("nameKey")]:a.getProperty("name"),
b=a.getProperty("descriptionKey")?b[a.getProperty("descriptionKey")]:a.getProperty("description"),d=t.createNewContentCommand(j,d,g,h,F,s,O);d.contentDescription=b;u.addCommand(d);c.resolve(d)}):(i=t.createNewContentCommand(j,a.getProperty("name"),g,h,F,s,O),i.contentDescription=a.getProperty("description"),u.addCommand(i),c.resolve(i))});e.all(f,function(a){return{error:a}}).then(function(a){var b=[];a.forEach(function(a){a.error||b.push({commandId:a.id})});new r.TaskList({parent:"gettingStarted",
id:"gettingStartedTasks",title:i["Create new content"],description:i["Click one of the tasks below to create an Orion folder.  You can upload, import, or generate files."],tasks:b,serviceRegistry:w,commandService:u,item:{Location:"/workspace"},handler:F,collapsed:!1,descriptionProperty:"contentDescription"})})}else c&&g.empty(c.parentNode)})}var w=f.serviceRegistry,f=f.preferences,L=new b.Selection(w),J=new o.OperationsClient(w);new c.StatusReportingService(w,J,"statusPane","notifications","notificationArea");
var O=new a.ProgressService(w,J);new j.DialogService(w);new k.SshService(w);new l.FavoritesService({serviceRegistry:w});var u=new n.CommandService({serviceRegistry:w,selection:L}),s=new p.FileClient(w),D=new m.Searcher({serviceRegistry:w,commandService:u,fileService:s});A.setPageCommandExclusions(["eclipse.openWith","orion.navigateFromMetadata"]);A.generateBanner("orion-navigate",w,u,f,D);var Q=new H.ContentTypeService(w),F=new v.FileExplorer({serviceRegistry:w,treeRoot:{children:[]},selection:L,
fileClient:s,parentId:"explorer-tree",dragAndDrop:t.uploadFile,rendererFactory:function(a){return new z.NavigatorRenderer({checkbox:!1,cachePrefix:"Navigator"},a,u,Q)}});B();t.createFileCommands(w,u,F,s);u.addCommandGroup("pageActions","orion.new",1E3,i.New);u.addCommandGroup("pageActions","orion.gitGroup",200);u.addCommandGroup("selectionTools","orion.selectionGroup",500,i.Actions,null,i["Click on an item to make a selection, then use this menu to see what actions are available."]);u.addCommandGroup("selectionTools",
"orion.importExportGroup",100,null,"orion.selectionGroup");u.addCommandGroup("selectionTools","orion.newResources",101,null,"orion.selectionGroup");u.registerCommandContribution("pageActions","eclipse.copySelections",1,null,!0,new n.CommandKeyBinding("c",!0));u.registerCommandContribution("pageActions","eclipse.pasteSelections",1,null,!0,new n.CommandKeyBinding("v",!0));u.registerCommandContribution("pageActions","eclipse.openResource",500);u.registerCommandContribution("pageActions","eclipse.newFile",
1);u.registerCommandContribution("pageActions","eclipse.newFolder",2,null,!1,null,new n.URLBinding("newFolder","name"));u.registerCommandContribution("pageActions","eclipse.upFolder",3,null,!0,new n.CommandKeyBinding(38,!1,!1,!0));u.registerCommandContribution("pageActions","orion.new.project",1,"orion.new");u.registerCommandContribution("pageActions","orion.new.linkProject",2,"orion.new");u.registerCommandContribution("selectionTools","orion.makeFavorite",1,"orion.selectionGroup");u.registerCommandContribution("selectionTools",
"eclipse.renameResource",2,"orion.selectionGroup",!1,new n.CommandKeyBinding(113,!1,!1,!1,!1,"explorer-tree","Navigator"));u.registerCommandContribution("selectionTools","eclipse.copyFile",3,"orion.selectionGroup");u.registerCommandContribution("selectionTools","eclipse.moveFile",4,"orion.selectionGroup");u.registerCommandContribution("selectionTools","eclipse.deleteFile",5,"orion.selectionGroup",!1,new n.CommandKeyBinding(46,!1,!1,!1,!1,"explorer-tree","Navigator"));u.registerCommandContribution("selectionTools",
"eclipse.compareWithEachOther",6,"orion.selectionGroup");u.registerCommandContribution("selectionTools","eclipse.compareWith",7,"orion.selectionGroup");u.registerCommandContribution("selectionTools","orion.importZipURL",1,"orion.selectionGroup/orion.importExportGroup");u.registerCommandContribution("selectionTools","orion.import",2,"orion.selectionGroup/orion.importExportGroup");u.registerCommandContribution("selectionTools","eclipse.downloadFile",3,"orion.selectionGroup/orion.importExportGroup");
u.registerCommandContribution("selectionTools","orion.importSFTP",4,"orion.selectionGroup/orion.importExportGroup");u.registerCommandContribution("selectionTools","eclipse.exportSFTPCommand",5,"orion.selectionGroup/orion.importExportGroup");t.createAndPlaceFileCommandsExtension(w,u,F,"pageActions","selectionTools","orion.selectionGroup").then(function(){new q.NavigationOutliner({parent:"favorites",commandService:u,serviceRegistry:w})});window.addEventListener("hashchange",function(){B()},!1)})});