/*
  Copyright (C) 2013 Ariya Hidayat <ariya.hidayat@gmail.com>
  Copyright (C) 2013 Thaddee Tyl <thaddee.tyl@gmail.com>
  Copyright (C) 2013 Mathias Bynens <mathias@qiwi.be>
  Copyright (C) 2012 Ariya Hidayat <ariya.hidayat@gmail.com>
  Copyright (C) 2012 Mathias Bynens <mathias@qiwi.be>
  Copyright (C) 2012 Joost-Wim Boekesteijn <joost-wim@boekesteijn.nl>
  Copyright (C) 2012 Kris Kowal <kris.kowal@cixar.com>
  Copyright (C) 2012 Yusuke Suzuki <utatane.tea@gmail.com>
  Copyright (C) 2012 Arpad Borsos <arpad.borsos@googlemail.com>
  Copyright (C) 2011 Ariya Hidayat <ariya.hidayat@gmail.com>

  Redistribution and use in source and binary forms, with or without
  modification, are permitted provided that the following conditions are met:

    * Redistributions of source code must retain the above copyright
      notice, this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright
      notice, this list of conditions and the following disclaimer in the
      documentation and/or other materials provided with the distribution.

  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
  DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

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

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

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

/*******************************************************************************
 * @license
 * Copyright (c) 2015 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.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, 2014 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.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) 2015 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and 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-2013 Yusuke Suzuki <utatane.tea@gmail.com>
  Copyright (C) 2012 Ariya Hidayat <ariya.hidayat@gmail.com>

  Redistribution and use in source and binary forms, with or without
  modification, are permitted provided that the following conditions are met:

    * Redistributions of source code must retain the above copyright
      notice, this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright
      notice, this list of conditions and the following disclaimer in the
      documentation and/or other materials provided with the distribution.

  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
  DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

/**
 * @fileoverview Defines environment settings and globals.
 * @author Elan Shanker
 * @copyright 2014 Elan Shanker. All rights reserved.
 */

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

/*
  Copyright (C) 2014 Yusuke Suzuki <utatane.tea@gmail.com>

  Redistribution and use in source and binary forms, with or without
  modification, are permitted provided that the following conditions are met:

    * Redistributions of source code must retain the above copyright
      notice, this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright
      notice, this list of conditions and the following disclaimer in the
      documentation and/or other materials provided with the distribution.

  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
  DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

/*******************************************************************************
 * @license
 * Copyright (c) 2013 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and 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-2014 Yusuke Suzuki <utatane.tea@gmail.com>
  Copyright (C) 2013 Alex Seville <hi@alexanderseville.com>
  Copyright (C) 2014 Thiago de Arruda <tpadilha84@gmail.com>

  Redistribution and use in source and binary forms, with or without
  modification, are permitted provided that the following conditions are met:

    * Redistributions of source code must retain the above copyright
      notice, this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright
      notice, this list of conditions and the following disclaimer in the
      documentation and/or other materials provided with the distribution.

  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
  DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

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

/**
 * @fileoverview Rule to flag wrapping non-iife in parens
 * @author Gyandeep Singh
 * @copyright 2015 Gyandeep Singh. All rights reserved.
 */

/**
 * @fileoverview Rule to disallow a duplicate case label.
 * @author Dieter Oberkofler
 * @author Burak Yigit Kaya
 * @copyright 2015 Dieter Oberkofler. All rights reserved.
 * @copyright 2015 Burak Yigit Kaya. All rights reserved.
 */

/**
 * @fileoverview Disallow parenthesising higher precedence subexpressions.
 * @author Michael Ficarra
 * @copyright 2014 Michael Ficarra. All rights reserved.
 * See LICENSE file in root directory for full license.
 */

/**
 * @fileoverview Validate strings passed to the RegExp constructor
 * @author Michael Ficarra
 * @copyright 2014 Michael Ficarra. All rights reserved.
 */

/**
 * @fileoverview Rule to disalow whitespace that is not a tab or space, whitespace inside strings and comments are allowed
 * @author Jonathan Kingston
 * @copyright 2014 Jonathan Kingston. All rights reserved.
 */

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

/**
 * @fileoverview An object that creates fix commands for rules.
 * @author Nicholas C. Zakas
 * @copyright 2015 Nicholas C. Zakas. All rights reserved.
 * See LICENSE file in root directory for full license.
 */

/**
 * @fileoverview RuleContext utility for rules
 * @author Nicholas C. Zakas
 * @copyright 2013 Nicholas C. Zakas. All rights reserved.
 * See LICENSE file in root directory for full license.
 */

/*******************************************************************************
 * @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
 *******************************************************************************/

/**
 * @fileoverview Object to handle access and retrieval of tokens.
 * @author Brandon Mills
 * @copyright 2014 Nicholas C. Zakas. All rights reserved.
 * @copyright 2014 Brandon Mills. All rights reserved.
 */

/**
 * @fileoverview Abstraction of JavaScript source code.
 * @author Nicholas C. Zakas
 * @copyright 2015 Nicholas C. Zakas. All rights reserved.
 * See LICENSE file in root directory for full license.
 */

/**
 * @fileoverview The event generator for AST nodes.
 * @author Toru Nagashima
 * @copyright 2015 Toru Nagashima. All rights reserved.
 * See LICENSE file in root directory for full license.
 */

/**
 * @fileoverview The event generator for comments.
 * @author Toru Nagashima
 * @copyright 2015 Toru Nagashima. All rights reserved.
 * See LICENSE file in root directory for full license.
 */

/**
 * @fileoverview Validates configs.
 * @author Brandon Mills
 * @copyright 2015 Brandon Mills
 */

/*******************************************************************************
 * @license
 * Copyright (c) 2014 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License v1.0
 * (http://www.eclipse.org/legal/epl-v10.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) 2014 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.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) 2013, 2015 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License v1.0
 * (http://www.eclipse.org/legal/epl-v10.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) 2015 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *	 IBM Corporation - Allow original requirejs plugin to find files in Orion workspace
 *******************************************************************************/

/*******************************************************************************
 * @license
 * Copyright (c) 2015 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License v1.0
 * (http://www.eclipse.org/legal/epl-v10.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) 2015 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - Allow original requirejs plugin to find files in Orion workspace
 *******************************************************************************/

/*******************************************************************************
 * @license
 * Copyright (c) 2015 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License v1.0
 * (http://www.eclipse.org/legal/epl-v10.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) 2015 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - Allow original requirejs plugin to find files in Orion workspace
 *******************************************************************************/

/*******************************************************************************
 * @license
 * Copyright (c) 2015 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License v1.0
 * (http://www.eclipse.org/legal/epl-v10.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, 2015 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.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(e,t){"use strict";"function"==typeof define&&define.amd?define("esprima/esprima",["exports"],t):t("undefined"!=typeof exports?exports:e.esprima={})}(this,function(e){"use strict";function t(e,t){if(!e)throw new Error("ASSERT: "+t)}function n(e){return e>=48&&57>=e}function r(e){return"0123456789abcdefABCDEF".indexOf(e)>=0}function o(e){return"01234567".indexOf(e)>=0}function s(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0}function a(e){return 10===e||13===e||8232===e||8233===e}function i(e){return 36===e||95===e||e>=65&&90>=e||e>=97&&122>=e||92===e||e>=128&&Mn.NonAsciiIdentifierStart.test(String.fromCharCode(e))}function l(e){return 36===e||95===e||e>=65&&90>=e||e>=97&&122>=e||e>=48&&57>=e||92===e||e>=128&&Mn.NonAsciiIdentifierPart.test(String.fromCharCode(e))}function c(e){switch(e){case"class":case"enum":case"export":case"extends":case"import":case"super":return!0;default:return!1}}function p(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}}function u(e){return"eval"===e||"arguments"===e}function d(e){if(Pn&&p(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e||"let"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function h(e,n,r,o,s){var a;t("number"==typeof r,"Comment must have valid position"),$n.lastCommentStart=r,a={type:e,value:n},Xn.range&&(a.range=[r,o]),Xn.loc&&(a.loc=s),Xn.comments.push(a),Xn.attachComment&&(Xn.leadingComments.push(a),Xn.trailingComments.push(a))}function f(e){var t,n,r,o;for(t=In-e,n={start:{line:zn,column:In-Nn-e}};Jn>In;)if(r=Cn.charCodeAt(In),++In,a(r))return Ln=!0,Xn.comments&&(o=Cn.slice(t+e,In-1),n.end={line:zn,column:In-Nn-1},h("Line",o,t,In-1,n)),13===r&&10===Cn.charCodeAt(In)&&++In,++zn,void(Nn=In);Xn.comments&&(o=Cn.slice(t+e,In),n.end={line:zn,column:In-Nn},h("Line",o,t,In,n))}function m(){var e,t,n,r;for(Xn.comments&&(e=In-2,t={start:{line:zn,column:In-Nn-2}});Jn>In;)if(n=Cn.charCodeAt(In),a(n))13===n&&10===Cn.charCodeAt(In+1)&&++In,Ln=!0,++zn,++In,Nn=In;else if(42===n){if(47===Cn.charCodeAt(In+1))return++In,++In,void(Xn.comments&&(r=Cn.slice(e+2,In-2),t.end={line:zn,column:In-Nn},h("Block",r,e,In,t)));++In}else++In;In>=Jn&&Xn.comments?(t.end={line:zn,column:In-Nn},r=Cn.slice(e+2,In),h("Block",r,e,In,t),Z()):Q()}function g(){var e,t;for(Ln=!1,t=0===In;Jn>In;)if(e=Cn.charCodeAt(In),s(e))++In;else if(a(e))Ln=!0,++In,13===e&&10===Cn.charCodeAt(In)&&++In,++zn,Nn=In,t=!0;else if(47===e)if(e=Cn.charCodeAt(In+1),47===e)++In,++In,f(2),t=!0;else{if(42!==e)break;++In,++In,m()}else if(t&&45===e){if(45!==Cn.charCodeAt(In+1)||62!==Cn.charCodeAt(In+2))break;In+=3,f(3)}else{if(60!==e)break;if("!--"!==Cn.slice(In+1,In+4))break;++In,++In,++In,++In,f(4)}}function b(e){var t,n,o,s=0;for(n="u"===e?4:2,t=0;n>t;++t){if(!(Jn>In&&r(Cn[In])))return"";o=Cn[In++],s=16*s+"0123456789abcdef".indexOf(o.toLowerCase())}return String.fromCharCode(s)}function y(){var e,t,n,o;for(e=Cn[In],t=0,"}"===e&&Q();Jn>In&&(e=Cn[In++],r(e));)t=16*t+"0123456789abcdef".indexOf(e.toLowerCase());return(t>1114111||"}"!==e)&&Q(),65535>=t?String.fromCharCode(t):(n=(t-65536>>10)+55296,o=(t-65536&1023)+56320,String.fromCharCode(n,o))}function v(){var e,t;for(e=Cn.charCodeAt(In++),t=String.fromCharCode(e),92===e&&(117!==Cn.charCodeAt(In)&&Q(),++In,e=b("u"),e&&"\\"!==e&&i(e.charCodeAt(0))||Q(),t=e);Jn>In&&(e=Cn.charCodeAt(In),l(e));)++In,t+=String.fromCharCode(e),92===e&&(t=t.substr(0,t.length-1),117!==Cn.charCodeAt(In)&&Q(),++In,e=b("u"),e&&"\\"!==e&&l(e.charCodeAt(0))||Q(),t+=e);return t}function w(){var e,t;for(e=In++;Jn>In;){if(t=Cn.charCodeAt(In),92===t)return In=e,v();if(!l(t))break;++In}return Cn.slice(e,In)}function S(){var e,t,n;return e=In,t=92===Cn.charCodeAt(In)?v():w(),n=1===t.length?En.Identifier:d(t)?En.Keyword:"null"===t?En.NullLiteral:"true"===t||"false"===t?En.BooleanLiteral:En.Identifier,{type:n,value:t,lineNumber:zn,lineStart:Nn,start:e,end:In}}function _(){var e,t,n,r,o=In,s=Cn.charCodeAt(In),a=Cn[In];switch(s){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:case 126:return++In,Xn.tokenize&&(40===s?Xn.openParenToken=Xn.tokens.length:123===s&&(Xn.openCurlyToken=Xn.tokens.length)),{type:En.Punctuator,value:String.fromCharCode(s),lineNumber:zn,lineStart:Nn,start:o,end:In};default:if(e=Cn.charCodeAt(In+1),61===e)switch(s){case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 37:case 38:case 42:return In+=2,{type:En.Punctuator,value:String.fromCharCode(s)+String.fromCharCode(e),lineNumber:zn,lineStart:Nn,start:o,end:In};case 33:case 61:return In+=2,61===Cn.charCodeAt(In)&&++In,{type:En.Punctuator,value:Cn.slice(o,In),lineNumber:zn,lineStart:Nn,start:o,end:In}}}if(r=Cn.substr(In,4),">>>="===r)return In+=4,{type:En.Punctuator,value:r,lineNumber:zn,lineStart:Nn,start:o,end:In};if(n=r.substr(0,3),">>>"===n||"<<="===n||">>="===n)return In+=3,{type:En.Punctuator,value:n,lineNumber:zn,lineStart:Nn,start:o,end:In};if(t=n.substr(0,2),a===t[1]&&"+-<>&|".indexOf(a)>=0||"=>"===t)return In+=2,{type:En.Punctuator,value:t,lineNumber:zn,lineStart:Nn,start:o,end:In};if("<>=!+-*%&|^/".indexOf(a)>=0)return++In,{type:En.Punctuator,value:a,lineNumber:zn,lineStart:Nn,start:o,end:In};++In;var i={type:En.Punctuator,lineNumber:zn,lineStart:Nn,start:o,end:In,value:Cn.slice(o,In)};Q(i)}function x(e){for(var t="";Jn>In&&r(Cn[In]);)t+=Cn[In++];return 0===t.length&&Q(),i(Cn.charCodeAt(In))&&Q(),{type:En.NumericLiteral,value:parseInt("0x"+t,16),lineNumber:zn,lineStart:Nn,start:e,end:In}}function j(e){var t,r;for(r="";Jn>In&&(t=Cn[In],"0"===t||"1"===t);)r+=Cn[In++];return 0===r.length&&Q(),Jn>In&&(t=Cn.charCodeAt(In),(i(t)||n(t))&&Q()),{type:En.NumericLiteral,value:parseInt(r,2),lineNumber:zn,lineStart:Nn,start:e,end:In}}function E(e,t){var r,s;for(o(e)?(s=!0,r="0"+Cn[In++]):(s=!1,++In,r="");Jn>In&&o(Cn[In]);)r+=Cn[In++];return s||0!==r.length||Q(),(i(Cn.charCodeAt(In))||n(Cn.charCodeAt(In)))&&Q(),{type:En.NumericLiteral,value:parseInt(r,8),octal:s,lineNumber:zn,lineStart:Nn,start:t,end:In}}function T(){var e,t;for(e=In+1;Jn>e;++e){if(t=Cn[e],"8"===t||"9"===t)return!1;if(!o(t))return!0}return!0}function k(){var e,r,s;if(s=Cn[In],t(n(s.charCodeAt(0))||"."===s,"Numeric literal must start with a decimal digit or a decimal point"),r=In,e="","."!==s){if(e=Cn[In++],s=Cn[In],"0"===e){if("x"===s||"X"===s)return++In,x(r);if("b"===s||"B"===s)return++In,j(r);if("o"===s||"O"===s)return E(s,r);if(o(s)&&T())return E(s,r)}for(;n(Cn.charCodeAt(In));)e+=Cn[In++];s=Cn[In]}if("."===s){for(e+=Cn[In++];n(Cn.charCodeAt(In));)e+=Cn[In++];s=Cn[In]}if("e"===s||"E"===s)if(e+=Cn[In++],s=Cn[In],("+"===s||"-"===s)&&(e+=Cn[In++]),n(Cn.charCodeAt(In)))for(;n(Cn.charCodeAt(In));)e+=Cn[In++];else Q();return i(Cn.charCodeAt(In))&&Q(),{type:En.NumericLiteral,value:parseFloat(e),lineNumber:zn,lineStart:Nn,start:r,end:In}}function O(){var e,n,r,s,i,l,c="",p=!1;for(e=Cn[In],t("'"===e||'"'===e,"String literal must starts with a quote"),n=In,++In;Jn>In;){if(r=Cn[In++],r===e){e="";break}if("\\"===r)if(r=Cn[In++],r&&a(r.charCodeAt(0)))++zn,"\r"===r&&"\n"===Cn[In]&&++In,Nn=In;else switch(r){case"u":case"x":"{"===Cn[In]?(++In,c+=y()):(l=In,i=b(r),i?c+=i:(In=l,c+=r));break;case"n":c+="\n";break;case"r":c+="\r";break;case"t":c+="	";break;case"b":c+="\b";break;case"f":c+="\f";break;case"v":c+="";break;default:o(r)?(s="01234567".indexOf(r),0!==s&&(p=!0),Jn>In&&o(Cn[In])&&(p=!0,s=8*s+"01234567".indexOf(Cn[In++]),"0123".indexOf(r)>=0&&Jn>In&&o(Cn[In])&&(s=8*s+"01234567".indexOf(Cn[In++]))),c+=String.fromCharCode(s)):c+=r}else{if(a(r.charCodeAt(0)))break;c+=r}}var u={type:En.StringLiteral,value:c,octal:p,lineNumber:Wn,lineStart:Bn,start:n,end:In};return""!==e&&Z(u),u}function D(e,t){var n=e;t.indexOf("u")>=0&&(n=n.replace(/\\u\{([0-9a-fA-F]+)\}/g,function(e,t){return parseInt(t,16)<=1114111?"x":void Q(null,An.InvalidRegExp)}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"x"));try{RegExp(n)}catch(r){Q(null,An.InvalidRegExp)}try{return new RegExp(e,t)}catch(o){return null}}function R(){var e,n,r,o,s;for(e=Cn[In],t("/"===e,"Regular expression literal must start with a slash"),n=Cn[In++],r=!1,o=!1;Jn>In;)if(e=Cn[In++],n+=e,"\\"===e)e=Cn[In++],a(e.charCodeAt(0))&&Q(null,An.UnterminatedRegExp),n+=e;else if(a(e.charCodeAt(0)))Q(null,An.UnterminatedRegExp);else if(r)"]"===e&&(r=!1);else{if("/"===e){o=!0;break}"["===e&&(r=!0)}return o||Q(Vn,An.UnterminatedRegExp),s=n.substr(1,n.length-2),{value:s,literal:n}}function A(){var e,t,n,r;for(t="",n="";Jn>In&&(e=Cn[In],l(e.charCodeAt(0)));)if(++In,"\\"===e&&Jn>In)if(e=Cn[In],"u"===e){if(++In,r=In,e=b("u"))for(n+=e,t+="\\u";In>r;++r)t+=Cn[r];else In=r,n+="u",t+="\\u";Z()}else t+="\\",Z();else n+=e,t+=e;return{value:n,literal:t}}function M(){Hn=!0;var e,t,n,r;return g(),e=In,t=R(),n=A(),r=D(t.value,n.value),Hn=!1,Xn.tokenize?{type:En.RegularExpression,value:r,regex:{pattern:t.value,flags:n.value},lineNumber:zn,lineStart:Nn,start:e,end:In}:{literal:t.literal+n.literal,value:r,regex:{pattern:t.value,flags:n.value},start:e,end:In}}function C(){var e,t,n,r;return g(),e=In,t={start:{line:zn,column:In-Nn}},n=M(),t.end={line:zn,column:In-Nn},Xn.tokenize||(Xn.tokens.length>0&&(r=Xn.tokens[Xn.tokens.length-1],r.range[0]===e&&"Punctuator"===r.type&&("/"===r.value||"/="===r.value)&&Xn.tokens.pop()),Xn.tokens.push({type:"RegularExpression",value:n.literal,regex:n.regex,range:[e,In],loc:t})),n}function P(e){return e.type===En.Identifier||e.type===En.Keyword||e.type===En.BooleanLiteral||e.type===En.NullLiteral}function I(){var e,t;if(e=Xn.tokens[Xn.tokens.length-1],!e)return C();if("Punctuator"===e.type){if("]"===e.value)return _();if(")"===e.value)return t=Xn.tokens[Xn.openParenToken-1],!t||"Keyword"!==t.type||"if"!==t.value&&"while"!==t.value&&"for"!==t.value&&"with"!==t.value?_():C();if("}"===e.value){if(Xn.tokens[Xn.openCurlyToken-3]&&"Keyword"===Xn.tokens[Xn.openCurlyToken-3].type){if(t=Xn.tokens[Xn.openCurlyToken-4],!t)return _()}else{if(!Xn.tokens[Xn.openCurlyToken-4]||"Keyword"!==Xn.tokens[Xn.openCurlyToken-4].type)return _();if(t=Xn.tokens[Xn.openCurlyToken-5],!t)return C()}return kn.indexOf(t.value)>=0?_():C()}return C()}return"Keyword"===e.type&&"this"!==e.value?C():_()}function z(){var e;return In>=Jn?{type:En.EOF,lineNumber:zn,lineStart:Nn,start:In,end:In,range:[In,In]}:(e=Cn.charCodeAt(In),i(e)?S():40===e||41===e||59===e?_():39===e||34===e?O():46===e?n(Cn.charCodeAt(In+1))?k():_():n(e)?k():Xn.tokenize&&47===e?I():_())}function N(){var e,t,n,r;return e={start:{line:zn,column:In-Nn}},t=z(),e.end={line:zn,column:In-Nn},t.type!==En.EOF&&(n=Cn.slice(t.start,t.end),r={type:Tn[t.type],value:n,range:[t.start,t.end],loc:e},t.regex&&(r.regex={pattern:t.regex.pattern,flags:t.regex.flags}),Xn.tokens.push(r)),t}function L(){var e;return Hn=!0,Fn=In,Un=zn,qn=Nn,g(),e=Vn,Gn=In,Wn=zn,Bn=Nn,Vn="undefined"!=typeof Xn.tokens?N():z(),Hn=!1,e}function F(){Hn=!0,g(),Fn=In,Un=zn,qn=Nn,Gn=In,Wn=zn,Bn=Nn,Vn="undefined"!=typeof Xn.tokens?N():z(),Hn=!1}function U(e){if(Xn.deps)for(var t=e.length,n=0;t>n;n++)q(e[n])}function q(e){if(Xn.deps&&e.type===On.Literal){for(var t=0;t<Xn.deps.length;t++)if(Xn.deps[t].value===e.value)return;Xn.deps.push(e)}}function G(e,t){if(Xn.deps){var n=t.length;if("importScripts"===e.name)U(t);else if("Worker"===e.name)q(t[0]);else if("require"===e.name){var r=t[0];r.type===On.ArrayExpression?(Xn.envs.node=!0,U(r.elements)):r.type===On.Literal&&(Xn.envs.node=!0,q(r)),n>1&&(r=t[1],r.type===On.ArrayExpression&&(Xn.envs.node=!0,U(r.elements)))}else"requirejs"===e.name?(r=t[0],r.type===On.ArrayExpression&&(Xn.envs.amd=!0,U(r.elements))):"define"===e.name&&n>1&&(r=t[0],r.type===On.Literal&&(r=t[1]),r.type===On.ArrayExpression&&(Xn.envs.amd=!0,U(r.elements)))}}function W(){this.line=Wn,this.column=Gn-Bn}function B(){this.start=new W,this.end=null}function H(e){this.start={line:e.lineNumber,column:e.start-e.lineStart},this.end=null}function J(){Xn.loc&&(this.loc=new B),Xn.range&&(this.range=[Gn,0]),Xn.directSourceFile&&(this.sourceFile=Xn.directSourceFile)}function V(e){Xn.loc&&(this.loc=new H(e)),Xn.range&&(this.range=[e.start,0]),Xn.directSourceFile&&(this.sourceFile=Xn.directSourceFile)}function $(e,t,n,r){var o=new Error("Line "+e+": "+n);if(o.index=t,o.lineNumber=e,o.column=t-(Hn?Nn:qn)+1,o.description=n,r){var s=r;2===r.type&&Xn&&Array.isArray(Xn.tokens)&&Xn.tokens.length>0&&(s=Xn.tokens[Xn.tokens.length-1]),o.index="number"==typeof s.start?s.start:s.range[0],o.token=s.value,o.end="number"==typeof s.end?s.end:s.range[1]}return o}function X(e){var n,r;throw n=Array.prototype.slice.call(arguments,1),r=e.replace(/%(\d)/g,function(e,r){return t(r<n.length,"Message reference must be in range"),n[r]}),$(Un,Fn,r)}function K(e){var n,r,o;if(n=Array.prototype.slice.call(arguments,1),r=e.replace(/%(\d)/g,function(e,r){return t(r<n.length,"Message reference must be in range"),n[r]}),o=$(zn,Fn,r),!Xn.errors)throw o;Xn.errors.push(o)}function Y(e,t,n){var r=t||An.UnexpectedToken;e&&!t&&(r=e.type===En.EOF?An.UnexpectedEOS:e.type===En.Identifier?An.UnexpectedIdentifier:e.type===En.NumericLiteral?An.UnexpectedNumber:e.type===En.StringLiteral?An.UnexpectedString:An.UnexpectedToken,e.type===En.Keyword&&(c(e.value)?r=An.UnexpectedReserved:Pn&&p(e.value)&&(r=An.StrictReservedWord)));var o=null!=n?n:e?e.value:"ILLEGAL";return r=r.replace("%0",o),e&&"number"==typeof e.lineNumber?$(e.lineNumber,e.start,r,e):$(Hn?zn:Un,Hn?In:Fn,r,e)}function Q(e,t){throw Y(e,t)}function Z(e,t,n){var r=Y(e,t,n);if(!Xn.errors)throw r;Xn.errors.push(r)}function et(e){var t=L();(t.type!==En.Punctuator||t.value!==e)&&Q(t)}function tt(e){var t;if(Xn.errors)if(t=Vn,t.type===En.Punctuator&&","===t.value)L();else if(t.type===En.Punctuator&&";"===t.value)if(L(),Vn.value===e)Z(t,An.UnexpectedToken,";");else{var n=e&&e!==t.value?e:";";Xn.tokens&&Xn.tokens.length>0&&(t=Xn.tokens[Xn.tokens.length-2]),Z(t,An.MissingToken,n)}else t.type!==En.EOF&&(Xn.tokens&&Xn.tokens.length>0&&(t=Xn.tokens[Xn.tokens.length-2]),Z(t,An.MissingToken,","));else et(",")}function nt(e){var t=L();(t.type!==En.Keyword||t.value!==e)&&Q(t)}function rt(e){return Vn.type===En.Punctuator&&Vn.value===e}function ot(e){return Vn.type===En.Keyword&&Vn.value===e}function st(){var e;return Vn.type!==En.Punctuator?!1:(e=Vn.value,"="===e||"*="===e||"/="===e||"%="===e||"+="===e||"-="===e||"<<="===e||">>="===e||">>>="===e||"&="===e||"^="===e||"|="===e)}function at(){try{if(59===Cn.charCodeAt(Gn)||rt(";"))return void L();if(Ln)return;if(Fn=Gn,Un=Wn,qn=Bn,Vn.type!==En.EOF&&!rt("}")){var e=Vn;Xn.errors&&wn(Bn),Q(e)}}catch(t){if(Xn.errors)return void bn(t);throw t}}function it(e){return e.type===On.Identifier||e.type===On.MemberExpression}function lt(){var e=[],t=new J;for(et("[");!rt("]");)rt(",")?(L(),e.push(null)):(e.push(Rt()),rt("]")||et(","));return L(),t.finishArrayExpression(e)}function ct(e,t){var n,r,o=new J;return n=Pn,r=rn(),t&&Pn&&u(e[0].name)&&Z(t,An.StrictParamName),Pn=n,o.finishFunctionExpression(null,e,[],r)}function pt(){var e,t=new J;return e=L(),e.type===En.StringLiteral||e.type===En.NumericLiteral?(Pn&&e.octal&&Z(e,An.StrictOctalLiteral),t.finishLiteral(e)):t.finishIdentifier(e.value)}function ut(){var e,t,n,r,o,s=new J;return e=Vn,e.type===En.Identifier?(n=pt(),"get"!==e.value||rt(":")||rt("(")?"set"!==e.value||rt(":")||rt("(")?jn(e,n,s):(t=pt(),et("("),e=Vn,e.type!==En.Identifier?(et(")"),Z(e),r=ct([])):(o=[Pt()],et(")"),r=ct(o,e)),s.finishProperty("set",t,r,!1,!1)):(t=pt(),et("("),et(")"),r=ct([]),s.finishProperty("get",t,r,!1,!1))):e.type!==En.EOF&&e.type!==En.Punctuator?jn(e,pt(),s):void Q(e)}function dt(){var e,t,n,r,o=[],s={},a=String,i=new J;for(et("{");!rt("}");)e=ut(),null!=e&&"undefined"!=typeof e&&(t=e.key.type===On.Identifier?e.key.name:a(e.key.value),r="init"===e.kind?Rn.Data:"get"===e.kind?Rn.Get:Rn.Set,n="$"+t,Object.prototype.hasOwnProperty.call(s,n)?(s[n]===Rn.Data?Pn&&r===Rn.Data?K(An.StrictDuplicateProperty):r!==Rn.Data&&K(An.AccessorDataProperty):r===Rn.Data?K(An.AccessorDataProperty):s[n]&r&&K(An.AccessorGetSet),s[n]|=r):s[n]=r,o.push(e),rt("}")||tt("}"));return et("}"),i.finishObjectExpression(o)}function ht(){var e;return et("("),rt(")")?(L(),Dn.ArrowParameterPlaceHolder):(++$n.parenthesisCount,e=At(),et(")"),e)}function ft(){var e,t,n,r;if(rt("("))return ht();if(rt("["))return lt();if(rt("{"))return dt();if(e=Vn.type,r=new J,e===En.Identifier)n=r.finishIdentifier(L().value);else if(e===En.StringLiteral||e===En.NumericLiteral)Pn&&Vn.octal&&Z(Vn,An.StrictOctalLiteral),n=r.finishLiteral(L());else if(e===En.Keyword){if(ot("function"))return cn();ot("this")?(L(),n=r.finishThisExpression()):Q(L())}else e===En.BooleanLiteral?(t=L(),t.value="true"===t.value,n=r.finishLiteral(t)):e===En.NullLiteral?(t=L(),t.value=null,n=r.finishLiteral(t)):rt("/")||rt("/=")?(In=Gn,t="undefined"!=typeof Xn.tokens?C():M(),L(),n=r.finishLiteral(t)):Q(L());return n}function mt(){var e=[];if(et("("),!rt(")"))for(;Jn>Gn&&(e.push(Rt()),!rt(")"));)tt(")");return gn(")"),e}function gt(){var e,t=new J;try{e=L(),P(e)||(Xn.errors&&_n(e),Q(e))}catch(n){if(Xn.errors)return bn(n),xn(t,On.Identifier);throw n}return t.finishIdentifier(e.value)}function bt(){return et("."),gt()}function yt(){var e;return et("["),e=At(),et("]"),e}function vt(){var e,t,n=new J;return nt("new"),e=St(),t=rt("(")?mt():[],n.finishNewExpression(e,t)}function wt(){var e,t,n,r,o=$n.allowIn;for(r=Vn,$n.allowIn=!0,e=ot("new")?vt():ft();;)if(rt("."))n=bt(),e=new V(r).finishMemberExpression(".",e,n);else if(rt("("))t=mt(),e=new V(r).finishCallExpression(e,t);else{if(!rt("["))break;n=yt(),e=new V(r).finishMemberExpression("[",e,n)}return $n.allowIn=o,e}function St(){var e,n,r;for(t($n.allowIn,"callee of new expression always allow in keyword."),r=Vn,e=ot("new")?vt():ft();;)if(rt("["))n=yt(),e=new V(r).finishMemberExpression("[",e,n);else{if(!rt("."))break;n=bt(),e=new V(r).finishMemberExpression(".",e,n)}return e}function _t(){var e,t,n=Vn;return e=wt(),Ln||Vn.type!==En.Punctuator||(rt("++")||rt("--"))&&(Pn&&e.type===On.Identifier&&u(e.name)&&K(An.StrictLHSPostfix),it(e)||K(An.InvalidLHSInAssignment),t=L(),e=new V(n).finishPostfixExpression(t.value,e)),e}function xt(){var e,t,n;return Vn.type!==En.Punctuator&&Vn.type!==En.Keyword?t=_t():rt("++")||rt("--")?(n=Vn,e=L(),t=xt(),Pn&&t.type===On.Identifier&&u(t.name)&&K(An.StrictLHSPrefix),it(t)||K(An.InvalidLHSInAssignment),t=new V(n).finishUnaryExpression(e.value,t)):rt("+")||rt("-")||rt("~")||rt("!")?(n=Vn,e=L(),t=xt(),t=new V(n).finishUnaryExpression(e.value,t)):ot("delete")||ot("void")||ot("typeof")?(n=Vn,e=L(),t=xt(),t=new V(n).finishUnaryExpression(e.value,t),Pn&&"delete"===t.operator&&t.argument.type===On.Identifier&&K(An.StrictDelete)):t=_t(),t}function jt(e,t){var n=0;if(e.type!==En.Punctuator&&e.type!==En.Keyword)return 0;switch(e.value){case"||":n=1;break;case"&&":n=2;break;case"|":n=3;break;case"^":n=4;break;case"&":n=5;break;case"==":case"!=":case"===":case"!==":n=6;break;case"<":case">":case"<=":case">=":case"instanceof":n=7;break;case"in":n=t?7:0;break;case"<<":case">>":case">>>":n=8;break;case"+":case"-":n=9;break;case"*":case"/":case"%":n=11}return n}function Et(){var e,t,n,r,o,s,a,i,l,c;if(e=Vn,l=xt(),l===Dn.ArrowParameterPlaceHolder)return l;if(r=Vn,o=jt(r,$n.allowIn),0===o)return l;for(r.prec=o,L(),t=[e,Vn],a=xt(),s=[l,r,a];(o=jt(Vn,$n.allowIn))>0;){for(;s.length>2&&o<=s[s.length-2].prec;)a=s.pop(),i=s.pop().value,l=s.pop(),t.pop(),n=new V(t[t.length-1]).finishBinaryExpression(i,l,a),s.push(n);r=L(),r.prec=o,s.push(r),t.push(Vn),n=xt(),s.push(n)}for(c=s.length-1,n=s[c],t.pop();c>1;)n=new V(t.pop()).finishBinaryExpression(s[c-1].value,s[c-2],n),c-=2;return n}function Tt(){var e,t,n,r,o;return o=Vn,e=Et(),e===Dn.ArrowParameterPlaceHolder?e:(rt("?")&&(L(),t=$n.allowIn,$n.allowIn=!0,n=Rt(),$n.allowIn=t,et(":"),r=Rt(),e=new V(o).finishConditionalExpression(e,n,r)),e)}function kt(){return rt("{")?rn():Rt()}function Ot(e){var t,n,r,o,s,a,i,l,c;for(o=[],s=[],a=0,l=null,i={paramSet:{}},t=0,n=e.length;n>t;t+=1)if(r=e[t],r.type===On.Identifier)o.push(r),s.push(null),on(i,r,r.name);else{if(r.type!==On.AssignmentExpression)return null;o.push(r.left),s.push(r.right),++a,on(i,r.left,r.left.name)}return i.message===An.StrictParamDupe&&(c=Pn?i.stricted:i.firstRestricted,Q(c,i.message)),0===a&&(s=[]),{params:o,defaults:s,rest:l,stricted:i.stricted,firstRestricted:i.firstRestricted,message:i.message}}function Dt(e,t){var n,r;return et("=>"),n=Pn,r=kt(),Pn&&e.firstRestricted&&Q(e.firstRestricted,e.message),Pn&&e.stricted&&Z(e.stricted,e.message),Pn=n,t.finishArrowFunctionExpression(e.params,e.defaults,r,r.type!==On.BlockStatement)}function Rt(){var e,t,n,r,o,s;return e=$n.parenthesisCount,s=Vn,t=Vn,n=Tt(),n!==Dn.ArrowParameterPlaceHolder&&!rt("=>")||$n.parenthesisCount!==e&&$n.parenthesisCount!==e+1||(n.type===On.Identifier?o=Ot([n]):n.type===On.AssignmentExpression?o=Ot([n]):n.type===On.SequenceExpression?o=Ot(n.expressions):n===Dn.ArrowParameterPlaceHolder&&(o=Ot([])),!o)?(st()&&(it(n)||K(An.InvalidLHSInAssignment),Pn&&n.type===On.Identifier&&u(n.name)&&Z(t,An.StrictLHSAssignment),t=L(),r=Rt(),n=new V(s).finishAssignmentExpression(t.value,n,r)),n):Dt(o,new V(s))}function At(){var e,t,n=Vn;if(e=Rt(),rt(",")){for(t=[e];Jn>Gn&&rt(",");)L(),t.push(Rt());e=new V(n).finishSequenceExpression(t)}return e}function Mt(){for(var e,t=[],n=In;Jn>Gn&&!rt("}")&&(e=pn(),"undefined"!=typeof e&&n!==In);)t.push(e),n=In;return t}function Ct(){var e,t=new J;return et("{"),e=Mt(),gn("}"),t.finishBlockStatement(e)}function Pt(){var e,t=new J;return e=L(),e.type!==En.Identifier&&(Pn&&e.type===En.Keyword&&p(e.value)?Z(e,An.StrictReservedWord):Q(e)),t.finishIdentifier(e.value)}function It(e){var t,n=null,r=new J;return t=Pt(),Pn&&u(t.name)&&K(An.StrictVarName),"const"===e?(et("="),n=Rt()):rt("=")&&(L(),n=Rt()),r.finishVariableDeclarator(t,n)}function zt(e){var t=[];do{if(t.push(It(e)),!rt(","))break;L()}while(Jn>Gn);return t}function Nt(e){var t;return nt("var"),t=zt(),at(),e.finishVariableDeclaration(t,"var")}function Lt(e){var t,n=new J;return nt(e),t=zt(e),at(),n.finishVariableDeclaration(t,e)}function Ft(){var e=new J;return et(";"),e.finishEmptyStatement()}function Ut(e){var t=At();return at(),t||(t=xn(e)),e.finishExpressionStatement(t)}function qt(e){var t,n,r;return nt("if"),et("("),t=At(),gn(")","{"),n=nn(),ot("else")?(L(),r=nn()):r=null,e.finishIfStatement(t,n,r)}function Gt(e){var t,n,r;return nt("do"),r=$n.inIteration,$n.inIteration=!0,t=nn(),$n.inIteration=r,nt("while"),et("("),n=At(),gn(")","{"),rt(";")&&L(),e.finishDoWhileStatement(t,n)}function Wt(e){var t,n,r;return nt("while"),et("("),t=At(),gn(")","{"),r=$n.inIteration,$n.inIteration=!0,n=nn(),$n.inIteration=r,e.finishWhileStatement(t,n)}function Bt(){var e,t,n=new J;return e=L(),t=zt(),n.finishVariableDeclaration(t,e.value)}function Ht(e){var t,n,r,o,s,a,i,l=$n.allowIn;return t=n=r=null,nt("for"),et("("),rt(";")?L():(ot("var")||ot("let")?($n.allowIn=!1,t=Bt(),$n.allowIn=l,1===t.declarations.length&&ot("in")&&(L(),o=t,s=At(),t=null)):($n.allowIn=!1,t=At(),$n.allowIn=l,ot("in")&&(it(t)||K(An.InvalidLHSInForIn),L(),o=t,s=At(),t=null)),"undefined"==typeof o&&et(";")),"undefined"==typeof o&&(rt(";")||(n=At()),et(";"),rt(")")||(r=At())),gn(")","{"),i=$n.inIteration,$n.inIteration=!0,a=nn(),$n.inIteration=i,"undefined"==typeof o?e.finishForStatement(t,n,r,a):e.finishForInStatement(o,s,a)}function Jt(e){var t,n=null;if(nt("continue"),59===Cn.charCodeAt(Gn))return L(),$n.inIteration||X(An.IllegalContinue),e.finishContinueStatement(null);if(Ln)return $n.inIteration||X(An.IllegalContinue),e.finishContinueStatement(null);if(Vn.type===En.Identifier){var r=Vn;n=Pt(),t="$"+n.name,Object.prototype.hasOwnProperty.call($n.labelSet,t)||Z(r,An.UnknownLabel,n.name)}return at(),null!==n||$n.inIteration||X(An.IllegalContinue),e.finishContinueStatement(n)}function Vt(e){var t,n=null;return nt("break"),59===Cn.charCodeAt(Fn)?(L(),$n.inIteration||$n.inSwitch||X(An.IllegalBreak),e.finishBreakStatement(null)):Ln?($n.inIteration||$n.inSwitch||X(An.IllegalBreak),e.finishBreakStatement(null)):(Vn.type===En.Identifier&&(n=Pt(),t="$"+n.name,Object.prototype.hasOwnProperty.call($n.labelSet,t)||X(An.UnknownLabel,n.name)),at(),null!==n||$n.inIteration||$n.inSwitch||X(An.IllegalBreak),e.finishBreakStatement(n))}function $t(e){var t=null,n=Vn;return nt("return"),$n.inFunctionBody||Z(n,An.IllegalReturn,n.value),32===Cn.charCodeAt(Fn)&&i(Cn.charCodeAt(Fn+1))?(t=At(),at(),e.finishReturnStatement(t)):Ln?e.finishReturnStatement(null):(rt(";")||rt("}")||Vn.type===En.EOF||(t=At()),at(),e.finishReturnStatement(t))}function Xt(e){var t,n;return Pn&&K(An.StrictModeWith),nt("with"),et("("),t=At(),gn(")","{"),n=nn(),e.finishWithStatement(t,n)}function Kt(){var e,t,n=[],r=new J;ot("default")?(L(),e=null):(nt("case"),e=At()),rt(":")&&L();for(var o=In;Jn>Gn&&!(rt("}")||ot("default")||ot("case"))&&(t=nn(),"undefined"!=typeof t&&null!==t)&&(n.push(t),o!==In);)o=In;return r.finishSwitchCase(e,n)}function Yt(e){var t,n,r,o,s;if(nt("switch"),et("("),t=At(),et(")"),et("{"),n=[],rt("}"))return L(),e.finishSwitchStatement(t,n);for(o=$n.inSwitch,$n.inSwitch=!0,s=!1;Jn>Gn&&!rt("}");)r=Kt(),null===r.test&&(s&&X(An.MultipleDefaultsInSwitch),s=!0),n.push(r);return $n.inSwitch=o,et("}"),e.finishSwitchStatement(t,n)}function Qt(e){var t;return nt("throw"),Ln&&X(An.NewlineAfterThrow),t=At(),at(),e.finishThrowStatement(t)}function Zt(){var e,t,n=new J;return nt("catch"),et("("),rt(")")&&Q(Vn),e=Pt(),Pn&&u(e.name)&&K(An.StrictCatchVariable),et(")"),t=Ct(),n.finishCatchClause(e,t)}function en(e){var t,n=[],r=null;return nt("try"),t=Ct(),ot("catch")&&n.push(Zt()),ot("finally")&&(L(),r=Ct()),0!==n.length||r||X(An.NoCatchOrFinally),e.finishTryStatement(t,[],n,r)}function tn(e){return nt("debugger"),at(),e.finishDebuggerStatement()}function nn(){var e,t,n,r,o=Vn.type;if(o===En.EOF&&Q(Vn),o===En.Punctuator&&"{"===Vn.value)return Ct();if(r=new J,o===En.Punctuator)switch(Vn.value){case";":return Ft(r);case"(":return Ut(r)}else if(o===En.Keyword)switch(Vn.value){case"break":return Vt(r);case"continue":return Jt(r);case"debugger":return tn(r);case"do":return Gt(r);case"for":return Ht(r);case"function":return ln(r);case"if":return qt(r);case"return":return $t(r);case"switch":return Yt(r);case"throw":return Qt(r);case"try":return en(r);case"var":return Nt(r);case"while":return Wt(r);case"with":return Xt(r)}return e=At(),e&&e.type===On.Identifier&&rt(":")?(L(),n="$"+e.name,Object.prototype.hasOwnProperty.call($n.labelSet,n)&&X(An.Redeclaration,"Label",e.name),$n.labelSet[n]=!0,t=nn(),delete $n.labelSet[n],r.finishLabeledStatement(e,t)):(at(),e||(e=xn(r)),r.finishExpressionStatement(e))}function rn(){var e,t,n,r,o,s,a,i,l,c=[],p=new J;for(et("{");Jn>Gn&&Vn.type===En.StringLiteral&&(t=Vn,e=pn(),c.push(e),e.expression.type===On.Literal);)n=Cn.slice(t.start+1,t.end-1),"use strict"===n?(Pn=!0,r&&Z(r,An.StrictOctalLiteral)):!r&&t.octal&&(r=t);o=$n.labelSet,s=$n.inIteration,a=$n.inSwitch,i=$n.inFunctionBody,l=$n.parenthesizedCount,$n.labelSet={},$n.inIteration=!1,$n.inSwitch=!1,$n.inFunctionBody=!0,$n.parenthesizedCount=0;for(var u=In;Jn>In&&!rt("}")&&(e=pn(),"undefined"!=typeof e&&null!=e)&&(c.push(e),u!==In);)u=In;return gn("}"),$n.labelSet=o,$n.inIteration=s,$n.inSwitch=a,$n.inFunctionBody=i,$n.parenthesizedCount=l,p.finishBlockStatement(c)}function on(e,t,n){var r="$"+n;Pn?(u(n)&&(e.stricted=t,e.message=An.StrictParamName),Object.prototype.hasOwnProperty.call(e.paramSet,r)&&(e.stricted=t,e.message=An.StrictParamDupe)):e.firstRestricted||(u(n)?(e.firstRestricted=t,e.message=An.StrictParamName):p(n)?(e.firstRestricted=t,e.message=An.StrictReservedWord):Object.prototype.hasOwnProperty.call(e.paramSet,r)&&(e.firstRestricted=t,e.message=An.StrictParamDupe)),e.paramSet[r]=!0}function sn(e){var t,n,r;return t=Vn,n=Pt(),on(e,t,t.value),rt("=")&&(L(),r=Rt(),++e.defaultCount),e.params.push(n),e.defaults.push(r),!rt(")")}function an(e){var t;if(t={params:[],defaultCount:0,defaults:[],firstRestricted:e},et("("),!rt(")"))for(t.paramSet={};Jn>Gn&&sn(t);)et(",");return et(")"),0===t.defaultCount&&(t.defaults=[]),{params:t.params,defaults:t.defaults,stricted:t.stricted,firstRestricted:t.firstRestricted,message:t.message}}function ln(){var e,t,n,r,o,s,a,i,l=[],c=[],d=new J;return nt("function"),n=Vn,e=Pt(),Pn?u(n.value)&&Z(n,An.StrictFunctionName):u(n.value)?(s=n,a=An.StrictFunctionName):p(n.value)&&(s=n,a=An.StrictReservedWord),o=an(s),l=o.params,c=o.defaults,r=o.stricted,s=o.firstRestricted,o.message&&(a=o.message),i=Pn,t=rn(),Pn&&s&&Q(s,a),Pn&&r&&Z(r,a),Pn=i,d.finishFunctionDeclaration(e,l,c,t)}function cn(){var e,t,n,r,o,s,a,i=null,l=[],c=[],d=new J;return nt("function"),rt("(")||(e=Vn,i=Pt(),Pn?u(e.value)&&Z(e,An.StrictFunctionName):u(e.value)?(n=e,r=An.StrictFunctionName):p(e.value)&&(n=e,r=An.StrictReservedWord)),o=an(n),l=o.params,c=o.defaults,t=o.stricted,n=o.firstRestricted,o.message&&(r=o.message),a=Pn,s=rn(),Pn&&n&&Q(n,r),Pn&&t&&Z(t,r),Pn=a,d.finishFunctionExpression(i,l,c,s)}function pn(){if(Vn.type===En.Keyword)switch(Vn.value){case"const":case"let":return Lt(Vn.value);case"function":return ln();default:return nn()}return Vn.type!==En.EOF?nn():void 0}function un(){for(var e,t,n,r,o=[];Jn>Gn&&(t=Vn,t.type===En.StringLiteral)&&(e=pn(),o.push(e),e.expression.type===On.Literal);)n=Cn.slice(t.start+1,t.end-1),"use strict"===n?(Pn=!0,r&&Z(r,An.StrictOctalLiteral)):!r&&t.octal&&(r=t);for(var s=In;Jn>Gn&&(e=pn(),"undefined"!=typeof e&&null!==e)&&(o.push(e),s!==In);)s=In;return o}function dn(){var e,t;return F(),t=new J,Pn=!1,e=un(),t.finishProgram(e)}function hn(){var e,t,n,r=[];for(e=0;e<Xn.tokens.length;++e)t=Xn.tokens[e],n={type:t.type,value:t.value},t.regex&&(n.regex={pattern:t.regex.pattern,flags:t.regex.flags}),Xn.range&&(n.range=t.range),Xn.loc&&(n.loc=t.loc),r.push(n);Xn.tokens=r}function fn(e,t){var n,r;n=String,"string"==typeof e||e instanceof String||(e=n(e)),Cn=e,In=0,zn=Cn.length>0?1:0,Nn=0,Gn=In,Wn=zn,Bn=Nn,Jn=Cn.length,Vn=null,$n={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},Xn={},t=t||{},t.tokens=!0,Xn.tokens=[],Xn.tokenize=!0,Xn.openParenToken=-1,Xn.openCurlyToken=-1,Xn.range="boolean"==typeof t.range&&t.range,Xn.loc="boolean"==typeof t.loc&&t.loc,"boolean"==typeof t.comment&&t.comment&&(Xn.comments=[]),"boolean"==typeof t.tolerant&&t.tolerant&&(Xn.errors=[]);try{if(F(),Vn.type===En.EOF)return Xn.tokens;for(L();Vn.type!==En.EOF;)try{L()}catch(o){if(Xn.errors){Xn.errors.push(o);break}throw o}hn(),r=Xn.tokens,"undefined"!=typeof Xn.comments&&(r.comments=Xn.comments),"undefined"!=typeof Xn.errors&&(r.errors=Xn.errors)}catch(s){throw s}finally{Xn={}}return r}function mn(e,t){var n,r;r=String,"string"==typeof e||e instanceof String||(e=r(e)),Cn=e,In=0,zn=Cn.length>0?1:0,Nn=0,Gn=In,Wn=zn,Bn=Nn,Jn=Cn.length,Vn=null,$n={allowIn:!0,labelSet:{},parenthesisCount:0,inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},Xn={},"undefined"!=typeof t&&("boolean"==typeof t.deps&&t.deps&&(Xn.deps=[],Xn.envs=Object.create(null)),Xn.range="boolean"==typeof t.range&&t.range,Xn.loc="boolean"==typeof t.loc&&t.loc,Xn.attachComment="boolean"==typeof t.attachComment&&t.attachComment,Xn.loc&&null!==t.source&&void 0!==t.source&&(Xn.source=r(t.source)),"boolean"==typeof t.tokens&&t.tokens&&(Xn.tokens=[]),"boolean"==typeof t.comment&&t.comment&&(Xn.comments=[]),"boolean"==typeof t.tolerant&&t.tolerant&&(Xn.errors=[],Xn.parseStatement=nn,Xn.parseExpression=At,nn=vn(nn),At=yn(At)),Xn.attachComment&&(Xn.range=!0,Xn.comments=[],Xn.bottomRightStack=[],Xn.trailingComments=[],Xn.leadingComments=[]),Xn.directSourceFile=t.directSourceFile);
try{n=dn(),"undefined"!=typeof Xn.comments&&(n.comments=Xn.comments),"undefined"!=typeof Xn.tokens&&(hn(),n.tokens=Xn.tokens),"undefined"!=typeof Xn.errors&&(n.errors=Xn.errors),"undefined"!=typeof Xn.deps&&(n.dependencies=Xn.deps,n.environments=Xn.envs)}catch(o){throw o}finally{"undefined"!=typeof Xn.errors&&(nn=Xn.parseStatement,At=Xn.parseExpression),Xn={}}return n}function gn(e,t){try{et(e)}catch(n){if(!Xn.errors)throw n;bn(n),t&&Cn[n.index]===t&&(In=n.index,F())}}function bn(e){for(var t=Xn.errors.length,n=0;t>n;n++){var r=Xn.errors[n];if(r.index===e.index&&r.message===e.message)return}Xn.errors.push(e)}function yn(e){return function(){try{return e.apply(null,arguments)}catch(t){bn(t)}}}function vn(e){return function(){Xn.statementStart=In;try{return e.apply(null,arguments)}catch(t){bn(t)}}}function wn(e){for(var t=e;t>-1&&";"!==Cn[t]&&"\n"!==Cn[t];)t--;if(!(t<=Xn.statementStart)){var n=!1;Xn.lastRewindLocation?n=!0:Xn.lastRewindLocation!==t&&(n=!0),n&&(In=t,Sn(e),F(),Xn.lastRewindLocation=In)}}function Sn(e,t){for(var n=Xn.tokens.length-1;n>-1;){var r=Xn.tokens[n];if(r.range[0]<e){t&&Xn.tokens.pop();break}n--,Xn.tokens.pop()}return n}function _n(e){if(e.value&&e.type===En.Punctuator){var t=e.range?e.range[0]:e.start,n=Sn(t),r=Xn.tokens[n];r.type===Tn[En.Punctuator]&&"."===r.value&&(In=r.range[0]+1,F())}}function xn(e,t,n){var r={type:"RecoveredNode",name:"",recovered:!0,expectedValue:n,expectedType:t};return Xn.range&&(r.range=e.range,r.range[1]=In,r.start=e.range,r.end=In),Xn.loc&&(r.loc=e.loc,r.loc.end=new W),r}function jn(e,t,n){if(Xn.errors){var r=Vn;if(":"===r.value)try{return r=L(),n.finishProperty("init",t,Rt(),!1,!0)}catch(o){return r=Xn.tokens[Xn.tokens.length-1],Z(r,An.UnexpectedToken,r.value),n.finishProperty("init",t,null,!1,!0),null}else{if(r.type===En.Punctuator&&"}"===r.value)return Z(e,An.UnexpectedToken,e.value),n.finishProperty("init",t,!1,!0,!0),null;if(Z(e,An.UnexpectedToken,e.value),r.type===En.Identifier||r.type===En.StringLiteral)return n.finishProperty("init",t,!1,!0),null;for(;r.type!==En.EOF;){if(r.type===En.Punctuator&&(","===r.value||"}"===r.value))return n.finishProperty("init",t,!1,!0),null;r=L(),r=z()}}return n.finishProperty("init",t,!1,!0),null}return et(":"),n.finishProperty("init",t,Rt(),!1,!0)}var En,Tn,kn,On,Dn,Rn,An,Mn,Cn,Pn,In,zn,Nn,Ln,Fn,Un,qn,Gn,Wn,Bn,Hn,Jn,Vn,$n,Xn;En={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8,RegularExpression:9},Tn={},Tn[En.BooleanLiteral]="Boolean",Tn[En.EOF]="<end>",Tn[En.Identifier]="Identifier",Tn[En.Keyword]="Keyword",Tn[En.NullLiteral]="Null",Tn[En.NumericLiteral]="Numeric",Tn[En.Punctuator]="Punctuator",Tn[En.StringLiteral]="String",Tn[En.RegularExpression]="RegularExpression",kn=["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="],On={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",ArrowFunctionExpression:"ArrowFunctionExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement"},Dn={ArrowParameterPlaceHolder:{type:"ArrowParameterPlaceHolder"}},Rn={Data:1,Get:2,Set:4},An={UnexpectedToken:"Unexpected token %0",UnexpectedNumber:"Unexpected number",UnexpectedString:"Unexpected string",UnexpectedIdentifier:"Unexpected identifier",UnexpectedReserved:"Unexpected reserved word",UnexpectedEOS:"Unexpected end of input",NewlineAfterThrow:"Illegal newline after throw",InvalidRegExp:"Invalid regular expression",UnterminatedRegExp:"Invalid regular expression: missing /",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NoCatchOrFinally:"Missing catch or finally after try",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '%1' has already been declared",IllegalContinue:"Illegal continue statement",IllegalBreak:"Illegal break statement",IllegalReturn:"Illegal return statement",StrictModeWith:"Strict mode code may not include a with statement",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictDuplicateProperty:"Duplicate data property in object literal not allowed in strict mode",AccessorDataProperty:"Object literal may not have data and accessor property with the same name",AccessorGetSet:"Object literal may not have multiple get/set accessors with the same name",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",MissingToken:"Missing expected '%0'"},Mn={NonAsciiIdentifierStart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢲऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞭꞰꞱꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭟꭤꭥꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ﬀ-ﬆﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼＡ-Ｚａ-ｚｦ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ]"),NonAsciiIdentifierPart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԯԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠ-ࢲࣤ-ॣ०-९ॱ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఀ-ఃఅ-ఌఎ-ఐఒ-నప-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಁ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲഁ-ഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟ෦-෯ෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤞᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧ᪰-᪽ᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶ᳸᳹ᴀ-᷵᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‌‍‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚝꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞭꞰꞱꟷ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꧠ-ꧾꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭟꭤꭥꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ﬀ-ﬆﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︭︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ０-９Ａ-Ｚ＿ａ-ｚｦ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ]")},V.prototype=J.prototype={processComment:function(){var e,t,n,r,o,s=Xn.bottomRightStack,a=s[s.length-1];if(!(this.type===On.Program&&this.body.length>0)){if(Xn.trailingComments.length>0){for(n=[],r=Xn.trailingComments.length-1;r>=0;--r)o=Xn.trailingComments[r],o.range[0]>=this.range[1]&&(n.unshift(o),Xn.trailingComments.splice(r,1));Xn.trailingComments=[]}else a&&a.trailingComments&&a.trailingComments[0].range[0]>=this.range[1]&&(n=a.trailingComments,delete a.trailingComments);if(a)for(;a&&a.range[0]>=this.range[0];)e=a,a=s.pop();if(e)e.leadingComments&&e.leadingComments[e.leadingComments.length-1].range[1]<=this.range[0]&&(this.leadingComments=e.leadingComments,e.leadingComments=void 0);else if(Xn.leadingComments.length>0)for(t=[],r=Xn.leadingComments.length-1;r>=0;--r)o=Xn.leadingComments[r],o.range[1]<=this.range[0]&&(t.unshift(o),Xn.leadingComments.splice(r,1));t&&t.length>0&&(this.leadingComments=t),n&&n.length>0&&(this.trailingComments=n),s.push(this)}},finish:function(){Xn.loc&&(this.loc.end={line:Un,column:Fn-qn},Xn.source&&(this.loc.source=Xn.source)),Xn.range&&(this.range[1]=Fn,this.start=this.range[0],this.end=Fn),Xn.attachComment&&this.processComment()},finishArrayExpression:function(e){return this.type=On.ArrayExpression,this.elements=e,this.finish(),this},finishArrowFunctionExpression:function(e,t,n,r){return this.type=On.ArrowFunctionExpression,this.id=null,this.params=e,this.defaults=t,this.body=n,this.rest=null,this.generator=!1,this.expression=r,this.finish(),this},finishAssignmentExpression:function(e,t,n){return this.type=On.AssignmentExpression,this.operator=e,this.left=t,this.right=n,this.finish(),this},finishBinaryExpression:function(e,t,n){return this.type="||"===e||"&&"===e?On.LogicalExpression:On.BinaryExpression,this.operator=e,this.left=t,this.right=n,this.finish(),this},finishBlockStatement:function(e){return this.type=On.BlockStatement,this.body=e,this.finish(),this},finishBreakStatement:function(e){return this.type=On.BreakStatement,this.label=e,this.finish(),this},finishCallExpression:function(e,t){return this.type=On.CallExpression,this.callee=e,this.arguments=t,G(e,t),this.finish(),this},finishCatchClause:function(e,t){return this.type=On.CatchClause,this.param=e,this.body=t,this.finish(),this},finishConditionalExpression:function(e,t,n){return this.type=On.ConditionalExpression,this.test=e,this.consequent=t,this.alternate=n,this.finish(),this},finishContinueStatement:function(e){return this.type=On.ContinueStatement,this.label=e,this.finish(),this},finishDebuggerStatement:function(){return this.type=On.DebuggerStatement,this.finish(),this},finishDoWhileStatement:function(e,t){return this.type=On.DoWhileStatement,this.body=e,this.test=t,this.finish(),this},finishEmptyStatement:function(){return this.type=On.EmptyStatement,this.finish(),this},finishExpressionStatement:function(e){return this.type=On.ExpressionStatement,this.expression=e,this.finish(),this},finishForStatement:function(e,t,n,r){return this.type=On.ForStatement,this.init=e,this.test=t,this.update=n,this.body=r,this.finish(),this},finishForInStatement:function(e,t,n){return this.type=On.ForInStatement,this.left=e,this.right=t,this.body=n?n:xn(this,"Statement"),this.each=!1,this.finish(),this},finishFunctionDeclaration:function(e,t,n,r){return this.type=On.FunctionDeclaration,this.id=e,this.params=t,this.defaults=n,this.body=r,this.rest=null,this.generator=!1,this.expression=!1,this.finish(),this},finishFunctionExpression:function(e,t,n,r){return this.type=On.FunctionExpression,this.id=e,this.params=t,this.defaults=n,this.body=r,this.rest=null,this.generator=!1,this.expression=!1,this.finish(),this},finishIdentifier:function(e){return this.type=On.Identifier,this.name=e,this.finish(),this},finishIfStatement:function(e,t,n){return this.type=On.IfStatement,this.test=e,this.consequent=t?t:xn(this,"Statement"),this.alternate=n,this.finish(),this},finishLabeledStatement:function(e,t){return this.type=On.LabeledStatement,this.label=e,this.body=t,this.finish(),this},finishLiteral:function(e){return this.type=On.Literal,this.value=e.value,this.raw=Cn.slice(e.start,e.end),e.regex&&(this.regex=e.regex),this.finish(),this},finishMemberExpression:function(e,t,n){return this.type=On.MemberExpression,this.computed="["===e,this.object=t,this.property=n,this.finish(),this},finishNewExpression:function(e,t){return this.type=On.NewExpression,this.callee=e,this.arguments=t,G(e,t),this.finish(),this},finishObjectExpression:function(e){return this.type=On.ObjectExpression,this.properties=e,this.finish(),this},finishPostfixExpression:function(e,t){return this.type=On.UpdateExpression,this.operator=e,this.argument=t,this.prefix=!1,this.finish(),this},finishProgram:function(e){return this.type=On.Program,this.body=e,this.finish(),this},finishProperty:function(e,t,n,r,o){return this.type=On.Property,this.key=t,this.value=n,this.kind=e,this.method=r,this.shorthand=o,this.finish(),this},finishReturnStatement:function(e){return this.type=On.ReturnStatement,this.argument=e,this.finish(),this},finishSequenceExpression:function(e){return this.type=On.SequenceExpression,this.expressions=e,this.finish(),this},finishSwitchCase:function(e,t){return this.type=On.SwitchCase,this.test=e,this.consequent=t,this.finish(),this},finishSwitchStatement:function(e,t){return this.type=On.SwitchStatement,this.discriminant=e,this.cases=t,this.finish(),this},finishThisExpression:function(){return this.type=On.ThisExpression,this.finish(),this},finishThrowStatement:function(e){return this.type=On.ThrowStatement,this.argument=e,this.finish(),this},finishTryStatement:function(e,t,n,r){return this.type=On.TryStatement,this.block=e,this.guardedHandlers=t,this.handlers=n,Array.isArray(n)&&n.length>0&&(this.handler=n[0]),this.finalizer=r,this.finish(),this},finishUnaryExpression:function(e,t){return this.type="++"===e||"--"===e?On.UpdateExpression:On.UnaryExpression,this.operator=e,this.argument=t,this.prefix=!0,this.finish(),this},finishVariableDeclaration:function(e,t){return this.type=On.VariableDeclaration,this.declarations=e,this.kind=t,this.finish(),this},finishVariableDeclarator:function(e,t){return this.type=On.VariableDeclarator,this.id=e,this.init=t,this.finish(),this},finishWhileStatement:function(e,t){return this.type=On.WhileStatement,this.test=e,this.body=t?t:xn(this,"Statement"),this.finish(),this},finishWithStatement:function(e,t){return this.type=On.WithStatement,this.object=e,this.body=t?t:xn(this,"Statement"),this.finish(),this}},e.version="2.0.0",e.tokenize=fn,e.parse=mn,e.isIdentifierPart=l,e.isIdentifierStart=i,e.isIdentifierChar=l,e.Syntax=function(){var e,t={};"function"==typeof Object.create&&(t=Object.create(null));for(e in On)On.hasOwnProperty(e)&&(t[e]=On[e]);return"function"==typeof Object.freeze&&Object.freeze(t),t}()}),function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define("acorn/dist/walk",[],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,(t.acorn||(t.acorn={})).walk=e()}}(function(){return function e(t,n,r){function o(a,i){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!i&&l)return l(a,!0);if(s)return s(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var p=n[a]={exports:{}};t[a][0].call(p.exports,function(e){var n=t[a][1][e];return o(n?n:e)},p,p.exports,e,t,n,r)}return n[a].exports}for(var s="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t,r,o,s){r||(r=n.base),function a(e,n,o){var s=o||e.type,i=t[s];r[s](e,n,a),i&&i(e,n)}(e,o,s)}function s(e,t,r,o){r||(r=n.base),o||(o=[]),function s(e,n,o){var a=o||e.type,i=t[a];e!=n[n.length-1]&&(n=n.slice(),n.push(e)),r[a](e,n,s),i&&i(e,n)}(e,o)}function a(e,t,r,o,s){var a=r?n.make(r,o):o;!function i(e,t,n){a[n||e.type](e,t,i)}(e,t,s)}function i(e){return"string"==typeof e?function(t){return t==e}:e?e:function(){return!0}}function l(e,t,r,o,s,a){o=i(o),s||(s=n.base);try{!function c(e,n,a){var i=a||e.type;if((null==t||e.start<=t)&&(null==r||e.end>=r)&&s[i](e,n,c),(null==t||e.start==t)&&(null==r||e.end==r)&&o(i,e))throw new m(e,n)}(e,a)}catch(l){if(l instanceof m)return l;throw l}}function c(e,t,r,o,s){r=i(r),o||(o=n.base);try{!function l(e,n,s){var a=s||e.type;if(!(e.start>t||e.end<t)&&(o[a](e,n,l),r(a,e)))throw new m(e,n)}(e,s)}catch(a){if(a instanceof m)return a;throw a}}function p(e,t,r,o,s){r=i(r),o||(o=n.base);try{!function l(e,n,s){if(!(e.end<t)){var a=s||e.type;if(e.start>=t&&r(a,e))throw new m(e,n);o[a](e,n,l)}}(e,s)}catch(a){if(a instanceof m)return a;throw a}}function u(e,t,r,o,s){r=i(r),o||(o=n.base);var a=void 0;return function l(e,n,s){if(!(e.start>t)){var i=s||e.type;e.end<=t&&(!a||a.node.end<e.end)&&r(i,e)&&(a=new m(e,n)),o[i](e,n,l)}}(e,s),a}function d(e,t){t||(t=n.base);var r={};for(var o in t)r[o]=t[o];for(var o in e)r[o]=e[o];return r}function h(e,t,n){n(e,t)}function f(){}n.__esModule=!0,n.simple=o,n.ancestor=s,n.recursive=a,n.findNodeAt=l,n.findNodeAround=c,n.findNodeAfter=p,n.findNodeBefore=u,n.make=d;var m=function b(e,t){r(this,b),this.node=e,this.state=t},g={};n.base=g,g.Program=g.BlockStatement=function(e,t,n){for(var r=0;r<e.body.length;++r)n(e.body[r],t,"Statement")},g.Statement=h,g.EmptyStatement=f,g.ExpressionStatement=g.ParenthesizedExpression=function(e,t,n){return n(e.expression,t,"Expression")},g.IfStatement=function(e,t,n){n(e.test,t,"Expression"),n(e.consequent,t,"Statement"),e.alternate&&n(e.alternate,t,"Statement")},g.LabeledStatement=function(e,t,n){return n(e.body,t,"Statement")},g.BreakStatement=g.ContinueStatement=f,g.WithStatement=function(e,t,n){n(e.object,t,"Expression"),n(e.body,t,"Statement")},g.SwitchStatement=function(e,t,n){n(e.discriminant,t,"Expression");for(var r=0;r<e.cases.length;++r){var o=e.cases[r];o.test&&n(o.test,t,"Expression");for(var s=0;s<o.consequent.length;++s)n(o.consequent[s],t,"Statement")}},g.ReturnStatement=g.YieldExpression=function(e,t,n){e.argument&&n(e.argument,t,"Expression")},g.ThrowStatement=g.SpreadElement=function(e,t,n){return n(e.argument,t,"Expression")},g.TryStatement=function(e,t,n){n(e.block,t,"Statement"),e.handler&&(n(e.handler.param,t,"Pattern"),n(e.handler.body,t,"ScopeBody")),e.finalizer&&n(e.finalizer,t,"Statement")},g.WhileStatement=g.DoWhileStatement=function(e,t,n){n(e.test,t,"Expression"),n(e.body,t,"Statement")},g.ForStatement=function(e,t,n){e.init&&n(e.init,t,"ForInit"),e.test&&n(e.test,t,"Expression"),e.update&&n(e.update,t,"Expression"),n(e.body,t,"Statement")},g.ForInStatement=g.ForOfStatement=function(e,t,n){n(e.left,t,"ForInit"),n(e.right,t,"Expression"),n(e.body,t,"Statement")},g.ForInit=function(e,t,n){"VariableDeclaration"==e.type?n(e,t):n(e,t,"Expression")},g.DebuggerStatement=f,g.FunctionDeclaration=function(e,t,n){return n(e,t,"Function")},g.VariableDeclaration=function(e,t,n){for(var r=0;r<e.declarations.length;++r)n(e.declarations[r],t)},g.VariableDeclarator=function(e,t,n){n(e.id,t,"Pattern"),e.init&&n(e.init,t,"Expression")},g.Function=function(e,t,n){e.id&&n(e.id,t,"Pattern");for(var r=0;r<e.params.length;r++)n(e.params[r],t,"Pattern");n(e.body,t,e.expression?"ScopeExpression":"ScopeBody")},g.ScopeBody=function(e,t,n){return n(e,t,"Statement")},g.ScopeExpression=function(e,t,n){return n(e,t,"Expression")},g.Pattern=function(e,t,n){"Identifier"==e.type?n(e,t,"VariablePattern"):"MemberExpression"==e.type?n(e,t,"MemberPattern"):n(e,t)},g.VariablePattern=f,g.MemberPattern=h,g.RestElement=function(e,t,n){return n(e.argument,t,"Pattern")},g.ArrayPattern=function(e,t,n){for(var r=0;r<e.elements.length;++r){var o=e.elements[r];o&&n(o,t,"Pattern")}},g.ObjectPattern=function(e,t,n){for(var r=0;r<e.properties.length;++r)n(e.properties[r].value,t,"Pattern")},g.Expression=h,g.ThisExpression=g.Super=g.MetaProperty=f,g.ArrayExpression=function(e,t,n){for(var r=0;r<e.elements.length;++r){var o=e.elements[r];o&&n(o,t,"Expression")}},g.ObjectExpression=function(e,t,n){for(var r=0;r<e.properties.length;++r)n(e.properties[r],t)},g.FunctionExpression=g.ArrowFunctionExpression=g.FunctionDeclaration,g.SequenceExpression=g.TemplateLiteral=function(e,t,n){for(var r=0;r<e.expressions.length;++r)n(e.expressions[r],t,"Expression")},g.UnaryExpression=g.UpdateExpression=function(e,t,n){n(e.argument,t,"Expression")},g.BinaryExpression=g.LogicalExpression=function(e,t,n){n(e.left,t,"Expression"),n(e.right,t,"Expression")},g.AssignmentExpression=g.AssignmentPattern=function(e,t,n){n(e.left,t,"Pattern"),n(e.right,t,"Expression")},g.ConditionalExpression=function(e,t,n){n(e.test,t,"Expression"),n(e.consequent,t,"Expression"),n(e.alternate,t,"Expression")},g.NewExpression=g.CallExpression=function(e,t,n){if(n(e.callee,t,"Expression"),e.arguments)for(var r=0;r<e.arguments.length;++r)n(e.arguments[r],t,"Expression")},g.MemberExpression=function(e,t,n){n(e.object,t,"Expression"),e.computed&&n(e.property,t,"Expression")},g.ExportNamedDeclaration=g.ExportDefaultDeclaration=function(e,t,n){e.declaration&&n(e.declaration,t,"ExportNamedDeclaration"==e.type||e.declaration.id?"Statement":"Expression"),e.source&&n(e.source,t,"Expression")},g.ExportAllDeclaration=function(e,t,n){n(e.source,t,"Expression")},g.ImportDeclaration=function(e,t,n){for(var r=0;r<e.specifiers.length;r++)n(e.specifiers[r],t);n(e.source,t,"Expression")},g.ImportSpecifier=g.ImportDefaultSpecifier=g.ImportNamespaceSpecifier=g.Identifier=g.Literal=f,g.TaggedTemplateExpression=function(e,t,n){n(e.tag,t,"Expression"),n(e.quasi,t)},g.ClassDeclaration=g.ClassExpression=function(e,t,n){return n(e,t,"Class")},g.Class=function(e,t,n){e.id&&n(e.id,t,"Pattern"),e.superClass&&n(e.superClass,t,"Expression");for(var r=0;r<e.body.body.length;r++)n(e.body.body[r],t)},g.MethodDefinition=g.Property=function(e,t,n){e.computed&&n(e.key,t,"Expression"),n(e.value,t,"Expression")},g.ComprehensionExpression=function(e,t,n){for(var r=0;r<e.blocks.length;r++)n(e.blocks[r].right,t,"Expression");n(e.body,t,"Expression")},g.RecoveredNode=f},{}]},{},[1])(1)}),function(e){return"object"==typeof exports&&"object"==typeof module?exports.init=e:"function"==typeof define&&define.amd?define("tern/lib/def",{init:e}):void(tern.def={init:e})}(function(e,t){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function r(e,t,n){return e.call?e(t,n):e}function o(e,n){if("!ret"==n){if(e.retval)return e.retval;var r=new t.AVal;return e.propagate(new t.IsCallee(t.ANull,[],null,r)),r}return e.getProp(n)}function s(e,n){return function(o,s){for(var a=[],i=0;i<e.length;i++)a.push(r(e[i],o,s));return new t.Fn(name,t.ANull,a,r(n,o,s))}}function a(e){return function(n,o){for(var s=new t.AVal,a=0;a<e.length;a++)r(e[a],n,o).propagate(s);return s.maxWeight=1e5,s}}function i(e){return function(n,r){return new t.Arr(e(n,r))}}function l(e,n,r,o){var s=new b(e,null,r,o).parseType(!1,n,!0);if(/^fn\(/.test(e))for(var a=0;a<s.args.length;++a)(function(e){var n=s.args[e];n instanceof t.Fn&&n.args&&n.args.length&&c(s,function(r,o){var s=o[e];s&&s.propagate(new t.IsCallee(t.cx().topScope,n.args,null,t.ANull))})})(a);return s}function c(e,t,n){var r=e.computeRet,o=e.retval;e.computeRet=function(e,s,a){var i=t(e,s,a),l=r?r(e,s,a):o;return n?i:l}}function p(e){var t=Object.create(e.prototype);return t.props=Object.create(null),t.isShell=!0,t}function u(e){if(!e["!type"]||/^(fn\(|\[)/.test(e["!type"]))return!1;for(var t in e)if("!type"!=t&&"!doc"!=t&&"!url"!=t&&"!span"!=t&&"!data"!=t)return!1;return!0}function d(e,r,o){if(!e){var s=r["!type"];if(s)if(/^fn\(/.test(s))e=p(t.Fn);else{if("["!=s.charAt(0))throw new Error("Invalid !type spec: "+s);e=p(t.Arr)}else e=r["!stdProto"]?t.cx().protos[r["!stdProto"]]:p(t.Obj);e.name=o}for(var a in r)if(n(r,a)&&33!=a.charCodeAt(0)){var i=r[a];if("string"==typeof i||u(i))continue;var l=e.defProp(a);d(l.getObjType(),i,o?o+"."+a:a).propagate(l)}return e}function h(e,r,o){if(e.isShell){delete e.isShell;var s=r["!type"];if(s)l(s,o,e);else{var a=r["!proto"]&&l(r["!proto"]);t.Obj.call(e,a instanceof t.Obj?a:!0,o)}}var i=r["!effects"];if(i&&e instanceof t.Fn)for(var c=0;c<i.length;++c)v(i[c],e);f(r,e);for(var p in r)if(n(r,p)&&33!=p.charCodeAt(0)){var d=r[p],m=e.defProp(p),g=o?o+"."+p:p;if("string"==typeof d)m.isEmpty()&&l(d,g).propagate(m);else{if(u(d)){if(!m.isEmpty())continue;l(d["!type"],g,null,!0).propagate(m)}else h(m.getObjType(),d,g);d["!doc"]&&(m.doc=d["!doc"]),d["!url"]&&(m.url=d["!url"]),d["!span"]&&(m.span=d["!span"])}}return e}function f(e,t){e["!doc"]&&(t.doc=e["!doc"]),e["!url"]&&(t.url=e["!url"]),e["!span"]&&(t.span=e["!span"]),e["!data"]&&(t.metaData=e["!data"])}function m(e,n){var r=t.cx().parent,o=r&&r.passes&&r.passes[e];if(o)for(var s=0;s<o.length;s++)o[s](n)}function g(e,n){var r=t.cx();t.addOrigin(r.curOrigin=e["!name"]||"env#"+r.origins.length),r.localDefs=r.definitions[r.curOrigin]=Object.create(null),m("preLoadDef",e),d(n,e);var o=e["!define"];if(o){for(var s in o){var a=o[s];r.localDefs[s]="string"==typeof a?w(a):d(null,a,s)}for(var s in o){var a=o[s];"string"!=typeof a&&h(r.localDefs[s],o[s],s)}}h(n,e),m("postLoadDef",e),r.curOrigin=r.localDefs=null}var b=e.TypeParser=function(e,t,n,r){this.pos=t||0,this.spec=e,this.base=n,this.forceNew=r};b.prototype={eat:function(e){return(1==e.length?this.spec.charAt(this.pos)==e:this.spec.indexOf(e,this.pos)==this.pos)?(this.pos+=e.length,!0):void 0},word:function(e){for(var t,n="",e=e||/[\w$]/;(t=this.spec.charAt(this.pos))&&e.test(t);)n+=t,++this.pos;return n},error:function(){throw new Error("Unrecognized type spec: "+this.spec+" (at "+this.pos+")")},parseFnType:function(e,n,r){var o=[],a=[],i=!1;if(!this.eat(")"))for(var l=0;;++l){var c,p=this.spec.indexOf(": ",this.pos);-1!=p&&(c=this.spec.slice(this.pos,p),/^[$\w?]+$/.test(c)?this.pos=p+2:c=null),a.push(c);var u=this.parseType(e);if(u.call&&(i=!0),o.push(u),!this.eat(", ")){this.eat(")")||this.error();break}}var d,h,f,m;if(this.eat(" -> ")){var g=this.pos;d=this.parseType(!0),d.call&&(r?(h=d,d=t.ANull,f=g):i=!0)}else d=t.ANull;return i?s(o,d):(r&&(m=this.base)?t.Fn.call(this.base,n,t.ANull,o,a,d):m=new t.Fn(n,t.ANull,o,a,d),h&&(m.computeRet=h),null!=f&&(m.computeRetSource=this.spec.slice(f,this.pos)),m)},parseType:function(e,n,r){var o=this.parseTypeMaybeProp(e,n,r);if(!this.eat("|"))return o;for(var s=[o],i=o.call;;){var l=this.parseTypeMaybeProp(e,n,r);if(s.push(l),l.call&&(i=!0),!this.eat("|"))break}if(i)return a(s);for(var c=new t.AVal,p=0;p<s.length;p++)s[p].propagate(c);return c.maxWeight=1e5,c},parseTypeMaybeProp:function(e,t,n){for(var r=this.parseTypeInner(e,t,n);e&&this.eat(".");)r=this.extendWithProp(r);return r},extendWithProp:function(e){var t=this.word(/[\w<>$!]/)||this.error();return e.apply?function(n,r){return o(e(n,r),t)}:o(e,t)},parseTypeInner:function(e,n,r){if(this.eat("fn("))return this.parseFnType(e,n,r);if(this.eat("[")){var o=this.parseType(e);return this.eat("]")||this.error(),o.call?i(o):r&&this.base?(t.Arr.call(this.base,o),this.base):new t.Arr(o)}if(this.eat("+")){var s=this.word(/[\w$<>\.!]/),a=w(s+".prototype");return a instanceof t.Obj||(a=w(s)),a instanceof t.Obj?e&&this.eat("[")?this.parsePoly(a):r&&this.forceNew?new t.Obj(a):t.getInstance(a):a}if(e&&this.eat("!")){var l=this.word(/\d/);if(l)return l=Number(l),function(e,n){return n[l]||t.ANull};if(this.eat("this"))return function(e){return e};if(this.eat("custom:")){var c=this.word(/[\w$]/);return S[c]||function(){return t.ANull}}return this.fromWord("!"+this.word(/[\w$<>\.!]/))}return this.eat("?")?t.ANull:this.fromWord(this.word(/[\w$<>\.!`]/))},fromWord:function(e){var n=t.cx();switch(e){case"number":return n.num;case"string":return n.str;case"bool":return n.bool;case"<top>":return n.topScope}return n.localDefs&&e in n.localDefs?n.localDefs[e]:w(e)},parsePoly:function(e){var n,r="<i>";(n=this.spec.slice(this.pos).match(/^\s*(\w+)\s*=\s*/))&&(r=n[1],this.pos+=n[0].length);var o=this.parseType(!0);if(this.eat("]")||this.error(),o.call)return function(n,s){var a=t.getInstance(e);return o(n,s).propagate(a.defProp(r)),a};var s=t.getInstance(e);return o.propagate(s.defProp(r)),s}};var y,v=e.parseEffect=function(e,n){var o;if(0==e.indexOf("propagate ")){var s=new b(e,10),a=s.parseType(!0);s.eat(" ")||s.error();var i=s.parseType(!0);c(n,function(e,t){r(a,e,t).propagate(r(i,e,t))})}else if(0==e.indexOf("call ")){var l=5==e.indexOf("and return ",5),s=new b(e,l?16:5),p=s.parseType(!0),u=null,d=[];for(s.eat(" this=")&&(u=s.parseType(!0));s.eat(" ");)d.push(s.parseType(!0));c(n,function(e,n){for(var o=r(p,e,n),s=u?r(u,e,n):t.ANull,a=[],i=0;i<d.length;++i)a.push(r(d[i],e,n));var c=l?new t.AVal:t.ANull;return o.propagate(new t.IsCallee(s,a,null,c)),c},l)}else if(o=e.match(/^custom (\S+)\s*(.*)/)){var h=S[o[1]];h&&c(n,o[2]?h(o[2]):h)}else{if(0!=e.indexOf("copy "))throw new Error("Unknown effect type: "+e);var s=new b(e,5),f=s.parseType(!0);s.eat(" ");var m=s.parseType(!0);c(n,function(e,n){var o=r(f,e,n),s=r(m,e,n);o.forAllProps(function(e,n,r){r&&"<i>"!=e&&s.propagate(new t.PropHasSubset(e,n))})})}},w=e.parsePath=function(e,n){var r=t.cx(),o=r.paths[e],s=e;if(null!=o)return o;r.paths[e]=t.ANull;var a=n||y||r.topScope;if(r.localDefs)for(var i in r.localDefs)if(0==e.indexOf(i)){if(e==i)return r.paths[e]=r.localDefs[e];if("."==e.charAt(i.length)){a=r.localDefs[i],e=e.slice(i.length+1);break}}for(var l=e.split("."),c=0;c<l.length&&a!=t.ANull;++c){var p=l[c];if("!"==p.charAt(0))if("!proto"==p)a=a instanceof t.Obj&&a.proto||t.ANull;else{var u=a.getFunctionType();if(u)if("!ret"==p)a=u.retval&&u.retval.getType(!1)||t.ANull;else{var d=u.args&&u.args[Number(p.slice(1))];a=d&&d.getType(!1)||t.ANull}else a=t.ANull}else if(a instanceof t.Obj){var h="prototype"==p&&a instanceof t.Fn?a.getProp(p):a.props[p];a=!h||h.isEmpty()?t.ANull:h.types[0]}}return r.paths[s]=a==t.ANull?null:a,a};e.load=function(e,n){n||(n=t.cx().topScope);var r=y;y=n;try{g(e,n)}finally{y=r}},e.parse=function(e,n,r){var o=t.cx();n&&(o.origin=n,o.localDefs=o.definitions[n]);try{return"string"==typeof e?l(e,r):h(d(null,e,r),e,r)}finally{n&&(o.origin=o.localDefs=null)}};var S=Object.create(null);t.registerFunction=function(e,t){S[e]=t};var _=t.constraint({construct:function(e,t,n){this.created=e,this.target=t,this.spec=n},addType:function(e){if(e instanceof t.Obj&&this.created++<5){var n=new t.Obj(e),r=this.spec;if(r instanceof t.AVal&&(r=r.getObjType(!1)),r instanceof t.Obj)for(var o in r.props){var s=r.props[o].types[0],a=n.defProp(o);if(s&&s instanceof t.Obj&&s.props.value){var i=s.props.value.getType(!1);i&&a.addType(i)}}this.target.addType(n)}}});t.registerFunction("Object_create",function(e,n,r){if(r&&r.length&&"Literal"==r[0].type&&null==r[0].value)return new t.Obj;var o=new t.AVal;return n[0]&&n[0].propagate(new _(0,o,n[1])),o});var x=t.constraint({construct:function(e){this.target=e},addType:function(e){e instanceof t.Obj&&(e.hasProp("value")?e.getProp("value").propagate(this.target):e.hasProp("get")&&e.getProp("get").propagate(new t.IsCallee(t.ANull,[],null,this.target)))}});t.registerFunction("Object_defineProperty",function(e,n,r){if(r&&r.length>=3&&"Literal"==r[1].type&&"string"==typeof r[1].value){var o=n[0],s=new t.AVal;
o.propagate(new t.PropHasSubset(r[1].value,s,r[1])),n[2].propagate(new x(s))}return t.ANull}),t.registerFunction("Object_defineProperties",function(e,n,r){if(n.length>=2){var o=n[0];n[1].forAllProps(function(e,n,s){if(s){var a=new t.AVal;o.propagate(new t.PropHasSubset(e,a,r&&r[1])),n.propagate(new x(a))}})}return t.ANull});var j=t.constraint({construct:function(e,t,n){this.self=e,this.args=t,this.target=n},addType:function(e){if(e instanceof t.Fn){this.target.addType(new t.Fn(e.name,t.ANull,e.args.slice(this.args.length),e.argNames.slice(this.args.length),e.retval)),this.self.propagate(e.self);for(var n=0;n<Math.min(e.args.length,this.args.length);++n)this.args[n].propagate(e.args[n])}}});return t.registerFunction("Function_bind",function(e,n){if(!n.length)return t.ANull;var r=new t.AVal;return e.propagate(new j(n[0],n.slice(1),r)),r}),t.registerFunction("Array_ctor",function(e,n){var r=new t.Arr;if(1!=n.length||!n[0].hasType(t.cx().num))for(var o=r.getProp("<i>"),s=0;s<n.length;++s)n[s].propagate(o);return r}),t.registerFunction("Promise_ctor",function(e,n,r){if(n.length<1)return t.ANull;var o=new t.Obj(t.cx().definitions.ecma6["Promise.prototype"]),s=o.defProp("value",r&&r[0]),a=new t.AVal;a.propagate(s);var i=new t.Fn("execute",t.ANull,[a],["value"],t.ANull),l=t.cx().definitions.ecma6.promiseReject;return n[0].propagate(new t.IsCallee(t.ANull,[i,l],null,t.ANull)),o}),e}),function(e,t){return"object"==typeof exports&&"object"==typeof module?t(exports):"function"==typeof define&&define.amd?define("tern/lib/signal",["exports"],t):void t((e.tern||(e.tern={})).signal={})}(this,function(e){function t(e,t){var n=this._handlers||(this._handlers=Object.create(null));(n[e]||(n[e]=[])).push(t)}function n(e,t){var n=this._handlers&&this._handlers[e];if(n)for(var r=0;r<n.length;++r)if(n[r]==t){n.splice(r,1);break}}function r(e,t,n,r,o){var s=this._handlers&&this._handlers[e];if(s)for(var a=0;a<s.length;++a)s[a].call(this,t,n,r,o)}e.mixin=function(e){return e.on=t,e.off=n,e.signal=r,e}}),define("javascript/util",[],function(){function e(e){return e.length<1?!1:isNaN(e.charCodeAt(0))?!1:e.toLocaleUpperCase().charAt(0)===e.charAt(0)}function t(e,t){if("string"!=typeof e||"string"!=typeof t)return!1;if(0===e.length)return!0;if(e.charAt(0).toLowerCase()!==t.charAt(0).toLowerCase())return!1;if(n(t,e))return!0;var o=t.toLowerCase();if(n(o,e))return!0;var s=e.toLowerCase(),a=e.indexOf("=");if(-1!==a&&n(t,e.substring(0,a)))return!0;if(e===s)return!1;if(n(o,s))return!0;var i=r(e),l=r(t);if(i.length>l.length)return!1;for(var c=0;c<i.length;++c)if(!n(l[c],i[c]))return!1;return!0}function n(e,t){return e.slice(0,t.length)===t}function r(t){for(var n=[],r=t.length-1;r>=0;--r)e(t.charAt(r))&&(n.push(t.substring(r)),t=t.substring(0,r));return 0!==t.length&&n.push(t),n.reverse()}function o(e,t,n){var r=a;return r.range[1]="string"==typeof n?n.length:0,r.loc.start.line=e.lineNumber,r.loc.start.column=0,r.loc.end.line=e.lineNumber,r.loc.end.column=e.column,r.errors=[e],r.sourceFile=Object.create(null),r.sourceFile.text=n,r.sourceFile.name=t,r}function s(e){var t=[];return e&&e.errors&&e.errors.forEach(function(e){var n=e?JSON.parse(JSON.stringify(e)):e;e instanceof Error&&(n.__isError=!0,n.lineNumber="number"==typeof n.lineNumber?n.lineNumber:e.lineNumber,n.message=n.message||e.message,n.name=n.name||e.name,n.stack=n.stack||e.stack);var r=e.message;n.message=r=r.replace(/^Line \d+: /,""),/^Unexpected/.test(r)&&(n.type=1,/end of input$/.test(r)&&(n.type=2)),t.push(n)}),t}var a={type:"Program",body:[],comments:[],tokens:[],range:[0,0],loc:{start:{},end:{}}};return{isUpperCase:e,looselyMatches:t,startsWith:n,toCamelCaseParts:r,errorAST:o,serializeAstErrors:s}}),function(e,t){return"object"==typeof exports&&"object"==typeof module?t(exports,require("esprima/esprima"),require("acorn/dist/walk"),require("./def"),require("./signal"),require("javascript/util")):"function"==typeof define&&define.amd?define("tern/lib/infer",["exports","esprima/esprima","acorn/dist/walk","./def","./signal","javascript/util"],t):void t(e.tern||(e.tern={}),acorn,acorn.walk,tern.def,tern.signal,Util)}(this,function(e,t,n,r,o,s){"use strict";function a(e,t){var n=Object.create(e);if(t)for(var r in t)n[r]=t[r];return n}function i(e,t,n){var r=e.getType(!1),o=t.getType(!1);return r&&o?l(r,o,n):!0}function l(e,t,n){if(!e||n>=5)return t;if(!e||e==t)return e;if(!t)return e;if(e.constructor!=t.constructor)return!1;if(e.constructor!=at){if(e.constructor==ot){var r=0,o=0,s=0;for(var a in e.props)r++,a in t.props&&i(e.props[a],t.props[a],n+1)&&s++;for(var a in t.props)o++;return r&&o&&s<Math.max(r,o)/2?!1:r>o?e:t}return e.constructor==st&&e.args.length==t.args.length&&e.args.every(function(e,r){return i(e,t.args[r],n+1)})&&i(e.retval,t.retval,n+1)&&i(e.self,t.self,n+1)?e:!1}var c=e.getProp("<i>").getType(!1);if(!c)return t;var p=t.getProp("<i>").getType(!1);return!p||l(c,p,n+1)?t:void 0}function c(e){for(var t=0,n=0,r=0,o=null,s=0;s<e.length;++s){var a=e[s];if(a instanceof at)++t;else if(a instanceof st)++n;else if(a instanceof ot)++r;else if(a instanceof rt){if(o&&a.name!=o.name)return null;o=a}}var i=(t&&1)+(n&&1)+(r&&1)+(o&&1);if(i>1)return null;if(o)return o;for(var l=0,c=null,s=0;s<e.length;++s){var a=e[s],p=0;if(t)p=a.getProp("<i>").isEmpty()?1:2;else if(n){p=1;for(var u=0;u<a.args.length;++u)a.args[u].isEmpty()||++p;a.retval.isEmpty()||++p}else r&&(p=a.name?100:2);p>=l&&(l=p,c=a)}return c}function p(e,t){it.disabledComputing={fn:e,prev:it.disabledComputing};try{return t()}finally{it.disabledComputing=it.disabledComputing.prev}}function u(e,t){var n=it.props[e]||(it.props[e]=[]);n.push(t)}function d(e){return it.props[e]}function h(t){if(it.workList)return t(it.workList);var n=[],r=0,o=it.workList=function(e,t,o){r<ct-pt*n.length&&n.push(e,t,o,r)};try{for(var s=t(o),a=0;a<n.length;a+=4){if(lt&&+new Date>=lt)throw new e.TimedOut;r=n[a+3]+1,n[a+1].addType(n[a],n[a+2])}return s}finally{it.workList=null}}function f(e,t){e.fnType&&(e.fnType.instantiateScore=(e.fnType.instantiateScore||0)+t)}function m(e,t){try{return n.simple(e,{Expression:function(){if(--t<=0)throw dt}}),!0}catch(r){if(r==dt)return!1;throw r}}function g(e,t){var n=t.fnType.instantiateScore;return!it.disabledComputing&&n&&t.fnType.args.length&&m(e,5*n)?(f(t.prev,n/2),b(e,t),!0):void(t.fnType.instantiateScore=null)}function b(e,t){for(var r=t.fnType,o=0;o<r.args.length;++o)r.args[o]=new U;r.self=new U,r.computeRet=function(o,s){return p(r,function(){var a=it.curOrigin;it.curOrigin=r.origin;var i=new ut(t.prev);i.originNode=t.originNode;for(var l in t.props)for(var c=i.defProp(l,t.props[l].originNode),p=0;p<s.length;++p)r.argNames[p]==l&&p<s.length&&s[p].propagate(c);for(var u=r.argNames.length!=s.length?r.argNames.slice(0,s.length):r.argNames;u.length<s.length;)u.push("?");if(i.fnType=new st(r.name,o,s,u,M),i.fnType.originNode=r.originNode,r.arguments){var d=i.fnType.arguments=new U;i.defProp("arguments").addType(new at(d));for(var p=0;p<s.length;++p)s[p].propagate(d)}return e.body.scope=i,n.recursive(e.body,i,null,ht),n.recursive(e.body,i,null,mt),it.curOrigin=a,i.fnType.retval})}}function y(e){function t(e,n,r){if(!(r>3)&&e.forward)for(var s=0;s<e.forward.length;++s){var a=e.forward[s].propagatesTo();if(a){var i,l=n;if(a instanceof U)i=a;else{if(!(a.target instanceof U))continue;l+=a.pathExt,i=a.target}if(i==o)return l;var c=t(i,l,r+1);if(c)return c}}}var n=e.fnType,o=n.retval;if(o!=M){var s,a;!o.isEmpty()&&(s=o.getType())instanceof at&&(o=a=s.getProp("<i>"));for(var i=t(n.self,"!this",0),l=0;!i&&l<n.args.length;++l)i=t(n.args[l],"!"+l,0);if(i){a&&(i="["+i+"]");var c=new r.TypeParser(i),p=c.parseType(!0);return n.computeRet=p.apply?p:function(){return p},n.computeRetSource=i,!0}}}function v(e,t){return e.defProp(t.name,t)}function w(e,t,n){var r=e.property;return e.computed?"Literal"==r.type&&"string"==typeof r.value?r.value:(n&&T(r,t,n,M),"<i>"):r.name}function S(e){switch(e){case"+":case"-":case"~":return it.num;case"!":return it.bool;case"typeof":return it.str;case"void":case"delete":return M}}function _(e){switch(e){case"==":case"!=":case"===":case"!==":case"<":case">":case">=":case"<=":case"in":case"instanceof":return!0}}function x(e){if(e.regex)return X(it.protos.RegExp);switch(typeof e.value){case"boolean":return it.bool;case"number":return it.num;case"string":return it.str;case"object":case"function":return e.value?X(it.protos.RegExp):M}}function j(e){return function(t,n,r,o,s){var a=e(t,n,r,s);return o&&a.propagate(o),a}}function E(e){return function(t,n,r,o,s){return o||(o=new U),e(t,n,r,o,s),o}}function T(e,t,n,r,o){var s=ft[e.type];return s?s(e,t,n,r,o):void 0}function k(e,t){var n=e&&e[t],r=Array.prototype.slice.call(arguments,2);if(n)for(var o=0;o<n.length;++o)n[o].apply(null,r)}function O(e,t,n){var r=Array.isArray(e);return r&&1==e.length&&(e=e[0],r=!1),r?null==n?function(t){return e.indexOf(t.origin)>-1}:function(r,o){return o&&o.start>=t&&o.end<=n&&e.indexOf(r.origin)>-1}:null==n?function(t){return t.origin==e}:function(r,o){return o&&o.start>=t&&o.end<=n&&r.origin==e}}function D(e){wt=!0;var t=d(e);if(t)for(var n=0;n<t.length;++n){var r=t[n].getProp(e);if(!r.isEmpty())return r}return M}function R(e,t){var n=bt[e.type];return n?n(e,t):null}var A=e.toString=function(e,t,n){return!e||e==n||t&&-3>t?"?":e.toString(t,n)},M=e.ANull=o.mixin({addType:function(){},propagate:function(){},getProp:function(){return M},forAllProps:function(){},hasType:function(){return!1},isEmpty:function(){return!0},getFunctionType:function(){},getObjType:function(){},getType:function(){},gatherProperties:function(){},propagatesTo:function(){},typeHint:function(){},propHint:function(){},toString:function(){return"?"}}),C=100,P=90,I=10,z=5,N=5,L=90,F=2,U=e.AVal=function(){this.types=[],this.forward=null,this.maxWeight=0};U.prototype=a(M,{addType:function(e,t){if(t=t||C,this.maxWeight<t){if(this.maxWeight=t,1==this.types.length&&this.types[0]==e)return;this.types.length=0}else if(this.maxWeight>t||this.types.indexOf(e)>-1)return;this.signal("addType",e),this.types.push(e);var n=this.forward;n&&h(function(r){for(var o=0;o<n.length;++o)r(e,n[o],t)})},propagate:function(e,t){if(!(e==M||e instanceof nt&&this.forward&&this.forward.length>2)){t&&t!=C&&(e=new tt(e,t)),(this.forward||(this.forward=[])).push(e);var n=this.types;n.length&&h(function(r){for(var o=0;o<n.length;++o)r(n[o],e,t)})}},getProp:function(e){if("__proto__"==e||"✖"==e)return M;var t=(this.props||(this.props=Object.create(null)))[e];return t||(t=this.props[e]=new U,this.propagate(new W(e,t))),t},forAllProps:function(e){this.propagate(new H(e))},hasType:function(e){return this.types.indexOf(e)>-1},isEmpty:function(){return 0===this.types.length},getFunctionType:function(){for(var e=this.types.length-1;e>=0;--e)if(this.types[e]instanceof st)return this.types[e]},getObjType:function(){for(var e=null,t=this.types.length-1;t>=0;--t){var n=this.types[t];if(n instanceof ot){if(n.name)return n;e||(e=n)}}return e},getType:function(e){return 0===this.types.length&&e!==!1?this.makeupType():1===this.types.length?this.types[0]:c(this.types)},toString:function(e,t){if(0==this.types.length)return A(this.makeupType(),e,t);if(1==this.types.length)return A(this.types[0],e,t);var n=q(this.types);return n.length>2?"?":n.map(function(n){return A(n,e,t)}).join("|")},computedPropType:function(){if(!this.propertyOf)return null;if(this.propertyOf.hasProp("<i>")){var e=this.propertyOf.getProp("<i>");return e==this?null:e.getType()}if(this.propertyOf.maybeProps&&this.propertyOf.maybeProps["<i>"]==this){for(var t in this.propertyOf.props){var n=this.propertyOf.props[t];if(!n.isEmpty())return n}return null}},makeupType:function(){var e=this.computedPropType();if(e)return e;if(!this.forward)return null;for(var t=this.forward.length-1;t>=0;--t){var n=this.forward[t].typeHint();if(n&&!n.isEmpty())return wt=!0,n}for(var r=Object.create(null),o=null,t=0;t<this.forward.length;++t){var s=this.forward[t].propHint();s&&"length"!=s&&"<i>"!=s&&"✖"!=s&&s!=it.completingProperty&&(r[s]=!0,o=s)}if(!o)return null;var a=d(o);if(a){var i=[];e:for(var t=0;t<a.length;++t){var l=a[t];for(var s in r)if(!l.hasProp(s))continue e;l.hasCtor&&(l=X(l)),i.push(l)}var p=c(i);if(p)return wt=!0,i.length>0&&(p.potentialMatches=i),p}},typeHint:function(){return this.types.length?this.getType():null},propagatesTo:function(){return this},gatherProperties:function(e,t){for(var n=0;n<this.types.length;++n)this.types[n].gatherProperties(e,t)},guessProperties:function(e){if(this.forward)for(var t=0;t<this.forward.length;++t){var n=this.forward[t].propHint();n&&e(n,null,0)}var r=this.makeupType();r&&r.gatherProperties(e)}});var q=e.simplifyTypes=function(e){var t=[];e:for(var n=0;n<e.length;++n){for(var r=e[n],o=0;o<t.length;o++){var s=l(r,t[o],0);if(s){t[o]=s;continue e}}t.push(r)}return t},G=e.constraint=function(e){var t=function(){this.origin=it.curOrigin,this.construct.apply(this,arguments)};t.prototype=Object.create(M);for(var n in e)e.hasOwnProperty(n)&&(t.prototype[n]=e[n]);return t},W=G({construct:function(e,t){this.prop=e,this.target=t},addType:function(e,t){e.getProp&&e.getProp(this.prop).propagate(this.target,t)},propHint:function(){return this.prop},propagatesTo:function(){return"<i>"!=this.prop&&/[^\w_]/.test(this.prop)?void 0:{target:this.target,pathExt:"."+this.prop}}}),B=e.PropHasSubset=G({construct:function(e,t,n){this.prop=e,this.type=t,this.originNode=n},addType:function(e,t){if(e instanceof ot){var n=e.defProp(this.prop,this.originNode);n.origin||(n.origin=this.origin),this.type.propagate(n,t)}},propHint:function(){return this.prop}}),H=G({construct:function(e){this.c=e},addType:function(e){e instanceof ot&&e.forAllProps(this.c)}}),J=e.IsCallee=G({construct:function(e,t,n,r){this.self=e,this.args=t,this.argNodes=n,this.retval=r,this.disabled=it.disabledComputing},addType:function(e,t){if(e instanceof st){for(var n=0;n<this.args.length;++n)n<e.args.length&&this.args[n].propagate(e.args[n],t),e.arguments&&this.args[n].propagate(e.arguments,t);this.self.propagate(e.self,this.self==it.topScope?L:t);var r=e.computeRet;if(r)for(var o=this.disabled;o;o=o.prev)(o.fn==e||e.originNode&&o.fn.originNode==e.originNode)&&(r=null);r?r(this.self,this.args,this.argNodes).propagate(this.retval,t):e.retval.propagate(this.retval,t)}},typeHint:function(){for(var e=[],t=0;t<this.args.length;++t)e.push("?");return new st(null,this.self,this.args,e,M)},propagatesTo:function(){return{target:this.retval,pathExt:".!ret"}}}),V=G({construct:function(e,t,n,r){this.propName=e,this.args=t,this.argNodes=n,this.retval=r,this.disabled=it.disabledComputing},addType:function(e,t){var n=new J(e,this.args,this.argNodes,this.retval);n.disabled=this.disabled,e.getProp(this.propName).propagate(n,t)},propHint:function(){return this.propName}}),$=e.IsCtor=G({construct:function(e,t){this.target=e,this.noReuse=t},addType:function(e,t){e instanceof st&&(it.parent&&!it.parent.options.reuseInstances&&(this.noReuse=!0),e.getProp("prototype").propagate(new K(this.noReuse?!1:e,this.target),t))}}),X=e.getInstance=function(e,t){if(t===!1)return new ot(e);t||(t=e.hasCtor),e.instances||(e.instances=[]);for(var n=0;n<e.instances.length;++n){var r=e.instances[n];if(r.ctor==t)return r.instance}var o=new ot(e,t&&t.name);return o.origin=e.origin,e.instances.push({ctor:t,instance:o}),o},K=e.IsProto=G({construct:function(e,t){this.ctor=e,this.target=t},addType:function(e){e instanceof ot&&((this.count=(this.count||0)+1)>8||this.target.addType(e==it.protos.Array?new at:X(e,this.ctor)))}}),Y=G({construct:function(e){this.fn=e},addType:function(e){if(e instanceof ot&&!e.hasCtor){e.hasCtor=this.fn;var t=new et(e,this.fn);t.addType(this.fn),e.forAllProps(function(e,n,r){r&&n.propagate(t)})}}}),Q=G({construct:function(e,t){this.other=e,this.target=t},addType:function(e,t){e==it.str?this.target.addType(it.str,t):e==it.num&&this.other.hasType(it.num)&&this.target.addType(it.num,t)},typeHint:function(){return this.other}}),Z=e.IfObj=G({construct:function(e){this.target=e},addType:function(e,t){e instanceof ot&&this.target.addType(e,t)},propagatesTo:function(){return this.target}}),et=G({construct:function(e,t){this.obj=e,this.ctor=t},addType:function(e){e instanceof st&&e.self&&e.self.isEmpty()&&e.self.addType(X(this.obj,this.ctor),F)}}),tt=G({construct:function(e,t){this.inner=e,this.weight=t},addType:function(e,t){this.inner.addType(e,Math.min(t,this.weight))},propagatesTo:function(){return this.inner.propagatesTo()},typeHint:function(){return this.inner.typeHint()},propHint:function(){return this.inner.propHint()}}),nt=e.Type=function(){};nt.prototype=a(M,{constructor:nt,propagate:function(e,t){e.addType(this,t)},hasType:function(e){return e==this},isEmpty:function(){return!1},typeHint:function(){return this},getType:function(){return this}});var rt=e.Prim=function(e,t){this.name=t,this.proto=e};rt.prototype=a(nt.prototype,{constructor:rt,toString:function(){return this.name},getProp:function(e){return this.proto.hasProp(e)||M},gatherProperties:function(e,t){this.proto&&this.proto.gatherProperties(e,t)}});var ot=e.Obj=function(e,t){if(this.props||(this.props=Object.create(null)),this.proto=e===!0?it.protos.Object:e,e&&!t&&e.name&&!(this instanceof st)){var n=/^(.*)\.prototype$/.exec(this.proto.name);n&&(t=n[1])}this.name=t,this.maybeProps=null,this.origin=it.curOrigin};ot.prototype=a(nt.prototype,{constructor:ot,toString:function(e){if(null==e&&(e=0),0>=e&&this.name)return this.name;var t=[],n=!1;for(var r in this.props)if("<i>"!=r){if(t.length>5){n=!0;break}t.push(e?r+": "+A(this.props[r],e-1,this):r)}return t.sort(),n&&t.push("..."),"{"+t.join(", ")+"}"},hasProp:function(e,t){var n=this.props[e];if(t!==!1)for(var r=this.proto;r&&!n;r=r.proto)n=r.props[e];return n},defProp:function(e,t){var n=this.hasProp(e,!1);if(n)return t&&!n.originNode&&(n.originNode=t),n;if("__proto__"==e||"✖"==e)return M;var r=this.maybeProps&&this.maybeProps[e];return r?(delete this.maybeProps[e],this.maybeUnregProtoPropHandler()):(r=new U,r.propertyOf=this),this.props[e]=r,r.originNode=t,r.origin=it.curOrigin,this.broadcastProp(e,r,!0),r},getProp:function(e){var t=this.hasProp(e,!0)||this.maybeProps&&this.maybeProps[e];if(t)return t;if("__proto__"==e||"✖"==e)return M;var n=this.ensureMaybeProps()[e]=new U;return n.propertyOf=this,n},broadcastProp:function(e,t,n){if(n&&(this.signal("addProp",e,t),this instanceof ut||u(e,this)),this.onNewProp)for(var r=0;r<this.onNewProp.length;++r){var o=this.onNewProp[r];o.onProtoProp?o.onProtoProp(e,t,n):o(e,t,n)}},onProtoProp:function(e,t){var n=this.maybeProps&&this.maybeProps[e];n&&(delete this.maybeProps[e],this.maybeUnregProtoPropHandler(),this.proto.getProp(e).propagate(n)),this.broadcastProp(e,t,!1)},ensureMaybeProps:function(){return this.maybeProps||(this.proto&&this.proto.forAllProps(this),this.maybeProps=Object.create(null)),this.maybeProps},removeProp:function(e){var t=this.props[e];delete this.props[e],this.ensureMaybeProps()[e]=t,t.types.length=0},forAllProps:function(e){this.onNewProp||(this.onNewProp=[],this.proto&&this.proto.forAllProps(this)),this.onNewProp.push(e);for(var t=this;t;t=t.proto)for(var n in t.props)e.onProtoProp?e.onProtoProp(n,t.props[n],t==this):e(n,t.props[n],t==this)},maybeUnregProtoPropHandler:function(){if(this.maybeProps){for(var e in this.maybeProps)return;this.maybeProps=null}!this.proto||this.onNewProp&&this.onNewProp.length||this.proto.unregPropHandler(this)},unregPropHandler:function(e){for(var t=0;t<this.onNewProp.length;++t)if(this.onNewProp[t]==e){this.onNewProp.splice(t,1);break}this.maybeUnregProtoPropHandler()},gatherProperties:function(e,t){for(var n in this.props)"<i>"!=n&&e(n,this,t);this.proto&&this.proto.gatherProperties(e,t+1)},getObjType:function(){return this}});var st=e.Fn=function(e,t,n,r,o){ot.call(this,it.protos.Function,e),this.self=t,this.args=n,this.argNames=r,this.retval=o};st.prototype=a(ot.prototype,{constructor:st,toString:function(e){null==e&&(e=0);for(var t="fn(",n=0;n<this.args.length;++n){n&&(t+=", ");var r=this.argNames[n];r&&"?"!=r&&(t+=r+": "),t+=e>-3?A(this.args[n],e-1,this):"?"}return t+=")",this.retval.isEmpty()||(t+=" -> "+(e>-3?A(this.retval,e-1,this):"?")),t},getProp:function(e){if("prototype"==e){var t=this.hasProp(e,!1);if(!t){t=this.defProp(e);var n=new ot(!0,this.name&&this.name+".prototype");n.origin=this.origin,t.addType(n,I)}return t}return ot.prototype.getProp.call(this,e)},defProp:function(e,t){if("prototype"==e){var n=this.hasProp(e,!1);return n?n:(n=ot.prototype.defProp.call(this,e,t),n.origin=this.origin,n.propagate(new Y(this)),n)}return ot.prototype.defProp.call(this,e,t)},getFunctionType:function(){return this}});var at=e.Arr=function(e){ot.call(this,it.protos.Array);var t=this.defProp("<i>");e&&e.propagate(t)};at.prototype=a(ot.prototype,{constructor:at,toString:function(e){return null==e&&(e=0),"["+(e>-3?A(this.getProp("<i>"),e-1,this):"?")+"]"}}),e.Context=function(t,n){this.parent=n,this.props=Object.create(null),this.protos=Object.create(null),this.origins=[],this.curOrigin="ecma5",this.paths=Object.create(null),this.definitions=Object.create(null),this.purgeGen=0,this.workList=null,this.disabledComputing=null,e.withContext(this,function(){if(it.protos.Object=new ot(null,"Object.prototype"),it.topScope=new ut,it.topScope.name="<top>",it.protos.Array=new ot(!0,"Array.prototype"),it.protos.Function=new st("Function.prototype",M,[],[],M),it.protos.Function.proto=it.protos.Object,it.protos.RegExp=new ot(!0,"RegExp.prototype"),it.protos.String=new ot(!0,"String.prototype"),it.protos.Number=new ot(!0,"Number.prototype"),it.protos.Boolean=new ot(!0,"Boolean.prototype"),it.str=new rt(it.protos.String,"string"),it.bool=new rt(it.protos.Boolean,"bool"),it.num=new rt(it.protos.Number,"number"),it.curOrigin=null,t)for(var e=0;e<t.length;++e)r.load(t[e])})};var it=null;e.cx=function(){return it},e.withContext=function(e,t){var n=it;it=e;try{return t()}finally{it=n}},e.TimedOut=function(){this.message="Timed out",this.stack=(new Error).stack},e.TimedOut.prototype=Object.create(Error.prototype),e.TimedOut.prototype.name="infer.TimedOut";var lt;e.withTimeout=function(e,t){var n=+new Date+e,r=lt;if(r&&n>r)return t();lt=n;try{return t()}finally{lt=r}},e.addOrigin=function(e){it.origins.indexOf(e)<0&&it.origins.push(e)};var ct=20,pt=1e-4,ut=e.Scope=function(e){ot.call(this,e||!0),this.prev=e};ut.prototype=a(ot.prototype,{constructor:ut,defVar:function(e,t){for(var n=this;;n=n.proto){var r=n.props[e];if(r)return r;if(!n.prev)return n.defProp(e,t)}}});var dt={},ht=n.make({Function:function(e,t,n){var r=e.body.scope=new ut(t);r.originNode=e;for(var o=[],s=[],a=0;a<e.params.length;++a){var i=e.params[a];s.push(i.name),o.push(v(r,i))}if(r.fnType=new st(e.id&&e.id.name,new U,o,s,M),r.fnType.originNode=e,e.id){var l="FunctionDeclaration"==e.type;v(l?t:r,e.id)}n(e.body,r,"ScopeBody")},TryStatement:function(e,t,n){if(n(e.block,t,"Statement"),e.handler){var r=v(t,e.handler.param);n(e.handler.body,t,"ScopeBody");var o=it.definitions.ecma5;o&&r.isEmpty()&&X(o["Error.prototype"]).propagate(r,N)}e.finalizer&&n(e.finalizer,t,"Statement")},VariableDeclaration:function(e,t,n){for(var r=0;r<e.declarations.length;++r){var o=e.declarations[r];v(t,o.id),o.init&&n(o.init,t,"Expression")}}}),ft={RecoveredNode:j(function(){return new U}),ArrayExpression:j(function(e,t,n){for(var r=new U,o=0;o<e.elements.length;++o){var s=e.elements[o];s&&T(s,t,n,r)}return new at(r)}),ObjectExpression:j(function(e,t,n,r){var o=e.objType=new ot(!0,r);o.originNode=e;for(var s=0;s<e.properties.length;++s){var r,a=e.properties[s],i=a.key;if("✖"!=a.value.name)if("Identifier"==i.type?r=i.name:"string"==typeof i.value&&(r=i.value),r&&"set"!=a.kind){var l=o.defProp(r,i),c=l;l.initializer=!0,"get"==a.kind&&(c=new J(o,[],null,l)),T(a.value,t,n,c,r)}else T(a.value,t,n,M)}return o}),FunctionExpression:j(function(e,t,n,r){var o=e.body.scope,s=o.fnType;return r&&!s.name&&(s.name=r),n(e.body,t,"ScopeBody"),g(e,o)||y(o),e.id&&o.getProp(e.id.name).addType(s),s}),SequenceExpression:j(function(e,t,n){for(var r=0,o=e.expressions.length-1;o>r;++r)T(e.expressions[r],t,n,M);return T(e.expressions[o],t,n)}),UnaryExpression:j(function(e,t,n){return T(e.argument,t,n,M),S(e.operator)}),UpdateExpression:j(function(e,t,n){return T(e.argument,t,n,M),it.num}),BinaryExpression:j(function(e,t,n){if("+"==e.operator){var r=T(e.left,t,n),o=T(e.right,t,n);if(r.hasType(it.str)||o.hasType(it.str))return it.str;if(r.hasType(it.num)&&o.hasType(it.num))return it.num;var s=new U;return r.propagate(new Q(o,s)),o.propagate(new Q(r,s)),s}return T(e.left,t,n,M),T(e.right,t,n,M),_(e.operator)?it.bool:it.num}),AssignmentExpression:j(function(e,t,n){var r,o,s;if("MemberExpression"==e.left.type?(s=w(e.left,t,n),"Identifier"==e.left.object.type&&(o=e.left.object.name+"."+s)):o=e.left.name,"="!=e.operator&&"+="!=e.operator?(T(e.right,t,n,M),r=it.num):r=T(e.right,t,n,null,o),"MemberExpression"==e.left.type){var a=T(e.left.object,t,n);if("prototype"==s&&f(t,20),"<i>"==s){var i=e.left.property.name,l=t.props[i],c=l&&l.iteratesOver;if(c){f(t,20);var p="MemberExpression"==e.right.type&&e.right.computed&&e.right.property.name==i;return c.forAllProps(function(e,t,n){n&&"prototype"!=e&&"<i>"!=e&&a.propagate(new B(e,p?t:M))}),r}}a.propagate(new B(s,r,e.left.property))}else r.propagate(t.defVar(e.left.name,e.left));return r}),LogicalExpression:E(function(e,t,n,r){T(e.left,t,n,r),T(e.right,t,n,r)}),ConditionalExpression:E(function(e,t,n,r){T(e.test,t,n,M),T(e.consequent,t,n,r),T(e.alternate,t,n,r)}),NewExpression:E(function(e,t,n,r,o){"Identifier"==e.callee.type&&e.callee.name in t.props&&f(t,20);for(var s=0,a=[];s<e.arguments.length;++s)a.push(T(e.arguments[s],t,n));var i=T(e.callee,t,n),l=new U;i.propagate(new $(l,o&&/\.prototype$/.test(o))),l.propagate(r,P),i.propagate(new J(l,a,e.arguments,new Z(r)))}),CallExpression:E(function(e,t,n,r){for(var o=0,s=[];o<e.arguments.length;++o)s.push(T(e.arguments[o],t,n));if("MemberExpression"==e.callee.type){var a=T(e.callee.object,t,n),i=w(e.callee,t,n);("call"==i||"apply"==i)&&t.fnType&&t.fnType.args.indexOf(a)>-1&&f(t,30),a.propagate(new V(i,s,e.arguments,r))}else{var l=T(e.callee,t,n);t.fnType&&t.fnType.args.indexOf(l)>-1&&f(t,30);var c=l.getFunctionType();c&&c.instantiateScore&&t.fnType&&f(t,c.instantiateScore/5),l.propagate(new J(it.topScope,s,e.arguments,r))}}),MemberExpression:E(function(e,t,n,r){var o=w(e,t),s=T(e.object,t,n),a=s.getProp(o);if("<i>"==o){var i=T(e.property,t,n);if(!i.hasType(it.num))return a.propagate(r,z)}a.propagate(r)}),Identifier:j(function(e,t){return"arguments"!=e.name||!t.fnType||e.name in t.props||t.defProp(e.name,t.fnType.originNode).addType(new at(t.fnType.arguments=new U)),t.getProp(e.name)}),ThisExpression:j(function(e,t){return t.fnType?t.fnType.self:it.topScope}),Literal:j(function(e){return x(e)})},mt=n.make({Expression:function(e,t,n){T(e,t,n,M)},FunctionDeclaration:function(e,t,n){var r=e.body.scope,o=r.fnType;n(e.body,t,"ScopeBody"),g(e,r)||y(r);var s=t.getProp(e.id.name);s.addType(o)},VariableDeclaration:function(e,t,n){for(var r=0;r<e.declarations.length;++r){var o=e.declarations[r],s=t.getProp(o.id.name);o.init&&T(o.init,t,n,s,o.id.name)}},ReturnStatement:function(e,t,n){if(e.argument){var r=M;t.fnType&&(t.fnType.retval==M&&(t.fnType.retval=new U),r=t.fnType.retval),T(e.argument,t,n,r)}},ForInStatement:function(e,t,n){var r=T(e.right,t,n);if("Identifier"==e.right.type&&e.right.name in t.props||"MemberExpression"==e.right.type&&"prototype"==e.right.property.name){f(t,5);var o;"Identifier"==e.left.type?o=e.left.name:"VariableDeclaration"==e.left.type&&(o=e.left.declarations[0].id.name),o&&o in t.props&&(t.getProp(o).iteratesOver=r)}n(e.body,t,"Statement")},ScopeBody:function(e,t,n){n(e,e.scope||t)}}),gt=e.parse=function(e,n,r){var o;if(n.preParse)for(var a=0;a<n.preParse.length;a++){var i=n.preParse[a](e,r);"string"==typeof i&&(e=i)}var o;try{r.tolerant=!0,r.tokens=!0,r.comment=!0,r.range=!0,r.deps=!0,r.loc=!0,r.attachComment=!0,o=t.parse(e,r),"object"!=typeof o.sourceFile&&(o.sourceFile=Object.create(null),o.sourceFile.text=o.source,o.sourceFile.name=o.fileLocation)}catch(l){o=s.errorAST(l,r.directSourceFile.name,e)}return o.errors=s.serializeAstErrors(o),k(n,"postParse",o,e),o};e.analyze=function(t,r,o,s){"string"==typeof t&&(t=gt(t)),r||(r="file#"+it.origins.length),e.addOrigin(it.curOrigin=r),o||(o=it.topScope),n.recursive(t,o,null,ht),k(s,"preInfer",t,o),n.recursive(t,o,null,mt),k(s,"postInfer",t,o),it.curOrigin=null},e.purge=function(e,t,n){var r=O(e,t,n);++it.purgeGen,it.topScope.purge(r);for(var o in it.props){for(var s=it.props[o],a=0;a<s.length;++a){var i=s[a],l=i.props[o];(!l||r(l,l.originNode))&&s.splice(a--,1)}s.length||delete it.props[o]}},U.prototype.purge=function(e){if(this.purgeGen!=it.purgeGen){this.purgeGen=it.purgeGen;for(var t=0;t<this.types.length;++t){var n=this.types[t];e(n,n.originNode)?this.types.splice(t--,1):n.purge(e)}if(this.forward)for(var t=0;t<this.forward.length;++t){var r=this.forward[t];e(r)?(this.forward.splice(t--,1),this.props&&(this.props=null)):r.purge&&r.purge(e)}}},M.purge=function(){},ot.prototype.purge=function(e){if(this.purgeGen==it.purgeGen)return!0;this.purgeGen=it.purgeGen;for(var t in this.props){var n=this.props[t];e(n,n.originNode)&&this.removeProp(t),n.purge(e)}},st.prototype.purge=function(e){if(!ot.prototype.purge.call(this,e)){this.self.purge(e),this.retval.purge(e);for(var t=0;t<this.args.length;++t)this.args[t].purge(e)}};var bt={ArrayExpression:function(e,t){for(var n=new U,r=0;r<e.elements.length;++r){var o=e.elements[r];o&&R(o,t).propagate(n)}return new at(n)},ObjectExpression:function(e){return e.objType},FunctionExpression:function(e){return e.body.scope.fnType},SequenceExpression:function(e,t){return R(e.expressions[e.expressions.length-1],t)},UnaryExpression:function(e){return S(e.operator)},UpdateExpression:function(){return it.num},BinaryExpression:function(e,t){if(_(e.operator))return it.bool;if("+"==e.operator){var n=R(e.left,t),r=R(e.right,t);if(n.hasType(it.str)||r.hasType(it.str))return it.str}return it.num},AssignmentExpression:function(e,t){return R(e.right,t)},LogicalExpression:function(e,t){var n=R(e.left,t);return n.isEmpty()?R(e.right,t):n},ConditionalExpression:function(e,t){var n=R(e.consequent,t);return n.isEmpty()?R(e.alternate,t):n},NewExpression:function(e,t){var n=R(e.callee,t).getFunctionType(),r=n&&n.getProp("prototype").getObjType();return r?X(r,n):M},CallExpression:function(e,t){var n=R(e.callee,t).getFunctionType();if(!n)return M;if(n.computeRet){for(var r=0,o=[];r<e.arguments.length;++r)o.push(R(e.arguments[r],t));var s=M;return"MemberExpression"==e.callee.type&&(s=R(e.callee.object,t)),n.computeRet(s,o,e.arguments)}return n.retval},MemberExpression:function(e,t){var n=w(e,t),r=R(e.object,t).getType();if(r){var o=r.getProp(n);if(wt&&Array.isArray(r.potentialMatches)){for(var s=r.potentialMatches,a=[],i=0,l=s.length;l>i;i++){var c=s[i],p=c.getProp(n);"undefined"!=typeof p&&"undefined"!=typeof p.originNode&&"undefined"!=typeof p.origin&&p.originNode.sourceFile&&p.originNode.sourceFile.name===p.origin&&a.push(p)}a.length>0&&(o.potentialMatches=a)}return o}return"<i>"==n?M:D(n)},Identifier:function(e,t){return t.hasProp(e.name)||M},ThisExpression:function(e,t){return t.fnType?t.fnType.self:it.topScope},Literal:function(e){return x(e)}},yt=e.searchVisitor=n.make({Function:function(e,t,n){var r=e.body.scope;e.id&&n(e.id,r);for(var o=0;o<e.params.length;++o)n(e.params[o],r);n(e.body,r,"ScopeBody")},TryStatement:function(e,t,r){e.handler&&r(e.handler.param,t),n.base.TryStatement(e,t,r)},VariableDeclaration:function(e,t,n){for(var r=0;r<e.declarations.length;++r){var o=e.declarations[r];n(o.id,t),o.init&&n(o.init,t,"Expression")}}});e.fullVisitor=n.make({MemberExpression:function(e,t,n){n(e.object,t,"Expression"),n(e.property,t,e.computed?"Expression":null)},ObjectExpression:function(e,t,n){for(var r=0;r<e.properties.length;++r)n(e.properties[r].value,t,"Expression"),n(e.properties[r].key,t)}},yt),e.findExpressionAt=function(e,t,r,o,s){var a=s||function(e,t){return"Identifier"==t.type&&"✖"==t.name?!1:bt.hasOwnProperty(t.type)
};return n.findNodeAt(e,t,r,a,yt,o||it.topScope)},e.findExpressionAround=function(e,t,r,o,s){var a=s||function(e,n){return null!=t&&n.start>t?!1:"Identifier"==n.type&&"✖"==n.name?!1:bt.hasOwnProperty(n.type)};return n.findNodeAround(e,r,a,yt,o||it.topScope)},e.expressionType=function(e){return R(e.node,e.state)},e.parentNode=function(e,t){function r(t,s,a){if(t.start<=e.start&&t.end>=e.end){var i=o[o.length-1];if(t==e)throw{found:i};i!=t&&o.push(t),n.base[a||t.type](t,s,r),i!=t&&o.pop()}}var o=[];try{r(t,null)}catch(s){if(s.found)return s.found;throw s}};var vt={ArrayExpression:function(e,t,n){return n(e,!0).getProp("<i>")},ObjectExpression:function(e,t,n){for(var r=0;r<e.properties.length;++r){var o=t.properties[r];if(o.value==t)return n(e,!0).getProp(o.key.name)}},UnaryExpression:function(e){return S(e.operator)},UpdateExpression:function(){return it.num},BinaryExpression:function(e){return _(e.operator)?it.bool:it.num},AssignmentExpression:function(e,t,n){return n(e.left)},LogicalExpression:function(e,t,n){return n(e,!0)},ConditionalExpression:function(e,t,n){return e.consequent==t||e.alternate==t?n(e,!0):void 0},NewExpression:function(e,t,n){return this.CallExpression(e,t,n)},CallExpression:function(e,t,n){for(var r=0;r<e.arguments.length;r++){var o=e.arguments[r];if(o==t){var s=n(e.callee).getFunctionType();if(s instanceof st)return s.args[r];break}}},ReturnStatement:function(e,t,r){var o=n.findNodeAround(t.sourceFile.ast,t.start,"Function");if(o){var s="FunctionExpression"==o.node.type?r(o.node,!0).getFunctionType():o.node.body.scope.fnType;if(s)return s.retval.getType()}},VariableDeclaration:function(e,t,n){for(var r=0;r<e.declarations.length;r++){var o=e.declarations[r];if(o.init==t)return n(o.id)}}};e.typeFromContext=function(t,n){var r=e.parentNode(n.node,t),o=null;return vt.hasOwnProperty(r.type)&&(o=vt[r.type](r,n.node,function(r,o){var s={node:r,state:n.state},a=o?e.typeFromContext(t,s):e.expressionType(s);return a||M})),o||e.expressionType(n)};var wt=!1;e.resetGuessing=function(e){wt=e},e.didGuess=function(){return wt},e.forAllPropertiesOf=function(e,t){e.gatherProperties(t,0)};var St=n.make({},yt);e.findRefs=function(e,t,r,o,s){St.Identifier=St.VariablePattern=function(e,t){if(e.name==r)for(var n=t;n;n=n.prev)if(n==o&&s(e,t),r in n.props)return},n.recursive(e,t,null,St)};var _t=n.make({Function:function(e,t,n){n(e.body,e.body.scope,"ScopeBody")}});e.findPropRefs=function(e,t,r,o,s){n.simple(e,{MemberExpression:function(e,t){e.computed||e.property.name!=o||R(e.object,t).getType()==r&&s(e.property)},ObjectExpression:function(e,t){if(R(e,t).getType()==r)for(var n=0;n<e.properties.length;++n)e.properties[n].key.name==o&&s(e.properties[n].key)}},_t,t)};var xt=e.scopeAt=function(e,t,r){var o=n.findNodeAround(e,t,function(e,t){return"ScopeBody"==e&&t.scope});return o?o.node.scope:r||it.topScope};e.forAllLocalsAt=function(e,t,n,r){var o=xt(e,t,n);o.gatherProperties(r,0)},r=e.def=r.init({},e)}),function(e,t){return"object"==typeof exports&&"object"==typeof module?t(exports,require("./infer"),require("./signal"),require("esprima/esprima"),require("acorn/dist/walk")):"function"==typeof define&&define.amd?define("tern/lib/tern",["exports","./infer","./signal","esprima/esprima","acorn/dist/walk"],t):void t(e.tern||(e.tern={}),tern,tern.signal,acorn,acorn.walk)}(this,function(e,t,n,r,o){"use strict";function s(e,t){this.name=e,this.parent=t,this.scope=this.text=this.ast=this.lineOffsets=null}function a(e,n,r){e.text=r.options.stripCRs?n.replace(/\r\n/g,"\n"):n,t.withContext(r.cx,function(){e.ast=t.parse(e.text,r.passes,{directSourceFile:e,allowReturnOutsideFunction:!0})}),e.lineOffsets=null}function i(e,n,r){if(n.query&&!$.hasOwnProperty(n.query.type))return r("No query type '"+n.query.type+"' defined");var o=n.query;o||r(null,{});var s=n.files||[];s.length&&++e.uses;for(var a=0;a<s.length;++a){var i=s[a];"delete"==i.type?e.delFile(i.name):c(e,i.name,null,"full"==i.type?i.text:null)}var l="number"==typeof n.timeout?[n.timeout]:null;if(!o)return void u(e,l,function(){});var p=$[o.type];if(p.takesFile){if("string"!=typeof o.file)return r(".query.file must be a string");/^#/.test(o.file)||c(e,o.file,null)}u(e,l,function(n){function a(){var t;try{t=p.run(e,o,i)}catch(n){return e.options.debug&&"TernError"!=n.name&&console.error(n.stack),r(n)}r(null,t)}if(n)return r(n);var i=p.takesFile&&g(e,s,o.file);return p.fullFile&&"part"==i.type?r("Can't run a "+o.type+" query on a file fragment"):void t.withContext(e.cx,l?function(){t.withTimeout(l[0],a)}:a)})}function l(e,n){return t.withContext(e.cx,function(){n.scope=e.cx.topScope,e.signal("beforeLoad",n),t.analyze(n.ast,n.name,n.scope,e.passes),e.signal("afterLoad",n)}),n}function c(e,t,n,r){var o=e.findFile(t);if(o)return null!=r&&(o.scope&&(e.needsPurge.push(t),o.scope=null),a(o,r,e)),void(y(e,o.parent)>y(e,n)?(o.parent=n,o.excluded&&(o.excluded=null)):o.parent||(o.parent=n));var i=new s(t,n);e.files.push(i),e.fileMap[t]=i,null!=r?a(i,r,e):e.options.async?(e.startAsyncAction(),e.options.getFile(t,function(t,n){a(i,n||"",e),e.finishAsyncAction(t)})):a(i,e.options.getFile(t)||"",e)}function p(e,t,n){var r=function(){e.off("everythingFetched",r),clearTimeout(o),u(e,t,n)};e.on("everythingFetched",r);var o=setTimeout(r,e.options.fetchTimeout)}function u(e,n,r){if(e.pending)return p(e,n,r);var o=e.fetchError;if(o)return e.fetchError=null,r(o);e.needsPurge.length>0&&t.withContext(e.cx,function(){t.purge(e.needsPurge),e.needsPurge.length=0});for(var s=!0,a=0;a<e.files.length;){for(var i=[];a<e.files.length;++a){var c=e.files[a];null==c.text?s=!1:null!=c.scope||c.excluded||i.push(c)}i.sort(function(t,n){return y(e,t.parent)-y(e,n.parent)});for(var u=0;u<i.length;u++){var c=i[u];if(c.parent&&!w(e,c))c.excluded=!0;else if(n){var d=+new Date;t.withTimeout(n[0],function(){l(e,c)}),n[0]-=+new Date-d}else l(e,c)}}s?r():p(e,n,r)}function d(e){var t=e.indexOf("\n");return 0>t?e:e.slice(0,t)}function h(e,t,n){var r=Math.max(0,n-500),o=null;if(!/^\s*$/.test(e))for(;;){var s=t.indexOf(e,r);if(0>s||s>n+500)break;(null==o||Math.abs(o-n)>Math.abs(s-n))&&(o=s),r=s+e.length}return o}function f(e){for(var t=0;e;++t,e=e.prev);return t}function m(e){var t=new Error(e);return t.name="TernError",t}function g(e,n,r){var s=r.match(/^#(\d+)$/);if(!s)return e.findFile(r);var a=n[s[1]];if(!a||"delete"==a.type)throw m("Reference to unknown file "+r);if("full"==a.type)return e.findFile(a.name);var i=a.backing=e.findFile(a.name),l=a.offset;a.offsetLines&&(l={line:a.offsetLines,ch:0}),a.offset=l=Y(i,null==a.offsetLines?a.offset:{line:a.offsetLines,ch:0},!0);var c,p,u=d(a.text),g=h(u,i.text,l),b=null==g?Math.max(0,i.text.lastIndexOf("\n",l)):g;return t.withContext(e.cx,function(){t.purge(a.name,b,b+a.text.length);var n,r=a.text;if(n=r.match(/(?:"([^"]*)"|([\w$]+))\s*:\s*function\b/)){var s=o.findNodeAround(a.backing.ast,b,"ObjectExpression");s&&s.node.objType&&(c={type:s.node.objType,prop:n[2]||n[1]})}if(g&&(n=u.match(/^(.*?)\bfunction\b/))){for(var l=n[1].length,d="",h=0;l>h;++h)d+=" ";r=d+r.slice(l),p=!0}var m=t.scopeAt(i.ast,b,i.scope),y=t.scopeAt(i.ast,b+r.length,i.scope),v=a.scope=f(m)<f(y)?y:m;a.ast=t.parse(r,e.passes,{directSourceFile:a,allowReturnOutsideFunction:!0}),t.analyze(a.ast,a.name,v,e.passes);e:if(c||p){var w=t.scopeAt(a.ast,u.length,m);if(!w.fnType)break e;if(c){var S=c.type.getProp(c.prop);S.addType(w.fnType)}else if(p){var _=t.scopeAt(i.ast,b+u.length,i.scope);if(_==m||!_.fnType)break e;var x=_.fnType,j=w.fnType;if(!j||j.name!=x.name&&x.name)break e;for(var h=0,E=Math.min(x.args.length,j.args.length);E>h;++h)x.args[h].propagate(j.args[h]);x.self.propagate(j.self),j.retval.propagate(x.retval)}}}),a}function b(e){var t=0;return o.simple(e,{Expression:function(){++t}}),t}function y(e,t){for(var n=0;t;)t=e.findFile(t).parent,++n;return n}function v(e,t){for(;;){var n=e.findFile(t.parent);if(!n.parent)break;t=n}return t.name}function w(e,t){var n=v(e,t),r=b(t.ast),o=e.budgets[n];return null==o&&(o=e.budgets[n]=e.options.dependencyBudget),r>o?!1:(e.budgets[n]=o-r,!0)}function S(e){return"number"==typeof e||"object"==typeof e&&"number"==typeof e.line&&"number"==typeof e.ch}function _(e){if(e.query){if("string"!=typeof e.query.type)return".query.type must be a string";if(e.query.start&&!S(e.query.start))return".query.start must be a position";if(e.query.end&&!S(e.query.end))return".query.end must be a position"}if(e.files){if(!Array.isArray(e.files))return"Files property must be an array";for(var t=0;t<e.files.length;++t){var n=e.files[t];if("object"!=typeof n)return".files[n] must be objects";if("string"!=typeof n.name)return".files[n].name must be a string";if("delete"!=n.type){if("string"!=typeof n.text)return".files[n].text must be a string";if("part"==n.type){if(!S(n.offset)&&"number"!=typeof n.offsetLines)return".files[n].offset must be a position"}else if("full"!=n.type)return'.files[n].type must be "full" or "part"'}}}}function x(e,t){for(var n=e.text,r=e.lineOffsets||(e.lineOffsets=[0]),o=0,s=0,a=Math.min(Math.floor(t/K),r.length-1),o=r[a],s=a*K;t>s;){if(++s,o=n.indexOf("\n",o)+1,0===o)return null;s%K===0&&r.push(o)}return o}function j(e,t){if(!e)return{line:0,ch:0};for(var n,r,o=e.lineOffsets||(e.lineOffsets=[0]),s=e.text,a=o.length-1;a>=0;--a)o[a]<=t&&(n=a*K,r=o[a]);for(;;){var i=s.indexOf("\n",r);if(i>=t||0>i)break;r=i+1,++n}return{line:n,ch:t-r}}function E(e){for(var t in e)null==e[t]&&delete e[t];return e}function T(e,t,n){null!=n&&(e[t]=n)}function k(e,t){"string"!=typeof e&&(e=e.name,t=t.name);var n=/^[A-Z]/.test(e),r=/^[A-Z]/.test(t);return n==r?t>e?-1:e==t?0:1:n?1:-1}function O(e,t,n){return"Literal"==e.type&&"string"==typeof e.value&&e.start==t-1&&e.end<=n+1}function D(e,t){for(var n=0;n<e.properties.length;n++){var r=e.properties[n];if(r.key.start<=t&&r.key.end>=t)return r}}function R(e,n,o){function s(r,o,s,a){if((!w&&n.omitObjectPrototype===!1||o!=e.cx.protos.Object||d)&&!(n.filter!==!1&&d&&0!==(n.caseInsensitive?r.toLowerCase():r).indexOf(d)||u&&u.props[r])){for(var i=0;i<h.length;++i){var l=h[i];if((S?l.name:l)==r)return}var c=S?{name:r}:r;if(h.push(c),o&&(n.types||n.docs||n.urls||n.origins)){var p=o.props[r];t.resetGuessing();var f=p.getType();c.guess=t.didGuess(),n.types&&(c.type=t.toString(p)),n.docs&&T(c,"doc",z(n,p.doc||f&&f.doc)),n.urls&&T(c,"url",p.url||f&&f.url),n.origins&&T(c,"origin",p.origin||f&&f.origin)}n.depths&&(c.depth=s),S&&a&&a(c)}}if(null==n.end)throw m("missing .query.end field");if(e.passes.completion)for(var a=0;a<e.passes.completion.length;a++){var i=e.passes.completion[a](o,n);if(i)return i}for(var l=Y(o,n.end),c=l,p=o.text;l&&r.isIdentifierChar(p.charCodeAt(l-1));)--l;if(n.expandWordForward!==!1)for(;c<p.length&&r.isIdentifierChar(p.charCodeAt(c));)++c;var u,d=p.slice(l,c),h=[];n.caseInsensitive&&(d=d.toLowerCase());var f,g,b,y,v,w,S=n.types||n.depths||n.docs||n.urls||n.origins,_=t.findExpressionAround(o.ast,null,l,o.scope);if(_)if("MemberExpression"==_.node.type&&_.node.object.end<l)v=_;else if(O(_.node,l,c)){var x=t.parentNode(_.node,o.ast);"MemberExpression"==x.type&&x.property==_.node&&(v={node:x,state:_.state})}else if("ObjectExpression"==_.node.type){var j=D(_.node,c);j?(w=_,g=y=j.key.name):d||/:\s*$/.test(o.text.slice(0,l))||(w=_,g=y=!0)}if(w)b=t.typeFromContext(o.ast,w),u=w.node.objType;else if(v)g=v.node.property,g="Literal"==g.type?g.value.slice(1):g.name,v.node=v.node.object,b=t.expressionType(v);else if("."==p.charAt(l-1)){for(var E=l-1;E&&("."==p.charAt(E-1)||r.isIdentifierChar(p.charCodeAt(E-1)));)E--;var R=p.slice(E,l-1);R&&(b=t.def.parsePath(R,o.scope).getObjType(),g=d)}if(null!=g){if(e.cx.completingProperty=g,b&&t.forAllPropertiesOf(b,s),!h.length&&n.guess!==!1&&b&&b.guessProperties&&b.guessProperties(function(e,t,n){e!=g&&"✖"!=e&&s(e,t,n)}),!h.length&&d.length>=2&&n.guess!==!1)for(var g in e.cx.props)s(g,e.cx.props[g][0],0);f="memberCompletion"}else t.forAllLocalsAt(o.ast,l,o.scope,s),n.includeKeywords&&Z.forEach(function(e){s(e,null,0,function(e){e.isKeyword=!0})}),f="variableCompletion";return n.sort!==!1&&h.sort(k),e.cx.completingProperty=null,{start:Q(n,o,l),end:Q(n,o,c),isProperty:!!g,isObjectKey:!!y,completions:h}}function A(e,t){var n=t.prefix,r=[];for(var o in e.cx.props)"<i>"==o||n&&0!==o.indexOf(n)||r.push(o);return t.sort!==!1&&r.sort(k),{completions:r}}function M(e,t,n){var r=et(e,t,n);if(r)return r;throw m("No expression at the given position.")}function C(e){return e&&(e=e.getType())&&e instanceof t.Obj?e:null}function P(e,n,r,o){var s;if(o&&(t.resetGuessing(),s=t.expressionType(o)),e.passes.typeAt){var a=Y(r,n.end);e.passes.typeAt.forEach(function(e){s=e(r,a,o,s)})}if(!s)throw m("No type found at the given position.");var i;if("ObjectExpression"==o.node.type&&null!=n.end&&(i=D(o.node,Y(r,n.end)))){var l=i.key.name,c=C(t.typeFromContext(r.ast,o));if(c&&c.hasProp(l))s=c.hasProp(l);else{var p=C(s);p&&p.hasProp(l)&&(s=p.hasProp(l))}}return s}function I(e,n,r){var o,s=et(r,n),a=P(e,n,r,s),i=a;if(a=n.preferFunction?a.getFunctionType()||a.getType():a.getType(),s&&("Identifier"==s.node.type?o=s.node.name:"MemberExpression"!=s.node.type||s.node.computed||(o=s.node.property.name)),null!=n.depth&&"number"!=typeof n.depth)throw m(".query.depth must be a number");var l={guess:t.didGuess(),type:t.toString(i,n.depth),name:a&&a.name,exprName:o};return a&&L(n,a,l),!l.doc&&i.doc&&(l.doc=z(n,i.doc)),E(l)}function z(e,t){if(!t)return null;if("full"==e.docFormat)return t;var n=/.\n[\s@\n]/.exec(t);if(n&&(t=t.slice(0,n.index+1)),t=t.replace(/\n\s*/g," "),t.length<100)return t;var r=/[\.!?] [A-Z]/g;r.lastIndex=80;var o=r.exec(t);return o&&(t=t.slice(0,o.index+1)),t}function N(e,n,r){var o=et(r,n),s=P(e,n,r,o),a={url:s.url,doc:z(n,s.doc),type:t.toString(s)},i=s.getType();return i&&L(n,i,a),E(a)}function L(e,n,r){r.url||(r.url=n.url),r.doc||(r.doc=z(e,n.doc)),r.origin||(r.origin=n.origin);var o,s=t.cx().protos;!r.url&&!r.doc&&n.proto&&(o=n.proto.hasCtor)&&n.proto!=s.Object&&n.proto!=s.Function&&n.proto!=s.Array&&(r.url=o.url,r.doc=z(e,o.doc))}function F(e,n,r){var o=et(r,n),s=P(e,n,r,o);if(t.didGuess()&&!n.guess)return{};var a=U(s,e,n);if(t.didGuess()&&s.potentialMatches){for(var i=[],l=0;l<s.potentialMatches.length;l++)i.push(U(s.potentialMatches[l],e,n));a.results=i}return a}function U(e,n,r){var o=tt(e),s={url:e.url,doc:z(r,e.doc),origin:e.origin,guess:t.didGuess()};if(e.types)for(var a=e.types.length-1;a>=0;--a){var i=e.types[a];L(r,i,s),o||(o=tt(i))}if(o&&o.node){var l=o.node.sourceFile||n.findFile(o.origin),c=Q(r,l,o.node.start),p=Q(r,l,o.node.end);s.start=c,s.end=p,s.file=o.origin;var u=Math.max(0,o.node.start-50);s.contextOffset=o.node.start-u,s.context=l.text.slice(u,u+50)}else o&&(s.file=o.origin,nt(n,r,o,s));return E(s)}function q(e,n,r,o,s){function a(e){return function(t,r){if(s)for(var o=r;o!=l;o=o.prev){var a=o.hasProp(s);if(a)throw m("Renaming `"+i+"` to `"+s+"` would make a variable at line "+(j(e,t.start).line+1)+" point to the definition at line "+(j(e,a.name.start).line+1))}p.push({file:e.name,start:Q(n,e,t.start),end:Q(n,e,t.end)})}}for(var i=o.node.name,l=o.state;l&&!(i in l.props);l=l.prev);if(!l)throw m("Could not find a definition for "+i+" "+!!e.cx.topScope.props.x);var c,p=[];if(l.originNode){if(c="local",s){for(var u=l.prev;u&&!(s in u.props);u=u.prev);u&&t.findRefs(l.originNode,l,s,u,function(e){throw m("Renaming `"+i+"` to `"+s+"` would shadow the definition used at line "+(j(r,e.start).line+1))})}t.findRefs(l.originNode,l,i,l,a(r))}else{c="global";for(var d=0;d<e.files.length;++d){var h=e.files[d];t.findRefs(h.ast,h.scope,i,l,a(h))}}return{refs:p,type:c,name:i}}function G(e,n,r,o){function s(e){return function(t){i.push({file:e.name,start:Q(n,e,t.start),end:Q(n,e,t.end)})}}var a=t.expressionType(r).getObjType();if(!a)throw m("Couldn't determine type of base object.");for(var i=[],l=0;l<e.files.length;++l){var c=e.files[l];t.findPropRefs(c.ast,c.scope,a,o.name,s(c))}return{refs:i,name:o.name}}function W(e,t,n){var r=M(n,t,!0);if(r&&"Identifier"==r.node.type)return q(e,t,n,r);if(r&&"MemberExpression"==r.node.type&&!r.node.computed){var o=r.node.property;return r.node=r.node.object,G(e,t,r,o)}if(r&&"ObjectExpression"==r.node.type)for(var s=Y(n,t.end),a=0;a<r.node.properties.length;++a){var i=r.node.properties[a].key;if(i.start<=s&&i.end>=s)return G(e,t,r,i)}throw m("Not at a variable or property name.")}function B(e,t,n){if("string"!=typeof t.newName)throw m(".query.newName should be a string");var r=M(n,t);if(!r||"Identifier"!=r.node.type)throw m("Not at a variable.");var o=q(e,t,n,r,t.newName),s=o.refs;delete o.refs,o.files=e.files.map(function(e){return e.name});for(var a=o.changes=[],i=0;i<s.length;++i){var l=s[i];l.text=t.newName,a.push(l)}return o}function H(e){return{files:e.files.map(function(e){return e.name})}}var J=Object.create(null);e.registerPlugin=function(e,t){J[e]=t};var V=e.defaultOptions={debug:!1,async:!1,getFile:function(e,t){this.async&&t(null,null)},defs:[],plugins:{},fetchTimeout:1e3,dependencyBudget:2e4,reuseInstances:!0,stripCRs:!1},$={completions:{takesFile:!0,run:R},properties:{run:A},type:{takesFile:!0,run:I},documentation:{takesFile:!0,run:N},definition:{takesFile:!0,run:F},refs:{takesFile:!0,fullFile:!0,run:W},rename:{takesFile:!0,fullFile:!0,run:B},files:{run:H}};e.defineQueryType=function(e,t){$[e]=t},s.prototype.asLineChar=function(e){return j(this,e)};var X=e.Server=function(e){this.cx=null,this.options=e||{};for(var t in V)e.hasOwnProperty(t)||(e[t]=V[t]);this.handlers=Object.create(null),this.files=[],this.fileMap=Object.create(null),this.needsPurge=[],this.budgets=Object.create(null),this.uses=0,this.pending=0,this.asyncError=null,this.passes=Object.create(null),this.defs=e.defs.slice(0);for(var n in e.plugins)if(e.plugins.hasOwnProperty(n)&&n in J){var r=J[n](this,e.plugins[n]);if(r&&r.defs&&(r.loadFirst?this.defs.unshift(r.defs):this.defs.push(r.defs)),r&&r.passes)for(var o in r.passes)r.passes.hasOwnProperty(o)&&(this.passes[o]||(this.passes[o]=[])).push(r.passes[o])}this.reset()};X.prototype=n.mixin({addFile:function(e,t,n){!n||n in this.fileMap||(n=null),c(this,e,n,t)},delFile:function(e){var t=this.findFile(e);t&&(this.needsPurge.push(t.name),this.files.splice(this.files.indexOf(t),1),delete this.fileMap[e])},reset:function(){this.signal("reset"),this.cx=new t.Context(this.defs,this),this.uses=0,this.budgets=Object.create(null);for(var e=0;e<this.files.length;++e){var n=this.files[e];n.scope=null}},request:function(e,t){var n=_(e);if(n)return t(n);var r=this;i(this,e,function(e,n){t(e,n),r.uses>4e4&&(r.reset(),u(r,null,function(){}))})},findFile:function(e){return this.fileMap[e]},flush:function(e){var n=this.cx;u(this,null,function(r){return r?e(r):void t.withContext(n,e)})},startAsyncAction:function(){++this.pending},finishAsyncAction:function(e){e&&(this.asyncError=e),this.pending>0&&this.pending--,0===this.pending&&this.signal("everythingFetched")}});var K=25,Y=e.resolvePos=function(e,t,n){if("number"!=typeof t){var r=x(e,t.line);if(null==r){if(!n)throw m("File doesn't contain a line "+t.line);t=e.text.length}else t=r+t.ch}if(t>e.text.length){if(!n)throw m("Position "+t+" is outside of file.");t=e.text.length}return t},Q=e.outputPos=function(e,t,n){if(e.lineCharPositions){var r=j(t,n);return"part"==t.type&&(r.line+=null!=t.offsetLines?t.offsetLines:j(t.backing,t.offset).line),r}return n+("part"==t.type?t.offset:0)},Z="break do instanceof typeof case else new var catch finally return void continue for switch while debugger function this with default if throw delete in try".split(" "),et=e.findQueryExpr=function(e,n,r){if(null==n.end)throw m("missing .query.end field");if(n.variable){var o=t.scopeAt(e.ast,Y(e,n.end),e.scope);return{node:{type:"Identifier",name:n.variable,start:n.end,end:n.end+1},state:o}}var s=n.start&&Y(e,n.start),a=Y(e,n.end),i=t.findExpressionAt(e.ast,s,a,e.scope);return i?i:(i=t.findExpressionAround(e.ast,s,a,e.scope),i&&("ObjectExpression"==i.node.type||r||(null==s?a:s)-i.node.start<20||i.node.end-a<20)?i:null)},tt=e.getSpan=function(e){if(e.origin){if(e.originNode){var t=e.originNode;return/^Function/.test(t.type)&&t.id&&(t=t.id),{origin:e.origin,node:t}}return e.span?{origin:e.origin,span:e.span}:void 0}},nt=e.storeSpan=function(e,t,n,r){if(r.origin=n.origin,n.span){var o=/^(\d+)\[(\d+):(\d+)\]-(\d+)\[(\d+):(\d+)\]$/.exec(n.span);r.start=t.lineCharPositions?{line:Number(o[2]),ch:Number(o[3])}:Number(o[1]),r.end=t.lineCharPositions?{line:Number(o[5]),ch:Number(o[6])}:Number(o[4])}else{var s=e.findFile(n.origin);r.start=Q(t,s,n.node.start),r.end=Q(t,s,n.node.end)}};e.version="0.12.0",e.findDef=F,e.findExpr=et,e.findExprType=P,e.resolveFile=g,e.storeTypeDocs=L,e.parseDoc=z}),function(){"use strict";function e(e,t,n,r,o,s){t[e]&&(n.push(e),(t[e]===!0||1===t[e])&&r.push(o+e+"/"+s))}function t(e,t,n,r,o){var s=r+t+"/"+o;require._fileExists(e.toUrl(s+".js"))&&n.push(s)}function n(e,t,r){var o;for(o in t)!t.hasOwnProperty(o)||e.hasOwnProperty(o)&&!r?"object"==typeof t[o]&&(!e[o]&&t[o]&&(e[o]={}),n(e[o],t[o],r)):e[o]=t[o]}var r=/(^.*(^|\/)nls(\/|$))([^\/]*)\/?([^\/]*)/;define("i18n",["module"],function(o){var s=o.config?o.config():{};return s=s||{},{version:"2.0.4",load:function(o,a,i,l){l=l||{},l.locale&&(s.locale=l.locale);var c,p,u,d=r.exec(o),h=d[1],f=d[4],m=d[5],g=f.split("-"),b=[],y={},v="";if(d[5]?(h=d[1],c=h+m):(c=o,m=d[4],f=s.locale,f||(f=s.locale="undefined"==typeof navigator?"root":(navigator.language||navigator.userLanguage||"root").toLowerCase()),g=f.split("-")),l.isBuild){for(b.push(c),t(a,"root",b,h,m),p=0;p<g.length;p++)u=g[p],v+=(v?"-":"")+u,t(a,v,b,h,m);if(l.locales){var w,S;for(w=0;w<l.locales.length;w++)for(f=l.locales[w],g=f.split("-"),v="",S=0;S<g.length;S++)u=g[S],v+=(v?"-":"")+u,t(a,v,b,h,m)}a(b,function(){i()})}else a([c],function(t){var r,o=[];for(e("root",t,o,b,h,m),p=0;p<g.length;p++)r=g[p],v+=(v?"-":"")+r,e(v,t,o,b,h,m);a(b,function(){var e,r,s;for(e=o.length-1;e>-1&&o[e];e--)s=o[e],r=t[s],(r===!0||1===r)&&(r=a(h+s+"/"+m)),n(y,r);i(y)})})}}})}(),define("javascript/nls/messages",{root:!0}),define("javascript/nls/root/messages",{pluginName:"Orion JavaScript Tool Support",pluginDescription:"This plug-in provides JavaScript tools support for Orion, like editing, search, navigation, validation, and code completion.",error:"Error",warning:"Warning",ignore:"Ignore",ternContentAssist:"Tern JavaScript content assist",ternProjectAssist:"Tern project file content assist",emptyFileTemplateDoc:"Create new default contents for the .tern-project file",prefCodeStyle:"Code Style",prefBestPractices:"Best Practices",prefPotentialProblems:"Potential Programming Problems",sourceOutline:"Source Outline",sourceOutlineTitle:"JavaScript source outline",contentAssist:"JavaScript content assist",eslintValidator:"JavaScript Validator",missingCurly:"Statements not enclosed in braces:",curlyFixName:"Enclose statement in braces",noCaller:"Discouraged 'arguments.caller' or 'arguments.callee' use:",noCommaDangle:"Trailing commas in object expressions:",noCondAssign:"Assignments in conditional expressions:",noConsole:"Discouraged console use in browser code:",noConstantCondition:"Constant as conditional expression:",noRegexSpaces:"Multiple spaces in regular expressions:",noReservedKeys:"Reserved words used as property keys:",noReservedKeysFixName:"Surround key with quotes",noEqeqeq:"Discouraged '==' use:",noDebugger:"Discouraged 'debugger' statement use:",noDebuggerFixName:"Remove statement",noWith:"Discouraged 'with' statement use:",noEval:"Discouraged 'eval()' use:",noImpliedEval:"Discouraged implied 'eval()' use:",noDupeKeys:"Duplicate object keys:",noDupeKeysFixName:"Rename key",noDuplicateCaseFixName:"Rename case",noIterator:"Discouraged __iterator__ property use:",noProto:"Discouraged __proto__ property use:",noUndefInit:"Explicitly initializing variables to undefined:",noundefinitFixName:"Remove assignment",useIsNaN:"NaN not compared with isNaN():",useIsNanFixName:"Use isNaN()",missingDoc:"Missing JSDoc:",missingDocFixName:"Generate element JSDoc",noUnreachable:"Unreachable code:",noFallthrough:"Switch case fall-through:",useBeforeDefine:"Member used before definition:",noEmptyBlock:"Undocumented empty block:",newParens:"Missing parentheses in constructor call:",newparensFixName:"Add parentheses",noNewArray:"Discouraged 'new Array()':",noNewArrayFixName:"Convert to array literal",noNewFunc:"Discouraged 'new Function()':",noNewObject:"Discouraged 'new Object()':",noNewWrappers:"Discouraged wrapper objects:",noNewWrappersLiteralFixName:"Convert to literal",noNewWrappersFixName:"Remove 'new' keyword",noMixedSpacesAndTabs:"Mixed spaces and tabs:",missingSemi:"Missing semicolons:",unusedVars:"Unused variables:",varRedecl:"Variable re-declarations:",varShadow:"Variable shadowing:",undefMember:"Undeclared global reference:",unnecessarySemis:"Unnecessary semicolons:",unusedParams:"Unused parameters:",unsupportedJSLint:"Unsupported environment directive:",noThrowLiteral:"Literal used in 'throw':",noselfassignFixName:"Remove assignment",noselfassignRenameFixName:"Rename right hand variable",missingNls:"Non-externalized string literals (missing $NON-NLS$ tag):",unnecessaryNls:"Unnecessary $NON-NLS$ tags:",generateDocName:"Generate Element Comment",generateDocTooltip:"Generate a JSDoc-like comment for the selected JavaScript element",renameElement:"Rename Element",renameElementTooltip:"Rename the selected JavaScript element",renameFailedTimedOut:"Could not rename element - operation timed out",openDeclName:"Open Declaration",openDeclTooltip:"Open the declaration of the selected element",openImplName:"Open Implementation",openImplTooltip:"Open the implementation of the selected element",noImplFound:"No implementation was found",implTimedOut:"Could not compute implementation, the operation timed out",workspaceRefsName:"Workspace",workspaceRefsTooltip:"Show all references to the selection in the workspace",projectRefsName:"Project",projectRefsTooltip:"Show all references to the selection in the current project",referencesMenuName:"References",referencesMenuTooltip:"Show different kinds of references",noDeclTimedOut:"No declaration was found - operation timed out",validTypeof:"Invalid 'typeof' comparison:",noSparseArrays:"Sparse array declarations:",javascriptValidation:"Javascript Validation",jsHover:"JavaScript Hover Provider",removeExtraSemiFixName:"Remove extra semicolon",addFallthroughCommentFixName:"Add $FALLTHROUGH$ comment",addEmptyCommentFixName:"Comment empty block",addESLintEnvFixName:"Add to eslint-env directive",addESLintGlobalFixName:"Add to globals directive",removeUnusedParamsFixName:"Remove parameter",commentCallbackFixName:"Add @callback to function",eqeqeqFixName:"Update operator",unreachableFixName:"Remove unreachable code",sparseArrayFixName:"Convert to normal array",semiFixName:"Add missing ';'",radix:"Missing radix parameter to parseInt():",radixFixName:"Add default radix",unusedVarsUnusedFixName:"Remove unused variable",unusedFuncDeclFixName:"Remove unused function",noCommaDangleFixName:"Remove extra ','",addBBreakFixName:"Add break statement",noShadowGlobals:"Global shadowing:",noThrowLiteralFixName:"Change to Error",missingNlsFixName:"Add missing $NON-NLS$ tag",unnecessaryNlsFixName:"Remove unnecessary $NON-NLS$ tag",funcProposalDescription:" - The name of the function",funcParamProposalDescription:" - Function parameter",eslintRuleProposalDescripton:" - ESLint rule",eslintEnvProposalDescription:" - ESLint environment name",onlineDocumentationProposalEntry:"\n\n[Online documentation](${0})",keywordProposalDescription:" - Keyword",keywordHoverProposal:"ECMAScript reserved keyword",reloadPluginCmd:"Reload",reloadPluginCmdTooltip:"Reload plug-in",reloadAllPluginsCmd:"Reload All",reloadAllPluginsCmdTooltip:"Reload all plug-ins",templateHoverHeader:"Template source code:\n\n",templateAssistHeader:"Templates",keywordAssistHeader:"Keywords",ternPlugins:"Tern Plug-ins",noTernPluginsAvailable:"No Tern plug-ins are currently loaded. This may be because you have not yet activated content assist in a JavaScript file. Tern plug-ins provide type information and code templates for JavaScript.",noDeclFound:"Could not find declaration",deprecatedHoverTitle:"Deprecated.",parametersHoverTitle:"Parameters:",returnsHoverTitle:"Returns:",throwsHoverTitle:"Throws:",callbackHoverTitle:"Callback:",callbackText:"This function is used as a callback",sinceHoverTitle:"Since:",seeAlsoHoverTitle:"See Also:",openFileForTitle:"Open file for",failedToReadFile:"Failed to read file: ${0}",badInlineRename:"In-line rename is only available for local variables and declarations.",failedRename:"In-line rename failed: ${0}",declDisplayName:"${0} (start: ${1}, end: ${2})",declPotentialHeader:"**Potential matches:**\n",typeofOptions:"Typeof Options",functionDecls:"Function Declarations",functionCalls:"Function Calls",propAccess:"Property Access",propWrite:"Property Write",varAccess:"Variable Access",varWrite:"Variable Write",varDecls:"Variable Declarations",regex:"Regular Expressions",strings:"Strings",blockComments:"Block Comments",lineComments:"Line Comments",partial:"Partial Matches",uncategorized:"Uncategorized",parseErrors:"Parse Errors",noFileContents:"Could not compute references: failed to compute file text content",noFileMeta:"Could not compute references: failed to compute file metadata",cannotComputeRefs:"Cannot compute references: ${0}",notAnIdentifier:"Cannot compute references at the selected location: Location is not an identifier",notHtmlOffset:"Not a valid offset in HTML",allProjectRefs:"Finding all project references...",allWorkspaceRefs:"Finding all workspace references...",refsFoundIn:"References found in file: '${0}' (${1}/${2})",addToTernCommand:"Add to .tern-project",addToTernCommandTooltip:"The JavaScript tooling will always load the contents of this file to Tern","accessor-pairs":"Getter and setter accessors not in pairs:","no-control-regex":"Disallow control characters in regular expressions:","no-duplicate-case":"Duplicate case:","no-empty-character-class":"Disallow empty character classes:","no-extra-boolean-cast":"Discourage redundant double negation:","no-extra-parens":"Discourage redundant parentheses:","no-invalid-regexp":"Invalid regular expressions:","no-negated-in-lhs":"Disallow negated left operand of in operator:","no-obj-calls":"Disallow global object as function calls:","no-eq-null":"Disallow null comparisons:",noeqnullFixName:"Update operator","no-else-return":"Unnecessary else after return:","no-empty-label":"No empty labels:","no-self-compare":"Disallow self compare:","no-irregular-whitespace":"Disallow irregular whitespace:","no-self-assign":"Disallow self assignment:",noShadowFixName:"Rename in scope","type-checked-consistent-return":"Discouraged inconsistent returns:",ternDocPluginName:"Doc Comments",ternDocPluginDescription:"Tern plug-in to parse and use JSDoc-like comments for inferencing",orionAMQPPluginName:"Orion AMQP",orionAMQPPluginDescription:"Plug-in that contributes type information and code templates for AMQP.",orionAngularPluginName:"AngularJS",orionAngularPluginDescription:"Plug-in that contributes type information and code templates for AngularJS.",orionComponentPluginName:"ComponentJS",orionComponentPluginDescription:"Plug-in that contributes type information and code templates for ComponentJS.",orionExpressPluginName:"Orion ExpressJS",orionExpressPluginDescription:"Plug-in that contributes type information and code templates for ExpressJS.",orionMongoDBPluginName:"Orion MongoDB",orionMongoDBPluginDescription:"Plug-in that contributes type information and code templates for MongoDB.",orionMySQLPluginName:"Orion MySQL",orionMySQLPluginDescription:"Plug-in that contributes type information and code templates for MySQL.",orionNodePluginName:"Orion Node.js",orionNodePluginDescription:"Plug-in that contributes type information and code templates for Node.js.",orionPostgresPluginName:"Orion PostgreSQL",orionPostgresPluginDescription:"Plug-in that contributes type information and code templates for PostgreSQL.",orionRequirePluginName:"Orion RequireJS",orionRequirePluginDescription:"Plug-in that contributes type information and code templates for RequireJS.",orionRedisPluginName:"Orion Redis",orionRedisPluginDescription:"Plug-in that contributes type information and code templates for Redis.",ternPluginsPluginName:"Orion Tern Plug-in Support",ternPluginsPluginDescription:"Plug-in that allows Orion to inspect and modify plug-ins running in Tern.",openImplPluginName:"Orion Open Implementation Support",openImplPluginDescription:"Plug-in that allows Orion to try to find implementation locations of elements rather than simple declarations",htmlDepPluginName:"Orion HTML Dependency Analysis",htmlDepPluginDescription:"Resolves script block and script tag dependencies",findTypesName:"Orion References Support",findTypesDescription:"Plug-in that provides expanded type-finding support in Orion",eslintPluginName:"ESLint plugin for Tern",eslintPluginDescription:"Provides ESLint linting for Tern",jsdocPluginName:"JSDoc types and completion support",jsdocPluginDescription:"Provides auto-complete and type information for JSDoc",outlinerPluginName:"JavaScript outlining",outlinerPluginDescription:"Provides JavaScript outlining",browser:"Browser global variables.",node:"Node.js global variables and Node.js scoping.",commonjs:"CommonJS global variables and CommonJS scoping (use this for browser-only code that uses Browserify/WebPack).",worker:"Web workers global variables.",amd:"Defines require() and define() as global variables as per the amd spec.",mocha:"Adds all of the Mocha testing global variables.",jasmine:"Adds all of the Jasmine testing global variables for version 1.3 and 2.0.",jest:"Jest global variables.",phantomjs:"PhantomJS global variables.",protractor:"Protractor global variables.",qunit:"QUnit global variables.",jquery:"jQuery global variables.",prototypejs:"Prototype.js global variables.",shelljs:"ShellJS global variables.",meteor:"Meteor global variables.",mongo:"MongoDB global variables.",applescript:"AppleScript global variables.",nashorn:"Java 8 Nashorn global variables.",serviceworker:"Service Worker global variables.",embertest:"Ember test helper globals.",webextensions:"WebExtensions globals.",es6:"Enable all ECMAScript 6 features except for modules.",unknownError:"An unknown error occurred.",failedDeleteRequest:"Failed to delete file from Tern: ${0}",failedReadRequest:"Failed to read file into Tern: ${0}",failedToComputeProposals:"Failed to compute proposals",failedToComputeProposalsNoServer:"Failed to compute proposals, server not started",failedToComputeDecl:"Failed to compute declaration",failedToComputeDeclNoServer:"Failed to compute declaration, server not started",failedToComputeImpl:"Failed to compute implementation",failedToComputeImplNoServer:"Failed to compute implementation, server not started",failedToComputeDoc:"Failed to compute documentation",failedToComputeDocNoServer:"Failed to compute documentation, server not started",failedToComputeOccurrences:"Failed to compute occurrences",failedToComputeOccurrencesNoServer:"failed to compute occurrences, server not started",failedGetInstalledPlugins:"Failed to get installed plug-ins",failedGetInstalledPluginsNoServer:"Failed to get installed plug-ins, server not started",failedGetInstalledDefs:"Failed to get installed Tern definitions",failedGetInstalledDefsNoServer:"Failed to get installed Tern definitions, server not started",failedInstallPlugins:"Failed to install plug-ins",failedInstallPluginsNoServer:"Failed to install plug-ins, server not started",failedRemovePlugins:"Failed to remove plug-ins",failedRemovePluginsNoServer:"Failed to remove plug-ins, server not started",failedEnablementPlugins:"Failed to set enablement of plug-ins",failedEnablementPluginsNoServer:"Failed to set enablement of plug-ins, server not started",failedGetEnvs:"Failed to get contributed environments",failedGetEnvsNoServer:"Failed to get contributed environments, server not started",failedRenameTern:"Failed to compute rename changes",failedRenameNoServer:"Failed to compute rename changes, server not started",failedRefs:"Failed to find references",failedRefsNoServer:"failed to find references - server not started",failedType:"Failed to find type",unknownRequest:"The request '${0}' is unknown",serverNotStarted:"The server has not been started. Request: '${0}'",eslintRuleEnableDisable:"Enable or disable ESLint rule using the ```ruleid:0/1/2``` form.\n\nExample use:\n\n>```/* eslint semi:1, no-console:0, no-redeclare:2 */```",eslintEnvDirective:"Specify which environments are used in this JavaScript file.\n\nExample use:\n\n>```/* eslint-env amd, node, broswer */```",eslintRuleEnable:"Enable a given set of ESLint rules.\n\nExample use:\n\n>```/* eslint-enable semi, no-console, no-redeclare */```",eslintRuleDisable:"Disable a given set of ESLint rules.\n\nExample use:\n\n>```/* eslint-disable semi, no-console, no-redeclare */```",failedToComputeProblems:"Failed to compute ESLint problems/markers",failedToComputeOutline:"Failed to compute outline"}),define("requirejs/text",["module"],function(e){"use strict";
var t,n,r,o,s,a=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],i=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,l=/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,c="undefined"!=typeof location&&location.href,p=c&&location.protocol&&location.protocol.replace(/\:/,""),u=c&&location.hostname,d=c&&(location.port||void 0),h={},f=e.config&&e.config()||{};return t={version:"2.0.12",strip:function(e){if(e){e=e.replace(i,"");var t=e.match(l);t&&(e=t[1])}else e="";return e},jsEscape:function(e){return e.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r").replace(/[\u2028]/g,"\\u2028").replace(/[\u2029]/g,"\\u2029")},createXhr:f.createXhr||function(){var e,t,n;if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;if("undefined"!=typeof ActiveXObject)for(t=0;3>t;t+=1){n=a[t];try{e=new ActiveXObject(n)}catch(r){}if(e){a=[n];break}}return e},parseName:function(e){var t,n,r,o=!1,s=e.indexOf("."),a=0===e.indexOf("./")||0===e.indexOf("../");return-1!==s&&(!a||s>1)?(t=e.substring(0,s),n=e.substring(s+1,e.length)):t=e,r=n||t,s=r.indexOf("!"),-1!==s&&(o="strip"===r.substring(s+1),r=r.substring(0,s),n?n=r:t=r),{moduleName:t,ext:n,strip:o}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(e,n,r,o){var s,a,i,l=t.xdRegExp.exec(e);return l?(s=l[2],a=l[3],a=a.split(":"),i=a[1],a=a[0],!(s&&s!==n||a&&a.toLowerCase()!==r.toLowerCase()||(i||a)&&i!==o)):!0},finishLoad:function(e,n,r,o){r=n?t.strip(r):r,f.isBuild&&(h[e]=r),o(r)},load:function(e,n,r,o){if(o&&o.isBuild&&!o.inlineText)return void r();f.isBuild=o&&o.isBuild;var s=t.parseName(e),a=s.moduleName+(s.ext?"."+s.ext:""),i=n.toUrl(a),l=f.useXhr||t.useXhr;return 0===i.indexOf("empty:")?void r():void(!c||l(i,p,u,d)?t.get(i,function(n){t.finishLoad(e,s.strip,n,r)},function(e){r.error&&r.error(e)}):n([a],function(e){t.finishLoad(s.moduleName+"."+s.ext,s.strip,e,r)}))},write:function(e,n,r){if(h.hasOwnProperty(n)){var o=t.jsEscape(h[n]);r.asModule(e+"!"+n,"define(function () { return '"+o+"';});\n")}},writeFile:function(e,n,r,o,s){var a=t.parseName(n),i=a.ext?"."+a.ext:"",l=a.moduleName+i,c=r.toUrl(a.moduleName+i)+".js";t.load(l,r,function(){var n=function(e){return o(c,e)};n.asModule=function(e,t){return o.asModule(e,c,t)},t.write(e,l,n,s)},s)}},"node"===f.env||!f.env&&"undefined"!=typeof process&&process.versions&&process.versions.node&&!process.versions["node-webkit"]?(n=require.nodeRequire("fs"),t.get=function(e,t,r){try{var o=n.readFileSync(e,"utf8");0===o.indexOf("﻿")&&(o=o.substring(1)),t(o)}catch(s){r&&r(s)}}):"xhr"===f.env||!f.env&&t.createXhr()?t.get=function(e,n,r,o){var s,a=t.createXhr();if(a.open("GET",e,!0),o)for(s in o)o.hasOwnProperty(s)&&a.setRequestHeader(s.toLowerCase(),o[s]);f.onXhr&&f.onXhr(a,e),a.onreadystatechange=function(){var t,o;4===a.readyState&&(t=a.status||0,t>399&&600>t?(o=new Error(e+" HTTP status: "+t),o.xhr=a,r&&r(o)):n(a.responseText),f.onXhrComplete&&f.onXhrComplete(a,e))},a.send(null)}:"rhino"===f.env||!f.env&&"undefined"!=typeof Packages&&"undefined"!=typeof java?t.get=function(e,t){var n,r,o="utf-8",s=new java.io.File(e),a=java.lang.System.getProperty("line.separator"),i=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(s),o)),l="";try{for(n=new java.lang.StringBuffer,r=i.readLine(),r&&r.length()&&65279===r.charAt(0)&&(r=r.substring(1)),null!==r&&n.append(r);null!==(r=i.readLine());)n.append(a),n.append(r);l=String(n.toString())}finally{i.close()}t(l)}:("xpconnect"===f.env||!f.env&&"undefined"!=typeof Components&&Components.classes&&Components.interfaces)&&(r=Components.classes,o=Components.interfaces,Components.utils["import"]("resource://gre/modules/FileUtils.jsm"),s="@mozilla.org/windows-registry-key;1"in r,t.get=function(e,t){var n,a,i,l={};s&&(e=e.replace(/\//g,"\\")),i=new FileUtils.File(e);try{n=r["@mozilla.org/network/file-input-stream;1"].createInstance(o.nsIFileInputStream),n.init(i,1,0,!1),a=r["@mozilla.org/intl/converter-input-stream;1"].createInstance(o.nsIConverterInputStream),a.init(n,"utf-8",n.available(),o.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER),a.readString(n.available(),l),a.close(),n.close(),t(l.value)}catch(c){throw new Error((i&&i.path||"")+": "+c)}}),t}),define("json",["requirejs/text"],function(e){var t=Object.create(null);return{load:function(n,r,o,s){e.get(r.toUrl(n),function(e){if(s.isBuild)t[n]=e,o(e);else{try{var r=JSON.parse(e)}catch(a){o.error(a)}o(r)}},o.error,{accept:"application/json"})},write:function(e,n,r){var o=t[n];o&&r('define("'+e+"!"+n+'", function(){ return '+o+";});\n")}}}),define("json!tern/defs/ecma5.json",function(){return{"!name":"ecma5","!define":{"Error.prototype":"Error.prototype"},Infinity:{"!type":"number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Infinity","!doc":"A numeric value representing infinity."},undefined:{"!type":"?","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/undefined","!doc":"The value undefined."},NaN:{"!type":"number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/NaN","!doc":"A value representing Not-A-Number."},Object:{"!type":"fn()",getPrototypeOf:{"!type":"fn(obj: ?) -> ?","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/getPrototypeOf","!doc":"Returns the prototype (i.e. the internal prototype) of the specified object."},create:{"!type":"fn(proto: ?) -> !custom:Object_create","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/create","!doc":"Creates a new object with the specified prototype object and properties."},defineProperty:{"!type":"fn(obj: ?, prop: string, desc: ?) -> !custom:Object_defineProperty","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/defineProperty","!doc":"Defines a new property directly on an object, or modifies an existing property on an object, and returns the object. If you want to see how to use the Object.defineProperty method with a binary-flags-like syntax, see this article."},defineProperties:{"!type":"fn(obj: ?, props: ?) -> !custom:Object_defineProperties","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/defineProperty","!doc":"Defines a new property directly on an object, or modifies an existing property on an object, and returns the object. If you want to see how to use the Object.defineProperty method with a binary-flags-like syntax, see this article."},getOwnPropertyDescriptor:{"!type":"fn(obj: ?, prop: string) -> ?","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptor","!doc":"Returns a property descriptor for an own property (that is, one directly present on an object, not present by dint of being along an object's prototype chain) of a given object."},keys:{"!type":"fn(obj: ?) -> [string]","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/keys","!doc":"Returns an array of a given object's own enumerable properties, in the same order as that provided by a for-in loop (the difference being that a for-in loop enumerates properties in the prototype chain as well)."},getOwnPropertyNames:{"!type":"fn(obj: ?) -> [string]","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/getOwnPropertyNames","!doc":"Returns an array of all properties (enumerable or not) found directly upon a given object."},seal:{"!type":"fn(obj: ?)","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/seal","!doc":"Seals an object, preventing new properties from being added to it and marking all existing properties as non-configurable. Values of present properties can still be changed as long as they are writable."},isSealed:{"!type":"fn(obj: ?) -> bool","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/isSealed","!doc":"Determine if an object is sealed."},freeze:{"!type":"fn(obj: ?) -> !0","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/freeze","!doc":"Freezes an object: that is, prevents new properties from being added to it; prevents existing properties from being removed; and prevents existing properties, or their enumerability, configurability, or writability, from being changed. In essence the object is made effectively immutable. The method returns the object being frozen."},isFrozen:{"!type":"fn(obj: ?) -> bool","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/isFrozen","!doc":"Determine if an object is frozen."},preventExtensions:{"!type":"fn(obj: ?)","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/preventExtensions","!doc":"Prevents new properties from ever being added to an object."},isExtensible:{"!type":"fn(obj: ?) -> bool","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isExtensible","!doc":"The Object.isExtensible() method determines if an object is extensible (whether it can have new properties added to it)."},prototype:{"!stdProto":"Object",toString:{"!type":"fn() -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/toString","!doc":"Returns a string representing the object."},toLocaleString:{"!type":"fn() -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/toLocaleString","!doc":"Returns a string representing the object. This method is meant to be overriden by derived objects for locale-specific purposes."},valueOf:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/valueOf","!doc":"Returns the primitive value of the specified object"},hasOwnProperty:{"!type":"fn(prop: string) -> bool","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/hasOwnProperty","!doc":"Returns a boolean indicating whether the object has the specified property."},propertyIsEnumerable:{"!type":"fn(prop: string) -> bool","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/propertyIsEnumerable","!doc":"Returns a Boolean indicating whether the specified property is enumerable."},isPrototypeOf:{"!type":"fn(obj: ?) -> bool","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isPrototypeOf","!doc":"Tests for an object in another object's prototype chain."}},"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object","!doc":"Creates an object wrapper."},Function:{"!type":"fn(body: string) -> fn()",prototype:{"!stdProto":"Function",apply:{"!type":"fn(this: ?, args: [?])","!effects":["call and return !this this=!0 !1.<i> !1.<i> !1.<i>"],"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Function/apply","!doc":"Calls a function with a given this value and arguments provided as an array (or an array like object)."},call:{"!type":"fn(this: ?, args?: ?) -> !this.!ret","!effects":["call and return !this this=!0 !1 !2 !3 !4"],"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Function/call","!doc":"Calls a function with a given this value and arguments provided individually."},bind:{"!type":"fn(this: ?, args?: ?) -> !custom:Function_bind","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Function/bind","!doc":"Creates a new function that, when called, has its this keyword set to the provided value, with a given sequence of arguments preceding any provided when the new function was called."},prototype:"?"},"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Function","!doc":"Every function in JavaScript is actually a Function object."},Array:{"!type":"fn(size: number) -> !custom:Array_ctor",isArray:{"!type":"fn(value: ?) -> bool","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/isArray","!doc":"Returns true if an object is an array, false if it is not."},prototype:{"!stdProto":"Array",length:{"!type":"number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/length","!doc":"An unsigned, 32-bit integer that specifies the number of elements in an array."},concat:{"!type":"fn(other: [?]) -> !this","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/concat","!doc":"Returns a new array comprised of this array joined with other array(s) and/or value(s)."},join:{"!type":"fn(separator?: string) -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/join","!doc":"Joins all elements of an array into a string."},splice:{"!type":"fn(pos: number, amount: number)","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/splice","!doc":"Changes the content of an array, adding new elements while removing old elements."},pop:{"!type":"fn() -> !this.<i>","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/pop","!doc":"Removes the last element from an array and returns that element."},push:{"!type":"fn(newelt: ?) -> number","!effects":["propagate !0 !this.<i>"],"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/push","!doc":"Mutates an array by appending the given elements and returning the new length of the array."},shift:{"!type":"fn() -> !this.<i>","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/shift","!doc":"Removes the first element from an array and returns that element. This method changes the length of the array."},unshift:{"!type":"fn(newelt: ?) -> number","!effects":["propagate !0 !this.<i>"],"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/unshift","!doc":"Adds one or more elements to the beginning of an array and returns the new length of the array."},slice:{"!type":"fn(from: number, to?: number) -> !this","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/slice","!doc":"Returns a shallow copy of a portion of an array."},reverse:{"!type":"fn()","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/reverse","!doc":"Reverses an array in place.  The first array element becomes the last and the last becomes the first."},sort:{"!type":"fn(compare?: fn(a: ?, b: ?) -> number)","!effects":["call !0 !this.<i> !this.<i>"],"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/sort","!doc":"Sorts the elements of an array in place and returns the array."},indexOf:{"!type":"fn(elt: ?, from?: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/indexOf","!doc":"Returns the first index at which a given element can be found in the array, or -1 if it is not present."},lastIndexOf:{"!type":"fn(elt: ?, from?: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/lastIndexOf","!doc":"Returns the last index at which a given element can be found in the array, or -1 if it is not present. The array is searched backwards, starting at fromIndex."},every:{"!type":"fn(test: fn(elt: ?, i: number) -> bool, context?: ?) -> bool","!effects":["call !0 this=!1 !this.<i> number"],"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/every","!doc":"Tests whether all elements in the array pass the test implemented by the provided function."},some:{"!type":"fn(test: fn(elt: ?, i: number) -> bool, context?: ?) -> bool","!effects":["call !0 this=!1 !this.<i> number"],"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/some","!doc":"Tests whether some element in the array passes the test implemented by the provided function."},filter:{"!type":"fn(test: fn(elt: ?, i: number) -> bool, context?: ?) -> !this","!effects":["call !0 this=!1 !this.<i> number"],"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/filter","!doc":"Creates a new array with all elements that pass the test implemented by the provided function."},forEach:{"!type":"fn(f: fn(elt: ?, i: number), context?: ?)","!effects":["call !0 this=!1 !this.<i> number"],"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/forEach","!doc":"Executes a provided function once per array element."},map:{"!type":"fn(f: fn(elt: ?, i: number) -> ?, context?: ?) -> [!0.!ret]","!effects":["call !0 this=!1 !this.<i> number"],"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/map","!doc":"Creates a new array with the results of calling a provided function on every element in this array."},reduce:{"!type":"fn(combine: fn(sum: ?, elt: ?, i: number) -> ?, init?: ?) -> !0.!ret","!effects":["call !0 !1 !this.<i> number"],"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/Reduce","!doc":"Apply a function against an accumulator and each value of the array (from left-to-right) as to reduce it to a single value."},reduceRight:{"!type":"fn(combine: fn(sum: ?, elt: ?, i: number) -> ?, init?: ?) -> !0.!ret","!effects":["call !0 !1 !this.<i> number"],"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/ReduceRight","!doc":"Apply a function simultaneously against two values of the array (from right-to-left) as to reduce it to a single value."}},"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array","!doc":"The JavaScript Array global object is a constructor for arrays, which are high-level, list-like objects."},String:{"!type":"fn(value: ?) -> string",fromCharCode:{"!type":"fn(code: number) -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/fromCharCode","!doc":"Returns a string created by using the specified sequence of Unicode values."},prototype:{"!stdProto":"String",length:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/JavaScript/Reference/Global_Objects/String/length","!doc":"Represents the length of a string."},"<i>":"string",charAt:{"!type":"fn(i: number) -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/charAt","!doc":"Returns the specified character from a string."},charCodeAt:{"!type":"fn(i: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/charCodeAt","!doc":"Returns the numeric Unicode value of the character at the given index (except for unicode codepoints > 0x10000)."},indexOf:{"!type":"fn(char: string, from?: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/indexOf","!doc":"Returns the index within the calling String object of the first occurrence of the specified value, starting the search at fromIndex,\nreturns -1 if the value is not found."},lastIndexOf:{"!type":"fn(char: string, from?: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/lastIndexOf","!doc":"Returns the index within the calling String object of the last occurrence of the specified value, or -1 if not found. The calling string is searched backward, starting at fromIndex."},substring:{"!type":"fn(from: number, to?: number) -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/substring","!doc":"Returns a subset of a string between one index and another, or through the end of the string."},substr:{"!type":"fn(from: number, length?: number) -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/substr","!doc":"Returns the characters in a string beginning at the specified location through the specified number of characters."},slice:{"!type":"fn(from: number, to?: number) -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/slice","!doc":"Extracts a section of a string and returns a new string."},trim:{"!type":"fn() -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/Trim","!doc":"Removes whitespace from both ends of the string."},toUpperCase:{"!type":"fn() -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/toUpperCase","!doc":"Returns the calling string value converted to uppercase."},toLowerCase:{"!type":"fn() -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/toLowerCase","!doc":"Returns the calling string value converted to lowercase."},toLocaleUpperCase:{"!type":"fn() -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/toLocaleUpperCase","!doc":"Returns the calling string value converted to upper case, according to any locale-specific case mappings."},toLocaleLowerCase:{"!type":"fn() -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/toLocaleLowerCase","!doc":"Returns the calling string value converted to lower case, according to any locale-specific case mappings."},split:{"!type":"fn(pattern: string) -> [string]","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/split","!doc":"Splits a String object into an array of strings by separating the string into substrings."},concat:{"!type":"fn(other: string) -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/concat","!doc":"Combines the text of two or more strings and returns a new string."},localeCompare:{"!type":"fn(other: string) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/localeCompare","!doc":"Returns a number indicating whether a reference string comes before or after or is the same as the given string in sort order."},match:{"!type":"fn(pattern: +RegExp) -> [string]","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/match","!doc":"Used to retrieve the matches when matching a string against a regular expression."},replace:{"!type":"fn(pattern: string|+RegExp, replacement: string) -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/replace","!doc":"Returns a new string with some or all matches of a pattern replaced by a replacement.  The pattern can be a string or a RegExp, and the replacement can be a string or a function to be called for each match."},search:{"!type":"fn(pattern: +RegExp) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/search","!doc":"Executes the search for a match between a regular expression and this String object."}},"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String","!doc":"The String global object is a constructor for strings, or a sequence of characters."},Number:{"!type":"fn(value: ?) -> number",MAX_VALUE:{"!type":"number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number/MAX_VALUE","!doc":"The maximum numeric value representable in JavaScript."},MIN_VALUE:{"!type":"number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number/MIN_VALUE","!doc":"The smallest positive numeric value representable in JavaScript."},POSITIVE_INFINITY:{"!type":"number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number/POSITIVE_INFINITY","!doc":"A value representing the positive Infinity value."},NEGATIVE_INFINITY:{"!type":"number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number/NEGATIVE_INFINITY","!doc":"A value representing the negative Infinity value."},prototype:{"!stdProto":"Number",toString:{"!type":"fn(radix?: number) -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number/toString","!doc":"Returns a string representing the specified Number object"},toFixed:{"!type":"fn(digits: number) -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number/toFixed","!doc":"Formats a number using fixed-point notation"},toExponential:{"!type":"fn(digits: number) -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number/toExponential","!doc":"Returns a string representing the Number object in exponential notation"},toPrecision:{"!type":"fn(digits: number) -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number/toPrecision","!doc":"The toPrecision() method returns a string representing the number to the specified precision."}},"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number","!doc":"The Number JavaScript object is a wrapper object allowing you to work with numerical values. A Number object is created using the Number() constructor."},Boolean:{"!type":"fn(value: ?) -> bool",prototype:{"!stdProto":"Boolean"},"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Boolean","!doc":"The Boolean object is an object wrapper for a boolean value."},RegExp:{"!type":"fn(source: string, flags?: string)",prototype:{"!stdProto":"RegExp",exec:{"!type":"fn(input: string) -> [string]","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/RegExp/exec","!doc":"Executes a search for a match in a specified string. Returns a result array, or null."},test:{"!type":"fn(input: string) -> bool","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/RegExp/test","!doc":"Executes the search for a match between a regular expression and a specified string. Returns true or false."},global:{"!type":"bool","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/RegExp","!doc":"Creates a regular expression object for matching text with a pattern."},ignoreCase:{"!type":"bool","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/RegExp","!doc":"Creates a regular expression object for matching text with a pattern."},multiline:{"!type":"bool","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/RegExp/multiline","!doc":"Reflects whether or not to search in strings across multiple lines.\n"},source:{"!type":"string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/RegExp/source","!doc":"A read-only property that contains the text of the pattern, excluding the forward slashes.\n"},lastIndex:{"!type":"number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/RegExp/lastIndex","!doc":"A read/write integer property that specifies the index at which to start the next match."}},"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/RegExp","!doc":"Creates a regular expression object for matching text with a pattern."},Date:{"!type":"fn(ms: number)",parse:{"!type":"fn(source: string) -> +Date","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/parse","!doc":"Parses a string representation of a date, and returns the number of milliseconds since January 1, 1970, 00:00:00 UTC."},UTC:{"!type":"fn(year: number, month: number, date: number, hour?: number, min?: number, sec?: number, ms?: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/UTC","!doc":"Accepts the same parameters as the longest form of the constructor, and returns the number of milliseconds in a Date object since January 1, 1970, 00:00:00, universal time."},now:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/now","!doc":"Returns the number of milliseconds elapsed since 1 January 1970 00:00:00 UTC."},prototype:{toUTCString:{"!type":"fn() -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/toUTCString","!doc":"Converts a date to a string, using the universal time convention."},toISOString:{"!type":"fn() -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/toISOString","!doc":"JavaScript provides a direct way to convert a date object into a string in ISO format, the ISO 8601 Extended Format."},toDateString:{"!type":"fn() -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/toDateString","!doc":"Returns the date portion of a Date object in human readable form in American English."},toTimeString:{"!type":"fn() -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/toTimeString","!doc":"Returns the time portion of a Date object in human readable form in American English."},toLocaleDateString:{"!type":"fn() -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/toLocaleDateString","!doc":"Converts a date to a string, returning the \"date\" portion using the operating system's locale's conventions.\n"},toLocaleTimeString:{"!type":"fn() -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/toLocaleTimeString","!doc":'Converts a date to a string, returning the "time" portion using the current locale\'s conventions.'},getTime:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getTime","!doc":"Returns the numeric value corresponding to the time for the specified date according to universal time."},getFullYear:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getFullYear","!doc":"Returns the year of the specified date according to local time."},getYear:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getYear","!doc":"Returns the year in the specified date according to local time."},getMonth:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getMonth","!doc":"Returns the month in the specified date according to local time."},getUTCMonth:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getUTCMonth","!doc":"Returns the month of the specified date according to universal time.\n"},getDate:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getDate","!doc":"Returns the day of the month for the specified date according to local time."},getUTCDate:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getUTCDate","!doc":"Returns the day (date) of the month in the specified date according to universal time.\n"},getDay:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getDay","!doc":"Returns the day of the week for the specified date according to local time."},getUTCDay:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getUTCDay","!doc":"Returns the day of the week in the specified date according to universal time.\n"},getHours:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getHours","!doc":"Returns the hour for the specified date according to local time."},getUTCHours:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getUTCHours","!doc":"Returns the hours in the specified date according to universal time.\n"},getMinutes:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getMinutes","!doc":"Returns the minutes in the specified date according to local time."},getUTCMinutes:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date","!doc":"Creates JavaScript Date instances which let you work with dates and times."},getSeconds:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getSeconds","!doc":"Returns the seconds in the specified date according to local time."},getUTCSeconds:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getUTCSeconds","!doc":"Returns the seconds in the specified date according to universal time.\n"},getMilliseconds:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getMilliseconds","!doc":"Returns the milliseconds in the specified date according to local time."},getUTCMilliseconds:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getUTCMilliseconds","!doc":"Returns the milliseconds in the specified date according to universal time.\n"},getTimezoneOffset:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/getTimezoneOffset","!doc":"Returns the time-zone offset from UTC, in minutes, for the current locale."},setTime:{"!type":"fn(date: +Date) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/setTime","!doc":"Sets the Date object to the time represented by a number of milliseconds since January 1, 1970, 00:00:00 UTC.\n"},setFullYear:{"!type":"fn(year: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/setFullYear","!doc":"Sets the full year for a specified date according to local time.\n"},setUTCFullYear:{"!type":"fn(year: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/setUTCFullYear","!doc":"Sets the full year for a specified date according to universal time.\n"},setMonth:{"!type":"fn(month: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/setMonth","!doc":"Set the month for a specified date according to local time."},setUTCMonth:{"!type":"fn(month: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/setUTCMonth","!doc":"Sets the month for a specified date according to universal time.\n"},setDate:{"!type":"fn(day: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/setDate","!doc":"Sets the day of the month for a specified date according to local time."},setUTCDate:{"!type":"fn(day: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/setUTCDate","!doc":"Sets the day of the month for a specified date according to universal time.\n"},setHours:{"!type":"fn(hour: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/setHours","!doc":"Sets the hours for a specified date according to local time, and returns the number of milliseconds since 1 January 1970 00:00:00 UTC until the time represented by the updated Date instance."},setUTCHours:{"!type":"fn(hour: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/setUTCHours","!doc":"Sets the hour for a specified date according to universal time.\n"},setMinutes:{"!type":"fn(min: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/setMinutes","!doc":"Sets the minutes for a specified date according to local time."},setUTCMinutes:{"!type":"fn(min: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/setUTCMinutes","!doc":"Sets the minutes for a specified date according to universal time.\n"},setSeconds:{"!type":"fn(sec: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/setSeconds","!doc":"Sets the seconds for a specified date according to local time."},setUTCSeconds:{"!type":"fn(sec: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/setUTCSeconds","!doc":"Sets the seconds for a specified date according to universal time.\n"},setMilliseconds:{"!type":"fn(ms: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/setMilliseconds","!doc":"Sets the milliseconds for a specified date according to local time.\n"},setUTCMilliseconds:{"!type":"fn(ms: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/setUTCMilliseconds","!doc":"Sets the milliseconds for a specified date according to universal time.\n"}},"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date","!doc":"Creates JavaScript Date instances which let you work with dates and times."},Error:{"!type":"fn(message: string)",prototype:{name:{"!type":"string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Error/name","!doc":"A name for the type of error."},message:{"!type":"string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Error/message","!doc":"A human-readable description of the error."}},"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Error","!doc":"Creates an error object."},SyntaxError:{"!type":"fn(message: string)",prototype:"Error.prototype","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/SyntaxError","!doc":"Represents an error when trying to interpret syntactically invalid code."},ReferenceError:{"!type":"fn(message: string)",prototype:"Error.prototype","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/ReferenceError","!doc":"Represents an error when a non-existent variable is referenced."},URIError:{"!type":"fn(message: string)",prototype:"Error.prototype","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/URIError","!doc":"Represents an error when a malformed URI is encountered."},EvalError:{"!type":"fn(message: string)",prototype:"Error.prototype","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/EvalError","!doc":"Represents an error regarding the eval function."},RangeError:{"!type":"fn(message: string)",prototype:"Error.prototype","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/RangeError","!doc":"Represents an error when a number is not within the correct range allowed."},TypeError:{"!type":"fn(message: string)",prototype:"Error.prototype","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/TypeError","!doc":"Represents an error an error when a value is not of the expected type."},parseInt:{"!type":"fn(string: string, radix?: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/parseInt","!doc":"Parses a string argument and returns an integer of the specified radix or base."},parseFloat:{"!type":"fn(string: string) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/parseFloat","!doc":"Parses a string argument and returns a floating point number."},isNaN:{"!type":"fn(value: number) -> bool","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/isNaN","!doc":"Determines whether a value is NaN or not. Be careful, this function is broken. You may be interested in ECMAScript 6 Number.isNaN."},isFinite:{"!type":"fn(value: number) -> bool","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/isFinite","!doc":"Determines whether the passed value is a finite number."},eval:{"!type":"fn(code: string) -> ?","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/eval","!doc":"Evaluates JavaScript code represented as a string."},encodeURI:{"!type":"fn(uri: string) -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/encodeURI","!doc":'Encodes a Uniform Resource Identifier (URI) by replacing each instance of certain characters by one, two, three, or four escape sequences representing the UTF-8 encoding of the character (will only be four escape sequences for characters composed of two "surrogate" characters).'},encodeURIComponent:{"!type":"fn(uri: string) -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/encodeURIComponent","!doc":'Encodes a Uniform Resource Identifier (URI) component by replacing each instance of certain characters by one, two, three, or four escape sequences representing the UTF-8 encoding of the character (will only be four escape sequences for characters composed of two "surrogate" characters).'},decodeURI:{"!type":"fn(uri: string) -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/decodeURI","!doc":"Decodes a Uniform Resource Identifier (URI) previously created by encodeURI or by a similar routine."},decodeURIComponent:{"!type":"fn(uri: string) -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/decodeURIComponent","!doc":"Decodes a Uniform Resource Identifier (URI) component previously created by encodeURIComponent or by a similar routine."},Math:{E:{"!type":"number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/E","!doc":"The base of natural logarithms, e, approximately 2.718."},LN2:{"!type":"number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/LN2","!doc":"The natural logarithm of 2, approximately 0.693."},LN10:{"!type":"number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/LN10","!doc":"The natural logarithm of 10, approximately 2.302."},LOG2E:{"!type":"number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/LOG2E","!doc":"The base 2 logarithm of E (approximately 1.442)."},LOG10E:{"!type":"number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/LOG10E","!doc":"The base 10 logarithm of E (approximately 0.434)."},SQRT1_2:{"!type":"number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/SQRT1_2","!doc":"The square root of 1/2; equivalently, 1 over the square root of 2, approximately 0.707."},SQRT2:{"!type":"number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/SQRT2","!doc":"The square root of 2, approximately 1.414."},PI:{"!type":"number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/PI","!doc":"The ratio of the circumference of a circle to its diameter, approximately 3.14159."},abs:{"!type":"fn(number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/abs","!doc":"Returns the absolute value of a number."},cos:{"!type":"fn(number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/cos","!doc":"Returns the cosine of a number."},sin:{"!type":"fn(number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/sin","!doc":"Returns the sine of a number."},tan:{"!type":"fn(number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/tan","!doc":"Returns the tangent of a number."},acos:{"!type":"fn(number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/acos","!doc":"Returns the arccosine (in radians) of a number."},asin:{"!type":"fn(number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/asin","!doc":"Returns the arcsine (in radians) of a number."},atan:{"!type":"fn(number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/atan","!doc":"Returns the arctangent (in radians) of a number."},atan2:{"!type":"fn(y: number, x: number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/atan2","!doc":"Returns the arctangent of the quotient of its arguments."},ceil:{"!type":"fn(number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/ceil","!doc":"Returns the smallest integer greater than or equal to a number."},floor:{"!type":"fn(number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/floor","!doc":"Returns the largest integer less than or equal to a number."},round:{"!type":"fn(number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/round","!doc":"Returns the value of a number rounded to the nearest integer."},exp:{"!type":"fn(number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/exp","!doc":"Returns Ex, where x is the argument, and E is Euler's constant, the base of the natural logarithms."},log:{"!type":"fn(number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/log","!doc":"Returns the natural logarithm (base E) of a number."},sqrt:{"!type":"fn(number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/sqrt","!doc":"Returns the square root of a number."},pow:{"!type":"fn(number, number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/pow","!doc":"Returns base to the exponent power, that is, baseexponent."},max:{"!type":"fn(number, number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/max","!doc":"Returns the largest of zero or more numbers."},min:{"!type":"fn(number, number) -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/min","!doc":"Returns the smallest of zero or more numbers."},random:{"!type":"fn() -> number","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/random","!doc":"Returns a floating-point, pseudo-random number in the range [0, 1) that is, from 0 (inclusive) up to but not including 1 (exclusive), which you can then scale to your desired range."},"!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math","!doc":"A built-in object that has properties and methods for mathematical constants and functions."},JSON:{parse:{"!type":"fn(json: string) -> ?","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/JSON/parse","!doc":"Parse a string as JSON, optionally transforming the value produced by parsing."},stringify:{"!type":"fn(value: ?) -> string","!url":"https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/JSON/stringify","!doc":"Convert a value to JSON, optionally replacing values if a replacer function is specified, or optionally including only the specified properties if a replacer array is specified."},"!url":"https://developer.mozilla.org/en-US/docs/JSON","!doc":"JSON (JavaScript Object Notation) is a data-interchange format.  It closely resembles a subset of JavaScript syntax, although it is not a strict subset. (See JSON in the JavaScript Reference for full details.)  It is useful when writing any kind of JavaScript-based application, including websites and browser extensions.  For example, you might store user information in JSON format in a cookie, or you might store extension preferences in JSON in a string-valued browser preference."}}
}),define("json!tern/defs/ecma6.json",function(){return{"!name":"ecma6","!define":{"Promise.prototype":{"catch":{"!doc":"The catch() method returns a Promise and deals with rejected cases only. It behaves the same as calling Promise.prototype.then(undefined, onRejected).","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/catch","!type":"fn(onRejected: fn(reason: ?))"},then:{"!doc":"The then() method returns a Promise. It takes two arguments, both are callback functions for the success and failure cases of the Promise.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/then","!type":"fn(onFulfilled: fn(value: ?), onRejected: fn(reason: ?))","!effects":["call !0 !this.value"]}},promiseReject:{"!type":"fn(reason: ?)"}},Array:{from:{"!type":"fn(arrayLike: [], mapFn?: fn(), thisArg?: ?) -> !custom:Array_ctor","!doc":"The Array.from() method creates a new Array instance from an array-like or iterable object.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from"},of:{"!type":"fn(elementN: ?) -> !custom:Array_ctor","!doc":"The Array.of() method creates a new Array instance with a variable number of arguments, regardless of number or type of the arguments.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/of"},prototype:{copyWithin:{"!type":"fn(target: number, start: number, end?: number) -> !custom:Array_ctor","!doc":"The copyWithin() method copies the sequence of array elements within the array to the position starting at target. The copy is taken from the index positions of the second and third arguments start and end. The end argument is optional and defaults to the length of the array.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/copyWithin"},entries:{"!type":"fn() -> TODO_ITERATOR","!doc":"The entries() method returns a new Array Iterator object that contains the key/value pairs for each index in the array.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/entries"},fill:{"!type":"fn(value: ?, start?: number, end?: number)","!doc":"The fill() method fills all the elements of an array from a start index to an end index with a static value.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/fill"},find:{"!type":"fn(callback: fn(element: ?, index: number, array: []), thisArg?: ?) -> ?","!doc":"The find() method returns a value in the array, if an element in the array satisfies the provided testing function. Otherwise undefined is returned.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find"},findIndex:{"!type":"fn(callback: fn(element: ?, index: number, array: []), thisArg?: ?) -> number","!doc":"The findIndex() method returns an index in the array, if an element in the array satisfies the provided testing function. Otherwise -1 is returned.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex"},keys:{"!type":"fn() -> !custom:Array_ctor","!doc":"The keys() method returns a new Array Iterator that contains the keys for each index in the array.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/keys"},values:{"!type":"fn() -> !custom:Array_ctor","!doc":"The values() method returns a new Array Iterator object that contains the values for each index in the array.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/values"}}},ArrayBuffer:{"!type":"fn(length: number)","!doc":"The ArrayBuffer object is used to represent a generic, fixed-length raw binary data buffer. You can not directly manipulate the contents of an ArrayBuffer; instead, you create one of the typed array objects or a DataView object which represents the buffer in a specific format, and use that to read and write the contents of the buffer.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer",isView:{"!type":"fn(arg: ?) -> bool","!doc":"The ArrayBuffer.isView() method returns true if arg is a view one of the ArrayBuffer views, such as typed array objects or a DataView; false otherwise.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView"},transfer:{"!type":"fn(oldBuffer: ?, newByteLength: ?)","!doc":"The static ArrayBuffer.transfer() method returns a new ArrayBuffer whose contents are taken from the oldBuffer's data and then is either truncated or zero-extended by newByteLength. If newByteLength is undefined, the byteLength of the oldBuffer is used. This operation leaves oldBuffer in a detached state.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/transfer"},prototype:{byteLength:{"!type":"number","!doc":"The byteLength accessor property represents the length of an ArrayBuffer in bytes.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/byteLength"},slice:{"!type":"fn(begin: number, end?: number) -> +ArrayBuffer","!doc":"The slice() method returns a new ArrayBuffer whose contents are a copy of this ArrayBuffer's bytes from begin, inclusive, up to end, exclusive.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/slice"}}},DataView:{"!type":"fn(buffer: +ArrayBuffer, byteOffset?: number, byteLength?: number)","!doc":"The DataView view provides a low-level interface for reading data from and writing it to an ArrayBuffer.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView",prototype:{buffer:{"!type":"+ArrayBuffer","!doc":"The buffer accessor property represents the ArrayBuffer referenced by the DataView at construction time.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/buffer"},byteLength:{"!type":"number","!doc":"The byteLength accessor property represents the length (in bytes) of this view from the start of its ArrayBuffer.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/byteLength"},byteOffset:{"!type":"number","!doc":"The byteOffset accessor property represents the offset (in bytes) of this view from the start of its ArrayBuffer.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/byteOffset"},getFloat32:{"!type":"fn(byteOffset: number, littleEndian?: bool) -> number","!doc":"The getFloat32() method gets a signed 32-bit integer (float) at the specified byte offset from the start of the DataView.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getFloat32"},getFloat64:{"!type":"fn(byteOffset: number, littleEndian?: bool) -> number","!doc":"The getFloat64() method gets a signed 64-bit float (double) at the specified byte offset from the start of the DataView.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getFloat64"},getInt16:{"!type":"fn(byteOffset: number, littleEndian?: bool) -> number","!doc":"The getInt16() method gets a signed 16-bit integer (short) at the specified byte offset from the start of the DataView.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getInt16"},getInt32:{"!type":"fn(byteOffset: number, littleEndian?: bool) -> number","!doc":"The getInt32() method gets a signed 32-bit integer (long) at the specified byte offset from the start of the DataView.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getInt32"},getInt8:{"!type":"fn(byteOffset: number, littleEndian?: bool) -> number","!doc":"The getInt8() method gets a signed 8-bit integer (byte) at the specified byte offset from the start of the DataView.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getInt8"},getUint16:{"!type":"fn(byteOffset: number, littleEndian?: bool) -> number","!doc":"The getUint16() method gets an unsigned 16-bit integer (unsigned short) at the specified byte offset from the start of the DataView.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getUint16"},getUint32:{"!type":"fn(byteOffset: number, littleEndian?: bool) -> number","!doc":"The getUint32() method gets an unsigned 32-bit integer (unsigned long) at the specified byte offset from the start of the DataView.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getUint32"},getUint8:{"!type":"fn(byteOffset: number) -> number","!doc":"The getUint8() method gets an unsigned 8-bit integer (unsigned byte) at the specified byte offset from the start of the DataView.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/getUint8"},setFloat32:{"!type":"fn(byteOffset: number, value: number, littleEndian?: bool)","!doc":"The setFloat32() method stores a signed 32-bit integer (float) value at the specified byte offset from the start of the DataView.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setFloat32"},setFloat64:{"!type":"fn(byteOffset: number, value: number, littleEndian?: bool)","!doc":"The setFloat64() method stores a signed 64-bit integer (double) value at the specified byte offset from the start of the DataView.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setFloat64"},setInt16:{"!type":"fn(byteOffset: number, value: number, littleEndian?: bool)","!doc":"The setInt16() method stores a signed 16-bit integer (short) value at the specified byte offset from the start of the DataView.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setInt16"},setInt32:{"!type":"fn(byteOffset: number, value: number, littleEndian?: bool)","!doc":"The setInt32() method stores a signed 32-bit integer (long) value at the specified byte offset from the start of the DataView.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setInt32"},setInt8:{"!type":"fn(byteOffset: number, value: number)","!doc":"The setInt8() method stores a signed 8-bit integer (byte) value at the specified byte offset from the start of the DataView.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setInt8"},setUint16:{"!type":"fn(byteOffset: number, value: number, littleEndian?: bool)","!doc":"The setUint16() method stores an unsigned 16-bit integer (unsigned short) value at the specified byte offset from the start of the DataView.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setUint16"},setUint32:{"!type":"fn(byteOffset: number, value: number, littleEndian?: bool)","!doc":"The setUint32() method stores an unsigned 32-bit integer (unsigned long) value at the specified byte offset from the start of the DataView.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setUint32"},setUint8:{"!type":"fn(byteOffset: number, value: number)","!doc":"The setUint8() method stores an unsigned 8-bit integer (byte) value at the specified byte offset from the start of the DataView.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/setUint8"}}},Float32Array:{"!type":"fn(length: number)","!doc":"The Float32Array typed array represents an array of 32-bit floating point numbers (corresponding to the C float data type) in the platform byte order. If control over byte order is needed, use DataView instead. The contents are initialized to 0. Once established, you can reference elements in the array using the object's methods, or using standard array index syntax (that is, using bracket notation).","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array",prototype:{"!proto":"TypedArray.prototype"},length:"TypedArray.length",BYTES_PER_ELEMENT:"TypedArray.BYTES_PER_ELEMENT",name:"TypedArray.name",from:"TypedArray.from",of:"TypedArray.of"},Float64Array:{"!type":"fn(length: number)","!doc":"The Float64Array typed array represents an array of 64-bit floating point numbers (corresponding to the C double data type) in the platform byte order. If control over byte order is needed, use DataView instead. The contents are initialized to 0. Once established, you can reference elements in the array using the object's methods, or using standard array index syntax (that is, using bracket notation).","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array",prototype:{"!proto":"TypedArray.prototype"},length:"TypedArray.length",BYTES_PER_ELEMENT:"TypedArray.BYTES_PER_ELEMENT",name:"TypedArray.name",from:"TypedArray.from",of:"TypedArray.of"},Int16Array:{"!type":"fn(length: number)","!doc":"The Int16Array typed array represents an array of twos-complement 16-bit signed integers in the platform byte order. If control over byte order is needed, use DataView instead. The contents are initialized to 0. Once established, you can reference elements in the array using the object's methods, or using standard array index syntax (that is, using bracket notation).","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array",prototype:{"!proto":"TypedArray.prototype"},length:"TypedArray.length",BYTES_PER_ELEMENT:"TypedArray.BYTES_PER_ELEMENT",name:"TypedArray.name",from:"TypedArray.from",of:"TypedArray.of"},Int32Array:{"!type":"fn(length: number)","!doc":"The Int32Array typed array represents an array of twos-complement 32-bit signed integers in the platform byte order. If control over byte order is needed, use DataView instead. The contents are initialized to 0. Once established, you can reference elements in the array using the object's methods, or using standard array index syntax (that is, using bracket notation).","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array",prototype:{"!proto":"TypedArray.prototype"},length:"TypedArray.length",BYTES_PER_ELEMENT:"TypedArray.BYTES_PER_ELEMENT",name:"TypedArray.name",from:"TypedArray.from",of:"TypedArray.of"},Int8Array:{"!type":"fn(length: number)","!doc":"The Int8Array typed array represents an array of twos-complement 8-bit signed integers. The contents are initialized to 0. Once established, you can reference elements in the array using the object's methods, or using standard array index syntax (that is, using bracket notation).","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array",prototype:{"!proto":"TypedArray.prototype"},length:"TypedArray.length",BYTES_PER_ELEMENT:"TypedArray.BYTES_PER_ELEMENT",name:"TypedArray.name",from:"TypedArray.from",of:"TypedArray.of"},Map:{"!type":"fn(iterable?: [])","!doc":"The Map object is a simple key/value map. Any value (both objects and primitive values) may be used as either a key or a value.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map",prototype:{clear:{"!type":"fn()","!doc":"The clear() method removes all elements from a Map object.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/clear"},"delete":{"!type":"fn(key: ?)","!doc":"The delete() method removes the specified element from a Map object.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/delete"},entries:{"!type":"fn() -> TODO_ITERATOR","!doc":"The entries() method returns a new Iterator object that contains the [key, value] pairs for each element in the Map object in insertion order.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/entries"},forEach:{"!type":"fn(callback: fn(value: ?, key: ?, map: +Map), thisArg?: ?)","!effects":["call !0 this=!1 !this.<i> number !this"],"!doc":"The forEach() method executes a provided function once per each key/value pair in the Map object, in insertion order.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/forEach"},get:{"!type":"fn(key: ?) -> !this.<i>","!doc":"The get() method returns a specified element from a Map object.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/get"},has:{"!type":"fn(key: ?) -> bool","!doc":"The has() method returns a boolean indicating whether an element with the specified key exists or not.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/has"},keys:{"!type":"fn() -> TODO_ITERATOR","!doc":"The keys() method returns a new Iterator object that contains the keys for each element in the Map object in insertion order.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/keys"},set:{"!type":"fn(key: ?, value: ?) -> !this","!doc":"The set() method adds a new element with a specified key and value to a Map object.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/set"},size:{"!type":"number","!doc":"The size accessor property returns the number of elements in a Map object.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/size"},values:{"!type":"fn() -> TODO_ITERATOR","!doc":"The values() method returns a new Iterator object that contains the values for each element in the Map object in insertion order.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/values"},"prototype[@@iterator]":{"!type":"fn()","!doc":"The initial value of the @@iterator property is the same function object as the initial value of the entries property.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/@@iterator"}}},Math:{acosh:{"!type":"fn(x: number) -> number","!doc":"The Math.acosh() function returns the hyperbolic arc-cosine of a number, that is","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/acosh"},asinh:{"!type":"fn(x: number) -> number","!doc":"The Math.asinh() function returns the hyperbolic arcsine of a number, that is","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/asinh"},atanh:{"!type":"fn(x: number) -> number","!doc":"The Math.atanh() function returns the hyperbolic arctangent of a number, that is","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/atanh"},cbrt:{"!type":"fn(x: number) -> number","!doc":"The Math.cbrt() function returns the cube root of a number, that is","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/cbrt"},clz32:{"!type":"fn(x: number) -> number","!doc":"The Math.clz32() function returns the number of leading zero bits in the 32-bit binary representation of a number.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/clz32"},cosh:{"!type":"fn(x: number) -> number","!doc":"The Math.cosh() function returns the hyperbolic cosine of a number, that can be expressed using the constant e:","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/cosh"},expm1:{"!type":"fn(x: number) -> number","!doc":"The Math.expm1() function returns ex - 1, where x is the argument, and e the base of the natural logarithms.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/expm1"},fround:{"!type":"fn(x: number) -> number","!doc":"The Math.fround() function returns the nearest single precision float representation of a number.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/fround"},hypot:{"!type":"fn(value: number) -> number","!doc":"The Math.hypot() function returns the square root of the sum of squares of its arguments, that is","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/hypot"},imul:{"!type":"fn(a: number, b: number) -> number","!doc":"The Math.imul() function returns the result of the C-like 32-bit multiplication of the two parameters.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/imul"},log10:{"!type":"fn(x: number) -> number","!doc":"The Math.log10() function returns the base 10 logarithm of a number, that is","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/log10"},log1p:{"!type":"fn(x: number) -> number","!doc":"The Math.log1p() function returns the natural logarithm (base e) of 1 + a number, that is","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/log1p"},log2:{"!type":"fn(x: number) -> number","!doc":"The Math.log2() function returns the base 2 logarithm of a number, that is","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/log2"},sign:{"!type":"fn(x: number) -> number","!doc":"The Math.sign() function returns the sign of a number, indicating whether the number is positive, negative or zero.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sign"},sinh:{"!type":"fn(x: number) -> number","!doc":"The Math.sinh() function returns the hyperbolic sine of a number, that can be expressed using the constant e:","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sinh"},tanh:{"!type":"fn(x: number) -> number","!doc":"The Math.tanh() function returns the hyperbolic tangent of a number, that is","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/tanh"},trunc:{"!type":"fn(x: number) -> number","!doc":"The Math.trunc() function returns the integral part of a number by removing any fractional digits. It does not round any numbers. The function can be expressed with the floor() and ceil() function:","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/trunc"}},Number:{EPSILON:{"!type":"number","!doc":"The Number.EPSILON property represents the difference between one and the smallest value greater than one that can be represented as a Number.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/EPSILON"},MAX_SAFE_INTEGER:{"!type":"number","!doc":"The Number.MAX_SAFE_INTEGER constant represents the maximum safe integer in JavaScript (253 - 1).","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER"},MIN_SAFE_INTEGER:{"!type":"number","!doc":"The Number.MIN_SAFE_INTEGER constant represents the minimum safe integer in JavaScript (-(253 - 1)).","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MIN_SAFE_INTEGER"},isFinite:{"!type":"fn(testValue: ?) -> bool","!doc":"The Number.isFinite() method determines whether the passed value is finite.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isFinite"},isInteger:{"!type":"fn(testValue: ?) -> bool","!doc":"The Number.isInteger() method determines whether the passed value is an integer.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isInteger"},isNaN:{"!type":"fn(testValue: ?) -> bool","!doc":"The Number.isNaN() method determines whether the passed value is NaN. More robust version of the original global isNaN().","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isNaN"},isSafeInteger:{"!type":"fn(testValue: ?) -> bool","!doc":"The Number.isSafeInteger() method determines whether the provided value is a number that is a safe integer. A safe integer is an integer that","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger"},parseFloat:{"!type":"fn(string: string) -> number","!doc":"The Number.parseFloat() method parses a string argument and returns a floating point number. This method behaves identically to the global function parseFloat() and is part of ECMAScript 6 (its purpose is modularization of globals).","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/parseFloat"},parseInt:{"!type":"fn(string: string, radix?: number) -> number","!doc":"The Number.parseInt() method parses a string argument and returns an integer of the specified radix or base. This method behaves identically to the global function parseInt() and is part of ECMAScript 6 (its purpose is modularization of globals).","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/parseInt"}},Object:{assign:{"!type":"fn(target: ?, sources: ?) -> ?","!doc":"The Object.assign() method is used to copy the values of all enumerable own properties from one or more source objects to a target object. It will return the target object.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign"},getOwnPropertySymbols:{"!type":"fn(obj: ?) -> [?]","!doc":"The Object.getOwnPropertySymbols() method returns an array of all symbol properties found directly upon a given object.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertySymbols"},is:{"!type":"fn(value1: ?, value2: ?) -> bool","!doc":"The Object.is() method determines whether two values are the same value.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is"},setPrototypeOf:{"!type":"fn(obj: ?, prototype: ?)","!doc":"The Object.setPrototype() method sets the prototype (i.e., the internal [[Prototype]] property) of a specified object to another object or null.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/setPrototypeOf"}},Promise:{"!type":"fn(executor: fn(resolve: fn(value: ?), reject: promiseReject)) -> !custom:Promise_ctor","!doc":"The Promise object is used for deferred and asynchronous computations. A Promise is in one of the three states:","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise",all:{"!type":"fn(iterable: [+Promise]) -> !0.<i>","!doc":"The Promise.all(iterable) method returns a promise that resolves when all of the promises in the iterable argument have resolved.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/all"},race:{"!type":"fn(iterable: [+Promise]) -> !0.<i>","!doc":"The Promise.race(iterable) method returns a promise that resolves or rejects as soon as one of the promises in the iterable resolves or rejects, with the value or reason from that promise.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/race"},reject:{"!type":"fn(reason: ?) -> !this","!doc":"The Promise.reject(reason) method returns a Promise object that is rejected with the given reason.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/reject"},resolve:{"!type":"fn(value: ?) -> +Promise[value=!0]","!doc":"The Promise.resolve(value) method returns a Promise object that is resolved with the given value. If the value is a thenable (i.e. has a then method), the returned promise will 'follow' that thenable, adopting its eventual state; otherwise the returned promise will be fulfilled with the value.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/resolve"},prototype:"Promise.prototype"},Proxy:{"!type":"fn(target: ?, handler: ?)","!doc":"The Proxy object is used to define the custom behavior in JavaScript fundamental operation (e.g. property lookup, assignment, enumeration, function invocation, etc).","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy",revocable:{"!doc":"The Proxy.revocable() method is used to create a revocable Proxy object.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy/revocable"}},RegExp:{prototype:{flags:{"!type":"string","!doc":"The flags property returns a string consisting of the flags of the current regular expression object.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/flags"},sticky:{"!type":"bool","!doc":"The sticky property reflects whether or not the search is sticky (searches in strings only from the index indicated by the lastIndex property of this regular expression). sticky is a read-only property of an individual regular expression object.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/sticky"}}},Set:{"!type":"fn(iterable: [?])","!doc":"The Set object lets you store unique values of any type, whether primitive values or object references.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set",length:{"!type":"number","!doc":"The value of the length property is 1."},prototype:{add:{"!type":"fn(value: ?) -> !this","!doc":"The add() method appends a new element with a specified value to the end of a Set object.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/add"},clear:{"!type":"fn()","!doc":"The clear() method removes all elements from a Set object.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/clear"},"delete":{"!type":"fn(value: ?) -> bool","!doc":"The delete() method removes the specified element from a Set object.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/delete"},entries:{"!type":"fn() -> TODO_ITERATOR","!doc":"The entries() method returns a new Iterator object that contains an array of [value, value] for each element in the Set object, in insertion order. For Set objects there is no key like in Map objects. However, to keep the API similar to the Map object, each entry has the same value for its key and value here, so that an array [value, value] is returned.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/entries"},forEach:{"!type":"fn(callback: fn(value: ?, value2: ?, set: +Set), thisArg?: ?)","!effects":["call !0 this=!1 !this.<i> number !this"]},has:{"!type":"fn(value: ?) -> bool","!doc":"The has() method returns a boolean indicating whether an element with the specified value exists in a Set object or not.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/has"},keys:{"!type":"fn() -> TODO_ITERATOR","!doc":"The values() method returns a new Iterator object that contains the values for each element in the Set object in insertion order.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/keys"},size:{"!type":"number","!doc":"The size accessor property returns the number of elements in a Set object.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/size"},values:{"!type":"fn() -> TODO_ITERATOR","!doc":"The values() method returns a new Iterator object that contains the values for each element in the Set object in insertion order.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/values"},"prototype[@@iterator]":{"!type":"fn()","!doc":"The initial value of the @@iterator property is the same function object as the initial value of the values property.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/@@iterator"}}},String:{fromCodePoint:{"!type":"fn(num1: ?) -> string","!doc":"The static String.fromCodePoint() method returns a string created by using the specified sequence of code points.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCodePoint"},raw:{"!type":"fn(callSite: ?, substitutions: ?, templateString: ?) -> string","!doc":"The static String.raw() method is a tag function of template strings, like the r prefix in Python or the @ prefix in C# for string literals, this function is used to get the raw string form of template strings.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/raw"},prototype:{codePointAt:{"!type":"fn(pos: number) -> number","!doc":"The codePointAt() method returns a non-negative integer that is the UTF-16 encoded code point value.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/codePointAt"},endsWith:{"!type":"fn(searchString: string, position?: number) -> bool","!doc":"The endsWith() method determines whether a string ends with the characters of another string, returning true or false as appropriate.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith"},includes:{"!type":"fn(searchString: string, position?: number) -> bool","!doc":"The includes() method determines whether one string may be found within another string, returning true or false as appropriate.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/contains"},normalize:{"!type":"fn(form: string) -> string","!doc":"The normalize() method returns the Unicode Normalization Form of a given string (if the value isn't a string, it will be converted to one first).","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize"},repeat:{"!type":"fn(count: number) -> string","!doc":"The repeat() method constructs and returns a new string which contains the specified number of copies of the string on which it was called, concatenated together.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/repeat"},startsWith:{"!type":"fn(searchString: string, position?: number) -> bool","!doc":"The startsWith() method determines whether a string begins with the characters of another string, returning true or false as appropriate.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith"}}},Symbol:{"!type":"fn(description?: string)","!doc":"A symbol is a unique and immutable data type and may be used as an identifier for object properties. The symbol object is an implicit object wrapper for the symbol primitive data type.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol","for":{"!type":"fn(key: string) -> +Symbol","!doc":"The Symbol.for(key) method searches for existing symbols in a runtime-wide symbol registry with the given key and returns it if found. Otherwise a new symbol gets created in the global symbol registry with this key.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/for"},keyFor:{"!type":"fn(sym: +Symbol) -> +Symbol","!doc":"The Symbol.keyFor(sym) method retrieves a shared symbol key from the global symbol registry for the given symbol.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/keyFor"},prototype:{toString:{"!type":"fn() -> string","!doc":"The toString() method returns a string representing the specified Symbol object.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toString"},valueOf:{"!type":"fn() -> ?","!doc":"The valueOf() method returns the primitive value of a Symbol object.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/valueOf"}}},TypedArray:{"!type":"fn(length: number)","!doc":"A TypedArray object describes an array-like view of an underlying binary data buffer. There is no global property named TypedArray, nor is there a directly visible TypedArray constructor.  Instead, there are a number of different global properties, whose values are typed array constructors for specific element types, listed below. On the following pages you will find common properties and methods that can be used with any typed array containing elements of any type.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray",BYTES_PER_ELEMENT:{"!type":"number","!doc":"The TypedArray.BYTES_PER_ELEMENT property represents the size in bytes of each element in an typed array.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/BYTES_PER_ELEMENT"},length:{"!type":"number","!doc":"The length accessor property represents the length (in elements) of a typed array.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/length"},name:{"!type":"string","!doc":"The TypedArray.name property represents a string value of the typed array constructor name.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/name"},prototype:{buffer:{"!type":"+ArrayBuffer","!doc":"The buffer accessor property represents the ArrayBuffer referenced by a TypedArray at construction time.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/buffer"},byteLength:{"!type":"number","!doc":"The byteLength accessor property represents the length (in bytes) of a typed array from the start of its ArrayBuffer.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/byteLength"},byteOffset:{"!type":"number","!doc":"The byteOffset accessor property represents the offset (in bytes) of a typed array from the start of its ArrayBuffer.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/byteOffset"},copyWithin:{"!type":"fn(target: number, start: number, end?: number) -> ?","!doc":"The copyWithin() method copies the sequence of array elements within the array to the position starting at target. The copy is taken from the index positions of the second and third arguments start and end. The end argument is optional and defaults to the length of the array. This method has the same algorithm as Array.prototype.copyWithin. TypedArray is one of the typed array types here.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/copyWithin"},entries:{"!type":"fn() -> TODO_ITERATOR","!doc":"The entries() method returns a new Array Iterator object that contains the key/value pairs for each index in the array.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/entries"},every:{"!type":"fn(callback: fn(currentValue: ?, index: number, array: +TypedArray) -> bool, thisArg?: ?) -> bool","!effects":["call !0 this=!1 !this.<i> number !this"],"!doc":"The every() method tests whether all elements in the typed array pass the test implemented by the provided function. This method has the same algorithm as Array.prototype.every(). TypedArray is one of the typed array types here.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/every"},fill:{"!type":"fn(value: ?, start?: number, end?: number)","!doc":"The fill() method fills all the elements of a typed array from a start index to an end index with a static value. This method has the same algorithm as Array.prototype.fill(). TypedArray is one of the typed array types here.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/fill"},filter:{"!type":"fn(test: fn(elt: ?, i: number) -> bool, context?: ?) -> !this","!effects":["call !0 this=!1 !this.<i> number"],"!doc":"Creates a new array with all of the elements of this array for which the provided filtering function returns true. See also Array.prototype.filter().","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/filter"},find:{"!type":"fn(callback: fn(element: ?, index: number, array: +TypedArray) -> bool, thisArg?: ?) -> ?","!effects":["call !0 this=!1 !this.<i> number !this"],"!doc":"The find() method returns a value in the typed array, if an element satisfies the provided testing function. Otherwise undefined is returned. TypedArray is one of the typed array types here.\nSee also the findIndex() method, which returns the index of a found element in the typed array instead of its value.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/find"},findIndex:{"!type":"fn(callback: fn(element: ?, index: number, array: +TypedArray) -> bool, thisArg?: ?) -> number","!effects":["call !0 this=!1 !this.<i> number !this"],"!doc":"The findIndex() method returns an index in the typed array, if an element in the typed array satisfies the provided testing function. Otherwise -1 is returned.\nSee also the find() method, which returns the value of a found element in the typed array instead of its index.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/findIndex"},forEach:{"!type":"fn(callback: fn(value: ?, key: ?, array: +TypedArray), thisArg?: ?)","!effects":["call !0 this=!1 !this.<i> number !this"],"!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/forEach"},includes:{"!type":"fn(searchElement: ?, fromIndex?: number) -> bool","!doc":"The includes() method determines whether a typed array includes a certain element, returning true or false as appropriate. This method has the same algorithm as Array.prototype.includes(). TypedArray is one of the typed array types here.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/includes"},indexOf:{"!type":"fn(searchElement: ?, fromIndex?: number) -> number","!doc":"The indexOf() method returns the first index at which a given element can be found in the typed array, or -1 if it is not present. This method has the same algorithm as Array.prototype.indexOf(). TypedArray is one of the typed array types here.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/indexOf"},join:{"!type":"fn(separator?: string) -> string","!doc":"The join() method joins all elements of an array into a string. This method has the same algorithm as Array.prototype.join(). TypedArray is one of the typed array types here.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/join"},keys:{"!type":"fn() -> TODO_ITERATOR","!doc":"The keys() method returns a new Array Iterator object that contains the keys for each index in the array.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/keys"},lastIndexOf:{"!type":"fn(searchElement: ?, fromIndex?: number) -> number","!doc":"The lastIndexOf() method returns the last index at which a given element can be found in the typed array, or -1 if it is not present. The typed array is searched backwards, starting at fromIndex. This method has the same algorithm as Array.prototype.lastIndexOf(). TypedArray is one of the typed array types here.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/lastIndexOf"},length:{"!type":"number","!doc":"Returns the number of elements hold in the typed array. Fixed at construction time and thus read only.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/length"},map:{"!type":"fn(f: fn(elt: ?, i: number) -> ?, context?: ?) -> [!0.!ret]","!effects":["call !0 this=!1 !this.<i> number"],"!doc":"Creates a new array with the results of calling a provided function on every element in this array. See also Array.prototype.map().","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/map"},reduce:{"!type":"fn(combine: fn(sum: ?, elt: ?, i: number) -> ?, init?: ?) -> !0.!ret","!effects":["call !0 !1 !this.<i> number"],"!doc":"Apply a function against an accumulator and each value of the array (from left-to-right) as to reduce it to a single value. See also Array.prototype.reduce().","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reduce"},reduceRight:{"!type":"fn(combine: fn(sum: ?, elt: ?, i: number) -> ?, init?: ?) -> !0.!ret","!effects":["call !0 !1 !this.<i> number"],"!doc":"Apply a function against an accumulator and each value of the array (from right-to-left) as to reduce it to a single value. See also Array.prototype.reduceRight().","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reduceRight"},reverse:{"!type":"fn()","!doc":"The reverse() method reverses a typed array in place. The first typed array element becomes the last and the last becomes the first. This method has the same algorithm as Array.prototype.reverse(). TypedArray is one of the typed array types here.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/reverse"},set:{"!type":"fn(array: [?], offset?: ?)","!doc":"The set() method stores multiple values in the typed array, reading input values from a specified array.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set"},slice:{"!type":"fn(from: number, to?: number) -> !this","!doc":"Extracts a section of an array and returns a new array. See also Array.prototype.slice().","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/slice"},some:{"!type":"fn(test: fn(elt: ?, i: number) -> bool, context?: ?) -> bool","!effects":["call !0 this=!1 !this.<i> number"],"!doc":"The some() method tests whether some element in the typed array passes the test implemented by the provided function. This method has the same algorithm as Array.prototype.some(). TypedArray is one of the typed array types here.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/some"},sort:{"!type":"fn(compare?: fn(a: ?, b: ?) -> number)","!effects":["call !0 !this.<i> !this.<i>"],"!doc":"Sorts the elements of an array in place and returns the array. See also Array.prototype.sort().","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/sort"},subarray:{"!type":"fn(begin?: number, end?: number) -> +TypedArray","!doc":"The subarray() method returns a new TypedArray on the same ArrayBuffer store and with the same element types as for this TypedArray object. The begin offset is inclusive and the end offset is exclusive. TypedArray is one of the typed array types.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/subarray"},values:{"!type":"fn() -> TODO_ITERATOR","!doc":"The values() method returns a new Array Iterator object that contains the values for each index in the array.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/values"},"prototype[@@iterator]":{"!type":"fn()","!doc":"The initial value of the @@iterator property is the same function object as the initial value of the values property.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/@@iterator"}}},Uint16Array:{"!type":"fn()","!doc":"The Uint16Array typed array represents an array of 16-bit unsigned integers in the platform byte order. If control over byte order is needed, use DataView instead. The contents are initialized to 0. Once established, you can reference elements in the array using the object's methods, or using standard array index syntax (that is, using bracket notation).","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array",length:"TypedArray.length",BYTES_PER_ELEMENT:"TypedArray.BYTES_PER_ELEMENT",name:"TypedArray.name",from:"TypedArray.from",of:"TypedArray.of",prototype:{"!proto":"TypedArray.prototype"}},Uint32Array:{"!type":"fn()","!doc":"The Uint32Array typed array represents an array of 32-bit unsigned integers in the platform byte order. If control over byte order is needed, use DataView instead. The contents are initialized to 0. Once established, you can reference elements in the array using the object's methods, or using standard array index syntax (that is, using bracket notation).","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array",length:"TypedArray.length",BYTES_PER_ELEMENT:"TypedArray.BYTES_PER_ELEMENT",name:"TypedArray.name",from:"TypedArray.from",of:"TypedArray.of",prototype:{"!proto":"TypedArray.prototype"}},Uint8Array:{"!type":"fn()","!doc":"The Uint8Array typed array represents an array of 8-bit unsigned integers. The contents are initialized to 0. Once established, you can reference elements in the array using the object's methods, or using standard array index syntax (that is, using bracket notation).","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array",length:"TypedArray.length",BYTES_PER_ELEMENT:"TypedArray.BYTES_PER_ELEMENT",name:"TypedArray.name",from:"TypedArray.from",of:"TypedArray.of",prototype:{"!proto":"TypedArray.prototype"}},Uint8ClampedArray:{"!type":"fn()","!doc":"The Uint8ClampedArray typed array represents an array of 8-bit unsigned integers clamped to 0-255. The contents are initialized to 0. Once established, you can reference elements in the array using the object's methods, or using standard array index syntax (that is, using bracket notation).","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray",length:"TypedArray.length",BYTES_PER_ELEMENT:"TypedArray.BYTES_PER_ELEMENT",name:"TypedArray.name",from:"TypedArray.from",of:"TypedArray.of",prototype:{"!proto":"TypedArray.prototype"}},WeakMap:{"!type":"fn(iterable: [?])","!doc":"The WeakMap object is a collection of key/value pairs in which the keys are objects and the values can be arbitrary values.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap",prototype:{"delete":{"!type":"fn(key: ?) -> bool","!doc":"The delete() method removes the specified element from a WeakMap object.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap/delete"},get:{"!type":"fn(key: ?) !this.<i>","!doc":"The get() method returns a specified element from a WeakMap object.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap/get"},has:{"!type":"fn(key: ?) -> bool","!doc":"The has() method returns a boolean indicating whether an element with the specified key exists in the WeakMap object or not.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap/has"},set:{"!type":"fn(key: ?, value: ?)","!doc":"The set() method adds a new element with a specified key and value to a WeakMap object.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap/set"}}},WeakSet:{"!type":"fn(iterable: [?])","!doc":"The WeakSet object lets you store weakly held objects in a collection.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet",prototype:{add:{"!type":"fn(value: ?)","!doc":"The add() method appends a new object to the end of a WeakSet object.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet/add"},"delete":{"!type":"fn(value: ?) -> bool","!doc":"The delete() method removes the specified element from a WeakSet object.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet/delete"},has:{"!type":"fn(value: ?) -> bool","!doc":"The has() method returns a boolean indicating whether an object exists in a WeakSet or not.","!url":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet/has"}}}}
}),define("json!tern/defs/browser.json",function(){return{"!name":"browser",location:{assign:{"!type":"fn(url: string)","!url":"https://developer.mozilla.org/en/docs/DOM/window.location","!doc":"Load the document at the provided URL."},replace:{"!type":"fn(url: string)","!url":"https://developer.mozilla.org/en/docs/DOM/window.location","!doc":"Replace the current document with the one at the provided URL. The difference from the assign() method is that after using replace() the current page will not be saved in session history, meaning the user won't be able to use the Back button to navigate to it."},reload:{"!type":"fn()","!url":"https://developer.mozilla.org/en/docs/DOM/window.location","!doc":"Reload the document from the current URL. forceget is a boolean, which, when it is true, causes the page to always be reloaded from the server. If it is false or not specified, the browser may reload the page from its cache."},origin:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/window.location","!doc":"The origin of the URL."},hash:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/window.location","!doc":"The part of the URL that follows the # symbol, including the # symbol."},search:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/window.location","!doc":"The part of the URL that follows the ? symbol, including the ? symbol."},pathname:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/window.location","!doc":"The path (relative to the host)."},port:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/window.location","!doc":"The port number of the URL."},hostname:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/window.location","!doc":"The host name (without the port number or square brackets)."},host:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/window.location","!doc":"The host name and port number."},protocol:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/window.location","!doc":"The protocol of the URL."},href:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/window.location","!doc":"The entire URL."},"!url":"https://developer.mozilla.org/en/docs/DOM/window.location","!doc":"Returns a location object with information about the current location of the document. Assigning to the location property changes the current page to the new address."},Node:{"!type":"fn()",prototype:{parentElement:{"!type":"+Element","!url":"https://developer.mozilla.org/en/docs/DOM/Node.parentElement","!doc":"Returns the DOM node's parent Element, or null if the node either has no parent, or its parent isn't a DOM Element."},textContent:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/Node.textContent","!doc":"Gets or sets the text content of a node and its descendants."},baseURI:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/Node.baseURI","!doc":"The absolute base URI of a node or null if unable to obtain an absolute URI."},localName:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/Node.localName","!doc":"Returns the local part of the qualified name of this node."},prefix:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/Node.prefix","!doc":"Returns the namespace prefix of the specified node, or null if no prefix is specified. This property is read only."},namespaceURI:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/Node.namespaceURI","!doc":"The namespace URI of the node, or null if the node is not in a namespace (read-only). When the node is a document, it returns the XML namespace for the current document."},ownerDocument:{"!type":"+Document","!url":"https://developer.mozilla.org/en/docs/DOM/Node.ownerDocument","!doc":"The ownerDocument property returns the top-level document object for this node."},attributes:{"!type":"+NamedNodeMap","!url":"https://developer.mozilla.org/en/docs/DOM/Node.attributes","!doc":"A collection of all attribute nodes registered to the specified node. It is a NamedNodeMap,not an Array, so it has no Array methods and the Attr nodes' indexes may differ among browsers."},nextSibling:{"!type":"+Element","!url":"https://developer.mozilla.org/en/docs/DOM/Node.nextSibling","!doc":"Returns the node immediately following the specified one in its parent's childNodes list, or null if the specified node is the last node in that list."},previousSibling:{"!type":"+Element","!url":"https://developer.mozilla.org/en/docs/DOM/Node.previousSibling","!doc":"Returns the node immediately preceding the specified one in its parent's childNodes list, null if the specified node is the first in that list."},lastChild:{"!type":"+Element","!url":"https://developer.mozilla.org/en/docs/DOM/Node.lastChild","!doc":"Returns the last child of a node."},firstChild:{"!type":"+Element","!url":"https://developer.mozilla.org/en/docs/DOM/Node.firstChild","!doc":"Returns the node's first child in the tree, or null if the node is childless. If the node is a Document, it returns the first node in the list of its direct children."},childNodes:{"!type":"+NodeList","!url":"https://developer.mozilla.org/en/docs/DOM/Node.childNodes","!doc":"Returns a collection of child nodes of the given element."},parentNode:{"!type":"+Element","!url":"https://developer.mozilla.org/en/docs/DOM/Node.parentNode","!doc":"Returns the parent of the specified node in the DOM tree."},nodeType:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/Node.nodeType","!doc":"Returns an integer code representing the type of the node."},nodeValue:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/Node.nodeValue","!doc":"Returns or sets the value of the current node."},nodeName:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/Node.nodeName","!doc":"Returns the name of the current node as a string."},tagName:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/Node.nodeName","!doc":"Returns the name of the current node as a string."},insertBefore:{"!type":"fn(newElt: +Element, before: +Element) -> +Element","!url":"https://developer.mozilla.org/en/docs/DOM/Node.insertBefore","!doc":"Inserts the specified node before a reference element as a child of the current node."},replaceChild:{"!type":"fn(newElt: +Element, oldElt: +Element) -> +Element","!url":"https://developer.mozilla.org/en/docs/DOM/Node.replaceChild","!doc":"Replaces one child node of the specified element with another."},removeChild:{"!type":"fn(oldElt: +Element) -> +Element","!url":"https://developer.mozilla.org/en/docs/DOM/Node.removeChild","!doc":"Removes a child node from the DOM. Returns removed node."},appendChild:{"!type":"fn(newElt: +Element) -> +Element","!url":"https://developer.mozilla.org/en/docs/DOM/Node.appendChild","!doc":"Adds a node to the end of the list of children of a specified parent node. If the node already exists it is removed from current parent node, then added to new parent node."},hasChildNodes:{"!type":"fn() -> bool","!url":"https://developer.mozilla.org/en/docs/DOM/Node.hasChildNodes","!doc":"Returns a Boolean value indicating whether the current Node has child nodes or not."},cloneNode:{"!type":"fn(deep: bool) -> +Element","!url":"https://developer.mozilla.org/en/docs/DOM/Node.cloneNode","!doc":"Returns a duplicate of the node on which this method was called."},normalize:{"!type":"fn()","!url":"https://developer.mozilla.org/en/docs/DOM/Node.normalize","!doc":'Puts the specified node and all of its subtree into a "normalized" form. In a normalized subtree, no text nodes in the subtree are empty and there are no adjacent text nodes.'},isSupported:{"!type":"fn(features: string, version: number) -> bool","!url":"https://developer.mozilla.org/en/docs/DOM/Node.isSupported","!doc":"Tests whether the DOM implementation implements a specific feature and that feature is supported by this node."},hasAttributes:{"!type":"fn() -> bool","!url":"https://developer.mozilla.org/en/docs/DOM/Node.hasAttributes","!doc":"Returns a boolean value of true or false, indicating if the current element has any attributes or not."},lookupPrefix:{"!type":"fn(uri: string) -> string","!url":"https://developer.mozilla.org/en/docs/DOM/Node.lookupPrefix","!doc":"Returns the prefix for a given namespaceURI if present, and null if not. When multiple prefixes are possible, the result is implementation-dependent."},isDefaultNamespace:{"!type":"fn(uri: string) -> bool","!url":"https://developer.mozilla.org/en/docs/DOM/Node.isDefaultNamespace","!doc":"Accepts a namespace URI as an argument and returns true if the namespace is the default namespace on the given node or false if not."},lookupNamespaceURI:{"!type":"fn(uri: string) -> string","!url":"https://developer.mozilla.org/en/docs/DOM/Node.lookupNamespaceURI","!doc":"Takes a prefix and returns the namespaceURI associated with it on the given node if found (and null if not). Supplying null for the prefix will return the default namespace."},addEventListener:{"!type":"fn(type: string, listener: fn(e: +Event), capture: bool)","!url":"https://developer.mozilla.org/en/docs/DOM/EventTarget.addEventListener","!doc":"Registers a single event listener on a single target. The event target may be a single element in a document, the document itself, a window, or an XMLHttpRequest."},removeEventListener:{"!type":"fn(type: string, listener: fn(), capture: bool)","!url":"https://developer.mozilla.org/en/docs/DOM/EventTarget.removeEventListener","!doc":"Allows the removal of event listeners from the event target."},isSameNode:{"!type":"fn(other: +Node) -> bool","!url":"https://developer.mozilla.org/en/docs/DOM/Node.isSameNode","!doc":"Tests whether two nodes are the same, that is they reference the same object."},isEqualNode:{"!type":"fn(other: +Node) -> bool","!url":"https://developer.mozilla.org/en/docs/DOM/Node.isEqualNode","!doc":"Tests whether two nodes are equal."},compareDocumentPosition:{"!type":"fn(other: +Node) -> number","!url":"https://developer.mozilla.org/en/docs/DOM/Node.compareDocumentPosition","!doc":"Compares the position of the current node against another node in any other document."},contains:{"!type":"fn(other: +Node) -> bool","!url":"https://developer.mozilla.org/en/docs/DOM/Node.contains","!doc":"Indicates whether a node is a descendent of a given node."},dispatchEvent:{"!type":"fn(event: +Event) -> bool","!url":"https://developer.mozilla.org/en/docs/DOM/EventTarget.dispatchEvent","!doc":"Dispatches an event into the event system. The event is subject to the same capturing and bubbling behavior as directly dispatched events."},ELEMENT_NODE:"number",ATTRIBUTE_NODE:"number",TEXT_NODE:"number",CDATA_SECTION_NODE:"number",ENTITY_REFERENCE_NODE:"number",ENTITY_NODE:"number",PROCESSING_INSTRUCTION_NODE:"number",COMMENT_NODE:"number",DOCUMENT_NODE:"number",DOCUMENT_TYPE_NODE:"number",DOCUMENT_FRAGMENT_NODE:"number",NOTATION_NODE:"number",DOCUMENT_POSITION_DISCONNECTED:"number",DOCUMENT_POSITION_PRECEDING:"number",DOCUMENT_POSITION_FOLLOWING:"number",DOCUMENT_POSITION_CONTAINS:"number",DOCUMENT_POSITION_CONTAINED_BY:"number",DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:"number"},"!url":"https://developer.mozilla.org/en/docs/DOM/Node","!doc":"A Node is an interface from which a number of DOM types inherit, and allows these various types to be treated (or tested) similarly."},Element:{"!type":"fn()",prototype:{"!proto":"Node.prototype",getAttribute:{"!type":"fn(name: string) -> string","!url":"https://developer.mozilla.org/en/docs/DOM/element.getAttribute","!doc":'Returns the value of the named attribute on the specified element. If the named attribute does not exist, the value returned will either be null or "" (the empty string).'},setAttribute:{"!type":"fn(name: string, value: string)","!url":"https://developer.mozilla.org/en/docs/DOM/element.setAttribute","!doc":"Adds a new attribute or changes the value of an existing attribute on the specified element."},removeAttribute:{"!type":"fn(name: string)","!url":"https://developer.mozilla.org/en/docs/DOM/element.removeAttribute","!doc":"Removes an attribute from the specified element."},getAttributeNode:{"!type":"fn(name: string) -> +Attr","!url":"https://developer.mozilla.org/en/docs/DOM/element.getAttributeNode","!doc":"Returns the specified attribute of the specified element, as an Attr node."},getElementsByTagName:{"!type":"fn(tagName: string) -> +NodeList","!url":"https://developer.mozilla.org/en/docs/DOM/element.getElementsByTagName","!doc":"Returns a list of elements with the given tag name. The subtree underneath the specified element is searched, excluding the element itself. The returned list is live, meaning that it updates itself with the DOM tree automatically. Consequently, there is no need to call several times element.getElementsByTagName with the same element and arguments."},getElementsByTagNameNS:{"!type":"fn(ns: string, tagName: string) -> +NodeList","!url":"https://developer.mozilla.org/en/docs/DOM/element.getElementsByTagNameNS","!doc":"Returns a list of elements with the given tag name belonging to the given namespace."},getAttributeNS:{"!type":"fn(ns: string, name: string) -> string","!url":"https://developer.mozilla.org/en/docs/DOM/element.getAttributeNS","!doc":'Returns the string value of the attribute with the specified namespace and name. If the named attribute does not exist, the value returned will either be null or "" (the empty string).'},setAttributeNS:{"!type":"fn(ns: string, name: string, value: string)","!url":"https://developer.mozilla.org/en/docs/DOM/element.setAttributeNS","!doc":"Adds a new attribute or changes the value of an attribute with the given namespace and name."},removeAttributeNS:{"!type":"fn(ns: string, name: string)","!url":"https://developer.mozilla.org/en/docs/DOM/element.removeAttributeNS","!doc":"removeAttributeNS removes the specified attribute from an element."},getAttributeNodeNS:{"!type":"fn(ns: string, name: string) -> +Attr","!url":"https://developer.mozilla.org/en/docs/DOM/element.getAttributeNodeNS","!doc":"Returns the Attr node for the attribute with the given namespace and name."},hasAttribute:{"!type":"fn(name: string) -> bool","!url":"https://developer.mozilla.org/en/docs/DOM/element.hasAttribute","!doc":"hasAttribute returns a boolean value indicating whether the specified element has the specified attribute or not."},hasAttributeNS:{"!type":"fn(ns: string, name: string) -> bool","!url":"https://developer.mozilla.org/en/docs/DOM/element.hasAttributeNS","!doc":"hasAttributeNS returns a boolean value indicating whether the current element has the specified attribute."},focus:{"!type":"fn()","!url":"https://developer.mozilla.org/en/docs/DOM/element.focus","!doc":"Sets focus on the specified element, if it can be focused."},blur:{"!type":"fn()","!url":"https://developer.mozilla.org/en/docs/DOM/element.blur","!doc":"The blur method removes keyboard focus from the current element."},scrollIntoView:{"!type":"fn(top: bool)","!url":"https://developer.mozilla.org/en/docs/DOM/element.scrollIntoView","!doc":"The scrollIntoView() method scrolls the element into view."},scrollByLines:{"!type":"fn(lines: number)","!url":"https://developer.mozilla.org/en/docs/DOM/window.scrollByLines","!doc":"Scrolls the document by the given number of lines."},scrollByPages:{"!type":"fn(pages: number)","!url":"https://developer.mozilla.org/en/docs/DOM/window.scrollByPages","!doc":"Scrolls the current document by the specified number of pages."},getElementsByClassName:{"!type":"fn(name: string) -> +NodeList","!url":"https://developer.mozilla.org/en/docs/DOM/document.getElementsByClassName","!doc":"Returns a set of elements which have all the given class names. When called on the document object, the complete document is searched, including the root node. You may also call getElementsByClassName on any element; it will return only elements which are descendants of the specified root element with the given class names."},querySelector:{"!type":"fn(selectors: string) -> +Element","!url":"https://developer.mozilla.org/en/docs/DOM/Element.querySelector","!doc":"Returns the first element that is a descendent of the element on which it is invoked that matches the specified group of selectors."},querySelectorAll:{"!type":"fn(selectors: string) -> +NodeList","!url":"https://developer.mozilla.org/en/docs/DOM/Element.querySelectorAll","!doc":"Returns a non-live NodeList of all elements descended from the element on which it is invoked that match the specified group of CSS selectors."},getClientRects:{"!type":"fn() -> [+ClientRect]","!url":"https://developer.mozilla.org/en/docs/DOM/element.getClientRects","!doc":"Returns a collection of rectangles that indicate the bounding rectangles for each box in a client."},getBoundingClientRect:{"!type":"fn() -> +ClientRect","!url":"https://developer.mozilla.org/en/docs/DOM/element.getBoundingClientRect","!doc":"Returns a text rectangle object that encloses a group of text rectangles."},setAttributeNode:{"!type":"fn(attr: +Attr) -> +Attr","!url":"https://developer.mozilla.org/en/docs/DOM/element.setAttributeNode","!doc":"Adds a new Attr node to the specified element."},removeAttributeNode:{"!type":"fn(attr: +Attr) -> +Attr","!url":"https://developer.mozilla.org/en/docs/DOM/element.removeAttributeNode","!doc":"Removes the specified attribute from the current element."},setAttributeNodeNS:{"!type":"fn(attr: +Attr) -> +Attr","!url":"https://developer.mozilla.org/en/docs/DOM/element.setAttributeNodeNS","!doc":"Adds a new namespaced attribute node to an element."},insertAdjacentHTML:{"!type":"fn(position: string, text: string)","!url":"https://developer.mozilla.org/en/docs/DOM/element.insertAdjacentHTML","!doc":"Parses the specified text as HTML or XML and inserts the resulting nodes into the DOM tree at a specified position. It does not reparse the element it is being used on and thus it does not corrupt the existing elements inside the element. This, and avoiding the extra step of serialization make it much faster than direct innerHTML manipulation."},children:{"!type":"+HTMLCollection","!url":"https://developer.mozilla.org/en/docs/DOM/Element.children","!doc":"Returns a collection of child elements of the given element."},childElementCount:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/Element.childElementCount","!doc":"Returns the number of child elements of the given element."},className:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/element.className","!doc":"Gets and sets the value of the class attribute of the specified element."},style:{cssText:"string",alignmentBaseline:"string",background:"string",backgroundAttachment:"string",backgroundClip:"string",backgroundColor:"string",backgroundImage:"string",backgroundOrigin:"string",backgroundPosition:"string",backgroundPositionX:"string",backgroundPositionY:"string",backgroundRepeat:"string",backgroundRepeatX:"string",backgroundRepeatY:"string",backgroundSize:"string",baselineShift:"string",border:"string",borderBottom:"string",borderBottomColor:"string",borderBottomLeftRadius:"string",borderBottomRightRadius:"string",borderBottomStyle:"string",borderBottomWidth:"string",borderCollapse:"string",borderColor:"string",borderImage:"string",borderImageOutset:"string",borderImageRepeat:"string",borderImageSlice:"string",borderImageSource:"string",borderImageWidth:"string",borderLeft:"string",borderLeftColor:"string",borderLeftStyle:"string",borderLeftWidth:"string",borderRadius:"string",borderRight:"string",borderRightColor:"string",borderRightStyle:"string",borderRightWidth:"string",borderSpacing:"string",borderStyle:"string",borderTop:"string",borderTopColor:"string",borderTopLeftRadius:"string",borderTopRightRadius:"string",borderTopStyle:"string",borderTopWidth:"string",borderWidth:"string",bottom:"string",boxShadow:"string",boxSizing:"string",captionSide:"string",clear:"string",clip:"string",clipPath:"string",clipRule:"string",color:"string",colorInterpolation:"string",colorInterpolationFilters:"string",colorProfile:"string",colorRendering:"string",content:"string",counterIncrement:"string",counterReset:"string",cursor:"string",direction:"string",display:"string",dominantBaseline:"string",emptyCells:"string",enableBackground:"string",fill:"string",fillOpacity:"string",fillRule:"string",filter:"string","float":"string",floodColor:"string",floodOpacity:"string",font:"string",fontFamily:"string",fontSize:"string",fontStretch:"string",fontStyle:"string",fontVariant:"string",fontWeight:"string",glyphOrientationHorizontal:"string",glyphOrientationVertical:"string",height:"string",imageRendering:"string",kerning:"string",left:"string",letterSpacing:"string",lightingColor:"string",lineHeight:"string",listStyle:"string",listStyleImage:"string",listStylePosition:"string",listStyleType:"string",margin:"string",marginBottom:"string",marginLeft:"string",marginRight:"string",marginTop:"string",marker:"string",markerEnd:"string",markerMid:"string",markerStart:"string",mask:"string",maxHeight:"string",maxWidth:"string",minHeight:"string",minWidth:"string",opacity:"string",orphans:"string",outline:"string",outlineColor:"string",outlineOffset:"string",outlineStyle:"string",outlineWidth:"string",overflow:"string",overflowWrap:"string",overflowX:"string",overflowY:"string",padding:"string",paddingBottom:"string",paddingLeft:"string",paddingRight:"string",paddingTop:"string",page:"string",pageBreakAfter:"string",pageBreakBefore:"string",pageBreakInside:"string",pointerEvents:"string",position:"string",quotes:"string",resize:"string",right:"string",shapeRendering:"string",size:"string",speak:"string",src:"string",stopColor:"string",stopOpacity:"string",stroke:"string",strokeDasharray:"string",strokeDashoffset:"string",strokeLinecap:"string",strokeLinejoin:"string",strokeMiterlimit:"string",strokeOpacity:"string",strokeWidth:"string",tabSize:"string",tableLayout:"string",textAlign:"string",textAnchor:"string",textDecoration:"string",textIndent:"string",textLineThrough:"string",textLineThroughColor:"string",textLineThroughMode:"string",textLineThroughStyle:"string",textLineThroughWidth:"string",textOverflow:"string",textOverline:"string",textOverlineColor:"string",textOverlineMode:"string",textOverlineStyle:"string",textOverlineWidth:"string",textRendering:"string",textShadow:"string",textTransform:"string",textUnderline:"string",textUnderlineColor:"string",textUnderlineMode:"string",textUnderlineStyle:"string",textUnderlineWidth:"string",top:"string",unicodeBidi:"string",unicodeRange:"string",vectorEffect:"string",verticalAlign:"string",visibility:"string",whiteSpace:"string",width:"string",wordBreak:"string",wordSpacing:"string",wordWrap:"string",writingMode:"string",zIndex:"string",zoom:"string","!url":"https://developer.mozilla.org/en/docs/DOM/element.style","!doc":"Returns an object that represents the element's style attribute."},classList:{"!type":"+DOMTokenList","!url":"https://developer.mozilla.org/en/docs/DOM/element.classList","!doc":"Returns a token list of the class attribute of the element."},contentEditable:{"!type":"bool","!url":"https://developer.mozilla.org/en/docs/DOM/Element.contentEditable","!doc":"Indicates whether or not the element is editable."},firstElementChild:{"!type":"+Element","!url":"https://developer.mozilla.org/en/docs/DOM/Element.firstElementChild","!doc":"Returns the element's first child element or null if there are no child elements."},lastElementChild:{"!type":"+Element","!url":"https://developer.mozilla.org/en/docs/DOM/Element.lastElementChild","!doc":"Returns the element's last child element or null if there are no child elements."},nextElementSibling:{"!type":"+Element","!url":"https://developer.mozilla.org/en/docs/DOM/Element.nextElementSibling","!doc":"Returns the element immediately following the specified one in its parent's children list, or null if the specified element is the last one in the list."},previousElementSibling:{"!type":"+Element","!url":"https://developer.mozilla.org/en/docs/DOM/Element.previousElementSibling","!doc":"Returns the element immediately prior to the specified one in its parent's children list, or null if the specified element is the first one in the list."},tabIndex:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/element.tabIndex","!doc":"Gets/sets the tab order of the current element."},title:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/element.title","!doc":"Establishes the text to be displayed in a 'tool tip' popup when the mouse is over the displayed node."},width:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/element.offsetWidth","!doc":"Returns the layout width of an element."},height:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/element.offsetHeight","!doc":"Height of an element relative to the element's offsetParent."},getContext:{"!type":"fn(id: string) -> CanvasRenderingContext2D","!url":"https://developer.mozilla.org/en/docs/DOM/HTMLCanvasElement","!doc":"DOM canvas elements expose the HTMLCanvasElement interface, which provides properties and methods for manipulating the layout and presentation of canvas elements. The HTMLCanvasElement interface inherits the properties and methods of the element object interface."},supportsContext:"fn(id: string) -> bool",oncopy:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/element.oncopy","!doc":"The oncopy property returns the onCopy event handler code on the current element."},oncut:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/element.oncut","!doc":"The oncut property returns the onCut event handler code on the current element."},onpaste:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/element.onpaste","!doc":"The onpaste property returns the onPaste event handler code on the current element."},onbeforeunload:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/HTML/Element/body","!doc":"The HTML <body> element represents the main content of an HTML document. There is only one <body> element in a document."},onfocus:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/element.onfocus","!doc":"The onfocus property returns the onFocus event handler code on the current element."},onblur:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/element.onblur","!doc":"The onblur property returns the onBlur event handler code, if any, that exists on the current element."},onchange:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/element.onchange","!doc":"The onchange property sets and returns the onChange event handler code for the current element."},onclick:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/element.onclick","!doc":"The onclick property returns the onClick event handler code on the current element."},ondblclick:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/element.ondblclick","!doc":"The ondblclick property returns the onDblClick event handler code on the current element."},onmousedown:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/element.onmousedown","!doc":"The onmousedown property returns the onMouseDown event handler code on the current element."},onmouseup:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/element.onmouseup","!doc":"The onmouseup property returns the onMouseUp event handler code on the current element."},onmousewheel:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/Mozilla_event_reference/wheel","!doc":"The wheel event is fired when a wheel button of a pointing device (usually a mouse) is rotated. This event deprecates the legacy mousewheel event."},onmouseover:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/element.onmouseover","!doc":"The onmouseover property returns the onMouseOver event handler code on the current element."},onmouseout:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/element.onmouseout","!doc":"The onmouseout property returns the onMouseOut event handler code on the current element."},onmousemove:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/element.onmousemove","!doc":"The onmousemove property returns the mousemove event handler code on the current element."},oncontextmenu:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/window.oncontextmenu","!doc":'An event handler property for right-click events on the window. Unless the default behavior is prevented, the browser context menu will activate. Note that this event will occur with any non-disabled right-click event and does not depend on an element possessing the "contextmenu" attribute.'},onkeydown:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/element.onkeydown","!doc":"The onkeydown property returns the onKeyDown event handler code on the current element."},onkeyup:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/element.onkeyup","!doc":"The onkeyup property returns the onKeyUp event handler code for the current element."},onkeypress:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/element.onkeypress","!doc":"The onkeypress property sets and returns the onKeyPress event handler code for the current element."},onresize:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/element.onresize","!doc":"onresize returns the element's onresize event handler code. It can also be used to set the code to be executed when the resize event occurs."},onscroll:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/element.onscroll","!doc":"The onscroll property returns the onScroll event handler code on the current element."},ondragstart:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DragDrop/Drag_Operations","!doc":"The following describes the steps that occur during a drag and drop operation."},ondragover:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/Mozilla_event_reference/dragover","!doc":"The dragover event is fired when an element or text selection is being dragged over a valid drop target (every few hundred milliseconds)."},ondragleave:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/Mozilla_event_reference/dragleave","!doc":"The dragleave event is fired when a dragged element or text selection leaves a valid drop target."},ondragenter:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/Mozilla_event_reference/dragenter","!doc":"The dragenter event is fired when a dragged element or text selection enters a valid drop target."},ondragend:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/Mozilla_event_reference/dragend","!doc":"The dragend event is fired when a drag operation is being ended (by releasing a mouse button or hitting the escape key)."},ondrag:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/Mozilla_event_reference/drag","!doc":"The drag event is fired when an element or text selection is being dragged (every few hundred milliseconds)."},offsetTop:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/element.offsetTop","!doc":"Returns the distance of the current element relative to the top of the offsetParent node."},offsetLeft:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/element.offsetLeft","!doc":"Returns the number of pixels that the upper left corner of the current element is offset to the left within the offsetParent node."},offsetHeight:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/element.offsetHeight","!doc":"Height of an element relative to the element's offsetParent."},offsetWidth:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/element.offsetWidth","!doc":"Returns the layout width of an element."},scrollTop:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/element.scrollTop","!doc":"Gets or sets the number of pixels that the content of an element is scrolled upward."},scrollLeft:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/element.scrollLeft","!doc":"Gets or sets the number of pixels that an element's content is scrolled to the left."},scrollHeight:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/element.scrollHeight","!doc":"Height of the scroll view of an element; it includes the element padding but not its margin."},scrollWidth:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/element.scrollWidth","!doc":"Read-only property that returns either the width in pixels of the content of an element or the width of the element itself, whichever is greater."},clientTop:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/element.clientTop","!doc":"The width of the top border of an element in pixels. It does not include the top margin or padding. clientTop is read-only."},clientLeft:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/element.clientLeft","!doc":"The width of the left border of an element in pixels. It includes the width of the vertical scrollbar if the text direction of the element is right-to-left and if there is an overflow causing a left vertical scrollbar to be rendered. clientLeft does not include the left margin or the left padding. clientLeft is read-only."},clientHeight:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/element.clientHeight","!doc":"Returns the inner height of an element in pixels, including padding but not the horizontal scrollbar height, border, or margin."},clientWidth:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/element.clientWidth","!doc":"The inner width of an element in pixels. It includes padding but not the vertical scrollbar (if present, if rendered), border or margin."},innerHTML:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/element.innerHTML","!doc":"Sets or gets the HTML syntax describing the element's descendants."},createdCallback:{"!type":"fn()","!url":"http://w3c.github.io/webcomponents/spec/custom/index.html#dfn-created-callback","!doc":"This callback is invoked after custom element instance is created and its definition is registered. The actual timing of this callback is defined further in this specification."},attachedCallback:{"!type":"fn()","!url":"http://w3c.github.io/webcomponents/spec/custom/index.html#dfn-entered-view-callback","!doc":"Unless specified otherwise, this callback must be enqueued whenever custom element is inserted into a document and this document has a browsing context."},detachedCallback:{"!type":"fn()","!url":"http://w3c.github.io/webcomponents/spec/custom/index.html#dfn-left-view-callback","!doc":"Unless specified otherwise, this callback must be enqueued whenever custom element is removed from the document and this document has a browsing context."},attributeChangedCallback:{"!type":"fn()","!url":"http://w3c.github.io/webcomponents/spec/custom/index.html#dfn-attribute-changed-callback","!doc":"Unless specified otherwise, this callback must be enqueued whenever custom element's attribute is added, changed or removed."}},"!url":"https://developer.mozilla.org/en/docs/DOM/Element","!doc":"Represents an element in an HTML or XML document."},Text:{"!type":"fn()",prototype:{"!proto":"Node.prototype",wholeText:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/Text.wholeText","!doc":"Returns all text of all Text nodes logically adjacent to the node.  The text is concatenated in document order.  This allows you to specify any text node and obtain all adjacent text as a single string."},splitText:{"!type":"fn(offset: number) -> +Text","!url":"https://developer.mozilla.org/en/docs/DOM/Text.splitText","!doc":"Breaks the Text node into two nodes at the specified offset, keeping both nodes in the tree as siblings."}},"!url":"https://developer.mozilla.org/en/docs/DOM/Text","!doc":"In the DOM, the Text interface represents the textual content of an Element or Attr.  If an element has no markup within its content, it has a single child implementing Text that contains the element's text.  However, if the element contains markup, it is parsed into information items and Text nodes that form its children."},Document:{"!type":"fn()",prototype:{"!proto":"Node.prototype",activeElement:{"!type":"+Element","!url":"https://developer.mozilla.org/en/docs/DOM/document.activeElement","!doc":"Returns the currently focused element, that is, the element that will get keystroke events if the user types any. This attribute is read only."},compatMode:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/document.compatMode","!doc":"Indicates whether the document is rendered in Quirks mode or Strict mode."},designMode:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/document.designMode","!doc":"Can be used to make any document editable, for example in a <iframe />:"},dir:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/Document.dir","!doc":"This property should indicate and allow the setting of the directionality of the text of the document, whether left to right (default) or right to left."},height:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/document.height","!doc":"Returns the height of the <body> element of the current document."},width:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/document.width","!doc":"Returns the width of the <body> element of the current document in pixels."},characterSet:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/document.characterSet","!doc":"Returns the character encoding of the current document."},readyState:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/document.readyState","!doc":'Returns "loading" while the document is loading, "interactive" once it is finished parsing but still loading sub-resources, and "complete" once it has loaded.'},location:{"!type":"location","!url":"https://developer.mozilla.org/en/docs/DOM/document.location","!doc":"Returns a Location object, which contains information about the URL of the document and provides methods for changing that URL."},lastModified:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/document.lastModified","!doc":"Returns a string containing the date and time on which the current document was last modified."},head:{"!type":"+Element","!url":"https://developer.mozilla.org/en/docs/DOM/document.head","!doc":"Returns the <head> element of the current document. If there are more than one <head> elements, the first one is returned."},body:{"!type":"+Element","!url":"https://developer.mozilla.org/en/docs/DOM/document.body","!doc":"Returns the <body> or <frameset> node of the current document."},cookie:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/document.cookie","!doc":"Get and set the cookies associated with the current document."},URL:"string",domain:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/document.domain","!doc":"Gets/sets the domain portion of the origin of the current document, as used by the same origin policy."},referrer:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/document.referrer","!doc":"Returns the URI of the page that linked to this page."},title:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/document.title","!doc":"Gets or sets the title of the document."},defaultView:{"!url":"https://developer.mozilla.org/en/docs/DOM/document.defaultView","!doc":"In browsers returns the window object associated with the document or null if none available."},documentURI:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/document.documentURI","!doc":"Returns the document location as string. It is read-only per DOM4 specification."},xmlStandalone:"bool",xmlVersion:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/document.xmlVersion","!doc":'Returns the version number as specified in the XML declaration (e.g., <?xml version="1.0"?>) or "1.0" if the declaration is absent.'},xmlEncoding:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/Document.xmlEncoding","!doc":"Returns the encoding as determined by the XML declaration. Should be null if unspecified or unknown."},inputEncoding:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/document.inputEncoding","!doc":"Returns a string representing the encoding under which the document was parsed (e.g. ISO-8859-1)."},documentElement:{"!type":"+Element","!url":"https://developer.mozilla.org/en/docs/DOM/document.documentElement","!doc":"Read-only"},implementation:{hasFeature:"fn(feature: string, version: number) -> bool",createDocumentType:{"!type":"fn(qualifiedName: string, publicId: string, systemId: string) -> +Node","!url":"https://developer.mozilla.org/en/docs/DOM/DOMImplementation.createDocumentType","!doc":"Returns a DocumentType object which can either be used with DOMImplementation.createDocument upon document creation or they can be put into the document via Node.insertBefore() or Node.replaceChild(): http://www.w3.org/TR/DOM-Level-3-Cor...l#ID-B63ED1A31 (less ideal due to features not likely being as accessible: http://www.w3.org/TR/DOM-Level-3-Cor...createDocument ). In any case, entity declarations and notations will not be available: http://www.w3.org/TR/DOM-Level-3-Cor...-createDocType   "},createHTMLDocument:{"!type":"fn(title: string) -> +Document","!url":"https://developer.mozilla.org/en/docs/DOM/DOMImplementation.createHTMLDocument","!doc":"This method (available from document.implementation) creates a new HTML document."},createDocument:{"!type":"fn(namespaceURI: string, qualifiedName: string, type: +Node) -> +Document","!url":"https://developer.mozilla.org/en-US/docs/DOM/DOMImplementation.createHTMLDocument","!doc":"This method creates a new HTML document."},"!url":"https://developer.mozilla.org/en/docs/DOM/document.implementation","!doc":"Returns a DOMImplementation object associated with the current document."},doctype:{"!type":"+Node","!url":"https://developer.mozilla.org/en/docs/DOM/document.doctype","!doc":"Returns the Document Type Declaration (DTD) associated with current document. The returned object implements the DocumentType interface. Use DOMImplementation.createDocumentType() to create a DocumentType."},open:{"!type":"fn()","!url":"https://developer.mozilla.org/en/docs/DOM/document.open","!doc":"The document.open() method opens a document for writing."},close:{"!type":"fn()","!url":"https://developer.mozilla.org/en/docs/DOM/document.close","!doc":"The document.close() method finishes writing to a document, opened with document.open()."},write:{"!type":"fn(html: string)","!url":"https://developer.mozilla.org/en/docs/DOM/document.write","!doc":"Writes a string of text to a document stream opened by document.open()."},writeln:{"!type":"fn(html: string)","!url":"https://developer.mozilla.org/en/docs/DOM/document.writeln","!doc":"Writes a string of text followed by a newline character to a document."},clear:{"!type":"fn()","!url":"https://developer.mozilla.org/en/docs/DOM/document.clear","!doc":"In recent versions of Mozilla-based applications as well as in Internet Explorer and Netscape 4 this method does nothing."},hasFocus:{"!type":"fn() -> bool","!url":"https://developer.mozilla.org/en/docs/DOM/document.hasFocus","!doc":"Returns a Boolean value indicating whether the document or any element inside the document has focus. This method can be used to determine whether the active element in a document has focus."},createElement:{"!type":"fn(tagName: string) -> +Element","!url":"https://developer.mozilla.org/en/docs/DOM/document.createElement","!doc":"Creates the specified element."},createElementNS:{"!type":"fn(ns: string, tagName: string) -> +Element","!url":"https://developer.mozilla.org/en/docs/DOM/document.createElementNS","!doc":"Creates an element with the specified namespace URI and qualified name."},createDocumentFragment:{"!type":"fn() -> +DocumentFragment","!url":"https://developer.mozilla.org/en/docs/DOM/document.createDocumentFragment","!doc":"Creates a new empty DocumentFragment."},createTextNode:{"!type":"fn(content: string) -> +Text","!url":"https://developer.mozilla.org/en/docs/DOM/document.createTextNode","!doc":"Creates a new Text node."},createComment:{"!type":"fn(content: string) -> +Node","!url":"https://developer.mozilla.org/en/docs/DOM/document.createComment","!doc":"Creates a new comment node, and returns it."},createCDATASection:{"!type":"fn(content: string) -> +Node","!url":"https://developer.mozilla.org/en/docs/DOM/document.createCDATASection","!doc":"Creates a new CDATA section node, and returns it. "},createProcessingInstruction:{"!type":"fn(content: string) -> +Node","!url":"https://developer.mozilla.org/en/docs/DOM/document.createProcessingInstruction","!doc":"Creates a new processing instruction node, and returns it."},createAttribute:{"!type":"fn(name: string) -> +Attr","!url":"https://developer.mozilla.org/en/docs/DOM/document.createAttribute","!doc":"Creates a new attribute node, and returns it."},createAttributeNS:{"!type":"fn(ns: string, name: string) -> +Attr","!url":"https://developer.mozilla.org/en/docs/DOM/Attr","!doc":"This type represents a DOM element's attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types."},importNode:{"!type":"fn(node: +Node, deep: bool) -> +Element","!url":"https://developer.mozilla.org/en/docs/DOM/document.importNode","!doc":"Creates a copy of a node from an external document that can be inserted into the current document."},getElementById:{"!type":"fn(id: string) -> +Element","!url":"https://developer.mozilla.org/en/docs/DOM/document.getElementById","!doc":"Returns a reference to the element by its ID."},getElementsByTagName:{"!type":"fn(tagName: string) -> +NodeList","!url":"https://developer.mozilla.org/en/docs/DOM/document.getElementsByTagName","!doc":"Returns a NodeList of elements with the given tag name. The complete document is searched, including the root node. The returned NodeList is live, meaning that it updates itself automatically to stay in sync with the DOM tree without having to call document.getElementsByTagName again."},getElementsByTagNameNS:{"!type":"fn(ns: string, tagName: string) -> +NodeList","!url":"https://developer.mozilla.org/en/docs/DOM/document.getElementsByTagNameNS","!doc":"Returns a list of elements with the given tag name belonging to the given namespace. The complete document is searched, including the root node."},createEvent:{"!type":"fn(type: string) -> +Event","!url":"https://developer.mozilla.org/en/docs/DOM/document.createEvent","!doc":"Creates an event of the type specified. The returned object should be first initialized and can then be passed to element.dispatchEvent."},createRange:{"!type":"fn() -> +Range","!url":"https://developer.mozilla.org/en/docs/DOM/document.createRange","!doc":"Returns a new Range object."},evaluate:{"!type":"fn(expr: ?) -> +XPathResult","!url":"https://developer.mozilla.org/en/docs/DOM/document.evaluate","!doc":"Returns an XPathResult based on an XPath expression and other given parameters."},execCommand:{"!type":"fn(cmd: string)","!url":"https://developer.mozilla.org/en-US/docs/Rich-Text_Editing_in_Mozilla#Executing_Commands","!doc":"Run command to manipulate the contents of an editable region."},queryCommandEnabled:{"!type":"fn(cmd: string) -> bool","!url":"https://developer.mozilla.org/en/docs/DOM/document","!doc":"Returns true if the Midas command can be executed on the current range."},queryCommandIndeterm:{"!type":"fn(cmd: string) -> bool","!url":"https://developer.mozilla.org/en/docs/DOM/document","!doc":"Returns true if the Midas command is in a indeterminate state on the current range."},queryCommandState:{"!type":"fn(cmd: string) -> bool","!url":"https://developer.mozilla.org/en/docs/DOM/document","!doc":"Returns true if the Midas command has been executed on the current range."},queryCommandSupported:{"!type":"fn(cmd: string) -> bool","!url":"https://developer.mozilla.org/en/docs/DOM/document.queryCommandSupported","!doc":"Reports whether or not the specified editor query command is supported by the browser."},queryCommandValue:{"!type":"fn(cmd: string) -> string","!url":"https://developer.mozilla.org/en/docs/DOM/document","!doc":"Returns the current value of the current range for Midas command."},getElementsByName:{"!type":"fn(name: string) -> +HTMLCollection","!url":"https://developer.mozilla.org/en/docs/DOM/document.getElementsByName","!doc":"Returns a list of elements with a given name in the HTML document."},elementFromPoint:{"!type":"fn(x: number, y: number) -> +Element","!url":"https://developer.mozilla.org/en/docs/DOM/document.elementFromPoint","!doc":"Returns the element from the document whose elementFromPoint method is being called which is the topmost element which lies under the given point.  To get an element, specify the point via coordinates, in CSS pixels, relative to the upper-left-most point in the window or frame containing the document."},getSelection:{"!type":"fn() -> +Selection","!url":"https://developer.mozilla.org/en/docs/DOM/document.getSelection","!doc":"The DOM getSelection() method is available on the Window and Document interfaces."},adoptNode:{"!type":"fn(node: +Node) -> +Element","!url":"https://developer.mozilla.org/en/docs/DOM/document.adoptNode","!doc":"Adopts a node from an external document. The node and its subtree is removed from the document it's in (if any), and its ownerDocument is changed to the current document. The node can then be inserted into the current document."},createTreeWalker:{"!type":"fn(root: +Node, mask: number) -> ?","!url":"https://developer.mozilla.org/en/docs/DOM/document.createTreeWalker","!doc":"Returns a new TreeWalker object."},createExpression:{"!type":"fn(text: string) -> ?","!url":"https://developer.mozilla.org/en/docs/DOM/document.createExpression","!doc":"This method compiles an XPathExpression which can then be used for (repeated) evaluations."},createNSResolver:{"!type":"fn(node: +Node)","!url":"https://developer.mozilla.org/en/docs/DOM/document.createNSResolver","!doc":"Creates an XPathNSResolver which resolves namespaces with respect to the definitions in scope for a specified node."},scripts:{"!type":"+HTMLCollection","!url":"https://developer.mozilla.org/en/docs/DOM/Document.scripts","!doc":"Returns a list of the <script> elements in the document. The returned object is an HTMLCollection."},plugins:{"!type":"+HTMLCollection","!url":"https://developer.mozilla.org/en/docs/DOM/document.plugins","!doc":"Returns an HTMLCollection object containing one or more HTMLEmbedElements or null which represent the <embed> elements in the current document."},embeds:{"!type":"+HTMLCollection","!url":"https://developer.mozilla.org/en/docs/DOM/document.embeds","!doc":"Returns a list of the embedded OBJECTS within the current document."},anchors:{"!type":"+HTMLCollection","!url":"https://developer.mozilla.org/en/docs/DOM/document.anchors","!doc":"Returns a list of all of the anchors in the document."},links:{"!type":"+HTMLCollection","!url":"https://developer.mozilla.org/en/docs/DOM/document.links","!doc":"The links property returns a collection of all AREA elements and anchor elements in a document with a value for the href attribute. "},forms:{"!type":"+HTMLCollection","!url":"https://developer.mozilla.org/en/docs/DOM/document.forms","!doc":"Returns a collection (an HTMLCollection) of the form elements within the current document."},styleSheets:{"!type":"+HTMLCollection","!url":"https://developer.mozilla.org/en/docs/DOM/document.styleSheets","!doc":"Returns a list of stylesheet objects for stylesheets explicitly linked into or embedded in a document."},currentScript:{"!type":"+Node","!url":"https://developer.mozilla.org/en-US/docs/Web/API/document.currentScript","!doc":"Returns the <script> element whose script is currently being processed."},registerElement:{"!type":"fn(type: string, options?: ?)","!url":"http://w3c.github.io/webcomponents/spec/custom/#extensions-to-document-interface-to-register","!doc":"The registerElement method of the Document interface provides a way to register a custom element and returns its custom element constructor."},getElementsByClassName:"Element.prototype.getElementsByClassName",querySelector:"Element.prototype.querySelector",querySelectorAll:"Element.prototype.querySelectorAll"},"!url":"https://developer.mozilla.org/en/docs/DOM/document","!doc":"Each web page loaded in the browser has its own document object. This object serves as an entry point to the web page's content (the DOM tree, including elements such as <body> and <table>) and provides functionality global to the document (such as obtaining the page's URL and creating new elements in the document)."},document:{"!type":"+Document","!url":"https://developer.mozilla.org/en/docs/DOM/document","!doc":"Each web page loaded in the browser has its own document object. This object serves as an entry point to the web page's content (the DOM tree, including elements such as <body> and <table>) and provides functionality global to the document (such as obtaining the page's URL and creating new elements in the document)."},XMLDocument:{"!type":"fn()",prototype:"Document.prototype","!url":"https://developer.mozilla.org/en/docs/Parsing_and_serializing_XML","!doc":"The Web platform provides the following objects for parsing and serializing XML:"},HTMLElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement"},HTMLAnchorElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement"},HTMLAreaElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement"},HTMLAudioElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLAudioElement"},HTMLBaseElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLBaseElement"},HTMLBodyElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement"},HTMLBRElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLBRElement"},HTMLButtonElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement"},HTMLCanvasElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement"},HTMLDataElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLDataElement"},HTMLDataListElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLDataListElement"},HTMLDivElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLDivElement"},HTMLDListElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLDListElement"},HTMLDocument:{"!type":"Document","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument"},HTMLEmbedElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement"},HTMLFieldSetElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement"},HTMLFormControlsCollection:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormControlsCollection"},HTMLFormElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement"},HTMLHeadElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLHeadElement"},HTMLHeadingElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLHeadingElement"},HTMLHRElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement"},HTMLHtmlElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLHtmlElement"},HTMLIFrameElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement"},HTMLImageElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement"},HTMLInputElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement"},HTMLKeygenElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLKeygenElement"},HTMLLabelElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement"},HTMLLegendElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLLegendElement"},HTMLLIElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLLIElement"},HTMLLinkElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement"},HTMLMapElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLMapElement"},HTMLMediaElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement"},HTMLMetaElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLMetaElement"},HTMLMeterElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement"},HTMLModElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLModElement"},HTMLObjectElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement"},HTMLOListElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLOListElement"},HTMLOptGroupElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptGroupElement"},HTMLOptionElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement"},HTMLOptionsCollection:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection"},HTMLOutputElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement"},HTMLParagraphElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLParagraphElement"},HTMLParamElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLParamElement"},HTMLPreElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLPreElement"},HTMLProgressElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLProgressElement"},HTMLQuoteElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLQuoteElement"},HTMLScriptElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement"},HTMLSelectElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement"},HTMLSourceElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement"},HTMLSpanElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLSpanElement"},HTMLStyleElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLStyleElement"},HTMLTableCaptionElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCaptionElement"},HTMLTableCellElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement"},HTMLTableColElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement"},HTMLTableDataCellElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableDataCellElement"},HTMLTableElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement"},HTMLTableHeaderCellElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableHeaderCellElement"},HTMLTableRowElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement"},HTMLTableSectionElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement"},HTMLTextAreaElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement"},HTMLTimeElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLTimeElement"},HTMLTitleElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLTitleElement"},HTMLTrackElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement"},HTMLUListElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLUListElement"},HTMLUnknownElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLUnknownElement"},HTMLVideoElement:{"!type":"Element","!url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement"},Attr:{"!type":"fn()",prototype:{isId:{"!type":"bool","!url":"https://developer.mozilla.org/en/docs/DOM/Attr","!doc":"This type represents a DOM element's attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types."},name:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/Attr","!doc":"This type represents a DOM element's attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types."},value:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/Attr","!doc":"This type represents a DOM element's attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types."}},"!url":"https://developer.mozilla.org/en/docs/DOM/Attr","!doc":"This type represents a DOM element's attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types."},NodeList:{"!type":"fn()",prototype:{length:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/element.length","!doc":"Returns the number of items in a NodeList."},item:{"!type":"fn(i: number) -> +Element","!url":"https://developer.mozilla.org/en/docs/DOM/NodeList.item","!doc":"Returns a node from a NodeList by index."},"<i>":"+Element"},"!url":"https://developer.mozilla.org/en/docs/DOM/NodeList","!doc":"NodeList objects are collections of nodes returned by getElementsByTagName, getElementsByTagNameNS, Node.childNodes, querySelectorAll, getElementsByClassName, etc."},HTMLCollection:{"!type":"fn()",prototype:{length:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/HTMLCollection","!doc":"The number of items in the collection."},item:{"!type":"fn(i: number) -> +Element","!url":"https://developer.mozilla.org/en/docs/DOM/HTMLCollection","!doc":"Returns the specific node at the given zero-based index into the list. Returns null if the index is out of range."},namedItem:{"!type":"fn(name: string) -> +Element","!url":"https://developer.mozilla.org/en/docs/DOM/HTMLCollection","!doc":"Returns the specific node whose ID or, as a fallback, name matches the string specified by name. Matching by name is only done as a last resort, only in HTML, and only if the referenced element supports the name attribute. Returns null if no node exists by the given name."},"<i>":"+Element"},"!url":"https://developer.mozilla.org/en/docs/DOM/HTMLCollection","!doc":"HTMLCollection is an interface representing a generic collection of elements (in document order) and offers methods and properties for traversing the list."},NamedNodeMap:{"!type":"fn()",prototype:{length:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/NamedNodeMap","!doc":"The number of items in the map."},getNamedItem:{"!type":"fn(name: string) -> +Node","!url":"https://developer.mozilla.org/en/docs/DOM/NamedNodeMap","!doc":"Gets a node by name."},setNamedItem:{"!type":"fn(node: +Node) -> +Node","!url":"https://developer.mozilla.org/en/docs/DOM/NamedNodeMap","!doc":"Adds (or replaces) a node by its nodeName."},removeNamedItem:{"!type":"fn(name: string) -> +Node","!url":"https://developer.mozilla.org/en/docs/DOM/NamedNodeMap","!doc":"Removes a node (or if an attribute, may reveal a default if present)."},item:{"!type":"fn(i: number) -> +Node","!url":"https://developer.mozilla.org/en/docs/DOM/NamedNodeMap","!doc":"Returns the item at the given index (or null if the index is higher or equal to the number of nodes)."},getNamedItemNS:{"!type":"fn(ns: string, name: string) -> +Node","!url":"https://developer.mozilla.org/en/docs/DOM/NamedNodeMap","!doc":"Gets a node by namespace and localName."},setNamedItemNS:{"!type":"fn(node: +Node) -> +Node","!url":"https://developer.mozilla.org/en/docs/DOM/NamedNodeMap","!doc":"Adds (or replaces) a node by its localName and namespaceURI."},removeNamedItemNS:{"!type":"fn(ns: string, name: string) -> +Node","!url":"https://developer.mozilla.org/en/docs/DOM/NamedNodeMap","!doc":"Removes a node (or if an attribute, may reveal a default if present)."},"<i>":"+Node"},"!url":"https://developer.mozilla.org/en/docs/DOM/NamedNodeMap","!doc":"A collection of nodes returned by Element.attributes (also potentially for DocumentType.entities, DocumentType.notations). NamedNodeMaps are not in any particular order (unlike NodeList), although they may be accessed by an index as in an array (they may also be accessed with the item() method). A NamedNodeMap object are live and will thus be auto-updated if changes are made to their contents internally or elsewhere."},DocumentFragment:{"!type":"fn()",prototype:{"!proto":"Node.prototype"},"!url":"https://developer.mozilla.org/en/docs/DOM/document.createDocumentFragment","!doc":"Creates a new empty DocumentFragment."},DOMTokenList:{"!type":"fn()",prototype:{length:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/DOMTokenList","!doc":"The amount of items in the list."},item:{"!type":"fn(i: number) -> string","!url":"https://developer.mozilla.org/en/docs/DOM/DOMTokenList","!doc":"Returns an item in the list by its index."},contains:{"!type":"fn(token: string) -> bool","!url":"https://developer.mozilla.org/en/docs/DOM/DOMTokenList","!doc":"Return true if the underlying string contains token, otherwise false."},add:{"!type":"fn(token: string)","!url":"https://developer.mozilla.org/en/docs/DOM/DOMTokenList","!doc":"Adds token to the underlying string."},remove:{"!type":"fn(token: string)","!url":"https://developer.mozilla.org/en/docs/DOM/DOMTokenList","!doc":"Remove token from the underlying string."},toggle:{"!type":"fn(token: string) -> bool","!url":"https://developer.mozilla.org/en/docs/DOM/DOMTokenList","!doc":"Removes token from string and returns false. If token doesn't exist it's added and the function returns true."},"<i>":"string"},"!url":"https://developer.mozilla.org/en/docs/DOM/DOMTokenList","!doc":"This type represents a set of space-separated tokens. Commonly returned by HTMLElement.classList, HTMLLinkElement.relList, HTMLAnchorElement.relList or HTMLAreaElement.relList. It is indexed beginning with 0 as with JavaScript arrays. DOMTokenList is always case-sensitive."},XPathResult:{"!type":"fn()",prototype:{boolValue:"bool",invalidIteratorState:{"!type":"bool","!url":"https://developer.mozilla.org/en/docs/Introduction_to_using_XPath_in_JavaScript","!doc":"This document describes the interface for using XPath in JavaScript internally, in extensions, and from websites. Mozilla implements a fair amount of the DOM 3 XPath. Which means that XPath expressions can be run against both HTML and XML documents."},numberValue:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/XPathResult","!doc":"Refer to nsIDOMXPathResult for more detail."},resultType:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/document.evaluate","!doc":"Returns an XPathResult based on an XPath expression and other given parameters."},singleNodeValue:{"!type":"+Element","!url":"https://developer.mozilla.org/en/docs/Introduction_to_using_XPath_in_JavaScript","!doc":"This document describes the interface for using XPath in JavaScript internally, in extensions, and from websites. Mozilla implements a fair amount of the DOM 3 XPath. Which means that XPath expressions can be run against both HTML and XML documents."},snapshotLength:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/XPathResult","!doc":"Refer to nsIDOMXPathResult for more detail."},stringValue:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/Introduction_to_using_XPath_in_JavaScript","!doc":"This document describes the interface for using XPath in JavaScript internally, in extensions, and from websites. Mozilla implements a fair amount of the DOM 3 XPath. Which means that XPath expressions can be run against both HTML and XML documents."},iterateNext:{"!type":"fn()","!url":"https://developer.mozilla.org/en/docs/Introduction_to_using_XPath_in_JavaScript","!doc":"This document describes the interface for using XPath in JavaScript internally, in extensions, and from websites. Mozilla implements a fair amount of the DOM 3 XPath. Which means that XPath expressions can be run against both HTML and XML documents."},snapshotItem:{"!type":"fn()","!url":"https://developer.mozilla.org/en-US/docs/XPathResult#snapshotItem()"},ANY_TYPE:"number",NUMBER_TYPE:"number",STRING_TYPE:"number",BOOL_TYPE:"number",UNORDERED_NODE_ITERATOR_TYPE:"number",ORDERED_NODE_ITERATOR_TYPE:"number",UNORDERED_NODE_SNAPSHOT_TYPE:"number",ORDERED_NODE_SNAPSHOT_TYPE:"number",ANY_UNORDERED_NODE_TYPE:"number",FIRST_ORDERED_NODE_TYPE:"number"},"!url":"https://developer.mozilla.org/en/docs/XPathResult","!doc":"Refer to nsIDOMXPathResult for more detail."},ClientRect:{"!type":"fn()",prototype:{top:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/element.getClientRects","!doc":"Top of the box, in pixels, relative to the viewport."},left:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/element.getClientRects","!doc":"Left of the box, in pixels, relative to the viewport."},bottom:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/element.getClientRects","!doc":"Bottom of the box, in pixels, relative to the viewport."},right:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/element.getClientRects","!doc":"Right of the box, in pixels, relative to the viewport."}},"!url":"https://developer.mozilla.org/en/docs/DOM/element.getClientRects","!doc":"Returns a collection of rectangles that indicate the bounding rectangles for each box in a client."},Event:{"!type":"fn()",prototype:{stopPropagation:{"!type":"fn()","!url":"https://developer.mozilla.org/en/docs/DOM/event.stopPropagation","!doc":"Prevents further propagation of the current event."},preventDefault:{"!type":"fn()","!url":"https://developer.mozilla.org/en/docs/DOM/event.preventDefault","!doc":"Cancels the event if it is cancelable, without stopping further propagation of the event."},initEvent:{"!type":"fn(type: string, bubbles: bool, cancelable: bool)","!url":"https://developer.mozilla.org/en/docs/DOM/event.initEvent","!doc":"The initEvent method is used to initialize the value of an event created using document.createEvent."},stopImmediatePropagation:{"!type":"fn()","!url":"https://developer.mozilla.org/en/docs/DOM/event.stopImmediatePropagation","!doc":"Prevents other listeners of the same event to be called."},type:{"!type":"string","!url":"https://developer.mozilla.org/en-US/docs/Web/API/event.type","!doc":"Returns a string containing the type of event."},NONE:"number",CAPTURING_PHASE:"number",AT_TARGET:"number",BUBBLING_PHASE:"number",MOUSEDOWN:"number",MOUSEUP:"number",MOUSEOVER:"number",MOUSEOUT:"number",MOUSEMOVE:"number",MOUSEDRAG:"number",CLICK:"number",DBLCLICK:"number",KEYDOWN:"number",KEYUP:"number",KEYPRESS:"number",DRAGDROP:"number",FOCUS:"number",BLUR:"number",SELECT:"number",CHANGE:"number",target:{"!type":"+Element","!url":"https://developer.mozilla.org/en/docs/DOM/EventTarget","!doc":"An EventTarget is a DOM interface implemented by objects that can receive DOM events and have listeners for them. The most common EventTargets are DOM elements, although other objects can be EventTargets too, for example document, window, XMLHttpRequest, and others."},relatedTarget:{"!type":"+Element","!url":"https://developer.mozilla.org/en/docs/DOM/event.relatedTarget","!doc":"Identifies a secondary target for the event."},pageX:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/event.pageX","!doc":"Returns the horizontal coordinate of the event relative to whole document."},pageY:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/event.pageY","!doc":"Returns the vertical coordinate of the event relative to the whole document."},clientX:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/event.clientX","!doc":"Returns the horizontal coordinate within the application's client area at which the event occurred (as opposed to the coordinates within the page). For example, clicking in the top-left corner of the client area will always result in a mouse event with a clientX value of 0, regardless of whether the page is scrolled horizontally."},clientY:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/event.clientY","!doc":"Returns the vertical coordinate within the application's client area at which the event occurred (as opposed to the coordinates within the page). For example, clicking in the top-left corner of the client area will always result in a mouse event with a clientY value of 0, regardless of whether the page is scrolled vertically."},keyCode:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/event.keyCode","!doc":"Returns the Unicode value of a non-character key in a keypress event or any key in any other type of keyboard event."},charCode:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/event.charCode","!doc":"Returns the Unicode value of a character key pressed during a keypress event."},which:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/event.which","!doc":"Returns the numeric keyCode of the key pressed, or the character code (charCode) for an alphanumeric key pressed."},button:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/event.button","!doc":"Indicates which mouse button caused the event."},shiftKey:{"!type":"bool","!url":"https://developer.mozilla.org/en/docs/DOM/event.shiftKey","!doc":"Indicates whether the SHIFT key was pressed when the event fired."},ctrlKey:{"!type":"bool","!url":"https://developer.mozilla.org/en/docs/DOM/event.ctrlKey","!doc":"Indicates whether the CTRL key was pressed when the event fired."},altKey:{"!type":"bool","!url":"https://developer.mozilla.org/en/docs/DOM/event.altKey","!doc":"Indicates whether the ALT key was pressed when the event fired."},metaKey:{"!type":"bool","!url":"https://developer.mozilla.org/en/docs/DOM/event.metaKey","!doc":"Indicates whether the META key was pressed when the event fired."},returnValue:{"!type":"bool","!url":"https://developer.mozilla.org/en/docs/DOM/window.onbeforeunload","!doc":"An event that fires when a window is about to unload its resources. The document is still visible and the event is still cancelable."},cancelBubble:{"!type":"bool","!url":"https://developer.mozilla.org/en/docs/DOM/event.cancelBubble","!doc":"bool is the boolean value of true or false."},dataTransfer:{dropEffect:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DragDrop/DataTransfer","!doc":"The actual effect that will be used, and should always be one of the possible values of effectAllowed."},effectAllowed:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DragDrop/Drag_Operations","!doc":"Specifies the effects that are allowed for this drag."},files:{"!type":"+FileList","!url":"https://developer.mozilla.org/en/docs/DragDrop/DataTransfer","!doc":"Contains a list of all the local files available on the data transfer."},types:{"!type":"[string]","!url":"https://developer.mozilla.org/en-US/docs/DragDrop/DataTransfer","!doc":"Holds a list of the format types of the data that is stored for the first item, in the same order the data was added. An empty list will be returned if no data was added."},addElement:{"!type":"fn(element: +Element)","!url":"https://developer.mozilla.org/en/docs/DragDrop/DataTransfer","!doc":"Set the drag source."},clearData:{"!type":"fn(type?: string)","!url":"https://developer.mozilla.org/en/docs/DragDrop/Drag_Operations","!doc":"Remove the data associated with a given type."},getData:{"!type":"fn(type: string) -> string","!url":"https://developer.mozilla.org/en/docs/DragDrop/Drag_Operations","!doc":"Retrieves the data for a given type, or an empty string if data for that type does not exist or the data transfer contains no data."},setData:{"!type":"fn(type: string, data: string)","!url":"https://developer.mozilla.org/en/docs/DragDrop/Drag_Operations","!doc":"Set the data for a given type."},setDragImage:{"!type":"fn(image: +Element)","!url":"https://developer.mozilla.org/en/docs/DragDrop/Drag_Operations","!doc":"Set the image to be used for dragging if a custom one is desired."},"!url":"https://developer.mozilla.org/en/docs/DragDrop/DataTransfer","!doc":"This object is available from the dataTransfer property of all drag events. It cannot be created separately."}},"!url":"https://developer.mozilla.org/en-US/docs/DOM/event","!doc":"The DOM Event interface is accessible from within the handler function, via the event object passed as the first argument."},TouchEvent:{"!type":"fn()",prototype:"Event.prototype","!url":"https://developer.mozilla.org/en/docs/DOM/Touch_events","!doc":"In order to provide quality support for touch-based user interfaces, touch events offer the ability to interpret finger activity on touch screens or trackpads."},WheelEvent:{"!type":"fn()",prototype:"Event.prototype","!url":"https://developer.mozilla.org/en/docs/DOM/WheelEvent","!doc":"The DOM WheelEvent represents events that occur due to the user moving a mouse wheel or similar input device."},MouseEvent:{"!type":"fn()",prototype:"Event.prototype","!url":"https://developer.mozilla.org/en/docs/DOM/MouseEvent","!doc":"The DOM MouseEvent represents events that occur due to the user interacting with a pointing device (such as a mouse). It's represented by the nsINSDOMMouseEvent interface, which extends the nsIDOMMouseEvent interface."},KeyboardEvent:{"!type":"fn()",prototype:"Event.prototype","!url":"https://developer.mozilla.org/en/docs/DOM/KeyboardEvent","!doc":"KeyboardEvent objects describe a user interaction with the keyboard. Each event describes a key; the event type (keydown, keypress, or keyup) identifies what kind of activity was performed."},HashChangeEvent:{"!type":"fn()",prototype:"Event.prototype","!url":"https://developer.mozilla.org/en/docs/DOM/window.onhashchange","!doc":"The hashchange event fires when a window's hash changes."},ErrorEvent:{"!type":"fn()",prototype:"Event.prototype","!url":"https://developer.mozilla.org/en/docs/DOM/DOM_event_reference/error","!doc":"The error event is fired whenever a resource fails to load."},CustomEvent:{"!type":"fn()",prototype:"Event.prototype","!url":"https://developer.mozilla.org/en/docs/DOM/Event/CustomEvent","!doc":"The DOM CustomEvent are events initialized by an application for any purpose."},BeforeLoadEvent:{"!type":"fn()",prototype:"Event.prototype","!url":"https://developer.mozilla.org/en/docs/DOM/window","!doc":"This section provides a brief reference for all of the methods, properties, and events available through the DOM window object. The window object implements the Window interface, which in turn inherits from the AbstractView interface. Some additional global functions, namespaces objects, and constructors, not typically associated with the window, but available on it, are listed in the JavaScript Reference."},WebSocket:{"!type":"fn(url: string)",prototype:{close:{"!type":"fn()","!url":"https://developer.mozilla.org/en/docs/WebSockets/WebSockets_reference/CloseEvent","!doc":"A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute."},send:{"!type":"fn(data: string)","!url":"https://developer.mozilla.org/en/docs/WebSockets/WebSockets_reference/WebSocket","!doc":"The WebSocket object provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection."},binaryType:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/WebSockets/WebSockets_reference/WebSocket","!doc":"The WebSocket object provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection."},bufferedAmount:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/WebSockets/Writing_WebSocket_client_applications","!doc":"WebSockets is a technology that makes it possible to open an interactive communication session between the user's browser and a server. Using a WebSocket connection, Web applications can perform real-time communication instead of having to poll for changes back and forth."},extensions:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/WebSockets/WebSockets_reference/WebSocket","!doc":"The WebSocket object provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection."},onclose:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/WebSockets/WebSockets_reference/CloseEvent","!doc":"A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute."},onerror:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/WebSockets/Writing_WebSocket_client_applications","!doc":"WebSockets is a technology that makes it possible to open an interactive communication session between the user's browser and a server. Using a WebSocket connection, Web applications can perform real-time communication instead of having to poll for changes back and forth."},onmessage:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/WebSockets/WebSockets_reference/WebSocket","!doc":"The WebSocket object provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection."},onopen:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/WebSockets/WebSockets_reference/WebSocket","!doc":"The WebSocket object provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection."},protocol:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/WebSockets","!doc":"WebSockets is an advanced technology that makes it possible to open an interactive communication session between the user's browser and a server. With this API, you can send messages to a server and receive event-driven responses without having to poll the server for a reply."},url:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/WebSockets/Writing_WebSocket_client_applications","!doc":"WebSockets is a technology that makes it possible to open an interactive communication session between the user's browser and a server. Using a WebSocket connection, Web applications can perform real-time communication instead of having to poll for changes back and forth."},CONNECTING:"number",OPEN:"number",CLOSING:"number",CLOSED:"number"},"!url":"https://developer.mozilla.org/en/docs/WebSockets","!doc":"WebSockets is an advanced technology that makes it possible to open an interactive communication session between the user's browser and a server. With this API, you can send messages to a server and receive event-driven responses without having to poll the server for a reply."},Worker:{"!type":"fn(scriptURL: string)",prototype:{postMessage:{"!type":"fn(message: ?)","!url":"https://developer.mozilla.org/en/docs/DOM/Worker","!doc":"Sends a message to the worker's inner scope. This accepts a single parameter, which is the data to send to the worker. The data may be any value or JavaScript object handled by the structured clone algorithm, which includes cyclical references."},terminate:{"!type":"fn()","!url":"https://developer.mozilla.org/en/docs/DOM/Worker","!doc":"Immediately terminates the worker. This does not offer the worker an opportunity to finish its operations; it is simply stopped at once."},onmessage:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/Worker","!doc":"An event listener that is called whenever a MessageEvent with type message bubbles through the worker. The message is stored in the event's data member."},onerror:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/Worker","!doc":"An event listener that is called whenever an ErrorEvent with type error bubbles through the worker."}},"!url":"https://developer.mozilla.org/en/docs/DOM/Worker","!doc":"Workers are background tasks that can be easily created and can send messages back to their creators. Creating a worker is as simple as calling the Worker() constructor, specifying a script to be run in the worker thread."},localStorage:{setItem:{"!type":"fn(name: string, value: string)","!url":"https://developer.mozilla.org/en/docs/DOM/Storage","!doc":"Store an item in storage."},getItem:{"!type":"fn(name: string) -> string","!url":"https://developer.mozilla.org/en/docs/DOM/Storage","!doc":"Retrieve an item from storage."},"!url":"https://developer.mozilla.org/en/docs/DOM/Storage","!doc":"The DOM Storage mechanism is a means through which string key/value pairs can be securely stored and later retrieved for use."},sessionStorage:{setItem:{"!type":"fn(name: string, value: string)","!url":"https://developer.mozilla.org/en/docs/DOM/Storage","!doc":"Store an item in storage."},getItem:{"!type":"fn(name: string) -> string","!url":"https://developer.mozilla.org/en/docs/DOM/Storage","!doc":"Retrieve an item from storage."},"!url":"https://developer.mozilla.org/en/docs/DOM/Storage","!doc":"This is a global object (sessionStorage) that maintains a storage area that's available for the duration of the page session. A page session lasts for as long as the browser is open and survives over page reloads and restores. Opening a page in a new tab or window will cause a new session to be initiated."},FileList:{"!type":"fn()",prototype:{length:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/FileList","!doc":"A read-only value indicating the number of files in the list."},item:{"!type":"fn(i: number) -> +File","!url":"https://developer.mozilla.org/en/docs/DOM/FileList","!doc":"Returns a File object representing the file at the specified index in the file list."},"<i>":"+File"},"!url":"https://developer.mozilla.org/en/docs/DOM/FileList","!doc":'An object of this type is returned by the files property of the HTML input element; this lets you access the list of files selected with the <input type="file"> element. It\'s also used for a list of files dropped into web content when using the drag and drop API.'},File:{"!type":"fn()",prototype:{"!proto":"Blob.prototype",fileName:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/File.fileName","!doc":"Returns the name of the file. For security reasons the path is excluded from this property."},fileSize:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/File.fileSize","!doc":"Returns the size of a file in bytes."},lastModifiedDate:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/File.lastModifiedDate","!doc":"Returns the last modified date of the file. Files without a known last modified date use the current date instead."},name:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/File.name","!doc":"Returns the name of the file. For security reasons, the path is excluded from this property."}},"!url":"https://developer.mozilla.org/en/docs/DOM/File","!doc":"The File object provides information about -- and access to the contents of -- files. These are generally retrieved from a FileList object returned as a result of a user selecting files using the input element, or from a drag and drop operation's DataTransfer object."},Blob:{"!type":"fn(parts: [?], properties?: ?)",prototype:{size:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/Blob","!doc":"The size, in bytes, of the data contained in the Blob object. Read only."},type:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/Blob","!doc":"An ASCII-encoded string, in all lower case, indicating the MIME type of the data contained in the Blob. If the type is unknown, this string is empty. Read only."},slice:{"!type":"fn(start: number, end?: number, type?: string) -> +Blob","!url":"https://developer.mozilla.org/en/docs/DOM/Blob","!doc":"Returns a new Blob object containing the data in the specified range of bytes of the source Blob."}},"!url":"https://developer.mozilla.org/en/docs/DOM/Blob","!doc":"A Blob object represents a file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system."},FileReader:{"!type":"fn()",prototype:{abort:{"!type":"fn()","!url":"https://developer.mozilla.org/en/docs/DOM/FileReader","!doc":"Aborts the read operation. Upon return, the readyState will be DONE."},readAsArrayBuffer:{"!type":"fn(blob: +Blob)","!url":"https://developer.mozilla.org/en/docs/DOM/FileReader","!doc":"Starts reading the contents of the specified Blob, producing an ArrayBuffer."},readAsBinaryString:{"!type":"fn(blob: +Blob)","!url":"https://developer.mozilla.org/en/docs/DOM/FileReader","!doc":"Starts reading the contents of the specified Blob, producing raw binary data."},readAsDataURL:{"!type":"fn(blob: +Blob)","!url":"https://developer.mozilla.org/en/docs/DOM/FileReader","!doc":"Starts reading the contents of the specified Blob, producing a data: url."},readAsText:{"!type":"fn(blob: +Blob, encoding?: string)","!url":"https://developer.mozilla.org/en/docs/DOM/FileReader","!doc":"Starts reading the contents of the specified Blob, producing a string."},EMPTY:"number",LOADING:"number",DONE:"number",error:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/FileReader","!doc":"The error that occurred while reading the file. Read only."},readyState:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/FileReader","!doc":"Indicates the state of the FileReader. This will be one of the State constants. Read only."},result:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/FileReader","!doc":"The file's contents. This property is only valid after the read operation is complete, and the format of the data depends on which of the methods was used to initiate the read operation. Read only."},onabort:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/FileReader","!doc":"Called when the read operation is aborted."},onerror:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/FileReader","!doc":"Called when an error occurs."},onload:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/FileReader","!doc":"Called when the read operation is successfully completed."},onloadend:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/FileReader","!doc":"Called when the read is completed, whether successful or not. This is called after either onload or onerror."},onloadstart:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/FileReader","!doc":"Called when reading the data is about to begin."},onprogress:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/FileReader","!doc":"Called periodically while the data is being read."}},"!url":"https://developer.mozilla.org/en/docs/DOM/FileReader","!doc":"The FileReader object lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read. File objects may be obtained from a FileList object returned as a result of a user selecting files using the <input> element, from a drag and drop operation's DataTransfer object, or from the mozGetAsFile() API on an HTMLCanvasElement."},URL:{createObjectURL:{"!type":"fn(blob: +Blob) -> string","!url":"https://developer.mozilla.org/en-US/docs/Web/API/URL.createObjectURL","!doc":"The URL.createObjectURL() static method creates a DOMString containing an URL representing the object given in parameter."},revokeObjectURL:{"!type":"fn(string)","!url":"https://developer.mozilla.org/en-US/docs/Web/API/URL.revokeObjectURL","!doc":"The URL.revokeObjectURL() static method releases an existing object URL which was previously created by calling window.URL.createObjectURL()."}},Range:{"!type":"fn()",prototype:{collapsed:{"!type":"bool","!url":"https://developer.mozilla.org/en/docs/DOM/range.collapsed","!doc":"Returns a boolean indicating whether the range's start and end points are at the same position."},commonAncestorContainer:{"!type":"+Element","!url":"https://developer.mozilla.org/en/docs/DOM/range.commonAncestorContainer","!doc":"Returns the deepest Node that contains the  startContainer and  endContainer Nodes."},endContainer:{"!type":"+Element","!url":"https://developer.mozilla.org/en/docs/DOM/range.endContainer","!doc":"Returns the Node within which the Range ends."},endOffset:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/range.endOffset","!doc":"Returns a number representing where in the  endContainer the Range ends."},startContainer:{"!type":"+Element","!url":"https://developer.mozilla.org/en/docs/DOM/range.startContainer","!doc":"Returns the Node within which the Range starts."},startOffset:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/range.startOffset","!doc":"Returns a number representing where in the startContainer the Range starts."},setStart:{"!type":"fn(node: +Element, offset: number)","!url":"https://developer.mozilla.org/en/docs/DOM/range.setStart","!doc":"Sets the start position of a Range."},setEnd:{"!type":"fn(node: +Element, offset: number)","!url":"https://developer.mozilla.org/en/docs/DOM/range.setEnd","!doc":"Sets the end position of a Range."},setStartBefore:{"!type":"fn(node: +Element)","!url":"https://developer.mozilla.org/en/docs/DOM/range.setStartBefore","!doc":"Sets the start position of a Range relative to another Node."},setStartAfter:{"!type":"fn(node: +Element)","!url":"https://developer.mozilla.org/en/docs/DOM/range.setStartAfter","!doc":"Sets the start position of a Range relative to a Node."},setEndBefore:{"!type":"fn(node: +Element)","!url":"https://developer.mozilla.org/en/docs/DOM/range.setEndBefore","!doc":"Sets the end position of a Range relative to another Node."},setEndAfter:{"!type":"fn(node: +Element)","!url":"https://developer.mozilla.org/en/docs/DOM/range.setEndAfter","!doc":"Sets the end position of a Range relative to another Node."},selectNode:{"!type":"fn(node: +Element)","!url":"https://developer.mozilla.org/en/docs/DOM/range.selectNode","!doc":"Sets the Range to contain the Node and its contents."},selectNodeContents:{"!type":"fn(node: +Element)","!url":"https://developer.mozilla.org/en/docs/DOM/range.selectNodeContents","!doc":"Sets the Range to contain the contents of a Node."},collapse:{"!type":"fn(toStart: bool)","!url":"https://developer.mozilla.org/en/docs/DOM/range.collapse","!doc":"Collapses the Range to one of its boundary points."},cloneContents:{"!type":"fn() -> +DocumentFragment","!url":"https://developer.mozilla.org/en/docs/DOM/range.cloneContents","!doc":"Returns a DocumentFragment copying the Nodes of a Range."},deleteContents:{"!type":"fn()","!url":"https://developer.mozilla.org/en/docs/DOM/range.deleteContents","!doc":"Removes the contents of a Range from the Document."},extractContents:{"!type":"fn() -> +DocumentFragment","!url":"https://developer.mozilla.org/en/docs/DOM/range.extractContents","!doc":"Moves contents of a Range from the document tree into a DocumentFragment."},insertNode:{"!type":"fn(node: +Element)","!url":"https://developer.mozilla.org/en/docs/DOM/range.insertNode","!doc":"Insert a node at the start of a Range."},surroundContents:{"!type":"fn(node: +Element)","!url":"https://developer.mozilla.org/en/docs/DOM/range.surroundContents","!doc":"Moves content of a Range into a new node, placing the new node at the start of the specified range."},compareBoundaryPoints:{"!type":"fn(how: number, other: +Range) -> number","!url":"https://developer.mozilla.org/en/docs/DOM/range.compareBoundaryPoints","!doc":"Compares the boundary points of two Ranges."},cloneRange:{"!type":"fn() -> +Range","!url":"https://developer.mozilla.org/en/docs/DOM/range.cloneRange","!doc":"Returns a Range object with boundary points identical to the cloned Range."},detach:{"!type":"fn()","!url":"https://developer.mozilla.org/en/docs/DOM/range.detach","!doc":"Releases a Range from use to improve performance. This lets the browser choose to release resources associated with this Range. Subsequent attempts to use the detached range will result in a DOMException being thrown with an error code of INVALID_STATE_ERR."},END_TO_END:"number",END_TO_START:"number",START_TO_END:"number",START_TO_START:"number"},"!url":"https://developer.mozilla.org/en/docs/DOM/range.detach","!doc":"Releases a Range from use to improve performance. This lets the browser choose to release resources associated with this Range. Subsequent attempts to use the detached range will result in a DOMException being thrown with an error code of INVALID_STATE_ERR."},XMLHttpRequest:{"!type":"fn()",prototype:{abort:{"!type":"fn()","!url":"https://developer.mozilla.org/en/docs/DOM/XMLHttpRequest","!doc":"Aborts the request if it has already been sent."},getAllResponseHeaders:{"!type":"fn() -> string","!url":"https://developer.mozilla.org/en/docs/DOM/XMLHttpRequest","!doc":"Returns all the response headers as a string, or null if no response has been received. Note: For multipart requests, this returns the headers from the current part of the request, not from the original channel."},getResponseHeader:{"!type":"fn(header: string) -> string","!url":"https://developer.mozilla.org/en/docs/DOM/XMLHttpRequest","!doc":"Returns the string containing the text of the specified header, or null if either the response has not yet been received or the header doesn't exist in the response."},open:{"!type":"fn(method: string, url: string, async?: bool, user?: string, password?: string)","!url":"https://developer.mozilla.org/en/docs/DOM/XMLHttpRequest","!doc":"Initializes a request."},overrideMimeType:{"!type":"fn(type: string)","!url":"https://developer.mozilla.org/en/docs/DOM/XMLHttpRequest","!doc":"Overrides the MIME type returned by the server."},send:{"!type":"fn(data?: string)","!url":"https://developer.mozilla.org/en/docs/DOM/XMLHttpRequest","!doc":"Sends the request. If the request is asynchronous (which is the default), this method returns as soon as the request is sent. If the request is synchronous, this method doesn't return until the response has arrived."},setRequestHeader:{"!type":"fn(header: string, value: string)","!url":"https://developer.mozilla.org/en/docs/DOM/XMLHttpRequest","!doc":"Sets the value of an HTTP request header.You must call setRequestHeader() after open(), but before send()."},onreadystatechange:{"!type":"fn()","!url":"https://developer.mozilla.org/en/docs/DOM/XMLHttpRequest","!doc":"A JavaScript function object that is called whenever the readyState attribute changes."},readyState:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/XMLHttpRequest","!doc":"The state of the request. (0=unsent, 1=opened, 2=headers_received, 3=loading, 4=done)"},response:{"!type":"+Document","!url":"https://developer.mozilla.org/en/docs/DOM/XMLHttpRequest","!doc":'The response entity body according to responseType, as an ArrayBuffer, Blob, Document, JavaScript object (for "json"), or string. This is null if the request is not complete or was not successful.'},responseText:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/XMLHttpRequest","!doc":"The response to the request as text, or null if the request was unsuccessful or has not yet been sent."},responseType:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/XMLHttpRequest","!doc":"Can be set to change the response type."},responseXML:{"!type":"+Document","!url":"https://developer.mozilla.org/en/docs/DOM/XMLHttpRequest","!doc":"The response to the request as a DOM Document object, or null if the request was unsuccessful, has not yet been sent, or cannot be parsed as XML or HTML."},status:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/XMLHttpRequest","!doc":"The status of the response to the request. This is the HTTP result code"},statusText:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/XMLHttpRequest","!doc":'The response string returned by the HTTP server. Unlike status, this includes the entire text of the response message ("200 OK", for example).'},timeout:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/XMLHttpRequest/Synchronous_and_Asynchronous_Requests","!doc":"The number of milliseconds a request can take before automatically being terminated. A value of 0 (which is the default) means there is no timeout."},UNSENT:"number",OPENED:"number",HEADERS_RECEIVED:"number",LOADING:"number",DONE:"number"},"!url":"https://developer.mozilla.org/en/docs/DOM/XMLHttpRequest","!doc":"XMLHttpRequest is a JavaScript object that was designed by Microsoft and adopted by Mozilla, Apple, and Google. It's now being standardized in the W3C. It provides an easy way to retrieve data at a URL. Despite its name, XMLHttpRequest can be used to retrieve any type of data, not just XML, and it supports protocols other than HTTP (including file and ftp)."},DOMParser:{"!type":"fn()",prototype:{parseFromString:{"!type":"fn(data: string, mime: string) -> +Document","!url":"https://developer.mozilla.org/en/docs/DOM/DOMParser","!doc":"DOMParser can parse XML or HTML source stored in a string into a DOM Document. DOMParser is specified in DOM Parsing and Serialization."}},"!url":"https://developer.mozilla.org/en/docs/DOM/DOMParser","!doc":"DOMParser can parse XML or HTML source stored in a string into a DOM Document. DOMParser is specified in DOM Parsing and Serialization."},FormData:{"!type":"fn()","!url":"https://developer.mozilla.org/en-US/docs/Web/API/FormData",prototype:{append:{"!type":"fn(name: string, value: ?, filename: string)","!url":"https://developer.mozilla.org/en-US/docs/Web/API/FormData/append","!doc":"Appends a new value onto an existing key inside a FormData object, or adds the key if it does not already exist."},"delete":{"!type":"fn(name: string)","!url":"https://developer.mozilla.org/en-US/docs/Web/API/FormData/delete","!doc":"Deletes a key/value pair from a FormData object."},get:{"!type":"fn(name: string)","!url":"https://developer.mozilla.org/en-US/docs/Web/API/FormData/get","!doc":"Returns the first value associated with a given key from within a FormData object."},getAll:{"!type":"fn(name: string)","!url":"https://developer.mozilla.org/en-US/docs/Web/API/FormData/getAll","!doc":"Returns an array of all the values associated with a given key from within a FormData."},has:{"!type":"fn(name: string)","!url":"https://developer.mozilla.org/en-US/docs/Web/API/FormData/has","!doc":"Returns a boolean stating whether a FormData object contains a certain key/value pair."},set:{"!type":"fn(name: string, value: ?, filename: string)","!url":"https://developer.mozilla.org/en-US/docs/Web/API/FormData/set","!doc":"Sets a new value for an existing key inside a FormData object, or adds the key/value if it does not already exist."}}},Selection:{"!type":"fn()",prototype:{anchorNode:{"!type":"+Element","!url":"https://developer.mozilla.org/en/docs/DOM/Selection/anchorNode","!doc":"Returns the node in which the selection begins."},anchorOffset:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/Selection/anchorOffset","!doc":"Returns the number of characters that the selection's anchor is offset within the anchorNode."},focusNode:{"!type":"+Element","!url":"https://developer.mozilla.org/en/docs/DOM/Selection/focusNode","!doc":"Returns the node in which the selection ends."},focusOffset:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/Selection/focusOffset","!doc":"Returns the number of characters that the selection's focus is offset within the focusNode. "},isCollapsed:{"!type":"bool","!url":"https://developer.mozilla.org/en/docs/DOM/Selection/isCollapsed","!doc":"Returns a boolean indicating whether the selection's start and end points are at the same position."},rangeCount:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/Selection/rangeCount","!doc":"Returns the number of ranges in the selection."},getRangeAt:{"!type":"fn(i: number) -> +Range","!url":"https://developer.mozilla.org/en/docs/DOM/Selection/getRangeAt","!doc":"Returns a range object representing one of the ranges currently selected."},collapse:{"!type":"fn()","!url":"https://developer.mozilla.org/en/docs/DOM/Selection/collapse","!doc":"Collapses the current selection to a single point. The document is not modified. If the content is focused and editable, the caret will blink there."},extend:{"!type":"fn(node: +Element, offset: number)","!url":"https://developer.mozilla.org/en/docs/DOM/Selection/extend","!doc":"Moves the focus of the selection to a specified point. The anchor of the selection does not move. The selection will be from the anchor to the new focus regardless of direction."},collapseToStart:{"!type":"fn()","!url":"https://developer.mozilla.org/en/docs/DOM/Selection/collapseToStart","!doc":"Collapses the selection to the start of the first range in the selection.  If the content of the selection is focused and editable, the caret will blink there."},collapseToEnd:{"!type":"fn()","!url":"https://developer.mozilla.org/en/docs/DOM/Selection/collapseToEnd","!doc":"Collapses the selection to the end of the last range in the selection.  If the content the selection is in is focused and editable, the caret will blink there."},selectAllChildren:{"!type":"fn(node: +Element)","!url":"https://developer.mozilla.org/en/docs/DOM/Selection/selectAllChildren","!doc":"Adds all the children of the specified node to the selection. Previous selection is lost."},addRange:{"!type":"fn(range: +Range)","!url":"https://developer.mozilla.org/en/docs/DOM/Selection/addRange","!doc":"Adds a Range to a Selection."},removeRange:{"!type":"fn(range: +Range)","!url":"https://developer.mozilla.org/en/docs/DOM/Selection/removeRange","!doc":"Removes a range from the selection."},removeAllRanges:{"!type":"fn()","!url":"https://developer.mozilla.org/en/docs/DOM/Selection/removeAllRanges","!doc":"Removes all ranges from the selection, leaving the anchorNode and focusNode properties equal to null and leaving nothing selected. "},deleteFromDocument:{"!type":"fn()","!url":"https://developer.mozilla.org/en/docs/DOM/Selection/deleteFromDocument","!doc":"Deletes the actual text being represented by a selection object from the document's DOM."},containsNode:{"!type":"fn(node: +Element) -> bool","!url":"https://developer.mozilla.org/en/docs/DOM/Selection/containsNode","!doc":"Indicates if the node is part of the selection."}},"!url":"https://developer.mozilla.org/en/docs/DOM/Selection","!doc":"Selection is the class of the object returned by window.getSelection() and other methods. It represents the text selection in the greater page, possibly spanning multiple elements, when the user drags over static text and other parts of the page. For information about text selection in an individual text editing element."},console:{error:{"!type":"fn(text: string)","!url":"https://developer.mozilla.org/en/docs/DOM/console.error","!doc":"Outputs an error message to the Web Console."},info:{"!type":"fn(text: string)","!url":"https://developer.mozilla.org/en/docs/DOM/console.info","!doc":"Outputs an informational message to the Web Console."},log:{"!type":"fn(text: string)","!url":"https://developer.mozilla.org/en/docs/DOM/console.log","!doc":"Outputs a message to the Web Console."},warn:{"!type":"fn(text: string)","!url":"https://developer.mozilla.org/en/docs/DOM/console.warn","!doc":"Outputs a warning message to the Web Console."},"!url":"https://developer.mozilla.org/en/docs/DOM/console","!doc":"The console object provides access to the browser's debugging console. The specifics of how it works vary from browser to browser, but there is a de facto set of features that are typically provided."},top:{"!type":"<top>","!url":"https://developer.mozilla.org/en/docs/DOM/window.top","!doc":"Returns a reference to the topmost window in the window hierarchy."},parent:{"!type":"<top>","!url":"https://developer.mozilla.org/en/docs/DOM/window.parent","!doc":"A reference to the parent of the current window or subframe."},window:{"!type":"<top>","!url":"https://developer.mozilla.org/en/docs/DOM/window","!doc":"The window object represents a window containing a DOM document."},opener:{"!type":"<top>","!url":"https://developer.mozilla.org/en/docs/DOM/window.opener","!doc":"Returns a reference to the window that opened this current window."},self:{"!type":"<top>","!url":"https://developer.mozilla.org/en/docs/DOM/window.self","!doc":"Returns an object reference to the window object. "},devicePixelRatio:"number",name:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/JavaScript/Reference/Global_Objects/Function/name","!doc":"The name of the function."},closed:{"!type":"bool","!url":"https://developer.mozilla.org/en/docs/DOM/window.closed","!doc":"This property indicates whether the referenced window is closed or not."},pageYOffset:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/window.scrollY","!doc":"Returns the number of pixels that the document has already been scrolled vertically."},pageXOffset:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/window.scrollX","!doc":"Returns the number of pixels that the document has already been scrolled vertically."},scrollY:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/window.scrollY","!doc":"Returns the number of pixels that the document has already been scrolled vertically."},scrollX:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/window.scrollX","!doc":"Returns the number of pixels that the document has already been scrolled vertically."},screenTop:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/window.screen.top","!doc":"Returns the distance in pixels from the top side of the current screen."},screenLeft:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/window.screen.left","!doc":"Returns the distance in pixels from the left side of the main screen to the left side of the current screen."},screenY:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/event.screenY","!doc":"Returns the vertical coordinate of the event within the screen as a whole."},screenX:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/event.screenX","!doc":"Returns the horizontal coordinate of the event within the screen as a whole."},innerWidth:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/window.innerWidth","!doc":"Width (in pixels) of the browser window viewport including, if rendered, the vertical scrollbar."},innerHeight:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/window.innerHeight","!doc":"Height (in pixels) of the browser window viewport including, if rendered, the horizontal scrollbar."},outerWidth:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/window.outerWidth","!doc":"window.outerWidth gets the width of the outside of the browser window. It represents the width of the whole browser window including sidebar (if expanded), window chrome and window resizing borders/handles."},outerHeight:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/window.outerHeight","!doc":"window.outerHeight gets the height in pixels of the whole browser window."},frameElement:{"!type":"+Element","!url":"https://developer.mozilla.org/en/docs/DOM/window.frameElement","!doc":"Returns the element (such as <iframe> or <object>) in which the window is embedded, or null if the window is top-level."},crypto:{getRandomValues:{"!type":"fn([number])","!url":"https://developer.mozilla.org/en/docs/DOM/window.crypto.getRandomValues","!doc":"This methods lets you get cryptographically random values."},"!url":"https://developer.mozilla.org/en/docs/DOM/window.crypto.getRandomValues","!doc":"This methods lets you get cryptographically random values."},navigator:{appName:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/window.navigator.appName","!doc":'Returns the name of the browser. The HTML5 specification also allows any browser to return "Netscape" here, for compatibility reasons.'},appVersion:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/window.navigator.appVersion","!doc":'Returns the version of the browser as a string. It may be either a plain version number, like "5.0", or a version number followed by more detailed information. The HTML5 specification also allows any browser to return "4.0" here, for compatibility reasons.'},language:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/window.navigator.language","!doc":"Returns a string representing the language version of the browser."},platform:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/window.navigator.platform","!doc":"Returns a string representing the platform of the browser."},plugins:{"!type":"[?]","!url":"https://developer.mozilla.org/en/docs/DOM/window.navigator.plugins","!doc":"Returns a PluginArray object, listing the plugins installed in the application."},userAgent:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/window.navigator.userAgent","!doc":"Returns the user agent string for the current browser."},vendor:{"!type":"string","!url":"https://developer.mozilla.org/en/docs/DOM/window.navigator.vendor","!doc":"Returns the name of the browser vendor for the current browser."},javaEnabled:{"!type":"bool","!url":"https://developer.mozilla.org/en/docs/DOM/window.navigator.javaEnabled","!doc":"This method indicates whether the current browser is Java-enabled or not."},"!url":"https://developer.mozilla.org/en/docs/DOM/window.navigator","!doc":"Returns a reference to the navigator object, which can be queried for information about the application running the script."},history:{state:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/Manipulating_the_browser_history","!doc":"The DOM window object provides access to the browser's history through the history object. It exposes useful methods and properties that let you move back and forth through the user's history, as well as -- starting with HTML5 -- manipulate the contents of the history stack."},length:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/Manipulating_the_browser_history","!doc":"The DOM window object provides access to the browser's history through the history object. It exposes useful methods and properties that let you move back and forth through the user's history, as well as -- starting with HTML5 -- manipulate the contents of the history stack."},go:{"!type":"fn(delta: number)","!url":"https://developer.mozilla.org/en/docs/DOM/window.history","!doc":"Returns a reference to the History object, which provides an interface for manipulating the browser session history (pages visited in the tab or frame that the current page is loaded in)."},forward:{"!type":"fn()","!url":"https://developer.mozilla.org/en/docs/DOM/Manipulating_the_browser_history","!doc":"The DOM window object provides access to the browser's history through the history object. It exposes useful methods and properties that let you move back and forth through the user's history, as well as -- starting with HTML5 -- manipulate the contents of the history stack."},back:{"!type":"fn()","!url":"https://developer.mozilla.org/en/docs/DOM/Manipulating_the_browser_history","!doc":"The DOM window object provides access to the browser's history through the history object. It exposes useful methods and properties that let you move back and forth through the user's history, as well as -- starting with HTML5 -- manipulate the contents of the history stack."},pushState:{"!type":"fn(data: ?, title: string, url?: string)","!url":"https://developer.mozilla.org/en/docs/DOM/Manipulating_the_browser_history","!doc":"The DOM window object provides access to the browser's history through the history object. It exposes useful methods and properties that let you move back and forth through the user's history, as well as -- starting with HTML5 -- manipulate the contents of the history stack."},replaceState:{"!type":"fn(data: ?, title: string, url?: string)","!url":"https://developer.mozilla.org/en/docs/DOM/Manipulating_the_browser_history","!doc":"The DOM window object provides access to the browser's history through the history object. It exposes useful methods and properties that let you move back and forth through the user's history, as well as -- starting with HTML5 -- manipulate the contents of the history stack."},"!url":"https://developer.mozilla.org/en/docs/DOM/Manipulating_the_browser_history","!doc":"The DOM window object provides access to the browser's history through the history object. It exposes useful methods and properties that let you move back and forth through the user's history, as well as -- starting with HTML5 -- manipulate the contents of the history stack."},screen:{availWidth:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/window.screen.availWidth","!doc":"Returns the amount of horizontal space in pixels available to the window."},availHeight:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/window.screen.availHeight","!doc":"Returns the amount of vertical space available to the window on the screen."},availTop:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/window.screen.availTop","!doc":"Specifies the y-coordinate of the first pixel that is not allocated to permanent or semipermanent user interface features."},availLeft:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/window.screen.availLeft","!doc":"Returns the first available pixel available from the left side of the screen."},pixelDepth:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/window.screen.pixelDepth","!doc":"Returns the bit depth of the screen."},colorDepth:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/window.screen.colorDepth","!doc":"Returns the color depth of the screen."},width:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/window.screen.width","!doc":"Returns the width of the screen."},height:{"!type":"number","!url":"https://developer.mozilla.org/en/docs/DOM/window.screen.height","!doc":"Returns the height of the screen in pixels."},"!url":"https://developer.mozilla.org/en/docs/DOM/window.screen","!doc":"Returns a reference to the screen object associated with the window."},postMessage:{"!type":"fn(message: string, targetOrigin: string)","!url":"https://developer.mozilla.org/en/docs/DOM/window.postMessage","!doc":"window.postMessage, when called, causes a MessageEvent to be dispatched at the target window when any pending script that must be executed completes (e.g. remaining event handlers if window.postMessage is called from an event handler, previously-set pending timeouts, etc.). The MessageEvent has the type message, a data property which is set to the value of the first argument provided to window.postMessage, an origin property corresponding to the origin of the main document in the window calling window.postMessage at the time window.postMessage was called, and a source property which is the window from which window.postMessage is called. (Other standard properties of events are present with their expected values.)"},close:{"!type":"fn()","!url":"https://developer.mozilla.org/en/docs/DOM/window.close","!doc":"Closes the current window, or a referenced window."},blur:{"!type":"fn()","!url":"https://developer.mozilla.org/en/docs/DOM/element.blur","!doc":"The blur method removes keyboard focus from the current element."},focus:{"!type":"fn()","!url":"https://developer.mozilla.org/en/docs/DOM/element.focus","!doc":"Sets focus on the specified element, if it can be focused."},onload:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/window.onload","!doc":"An event handler for the load event of a window."},onunload:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/window.onunload","!doc":"The unload event is raised when the window is unloading its content and resources. The resources removal is processed after the unload event occurs."},onscroll:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/window.onscroll","!doc":"Specifies the function to be called when the window is scrolled."},onresize:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/window.onresize","!doc":"An event handler for the resize event on the window."},ononline:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/document.ononline","!doc":'"online" event is fired when the browser switches between online and offline mode.'},onoffline:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/Online_and_offline_events","!doc":"Some browsers implement Online/Offline events from the WHATWG Web Applications 1.0 specification."},onmousewheel:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/DOM_event_reference/mousewheel","!doc":"The DOM mousewheel event is fired asynchronously when mouse wheel or similar device is operated. It's represented by the MouseWheelEvent interface."},onmouseup:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/window.onmouseup","!doc":"An event handler for the mouseup event on the window."},onmouseover:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/element.onmouseover","!doc":"The onmouseover property returns the onMouseOver event handler code on the current element."},onmouseout:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/element.onmouseout","!doc":"The onmouseout property returns the onMouseOut event handler code on the current element."},onmousemove:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/element.onmousemove","!doc":"The onmousemove property returns the mousemove event handler code on the current element."},onmousedown:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/window.onmousedown","!doc":"An event handler for the mousedown event on the window."},onclick:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/element.onclick","!doc":"The onclick property returns the onClick event handler code on the current element."},ondblclick:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/element.ondblclick","!doc":"The ondblclick property returns the onDblClick event handler code on the current element."},onmessage:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/Worker","!doc":"Dedicated Web Workers provide a simple means for web content to run scripts in background threads.  Once created, a worker can send messages to the spawning task by posting messages to an event handler specified by the creator."},onkeyup:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/element.onkeyup","!doc":"The onkeyup property returns the onKeyUp event handler code for the current element."},onkeypress:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/element.onkeypress","!doc":"The onkeypress property sets and returns the onKeyPress event handler code for the current element."},onkeydown:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/window.onkeydown","!doc":"An event handler for the keydown event on the window."},oninput:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/DOM_event_reference/input","!doc":"The DOM input event is fired synchronously when the value of an <input> or <textarea> element is changed. Additionally, it's also fired on contenteditable editors when its contents are changed. In this case, the event target is the editing host element. If there are two or more elements which have contenteditable as true, \"editing host\" is the nearest ancestor element whose parent isn't editable. Similarly, it's also fired on root element of designMode editors."},onpopstate:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/window.onpopstate","!doc":"An event handler for the popstate event on the window."},onhashchange:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/window.onhashchange","!doc":"The hashchange event fires when a window's hash changes."},onfocus:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/element.onfocus","!doc":"The onfocus property returns the onFocus event handler code on the current element."},onblur:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/element.onblur","!doc":"The onblur property returns the onBlur event handler code, if any, that exists on the current element."},onerror:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/window.onerror","!doc":"An event handler for runtime script errors."},ondrop:{"!type":"?","!url":"https://developer.mozilla.org/en-US/docs/DOM/Mozilla_event_reference/drop","!doc":"The drop event is fired when an element or text selection is dropped on a valid drop target."},ondragstart:{"!type":"?","!url":"https://developer.mozilla.org/en-US/docs/DOM/Mozilla_event_reference/dragstart","!doc":"The dragstart event is fired when the user starts dragging an element or text selection."},ondragover:{"!type":"?","!url":"https://developer.mozilla.org/en-US/docs/DOM/Mozilla_event_reference/dragover","!doc":"The dragover event is fired when an element or text selection is being dragged over a valid drop target (every few hundred milliseconds)."},ondragleave:{"!type":"?","!url":"https://developer.mozilla.org/en-US/docs/DOM/Mozilla_event_reference/dragleave","!doc":"The dragleave event is fired when a dragged element or text selection leaves a valid drop target."},ondragenter:{"!type":"?","!url":"https://developer.mozilla.org/en-US/docs/DOM/Mozilla_event_reference/dragenter","!doc":"The dragenter event is fired when a dragged element or text selection enters a valid drop target."},ondragend:{"!type":"?","!url":"https://developer.mozilla.org/en-US/docs/DOM/Mozilla_event_reference/dragend","!doc":"The dragend event is fired when a drag operation is being ended (by releasing a mouse button or hitting the escape key)."},ondrag:{"!type":"?","!url":"https://developer.mozilla.org/en-US/docs/DOM/Mozilla_event_reference/drag","!doc":"The drag event is fired when an element or text selection is being dragged (every few hundred milliseconds)."},oncontextmenu:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/window.oncontextmenu","!doc":'An event handler property for right-click events on the window. Unless the default behavior is prevented, the browser context menu will activate (though IE8 has a bug with this and will not activate the context menu if a contextmenu event handler is defined). Note that this event will occur with any non-disabled right-click event and does not depend on an element possessing the "contextmenu" attribute.'},onchange:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/element.onchange","!doc":"The onchange property sets and returns the onChange event handler code for the current element."},onbeforeunload:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/window.onbeforeunload","!doc":"An event that fires when a window is about to unload its resources. The document is still visible and the event is still cancelable."},onabort:{"!type":"?","!url":"https://developer.mozilla.org/en/docs/DOM/window.onabort","!doc":"An event handler for abort events sent to the window."},getSelection:{"!type":"fn() -> +Selection","!url":"https://developer.mozilla.org/en/docs/DOM/window.getSelection","!doc":"Returns a selection object representing the range of text selected by the user. "},alert:{"!type":"fn(message: string)","!url":"https://developer.mozilla.org/en/docs/DOM/window.alert","!doc":"Display an alert dialog with the specified content and an OK button."},confirm:{"!type":"fn(message: string) -> bool","!url":"https://developer.mozilla.org/en/docs/DOM/window.confirm","!doc":"Displays a modal dialog with a message and two buttons, OK and Cancel."},prompt:{"!type":"fn(message: string, value: string) -> string","!url":"https://developer.mozilla.org/en/docs/DOM/window.prompt","!doc":"Displays a dialog with a message prompting the user to input some text."},scrollBy:{"!type":"fn(x: number, y: number)","!url":"https://developer.mozilla.org/en/docs/DOM/window.scrollBy","!doc":"Scrolls the document in the window by the given amount."},scrollTo:{"!type":"fn(x: number, y: number)","!url":"https://developer.mozilla.org/en/docs/DOM/window.scrollTo","!doc":"Scrolls to a particular set of coordinates in the document."},scroll:{"!type":"fn(x: number, y: number)","!url":"https://developer.mozilla.org/en/docs/DOM/window.scroll","!doc":"Scrolls the window to a particular place in the document."},setTimeout:{"!type":"fn(f: fn(), ms: number) -> number","!url":"https://developer.mozilla.org/en/docs/DOM/window.setTimeout","!doc":"Calls a function or executes a code snippet after specified delay."},clearTimeout:{"!type":"fn(timeout: number)","!url":"https://developer.mozilla.org/en/docs/DOM/window.clearTimeout","!doc":"Clears the delay set by window.setTimeout()."},setInterval:{"!type":"fn(f: fn(), ms: number) -> number","!url":"https://developer.mozilla.org/en/docs/DOM/window.setInterval","!doc":"Calls a function or executes a code snippet repeatedly, with a fixed time delay between each call to that function."},clearInterval:{"!type":"fn(interval: number)","!url":"https://developer.mozilla.org/en/docs/DOM/window.clearInterval","!doc":"Cancels repeated action which was set up using setInterval."},atob:{"!type":"fn(encoded: string) -> string","!url":"https://developer.mozilla.org/en/docs/DOM/window.atob","!doc":"Decodes a string of data which has been encoded using base-64 encoding."},btoa:{"!type":"fn(data: string) -> string","!url":"https://developer.mozilla.org/en/docs/DOM/window.btoa","!doc":"Creates a base-64 encoded ASCII string from a string of binary data."},addEventListener:{"!type":"fn(type: string, listener: fn(e: +Event), capture: bool)","!url":"https://developer.mozilla.org/en/docs/DOM/EventTarget.addEventListener","!doc":"Registers a single event listener on a single target. The event target may be a single element in a document, the document itself, a window, or an XMLHttpRequest."},removeEventListener:{"!type":"fn(type: string, listener: fn(), capture: bool)","!url":"https://developer.mozilla.org/en/docs/DOM/EventTarget.removeEventListener","!doc":"Allows the removal of event listeners from the event target."},dispatchEvent:{"!type":"fn(event: +Event) -> bool","!url":"https://developer.mozilla.org/en/docs/DOM/EventTarget.dispatchEvent","!doc":"Dispatches an event into the event system. The event is subject to the same capturing and bubbling behavior as directly dispatched events."},getComputedStyle:{"!type":"fn(node: +Element, pseudo?: string) -> Element.prototype.style","!url":"https://developer.mozilla.org/en/docs/DOM/window.getComputedStyle","!doc":"Gives the final used values of all the CSS properties of an element."},CanvasRenderingContext2D:{canvas:"+Element",width:"number",height:"number",commit:"fn()",save:"fn()",restore:"fn()",currentTransform:"?",scale:"fn(x: number, y: number)",rotate:"fn(angle: number)",translate:"fn(x: number, y: number)",transform:"fn(a: number, b: number, c: number, d: number, e: number, f: number)",setTransform:"fn(a: number, b: number, c: number, d: number, e: number, f: number)",resetTransform:"fn()",globalAlpha:"number",globalCompositeOperation:"string",imageSmoothingEnabled:"bool",strokeStyle:"string",fillStyle:"string",createLinearGradient:"fn(x0: number, y0: number, x1: number, y1: number) -> ?",createPattern:"fn(image: ?, repetition: string) -> ?",shadowOffsetX:"number",shadowOffsetY:"number",shadowBlur:"number",shadowColor:"string",clearRect:"fn(x: number, y: number, w: number, h: number)",fillRect:"fn(x: number, y: number, w: number, h: number)",strokeRect:"fn(x: number, y: number, w: number, h: number)",fillRule:"string",fill:"fn()",beginPath:"fn()",stroke:"fn()",clip:"fn()",resetClip:"fn()",fillText:"fn(text: string, x: number, y: number, maxWidth: number)",strokeText:"fn(text: string, x: number, y: number, maxWidth: number)",measureText:"fn(text: string) -> ?",drawImage:"fn(image: ?, dx: number, dy: number)",createImageData:"fn(sw: number, sh: number) -> ?",getImageData:"fn(sx: number, sy: number, sw: number, sh: number) -> ?",putImageData:"fn(imagedata: ?, dx: number, dy: number)",lineWidth:"number",lineCap:"string",lineJoin:"string",miterLimit:"number",setLineDash:"fn(segments: [number])",getLineDash:"fn() -> [number]",lineDashOffset:"number",font:"string",textAlign:"string",textBaseline:"string",direction:"string",closePath:"fn()",moveTo:"fn(x: number, y: number)",lineTo:"fn(x: number, y: number)",quadraticCurveTo:"fn(cpx: number, cpy: number, x: number, y: number)",bezierCurveTo:"fn(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number)",arcTo:"fn(x1: number, y1: number, x2: number, y2: number, radius: number)",rect:"fn(x: number, y: number, w: number, h: number)",arc:"fn(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: bool)",ellipse:"fn(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, anticlockwise: bool)"}}
}),define("json!tern/defs/chai.json",function(){return{"!name":"chai",chai:{should:{Language:{"!doc":"Language Chains\n\n\n\nThe following are provided as chainable getters to\nimprove the readability of your assertions. They\ndo not provide an testing capability unless they\nhave been overwritten by a plugin.Chains\n\n","!url":"http://chaijs.com/api/bdd/#Language","!type":"fn() -> bool"},not:{"!doc":".not\n\n\n\nNegates any of assertions following in the chain.\n\nexpect(foo).to.not.equal('bar');\nexpect(goodFn).to.not.throw(Error);\nexpect({ foo: 'baz' }).to.have.property('foo')\n  .and.not.equal('bar');","!url":"http://chaijs.com/api/bdd/#not","!type":"fn() -> bool"},deep:{"!doc":".deep\n\n\n\nSets the deep flag, later used by the equal and\nproperty assertions.\n\nexpect(foo).to.deep.equal({ bar: 'baz' });\nexpect({ foo: { bar: { baz: 'quux' } } })\n  .to.have.deep.property('foo.bar.baz', 'quux');","!url":"http://chaijs.com/api/bdd/#deep","!type":"fn() -> bool"},a:{"!doc":".a(type)\n\n  * @param { String } type\n  * @param { String } message_optional_\n\nThe a and an assertions are aliases that can be\nused either as language chains or to assert a value's\ntype.\n\n// typeof\nexpect('test').to.be.a('string');\nexpect({ foo: 'bar' }).to.be.an('object');\nexpect(null).to.be.a('null');\nexpect(undefined).to.be.an('undefined');\n\n// language chain\nexpect(foo).to.be.an.instanceof(Foo);","!url":"http://chaijs.com/api/bdd/#a","!type":"fn(type: string, message: string) -> bool"},include:{"!doc":".include(value)\n\n  * @param { Object | String | Number } obj\n  * @param { String } message_optional_\n\nThe include and contain assertions can be used as either property\nbased language chains or as methods to assert the inclusion of an object\nin an array or a substring in a string. When used as language chains,\nthey toggle the contain flag for the keys assertion.\n\nexpect([1,2,3]).to.include(2);\nexpect('foobar').to.contain('foo');\nexpect({ foo: 'bar', hello: 'universe' }).to.include.keys('foo');","!url":"http://chaijs.com/api/bdd/#include","!type":"fn(obj: object, message: string) -> bool"},ok:{"!doc":".ok\n\n\n\nAsserts that the target is truthy.\n\nexpect('everthing').to.be.ok;\nexpect(1).to.be.ok;\nexpect(false).to.not.be.ok;\nexpect(undefined).to.not.be.ok;\nexpect(null).to.not.be.ok;","!url":"http://chaijs.com/api/bdd/#ok","!type":"fn() -> bool"},"true":{"!doc":".true\n\n\n\nAsserts that the target is true.\n\nexpect(true).to.be.true;\nexpect(1).to.not.be.true;","!url":"http://chaijs.com/api/bdd/#true","!type":"fn() -> bool"},"false":{"!doc":".false\n\n\n\nAsserts that the target is false.\n\nexpect(false).to.be.false;\nexpect(0).to.not.be.false;","!url":"http://chaijs.com/api/bdd/#false","!type":"fn() -> bool"},"null":{"!doc":".null\n\n\n\nAsserts that the target is null.\n\nexpect(null).to.be.null;\nexpect(undefined).not.to.be.null;","!url":"http://chaijs.com/api/bdd/#null","!type":"fn() -> bool"},undefined:{"!doc":".undefined\n\n\n\nAsserts that the target is undefined.\n\nexpect(undefined).to.be.undefined;\nexpect(null).to.not.be.undefined;","!url":"http://chaijs.com/api/bdd/#undefined","!type":"fn() -> bool"},exist:{"!doc":".exist\n\n\n\nAsserts that the target is neither null nor undefined.\n\nvar foo = 'hi'\n  , bar = null\n  , baz;\n\nexpect(foo).to.exist;\nexpect(bar).to.not.exist;\nexpect(baz).to.not.exist;","!url":"http://chaijs.com/api/bdd/#exist","!type":"fn() -> bool"},empty:{"!doc":".empty\n\n\n\nAsserts that the target's length is 0. For arrays, it checks\nthe length property. For objects, it gets the count of\nenumerable keys.\n\nexpect([]).to.be.empty;\nexpect('').to.be.empty;\nexpect({}).to.be.empty;","!url":"http://chaijs.com/api/bdd/#empty","!type":"fn() -> bool"},arguments:{"!doc":".arguments\n\n\n\nAsserts that the target is an arguments object.\n\nfunction test () {\n  expect(arguments).to.be.arguments;\n}","!url":"http://chaijs.com/api/bdd/#arguments","!type":"fn() -> bool"},equal:{"!doc":".equal(value)\n\n  * @param { Mixed } value\n  * @param { String } message_optional_\n\nAsserts that the target is strictly equal (===) to value.\nAlternately, if the deep flag is set, asserts that\nthe target is deeply equal to value.\n\nexpect('hello').to.equal('hello');\nexpect(42).to.equal(42);\nexpect(1).to.not.equal(true);\nexpect({ foo: 'bar' }).to.not.equal({ foo: 'bar' });\nexpect({ foo: 'bar' }).to.deep.equal({ foo: 'bar' });","!url":"http://chaijs.com/api/bdd/#equal","!type":"fn(value: mixed, message: string) -> bool"},eql:{"!doc":".eql(value)\n\n  * @param { Mixed } value\n  * @param { String } message_optional_\n\nAsserts that the target is deeply equal to value.\n\nexpect({ foo: 'bar' }).to.eql({ foo: 'bar' });\nexpect([ 1, 2, 3 ]).to.eql([ 1, 2, 3 ]);","!url":"http://chaijs.com/api/bdd/#eql","!type":"fn(value: mixed, message: string) -> bool"},above:{"!doc":".above(value)\n\n  * @param { Number } value\n  * @param { String } message_optional_\n\nAsserts that the target is greater than value.Can also be used in conjunction with length to\nassert a minimum length. The benefit being a\nmore informative error message than if the length\nwas supplied directly.\n\nexpect(10).to.be.above(5);expect('foo').to.have.length.above(2);\nexpect([ 1, 2, 3 ]).to.have.length.above(2);","!url":"http://chaijs.com/api/bdd/#above","!type":"fn(value: number, message: string) -> bool"},least:{"!doc":".least(value)\n\n  * @param { Number } value\n  * @param { String } message_optional_\n\nAsserts that the target is greater than or equal to value.Can also be used in conjunction with length to\nassert a minimum length. The benefit being a\nmore informative error message than if the length\nwas supplied directly.\n\nexpect(10).to.be.at.least(10);expect('foo').to.have.length.of.at.least(2);\nexpect([ 1, 2, 3 ]).to.have.length.of.at.least(3);","!url":"http://chaijs.com/api/bdd/#least","!type":"fn(value: number, message: string) -> bool"},below:{"!doc":".below(value)\n\n  * @param { Number } value\n  * @param { String } message_optional_\n\nAsserts that the target is less than value.Can also be used in conjunction with length to\nassert a maximum length. The benefit being a\nmore informative error message than if the length\nwas supplied directly.\n\nexpect(5).to.be.below(10);expect('foo').to.have.length.below(4);\nexpect([ 1, 2, 3 ]).to.have.length.below(4);","!url":"http://chaijs.com/api/bdd/#below","!type":"fn(value: number, message: string) -> bool"},most:{"!doc":".most(value)\n\n  * @param { Number } value\n  * @param { String } message_optional_\n\nAsserts that the target is less than or equal to value.Can also be used in conjunction with length to\nassert a maximum length. The benefit being a\nmore informative error message than if the length\nwas supplied directly.\n\nexpect(5).to.be.at.most(5);expect('foo').to.have.length.of.at.most(4);\nexpect([ 1, 2, 3 ]).to.have.length.of.at.most(3);","!url":"http://chaijs.com/api/bdd/#most","!type":"fn(value: number, message: string) -> bool"},within:{"!doc":".within(start, finish)\n\n  * @param { Number } startlowerbound inclusive\n  * @param { Number } finishupperbound inclusive\n  * @param { String } message_optional_\n\nAsserts that the target is within a range.Can also be used in conjunction with length to\nassert a length range. The benefit being a\nmore informative error message than if the length\nwas supplied directly.\n\nexpect(7).to.be.within(5,10);expect('foo').to.have.length.within(2,4);\nexpect([ 1, 2, 3 ]).to.have.length.within(2,4);","!url":"http://chaijs.com/api/bdd/#within","!type":"fn(start: number, finish: number, message: string) -> bool"},"instanceof":{"!doc":".instanceof(constructor)\n\n  * @param { Constructor } constructor\n  * @param { String } message_optional_\n\nAsserts that the target is an instance of constructor.\n\nvar Tea = function (name) { this.name = name; }\n  , Chai = new Tea('chai');\n\nexpect(Chai).to.be.an.instanceof(Tea);\nexpect([ 1, 2, 3 ]).to.be.instanceof(Array);","!url":"http://chaijs.com/api/bdd/#instanceof","!type":"fn(constructor: constructor, message: string) -> bool"},property:{"!doc":".property(name, [value])\n\n  * @param { String } name\n  * @param { Mixed } value(optional)\n  * @param { String } message_optional_\n\nAsserts that the target has a property name, optionally asserting that\nthe value of that property is strictly equal to  value.\nIf the deep flag is set, you can use dot- and bracket-notation for deep\nreferences into objects and arrays.You can also use an array as the starting point of a deep.property\nassertion, or traverse nested arrays.Furthermore, property changes the subject of the assertion\nto be the value of that property from the original object. This\npermits for further chainable assertions on that property.\n\n// simple referencing\nvar obj = { foo: 'bar' };\nexpect(obj).to.have.property('foo');\nexpect(obj).to.have.property('foo', 'bar');\n\n// deep referencing\nvar deepObj = {\n    green: { tea: 'matcha' }\n  , teas: [ 'chai', 'matcha', { tea: 'konacha' } ]\n};\n\nexpect(deepObj).to.have.deep.property('green.tea', 'matcha');\nexpect(deepObj).to.have.deep.property('teas[1]', 'matcha');\nexpect(deepObj).to.have.deep.property('teas[2].tea', 'konacha');var arr = [\n    [ 'chai', 'matcha', 'konacha' ]\n  , [ { tea: 'chai' }\n    , { tea: 'matcha' }\n    , { tea: 'konacha' } ]\n];\n\nexpect(arr).to.have.deep.property('[0][1]', 'matcha');\nexpect(arr).to.have.deep.property('[1][2].tea', 'konacha');expect(obj).to.have.property('foo')\n  .that.is.a('string');\nexpect(deepObj).to.have.property('green')\n  .that.is.an('object')\n  .that.deep.equals({ tea: 'matcha' });\nexpect(deepObj).to.have.property('teas')\n  .that.is.an('array')\n  .with.deep.property('[2]')\n    .that.deep.equals({ tea: 'konacha' });","!url":"http://chaijs.com/api/bdd/#property","!type":"fn(name: string, value: [mixed], message: string) -> bool"},ownProperty:{"!doc":".ownProperty(name)\n\n  * @param { String } name\n  * @param { String } message_optional_\n\nAsserts that the target has an own property name.\n\nexpect('test').to.have.ownProperty('length');","!url":"http://chaijs.com/api/bdd/#ownProperty","!type":"fn(name: string, message: string) -> bool"},length:{"!doc":".length(value)\n\n  * @param { Number } length\n  * @param { String } message_optional_\n\nAsserts that the target's length property has\nthe expected value.Can also be used as a chain precursor to a value\ncomparison for the length property.\n\nexpect([ 1, 2, 3]).to.have.length(3);\nexpect('foobar').to.have.length(6);expect('foo').to.have.length.above(2);\nexpect([ 1, 2, 3 ]).to.have.length.above(2);\nexpect('foo').to.have.length.below(4);\nexpect([ 1, 2, 3 ]).to.have.length.below(4);\nexpect('foo').to.have.length.within(2,4);\nexpect([ 1, 2, 3 ]).to.have.length.within(2,4);","!url":"http://chaijs.com/api/bdd/#length","!type":"fn(length: number, message: string) -> bool"},match:{"!doc":".match(regexp)\n\n  * @param { RegExp } RegularExpression\n  * @param { String } message_optional_\n\nAsserts that the target matches a regular expression.\n\nexpect('foobar').to.match(/^foo/);","!url":"http://chaijs.com/api/bdd/#match","!type":"fn(RegularExpression: regexp, message: string) -> bool"},string:{"!doc":".string(string)\n\n  * @param { String } string\n  * @param { String } message_optional_\n\nAsserts that the string target contains another string.\n\nexpect('foobar').to.have.string('bar');","!url":"http://chaijs.com/api/bdd/#string","!type":"fn(string: string, message: string) -> bool"},keys:{"!doc":".keys(key1, [key2], [...])\n\n  * @param { String... | Array } keys\n\nAsserts that the target has exactly the given keys, or\nasserts the inclusion of some keys when using the\ninclude or contain modifiers.\n\nexpect({ foo: 1, bar: 2 }).to.have.keys(['foo', 'bar']);\nexpect({ foo: 1, bar: 2, baz: 3 }).to.contain.keys('foo', 'bar');","!url":"http://chaijs.com/api/bdd/#keys","!type":"fn(keys: string) -> bool"},"throw":{"!doc":".throw(constructor)\n\n  * @param { ErrorConstructor } constructor\n  * @param { String | RegExp } expectederror message\n  * @param { String } message_optional_\n  * @seehttps://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error#Error_types  \n\nAsserts that the function target will throw a specific error, or specific type of error\n(as determined using instanceof), optionally with a RegExp or string inclusion test\nfor the error's message.Please note that when a throw expectation is negated, it will check each\nparameter independently, starting with error constructor type. The appropriate way\nto check for the existence of a type of error but for a message that does not match\nis to use and.\n\nvar err = new ReferenceError('This is a bad function.');\nvar fn = function () { throw err; }\nexpect(fn).to.throw(ReferenceError);\nexpect(fn).to.throw(Error);\nexpect(fn).to.throw(/bad function/);\nexpect(fn).to.not.throw('good function');\nexpect(fn).to.throw(ReferenceError, /bad function/);\nexpect(fn).to.throw(err);\nexpect(fn).to.not.throw(new RangeError('Out of range.'));expect(fn).to.throw(ReferenceError)\n   .and.not.throw(/good function/);","!url":"http://chaijs.com/api/bdd/#throw","!type":"fn(constructor: errorconstructor, expected: string, message: string) -> bool"},respondTo:{"!doc":".respondTo(method)\n\n  * @param { String } method\n  * @param { String } message_optional_\n\nAsserts that the object or class target will respond to a method.To check if a constructor will respond to a static function,\nset the itself flag.\n\nKlass.prototype.bar = function(){};\nexpect(Klass).to.respondTo('bar');\nexpect(obj).to.respondTo('bar');Klass.baz = function(){};\nexpect(Klass).itself.to.respondTo('baz');","!url":"http://chaijs.com/api/bdd/#respondTo","!type":"fn(method: string, message: string) -> bool"},itself:{"!doc":".itself\n\n\n\nSets the itself flag, later used by the respondTo assertion.\n\nfunction Foo() {}\nFoo.bar = function() {}\nFoo.prototype.baz = function() {}\n\nexpect(Foo).itself.to.respondTo('bar');\nexpect(Foo).itself.not.to.respondTo('baz');","!url":"http://chaijs.com/api/bdd/#itself","!type":"fn() -> bool"},satisfy:{"!doc":".satisfy(method)\n\n  * @param { Function } matcher\n  * @param { String } message_optional_\n\nAsserts that the target passes a given truth test.\n\nexpect(1).to.satisfy(function(num) { return num > 0; });","!url":"http://chaijs.com/api/bdd/#satisfy","!type":"fn(matcher: function, message: string) -> bool"},closeTo:{"!doc":".closeTo(expected, delta)\n\n  * @param { Number } expected\n  * @param { Number } delta\n  * @param { String } message_optional_\n\nAsserts that the target is equal expected, to within a +/- delta range.\n\nexpect(1.5).to.be.closeTo(1, 0.5);","!url":"http://chaijs.com/api/bdd/#closeTo","!type":"fn(expected: number, delta: number, message: string) -> bool"},members:{"!doc":".members(set)\n\n  * @param { Array } set\n  * @param { String } message_optional_\n\nAsserts that the target is a superset of set,\nor that the target and set have the same members.\n\nexpect([1, 2, 3]).to.include.members([3, 2]);\nexpect([1, 2, 3]).to.not.include.members([3, 2, 8]);\n\nexpect([4, 2]).to.have.members([2, 4]);\nexpect([5, 2]).to.not.have.members([5, 2, 1]);","!url":"http://chaijs.com/api/bdd/#members","!type":"fn(set: array, message: string) -> bool"}},assert:{assert:{"!doc":"assert(expression, message)\n\n  * @param { Mixed } expressionto test for truthiness\n  * @param { String } messageto display on error\n\nWrite your own test expressions.\n\nassert('foo' !== 'bar', 'foo is not bar');\nassert(Array.isArray([]), 'empty arrays are arrays');","!url":"http://chaijs.com/api/assert/#assert","!type":"fn(expression: mixed, message: string) -> bool"},fail:{"!doc":".fail(actual, expected, [message], [operator])\n\n  * @param { Mixed } actual\n  * @param { Mixed } expected\n  * @param { String } message\n  * @param { String } operator\n\nThrow a failure. Node.js assert module-compatible.\n\n","!url":"http://chaijs.com/api/assert/#fail","!type":"fn(actual: mixed, expected: mixed, message: [string], operator: [string]) -> bool"},ok:{"!doc":".ok(object, [message])\n\n  * @param { Mixed } objectto test\n  * @param { String } message\n\nAsserts that object is truthy.\n\nassert.ok('everything', 'everything is ok');\nassert.ok(false, 'this will fail');","!url":"http://chaijs.com/api/assert/#ok","!type":"fn(object: mixed, message: [string]) -> bool"},notOk:{"!doc":".notOk(object, [message])\n\n  * @param { Mixed } objectto test\n  * @param { String } message\n\nAsserts that object is falsy.\n\nassert.notOk('everything', 'this will fail');\nassert.notOk(false, 'this will pass');","!url":"http://chaijs.com/api/assert/#notOk","!type":"fn(object: mixed, message: [string]) -> bool"},equal:{"!doc":".equal(actual, expected, [message])\n\n  * @param { Mixed } actual\n  * @param { Mixed } expected\n  * @param { String } message\n\nAsserts non-strict equality (==) of actual and expected.\n\nassert.equal(3, '3', '== coerces values to strings');","!url":"http://chaijs.com/api/assert/#equal","!type":"fn(actual: mixed, expected: mixed, message: [string]) -> bool"},notEqual:{"!doc":".notEqual(actual, expected, [message])\n\n  * @param { Mixed } actual\n  * @param { Mixed } expected\n  * @param { String } message\n\nAsserts non-strict inequality (!=) of actual and expected.\n\nassert.notEqual(3, 4, 'these numbers are not equal');","!url":"http://chaijs.com/api/assert/#notEqual","!type":"fn(actual: mixed, expected: mixed, message: [string]) -> bool"},strictEqual:{"!doc":".strictEqual(actual, expected, [message])\n\n  * @param { Mixed } actual\n  * @param { Mixed } expected\n  * @param { String } message\n\nAsserts strict equality (===) of actual and expected.\n\nassert.strictEqual(true, true, 'these booleans are strictly equal');","!url":"http://chaijs.com/api/assert/#strictEqual","!type":"fn(actual: mixed, expected: mixed, message: [string]) -> bool"},notStrictEqual:{"!doc":".notStrictEqual(actual, expected, [message])\n\n  * @param { Mixed } actual\n  * @param { Mixed } expected\n  * @param { String } message\n\nAsserts strict inequality (!==) of actual and expected.\n\nassert.notStrictEqual(3, '3', 'no coercion for strict equality');","!url":"http://chaijs.com/api/assert/#notStrictEqual","!type":"fn(actual: mixed, expected: mixed, message: [string]) -> bool"},deepEqual:{"!doc":".deepEqual(actual, expected, [message])\n\n  * @param { Mixed } actual\n  * @param { Mixed } expected\n  * @param { String } message\n\nAsserts that actual is deeply equal to expected.\n\nassert.deepEqual({ tea: 'green' }, { tea: 'green' });","!url":"http://chaijs.com/api/assert/#deepEqual","!type":"fn(actual: mixed, expected: mixed, message: [string]) -> bool"},notDeepEqual:{"!doc":".notDeepEqual(actual, expected, [message])\n\n  * @param { Mixed } actual\n  * @param { Mixed } expected\n  * @param { String } message\n\nAssert that actual is not deeply equal to expected.\n\nassert.notDeepEqual({ tea: 'green' }, { tea: 'jasmine' });","!url":"http://chaijs.com/api/assert/#notDeepEqual","!type":"fn(actual: mixed, expected: mixed, message: [string]) -> bool"},isTrue:{"!doc":".isTrue(value, [message])\n\n  * @param { Mixed } value\n  * @param { String } message\n\nAsserts that value is true.\n\nvar teaServed = true;\nassert.isTrue(teaServed, 'the tea has been served');","!url":"http://chaijs.com/api/assert/#isTrue","!type":"fn(value: mixed, message: [string]) -> bool"},isFalse:{"!doc":".isFalse(value, [message])\n\n  * @param { Mixed } value\n  * @param { String } message\n\nAsserts that value is false.\n\nvar teaServed = false;\nassert.isFalse(teaServed, 'no tea yet? hmm...');","!url":"http://chaijs.com/api/assert/#isFalse","!type":"fn(value: mixed, message: [string]) -> bool"},isNull:{"!doc":".isNull(value, [message])\n\n  * @param { Mixed } value\n  * @param { String } message\n\nAsserts that value is null.\n\nassert.isNull(err, 'there was no error');","!url":"http://chaijs.com/api/assert/#isNull","!type":"fn(value: mixed, message: [string]) -> bool"},isNotNull:{"!doc":".isNotNull(value, [message])\n\n  * @param { Mixed } value\n  * @param { String } message\n\nAsserts that value is not null.\n\nvar tea = 'tasty chai';\nassert.isNotNull(tea, 'great, time for tea!');","!url":"http://chaijs.com/api/assert/#isNotNull","!type":"fn(value: mixed, message: [string]) -> bool"},isUndefined:{"!doc":".isUndefined(value, [message])\n\n  * @param { Mixed } value\n  * @param { String } message\n\nAsserts that value is undefined.\n\nvar tea;\nassert.isUndefined(tea, 'no tea defined');","!url":"http://chaijs.com/api/assert/#isUndefined","!type":"fn(value: mixed, message: [string]) -> bool"},isDefined:{"!doc":".isDefined(value, [message])\n\n  * @param { Mixed } value\n  * @param { String } message\n\nAsserts that value is not undefined.\n\nvar tea = 'cup of chai';\nassert.isDefined(tea, 'tea has been defined');","!url":"http://chaijs.com/api/assert/#isDefined","!type":"fn(value: mixed, message: [string]) -> bool"},isFunction:{"!doc":".isFunction(value, [message])\n\n  * @param { Mixed } value\n  * @param { String } message\n\nAsserts that value is a function.\n\nfunction serveTea() { return 'cup of tea'; };\nassert.isFunction(serveTea, 'great, we can have tea now');","!url":"http://chaijs.com/api/assert/#isFunction","!type":"fn(value: mixed, message: [string]) -> bool"},isNotFunction:{"!doc":".isNotFunction(value, [message])\n\n  * @param { Mixed } value\n  * @param { String } message\n\nAsserts that value is not a function.\n\nvar serveTea = [ 'heat', 'pour', 'sip' ];\nassert.isNotFunction(serveTea, 'great, we have listed the steps');","!url":"http://chaijs.com/api/assert/#isNotFunction","!type":"fn(value: mixed, message: [string]) -> bool"},isObject:{"!doc":".isObject(value, [message])\n\n  * @param { Mixed } value\n  * @param { String } message\n\nAsserts that value is an object (as revealed by\nObject.prototype.toString).\n\nvar selection = { name: 'Chai', serve: 'with spices' };\nassert.isObject(selection, 'tea selection is an object');","!url":"http://chaijs.com/api/assert/#isObject","!type":"fn(value: mixed, message: [string]) -> bool"},isNotObject:{"!doc":".isNotObject(value, [message])\n\n  * @param { Mixed } value\n  * @param { String } message\n\nAsserts that value is not an object.\n\nvar selection = 'chai'\nassert.isObject(selection, 'tea selection is not an object');\nassert.isObject(null, 'null is not an object');","!url":"http://chaijs.com/api/assert/#isNotObject","!type":"fn(value: mixed, message: [string]) -> bool"},isArray:{"!doc":".isArray(value, [message])\n\n  * @param { Mixed } value\n  * @param { String } message\n\nAsserts that value is an array.\n\nvar menu = [ 'green', 'chai', 'oolong' ];\nassert.isArray(menu, 'what kind of tea do we want?');","!url":"http://chaijs.com/api/assert/#isArray","!type":"fn(value: mixed, message: [string]) -> bool"},isNotArray:{"!doc":".isNotArray(value, [message])\n\n  * @param { Mixed } value\n  * @param { String } message\n\nAsserts that value is not an array.\n\nvar menu = 'green|chai|oolong';\nassert.isNotArray(menu, 'what kind of tea do we want?');","!url":"http://chaijs.com/api/assert/#isNotArray","!type":"fn(value: mixed, message: [string]) -> bool"},isString:{"!doc":".isString(value, [message])\n\n  * @param { Mixed } value\n  * @param { String } message\n\nAsserts that value is a string.\n\nvar teaOrder = 'chai';\nassert.isString(teaOrder, 'order placed');","!url":"http://chaijs.com/api/assert/#isString","!type":"fn(value: mixed, message: [string]) -> bool"},isNotString:{"!doc":".isNotString(value, [message])\n\n  * @param { Mixed } value\n  * @param { String } message\n\nAsserts that value is not a string.\n\nvar teaOrder = 4;\nassert.isNotString(teaOrder, 'order placed');","!url":"http://chaijs.com/api/assert/#isNotString","!type":"fn(value: mixed, message: [string]) -> bool"},isNumber:{"!doc":".isNumber(value, [message])\n\n  * @param { Number } value\n  * @param { String } message\n\nAsserts that value is a number.\n\nvar cups = 2;\nassert.isNumber(cups, 'how many cups');","!url":"http://chaijs.com/api/assert/#isNumber","!type":"fn(value: number, message: [string]) -> bool"},isNotNumber:{"!doc":".isNotNumber(value, [message])\n\n  * @param { Mixed } value\n  * @param { String } message\n\nAsserts that value is not a number.\n\nvar cups = '2 cups please';\nassert.isNotNumber(cups, 'how many cups');","!url":"http://chaijs.com/api/assert/#isNotNumber","!type":"fn(value: mixed, message: [string]) -> bool"},isBoolean:{"!doc":".isBoolean(value, [message])\n\n  * @param { Mixed } value\n  * @param { String } message\n\nAsserts that value is a boolean.\n\nvar teaReady = true\n  , teaServed = false;\n\nassert.isBoolean(teaReady, 'is the tea ready');\nassert.isBoolean(teaServed, 'has tea been served');","!url":"http://chaijs.com/api/assert/#isBoolean","!type":"fn(value: mixed, message: [string]) -> bool"},isNotBoolean:{"!doc":".isNotBoolean(value, [message])\n\n  * @param { Mixed } value\n  * @param { String } message\n\nAsserts that value is not a boolean.\n\nvar teaReady = 'yep'\n  , teaServed = 'nope';\n\nassert.isNotBoolean(teaReady, 'is the tea ready');\nassert.isNotBoolean(teaServed, 'has tea been served');","!url":"http://chaijs.com/api/assert/#isNotBoolean","!type":"fn(value: mixed, message: [string]) -> bool"},typeOf:{"!doc":".typeOf(value, name, [message])\n\n  * @param { Mixed } value\n  * @param { String } name\n  * @param { String } message\n\nAsserts that value's type is name, as determined by\nObject.prototype.toString.\n\nassert.typeOf({ tea: 'chai' }, 'object', 'we have an object');\nassert.typeOf(['chai', 'jasmine'], 'array', 'we have an array');\nassert.typeOf('tea', 'string', 'we have a string');\nassert.typeOf(/tea/, 'regexp', 'we have a regular expression');\nassert.typeOf(null, 'null', 'we have a null');\nassert.typeOf(undefined, 'undefined', 'we have an undefined');","!url":"http://chaijs.com/api/assert/#typeOf","!type":"fn(value: mixed, name: string, message: [string]) -> bool"},notTypeOf:{"!doc":".notTypeOf(value, name, [message])\n\n  * @param { Mixed } value\n  * @param { String } typeofname\n  * @param { String } message\n\nAsserts that value's type is not name, as determined by\nObject.prototype.toString.\n\nassert.notTypeOf('tea', 'number', 'strings are not numbers');","!url":"http://chaijs.com/api/assert/#notTypeOf","!type":"fn(value: mixed, typeof: string, message: [string]) -> bool"},instanceOf:{"!doc":".instanceOf(object, constructor, [message])\n\n  * @param { Object } object\n  * @param { Constructor } constructor\n  * @param { String } message\n\nAsserts that value is an instance of constructor.\n\nvar Tea = function (name) { this.name = name; }\n  , chai = new Tea('chai');\n\nassert.instanceOf(chai, Tea, 'chai is an instance of tea');","!url":"http://chaijs.com/api/assert/#instanceOf","!type":"fn(object: object, constructor: constructor, message: [string]) -> bool"},notInstanceOf:{"!doc":".notInstanceOf(object, constructor, [message])\n\n  * @param { Object } object\n  * @param { Constructor } constructor\n  * @param { String } message\n\nAsserts value is not an instance of constructor.\n\nvar Tea = function (name) { this.name = name; }\n  , chai = new String('chai');\n\nassert.notInstanceOf(chai, Tea, 'chai is not an instance of tea');","!url":"http://chaijs.com/api/assert/#notInstanceOf","!type":"fn(object: object, constructor: constructor, message: [string]) -> bool"},include:{"!doc":".include(haystack, needle, [message])\n\n  * @param { Array | String } haystack\n  * @param { Mixed } needle\n  * @param { String } message\n\nAsserts that haystack includes needle. Works\nfor strings and arrays.\n\nassert.include('foobar', 'bar', 'foobar contains string \"bar\"');\nassert.include([ 1, 2, 3 ], 3, 'array contains value');","!url":"http://chaijs.com/api/assert/#include","!type":"fn(haystack: array, needle: mixed, message: [string]) -> bool"},notInclude:{"!doc":".notInclude(haystack, needle, [message])\n\n  * @param { Array | String } haystack\n  * @param { Mixed } needle\n  * @param { String } message\n\nAsserts that haystack does not include needle. Works\nfor strings and arrays.\ni\n    assert.notInclude('foobar', 'baz', 'string not include substring');\n    assert.notInclude([ 1, 2, 3 ], 4, 'array not include contain value');\n\n","!url":"http://chaijs.com/api/assert/#notInclude","!type":"fn(haystack: array, needle: mixed, message: [string]) -> bool"},match:{"!doc":".match(value, regexp, [message])\n\n  * @param { Mixed } value\n  * @param { RegExp } regexp\n  * @param { String } message\n\nAsserts that value matches the regular expression regexp.\n\nassert.match('foobar', /^foo/, 'regexp matches');","!url":"http://chaijs.com/api/assert/#match","!type":"fn(value: mixed, regexp: regexp, message: [string]) -> bool"},notMatch:{"!doc":".notMatch(value, regexp, [message])\n\n  * @param { Mixed } value\n  * @param { RegExp } regexp\n  * @param { String } message\n\nAsserts that value does not match the regular expression regexp.\n\nassert.notMatch('foobar', /^foo/, 'regexp does not match');","!url":"http://chaijs.com/api/assert/#notMatch","!type":"fn(value: mixed, regexp: regexp, message: [string]) -> bool"},property:{"!doc":".property(object, property, [message])\n\n  * @param { Object } object\n  * @param { String } property\n  * @param { String } message\n\nAsserts that object has a property named by property.\n\nassert.property({ tea: { green: 'matcha' }}, 'tea');","!url":"http://chaijs.com/api/assert/#property","!type":"fn(object: object, property: string, message: [string]) -> bool"},notProperty:{"!doc":".notProperty(object, property, [message])\n\n  * @param { Object } object\n  * @param { String } property\n  * @param { String } message\n\nAsserts that object does not have a property named by property.\n\nassert.notProperty({ tea: { green: 'matcha' }}, 'coffee');","!url":"http://chaijs.com/api/assert/#notProperty","!type":"fn(object: object, property: string, message: [string]) -> bool"},deepProperty:{"!doc":".deepProperty(object, property, [message])\n\n  * @param { Object } object\n  * @param { String } property\n  * @param { String } message\n\nAsserts that object has a property named by property, which can be a\nstring using dot- and bracket-notation for deep reference.\n\nassert.deepProperty({ tea: { green: 'matcha' }}, 'tea.green');","!url":"http://chaijs.com/api/assert/#deepProperty","!type":"fn(object: object, property: string, message: [string]) -> bool"},notDeepProperty:{"!doc":".notDeepProperty(object, property, [message])\n\n  * @param { Object } object\n  * @param { String } property\n  * @param { String } message\n\nAsserts that object does not have a property named by property, which\ncan be a string using dot- and bracket-notation for deep reference.\n\nassert.notDeepProperty({ tea: { green: 'matcha' }}, 'tea.oolong');","!url":"http://chaijs.com/api/assert/#notDeepProperty","!type":"fn(object: object, property: string, message: [string]) -> bool"},propertyVal:{"!doc":".propertyVal(object, property, value, [message])\n\n  * @param { Object } object\n  * @param { String } property\n  * @param { Mixed } value\n  * @param { String } message\n\nAsserts that object has a property named by property with value given\nby value.\n\nassert.propertyVal({ tea: 'is good' }, 'tea', 'is good');","!url":"http://chaijs.com/api/assert/#propertyVal","!type":"fn(object: object, property: string, value: mixed, message: [string]) -> bool"},propertyNotVal:{"!doc":".propertyNotVal(object, property, value, [message])\n\n  * @param { Object } object\n  * @param { String } property\n  * @param { Mixed } value\n  * @param { String } message\n\nAsserts that object has a property named by property, but with a value\ndifferent from that given by value.\n\nassert.propertyNotVal({ tea: 'is good' }, 'tea', 'is bad');","!url":"http://chaijs.com/api/assert/#propertyNotVal","!type":"fn(object: object, property: string, value: mixed, message: [string]) -> bool"},deepPropertyVal:{"!doc":".deepPropertyVal(object, property, value, [message])\n\n  * @param { Object } object\n  * @param { String } property\n  * @param { Mixed } value\n  * @param { String } message\n\nAsserts that object has a property named by property with value given\nby value. property can use dot- and bracket-notation for deep\nreference.\n\nassert.deepPropertyVal({ tea: { green: 'matcha' }}, 'tea.green', 'matcha');","!url":"http://chaijs.com/api/assert/#deepPropertyVal","!type":"fn(object: object, property: string, value: mixed, message: [string]) -> bool"},deepPropertyNotVal:{"!doc":".deepPropertyNotVal(object, property, value, [message])\n\n  * @param { Object } object\n  * @param { String } property\n  * @param { Mixed } value\n  * @param { String } message\n\nAsserts that object has a property named by property, but with a value\ndifferent from that given by value. property can use dot- and\nbracket-notation for deep reference.\n\nassert.deepPropertyNotVal({ tea: { green: 'matcha' }}, 'tea.green', 'konacha');","!url":"http://chaijs.com/api/assert/#deepPropertyNotVal","!type":"fn(object: object, property: string, value: mixed, message: [string]) -> bool"},lengthOf:{"!doc":".lengthOf(object, length, [message])\n\n  * @param { Mixed } object\n  * @param { Number } length\n  * @param { String } message\n\nAsserts that object has a length property with the expected value.\n\nassert.lengthOf([1,2,3], 3, 'array has length of 3');\nassert.lengthOf('foobar', 5, 'string has length of 6');","!url":"http://chaijs.com/api/assert/#lengthOf","!type":"fn(object: mixed, length: number, message: [string]) -> bool"},"throws":{"!doc":".throws(function, [constructor/string/regexp], [string/regexp], [message])\n\n  * @param { Function } function\n  * @param { ErrorConstructor } constructor\n  * @param { RegExp } regexp\n  * @param { String } message\n  * @seehttps://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error#Error_types  \n\nAsserts that function will throw an error that is an instance of\nconstructor, or alternately that it will throw an error with message\nmatching regexp.\n\nassert.throw(fn, 'function throws a reference error');\nassert.throw(fn, /function throws a reference error/);\nassert.throw(fn, ReferenceError);\nassert.throw(fn, ReferenceError, 'function throws a reference error');\nassert.throw(fn, ReferenceError, /function throws a reference error/);","!url":"http://chaijs.com/api/assert/#throws","!type":"fn(function: function, constructor: [errorconstructor], regexp: [regexp], message: [string]) -> bool"},doesNotThrow:{"!doc":".doesNotThrow(function, [constructor/regexp], [message])\n\n  * @param { Function } function\n  * @param { ErrorConstructor } constructor\n  * @param { RegExp } regexp\n  * @param { String } message\n  * @seehttps://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error#Error_types  \n\nAsserts that function will not throw an error that is an instance of\nconstructor, or alternately that it will not throw an error with message\nmatching regexp.\n\nassert.doesNotThrow(fn, Error, 'function does not throw');","!url":"http://chaijs.com/api/assert/#doesNotThrow","!type":"fn(function: function, constructor: [errorconstructor], regexp: [regexp], message: string) -> bool"},operator:{"!doc":".operator(val1, operator, val2, [message])\n\n  * @param { Mixed } val1\n  * @param { String } operator\n  * @param { Mixed } val2\n  * @param { String } message\n\nCompares two values using operator.\n\nassert.operator(1, '<', 2, 'everything is ok');\nassert.operator(1, '>', 2, 'this will fail');","!url":"http://chaijs.com/api/assert/#operator","!type":"fn(val1: mixed, operator: string, val2: mixed, message: [string]) -> bool"},closeTo:{"!doc":".closeTo(actual, expected, delta, [message])\n\n  * @param { Number } actual\n  * @param { Number } expected\n  * @param { Number } delta\n  * @param { String } message\n\nAsserts that the target is equal expected, to within a +/- delta range.\n\nassert.closeTo(1.5, 1, 0.5, 'numbers are close');","!url":"http://chaijs.com/api/assert/#closeTo","!type":"fn(actual: number, expected: number, delta: number, message: [string]) -> bool"},sameMembers:{"!doc":".sameMembers(set1, set2, [message])\n\n  * @param { Array } superset\n  * @param { Array } subset\n  * @param { String } message\n\nAsserts that set1 and set2 have the same members.\nOrder is not taken into account.\n\nassert.sameMembers([ 1, 2, 3 ], [ 2, 1, 3 ], 'same members');","!url":"http://chaijs.com/api/assert/#sameMembers","!type":"fn(superset: array, subset: array, message: [string]) -> bool"},includeMembers:{"!doc":".includeMembers(superset, subset, [message])\n\n  * @param { Array } superset\n  * @param { Array } subset\n  * @param { String } message\n\nAsserts that subset is included in superset.\nOrder is not taken into account.\n\nassert.includeMembers([ 1, 2, 3 ], [ 2, 1 ], 'include members');","!url":"http://chaijs.com/api/assert/#includeMembers","!type":"fn(superset: array, subset: array, message: [string]) -> bool"}},expect:{Language:{"!doc":"Language Chains\n\n\n\nThe following are provided as chainable getters to\nimprove the readability of your assertions. They\ndo not provide an testing capability unless they\nhave been overwritten by a plugin.Chains\n\n","!url":"http://chaijs.com/api/bdd/#Language","!type":"fn() -> bool"},not:{"!doc":".not\n\n\n\nNegates any of assertions following in the chain.\n\nexpect(foo).to.not.equal('bar');\nexpect(goodFn).to.not.throw(Error);\nexpect({ foo: 'baz' }).to.have.property('foo')\n  .and.not.equal('bar');","!url":"http://chaijs.com/api/bdd/#not","!type":"fn() -> bool"},deep:{"!doc":".deep\n\n\n\nSets the deep flag, later used by the equal and\nproperty assertions.\n\nexpect(foo).to.deep.equal({ bar: 'baz' });\nexpect({ foo: { bar: { baz: 'quux' } } })\n  .to.have.deep.property('foo.bar.baz', 'quux');","!url":"http://chaijs.com/api/bdd/#deep","!type":"fn() -> bool"},a:{"!doc":".a(type)\n\n  * @param { String } type\n  * @param { String } message_optional_\n\nThe a and an assertions are aliases that can be\nused either as language chains or to assert a value's\ntype.\n\n// typeof\nexpect('test').to.be.a('string');\nexpect({ foo: 'bar' }).to.be.an('object');\nexpect(null).to.be.a('null');\nexpect(undefined).to.be.an('undefined');\n\n// language chain\nexpect(foo).to.be.an.instanceof(Foo);","!url":"http://chaijs.com/api/bdd/#a","!type":"fn(type: string, message: string) -> bool"},include:{"!doc":".include(value)\n\n  * @param { Object | String | Number } obj\n  * @param { String } message_optional_\n\nThe include and contain assertions can be used as either property\nbased language chains or as methods to assert the inclusion of an object\nin an array or a substring in a string. When used as language chains,\nthey toggle the contain flag for the keys assertion.\n\nexpect([1,2,3]).to.include(2);\nexpect('foobar').to.contain('foo');\nexpect({ foo: 'bar', hello: 'universe' }).to.include.keys('foo');","!url":"http://chaijs.com/api/bdd/#include","!type":"fn(obj: object, message: string) -> bool"},ok:{"!doc":".ok\n\n\n\nAsserts that the target is truthy.\n\nexpect('everthing').to.be.ok;\nexpect(1).to.be.ok;\nexpect(false).to.not.be.ok;\nexpect(undefined).to.not.be.ok;\nexpect(null).to.not.be.ok;","!url":"http://chaijs.com/api/bdd/#ok","!type":"fn() -> bool"},"true":{"!doc":".true\n\n\n\nAsserts that the target is true.\n\nexpect(true).to.be.true;\nexpect(1).to.not.be.true;","!url":"http://chaijs.com/api/bdd/#true","!type":"fn() -> bool"},"false":{"!doc":".false\n\n\n\nAsserts that the target is false.\n\nexpect(false).to.be.false;\nexpect(0).to.not.be.false;","!url":"http://chaijs.com/api/bdd/#false","!type":"fn() -> bool"},"null":{"!doc":".null\n\n\n\nAsserts that the target is null.\n\nexpect(null).to.be.null;\nexpect(undefined).not.to.be.null;","!url":"http://chaijs.com/api/bdd/#null","!type":"fn() -> bool"},undefined:{"!doc":".undefined\n\n\n\nAsserts that the target is undefined.\n\nexpect(undefined).to.be.undefined;\nexpect(null).to.not.be.undefined;","!url":"http://chaijs.com/api/bdd/#undefined","!type":"fn() -> bool"},exist:{"!doc":".exist\n\n\n\nAsserts that the target is neither null nor undefined.\n\nvar foo = 'hi'\n  , bar = null\n  , baz;\n\nexpect(foo).to.exist;\nexpect(bar).to.not.exist;\nexpect(baz).to.not.exist;","!url":"http://chaijs.com/api/bdd/#exist","!type":"fn() -> bool"},empty:{"!doc":".empty\n\n\n\nAsserts that the target's length is 0. For arrays, it checks\nthe length property. For objects, it gets the count of\nenumerable keys.\n\nexpect([]).to.be.empty;\nexpect('').to.be.empty;\nexpect({}).to.be.empty;","!url":"http://chaijs.com/api/bdd/#empty","!type":"fn() -> bool"},arguments:{"!doc":".arguments\n\n\n\nAsserts that the target is an arguments object.\n\nfunction test () {\n  expect(arguments).to.be.arguments;\n}","!url":"http://chaijs.com/api/bdd/#arguments","!type":"fn() -> bool"},equal:{"!doc":".equal(value)\n\n  * @param { Mixed } value\n  * @param { String } message_optional_\n\nAsserts that the target is strictly equal (===) to value.\nAlternately, if the deep flag is set, asserts that\nthe target is deeply equal to value.\n\nexpect('hello').to.equal('hello');\nexpect(42).to.equal(42);\nexpect(1).to.not.equal(true);\nexpect({ foo: 'bar' }).to.not.equal({ foo: 'bar' });\nexpect({ foo: 'bar' }).to.deep.equal({ foo: 'bar' });","!url":"http://chaijs.com/api/bdd/#equal","!type":"fn(value: mixed, message: string) -> bool"},eql:{"!doc":".eql(value)\n\n  * @param { Mixed } value\n  * @param { String } message_optional_\n\nAsserts that the target is deeply equal to value.\n\nexpect({ foo: 'bar' }).to.eql({ foo: 'bar' });\nexpect([ 1, 2, 3 ]).to.eql([ 1, 2, 3 ]);","!url":"http://chaijs.com/api/bdd/#eql","!type":"fn(value: mixed, message: string) -> bool"},above:{"!doc":".above(value)\n\n  * @param { Number } value\n  * @param { String } message_optional_\n\nAsserts that the target is greater than value.Can also be used in conjunction with length to\nassert a minimum length. The benefit being a\nmore informative error message than if the length\nwas supplied directly.\n\nexpect(10).to.be.above(5);expect('foo').to.have.length.above(2);\nexpect([ 1, 2, 3 ]).to.have.length.above(2);","!url":"http://chaijs.com/api/bdd/#above","!type":"fn(value: number, message: string) -> bool"},least:{"!doc":".least(value)\n\n  * @param { Number } value\n  * @param { String } message_optional_\n\nAsserts that the target is greater than or equal to value.Can also be used in conjunction with length to\nassert a minimum length. The benefit being a\nmore informative error message than if the length\nwas supplied directly.\n\nexpect(10).to.be.at.least(10);expect('foo').to.have.length.of.at.least(2);\nexpect([ 1, 2, 3 ]).to.have.length.of.at.least(3);","!url":"http://chaijs.com/api/bdd/#least","!type":"fn(value: number, message: string) -> bool"},below:{"!doc":".below(value)\n\n  * @param { Number } value\n  * @param { String } message_optional_\n\nAsserts that the target is less than value.Can also be used in conjunction with length to\nassert a maximum length. The benefit being a\nmore informative error message than if the length\nwas supplied directly.\n\nexpect(5).to.be.below(10);expect('foo').to.have.length.below(4);\nexpect([ 1, 2, 3 ]).to.have.length.below(4);","!url":"http://chaijs.com/api/bdd/#below","!type":"fn(value: number, message: string) -> bool"},most:{"!doc":".most(value)\n\n  * @param { Number } value\n  * @param { String } message_optional_\n\nAsserts that the target is less than or equal to value.Can also be used in conjunction with length to\nassert a maximum length. The benefit being a\nmore informative error message than if the length\nwas supplied directly.\n\nexpect(5).to.be.at.most(5);expect('foo').to.have.length.of.at.most(4);\nexpect([ 1, 2, 3 ]).to.have.length.of.at.most(3);","!url":"http://chaijs.com/api/bdd/#most","!type":"fn(value: number, message: string) -> bool"},within:{"!doc":".within(start, finish)\n\n  * @param { Number } startlowerbound inclusive\n  * @param { Number } finishupperbound inclusive\n  * @param { String } message_optional_\n\nAsserts that the target is within a range.Can also be used in conjunction with length to\nassert a length range. The benefit being a\nmore informative error message than if the length\nwas supplied directly.\n\nexpect(7).to.be.within(5,10);expect('foo').to.have.length.within(2,4);\nexpect([ 1, 2, 3 ]).to.have.length.within(2,4);","!url":"http://chaijs.com/api/bdd/#within","!type":"fn(start: number, finish: number, message: string) -> bool"},"instanceof":{"!doc":".instanceof(constructor)\n\n  * @param { Constructor } constructor\n  * @param { String } message_optional_\n\nAsserts that the target is an instance of constructor.\n\nvar Tea = function (name) { this.name = name; }\n  , Chai = new Tea('chai');\n\nexpect(Chai).to.be.an.instanceof(Tea);\nexpect([ 1, 2, 3 ]).to.be.instanceof(Array);","!url":"http://chaijs.com/api/bdd/#instanceof","!type":"fn(constructor: constructor, message: string) -> bool"},property:{"!doc":".property(name, [value])\n\n  * @param { String } name\n  * @param { Mixed } value(optional)\n  * @param { String } message_optional_\n\nAsserts that the target has a property name, optionally asserting that\nthe value of that property is strictly equal to  value.\nIf the deep flag is set, you can use dot- and bracket-notation for deep\nreferences into objects and arrays.You can also use an array as the starting point of a deep.property\nassertion, or traverse nested arrays.Furthermore, property changes the subject of the assertion\nto be the value of that property from the original object. This\npermits for further chainable assertions on that property.\n\n// simple referencing\nvar obj = { foo: 'bar' };\nexpect(obj).to.have.property('foo');\nexpect(obj).to.have.property('foo', 'bar');\n\n// deep referencing\nvar deepObj = {\n    green: { tea: 'matcha' }\n  , teas: [ 'chai', 'matcha', { tea: 'konacha' } ]\n};\n\nexpect(deepObj).to.have.deep.property('green.tea', 'matcha');\nexpect(deepObj).to.have.deep.property('teas[1]', 'matcha');\nexpect(deepObj).to.have.deep.property('teas[2].tea', 'konacha');var arr = [\n    [ 'chai', 'matcha', 'konacha' ]\n  , [ { tea: 'chai' }\n    , { tea: 'matcha' }\n    , { tea: 'konacha' } ]\n];\n\nexpect(arr).to.have.deep.property('[0][1]', 'matcha');\nexpect(arr).to.have.deep.property('[1][2].tea', 'konacha');expect(obj).to.have.property('foo')\n  .that.is.a('string');\nexpect(deepObj).to.have.property('green')\n  .that.is.an('object')\n  .that.deep.equals({ tea: 'matcha' });\nexpect(deepObj).to.have.property('teas')\n  .that.is.an('array')\n  .with.deep.property('[2]')\n    .that.deep.equals({ tea: 'konacha' });","!url":"http://chaijs.com/api/bdd/#property","!type":"fn(name: string, value: [mixed], message: string) -> bool"},ownProperty:{"!doc":".ownProperty(name)\n\n  * @param { String } name\n  * @param { String } message_optional_\n\nAsserts that the target has an own property name.\n\nexpect('test').to.have.ownProperty('length');","!url":"http://chaijs.com/api/bdd/#ownProperty","!type":"fn(name: string, message: string) -> bool"},length:{"!doc":".length(value)\n\n  * @param { Number } length\n  * @param { String } message_optional_\n\nAsserts that the target's length property has\nthe expected value.Can also be used as a chain precursor to a value\ncomparison for the length property.\n\nexpect([ 1, 2, 3]).to.have.length(3);\nexpect('foobar').to.have.length(6);expect('foo').to.have.length.above(2);\nexpect([ 1, 2, 3 ]).to.have.length.above(2);\nexpect('foo').to.have.length.below(4);\nexpect([ 1, 2, 3 ]).to.have.length.below(4);\nexpect('foo').to.have.length.within(2,4);\nexpect([ 1, 2, 3 ]).to.have.length.within(2,4);","!url":"http://chaijs.com/api/bdd/#length","!type":"fn(length: number, message: string) -> bool"},match:{"!doc":".match(regexp)\n\n  * @param { RegExp } RegularExpression\n  * @param { String } message_optional_\n\nAsserts that the target matches a regular expression.\n\nexpect('foobar').to.match(/^foo/);","!url":"http://chaijs.com/api/bdd/#match","!type":"fn(RegularExpression: regexp, message: string) -> bool"},string:{"!doc":".string(string)\n\n  * @param { String } string\n  * @param { String } message_optional_\n\nAsserts that the string target contains another string.\n\nexpect('foobar').to.have.string('bar');","!url":"http://chaijs.com/api/bdd/#string","!type":"fn(string: string, message: string) -> bool"},keys:{"!doc":".keys(key1, [key2], [...])\n\n  * @param { String... | Array } keys\n\nAsserts that the target has exactly the given keys, or\nasserts the inclusion of some keys when using the\ninclude or contain modifiers.\n\nexpect({ foo: 1, bar: 2 }).to.have.keys(['foo', 'bar']);\nexpect({ foo: 1, bar: 2, baz: 3 }).to.contain.keys('foo', 'bar');","!url":"http://chaijs.com/api/bdd/#keys","!type":"fn(keys: string) -> bool"},"throw":{"!doc":".throw(constructor)\n\n  * @param { ErrorConstructor } constructor\n  * @param { String | RegExp } expectederror message\n  * @param { String } message_optional_\n  * @seehttps://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error#Error_types  \n\nAsserts that the function target will throw a specific error, or specific type of error\n(as determined using instanceof), optionally with a RegExp or string inclusion test\nfor the error's message.Please note that when a throw expectation is negated, it will check each\nparameter independently, starting with error constructor type. The appropriate way\nto check for the existence of a type of error but for a message that does not match\nis to use and.\n\nvar err = new ReferenceError('This is a bad function.');\nvar fn = function () { throw err; }\nexpect(fn).to.throw(ReferenceError);\nexpect(fn).to.throw(Error);\nexpect(fn).to.throw(/bad function/);\nexpect(fn).to.not.throw('good function');\nexpect(fn).to.throw(ReferenceError, /bad function/);\nexpect(fn).to.throw(err);\nexpect(fn).to.not.throw(new RangeError('Out of range.'));expect(fn).to.throw(ReferenceError)\n   .and.not.throw(/good function/);","!url":"http://chaijs.com/api/bdd/#throw","!type":"fn(constructor: errorconstructor, expected: string, message: string) -> bool"},respondTo:{"!doc":".respondTo(method)\n\n  * @param { String } method\n  * @param { String } message_optional_\n\nAsserts that the object or class target will respond to a method.To check if a constructor will respond to a static function,\nset the itself flag.\n\nKlass.prototype.bar = function(){};\nexpect(Klass).to.respondTo('bar');\nexpect(obj).to.respondTo('bar');Klass.baz = function(){};\nexpect(Klass).itself.to.respondTo('baz');","!url":"http://chaijs.com/api/bdd/#respondTo","!type":"fn(method: string, message: string) -> bool"},itself:{"!doc":".itself\n\n\n\nSets the itself flag, later used by the respondTo assertion.\n\nfunction Foo() {}\nFoo.bar = function() {}\nFoo.prototype.baz = function() {}\n\nexpect(Foo).itself.to.respondTo('bar');\nexpect(Foo).itself.not.to.respondTo('baz');","!url":"http://chaijs.com/api/bdd/#itself","!type":"fn() -> bool"},satisfy:{"!doc":".satisfy(method)\n\n  * @param { Function } matcher\n  * @param { String } message_optional_\n\nAsserts that the target passes a given truth test.\n\nexpect(1).to.satisfy(function(num) { return num > 0; });","!url":"http://chaijs.com/api/bdd/#satisfy","!type":"fn(matcher: function, message: string) -> bool"},closeTo:{"!doc":".closeTo(expected, delta)\n\n  * @param { Number } expected\n  * @param { Number } delta\n  * @param { String } message_optional_\n\nAsserts that the target is equal expected, to within a +/- delta range.\n\nexpect(1.5).to.be.closeTo(1, 0.5);","!url":"http://chaijs.com/api/bdd/#closeTo","!type":"fn(expected: number, delta: number, message: string) -> bool"},members:{"!doc":".members(set)\n\n  * @param { Array } set\n  * @param { String } message_optional_\n\nAsserts that the target is a superset of set,\nor that the target and set have the same members.\n\nexpect([1, 2, 3]).to.include.members([3, 2]);\nexpect([1, 2, 3]).to.not.include.members([3, 2, 8]);\n\nexpect([4, 2]).to.have.members([2, 4]);\nexpect([5, 2]).to.not.have.members([5, 2, 1]);","!url":"http://chaijs.com/api/bdd/#members","!type":"fn(set: array, message: string) -> bool"}}}}
}),function(e){return"object"==typeof exports&&"object"==typeof module?e(exports):"function"==typeof define&&define.amd?define("tern/lib/comment",["exports"],e):void e(tern.comment||(tern.comment={}))}(function(e){function t(e){return 14>e&&e>8||32===e||160===e}function n(e,n){for(;n>0;--n){var r=e.charCodeAt(n-1);if(10==r)break;if(!t(r))return!1}return!0}e.commentsBefore=function(e,r){var o,s=null,a=0;e:for(;r>0;){var i=e.charCodeAt(r-1);if(10==i)for(var l=--r,c=!1;l>0;--l){if(i=e.charCodeAt(l-1),47==i&&47==e.charCodeAt(l-2)){if(!n(e,l-2))break e;var p=e.slice(l,r);!a&&o?s[0]=p+"\n"+s[0]:(s||(s=[])).unshift(p),o=!0,a=0,r=l-2;break}if(10==i){if(!c&&++a>1)break e;break}c||t(i)||(c=!0)}else if(47==i&&42==e.charCodeAt(r-2)){for(var l=r-2;l>1;--l)if(42==e.charCodeAt(l-1)&&47==e.charCodeAt(l-2)){if(!n(e,l-2))break e;(s||(s=[])).unshift(e.slice(l,r-2)),o=!1,a=0;break}r=l-2}else{if(!t(i))break;--r}}return s},e.commentAfter=function(e,n){for(;n<e.length;){var r=e.charCodeAt(n);if(47==r){var o,s=e.charCodeAt(n+1);if(47==s)o=e.indexOf("\n",n+2);else{if(42!=s)return;o=e.indexOf("*/",n+2)}return e.slice(n+2,0>o?e.length:o)}t(r)&&++n}},e.ensureCommentsBefore=function(t,n){return n.hasOwnProperty("commentsBefore")?n.commentsBefore:n.commentsBefore=e.commentsBefore(t,n.start)}}),function(e){return"object"==typeof exports&&"object"==typeof module?e(require("../lib/infer"),require("../lib/tern"),require("../lib/comment"),require("acorn/dist/walk")):"function"==typeof define&&define.amd?define("tern/plugin/angular",["../lib/infer","../lib/tern","../lib/comment","acorn/dist/walk"],e):void e(tern,tern,tern.comment,acorn.walk)}(function(e,t,n,r){"use strict";function o(){this.fields=Object.create(null),this.forward=[]}function s(t){var n=e.cx().definitions.angular.service;return n.hasProp(t)?n.getProp(t):void 0}function a(t,n){var r=s(n);return r?r:t.injector&&t.injector?t.injector.get(n):e.ANull}function i(t,n,r,o){var s=[];if("FunctionExpression"==r.type)for(var i=0;i<r.params.length;++i)s.push(a(t,r.params[i].name));else if("ArrayExpression"==r.type){for(var i=0;i<r.elements.length-1;++i){var l=r.elements[i];s.push("Literal"==l.type&&"string"==typeof l.value?a(t,l.value):e.ANull)}var c=r.elements[r.elements.length-1];c&&"FunctionExpression"==c.type&&(n=c.body.scope.fnType)}var p=new e.AVal;if(o){var u=new e.AVal;n.propagate(new e.IsCtor(u)),u.propagate(p,90),n.propagate(new e.IsCallee(u,s,null,new e.IfObj(p)))}else n.propagate(new e.IsCallee(e.cx().topScope,s,null,p));return p}function l(e){var t=[];if(e&&"ArrayExpression"==e.type)for(var n=0;n<e.elements.length;++n){var r=e.elements[n];"Literal"==r.type&&"string"==typeof r.value&&t.push(r.value)}return t}function c(e){var t=e.definitions.angular;return t&&t.Module.getProp("prototype").getType()}function p(t,n){var r=e.cx(),s=r.parent._angular,a=c(r),i=new e.Obj(a||!0);a||s.nakedModules.push(i),i.origin=r.curOrigin,i.injector=new o,i.metaData={includes:n};for(var l=0;l<n.length;++l){var p=s.modules[n[l]];p?p.injector&&p.injector.forwardTo(i.injector):(s.pendingImports[n[l]]||(s.pendingImports[n[l]]=[])).push(i.injector)}if("string"==typeof t){s.modules[t]=i;var u=s.pendingImports[t];if(u){delete s.pendingImports[t];for(var l=0;l<u.length;++l)i.injector.forwardTo(u[l])}}return i}function u(e,t){r.simple(e,{CallExpression:function(e){if("MemberExpression"==e.callee.type&&!e.callee.computed&&e.arguments.length&&/^(value|constant|controller|factory|provider)$/.test(e.callee.property.name)){var r=n.commentsBefore(t,e.callee.property.start-1);if(r){var o=r[0],s=o.search(/\.\s/);s>5&&(o=o.slice(0,s+1)),o=o.trim().replace(/\s*\n\s*\*\s*|\s{1,}/g," "),e.arguments[0].angularDoc=o}}}})}function d(t){var n=e.cx(),r=t["!name"],o=n.definitions[r];if("angular"!=r){var s=o&&o["!ng"];if(s)for(var a in s.props){var i=s.props[a].getType(),l=p(a.replace(/`/g,"."),i.metaData&&i.metaData.includes||[]);l.origin=r;for(var u in i.props){var d=i.props[u],h=d.getType();h&&(/^_inject_/.test(u)?(h.name||(h.name=u.slice(8)),l.injector.set(u.slice(8),h,d.doc,d.span)):i.props[u].propagate(l.defProp(u)))}}}else{var f=c(n),m=n.parent._angular.nakedModules;if(f)for(var g=0;g<m.length;++g)m[g].proto=f}}function h(t){var n=e.cx().parent._angular.modules,r=new e.Obj(null),o=0;for(var s in n){var a=n[s];if(t.origins.indexOf(a.origin)>-1){var i=s.replace(/\./g,"`");if(r.defProp(i).addType(a),a.condenseForceInclude=!0,++o,a.injector)for(var l in a.injector.fields){var c=a.injector.fields[l];c.local&&(t.roots["!ng."+i+"._inject_"+l]=c)}}}o&&(t.roots["!ng"]=r)}function f(t){var n=e.cx().parent._angular.modules;for(var r in t.types){var o;if(o=r.match(/^!ng\.([^\.]+)\._inject_([^\.]+)^/)){var s=n[o[1].replace(/`/g,".")],a=s.injector.fields[o[2]],i=t.types[r];a.span&&(i.span=a.span),a.doc&&(i.doc=a.doc)}}}function m(e){e._angular={modules:Object.create(null),pendingImports:Object.create(null),nakedModules:[]}}var g=e.constraint({construct:function(e){this.doc=e},addType:function(e){e.doc||(e.doc=this.doc)}});o.prototype.get=function(t){if("$scope"==t)return new e.Obj(s("$rootScope").getType(),"$scope");if(t in this.fields)return this.fields[t];var n=this.fields[t]=new e.AVal;return n},o.prototype.set=function(t,n,r,o,s){if(!("$scope"==t||s&&s>10)){var a=this.fields[t]||(this.fields[t]=new e.AVal);s||(a.local=!0),a.origin||(a.origin=e.cx().curOrigin),"string"!=typeof o||a.span?o&&"object"==typeof o&&!a.originNode&&(a.originNode=o):a.span=o,r&&(a.doc=r,a.propagate(new g(r))),n.propagate(a);for(var i=0;i<this.forward.length;++i)this.forward[i].set(t,n,r,o,(s||0)+1)}},o.prototype.forwardTo=function(e){this.forward.push(e);for(var t in this.fields){var n=this.fields[t];e.set(t,n,n.doc,n.span||n.originNode,1)}},e.registerFunction("angular_callInject",function(e){return function(t,n,r){var o=t.getType();o&&r&&r[e]&&i(o,n[e],r[e])}}),e.registerFunction("angular_regFieldCall",function(e,t,n){var r=e.getType();if(r&&n&&n.length>1){var o=i(r,t[1],n[1]);r.injector&&"Literal"==n[0].type&&r.injector.set(n[0].value,o,n[0].angularDoc,n[0])}}),e.registerFunction("angular_regFieldNew",function(e,t,n){var r=e.getType();if(r&&n&&n.length>1){var o=i(r,t[1],n[1],!0);r.injector&&"Literal"==n[0].type&&r.injector.set(n[0].value,o,n[0].angularDoc,n[0])}}),e.registerFunction("angular_regField",function(e,t,n){var r=e.getType();r&&r.injector&&n&&n[0]&&"Literal"==n[0].type&&t[1]&&r.injector.set(n[0].value,t[1],n[0].angularDoc,n[0])}),e.registerFunction("angular_module",function(t,n,r){var o,s=r&&r[0]&&"Literal"==r[0].type&&r[0].value;return"string"==typeof s&&(o=e.cx().parent._angular.modules[s]),o||(o=p(s,l(r&&r[1]))),o});var b=e.constraint({construct:function(e,t,n){this.self=e,this.args=t,this.target=n},addType:function(t){if(t instanceof e.Fn){this.target.addType(new e.Fn(t.name,t.self,t.args.slice(this.args.length),t.argNames.slice(this.args.length),t.retval)),this.self.propagate(t.self);for(var n=0;n<Math.min(t.args.length,this.args.length);++n)this.args[n].propagate(t.args[n])}}});e.registerFunction("angular_bind",function(t,n){if(n.length<2)return e.ANull;var r=new e.AVal;return n[1].propagate(new b(n[0],n.slice(2),r)),r}),t.registerPlugin("angular",function(e){return m(e),e.on("reset",function(){m(e)}),{defs:y,passes:{postParse:u,postLoadDef:d,preCondenseReach:h,postCondenseReach:f},loadFirst:!0}});var y={"!name":"angular","!define":{cacheObj:{info:"fn() -> ?",put:"fn(key: string, value: ?) -> !1",get:"fn(key: string) -> ?",remove:"fn(key: string)",removeAll:"fn()",destroy:"fn()"},eventObj:{targetScope:"service.$rootScope",currentScope:"service.$rootScope",name:"string",stopPropagation:"fn()",preventDefault:"fn()",defaultPrevented:"bool"},directiveObj:{multiElement:{"!type":"bool","!url":"https://docs.angularjs.org/api/ng/service/$compile#-multielement-","!doc":"When this property is set to true, the HTML compiler will collect DOM nodes between nodes with the attributes directive-name-start and directive-name-end, and group them together as the directive elements. It is recommended that this feature be used on directives which are not strictly behavioural (such as ngClick), and which do not manipulate or replace child nodes (such as ngInclude)."},priority:{"!type":"number","!url":"https://docs.angularjs.org/api/ng/service/$compile#-priority-","!doc":"When there are multiple directives defined on a single DOM element, sometimes it is necessary to specify the order in which the directives are applied. The priority is used to sort the directives before their compile functions get called. Priority is defined as a number. Directives with greater numerical priority are compiled first. Pre-link functions are also run in priority order, but post-link functions are run in reverse order. The order of directives with the same priority is undefined. The default priority is 0."},terminal:{"!type":"bool","!url":"https://docs.angularjs.org/api/ng/service/$compile#-terminal-","!doc":"If set to true then the current priority will be the last set of directives which will execute (any directives at the current priority will still execute as the order of execution on same priority is undefined). Note that expressions and other directives used in the directive's template will also be excluded from execution."},scope:{"!type":"?","!url":"https://docs.angularjs.org/api/ng/service/$compile#-scope-","!doc":"If set to true, then a new scope will be created for this directive. If multiple directives on the same element request a new scope, only one new scope is created. The new scope rule does not apply for the root of the template since the root of the template always gets a new scope. If set to {} (object hash), then a new 'isolate' scope is created. The 'isolate' scope differs from normal scope in that it does not prototypically inherit from the parent scope. This is useful when creating reusable components, which should not accidentally read or modify data in the parent scope."},bindToController:{"!type":"bool","!url":"https://docs.angularjs.org/api/ng/service/$compile#-bindtocontroller-","!doc":"When an isolate scope is used for a component (see above), and controllerAs is used, bindToController: true will allow a component to have its properties bound to the controller, rather than to scope. When the controller is instantiated, the initial values of the isolate scope bindings are already available."},controller:{"!type":"fn()","!url":"https://docs.angularjs.org/api/ng/service/$compile#-require-","!doc":"Controller constructor function. The controller is instantiated before the pre-linking phase and it is shared with other directives (see require attribute). This allows the directives to communicate with each other and augment each other's behavior."},require:{"!type":"string","!url":"https://docs.angularjs.org/api/ng/service/$compile#-controller-","!doc":"Require another directive and inject its controller as the fourth argument to the linking function. The require takes a string name (or array of strings) of the directive(s) to pass in. If an array is used, the injected argument will be an array in corresponding order. If no such directive can be found, or if the directive does not have a controller, then an error is raised."},controllerAs:{"!type":"string","!url":"https://docs.angularjs.org/api/ng/service/$compile#-controlleras-","!doc":"Controller alias at the directive scope. An alias for the controller so it can be referenced at the directive template. The directive needs to define a scope for this configuration to be used. Useful in the case when directive is used as component."},restrict:{"!type":"string","!url":"https://docs.angularjs.org/api/ng/service/$compile#-restrict-","!doc":"String of subset of EACM which restricts the directive to a specific directive declaration style. If omitted, the defaults (elements and attributes) are used. E - Element name (default): <my-directive></my-directive>. A - Attribute (default): <div my-directive='exp'></div>. C - Class: <div class='my-directive: exp;'></div>. M - Comment: <!-- directive: my-directive exp --> "},templateNamespace:{"!type":"string","!url":"https://docs.angularjs.org/api/ng/service/$compile#-templatenamespace-","!doc":"String representing the document type used by the markup in the template. AngularJS needs this information as those elements need to be created and cloned in a special way when they are defined outside their usual containers like <svg> and <math>."},template:{"!type":"string","!url":"https://docs.angularjs.org/api/ng/service/$compile#-template-","!doc":"HTML markup that may: Replace the contents of the directive's element (default). Replace the directive's element itself (if replace is true - DEPRECATED). Wrap the contents of the directive's element (if transclude is true)."},templateUrl:{"!type":"string","!url":"https://docs.angularjs.org/api/ng/service/$compile#-templateurl-","!doc":"This is similar to template but the template is loaded from the specified URL, asynchronously."},transclude:{"!type":"bool","!url":"https://docs.angularjs.org/api/ng/service/$compile#-transclude-","!doc":"Extract the contents of the element where the directive appears and make it available to the directive. The contents are compiled and provided to the directive as a transclusion function."},compile:{"!type":"fn(tElement: +Element, tAttrs: +Attr)","!url":"https://docs.angularjs.org/api/ng/service/$compile#-transclude-","!doc":"The compile function deals with transforming the template DOM. Since most directives do not do template transformation, it is not used often."},link:{"!type":"fn(scope: ?, iElement: +Element, iAttrs: +Attr, controller: ?, transcludeFn: fn())","!url":"https://docs.angularjs.org/api/ng/service/$compile#-link-","!doc":"The link function is responsible for registering DOM listeners as well as updating the DOM. It is executed after the template has been cloned. This is where most of the directive logic will be put."}},Module:{"!url":"http://docs.angularjs.org/api/angular.Module","!doc":"Interface for configuring angular modules.",prototype:{animation:{"!type":"fn(name: string, animationFactory: fn()) -> !this","!url":"http://docs.angularjs.org/api/angular.Module#animation","!doc":"Defines an animation hook that can be later used with $animate service and directives that use this service."},config:{"!type":"fn(configFn: fn()) -> !this","!effects":["custom angular_callInject 0"],"!url":"http://docs.angularjs.org/api/angular.Module#config","!doc":"Use this method to register work which needs to be performed on module loading."},constant:"service.$provide.constant",controller:{"!type":"fn(name: string, constructor: fn()) -> !this","!effects":["custom angular_regFieldCall"],"!url":"http://docs.angularjs.org/api/ng.$controllerProvider","!doc":"Register a controller."},directive:{"!type":"fn(name: string, directiveFactory: fn() -> directiveObj) -> !this","!effects":["custom angular_regFieldCall"],"!url":"http://docs.angularjs.org/api/ng.$compileProvider#directive","!doc":"Register a new directive with the compiler."},factory:"service.$provide.factory",filter:{"!type":"fn(name: string, filterFactory: fn()) -> !this","!effects":["custom angular_callInject 1"],"!url":"http://docs.angularjs.org/api/ng.$filterProvider","!doc":"Register filter factory function."},provider:"service.$provide.provider",run:{"!type":"fn(initializationFn: fn()) -> !this","!effects":["custom angular_callInject 0"],"!url":"http://docs.angularjs.org/api/angular.Module#run","!doc":"Register work which should be performed when the injector is done loading all modules."},service:"service.$provide.service",value:"service.$provide.value",name:{"!type":"string","!url":"http://docs.angularjs.org/api/angular.Module#name","!doc":"Name of the module."},requires:{"!type":"[string]","!url":"http://docs.angularjs.org/api/angular.Module#requires","!doc":"List of module names which must be loaded before this module."}}},Promise:{"!url":"http://docs.angularjs.org/api/ng.$q","!doc":"Allow for interested parties to get access to the result of the deferred task when it completes.",prototype:{then:"fn(successCallback: fn(value: ?), errorCallback: fn(reason: ?), notifyCallback: fn(value: ?)) -> +Promise","catch":"fn(errorCallback: fn(reason: ?))","finally":"fn(callback: fn()) -> +Promise",success:"fn(callback: fn(data: ?, status: number, headers: ?, config: ?)) -> +Promise",error:"fn(callback: fn(data: ?, status: number, headers: ?, config: ?)) -> +Promise"}},Deferred:{"!url":"http://docs.angularjs.org/api/ng.$q",prototype:{resolve:"fn(value: ?)",reject:"fn(reason: ?)",notify:"fn(value: ?)",promise:"+Promise"}},ResourceClass:{"!url":"http://docs.angularjs.org/api/ngResource.$resource",prototype:{$promise:"+Promise",$save:"fn()"}},Resource:{"!url":"http://docs.angularjs.org/api/ngResource.$resource",prototype:{get:"fn(params: ?, callback: fn()) -> +ResourceClass",save:"fn(params: ?, callback: fn()) -> +ResourceClass",query:"fn(params: ?, callback: fn()) -> +ResourceClass",remove:"fn(params: ?, callback: fn()) -> +ResourceClass","delete":"fn(params: ?, callback: fn()) -> +ResourceClass"}},service:{$anchorScroll:{"!type":"fn()","!url":"http://docs.angularjs.org/api/ng.$anchorScroll","!doc":"Checks current value of $location.hash() and scroll to related element."},$animate:{"!url":"http://docs.angularjs.org/api/ng.$animate","!doc":"Rudimentary DOM manipulation functions to insert, remove, move elements within the DOM.",addClass:{"!type":"fn(element: +Element, className: string, done?: fn()) -> !this","!url":"http://docs.angularjs.org/api/ng.$animate#addClass","!doc":"Adds the provided className CSS class value to the provided element."},enter:{"!type":"fn(element: +Element, parent: +Element, after: +Element, done?: fn()) -> !this","!url":"http://docs.angularjs.org/api/ng.$animate#enter","!doc":"Inserts the element into the DOM either after the after element or within the parent element."},leave:{"!type":"fn(element: +Element, done?: fn()) -> !this","!url":"http://docs.angularjs.org/api/ng.$animate#leave","!doc":"Removes the element from the DOM."},move:{"!type":"fn(element: +Element, parent: +Element, after: +Element, done?: fn()) -> !this","!url":"http://docs.angularjs.org/api/ng.$animate#move","!doc":"Moves element to be placed either after the after element or inside of the parent element."},removeClass:{"!type":"fn(element: +Element, className: string, done?: fn()) -> !this","!url":"http://docs.angularjs.org/api/ng.$animate#removeClass","!doc":"Removes the provided className CSS class value from the provided element."}},$cacheFactory:{"!type":"fn(cacheId: string, options?: ?) -> cacheObj","!url":"http://docs.angularjs.org/api/ng.$cacheFactory","!doc":"Factory that constructs cache objects and gives access to them."},$compile:{"!type":"fn(element: +Element, transclude: fn(scope: ?), maxPriority: number)","!url":"http://docs.angularjs.org/api/ng.$compile","!doc":"Compiles a piece of HTML string or DOM into a template and produces a template function."},$controller:{"!type":"fn(controller: fn(), locals: ?) -> ?","!url":"http://docs.angularjs.org/api/ng.$controller","!doc":"Instantiates controllers."},$document:{"!type":"jQuery.fn","!url":"http://docs.angularjs.org/api/ng.$document","!doc":"A jQuery (lite)-wrapped reference to the browser's window.document element."},$exceptionHandler:{"!type":"fn(exception: +Error, cause?: string)","!url":"http://docs.angularjs.org/api/ng.$exceptionHandler","!doc":"Any uncaught exception in angular expressions is delegated to this service."},$filter:{"!type":"fn(name: string) -> fn(input: string) -> string","!url":"http://docs.angularjs.org/api/ng.$filter","!doc":"Retrieve a filter function."},$http:{"!type":"fn(config: ?) -> service.$q","!url":"http://docs.angularjs.org/api/ng.$http","!doc":"Facilitates communication with remote HTTP servers.","delete":"fn(url: string, config?: ?) -> +Promise",get:"fn(url: string, config?: ?) -> +Promise",head:"fn(url: string, config?: ?) -> +Promise",jsonp:"fn(url: string, config?: ?) -> +Promise",post:"fn(url: string, data: ?, config?: ?) -> +Promise",put:"fn(url: string, data: ?, config?: ?) -> +Promise"},$interpolate:{"!type":"fn(text: string, mustHaveExpression?: bool, trustedContext?: string) -> fn(context: ?) -> string","!url":"http://docs.angularjs.org/api/ng.$interpolate","!doc":"Compiles a string with markup into an interpolation function."},$locale:{"!url":"http://docs.angularjs.org/api/ng.$locale",id:"string"},$location:{"!url":"http://docs.angularjs.org/api/ng.$location","!doc":"Parses the URL in the browser address bar.",absUrl:{"!type":"fn() -> string","!url":"http://docs.angularjs.org/api/ng.$location#absUrl","!doc":"Return full url representation."},hash:{"!type":"fn(value?: string) -> string","!url":"http://docs.angularjs.org/api/ng.$location#hash","!doc":"Get or set the hash fragment."},host:{"!type":"fn() -> string","!url":"http://docs.angularjs.org/api/ng.$location#host","!doc":"Return host of current url."},path:{"!type":"fn(value?: string) -> string","!url":"http://docs.angularjs.org/api/ng.$location#path","!doc":"Get or set the URL path."},port:{"!type":"fn() -> number","!url":"http://docs.angularjs.org/api/ng.$location#port","!doc":"Returns the port of the current url."},protocol:{"!type":"fn() -> string","!url":"http://docs.angularjs.org/api/ng.$location#protocol","!doc":"Return protocol of current url."},replace:{"!type":"fn()","!url":"http://docs.angularjs.org/api/ng.$location#replace","!doc":"Changes to $location during current $digest will be replacing current history record, instead of adding new one."},search:{"!type":"fn(search: string, paramValue?: string) -> string","!url":"http://docs.angularjs.org/api/ng.$location#search","!doc":"Get or set the URL query."},url:{"!type":"fn(url: string, replace?: string) -> string","!url":"http://docs.angularjs.org/api/ng.$location#url","!doc":"Get or set the current url."}},$log:{"!url":"http://docs.angularjs.org/api/ng.$log","!doc":"Simple service for logging.",debug:{"!type":"fn(message: string)","!url":"http://docs.angularjs.org/api/ng.$log#debug","!doc":"Write a debug message."},error:{"!type":"fn(message: string)","!url":"http://docs.angularjs.org/api/ng.$log#error","!doc":"Write an error message."},info:{"!type":"fn(message: string)","!url":"http://docs.angularjs.org/api/ng.$log#info","!doc":"Write an info message."},log:{"!type":"fn(message: string)","!url":"http://docs.angularjs.org/api/ng.$log#log","!doc":"Write a log message."},warn:{"!type":"fn(message: string)","!url":"http://docs.angularjs.org/api/ng.$log#warn","!doc":"Write a warning message."}},$parse:{"!type":"fn(expression: string) -> fn(context: ?, locals: ?) -> ?","!url":"http://docs.angularjs.org/api/ng.$parse","!doc":"Converts Angular expression into a function."},$q:{"!type":"fn(executor: fn(resolve: fn(value: ?) -> +Promise, reject: fn(value: ?) -> +Promise)) -> +Promise","!url":"http://docs.angularjs.org/api/ng.$q","!doc":"A promise/deferred implementation.",all:{"!type":"fn(promises: [+Promise]) -> +Promise","!url":"http://docs.angularjs.org/api/ng.$q#all","!doc":"Combines multiple promises into a single promise."},defer:{"!type":"fn() -> +Deferred","!url":"http://docs.angularjs.org/api/ng.$q#defer","!doc":"Creates a Deferred object which represents a task which will finish in the future."},reject:{"!type":"fn(reason: ?) -> +Promise","!url":"http://docs.angularjs.org/api/ng.$q#reject","!doc":"Creates a promise that is resolved as rejected with the specified reason."},when:{"!type":"fn(value: ?) -> +Promise","!url":"http://docs.angularjs.org/api/ng.$q#when","!doc":"Wraps an object that might be a value or a (3rd party) then-able promise into a $q promise."}},$rootElement:{"!type":"+Element","!url":"http://docs.angularjs.org/api/ng.$rootElement","!doc":"The root element of Angular application."},$rootScope:{"!url":"http://docs.angularjs.org/api/ng.$rootScope",$apply:{"!type":"fn(expression: string)","!url":"http://docs.angularjs.org/api/ng.$rootScope.Scope#$apply","!doc":"Execute an expression in angular from outside of the angular framework."},$broadcast:{"!type":"fn(name: string, args?: ?) -> eventObj","!url":"http://docs.angularjs.org/api/ng.$rootScope.Scope#$broadcast","!doc":"Dispatches an event name downwards to all child scopes."},$destroy:{"!type":"fn()","!url":"http://docs.angularjs.org/api/ng.$rootScope.Scope#$destroy","!doc":"Removes the current scope (and all of its children) from the parent scope."},$digest:{"!type":"fn()","!url":"http://docs.angularjs.org/api/ng.$rootScope.Scope#$digest","!doc":"Processes all of the watchers of the current scope and its children."},$emit:{"!type":"fn(name: string, args?: ?) -> eventObj","!url":"http://docs.angularjs.org/api/ng.$rootScope.Scope#$emit","!doc":"Dispatches an event name upwards through the scope hierarchy."},$eval:{"!type":"fn(expression: string) -> ?","!url":"http://docs.angularjs.org/api/ng.$rootScope.Scope#$eval","!doc":"Executes the expression on the current scope and returns the result."},$evalAsync:{"!type":"fn(expression: string)","!url":"http://docs.angularjs.org/api/ng.$rootScope.Scope#$evalAsync","!doc":"Executes the expression on the current scope at a later point in time."},$new:{"!type":"fn(isolate: bool) -> service.$rootScope","!url":"http://docs.angularjs.org/api/ng.$rootScope.Scope#$new","!doc":"Creates a new child scope."},$on:{"!type":"fn(name: string, listener: fn(event: ?)) -> fn()","!url":"http://docs.angularjs.org/api/ng.$rootScope.Scope#$on","!doc":"Listens on events of a given type."},$watch:{"!type":"fn(watchExpression: string, listener?: fn(), objectEquality?: bool) -> fn()","!url":"http://docs.angularjs.org/api/ng.$rootScope.Scope#$watch","!doc":"Registers a listener callback to be executed whenever the watchExpression changes."},$watchCollection:{"!type":"fn(obj: string, listener: fn()) -> fn()","!url":"http://docs.angularjs.org/api/ng.$rootScope.Scope#$watchCollection","!doc":"Shallow watches the properties of an object and fires whenever any of the properties."},$id:{"!type":"number","!url":"http://docs.angularjs.org/api/ng.$rootScope.Scope#$id","!doc":"Unique scope ID."}},$sce:{HTML:"string",CSS:"string",URL:"string",RESOURCE_URL:"string",JS:"string",getTrusted:"fn(type: string, maybeTrusted: ?) -> !1",getTrustedCss:"fn(maybeTrusted: ?) -> !0",getTrustedHtml:"fn(maybeTrusted: ?) -> !0",getTrustedJs:"fn(maybeTrusted: ?) -> !0",getTrustedResourceUrl:"fn(maybeTrusted: ?) -> !0",getTrustedUrl:"fn(maybeTrusted: ?) -> !0",parse:"fn(type: string, expression: string) -> fn(context: ?, locals: ?) -> ?",parseAsCss:"fn(expression: string) -> fn(context: ?, locals: ?) -> ?",parseAsHtml:"fn(expression: string) -> fn(context: ?, locals: ?) -> ?",parseAsJs:"fn(expression: string) -> fn(context: ?, locals: ?) -> ?",parseAsResourceUrl:"fn(expression: string) -> fn(context: ?, locals: ?) -> ?",parseAsUrl:"fn(expression: string) -> fn(context: ?, locals: ?) -> ?",trustAs:"fn(type: string, value: ?) -> !1",trustAsHtml:"fn(value: ?) -> !0",trustAsJs:"fn(value: ?) -> !0",trustAsResourceUrl:"fn(value: ?) -> !0",trustAsUrl:"fn(value: ?) -> !0",isEnabled:"fn() -> bool"},$templateCache:{"!url":"http://docs.angularjs.org/api/ng.$templateCache","!proto":"cacheObj"},$timeout:{"!type":"fn(fn: fn(), delay?: number, invokeApply?: bool) -> +Promise","!url":"http://docs.angularjs.org/api/ng.$timeout","!doc":"Angular's wrapper for window.setTimeout.",cancel:"fn(promise: +Promise)"},$window:"<top>",$injector:{"!url":"http://docs.angularjs.org/api/AUTO.$injector","!doc":"Retrieve object instances as defined by provider.",annotate:{"!type":"fn(f: fn()) -> [string]","!url":"http://docs.angularjs.org/api/AUTO.$injector#annotate","!doc":"Returns an array of service names which the function is requesting for injection."},get:{"!type":"fn(name: string) -> ?","!url":"http://docs.angularjs.org/api/AUTO.$injector#get","!doc":"Return an instance of a service."},has:{"!type":"fn(name: string) -> bool","!url":"http://docs.angularjs.org/api/AUTO.$injector#has","!doc":"Allows the user to query if the particular service exist."},instantiate:{"!type":"fn(type: fn(), locals?: ?) -> +!0","!url":"http://docs.angularjs.org/api/AUTO.$injector#instantiate","!doc":"Create a new instance of JS type."},invoke:{"!type":"fn(type: fn(), self?: ?, locals?: ?) -> !0.!ret","!url":"http://docs.angularjs.org/api/AUTO.$injector#invoke","!doc":"Invoke the method and supply the method arguments from the $injector."}},$provide:{"!url":"http://docs.angularjs.org/api/AUTO.$provide","!doc":"Use $provide to register new providers with the $injector.",constant:{"!type":"fn(name: string, value: ?) -> !this","!effects":["custom angular_regField"],"!url":"http://docs.angularjs.org/api/AUTO.$provide#constant","!doc":"A constant value."},decorator:{"!type":"fn(name: string, decorator: fn())","!effects":["custom angular_regFieldCall"],"!url":"http://docs.angularjs.org/api/AUTO.$provide#decorator","!doc":"Decoration of service, allows the decorator to intercept the service instance creation."},factory:{"!type":"fn(name: string, providerFunction: fn()) -> !this","!effects":["custom angular_regFieldCall"],"!url":"http://docs.angularjs.org/api/AUTO.$provide#factory","!doc":"A short hand for configuring services if only $get method is required."},provider:{"!type":"fn(name: string, providerType: fn()) -> !this","!effects":["custom angular_regFieldCall"],"!url":"http://docs.angularjs.org/api/AUTO.$provide#provider","!doc":"Register a provider for a service."},service:{"!type":"fn(name: string, constructor: fn()) -> !this","!effects":["custom angular_regFieldNew"],"!url":"http://docs.angularjs.org/api/AUTO.$provide#provider","!doc":"Register a provider for a service."},value:{"!type":"fn(name: string, object: ?) -> !this","!effects":["custom angular_regField"],"!url":"http://docs.angularjs.org/api/AUTO.$providevalue","!doc":"A short hand for configuring services if the $get method is a constant."}},$cookies:{"!url":"http://docs.angularjs.org/api/ngCookies.$cookies","!doc":"Provides read/write access to browser's cookies.",text:"string"},$resource:{"!type":"fn(url: string, paramDefaults?: ?, actions?: ?) -> +Resource","!url":"http://docs.angularjs.org/api/ngResource.$resource","!doc":"Creates a resource object that lets you interact with RESTful server-side data sources."},$route:{"!url":"http://docs.angularjs.org/api/ngRoute.$route","!doc":"Deep-link URLs to controllers and views.",reload:{"!type":"fn()","!url":"http://docs.angularjs.org/api/ngRoute.$route#reload","!doc":"Reload the current route even if $location hasn't changed."},current:{"!url":"http://docs.angularjs.org/api/ngRoute.$route#current","!doc":"Reference to the current route definition.",controller:"?",locals:"?"},routes:"[?]"},$sanitize:{"!type":"fn(string) -> string","!url":"http://docs.angularjs.org/api/ngSanitize.$sanitize","!doc":"Sanitize HTML input."},$swipe:{"!url":"http://docs.angularjs.org/api/ngTouch.$swipe","!doc":"A service that abstracts the messier details of hold-and-drag swipe behavior.",bind:{"!type":"fn(element: +Element, handlers: ?)","!url":"http://docs.angularjs.org/api/ngTouch.$swipe#bind","!doc":"Abstracts the messier details of hold-and-drag swipe behavior."}}}},angular:{bind:{"!type":"fn(self: ?, fn: fn(), args?: ?) -> !custom:angular_bind","!url":"http://docs.angularjs.org/api/angular.bind","!doc":"Returns a function which calls function fn bound to self."},bootstrap:{"!type":"fn(element: +Element, modules?: [string]) -> service.$injector","!url":"http://docs.angularjs.org/api/angular.bootstrap","!doc":"Use this function to manually start up angular application."},copy:{"!type":"fn(source: ?, target?: ?) -> !0","!url":"http://docs.angularjs.org/api/angular.copy","!doc":"Creates a deep copy of source, which should be an object or an array."},element:{"!type":"fn(element: +Element) -> jQuery.fn","!url":"http://docs.angularjs.org/api/angular.element","!doc":"Wraps a raw DOM element or HTML string as a jQuery element."},equals:{"!type":"fn(o1: ?, o2: ?) -> bool","!url":"http://docs.angularjs.org/api/angular.equals","!doc":"Determines if two objects or two values are equivalent."},extend:{"!type":"fn(dst: ?, src: ?) -> !0","!url":"http://docs.angularjs.org/api/angular.extend","!doc":"Extends the destination object dst by copying all of the properties from the src object(s) to dst."},forEach:{"!type":"fn(obj: ?, iterator: fn(value: ?, key: ?), context?: ?) -> !0","!effects":["call !1 this=!2 !0.<i> number"],"!url":"http://docs.angularjs.org/api/angular.forEach","!doc":"Invokes the iterator function once for each item in obj collection, which can be either an object or an array."},fromJson:{"!type":"fn(json: string) -> ?","!url":"http://docs.angularjs.org/api/angular.fromJson","!doc":"Deserializes a JSON string."},identity:{"!type":"fn(val: ?) -> !0","!url":"http://docs.angularjs.org/api/angular.identity","!doc":"A function that returns its first argument."},injector:{"!type":"fn(modules: [string]) -> service.$injector","!url":"http://docs.angularjs.org/api/angular.injector","!doc":"Creates an injector function"},isArray:{"!type":"fn(val: ?) -> bool","!url":"http://docs.angularjs.org/api/angular.isArray","!doc":"Determines if a reference is an Array."},isDate:{"!type":"fn(val: ?) -> bool","!url":"http://docs.angularjs.org/api/angular.isDate","!doc":"Determines if a reference is a date."},isDefined:{"!type":"fn(val: ?) -> bool","!url":"http://docs.angularjs.org/api/angular.isDefined","!doc":"Determines if a reference is defined."},isElement:{"!type":"fn(val: ?) -> bool","!url":"http://docs.angularjs.org/api/angular.isElement","!doc":"Determines if a reference is a DOM element."},isFunction:{"!type":"fn(val: ?) -> bool","!url":"http://docs.angularjs.org/api/angular.isFunction","!doc":"Determines if a reference is a function."},isNumber:{"!type":"fn(val: ?) -> bool","!url":"http://docs.angularjs.org/api/angular.isNumber","!doc":"Determines if a reference is a number."},isObject:{"!type":"fn(val: ?) -> bool","!url":"http://docs.angularjs.org/api/angular.isObject","!doc":"Determines if a reference is an object."},isString:{"!type":"fn(val: ?) -> bool","!url":"http://docs.angularjs.org/api/angular.isString","!doc":"Determines if a reference is a string."},isUndefined:{"!type":"fn(val: ?) -> bool","!url":"http://docs.angularjs.org/api/angular.isUndefined","!doc":"Determines if a reference is undefined."},lowercase:{"!type":"fn(val: string) -> string","!url":"http://docs.angularjs.org/api/angular.lowercase","!doc":"Converts the specified string to lowercase."},module:{"!type":"fn(name: string, deps: [string]) -> !custom:angular_module","!url":"http://docs.angularjs.org/api/angular.module","!doc":"A global place for creating, registering and retrieving Angular modules."},Module:"Module",noop:{"!type":"fn()","!url":"http://docs.angularjs.org/api/angular.noop","!doc":"A function that performs no operations."},toJson:{"!type":"fn(val: ?) -> string","!url":"http://docs.angularjs.org/api/angular.toJson","!doc":"Serializes input into a JSON-formatted string."},uppercase:{"!type":"fn(string) -> string","!url":"http://docs.angularjs.org/api/angular.uppercase","!doc":"Converts the specified string to uppercase."},version:{"!url":"http://docs.angularjs.org/api/angular.version",full:"string",major:"number",minor:"number",dot:"number",codename:"string"}}}
}),function(e){return"object"==typeof exports&&"object"==typeof module?e(require("../lib/infer"),require("../lib/tern"),require("../lib/comment"),require("esprima/esprima"),require("acorn/dist/walk")):"function"==typeof define&&define.amd?define("tern/plugin/doc_comment",["../lib/infer","../lib/tern","../lib/comment","esprima/esprima","acorn/dist/walk"],e):void e(tern,tern,tern.comment,acorn,acorn.walk)}(function(e,t,n,r,o){"use strict";function s(e,t){function r(e){n.ensureCommentsBefore(t,e)}o.simple(e,{VariableDeclaration:r,FunctionDeclaration:r,AssignmentExpression:function(e){"="==e.operator&&r(e)},ObjectExpression:function(e){for(var t=0;t<e.properties.length;++t)r(e.properties[t])},CallExpression:function(e){a(e)&&r(e)}})}function a(e){return"MemberExpression"==e.callee.type&&"Object"==e.callee.object.name&&"defineProperty"==e.callee.property.name&&e.arguments.length>=3&&"string"==typeof e.arguments[1].value}function i(t,n){v(t.sourceFile.text,n),o.simple(t,{VariableDeclaration:function(e,t){e.commentsBefore&&p(e,e.commentsBefore,t,t.getProp(e.declarations[0].id.name))},FunctionDeclaration:function(e,t){e.commentsBefore&&p(e,e.commentsBefore,t,t.getProp(e.id.name),e.body.scope.fnType)},AssignmentExpression:function(t,n){t.commentsBefore&&p(t,t.commentsBefore,n,e.expressionType({node:t.left,state:n}))},ObjectExpression:function(e,t){for(var n=0;n<e.properties.length;++n){var r=e.properties[n];r.commentsBefore&&p(r,r.commentsBefore,t,e.objType.getProp(r.key.name))}},CallExpression:function(t,n){if(t.commentsBefore&&a(t)){var r=e.expressionType({node:t.arguments[0],state:n}).getObjType();if(r&&r instanceof e.Obj){var o=r.props[t.arguments[1].value];o&&p(t,t.commentsBefore,n,o)}}}},e.searchVisitor,n)}function l(t){var n=t["!typedef"],r=e.cx(),o=t["!name"];if(n)for(var s in n)r.parent.jsdocTypedefs[s]=g(e.def.parse(n[s],o,s),s)}function c(e){for(var t,n=1;n<e.length;n++){var r=e[n],o=r.match(/^[\s\*]*/)[0];if(o!=r)if(null==t)t=o;else{for(var s=0;s<t.length&&t.charCodeAt(s)==o.charCodeAt(s);)++s;s<t.length&&(t=t.slice(0,s))}}for(e=e.map(function(e,n){if(e=e.replace(/\s+$/,""),0==n&&null!=t)for(var r=0;r<t.length;r++){var o=e.indexOf(t.slice(r));if(0==o)return e.slice(t.length-r)}return null==t||0==n?e.replace(/^[\s\*]*/,""):e.length<t.length?"":e.slice(t.length)});e.length&&!e[e.length-1];)e.pop();for(;e.length&&!e[0];)e.shift();return e}function p(t,n,r,o,s){y(t,r,o,n);var a=e.cx();!s&&o instanceof e.AVal&&o.types.length&&(s=o.types[o.types.length-1],s instanceof e.Obj&&s.origin==a.curOrigin&&!s.doc||(s=null));for(var i=n.length-1;i>=0;i--){var l=c(n[i].split(/\r\n?|\n/)).join("\n");if(l){o instanceof e.AVal&&(o.doc=l),s&&(s.doc=l);break}}}function u(e,t){for(;/\s/.test(e.charAt(t));)++t;return t}function d(e){if(!r.isIdentifierStart(e.charCodeAt(0)))return!1;for(var t=1;t<e.length;t++)if(!r.isIdentifierChar(e.charCodeAt(t)))return!1;return!0}function h(e,t,n,r){for(var o=[],s=[],a=!1,i=!0;n=u(t,n),!i||t.charAt(n)!=r;i=!1){var l=t.indexOf(":",n);if(0>l)return null;var c=t.slice(n,l);if(!d(c))return null;o.push(c),n=l+1;var p=f(e,t,n);if(!p)return null;n=p.end,a=a||p.madeUp,s.push(p.type),n=u(t,n);var h=t.charAt(n);if(++n,h==r)break;if(","!=h)return null}return{labels:o,types:s,end:n,madeUp:a}}function f(t,n,r){for(var o,s=!1,a=!1;;){var i=m(t,n,r);if(!i)return null;if(a=a||i.madeUp,s?i.type.propagate(s):o=i.type,r=u(n,i.end),"|"!=n.charAt(r))break;r++,s||(s=new e.AVal,o.propagate(s),o=s)}var l=!1;return"="==n.charAt(r)&&(++r,l=!0),{type:o,end:r,isOptional:l,madeUp:a}}function m(t,n,o){o=u(n,o);var s,a=!1;if(n.indexOf("function(",o)==o){var i=h(t,n,o+9,")"),l=e.ANull;if(!i)return null;if(o=u(n,i.end),":"==n.charAt(o)){++o;var c=f(t,n,o+1);if(!c)return null;o=c.end,l=c.type,a=c.madeUp}s=new e.Fn(null,e.ANull,i.types,i.labels,l)}else if("["==n.charAt(o)){var p=f(t,n,o+1);if(!p)return null;if(o=u(n,p.end),a=p.madeUp,"]"!=n.charAt(o))return null;++o,s=new e.Arr(p.type)}else if("{"==n.charAt(o)){var d=h(t,n,o+1,"}");if(!d)return null;s=new e.Obj(!0);for(var m=0;m<d.types.length;++m){var b=s.defProp(d.labels[m]);b.initializer=!0,d.types[m].propagate(b)}o=d.end,a=d.madeUp}else if("("==n.charAt(o)){var p=f(t,n,o+1);if(!p)return null;if(o=u(n,p.end),")"!=n.charAt(o))return null;++o,s=p.type}else{var y=o;if(!r.isIdentifierStart(n.charCodeAt(o)))return null;for(;r.isIdentifierChar(n.charCodeAt(o));)++o;if(y==o)return null;var v=n.slice(y,o);if(/^(number|integer)$/i.test(v))s=e.cx().num;else if(/^bool(ean)?$/i.test(v))s=e.cx().bool;else if(/^string$/i.test(v))s=e.cx().str;else if(/^(null|undefined)$/i.test(v))s=e.ANull;else if(/^array$/i.test(v)){var p=null;if("."==n.charAt(o)&&"<"==n.charAt(o+1)){var w=f(t,n,o+2);if(!w)return null;if(o=u(n,w.end),a=w.madeUp,">"!=n.charAt(o++))return null;p=w.type}s=new e.Arr(p)}else if(/^object$/i.test(v)){if(s=new e.Obj(!0),"."==n.charAt(o)&&"<"==n.charAt(o+1)){var S=f(t,n,o+2);if(!S)return null;if(o=u(n,S.end),a=a||S.madeUp,","!=n.charAt(o++))return null;var _=f(t,n,o);if(!_)return null;if(o=u(n,_.end),a=S.madeUp||_.madeUp,">"!=n.charAt(o++))return null;_.type.propagate(s.defProp("<i>"))}}else{for(;46==n.charCodeAt(o)||r.isIdentifierChar(n.charCodeAt(o));)++o;var x,j=n.slice(y,o),E=e.cx(),T=E.parent&&E.parent.jsdocTypedefs;T&&j in T?s=T[j]:(x=e.def.parsePath(j,t).getObjType())?s=g(x,j):(E.jsdocPlaceholders||(E.jsdocPlaceholders=Object.create(null)),s=j in E.jsdocPlaceholders?E.jsdocPlaceholders[j]:E.jsdocPlaceholders[j]=new e.Obj(null,j),a=!0)}}return{type:s,end:o,madeUp:a}}function g(t,n){if(t instanceof e.Fn&&/^[A-Z]/.test(n)){var r=t.getProp("prototype").getObjType();if(r instanceof e.Obj)return e.getInstance(r)}return t}function b(e,t,n){if(n=u(t,n||0),"{"!=t.charAt(n))return null;var r=f(e,t,n+1);if(!r)return null;var o=u(t,r.end);return"}"!=t.charAt(o)?null:(r.end=o+1,r)}function y(e,t,n,r){for(var o,s,a,i,l,c,p=r.length-1;p>=0;p--)for(var u,d=r[p],h=/(?:\n|$|\*)\s*@(type|param|arg(?:ument)?|returns?|this)\s+(.*)/g;u=h.exec(d);)if("this"==u[1]&&(c=f(t,u[2],0)))l=c,i=!0;else if(c=b(t,u[2]))switch(i=!0,u[1]){case"returns":case"return":a=c;break;case"type":o=c;break;case"param":case"arg":case"argument":var m=u[2].slice(c.end).match(/^\s*(\[?)\s*([^\]\s=]+)\s*(?:=[^\]]+\s*)?(\]?).*/);if(!m)continue;var g=m[2]+(c.isOptional||"["===m[1]&&"]"===m[3]?"?":"");(s||(s=Object.create(null)))[g]=c}i&&S(o,l,s,a,e,n)}function v(t,n){for(var r,o=e.cx(),s=/\s@typedef\s+(.*)/g;r=s.exec(t);){var a=b(n,r[1]),i=a&&r[1].slice(a.end).match(/^\s*(\S+)/);i&&(o.parent.jsdocTypedefs[i[1]]=a.type)}}function w(t,n){var r=e.cx().parent._docComment.weight;t.type.propagate(n,r||(t.madeUp?_:void 0))}function S(t,n,r,o,s,a){var i;if("VariableDeclaration"==s.type){var l=s.declarations[0];l.init&&"FunctionExpression"==l.init.type&&(i=l.init.body.scope.fnType)}else"FunctionDeclaration"==s.type?i=s.body.scope.fnType:"AssignmentExpression"==s.type?"FunctionExpression"==s.right.type&&(i=s.right.body.scope.fnType):"CallExpression"==s.type||"FunctionExpression"==s.value.type&&(i=s.value.body.scope.fnType);if(i&&(r||o||n)){if(r)for(var c=0;c<i.argNames.length;++c){var p=i.argNames[c],u=r[p];!u&&(u=r[p+"?"])&&(i.argNames[c]+="?"),u&&w(u,i.args[c])}o&&(i.retval==e.ANull&&(i.retval=new e.AVal),w(o,i.retval)),n&&w(n,i.self)}else t&&w(t,a)}var _=1,x=101;t.registerPlugin("doc_comment",function(e,t){return e.jsdocTypedefs=Object.create(null),e.on("reset",function(){e.jsdocTypedefs=Object.create(null)}),e._docComment={weight:t&&t.strong?x:void 0,fullDocs:t&&t.fullDocs},{passes:{postParse:s,postInfer:i,postLoadDef:l}}})}),define("orion/editor/templates",[],function(){function e(e,t){return t.substring(e.length)}function t(e,t,n,r){this.prefix=e,this.description=t,this.template=n,this.name=r,this._parse()}function n(e,t){this._keywords=e||[],this._templates=[],this.addTemplates(t||[])}var r="${tab}",o="${delimiter}",s="${cursor}";return t.prototype={getProposal:function(e,t,n){var a,i=t-e.length,l={},c=void 0!==n.delimiter?n.delimiter:"\n";n.indentation&&(c+=n.indentation);for(var p=void 0!==n.tab?n.tab:"	",u=0,d=this.variables,h=this.segments,f=[],m=0;m<h.length;m++){var g=h[m],b=d[g];if(void 0!==b)switch(g){case r:g=p;break;case o:g=c;break;case s:g="",a=u;break;default:var y=l[g];y||(y=l[g]={data:b.data,positions:[]}),g=b.substitution,y.data&&y.data.values&&(g=y.data.values[0]),y.positions.push({offset:i+u,length:g.length})}f.push(g),u+=g.length}var v=[];for(var w in l)l.hasOwnProperty(w)&&v.push(l[w]);return f=f.join(""),void 0===a&&(a=f.length),{proposal:f,name:this.name,description:this.description,groups:v,escapePosition:i+a,style:"noemphasis"}},match:function(e){return 0===this.prefix.indexOf(e)},_parse:function(){var e,t=this.template,n=[],s={},a=0;t=t.replace(/\n/g,o),t=t.replace(/\t/g,r),t.replace(/\$\{((?:[^\\}]+|\\.))*\}/g,function(r,o,i){var l=r.substring(2,r.length-1),c=r,p=l,u=null,d=p.indexOf(":");-1!==d&&(p=p.substring(0,d),c="${"+p+"}",u=JSON.parse(l.substring(d+1).replace("\\}","}").trim()));var h=s[c];return h||(h=s[c]={}),h.substitution=p,u&&(h.data=u),e=t.substring(a,i),e&&n.push(e),n.push(c),a=i+r.length,p}),e=t.substring(a,t.length),e&&n.push(e),this.segments=n,this.variables=s}},n.prototype={addTemplates:function(e){for(var n=this.getTemplates(),r=0;r<e.length;r++)n.push(new t(e[r].prefix,e[r].description,e[r].template,e[r].name))},initialize:function(){},computeProposals:function(e,t,n){var r=this.getPrefix(e,t,n),o=[];return this.isValid(r,e,t,n)&&(o=o.concat(this.getTemplateProposals(r,t,n)),o=o.concat(this.getKeywordProposals(r))),o},getKeywords:function(){return this._keywords},getKeywordProposals:function(t){var n=[],r=this.getKeywords();if(r){for(var o=0;o<r.length;o++)0===r[o].indexOf(t)&&n.push({proposal:e(t,r[o]),description:r[o],style:"noemphasis_keyword"});0<n.length&&n.splice(0,0,{proposal:"",description:"Keywords",style:"noemphasis_title_keywords",unselectable:!0})}return n},getPrefix:function(e,t,n){return n.prefix},getTemplates:function(){return this._templates},getTemplateProposals:function(e,t,n){for(var r=[],o=this.getTemplates(),s=0;s<o.length;s++){var a=o[s];if(a.match(e)){var i=a.getProposal(e,t,n);this.removePrefix(e,i),r.push(i)}}return 0<r.length&&(r.sort(function(e,t){return e.name<t.name?-1:e.name>t.name?1:0}),r.splice(0,0,{proposal:"",description:"Templates",style:"noemphasis_title",unselectable:!0})),r},removePrefix:function(t,n){var r=n.overwrite=n.proposal.substring(0,t.length)!==t;r||(n.proposal=e(t,n.proposal))},isValid:function(){return!0}},{Template:t,TemplateContentAssist:n}}),define("javascript/ternPlugins/resolver",["orion/editor/templates"],function(e){function t(e,t){for(var r=Object.keys(u),o=0;o<r.length;o++){var s=r[o],a=u[s];a&&(a.pending||a.file)||n(e,s,t)}}function n(e,t,n){if(!u[t].pending&&!u[t].err){var r=function(t){clearTimeout(u[t].timeout),u[t].file=null,u[t].contents="",u[t].err="Read operation timed out.",delete u[t].pending,e.finishAsyncAction(u[t].err)};e.startAsyncAction(),u[t].pending=!0,u[t].timeout=setTimeout(r,4e3,t),e.options.getFile({logical:t,file:n},function(n,r){clearTimeout(u[t].timeout),u[t].file=r.file,u[t].contents="string"==typeof r.contents?r.contents:"",u[t].logical=r.logical,u[t].err=n,delete u[t].pending,e.finishAsyncAction(n)})}}function r(e){var t=function(){clearTimeout(n),o(e)},n=setTimeout(t,e.options.fetchTimeout)}function o(e){if(e.pending)return r(e);for(var t=!0,n=Object.keys(u),o=0;o<n.length;o++)if(!u[n[o]]){t=!1;break}return t?void 0:r(e)}function s(e,n,r,o){if(Array.isArray(n.dependencies)&&n.dependencies.length>0){for(var s=0;s<n.dependencies.length;s++){var i=a(n.dependencies[s]);if(i){if("object"==typeof u[i])continue;if("object"==typeof r){if(r[i])continue;if("object"==typeof r.node&&r.node[i])continue;if("object"==typeof r.requirejs&&r.requirejs[i])continue}if("function"==typeof o&&!o(i))continue;u[i]=Object.create(null)}}t(e,n.sourceFile?n.sourceFile.name:null)}}function a(e){return"string"==typeof e?e:e&&"object"==typeof e?e.value:null}function i(e){return u[e]}function l(t){if(t.t)return t.t;var n=new e.Template(t.prefix,t.description,t.template,t.name);return t.t=n,n}function c(e,t){if(e&&e.parents&&e.parents.length>0){var n=e.parents.pop();switch(n.type){case"MemberExpression":return{kind:"member"};case"VariableDeclarator":return null;case"FunctionDelcaration":case"FunctionExpression":if(t<n.body.range[0])return null;break;case"Property":return t-1>=n.value.range[0]&&t-1<=n.value.range[1]?{kind:"prop"}:null;case"SwitchStatement":return{kind:"swtch"}}}return{kind:"top"}}function p(e,t,n){var r=c(t,n);if(r&&r.kind){for(var o=[],s=e.length,a=0;s>a;a++){var i=e[a];i.nodes&&i.nodes[r.kind]&&o.push(i)}return o.map(l,this)}}var u=Object.create(null);return{doPostParse:s,doPreInfer:o,getResolved:i,getTemplatesForNode:p}}),function(e){return"object"==typeof exports&&"object"==typeof module?e(require("../lib/infer"),require("../lib/tern"),require):"function"==typeof define&&define.amd?define("tern/plugin/node",["../lib/infer","../lib/tern","javascript/ternPlugins/resolver"],e):void e(tern,tern)}(function(e,t,n,r){"use strict";function o(e,t){if("/"==t[0])return t;var n,r=e.lastIndexOf("/");for(r>=0&&(t=e.slice(0,r+1)+t);n=/[^\/]*[^\/\.][^\/]*\/\.\.\//.exec(t);)t=t.slice(0,n.index)+t.slice(n.index+n[0].length);return t.replace(/(^|[^\.])\.\//g,"$1")}function s(e,t){return"/"!=e[e.length-1]&&(e+="/"),0==t.indexOf(e)?t.slice(e.length):t}function a(t,n){return t.modules[n]||(t.modules[n]=new e.AVal)}function i(t,n,r){var o=new e.Scope(t);o.originNode=r,e.cx().definitions.node.require.propagate(o.defProp("require"));var s=new e.Obj(e.cx().definitions.node.Module.getProp("prototype").getType());s.propagate(o.defProp("module"));var a=new e.Obj(!0,"exports");s.origin=a.origin=n,s.originNode=a.originNode=o.originNode,a.propagate(o.defProp("exports"));var i=o.exports=s.defProp("exports");return a.propagate(i,y),o}function l(e,t,n,r){return e.addFile(t,r,e._node.currentOrigin),a(e._node,t)}function c(e){return e.replace(/\\/g,"/")}function p(e,t){return o(c(e.options.projectDir||"")+"/",c(t))}function u(t){var n=e.cx().parent._node.modules,r=t.roots["!node"]=new e.Obj(null);for(var o in n){var s=n[o],a=s.origin||o,i=r.defProp(a.replace(/\./g,"`"));s.propagate(i),i.origin=s.origin}}function d(t){var n=e.cx(),r=n.definitions[t["!name"]]["!node"],t=n.parent._node;if(r)for(var o in r.props){var s=o.replace(/`/g,"."),i=a(t,s);i.origin=s,r.props[o].propagate(i)}}function h(e,t,n,r){if(!n)return r;var o="Literal"===n.node.type&&"string"==typeof n.node.value,s=!!n.node.required;if(o&&s){r=Object.create(r);var a;n.node.required&&(a=n.node.required.getType())&&(r.origin=a.origin,r.originNode=a.originNode)}return r}function f(n,r){var o=t.resolvePos(n,r.end),s=e.findExpressionAround(n.ast,null,o,n.scope,"CallExpression");if(s){var a=s.node;if(!("Identifier"!=a.callee.type||"require"!=a.callee.name||a.arguments.length<1)){var i=a.arguments[0];if(!("Literal"!=i.type||"string"!=typeof i.value||i.start>o||i.end<o)){var l=i.raw.slice(1,o-i.start),c=i.raw.charAt(0);l&&l.charAt(l.length-1)==c&&(l=l.slice(0,l.length-1));var p=m(r,n,l);return i.end==o+1&&n.text.charAt(o)==c&&++o,{start:t.outputPos(r,n,i.start),end:t.outputPos(r,n,o),isProperty:!1,completions:p.map(function(e){var t="string"==typeof e?e:e.name,n=JSON.stringify(t);return"'"==c&&(n=c+n.slice(1,n.length-1).replace(/'/g,"\\'")+c),"string"==typeof e?n:(e.displayName=t,e.name=n,e)})}}}}}function m(t,n,r){function o(n){for(var o in n)if(o!=c){var a=g(o,c);if(a&&(t.filter===!1||!r||0===(t.caseInsensitive?a.toLowerCase():a).indexOf(r))){var i=u?{name:a}:a;if(s.push(i),t.types||t.docs||t.urls||t.origins){var l=n[o];e.resetGuessing();var p=l.getType();i.guess=e.didGuess(),t.types&&(i.type=e.toString(l)),t.docs&&b(i,"doc",l.doc||p&&p.doc),t.urls&&b(i,"url",l.url||p&&p.url),t.origins&&b(i,"origin",l.origin||p&&p.origin)}}}}var s=[],a=e.cx(),i=a.parent,l=i._node,c=l.currentFile||p(i,n.name),u=t.types||t.depths||t.docs||t.urls||t.origins;return t.caseInsensitive&&(r=r.toLowerCase()),o(a.definitions.node),o(l.modules),s}function g(e,t){function n(e,t){return e.slice(0,t.length)==t}function r(e,t){return e.slice(-t.length)==t}if(-1==e.indexOf("/"))return e;var o=c(s(t+"/..",e));return n(o,"node_modules")?(o=o.substring("node_modules".length+1,o.length),r(o,"index.js")&&(o=o.substring(0,o.length-"index.js".length-1))):n(o,"../")||(o="./"+o),r(o,".js")&&(o=o.substring(0,o.length-".js".length)),o}function b(e,t,n){null!=n&&(e[t]=n)}var y=95;r&&function(){var t=r("fs"),n=r("module"),o=r("path");s=o.relative,l=function(r,a,i){var l=r._node;if(1==l.options.dontLoad||l.options.dontLoad&&new RegExp(l.options.dontLoad).test(a)||l.options.load&&!new RegExp(l.options.load).test(a))return e.ANull;if(l.modules[a])return l.modules[a];var p={id:i,paths:n._nodeModulePaths(o.dirname(i))};try{var u=n._resolveFilename(a,p)}catch(d){return e.ANull}var h=c(u);return l.modules[h]?l.modules[h]:(t.existsSync(u)&&/^(\.js)?$/.test(o.extname(u))&&r.addFile(s(r.options.projectDir,u),null,l.currentOrigin),l.modules[h]=new e.AVal)}}(),e.registerFunction("nodeRequire",function(t,r,s){if(!s||!s.length||"Literal"!=s[0].type||"string"!=typeof s[0].value)return e.ANull;var a,c=e.cx(),u=c.parent,d=u._node,h=s[0].value,f=c.definitions.node;if(f[h]&&/^[a-z_]*$/.test(h))a=f[h];else if(h in d.modules)a=d.modules[h];else if(d.options.modules&&d.options.modules.hasOwnProperty(h)){var m=d.options.modules[h];if("string"==typeof m&&"="==m.charAt(0))a=e.def.parsePath(m.slice(1));else{var g=i(c.topScope,h);e.def.load(d.options.modules[h],g),a=d.modules[h]=g.exports}}else{var b=n.getResolved(h);if(b&&b.file){h=b.file;var y=d.currentFile||p(u,s[0].sourceFile.name),v=/^\.{0,2}\//.test(h);if(v){if(!y)return s[0].required||e.ANull;h=o(y,h)}a=l(u,h,y,b.content)}else a=new e.AVal}return s[0].required=a}),t.registerPlugin("node",function(t,r){function o(e){return/\.js$/g.test(e.name)&&e.ast&&e.ast.environments?e.ast.environments.node:!1}return t._node={modules:Object.create(null),options:r||{},currentFile:null,currentRequires:[],currentOrigin:null,server:t},t.on("beforeLoad",function(e){o(e)&&(this._node.currentFile=p(t,e.name),this._node.currentOrigin=e.name,this._node.currentRequires=[],e.scope=i(e.scope,this._node.currentOrigin,e.ast))}),t.on("afterLoad",function(e){if(o(e)){var t=a(this._node,this._node.currentFile);t.origin=this._node.currentOrigin,e.scope.exports.propagate(t),this._node.currentFile=null,this._node.currentOrigin=null}}),t.on("reset",function(){this._node.modules=Object.create(null)}),{defs:v,passes:{preCondenseReach:u,postLoadDef:d,completion:f,typeAt:h,postParse:function(r){r&&r.environments&&r.environments.node&&n.doPostParse(t,r,e.cx().definitions,function(e){return/^[.]+\//.test(e)})},preInfer:function(e){e&&e.environments&&e.environments.node&&n.doPreInfer(t)}}}}),t.defineQueryType("node_exports",{takesFile:!0,run:function(n,r,o){function s(o){var s={},a=o.getType(!1);s.type=e.toString(o,3);var i=o.doc||a&&a.doc,l=o.url||a&&a.url;i&&(s.doc=i),l&&(s.url=l);var c=t.getSpan(o)||a&&t.getSpan(a);return c&&t.storeSpan(n,r,c,s),s}var a=n._node.modules[p(n,o.name)];if(!a)return{};var i=a.getObjType(!1),l=s(a);if(i instanceof e.Obj){var c=l.props={};for(var u in i.props)c[u]=s(i.props[u])}return l}});var v={"!name":"node","!define":{require:{"!type":"fn(id: string) -> !custom:nodeRequire",resolve:{"!type":"fn() -> string","!url":"http://nodejs.org/api/globals.html#globals_require_resolve","!doc":"Use the internal require() machinery to look up the location of a module, but rather than loading the module, just return the resolved filename."},cache:{"!url":"http://nodejs.org/api/globals.html#globals_require_cache","!doc":"Modules are cached in this object when they are required. By deleting a key value from this object, the next require will reload the module."},extensions:{"!url":"http://nodejs.org/api/globals.html#globals_require_extensions","!doc":"Instruct require on how to handle certain file extensions."},"!url":"http://nodejs.org/api/globals.html#globals_require","!doc":"To require modules."},Module:{"!type":"fn()",prototype:{exports:{"!type":"?","!url":"http://nodejs.org/api/modules.html#modules_module_exports","!doc":"The exports object is created by the Module system. Sometimes this is not acceptable, many want their module to be an instance of some class. To do this assign the desired export object to module.exports. For example suppose we were making a module called a.js"},require:{"!type":"require","!url":"http://nodejs.org/api/modules.html#modules_module_require_id","!doc":"The module.require method provides a way to load a module as if require() was called from the original module."},id:{"!type":"string","!url":"http://nodejs.org/api/modules.html#modules_module_id","!doc":"The identifier for the module. Typically this is the fully resolved filename."},filename:{"!type":"string","!url":"http://nodejs.org/api/modules.html#modules_module_filename","!doc":"The fully resolved filename to the module."},loaded:{"!type":"bool","!url":"http://nodejs.org/api/modules.html#modules_module_loaded","!doc":"Whether or not the module is done loading, or is in the process of loading."},parent:{"!type":"+Module","!url":"http://nodejs.org/api/modules.html#modules_module_parent","!doc":"The module that required this one."},children:{"!type":"[+Module]","!url":"http://nodejs.org/api/modules.html#modules_module_children","!doc":"The module objects required by this one."}}},events:{EventEmitter:{prototype:{addListener:{"!type":"fn(event: string, listener: fn())","!url":"http://nodejs.org/api/events.html#events_emitter_addlistener_event_listener","!doc":"Adds a listener to the end of the listeners array for the specified event."},on:{"!type":"fn(event: string, listener: fn())","!url":"http://nodejs.org/api/events.html#events_emitter_on_event_listener","!doc":"Adds a listener to the end of the listeners array for the specified event."},once:{"!type":"fn(event: string, listener: fn())","!url":"http://nodejs.org/api/events.html#events_emitter_once_event_listener","!doc":"Adds a one time listener for the event. This listener is invoked only the next time the event is fired, after which it is removed."},removeListener:{"!type":"fn(event: string, listener: fn())","!url":"http://nodejs.org/api/events.html#events_emitter_removelistener_event_listener","!doc":"Remove a listener from the listener array for the specified event. Caution: changes array indices in the listener array behind the listener."},removeAllListeners:{"!type":"fn(event: string)","!url":"http://nodejs.org/api/events.html#events_emitter_removealllisteners_event","!doc":"Removes all listeners, or those of the specified event."},setMaxListeners:{"!type":"fn(n: number)","!url":"http://nodejs.org/api/events.html#events_emitter_setmaxlisteners_n","!doc":"By default EventEmitters will print a warning if more than 10 listeners are added for a particular event. This is a useful default which helps finding memory leaks. Obviously not all Emitters should be limited to 10. This function allows that to be increased. Set to zero for unlimited."},listeners:{"!type":"fn(event: string) -> [fn()]","!url":"http://nodejs.org/api/events.html#events_emitter_listeners_event","!doc":"Returns an array of listeners for the specified event."},emit:{"!type":"fn(event: string)","!url":"http://nodejs.org/api/events.html#events_emitter_emit_event_arg1_arg2","!doc":"Execute each of the listeners in order with the supplied arguments."}},"!url":"http://nodejs.org/api/events.html#events_class_events_eventemitter","!doc":"To access the EventEmitter class, require('events').EventEmitter."}},stream:{"!type":"fn()",prototype:{"!proto":"events.EventEmitter.prototype",pipe:{"!type":"fn(destination: +stream.Writable, options?: ?)","!url":"http://nodejs.org/api/stream.html#stream_readable_pipe_destination_options","!doc":"Connects this readable stream to destination WriteStream. Incoming data on this stream gets written to destination. Properly manages back-pressure so that a slow destination will not be overwhelmed by a fast readable stream."}},Writable:{"!type":"fn(options?: ?)",prototype:{"!proto":"stream.prototype",write:{"!type":"fn(chunk: +Buffer, encoding?: string, callback?: fn()) -> bool","!url":"http://nodejs.org/api/stream.html#stream_writable_write_chunk_encoding_callback_1","!doc":"Writes chunk to the stream. Returns true if the data has been flushed to the underlying resource. Returns false to indicate that the buffer is full, and the data will be sent out in the future. The 'drain' event will indicate when the buffer is empty again."},end:{"!type":"fn(chunk: +Buffer, encoding?: string, callback?: fn()) -> bool","!url":"http://nodejs.org/api/stream.html#stream_writable_end_chunk_encoding_callback","!doc":"Call this method to signal the end of the data being written to the stream."}},"!url":"http://nodejs.org/api/stream.html#stream_class_stream_writable","!doc":"A Writable Stream has the following methods, members, and events."},Readable:{"!type":"fn(options?: ?)",prototype:{"!proto":"stream.prototype",setEncoding:{"!type":"fn(encoding: string)","!url":"http://nodejs.org/api/stream.html#stream_readable_setencoding_encoding","!doc":"Makes the 'data' event emit a string instead of a Buffer. encoding can be 'utf8', 'utf16le' ('ucs2'), 'ascii', or 'hex'."},pause:{"!type":"fn()","!url":"http://nodejs.org/api/stream.html#stream_readable_pause","!doc":"Switches the readable stream into \"old mode\", where data is emitted using a 'data' event rather than being buffered for consumption via the read() method."},resume:{"!type":"fn()","!url":"http://nodejs.org/api/stream.html#stream_readable_resume","!doc":"Switches the readable stream into \"old mode\", where data is emitted using a 'data' event rather than being buffered for consumption via the read() method."},destroy:"fn()",unpipe:{"!type":"fn(dest?: +stream.Writable)","!url":"http://nodejs.org/api/stream.html#stream_readable_unpipe_destination","!doc":"Undo a previously established pipe(). If no destination is provided, then all previously established pipes are removed."},push:{"!type":"fn(chunk: +Buffer) -> bool","!url":"http://nodejs.org/api/stream.html#stream_readable_push_chunk","!doc":"Explicitly insert some data into the read queue. If called with null, will signal the end of the data."},unshift:{"!type":"fn(chunk: +Buffer) -> bool","!url":"http://nodejs.org/api/stream.html#stream_readable_unshift_chunk","!doc":"This is the corollary of readable.push(chunk). Rather than putting the data at the end of the read queue, it puts it at the front of the read queue."},wrap:{"!type":"fn(stream: ?) -> +stream.Readable","!url":"http://nodejs.org/api/stream.html#stream_readable_wrap_stream","!doc":"If you are using an older Node library that emits 'data' events and has a pause() method that is advisory only, then you can use the wrap() method to create a Readable stream that uses the old stream as its data source."},read:{"!type":"fn(size?: number) -> +Buffer","!url":"http://nodejs.org/api/stream.html#stream_readable_read_size_1","!doc":"Call this method to consume data once the 'readable' event is emitted."}},"!url":"http://nodejs.org/api/stream.html#stream_class_stream_readable","!doc":"A Readable Stream has the following methods, members, and events."},Duplex:{"!type":"fn(options?: ?)",prototype:{"!proto":"stream.Readable.prototype",write:"fn(chunk: +Buffer, encoding?: string, callback?: fn()) -> bool",end:"fn(chunk: +Buffer, encoding?: string, callback?: fn()) -> bool"},"!url":"http://nodejs.org/api/stream.html#stream_class_stream_duplex","!doc":'A "duplex" stream is one that is both Readable and Writable, such as a TCP socket connection.'},Transform:{"!type":"fn(options?: ?)",prototype:{"!proto":"stream.Duplex.prototype"},"!url":"http://nodejs.org/api/stream.html#stream_class_stream_transform","!doc":'A "transform" stream is a duplex stream where the output is causally connected in some way to the input, such as a zlib stream or a crypto stream.'},PassThrough:"stream.Transform","!url":"http://nodejs.org/api/stream.html#stream_stream","!doc":"A stream is an abstract interface implemented by various objects in Node. For example a request to an HTTP server is a stream, as is stdout. Streams are readable, writable, or both. All streams are instances of EventEmitter"},querystring:{stringify:{"!type":"fn(obj: ?, sep?: string, eq?: string) -> string","!url":"http://nodejs.org/api/querystring.html#querystring_querystring_stringify_obj_sep_eq","!doc":"Serialize an object to a query string. Optionally override the default separator ('&') and assignment ('=') characters."},parse:{"!type":"fn(str: string, sep?: string, eq?: string, options?: ?) -> ?","!url":"http://nodejs.org/api/querystring.html#querystring_querystring_parse_str_sep_eq_options","!doc":"Deserialize a query string to an object. Optionally override the default separator ('&') and assignment ('=') characters."},escape:{"!type":"fn(string) -> string","!url":"http://nodejs.org/api/querystring.html#querystring_querystring_escape","!doc":"The escape function used by querystring.stringify, provided so that it could be overridden if necessary."},unescape:{"!type":"fn(string) -> string","!url":"http://nodejs.org/api/querystring.html#querystring_querystring_unescape","!doc":"The unescape function used by querystring.parse, provided so that it could be overridden if necessary."}},http:{STATUS_CODES:{},createServer:{"!type":"fn(listener?: fn(request: +http.IncomingMessage, response: +http.ServerResponse)) -> +http.Server","!url":"http://nodejs.org/api/http.html#http_http_createserver_requestlistener","!doc":"Returns a new web server object."},Server:{"!type":"fn()",prototype:{"!proto":"events.EventEmitter.prototype",listen:{"!type":"fn(port: number, hostname?: string, backlog?: number, callback?: fn())","!url":"http://nodejs.org/api/http.html#http_server_listen_port_hostname_backlog_callback","!doc":"Begin accepting connections on the specified port and hostname. If the hostname is omitted, the server will accept connections directed to any IPv4 address (INADDR_ANY)."},close:{"!type":"fn(callback?: ?)","!url":"http://nodejs.org/api/http.html#http_server_close_callback","!doc":"Stops the server from accepting new connections."},maxHeadersCount:{"!type":"number","!url":"http://nodejs.org/api/http.html#http_server_maxheaderscount","!doc":"Limits maximum incoming headers count, equal to 1000 by default. If set to 0 - no limit will be applied."},setTimeout:{"!type":"fn(timeout: number, callback?: fn())","!url":"http://nodejs.org/api/http.html#http_server_settimeout_msecs_callback","!doc":"Sets the timeout value for sockets, and emits a 'timeout' event on the Server object, passing the socket as an argument, if a timeout occurs."},timeout:{"!type":"number","!url":"http://nodejs.org/api/http.html#http_server_timeout","!doc":"The number of milliseconds of inactivity before a socket is presumed to have timed out."}},"!url":"http://nodejs.org/api/http.html#http_class_http_server","!doc":"Class for HTTP server objects."},ServerResponse:{"!type":"fn()",prototype:{"!proto":"stream.Writable.prototype",writeContinue:{"!type":"fn()","!url":"http://nodejs.org/api/http.html#http_response_writecontinue","!doc":"Sends a HTTP/1.1 100 Continue message to the client, indicating that the request body should be sent."},writeHead:{"!type":"fn(statusCode: number, headers?: ?)","!url":"http://nodejs.org/api/http.html#http_response_writehead_statuscode_reasonphrase_headers","!doc":"Sends a response header to the request. The status code is a 3-digit HTTP status code, like 404. The last argument, headers, are the response headers. Optionally one can give a human-readable reasonPhrase as the second argument."},setTimeout:{"!type":"fn(timeout: number, callback?: fn())","!url":"http://nodejs.org/api/http.html#http_response_settimeout_msecs_callback","!doc":"Sets the Socket's timeout value to msecs. If a callback is provided, then it is added as a listener on the 'timeout' event on the response object."},statusCode:{"!type":"number","!url":"http://nodejs.org/api/http.html#http_response_statuscode","!doc":"When using implicit headers (not calling response.writeHead() explicitly), this property controls the status code that will be sent to the client when the headers get flushed."},setHeader:{"!type":"fn(name: string, value: string)","!url":"http://nodejs.org/api/http.html#http_response_setheader_name_value","!doc":"Sets a single header value for implicit headers. If this header already exists in the to-be-sent headers, its value will be replaced. Use an array of strings here if you need to send multiple headers with the same name."},headersSent:{"!type":"bool","!url":"http://nodejs.org/api/http.html#http_response_headerssent","!doc":"Boolean (read-only). True if headers were sent, false otherwise."},sendDate:{"!type":"bool","!url":"http://nodejs.org/api/http.html#http_response_senddate","!doc":"When true, the Date header will be automatically generated and sent in the response if it is not already present in the headers. Defaults to true."},getHeader:{"!type":"fn(name: string) -> string","!url":"http://nodejs.org/api/http.html#http_response_getheader_name","!doc":"Reads out a header that's already been queued but not sent to the client. Note that the name is case insensitive. This can only be called before headers get implicitly flushed."},removeHeader:{"!type":"fn(name: string)","!url":"http://nodejs.org/api/http.html#http_response_removeheader_name","!doc":"Removes a header that's queued for implicit sending."},addTrailers:{"!type":"fn(headers: ?)","!url":"http://nodejs.org/api/http.html#http_response_addtrailers_headers","!doc":"This method adds HTTP trailing headers (a header but at the end of the message) to the response."}},"!url":"http://nodejs.org/api/http.html#http_class_http_serverresponse","!doc":"This object is created internally by a HTTP server--not by the user. It is passed as the second parameter to the 'request' event."},request:{"!type":"fn(options: ?, callback?: fn(res: +http.IncomingMessage)) -> +http.ClientRequest","!url":"http://nodejs.org/api/http.html#http_http_request_options_callback","!doc":"Node maintains several connections per server to make HTTP requests. This function allows one to transparently issue requests."},get:{"!type":"fn(options: ?, callback?: fn(res: +http.IncomingMessage)) -> +http.ClientRequest","!url":"http://nodejs.org/api/http.html#http_http_get_options_callback","!doc":"Since most requests are GET requests without bodies, Node provides this convenience method. The only difference between this method and http.request() is that it sets the method to GET and calls req.end() automatically."},globalAgent:{"!type":"+http.Agent","!url":"http://nodejs.org/api/http.html#http_http_globalagent","!doc":"Global instance of Agent which is used as the default for all http client requests."},Agent:{"!type":"fn()",prototype:{maxSockets:{"!type":"number","!url":"http://nodejs.org/api/http.html#http_agent_maxsockets","!doc":"By default set to 5. Determines how many concurrent sockets the agent can have open per host."},sockets:{"!type":"[+net.Socket]","!url":"http://nodejs.org/api/http.html#http_agent_sockets","!doc":"An object which contains arrays of sockets currently in use by the Agent. Do not modify."},requests:{"!type":"[+http.ClientRequest]","!url":"http://nodejs.org/api/http.html#http_agent_requests","!doc":"An object which contains queues of requests that have not yet been assigned to sockets. Do not modify."}},"!url":"http://nodejs.org/api/http.html#http_class_http_agent","!doc":"In node 0.5.3+ there is a new implementation of the HTTP Agent which is used for pooling sockets used in HTTP client requests."},ClientRequest:{"!type":"fn()",prototype:{"!proto":"stream.Writable.prototype",abort:{"!type":"fn()","!url":"http://nodejs.org/api/http.html#http_request_abort","!doc":"Aborts a request. (New since v0.3.8.)"},setTimeout:{"!type":"fn(timeout: number, callback?: fn())","!url":"http://nodejs.org/api/http.html#http_request_settimeout_timeout_callback","!doc":"Once a socket is assigned to this request and is connected socket.setTimeout() will be called."},setNoDelay:{"!type":"fn(noDelay?: fn())","!url":"http://nodejs.org/api/http.html#http_request_setnodelay_nodelay","!doc":"Once a socket is assigned to this request and is connected socket.setNoDelay() will be called."},setSocketKeepAlive:{"!type":"fn(enable?: bool, initialDelay?: number)","!url":"http://nodejs.org/api/http.html#http_request_setsocketkeepalive_enable_initialdelay","!doc":"Once a socket is assigned to this request and is connected socket.setKeepAlive() will be called."}},"!url":"http://nodejs.org/api/http.html#http_class_http_clientrequest","!doc":"This object is created internally and returned from http.request(). It represents an in-progress request whose header has already been queued. The header is still mutable using the setHeader(name, value), getHeader(name), removeHeader(name) API. The actual header will be sent along with the first data chunk or when closing the connection."},IncomingMessage:{"!type":"fn()",prototype:{"!proto":"stream.Readable.prototype",httpVersion:{"!type":"string","!url":"http://nodejs.org/api/http.html#http_message_httpversion","!doc":"In case of server request, the HTTP version sent by the client. In the case of client response, the HTTP version of the connected-to server. Probably either '1.1' or '1.0'."},headers:{"!type":"?","!url":"http://nodejs.org/api/http.html#http_message_headers","!doc":"The request/response headers object."},trailers:{"!type":"?","!url":"http://nodejs.org/api/http.html#http_message_trailers","!doc":"The request/response trailers object. Only populated after the 'end' event."},setTimeout:{"!type":"fn(timeout: number, callback?: fn())","!url":"http://nodejs.org/api/http.html#http_message_settimeout_msecs_callback","!doc":"Calls message.connection.setTimeout(msecs, callback)."},setEncoding:{"!type":"fn(encoding?: string)","!url":"http://nodejs.org/api/http.html#http_message_setencoding_encoding","!doc":"Set the encoding for data emitted by the 'data' event."},pause:{"!type":"fn()","!url":"http://nodejs.org/api/http.html#http_message_pause","!doc":"Pauses request/response from emitting events. Useful to throttle back a download."},resume:{"!type":"fn()","!url":"http://nodejs.org/api/http.html#http_message_resume","!doc":"Resumes a paused request/response."},method:{"!type":"string","!url":"http://nodejs.org/api/http.html#http_message_method","!doc":"Only valid for request obtained from http.Server."},url:{"!type":"string","!url":"http://nodejs.org/api/http.html#http_message_url","!doc":"Only valid for request obtained from http.Server."},statusCode:{"!type":"number","!url":"http://nodejs.org/api/http.html#http_message_statuscode","!doc":"Only valid for response obtained from http.ClientRequest."},socket:{"!type":"+net.Socket","!url":"http://nodejs.org/api/http.html#http_message_socket","!doc":"The net.Socket object associated with the connection."}},"!url":"http://nodejs.org/api/http.html#http_http_incomingmessage","!doc":"An IncomingMessage object is created by http.Server or http.ClientRequest and passed as the first argument to the 'request' and 'response' event respectively. It may be used to access response status, headers and data."}},https:{Server:"http.Server",createServer:{"!type":"fn(listener?: fn(request: +http.IncomingMessage, response: +http.ServerResponse)) -> +https.Server","!url":"http://nodejs.org/api/https.html#https_https_createserver_options_requestlistener","!doc":"Returns a new HTTPS web server object. The options is similar to tls.createServer(). The requestListener is a function which is automatically added to the 'request' event."},request:{"!type":"fn(options: ?, callback?: fn(res: +http.IncomingMessage)) -> +http.ClientRequest","!url":"http://nodejs.org/api/https.html#https_https_request_options_callback","!doc":"Makes a request to a secure web server."},get:{"!type":"fn(options: ?, callback?: fn(res: +http.IncomingMessage)) -> +http.ClientRequest","!url":"http://nodejs.org/api/https.html#https_https_get_options_callback","!doc":"Like http.get() but for HTTPS."},Agent:"http.Agent",globalAgent:"http.globalAgent"},cluster:{"!proto":"events.EventEmitter.prototype",settings:{exec:"string",args:"[string]",silent:"bool","!url":"http://nodejs.org/api/cluster.html#cluster_cluster_settings","!doc":"All settings set by the .setupMaster is stored in this settings object. This object is not supposed to be changed or set manually, by you."},Worker:{"!type":"fn()",prototype:{"!proto":"events.EventEmitter.prototype",id:{"!type":"string","!url":"http://nodejs.org/api/cluster.html#cluster_worker_id","!doc":"Each new worker is given its own unique id, this id is stored in the id."},process:{"!type":"+child_process.ChildProcess","!url":"http://nodejs.org/api/cluster.html#cluster_worker_process","!doc":"All workers are created using child_process.fork(), the returned object from this function is stored in process."},suicide:{"!type":"bool","!url":"http://nodejs.org/api/cluster.html#cluster_worker_suicide","!doc":"This property is a boolean. It is set when a worker dies after calling .kill() or immediately after calling the .disconnect() method. Until then it is undefined."},send:{"!type":"fn(message: ?, sendHandle?: ?)","!url":"http://nodejs.org/api/cluster.html#cluster_worker_send_message_sendhandle","!doc":"This function is equal to the send methods provided by child_process.fork(). In the master you should use this function to send a message to a specific worker. However in a worker you can also use process.send(message), since this is the same function."},destroy:"fn()",disconnect:{"!type":"fn()","!url":"http://nodejs.org/api/cluster.html#cluster_worker_disconnect","!doc":"When calling this function the worker will no longer accept new connections, but they will be handled by any other listening worker. Existing connection will be allowed to exit as usual. When no more connections exist, the IPC channel to the worker will close allowing it to die graceful. When the IPC channel is closed the disconnect event will emit, this is then followed by the exit event, there is emitted when the worker finally die."},kill:{"!type":"fn(signal?: string)","!url":"http://nodejs.org/api/cluster.html#cluster_worker_kill_signal_sigterm","!doc":"This function will kill the worker, and inform the master to not spawn a new worker. The boolean suicide lets you distinguish between voluntary and accidental exit."}},"!url":"http://nodejs.org/api/cluster.html#cluster_class_worker","!doc":"A Worker object contains all public information and method about a worker. In the master it can be obtained using cluster.workers. In a worker it can be obtained using cluster.worker."},isMaster:{"!type":"bool","!url":"http://nodejs.org/api/cluster.html#cluster_cluster_ismaster","!doc":"True if the process is a master. This is determined by the process.env.NODE_UNIQUE_ID. If process.env.NODE_UNIQUE_ID is undefined, then isMaster is true."},isWorker:{"!type":"bool","!url":"http://nodejs.org/api/cluster.html#cluster_cluster_isworker","!doc":"This boolean flag is true if the process is a worker forked from a master. If the process.env.NODE_UNIQUE_ID is set to a value, then isWorker is true."},setupMaster:{"!type":"fn(settings?: cluster.settings)","!url":"http://nodejs.org/api/cluster.html#cluster_cluster_setupmaster_settings","!doc":"setupMaster is used to change the default 'fork' behavior. The new settings are effective immediately and permanently, they cannot be changed later on."},fork:{"!type":"fn(env?: ?) -> +cluster.Worker","!url":"http://nodejs.org/api/cluster.html#cluster_cluster_fork_env","!doc":"Spawn a new worker process. This can only be called from the master process."},disconnect:{"!type":"fn(callback?: fn())","!url":"http://nodejs.org/api/cluster.html#cluster_cluster_disconnect_callback","!doc":"When calling this method, all workers will commit a graceful suicide. When they are disconnected all internal handlers will be closed, allowing the master process to die graceful if no other event is waiting."},worker:{"!type":"+cluster.Worker","!url":"http://nodejs.org/api/cluster.html#cluster_cluster_worker","!doc":"A reference to the current worker object. Not available in the master process."},workers:{"!type":"[+cluster.Worker]","!url":"http://nodejs.org/api/cluster.html#cluster_cluster_workers","!doc":"A hash that stores the active worker objects, keyed by id field. Makes it easy to loop through all the workers. It is only available in the master process."},"!url":"http://nodejs.org/api/cluster.html#cluster_cluster","!doc":"A single instance of Node runs in a single thread. To take advantage of multi-core systems the user will sometimes want to launch a cluster of Node processes to handle the load."},zlib:{Zlib:{"!type":"fn()",prototype:{"!proto":"stream.Duplex.prototype",flush:{"!type":"fn(callback: fn())","!url":"http://nodejs.org/api/zlib.html#zlib_zlib_flush_callback","!doc":"Flush pending data. Don't call this frivolously, premature flushes negatively impact the effectiveness of the compression algorithm."},reset:{"!type":"fn()","!url":"http://nodejs.org/api/zlib.html#zlib_zlib_reset","!doc":"Reset the compressor/decompressor to factory defaults. Only applicable to the inflate and deflate algorithms."}},"!url":"http://nodejs.org/api/zlib.html#zlib_class_zlib_zlib","!doc":"Not exported by the zlib module. It is documented here because it is the base class of the compressor/decompressor classes."},deflate:{"!type":"fn(buf: +Buffer, callback: fn())","!url":"http://nodejs.org/api/zlib.html#zlib_zlib_deflate_buf_callback","!doc":"Compress a string with Deflate."},deflateRaw:{"!type":"fn(buf: +Buffer, callback: fn())","!url":"http://nodejs.org/api/zlib.html#zlib_zlib_deflateraw_buf_callback","!doc":"Compress a string with DeflateRaw."},gzip:{"!type":"fn(buf: +Buffer, callback: fn())","!url":"http://nodejs.org/api/zlib.html#zlib_zlib_gzip_buf_callback","!doc":"Compress a string with Gzip."},gunzip:{"!type":"fn(buf: +Buffer, callback: fn())","!url":"http://nodejs.org/api/zlib.html#zlib_zlib_gunzip_buf_callback","!doc":"Decompress a raw Buffer with Gunzip."},inflate:{"!type":"fn(buf: +Buffer, callback: fn())","!url":"http://nodejs.org/api/zlib.html#zlib_zlib_inflate_buf_callback","!doc":"Decompress a raw Buffer with Inflate."},inflateRaw:{"!type":"fn(buf: +Buffer, callback: fn())","!url":"http://nodejs.org/api/zlib.html#zlib_zlib_inflateraw_buf_callback","!doc":"Decompress a raw Buffer with InflateRaw."},unzip:{"!type":"fn(buf: +Buffer, callback: fn())","!url":"http://nodejs.org/api/zlib.html#zlib_zlib_unzip_buf_callback","!doc":"Decompress a raw Buffer with Unzip."},Gzip:{"!type":"fn()","!url":"http://nodejs.org/api/zlib.html#zlib_class_zlib_gzip","!doc":"Compress data using gzip.",prototype:{"!proto:":"zlib.Zlib.prototype"}},createGzip:{"!type":"fn(options: ?) -> +zlib.Zlib","!url":"http://nodejs.org/api/zlib.html#zlib_zlib_creategzip_options","!doc":"Returns a new Gzip object with an options."},Gunzip:{"!type":"fn()","!url":"http://nodejs.org/api/zlib.html#zlib_class_zlib_gunzip","!doc":"Decompress a gzip stream.",prototype:{"!proto:":"zlib.Zlib.prototype"}},createGunzip:{"!type":"fn(options: ?) -> +zlib.Gunzip","!url":"http://nodejs.org/api/zlib.html#zlib_zlib_creategunzip_options","!doc":"Returns a new Gunzip object with an options."},Deflate:{"!type":"fn()","!url":"http://nodejs.org/api/zlib.html#zlib_class_zlib_deflate","!doc":"Compress data using deflate.",prototype:{"!proto:":"zlib.Zlib.prototype"}},createDeflate:{"!type":"fn(options: ?) -> +zlib.Deflate","!url":"http://nodejs.org/api/zlib.html#zlib_zlib_createdeflate_options","!doc":"Returns a new Deflate object with an options."},Inflate:{"!type":"fn()","!url":"http://nodejs.org/api/zlib.html#zlib_class_zlib_inflate","!doc":"Decompress a deflate stream.",prototype:{"!proto:":"zlib.Zlib.prototype"}},createInflate:{"!type":"fn(options: ?) -> +zlib.Inflate","!url":"http://nodejs.org/api/zlib.html#zlib_zlib_createinflate_options","!doc":"Returns a new Inflate object with an options."},InflateRaw:{"!type":"fn()","!url":"http://nodejs.org/api/zlib.html#zlib_class_zlib_inflateraw","!doc":"Decompress a raw deflate stream.",prototype:{"!proto:":"zlib.Zlib.prototype"}},createInflateRaw:{"!type":"fn(options: ?) -> +zlib.InflateRaw","!url":"http://nodejs.org/api/zlib.html#zlib_zlib_createinflateraw_options","!doc":"Returns a new InflateRaw object with an options."},DeflateRaw:{"!type":"fn()","!url":"http://nodejs.org/api/zlib.html#zlib_class_zlib_deflateraw","!doc":"Compress data using deflate, and do not append a zlib header.",prototype:{"!proto:":"zlib.Zlib.prototype"}},createDeflateRaw:{"!type":"fn(options: ?) -> +zlib.DeflateRaw","!url":"http://nodejs.org/api/zlib.html#zlib_zlib_createdeflateraw_options","!doc":"Returns a new DeflateRaw object with an options."},Unzip:{"!type":"fn()","!url":"http://nodejs.org/api/zlib.html#zlib_class_zlib_unzip","!doc":"Decompress either a Gzip- or Deflate-compressed stream by auto-detecting the header.",prototype:{"!proto:":"zlib.Zlib.prototype"}},createUnzip:{"!type":"fn(options: ?) -> +zlib.Unzip","!url":"http://nodejs.org/api/zlib.html#zlib_zlib_createunzip_options","!doc":"Returns a new Unzip object with an options."},Z_NO_FLUSH:"number",Z_PARTIAL_FLUSH:"number",Z_SYNC_FLUSH:"number",Z_FULL_FLUSH:"number",Z_FINISH:"number",Z_BLOCK:"number",Z_TREES:"number",Z_OK:"number",Z_STREAM_END:"number",Z_NEED_DICT:"number",Z_ERRNO:"number",Z_STREAM_ERROR:"number",Z_DATA_ERROR:"number",Z_MEM_ERROR:"number",Z_BUF_ERROR:"number",Z_VERSION_ERROR:"number",Z_NO_COMPRESSION:"number",Z_BEST_SPEED:"number",Z_BEST_COMPRESSION:"number",Z_DEFAULT_COMPRESSION:"number",Z_FILTERED:"number",Z_HUFFMAN_ONLY:"number",Z_RLE:"number",Z_FIXED:"number",Z_DEFAULT_STRATEGY:"number",Z_BINARY:"number",Z_TEXT:"number",Z_ASCII:"number",Z_UNKNOWN:"number",Z_DEFLATED:"number",Z_NULL:"number"},os:{tmpdir:{"!type":"fn() -> string","!url":"http://nodejs.org/api/os.html#os_os_tmpdir","!doc":"Returns the operating system's default directory for temp files."},endianness:{"!type":"fn() -> string","!url":"http://nodejs.org/api/os.html#os_os_endianness","!doc":'Returns the endianness of the CPU. Possible values are "BE" or "LE".'},hostname:{"!type":"fn() -> string","!url":"http://nodejs.org/api/os.html#os_os_hostname","!doc":"Returns the hostname of the operating system."},type:{"!type":"fn() -> string","!url":"http://nodejs.org/api/os.html#os_os_type","!doc":"Returns the operating system name."},platform:{"!type":"fn() -> string","!url":"http://nodejs.org/api/os.html#os_os_platform","!doc":"Returns the operating system platform."},arch:{"!type":"fn() -> string","!url":"http://nodejs.org/api/os.html#os_os_arch","!doc":"Returns the operating system CPU architecture."},release:{"!type":"fn() -> string","!url":"http://nodejs.org/api/os.html#os_os_release","!doc":"Returns the operating system release."},uptime:{"!type":"fn() -> number","!url":"http://nodejs.org/api/os.html#os_os_uptime","!doc":"Returns the system uptime in seconds."},loadavg:{"!type":"fn() -> [number]","!url":"http://nodejs.org/api/os.html#os_os_loadavg","!doc":"Returns an array containing the 1, 5, and 15 minute load averages."},totalmem:{"!type":"fn() -> number","!url":"http://nodejs.org/api/os.html#os_os_totalmem","!doc":"Returns the total amount of system memory in bytes."},freemem:{"!type":"fn() -> number","!url":"http://nodejs.org/api/os.html#os_os_freemem","!doc":"Returns the amount of free system memory in bytes."},cpus:{"!type":"fn() -> [os.cpuSpec]","!url":"http://nodejs.org/api/os.html#os_os_cpus","!doc":"Returns an array of objects containing information about each CPU/core installed: model, speed (in MHz), and times (an object containing the number of milliseconds the CPU/core spent in: user, nice, sys, idle, and irq)."},networkInterfaces:{"!type":"fn() -> ?","!url":"http://nodejs.org/api/os.html#os_os_networkinterfaces","!doc":"Get a list of network interfaces."},EOL:{"!type":"string","!url":"http://nodejs.org/api/os.html#os_os_eol","!doc":"A constant defining the appropriate End-of-line marker for the operating system."}},punycode:{decode:{"!type":"fn(string: string) -> string","!url":"http://nodejs.org/api/punycode.html#punycode_punycode_decode_string","!doc":"Converts a Punycode string of ASCII code points to a string of Unicode code points."},encode:{"!type":"fn(string: string) -> string","!url":"http://nodejs.org/api/punycode.html#punycode_punycode_encode_string","!doc":"Converts a string of Unicode code points to a Punycode string of ASCII code points."},toUnicode:{"!type":"fn(domain: string) -> string","!url":"http://nodejs.org/api/punycode.html#punycode_punycode_tounicode_domain","!doc":"Converts a Punycode string representing a domain name to Unicode. Only the Punycoded parts of the domain name will be converted, i.e. it doesn't matter if you call it on a string that has already been converted to Unicode."},toASCII:{"!type":"fn(domain: string) -> string","!url":"http://nodejs.org/api/punycode.html#punycode_punycode_toascii_domain","!doc":"Converts a Unicode string representing a domain name to Punycode. Only the non-ASCII parts of the domain name will be converted, i.e. it doesn't matter if you call it with a domain that's already in ASCII."},ucs2:{decode:{"!type":"fn(string: string) -> string","!url":"http://nodejs.org/api/punycode.html#punycode_punycode_ucs2_decode_string","!doc":"Creates an array containing the decimal code points of each Unicode character in the string. While JavaScript uses UCS-2 internally, this function will convert a pair of surrogate halves (each of which UCS-2 exposes as separate characters) into a single code point, matching UTF-16."},encode:{"!type":"fn(codePoints: [number]) -> string","!url":"http://nodejs.org/api/punycode.html#punycode_punycode_ucs2_encode_codepoints","!doc":"Creates a string based on an array of decimal code points."}},version:{"!type":"?","!url":"http://nodejs.org/api/punycode.html#punycode_punycode_version","!doc":"A string representing the current Punycode.js version number."}},repl:{start:{"!type":"fn(options: ?) -> +events.EventEmitter","!url":"http://nodejs.org/api/repl.html#repl_repl_start_options","!doc":"Returns and starts a REPLServer instance."}},readline:{createInterface:{"!type":"fn(options: ?) -> +readline.Interface","!url":"http://nodejs.org/api/readline.html#readline_readline_createinterface_options","!doc":"Creates a readline Interface instance."},Interface:{"!type":"fn()",prototype:{"!proto":"events.EventEmitter.prototype",setPrompt:{"!type":"fn(prompt: string, length: number)","!url":"http://nodejs.org/api/readline.html#readline_rl_setprompt_prompt_length","!doc":"Sets the prompt, for example when you run node on the command line, you see > , which is node's prompt."},prompt:{"!type":"fn(preserveCursor?: bool)","!url":"http://nodejs.org/api/readline.html#readline_rl_prompt_preservecursor","!doc":"Readies readline for input from the user, putting the current setPrompt options on a new line, giving the user a new spot to write. Set preserveCursor to true to prevent the cursor placement being reset to 0."},question:{"!type":"fn(query: string, callback: fn())","!url":"http://nodejs.org/api/readline.html#readline_rl_question_query_callback","!doc":"Prepends the prompt with query and invokes callback with the user's response. Displays the query to the user, and then invokes callback with the user's response after it has been typed."},pause:{"!type":"fn()","!url":"http://nodejs.org/api/readline.html#readline_rl_pause","!doc":"Pauses the readline input stream, allowing it to be resumed later if needed."},resume:{"!type":"fn()","!url":"http://nodejs.org/api/readline.html#readline_rl_resume","!doc":"Resumes the readline input stream."},close:{"!type":"fn()","!url":"http://nodejs.org/api/readline.html#readline_rl_close","!doc":'Closes the Interface instance, relinquishing control on the input and output streams. The "close" event will also be emitted.'},write:{"!type":"fn(data: ?, key?: ?)","!url":"http://nodejs.org/api/readline.html#readline_rl_write_data_key","!doc":"Writes data to output stream. key is an object literal to represent a key sequence; available if the terminal is a TTY."}},"!url":"http://nodejs.org/api/readline.html#readline_class_interface","!doc":"The class that represents a readline interface with an input and output stream."}},vm:{createContext:{"!type":"fn(initSandbox?: ?) -> ?","!url":"http://nodejs.org/api/vm.html#vm_vm_createcontext_initsandbox","!doc":"vm.createContext creates a new context which is suitable for use as the 2nd argument of a subsequent call to vm.runInContext. A (V8) context comprises a global object together with a set of build-in objects and functions. The optional argument initSandbox will be shallow-copied to seed the initial contents of the global object used by the context."},Script:{"!type":"fn()",prototype:{runInThisContext:{"!type":"fn()","!url":"http://nodejs.org/api/vm.html#vm_script_runinthiscontext","!doc":"Similar to vm.runInThisContext but a method of a precompiled Script object. script.runInThisContext runs the code of script and returns the result. Running code does not have access to local scope, but does have access to the global object (v8: in actual context)."},runInNewContext:{"!type":"fn(sandbox?: ?)","!url":"http://nodejs.org/api/vm.html#vm_script_runinnewcontext_sandbox","!doc":"Similar to vm.runInNewContext a method of a precompiled Script object. script.runInNewContext runs the code of script with sandbox as the global object and returns the result. Running code does not have access to local scope. sandbox is optional."}},"!url":"http://nodejs.org/api/vm.html#vm_class_script","!doc":"A class for running scripts. Returned by vm.createScript."},runInThisContext:{"!type":"fn(code: string, filename?: string)","!url":"http://nodejs.org/api/vm.html#vm_vm_runinthiscontext_code_filename","!doc":"vm.runInThisContext() compiles code, runs it and returns the result. Running code does not have access to local scope. filename is optional, it's used only in stack traces."},runInNewContext:{"!type":"fn(code: string, sandbox?: ?, filename?: string)","!url":"http://nodejs.org/api/vm.html#vm_vm_runinnewcontext_code_sandbox_filename","!doc":"vm.runInNewContext compiles code, then runs it in sandbox and returns the result. Running code does not have access to local scope. The object sandbox will be used as the global object for code. sandbox and filename are optional, filename is only used in stack traces."},runInContext:{"!type":"fn(code: string, context: ?, filename?: string)","!url":"http://nodejs.org/api/vm.html#vm_vm_runincontext_code_context_filename","!doc":"vm.runInContext compiles code, then runs it in context and returns the result. A (V8) context comprises a global object, together with a set of built-in objects and functions. Running code does not have access to local scope and the global object held within context will be used as the global object for code. filename is optional, it's used only in stack traces."},createScript:{"!type":"fn(code: string, filename?: string) -> +vm.Script","!url":"http://nodejs.org/api/vm.html#vm_vm_createscript_code_filename","!doc":"createScript compiles code but does not run it. Instead, it returns a vm.Script object representing this compiled code. This script can be run later many times using methods below. The returned script is not bound to any global object. It is bound before each run, just for that run. filename is optional, it's only used in stack traces."}},child_process:{ChildProcess:{"!type":"fn()",prototype:{"!proto":"events.EventEmitter.prototype",stdin:{"!type":"+stream.Writable","!url":"http://nodejs.org/api/child_process.html#child_process_child_stdin","!doc":"A Writable Stream that represents the child process's stdin. Closing this stream via end() often causes the child process to terminate."},stdout:{"!type":"+stream.Readable","!url":"http://nodejs.org/api/child_process.html#child_process_child_stdout","!doc":"A Readable Stream that represents the child process's stdout."},stderr:{"!type":"+stream.Readable","!url":"http://nodejs.org/api/child_process.html#child_process_child_stderr","!doc":"A Readable Stream that represents the child process's stderr."},pid:{"!type":"number","!url":"http://nodejs.org/api/child_process.html#child_process_child_pid","!doc":"The PID of the child process."},kill:{"!type":"fn(signal?: string)","!url":"http://nodejs.org/api/child_process.html#child_process_child_kill_signal","!doc":"Send a signal to the child process. If no argument is given, the process will be sent 'SIGTERM'."},send:{"!type":"fn(message: ?, sendHandle?: ?)","!url":"http://nodejs.org/api/child_process.html#child_process_child_send_message_sendhandle","!doc":"When using child_process.fork() you can write to the child using child.send(message, [sendHandle]) and messages are received by a 'message' event on the child."},disconnect:{"!type":"fn()","!url":"http://nodejs.org/api/child_process.html#child_process_child_disconnect","!doc":"To close the IPC connection between parent and child use the child.disconnect() method. This allows the child to exit gracefully since there is no IPC channel keeping it alive. When calling this method the disconnect event will be emitted in both parent and child, and the connected flag will be set to false. Please note that you can also call process.disconnect() in the child process."}},"!url":"http://nodejs.org/api/child_process.html#child_process_class_childprocess","!doc":"ChildProcess is an EventEmitter."},spawn:{"!type":"fn(command: string, args?: [string], options?: ?) -> +child_process.ChildProcess","!url":"http://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options","!doc":"Launches a new process with the given command, with command line arguments in args. If omitted, args defaults to an empty Array."},exec:{"!type":"fn(command: string, callback: fn(error: ?, stdout: +Buffer, stderr: +Buffer)) -> +child_process.ChildProcess","!url":"http://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback","!doc":"Runs a command in a shell and buffers the output."},execFile:{"!type":"fn(file: string, args: [string], options: ?, callback: fn(error: ?, stdout: +Buffer, stderr: +Buffer)) -> +child_process.ChildProcess","!url":"http://nodejs.org/api/child_process.html#child_process_child_process_execfile_file_args_options_callback","!doc":"This is similar to child_process.exec() except it does not execute a subshell but rather the specified file directly. This makes it slightly leaner than child_process.exec. It has the same options."},fork:{"!type":"fn(modulePath: string, args?: [string], options?: ?) -> +child_process.ChildProcess","!url":"http://nodejs.org/api/child_process.html#child_process_child_process_fork_modulepath_args_options","!doc":"This is a special case of the spawn() functionality for spawning Node processes. In addition to having all the methods in a normal ChildProcess instance, the returned object has a communication channel built-in."}},url:{parse:{"!type":"fn(urlStr: string, parseQueryString?: bool, slashesDenoteHost?: bool) -> url.type","!url":"http://nodejs.org/api/url.html#url_url_parse_urlstr_parsequerystring_slashesdenotehost","!doc":"Take a URL string, and return an object."},format:{"!type":"fn(url: url.type) -> string","!url":"http://nodejs.org/api/url.html#url_url_format_urlobj","!doc":"Take a parsed URL object, and return a formatted URL string."},resolve:{"!type":"fn(from: string, to: string) -> string","!url":"http://nodejs.org/api/url.html#url_url_resolve_from_to","!doc":"Take a base URL, and a href URL, and resolve them as a browser would for an anchor tag."}},dns:{lookup:{"!type":"fn(domain: string, callback: fn(err: +Error, address: string, family: number)) -> string","!url":"http://nodejs.org/api/dns.html#dns_dns_lookup_domain_family_callback","!doc":"Resolves a domain (e.g. 'google.com') into the first found A (IPv4) or AAAA (IPv6) record. The family can be the integer 4 or 6. Defaults to null that indicates both Ip v4 and v6 address family."},resolve:{"!type":"fn(domain: string, callback: fn(err: +Error, addresses: [string])) -> [string]","!url":"http://nodejs.org/api/dns.html#dns_dns_resolve_domain_rrtype_callback","!doc":"Resolves a domain (e.g. 'google.com') into an array of the record types specified by rrtype. Valid rrtypes are 'A' (IPV4 addresses, default), 'AAAA' (IPV6 addresses), 'MX' (mail exchange records), 'TXT' (text records), 'SRV' (SRV records), 'PTR' (used for reverse IP lookups), 'NS' (name server records) and 'CNAME' (canonical name records)."},resolve4:{"!type":"fn(domain: string, callback: fn(err: +Error, addresses: [string])) -> [string]","!url":"http://nodejs.org/api/dns.html#dns_dns_resolve4_domain_callback","!doc":"The same as dns.resolve(), but only for IPv4 queries (A records). addresses is an array of IPv4 addresses (e.g. ['74.125.79.104', '74.125.79.105', '74.125.79.106'])."},resolve6:{"!type":"fn(domain: string, callback: fn(err: +Error, addresses: [string])) -> [string]","!url":"http://nodejs.org/api/dns.html#dns_dns_resolve6_domain_callback","!doc":"The same as dns.resolve4() except for IPv6 queries (an AAAA query)."},resolveMx:{"!type":"fn(domain: string, callback: fn(err: +Error, addresses: [string])) -> [string]","!url":"http://nodejs.org/api/dns.html#dns_dns_resolvemx_domain_callback","!doc":"The same as dns.resolve(), but only for mail exchange queries (MX records)."},resolveTxt:{"!type":"fn(domain: string, callback: fn(err: +Error, addresses: [string])) -> [string]","!url":"http://nodejs.org/api/dns.html#dns_dns_resolvetxt_domain_callback","!doc":"The same as dns.resolve(), but only for text queries (TXT records). addresses is an array of the text records available for domain (e.g., ['v=spf1 ip4:0.0.0.0 ~all'])."},resolveSrv:{"!type":"fn(domain: string, callback: fn(err: +Error, addresses: [string])) -> [string]","!url":"http://nodejs.org/api/dns.html#dns_dns_resolvesrv_domain_callback","!doc":"The same as dns.resolve(), but only for service records (SRV records). addresses is an array of the SRV records available for domain. Properties of SRV records are priority, weight, port, and name (e.g., [{'priority': 10, {'weight': 5, 'port': 21223, 'name': 'service.example.com'}, ...])."},resolveNs:{"!type":"fn(domain: string, callback: fn(err: +Error, addresses: [string])) -> [string]","!url":"http://nodejs.org/api/dns.html#dns_dns_resolvens_domain_callback","!doc":"The same as dns.resolve(), but only for name server records (NS records). addresses is an array of the name server records available for domain (e.g., ['ns1.example.com', 'ns2.example.com'])."},resolveCname:{"!type":"fn(domain: string, callback: fn(err: +Error, addresses: [string])) -> [string]","!url":"http://nodejs.org/api/dns.html#dns_dns_resolvecname_domain_callback","!doc":"The same as dns.resolve(), but only for canonical name records (CNAME records). addresses is an array of the canonical name records available for domain (e.g., ['bar.example.com'])."},reverse:{"!type":"fn(ip: string, callback: fn(err: +Error, domains: [string])) -> [string]","!url":"http://nodejs.org/api/dns.html#dns_dns_reverse_ip_callback","!doc":"Reverse resolves an ip address to an array of domain names."}},net:{createServer:{"!type":"fn(options?: ?, connectionListener?: fn(socket: +net.Socket)) -> +net.Server","!url":"http://nodejs.org/api/net.html#net_net_createserver_options_connectionlistener","!doc":"Creates a new TCP server. The connectionListener argument is automatically set as a listener for the 'connection' event."},Server:{"!type":"fn()",prototype:{"!proto":"net.Socket.prototype",listen:{"!type":"fn(port: number, hostname?: string, backlog?: number, callback?: fn())","!url":"http://nodejs.org/api/net.html#net_server_listen_port_host_backlog_callback","!doc":"Begin accepting connections on the specified port and host. If the host is omitted, the server will accept connections directed to any IPv4 address (INADDR_ANY). A port value of zero will assign a random port."},close:{"!type":"fn(callback?: fn())","!url":"http://nodejs.org/api/net.html#net_server_close_callback","!doc":"Stops the server from accepting new connections and keeps existing connections. This function is asynchronous, the server is finally closed when all connections are ended and the server emits a 'close' event. Optionally, you can pass a callback to listen for the 'close' event."},maxConnections:{"!type":"number","!url":"http://nodejs.org/api/net.html#net_server_maxconnections","!doc":"Set this property to reject connections when the server's connection count gets high."},getConnections:{"!type":"fn(callback: fn(err: +Error, count: number))","!url":"http://nodejs.org/api/net.html#net_server_getconnections_callback","!doc":"Asynchronously get the number of concurrent connections on the server. Works when sockets were sent to forks."}},"!url":"http://nodejs.org/api/net.html#net_class_net_server","!doc":"This class is used to create a TCP or UNIX server. A server is a net.Socket that can listen for new incoming connections."},Socket:{"!type":"fn(options: ?)",prototype:{"!proto":"events.EventEmitter.prototype",connect:{"!type":"fn(port: number, host?: string, connectionListener?: fn())","!url":"http://nodejs.org/api/net.html#net_socket_connect_port_host_connectlistener","!doc":"Opens the connection for a given socket. If port and host are given, then the socket will be opened as a TCP socket, if host is omitted, localhost will be assumed. If a path is given, the socket will be opened as a unix socket to that path."},bufferSize:{"!type":"number","!url":"http://nodejs.org/api/net.html#net_socket_buffersize","!doc":"net.Socket has the property that socket.write() always works. This is to help users get up and running quickly. The computer cannot always keep up with the amount of data that is written to a socket - the network connection simply might be too slow. Node will internally queue up the data written to a socket and send it out over the wire when it is possible. (Internally it is polling on the socket's file descriptor for being writable)."},setEncoding:{"!type":"fn(encoding?: string)","!url":"http://nodejs.org/api/net.html#net_socket_setencoding_encoding","!doc":"Set the encoding for the socket as a Readable Stream."},write:{"!type":"fn(data: +Buffer, encoding?: string, callback?: fn())","!url":"http://nodejs.org/api/net.html#net_socket_write_data_encoding_callback","!doc":"Sends data on the socket. The second parameter specifies the encoding in the case of a string--it defaults to UTF8 encoding."},end:{"!type":"fn(data?: +Buffer, encoding?: string)","!url":"http://nodejs.org/api/net.html#net_socket_end_data_encoding","!doc":"Half-closes the socket. i.e., it sends a FIN packet. It is possible the server will still send some data."},destroy:{"!type":"fn()","!url":"http://nodejs.org/api/net.html#net_socket_destroy","!doc":"Ensures that no more I/O activity happens on this socket. Only necessary in case of errors (parse error or so)."},pause:{"!type":"fn()","!url":"http://nodejs.org/api/net.html#net_socket_pause","!doc":"Pauses the reading of data. That is, 'data' events will not be emitted. Useful to throttle back an upload."},resume:{"!type":"fn()","!url":"http://nodejs.org/api/net.html#net_socket_resume","!doc":"Resumes reading after a call to pause()."},setTimeout:{"!type":"fn(timeout: number, callback?: fn())","!url":"http://nodejs.org/api/net.html#net_socket_settimeout_timeout_callback","!doc":"Sets the socket to timeout after timeout milliseconds of inactivity on the socket. By default net.Socket do not have a timeout."},setKeepAlive:{"!type":"fn(enable?: bool, initialDelay?: number)","!url":"http://nodejs.org/api/net.html#net_socket_setkeepalive_enable_initialdelay","!doc":"Enable/disable keep-alive functionality, and optionally set the initial delay before the first keepalive probe is sent on an idle socket. enable defaults to false."},address:{"!type":"fn() -> net.address","!url":"http://nodejs.org/api/net.html#net_socket_address","!doc":"Returns the bound address, the address family name and port of the socket as reported by the operating system. Returns an object with three properties, e.g. { port: 12346, family: 'IPv4', address: '127.0.0.1' }"},unref:{"!type":"fn()","!url":"http://nodejs.org/api/net.html#net_socket_unref","!doc":"Calling unref on a socket will allow the program to exit if this is the only active socket in the event system. If the socket is already unrefd calling unref again will have no effect."},ref:{"!type":"fn()","!url":"http://nodejs.org/api/net.html#net_socket_ref","!doc":"Opposite of unref, calling ref on a previously unrefd socket will not let the program exit if it's the only socket left (the default behavior). If the socket is refd calling ref again will have no effect."},remoteAddress:{"!type":"string","!url":"http://nodejs.org/api/net.html#net_socket_remoteaddress","!doc":"The string representation of the remote IP address. For example, '74.125.127.100' or '2001:4860:a005::68'."},remotePort:{"!type":"number","!url":"http://nodejs.org/api/net.html#net_socket_remoteport","!doc":"The numeric representation of the remote port. For example, 80 or 21."},localPort:{"!type":"number","!url":"http://nodejs.org/api/net.html#net_socket_localport","!doc":"The numeric representation of the local port. For example, 80 or 21."},bytesRead:{"!type":"number","!url":"http://nodejs.org/api/net.html#net_socket_bytesread","!doc":"The amount of received bytes."},bytesWritten:{"!type":"number","!url":"http://nodejs.org/api/net.html#net_socket_byteswritten","!doc":"The amount of bytes sent."},setNoDelay:{"!type":"fn(noDelay?: fn())","!url":"http://nodejs.org/api/net.html#net_socket_setnodelay_nodelay","!doc":"Disables the Nagle algorithm. By default TCP connections use the Nagle algorithm, they buffer data before sending it off. Setting true for noDelay will immediately fire off data each time socket.write() is called. noDelay defaults to true."},localAddress:{"!type":"string","!url":"http://nodejs.org/api/net.html#net_socket_localaddress","!doc":"The string representation of the local IP address the remote client is connecting on. For example, if you are listening on '0.0.0.0' and the client connects on '192.168.1.1', the value would be '192.168.1.1'."}},"!url":"http://nodejs.org/api/net.html#net_class_net_socket","!doc":"This object is an abstraction of a TCP or UNIX socket. net.Socket instances implement a duplex Stream interface. They can be created by the user and used as a client (with connect()) or they can be created by Node and passed to the user through the 'connection' event of a server."},connect:{"!type":"fn(options: ?, connectionListener?: fn()) -> +net.Socket","!url":"http://nodejs.org/api/net.html#net_net_connect_options_connectionlistener","!doc":"Constructs a new socket object and opens the socket to the given location. When the socket is established, the 'connect' event will be emitted."},createConnection:{"!type":"fn(options: ?, connectionListener?: fn()) -> +net.Socket","!url":"http://nodejs.org/api/net.html#net_net_createconnection_options_connectionlistener","!doc":"Constructs a new socket object and opens the socket to the given location. When the socket is established, the 'connect' event will be emitted."},isIP:{"!type":"fn(input: string) -> number","!url":"http://nodejs.org/api/net.html#net_net_isip_input","!doc":"Tests if input is an IP address. Returns 0 for invalid strings, returns 4 for IP version 4 addresses, and returns 6 for IP version 6 addresses."},isIPv4:{"!type":"fn(input: string) -> bool","!url":"http://nodejs.org/api/net.html#net_net_isipv4_input","!doc":"Returns true if input is a version 4 IP address, otherwise returns false."},isIPv6:{"!type":"fn(input: string) -> bool","!url":"http://nodejs.org/api/net.html#net_net_isipv6_input","!doc":"Returns true if input is a version 6 IP address, otherwise returns false."}},dgram:{createSocket:{"!type":"fn(type: string, callback?: fn()) -> +dgram.Socket","!url":"http://nodejs.org/api/dgram.html#dgram_dgram_createsocket_type_callback","!doc":"Creates a datagram Socket of the specified types. Valid types are udp4 and udp6."},Socket:{"!type":"fn()",prototype:{"!proto":"events.EventEmitter.prototype",send:{"!type":"fn(buf: +Buffer, offset: number, length: number, port: number, address: string, callback?: fn())","!url":"http://nodejs.org/api/dgram.html#dgram_socket_send_buf_offset_length_port_address_callback","!doc":"For UDP sockets, the destination port and IP address must be specified. A string may be supplied for the address parameter, and it will be resolved with DNS. An optional callback may be specified to detect any DNS errors and when buf may be re-used. Note that DNS lookups will delay the time that a send takes place, at least until the next tick. The only way to know for sure that a send has taken place is to use the callback."},bind:{"!type":"fn(port: number, address?: string)","!url":"http://nodejs.org/api/dgram.html#dgram_socket_bind_port_address_callback","!doc":"For UDP sockets, listen for datagrams on a named port and optional address. If address is not specified, the OS will try to listen on all addresses."},close:{"!type":"fn()","!url":"http://nodejs.org/api/dgram.html#dgram_socket_close","!doc":"Close the underlying socket and stop listening for data on it."},address:{address:"string",family:"string",port:"number","!url":"http://nodejs.org/api/dgram.html#dgram_socket_address","!doc":"Returns an object containing the address information for a socket. For UDP sockets, this object will contain address , family and port."},setBroadcast:{"!type":"fn(flag: bool)","!url":"http://nodejs.org/api/dgram.html#dgram_socket_setbroadcast_flag","!doc":"Sets or clears the SO_BROADCAST socket option. When this option is set, UDP packets may be sent to a local interface's broadcast address."},setTTL:{"!type":"fn(ttl: number)","!url":"http://nodejs.org/api/dgram.html#dgram_socket_setttl_ttl","!doc":'Sets the IP_TTL socket option. TTL stands for "Time to Live," but in this context it specifies the number of IP hops that a packet is allowed to go through. Each router or gateway that forwards a packet decrements the TTL. If the TTL is decremented to 0 by a router, it will not be forwarded. Changing TTL values is typically done for network probes or when multicasting.'},setMulticastTTL:{"!type":"fn(ttl: number)","!url":"http://nodejs.org/api/dgram.html#dgram_socket_setmulticastttl_ttl","!doc":'Sets the IP_MULTICAST_TTL socket option. TTL stands for "Time to Live," but in this context it specifies the number of IP hops that a packet is allowed to go through, specifically for multicast traffic. Each router or gateway that forwards a packet decrements the TTL. If the TTL is decremented to 0 by a router, it will not be forwarded.'},setMulticastLoopback:{"!type":"fn(flag: bool)","!url":"http://nodejs.org/api/dgram.html#dgram_socket_setmulticastloopback_flag","!doc":"Sets or clears the IP_MULTICAST_LOOP socket option. When this option is set, multicast packets will also be received on the local interface."},addMembership:{"!type":"fn(multicastAddress: string, multicastInterface?: string)","!url":"http://nodejs.org/api/dgram.html#dgram_socket_addmembership_multicastaddress_multicastinterface","!doc":"Tells the kernel to join a multicast group with IP_ADD_MEMBERSHIP socket option."},dropMembership:{"!type":"fn(multicastAddress: string, multicastInterface?: string)","!url":"http://nodejs.org/api/dgram.html#dgram_socket_dropmembership_multicastaddress_multicastinterface","!doc":"Opposite of addMembership - tells the kernel to leave a multicast group with IP_DROP_MEMBERSHIP socket option. This is automatically called by the kernel when the socket is closed or process terminates, so most apps will never need to call this."}},"!url":"http://nodejs.org/api/dgram.html#dgram_class_dgram_socket","!doc":"The dgram Socket class encapsulates the datagram functionality. It should be created via dgram.createSocket(type, [callback])."}},fs:{rename:{"!type":"fn(oldPath: string, newPath: string, callback?: fn())","!url":"http://nodejs.org/api/fs.html#fs_fs_rename_oldpath_newpath_callback","!doc":"Asynchronous rename(2). No arguments other than a possible exception are given to the completion callback."},renameSync:{"!type":"fn(oldPath: string, newPath: string)","!url":"http://nodejs.org/api/fs.html#fs_fs_renamesync_oldpath_newpath","!doc":"Synchronous rename(2)."},ftruncate:{"!type":"fn(fd: number, len: number, callback?: fn())","!url":"http://nodejs.org/api/fs.html#fs_fs_ftruncate_fd_len_callback","!doc":"Asynchronous ftruncate(2). No arguments other than a possible exception are given to the completion callback."},ftruncateSync:{"!type":"fn(fd: number, len: number)","!url":"http://nodejs.org/api/fs.html#fs_fs_ftruncatesync_fd_len","!doc":"Synchronous ftruncate(2)."},truncate:{"!type":"fn(path: string, len: number, callback?: fn())","!url":"http://nodejs.org/api/fs.html#fs_fs_truncate_path_len_callback","!doc":"Asynchronous truncate(2). No arguments other than a possible exception are given to the completion callback."},truncateSync:{"!type":"fn(path: string, len: number)","!url":"http://nodejs.org/api/fs.html#fs_fs_truncatesync_path_len","!doc":"Synchronous truncate(2)."},chown:{"!type":"fn(path: string, uid: number, gid: number, callback?: fn())","!url":"http://nodejs.org/api/fs.html#fs_fs_chown_path_uid_gid_callback","!doc":"Asynchronous chown(2). No arguments other than a possible exception are given to the completion callback."},chownSync:{"!type":"fn(path: string, uid: number, gid: number)","!url":"http://nodejs.org/api/fs.html#fs_fs_chownsync_path_uid_gid","!doc":"Synchronous chown(2)."},fchown:{"!type":"fn(fd: number, uid: number, gid: number, callback?: fn())","!url":"http://nodejs.org/api/fs.html#fs_fs_fchown_fd_uid_gid_callback","!doc":"Asynchronous fchown(2). No arguments other than a possible exception are given to the completion callback."},fchownSync:{"!type":"fn(fd: number, uid: number, gid: number)","!url":"http://nodejs.org/api/fs.html#fs_fs_fchownsync_fd_uid_gid","!doc":"Synchronous fchown(2)."},lchown:{"!type":"fn(path: string, uid: number, gid: number, callback?: fn())","!url":"http://nodejs.org/api/fs.html#fs_fs_lchown_path_uid_gid_callback","!doc":"Asynchronous lchown(2). No arguments other than a possible exception are given to the completion callback."},lchownSync:{"!type":"fn(path: string, uid: number, gid: number)","!url":"http://nodejs.org/api/fs.html#fs_fs_lchownsync_path_uid_gid","!doc":"Synchronous lchown(2)."},chmod:{"!type":"fn(path: string, mode: string, callback?: fn())","!url":"http://nodejs.org/api/fs.html#fs_fs_chmod_path_mode_callback","!doc":"Asynchronous chmod(2). No arguments other than a possible exception are given to the completion callback."},chmodSync:{"!type":"fn(path: string, mode: string)","!url":"http://nodejs.org/api/fs.html#fs_fs_chmodsync_path_mode","!doc":"Synchronous chmod(2)."},fchmod:{"!type":"fn(fd: number, mode: string, callback?: fn())","!url":"http://nodejs.org/api/fs.html#fs_fs_fchmod_fd_mode_callback","!doc":"Asynchronous fchmod(2). No arguments other than a possible exception are given to the completion callback."},fchmodSync:{"!type":"fn(fd: number, mode: string)","!url":"http://nodejs.org/api/fs.html#fs_fs_fchmodsync_fd_mode","!doc":"Synchronous fchmod(2)."},lchmod:{"!type":"fn(path: string, mode: number, callback?: fn())","!url":"http://nodejs.org/api/fs.html#fs_fs_lchmod_path_mode_callback","!doc":"Asynchronous lchmod(2). No arguments other than a possible exception are given to the completion callback."},lchmodSync:{"!type":"fn(path: string, mode: string)","!url":"http://nodejs.org/api/fs.html#fs_fs_lchmodsync_path_mode","!doc":"Synchronous lchmod(2)."},stat:{"!type":"fn(path: string, callback?: fn(err: +Error, stats: +fs.Stats) -> ?) -> +fs.Stats","!url":"http://nodejs.org/api/fs.html#fs_fs_stat_path_callback","!doc":"Asynchronous stat(2). The callback gets two arguments (err, stats) where stats is a fs.Stats object."},lstat:{"!type":"fn(path: string, callback?: fn(err: +Error, stats: +fs.Stats) -> ?) -> +fs.Stats","!url":"http://nodejs.org/api/fs.html#fs_fs_lstat_path_callback","!doc":"Asynchronous lstat(2). The callback gets two arguments (err, stats) where stats is a fs.Stats object. lstat() is identical to stat(), except that if path is a symbolic link, then the link itself is stat-ed, not the file that it refers to."},fstat:{"!type":"fn(fd: number, callback?: fn(err: +Error, stats: +fs.Stats) -> ?) -> +fs.Stats","!url":"http://nodejs.org/api/fs.html#fs_fs_fstat_fd_callback","!doc":"Asynchronous fstat(2). The callback gets two arguments (err, stats) where stats is a fs.Stats object. fstat() is identical to stat(), except that the file to be stat-ed is specified by the file descriptor fd."},statSync:{"!type":"fn(path: string) -> +fs.Stats","!url":"http://nodejs.org/api/fs.html#fs_fs_statsync_path","!doc":"Synchronous stat(2). Returns an instance of fs.Stats."},lstatSync:{"!type":"fn(path: string) -> +fs.Stats","!url":"http://nodejs.org/api/fs.html#fs_fs_lstatsync_path","!doc":"Synchronous lstat(2). Returns an instance of fs.Stats."},fstatSync:{"!type":"fn(fd: number) -> +fs.Stats","!url":"http://nodejs.org/api/fs.html#fs_fs_fstatsync_fd","!doc":"Synchronous fstat(2). Returns an instance of fs.Stats."},link:{"!type":"fn(srcpath: string, dstpath: string, callback?: fn())","!url":"http://nodejs.org/api/fs.html#fs_fs_link_srcpath_dstpath_callback","!doc":"Asynchronous link(2). No arguments other than a possible exception are given to the completion callback."},linkSync:{"!type":"fn(srcpath: string, dstpath: string)","!url":"http://nodejs.org/api/fs.html#fs_fs_linksync_srcpath_dstpath","!doc":"Synchronous link(2)."},symlink:{"!type":"fn(srcpath: string, dstpath: string, type?: string, callback?: fn())","!url":"http://nodejs.org/api/fs.html#fs_fs_symlink_srcpath_dstpath_type_callback","!doc":"Asynchronous symlink(2). No arguments other than a possible exception are given to the completion callback. type argument can be either 'dir', 'file', or 'junction' (default is 'file'). It is only used on Windows (ignored on other platforms). Note that Windows junction points require the destination path to be absolute. When using 'junction', the destination argument will automatically be normalized to absolute path."},symlinkSync:{"!type":"fn(srcpath: string, dstpath: string, type?: string)","!url":"http://nodejs.org/api/fs.html#fs_fs_symlinksync_srcpath_dstpath_type","!doc":"Synchronous symlink(2)."},readlink:{"!type":"fn(path: string, callback?: fn(err: +Error, linkString: string))","!url":"http://nodejs.org/api/fs.html#fs_fs_readlink_path_callback","!doc":"Asynchronous readlink(2). The callback gets two arguments (err, linkString)."},readlinkSync:{"!type":"fn(path: string)","!url":"http://nodejs.org/api/fs.html#fs_fs_readlinksync_path","!doc":"Synchronous readlink(2). Returns the symbolic link's string value."},realpath:{"!type":"fn(path: string, cache: string, callback: fn(err: +Error, resolvedPath: string))","!url":"http://nodejs.org/api/fs.html#fs_fs_realpath_path_cache_callback","!doc":"Asynchronous realpath(2). The callback gets two arguments (err, resolvedPath). May use process.cwd to resolve relative paths. cache is an object literal of mapped paths that can be used to force a specific path resolution or avoid additional fs.stat calls for known real paths."},realpathSync:{"!type":"fn(path: string, cache?: bool) -> string","!url":"http://nodejs.org/api/fs.html#fs_fs_realpathsync_path_cache","!doc":"Synchronous realpath(2). Returns the resolved path."},unlink:{"!type":"fn(path: string, callback?: fn())","!url":"http://nodejs.org/api/fs.html#fs_fs_unlink_path_callback","!doc":"Asynchronous unlink(2). No arguments other than a possible exception are given to the completion callback."},unlinkSync:{"!type":"fn(path: string)","!url":"http://nodejs.org/api/fs.html#fs_fs_unlinksync_path","!doc":"Synchronous unlink(2)."},rmdir:{"!type":"fn(path: string, callback?: fn())","!url":"http://nodejs.org/api/fs.html#fs_fs_rmdir_path_callback","!doc":"Asynchronous rmdir(2). No arguments other than a possible exception are given to the completion callback."},rmdirSync:{"!type":"fn(path: string)","!url":"http://nodejs.org/api/fs.html#fs_fs_rmdirsync_path","!doc":"Synchronous rmdir(2)."},mkdir:{"!type":"fn(path: string, mode?: ?, callback?: fn())","!url":"http://nodejs.org/api/fs.html#fs_fs_mkdir_path_mode_callback","!doc":"Asynchronous mkdir(2). No arguments other than a possible exception are given to the completion callback. mode defaults to 0777."},mkdirSync:{"!type":"fn(path: string, mode?: string)","!url":"http://nodejs.org/api/fs.html#fs_fs_mkdirsync_path_mode","!doc":"Synchronous mkdir(2)."},readdir:{"!type":"fn(path: string, callback?: fn(err: +Error, files: [string]))","!url":"http://nodejs.org/api/fs.html#fs_fs_readdir_path_callback","!doc":"Asynchronous readdir(3). Reads the contents of a directory. The callback gets two arguments (err, files) where files is an array of the names of the files in the directory excluding '.' and '..'."},readdirSync:{"!type":"fn(path: string) -> [string]","!url":"http://nodejs.org/api/fs.html#fs_fs_readdirsync_path","!doc":"Synchronous readdir(3). Returns an array of filenames excluding '.' and '..'."},close:{"!type":"fn(fd: number, callback?: fn())","!url":"http://nodejs.org/api/fs.html#fs_fs_close_fd_callback","!doc":"Asynchronous close(2). No arguments other than a possible exception are given to the completion callback."},closeSync:{"!type":"fn(fd: number)","!url":"http://nodejs.org/api/fs.html#fs_fs_closesync_fd","!doc":"Synchronous close(2)."},open:{"!type":"fn(path: string, flags: string, mode?: string, callback?: fn(err: +Error, fd: number))","!url":"http://nodejs.org/api/fs.html#fs_fs_open_path_flags_mode_callback","!doc":"Asynchronous file open."},openSync:{"!type":"fn(path: string, flags: string, mode?: string) -> number","!url":"http://nodejs.org/api/fs.html#fs_fs_opensync_path_flags_mode","!doc":"Synchronous open(2)."},utimes:{"!type":"fn(path: string, atime: number, mtime: number, callback?: fn())","!url":"http://nodejs.org/api/fs.html#fs_fs_utimes_path_atime_mtime_callback","!doc":"Change file timestamps of the file referenced by the supplied path."},utimesSync:{"!type":"fn(path: string, atime: number, mtime: number)","!url":"http://nodejs.org/api/fs.html#fs_fs_utimessync_path_atime_mtime","!doc":"Change file timestamps of the file referenced by the supplied path."},futimes:{"!type":"fn(fd: number, atime: number, mtime: number, callback?: fn())","!url":"http://nodejs.org/api/fs.html#fs_fs_futimes_fd_atime_mtime_callback","!doc":"Change the file timestamps of a file referenced by the supplied file descriptor."},futimesSync:{"!type":"fn(fd: number, atime: number, mtime: number)","!url":"http://nodejs.org/api/fs.html#fs_fs_futimessync_fd_atime_mtime","!doc":"Change the file timestamps of a file referenced by the supplied file descriptor."},fsync:{"!type":"fn(fd: number, callback?: fn())","!url":"http://nodejs.org/api/fs.html#fs_fs_fsync_fd_callback","!doc":"Asynchronous fsync(2). No arguments other than a possible exception are given to the completion callback."},fsyncSync:{"!type":"fn(fd: number)","!url":"http://nodejs.org/api/fs.html#fs_fs_fsyncsync_fd","!doc":"Synchronous fsync(2)."},write:{"!type":"fn(fd: number, buffer: +Buffer, offset: number, length: number, position: number, callback?: fn(err: +Error, written: number, buffer: +Buffer))","!url":"http://nodejs.org/api/fs.html#fs_fs_write_fd_buffer_offset_length_position_callback","!doc":"Write buffer to the file specified by fd."},writeSync:{"!type":"fn(fd: number, buffer: +Buffer, offset: number, length: number, position: number) -> number","!url":"http://nodejs.org/api/fs.html#fs_fs_writesync_fd_buffer_offset_length_position","!doc":"Synchronous version of fs.write(). Returns the number of bytes written."},read:{"!type":"fn(fd: number, buffer: +Buffer, offset: number, length: number, position: number, callback?: fn(err: +Error, bytesRead: number, buffer: +Buffer))","!url":"http://nodejs.org/api/fs.html#fs_fs_read_fd_buffer_offset_length_position_callback","!doc":"Read data from the file specified by fd."},readSync:{"!type":"fn(fd: number, buffer: +Buffer, offset: number, length: number, position: number) -> number","!url":"http://nodejs.org/api/fs.html#fs_fs_readsync_fd_buffer_offset_length_position","!doc":"Synchronous version of fs.read. Returns the number of bytesRead."},readFile:{"!type":"fn(filename: string, callback: fn(err: +Error, data: +Buffer))","!url":"http://nodejs.org/api/fs.html#fs_fs_readfile_filename_options_callback","!doc":"Asynchronously reads the entire contents of a file."},readFileSync:{"!type":"fn(filename: string, encoding: string) -> +Buffer","!url":"http://nodejs.org/api/fs.html#fs_fs_readfilesync_filename_options","!doc":"Synchronous version of fs.readFile. Returns the contents of the filename."},writeFile:{"!type":"fn(filename: string, data: +Buffer, encoding?: string, callback?: fn())","!url":"http://nodejs.org/api/fs.html#fs_fs_writefile_filename_data_options_callback","!doc":"Asynchronously writes data to a file, replacing the file if it already exists. data can be a string or a buffer."},writeFileSync:{"!type":"fn(filename: string, data: +Buffer, encoding?: string)","!url":"http://nodejs.org/api/fs.html#fs_fs_writefilesync_filename_data_options","!doc":"The synchronous version of fs.writeFile."},appendFile:{"!type":"fn(filename: string, data: ?, encoding?: string, callback?: fn())","!url":"http://nodejs.org/api/fs.html#fs_fs_appendfile_filename_data_options_callback","!doc":"Asynchronously append data to a file, creating the file if it not yet exists. data can be a string or a buffer."},appendFileSync:{"!type":"fn(filename: string, data: ?, encoding?: string)","!url":"http://nodejs.org/api/fs.html#fs_fs_appendfilesync_filename_data_options","!doc":"The synchronous version of fs.appendFile."},watchFile:{"!type":"fn(filename: string, options: ?, listener: fn(current: +fs.Stats, prev: +fs.Stats))","!url":"http://nodejs.org/api/fs.html#fs_fs_watchfile_filename_options_listener","!doc":"Watch for changes on filename. The callback listener will be called each time the file is accessed."},unwatchFile:{"!type":"fn(filename: string, listener?: fn())","!url":"http://nodejs.org/api/fs.html#fs_fs_unwatchfile_filename_listener","!doc":"Stop watching for changes on filename. If listener is specified, only that particular listener is removed. Otherwise, all listeners are removed and you have effectively stopped watching filename."},watch:{"!type":"fn(filename: string, options?: ?, listener?: fn(event: string, filename: string)) -> +fs.FSWatcher","!url":"http://nodejs.org/api/fs.html#fs_fs_watch_filename_options_listener","!doc":"Watch for changes on filename, where filename is either a file or a directory. The returned object is a fs.FSWatcher."},exists:{"!type":"fn(path: string, callback?: fn(exists: bool))","!url":"http://nodejs.org/api/fs.html#fs_fs_exists_path_callback","!doc":"Test whether or not the given path exists by checking with the file system. Then call the callback argument with either true or false."},existsSync:{"!type":"fn(path: string) -> bool","!url":"http://nodejs.org/api/fs.html#fs_fs_existssync_path","!doc":"Synchronous version of fs.exists."},Stats:{"!type":"fn()",prototype:{isFile:"fn() -> bool",isDirectory:"fn() -> bool",isBlockDevice:"fn() -> bool",isCharacterDevice:"fn() -> bool",isSymbolicLink:"fn() -> bool",isFIFO:"fn() -> bool",isSocket:"fn() -> bool",dev:"number",ino:"number",mode:"number",nlink:"number",uid:"number",gid:"number",rdev:"number",size:"number",blksize:"number",blocks:"number",atime:"+Date",mtime:"+Date",ctime:"+Date"},"!url":"http://nodejs.org/api/fs.html#fs_class_fs_stats","!doc":"Objects returned from fs.stat(), fs.lstat() and fs.fstat() and their synchronous counterparts are of this type."},createReadStream:{"!type":"fn(path: string, options?: ?) -> +stream.Readable","!url":"http://nodejs.org/api/fs.html#fs_fs_createreadstream_path_options","!doc":"Returns a new ReadStream object."},createWriteStream:{"!type":"fn(path: string, options?: ?) -> +stream.Writable","!url":"http://nodejs.org/api/fs.html#fs_fs_createwritestream_path_options","!doc":"Returns a new WriteStream object."},FSWatcher:{"!type":"fn()",prototype:{close:"fn()"},"!url":"http://nodejs.org/api/fs.html#fs_class_fs_fswatcher","!doc":"Objects returned from fs.watch() are of this type."}},path:{normalize:{"!type":"fn(p: string) -> string","!url":"http://nodejs.org/api/path.html#path_path_normalize_p","!doc":"Normalize a string path, taking care of '..' and '.' parts."},join:{"!type":"fn() -> string","!url":"http://nodejs.org/api/path.html#path_path_join_path1_path2","!doc":"Join all arguments together and normalize the resulting path."},resolve:{"!type":"fn(from: string, from2: string, from3: string, from4: string, from5: string, to: string) -> string","!url":"http://nodejs.org/api/path.html#path_path_resolve_from_to","!doc":"Resolves to to an absolute path."},relative:{"!type":"fn(from: string, to: string) -> string","!url":"http://nodejs.org/api/path.html#path_path_relative_from_to","!doc":"Solve the relative path from from to to."},dirname:{"!type":"fn(p: string) -> string","!url":"http://nodejs.org/api/path.html#path_path_dirname_p","!doc":"Return the directory name of a path. Similar to the Unix dirname command."},basename:{"!type":"fn(p: string, ext?: string) -> string","!url":"http://nodejs.org/api/path.html#path_path_basename_p_ext","!doc":"Return the last portion of a path. Similar to the Unix basename command."},extname:{"!type":"fn(p: string) -> string","!url":"http://nodejs.org/api/path.html#path_path_extname_p","!doc":"Return the extension of the path, from the last '.' to end of string in the last portion of the path. If there is no '.' in the last portion of the path or the first character of it is '.', then it returns an empty string."},sep:{"!type":"string","!url":"http://nodejs.org/api/path.html#path_path_sep","!doc":"The platform-specific file separator. '\\\\' or '/'."},delimiter:{"!type":"string","!url":"http://nodejs.org/api/path.html#path_path_delimiter","!doc":"The platform-specific path delimiter, ; or ':'."}},string_decoder:{StringDecoder:{"!type":"fn(encoding?: string)",prototype:{write:{"!type":"fn(buffer: +Buffer) -> string","!url":"http://nodejs.org/api/string_decoder.html#string_decoder_decoder_write_buffer","!doc":"Returns a decoded string."},end:{"!type":"fn()","!url":"http://nodejs.org/api/string_decoder.html#string_decoder_decoder_end","!doc":"Returns any trailing bytes that were left in the buffer."}},"!url":"http://nodejs.org/api/string_decoder.html#string_decoder_class_stringdecoder","!doc":"Accepts a single argument, encoding which defaults to utf8."}},tls:{CLIENT_RENEG_LIMIT:"number",CLIENT_RENEG_WINDOW:"number",SLAB_BUFFER_SIZE:"number",getCiphers:{"!type":"fn() -> [string]","!url":"http://nodejs.org/api/tls.html#tls_tls_getciphers","!doc":"Returns an array with the names of the supported SSL ciphers."},Server:{"!type":"fn()",prototype:{"!proto":"net.Server.prototype",listen:{"!type":"fn(port: number, host?: string, callback?: fn())","!url":"http://nodejs.org/api/tls.html#tls_server_listen_port_host_callback","!doc":"Begin accepting connections on the specified port and host. If the host is omitted, the server will accept connections directed to any IPv4 address (INADDR_ANY)."},close:{"!type":"fn()","!url":"http://nodejs.org/api/tls.html#tls_server_close","!doc":"Stops the server from accepting new connections. This function is asynchronous, the server is finally closed when the server emits a 'close' event."},addContext:{"!type":"fn(hostName: string, credentials: tls.Server.credentials)","!url":"http://nodejs.org/api/tls.html#tls_server_addcontext_hostname_credentials","!doc":"Add secure context that will be used if client request's SNI hostname is matching passed hostname (wildcards can be used). credentials can contain key, cert and ca."}},"!url":"http://nodejs.org/api/tls.html#tls_class_tls_server","!doc":"This class is a subclass of net.Server and has the same methods on it. Instead of accepting just raw TCP connections, this accepts encrypted connections using TLS or SSL."},createServer:{"!type":"fn(options?: ?, connectionListener?: fn(stream: +tls.CleartextStream)) -> +tls.Server","!url":"http://nodejs.org/api/tls.html#tls_tls_createserver_options_secureconnectionlistener","!doc":"Creates a new tls.Server. The connectionListener argument is automatically set as a listener for the secureConnection event."},CleartextStream:{"!type":"fn()",prototype:{"!proto":"stream.Duplex.prototype",authorized:{"!type":"bool","!url":"http://nodejs.org/api/tls.html#tls_cleartextstream_authorized","!doc":"A boolean that is true if the peer certificate was signed by one of the specified CAs, otherwise false"},authorizationError:{"!type":"+Error","!url":"http://nodejs.org/api/tls.html#tls_cleartextstream_authorizationerror","!doc":"The reason why the peer's certificate has not been verified. This property becomes available only when cleartextStream.authorized === false."},getPeerCertificate:{"!type":"fn() -> ?","!url":"http://nodejs.org/api/tls.html#tls_cleartextstream_getpeercertificate","!doc":"Returns an object representing the peer's certificate. The returned object has some properties corresponding to the field of the certificate."},getCipher:{"!type":"fn() -> tls.cipher","!url":"http://nodejs.org/api/tls.html#tls_cleartextstream_getcipher","!doc":"Returns an object representing the cipher name and the SSL/TLS protocol version of the current connection."},address:{"!type":"net.address","!url":"http://nodejs.org/api/tls.html#tls_cleartextstream_address","!doc":"Returns the bound address, the address family name and port of the underlying socket as reported by the operating system. Returns an object with three properties, e.g. { port: 12346, family: 'IPv4', address: '127.0.0.1' }"},remoteAddress:{"!type":"string","!url":"http://nodejs.org/api/tls.html#tls_cleartextstream_remoteaddress","!doc":"The string representation of the remote IP address. For example, '74.125.127.100' or '2001:4860:a005::68'."},remotePort:{"!type":"number","!url":"http://nodejs.org/api/tls.html#tls_cleartextstream_remoteport","!doc":"The numeric representation of the remote port. For example, 443."}},"!url":"http://nodejs.org/api/tls.html#tls_class_tls_cleartextstream","!doc":"This is a stream on top of the Encrypted stream that makes it possible to read/write an encrypted data as a cleartext data."},connect:{"!type":"fn(port: number, host?: string, options: ?, listener: fn()) -> +tls.CleartextStream","!url":"http://nodejs.org/api/tls.html#tls_tls_connect_options_callback","!doc":"Creates a new client connection to the given port and host (old API) or options.port and options.host. (If host is omitted, it defaults to localhost.)"},createSecurePair:{"!type":"fn(credentials?: crypto.credentials, isServer?: bool, requestCert?: bool, rejectUnauthorized?: bool) -> +tls.SecurePair","!url":"http://nodejs.org/api/tls.html#tls_tls_createsecurepair_credentials_isserver_requestcert_rejectunauthorized","!doc":"Creates a new secure pair object with two streams, one of which reads/writes encrypted data, and one reads/writes cleartext data. Generally the encrypted one is piped to/from an incoming encrypted data stream, and the cleartext one is used as a replacement for the initial encrypted stream."},SecurePair:{"!type":"fn()",prototype:{"!proto":"events.EventEmitter.prototype",cleartext:{"!type":"+tls.CleartextStream","!url":"http://nodejs.org/api/tls.html#tls_class_securepair","!doc":"Returned by tls.createSecurePair."},encrypted:{"!type":"+stream.Duplex","!url":"http://nodejs.org/api/tls.html#tls_class_securepair","!doc":"Returned by tls.createSecurePair."}},"!url":"http://nodejs.org/api/tls.html#tls_class_securepair","!doc":"Returned by tls.createSecurePair."}},crypto:{getCiphers:{"!type":"fn() -> [string]","!url":"http://nodejs.org/api/crypto.html#crypto_crypto_getciphers","!doc":"Returns an array with the names of the supported ciphers."},getHashes:{"!type":"fn() -> [string]","!url":"http://nodejs.org/api/crypto.html#crypto_crypto_gethashes","!doc":"Returns an array with the names of the supported hash algorithms."},createCredentials:{"!type":"fn(details?: ?) -> crypto.credentials","!url":"http://nodejs.org/api/crypto.html#crypto_crypto_createcredentials_details","!doc":"Creates a credentials object."},createHash:{"!type":"fn(algorithm: string) -> +crypto.Hash","!url":"http://nodejs.org/api/crypto.html#crypto_crypto_createhash_algorithm","!doc":"Creates and returns a hash object, a cryptographic hash with the given algorithm which can be used to generate hash digests."},Hash:{"!type":"fn()",prototype:{"!proto":"stream.Duplex.prototype",update:{"!type":"fn(data: +Buffer, encoding?: string)","!url":"http://nodejs.org/api/crypto.html#crypto_hash_update_data_input_encoding","!doc":"Updates the hash content with the given data, the encoding of which is given in input_encoding and can be 'utf8', 'ascii' or 'binary'. If no encoding is provided, then a buffer is expected."},digest:{"!type":"fn(encoding?: string) -> +Buffer","!url":"http://nodejs.org/api/crypto.html#crypto_hash_digest_encoding","!doc":"Calculates the digest of all of the passed data to be hashed. The encoding can be 'hex', 'binary' or 'base64'. If no encoding is provided, then a buffer is returned."}},"!url":"http://nodejs.org/api/crypto.html#crypto_class_hash","!doc":"The class for creating hash digests of data."},createHmac:{"!type":"fn(algorithm: string, key: string) -> +crypto.Hmac","!url":"http://nodejs.org/api/crypto.html#crypto_crypto_createhmac_algorithm_key","!doc":"Creates and returns a hmac object, a cryptographic hmac with the given algorithm and key."},Hmac:{"!type":"fn()",prototype:{update:{"!type":"fn(data: +Buffer)","!url":"http://nodejs.org/api/crypto.html#crypto_hmac_update_data","!doc":"Update the hmac content with the given data. This can be called many times with new data as it is streamed."},digest:{"!type":"fn(encoding?: string) -> +Buffer","!url":"http://nodejs.org/api/crypto.html#crypto_hmac_digest_encoding","!doc":"Calculates the digest of all of the passed data to the hmac. The encoding can be 'hex', 'binary' or 'base64'. If no encoding is provided, then a buffer is returned."}},"!url":"http://nodejs.org/api/crypto.html#crypto_class_hmac","!doc":"Class for creating cryptographic hmac content."},createCipher:{"!type":"fn(algorithm: string, password: string) -> +crypto.Cipher","!url":"http://nodejs.org/api/crypto.html#crypto_crypto_createcipher_algorithm_password","!doc":"Creates and returns a cipher object, with the given algorithm and password."},createCipheriv:{"!type":"fn(algorithm: string, password: string, iv: string) -> +crypto.Cipher","!url":"http://nodejs.org/api/crypto.html#crypto_crypto_createcipheriv_algorithm_key_iv","!doc":"Creates and returns a cipher object, with the given algorithm, key and iv."},Cipher:{"!type":"fn()",prototype:{"!proto":"stream.Duplex.prototype",update:{"!type":"fn(data: +Buffer, input_encoding?: string, output_encoding?: string) -> +Buffer","!url":"http://nodejs.org/api/crypto.html#crypto_cipher_update_data_input_encoding_output_encoding","!doc":"Updates the cipher with data, the encoding of which is given in input_encoding and can be 'utf8', 'ascii' or 'binary'. If no encoding is provided, then a buffer is expected."},"final":{"!type":"fn(output_encoding?: string) -> +Buffer","!url":"http://nodejs.org/api/crypto.html#crypto_cipher_final_output_encoding","!doc":"Returns any remaining enciphered contents, with output_encoding being one of: 'binary', 'base64' or 'hex'. If no encoding is provided, then a buffer is returned."},setAutoPadding:{"!type":"fn(auto_padding: bool)","!url":"http://nodejs.org/api/crypto.html#crypto_cipher_setautopadding_auto_padding_true","!doc":"You can disable automatic padding of the input data to block size. If auto_padding is false, the length of the entire input data must be a multiple of the cipher's block size or final will fail. Useful for non-standard padding, e.g. using 0x0 instead of PKCS padding. You must call this before cipher.final."}},"!url":"http://nodejs.org/api/crypto.html#crypto_class_cipher","!doc":"Class for encrypting data."},createDecipher:{"!type":"fn(algorithm: string, password: string) -> +crypto.Decipher","!url":"http://nodejs.org/api/crypto.html#crypto_crypto_createdecipher_algorithm_password","!doc":"Creates and returns a decipher object, with the given algorithm and key. This is the mirror of the createCipher() above."},createDecipheriv:{"!type":"fn(algorithm: string, key: string, iv: string) -> +crypto.Decipher","!url":"http://nodejs.org/api/crypto.html#crypto_crypto_createdecipheriv_algorithm_key_iv","!doc":"Creates and returns a decipher object, with the given algorithm, key and iv. This is the mirror of the createCipheriv() above."},Decipher:{"!type":"fn()",prototype:{"!proto":"stream.Duplex.prototype",update:{"!type":"fn(data: +Buffer, input_encoding?: string, output_encoding?: string)","!url":"http://nodejs.org/api/crypto.html#crypto_decipher_update_data_input_encoding_output_encoding","!doc":"Updates the decipher with data, which is encoded in 'binary', 'base64' or 'hex'. If no encoding is provided, then a buffer is expected."},"final":{"!type":"fn(output_encoding?: string) -> +Buffer","!url":"http://nodejs.org/api/crypto.html#crypto_decipher_final_output_encoding","!doc":"Returns any remaining plaintext which is deciphered, with output_encoding being one of: 'binary', 'ascii' or 'utf8'. If no encoding is provided, then a buffer is returned."},setAutoPadding:{"!type":"fn(auto_padding: bool)","!url":"http://nodejs.org/api/crypto.html#crypto_decipher_setautopadding_auto_padding_true","!doc":"You can disable auto padding if the data has been encrypted without standard block padding to prevent decipher.final from checking and removing it. Can only work if the input data's length is a multiple of the ciphers block size. You must call this before streaming data to decipher.update."}},"!url":"http://nodejs.org/api/crypto.html#crypto_class_decipher","!doc":"Class for decrypting data."},createSign:{"!type":"fn(algorithm: string) -> +crypto.Sign","!url":"http://nodejs.org/api/crypto.html#crypto_crypto_createsign_algorithm","!doc":"Creates and returns a signing object, with the given algorithm. On recent OpenSSL releases, openssl list-public-key-algorithms will display the available signing algorithms. Examples are 'RSA-SHA256'."},Sign:{"!type":"fn()",prototype:{"!proto":"stream.Writable.prototype",update:{"!type":"fn(data: +Buffer)","!url":"http://nodejs.org/api/crypto.html#crypto_sign_update_data","!doc":"Updates the sign object with data. This can be called many times with new data as it is streamed."},sign:{"!type":"fn(private_key: string, output_format: string) -> +Buffer","!url":"http://nodejs.org/api/crypto.html#crypto_sign_sign_private_key_output_format","!doc":"Calculates the signature on all the updated data passed through the sign. private_key is a string containing the PEM encoded private key for signing."}},"!url":"http://nodejs.org/api/crypto.html#crypto_class_sign","!doc":"Class for generating signatures."},createVerify:{"!type":"fn(algorith: string) -> +crypto.Verify","!url":"http://nodejs.org/api/crypto.html#crypto_crypto_createverify_algorithm","!doc":"Creates and returns a verification object, with the given algorithm. This is the mirror of the signing object above."},Verify:{"!type":"fn()",prototype:{"!proto":"stream.Writable.prototype",update:{"!type":"fn(data: +Buffer)","!url":"http://nodejs.org/api/crypto.html#crypto_verifier_update_data","!doc":"Updates the verifier object with data. This can be called many times with new data as it is streamed."},verify:{"!type":"fn(object: string, signature: string, signature_format?: string) -> bool","!url":"http://nodejs.org/api/crypto.html#crypto_verifier_verify_object_signature_signature_format","!doc":"Verifies the signed data by using the object and signature. object is a string containing a PEM encoded object, which can be one of RSA public key, DSA public key, or X.509 certificate. signature is the previously calculated signature for the data, in the signature_format which can be 'binary', 'hex' or 'base64'. If no encoding is specified, then a buffer is expected."}},"!url":"http://nodejs.org/api/crypto.html#crypto_class_verify","!doc":"Class for verifying signatures."},createDiffieHellman:{"!type":"fn(prime: number, encoding?: string) -> +crypto.DiffieHellman","!url":"http://nodejs.org/api/crypto.html#crypto_crypto_creatediffiehellman_prime_length","!doc":"Creates a Diffie-Hellman key exchange object and generates a prime of the given bit length. The generator used is 2."},DiffieHellman:{"!type":"fn()",prototype:{generateKeys:{"!type":"fn(encoding?: string) -> +Buffer","!url":"http://nodejs.org/api/crypto.html#crypto_diffiehellman_generatekeys_encoding","!doc":"Generates private and public Diffie-Hellman key values, and returns the public key in the specified encoding. This key should be transferred to the other party. Encoding can be 'binary', 'hex', or 'base64'. If no encoding is provided, then a buffer is returned."},computeSecret:{"!type":"fn(other_public_key: +Buffer, input_encoding?: string, output_encoding?: string) -> +Buffer","!url":"http://nodejs.org/api/crypto.html#crypto_diffiehellman_computesecret_other_public_key_input_encoding_output_encoding","!doc":"Computes the shared secret using other_public_key as the other party's public key and returns the computed shared secret. Supplied key is interpreted using specified input_encoding, and secret is encoded using specified output_encoding. Encodings can be 'binary', 'hex', or 'base64'. If the input encoding is not provided, then a buffer is expected."},getPrime:{"!type":"fn(encoding?: string) -> +Buffer","!url":"http://nodejs.org/api/crypto.html#crypto_diffiehellman_getprime_encoding","!doc":"Returns the Diffie-Hellman prime in the specified encoding, which can be 'binary', 'hex', or 'base64'. If no encoding is provided, then a buffer is returned."},getGenerator:{"!type":"fn(encoding: string) -> +Buffer","!url":"http://nodejs.org/api/crypto.html#crypto_diffiehellman_getgenerator_encoding","!doc":"Returns the Diffie-Hellman prime in the specified encoding, which can be 'binary', 'hex', or 'base64'. If no encoding is provided, then a buffer is returned."},getPublicKey:{"!type":"fn(encoding?: string) -> +Buffer","!url":"http://nodejs.org/api/crypto.html#crypto_diffiehellman_getpublickey_encoding","!doc":"Returns the Diffie-Hellman public key in the specified encoding, which can be 'binary', 'hex', or 'base64'. If no encoding is provided, then a buffer is returned."},getPrivateKey:{"!type":"fn(encoding?: string) -> +Buffer","!url":"http://nodejs.org/api/crypto.html#crypto_diffiehellman_getprivatekey_encoding","!doc":"Returns the Diffie-Hellman private key in the specified encoding, which can be 'binary', 'hex', or 'base64'. If no encoding is provided, then a buffer is returned."},setPublicKey:{"!type":"fn(public_key: +Buffer, encoding?: string)","!url":"http://nodejs.org/api/crypto.html#crypto_diffiehellman_setpublickey_public_key_encoding","!doc":"Sets the Diffie-Hellman public key. Key encoding can be 'binary', 'hex' or 'base64'. If no encoding is provided, then a buffer is expected."},setPrivateKey:{"!type":"fn(public_key: +Buffer, encoding?: string)","!url":"http://nodejs.org/api/crypto.html#crypto_diffiehellman_setprivatekey_private_key_encoding","!doc":"Sets the Diffie-Hellman private key. Key encoding can be 'binary', 'hex' or 'base64'. If no encoding is provided, then a buffer is expected."}},"!url":"http://nodejs.org/api/crypto.html#crypto_class_diffiehellman","!doc":"The class for creating Diffie-Hellman key exchanges."},getDiffieHellman:{"!type":"fn(group_name: string) -> +crypto.DiffieHellman","!url":"http://nodejs.org/api/crypto.html#crypto_crypto_getdiffiehellman_group_name","!doc":"Creates a predefined Diffie-Hellman key exchange object. The supported groups are: 'modp1', 'modp2', 'modp5' (defined in RFC 2412) and 'modp14', 'modp15', 'modp16', 'modp17', 'modp18' (defined in RFC 3526). The returned object mimics the interface of objects created by crypto.createDiffieHellman() above, but will not allow to change the keys (with diffieHellman.setPublicKey() for example). The advantage of using this routine is that the parties don't have to generate nor exchange group modulus beforehand, saving both processor and communication time."},pbkdf2:{"!type":"fn(password: string, salt: string, iterations: number, keylen: number, callback: fn(err: +Error, derivedKey: string))","!url":"http://nodejs.org/api/crypto.html#crypto_crypto_pbkdf2_password_salt_iterations_keylen_callback","!doc":"Asynchronous PBKDF2 applies pseudorandom function HMAC-SHA1 to derive a key of given length from the given password, salt and iterations. The callback gets two arguments (err, derivedKey)."},pbkdf2Sync:{"!type":"fn(password: string, salt: string, iterations: number, keylen: number) -> string","!url":"http://nodejs.org/api/crypto.html#crypto_crypto_pbkdf2sync_password_salt_iterations_keylen","!doc":"Synchronous PBKDF2 function. Returns derivedKey or throws error."},randomBytes:{"!type":"fn(size: number, callback?: fn(err: +Error, buf: +Buffer))","!url":"http://nodejs.org/api/crypto.html#crypto_crypto_randombytes_size_callback","!doc":"Generates cryptographically strong pseudo-random data."},pseudoRandomBytes:{"!type":"fn(size: number, callback?: fn(err: +Error, buf: +Buffer))","!url":"http://nodejs.org/api/crypto.html#crypto_crypto_pseudorandombytes_size_callback","!doc":"Generates non-cryptographically strong pseudo-random data. The data returned will be unique if it is sufficiently long, but is not necessarily unpredictable. For this reason, the output of this function should never be used where unpredictability is important, such as in the generation of encryption keys."},DEFAULT_ENCODING:"string"},util:{format:{"!type":"fn(format: string) -> string","!url":"http://nodejs.org/api/util.html#util_util_format_format","!doc":"Returns a formatted string using the first argument as a printf-like format."},debug:{"!type":"fn(msg: string)","!url":"http://nodejs.org/api/util.html#util_util_debug_string","!doc":"A synchronous output function. Will block the process and output string immediately to stderr."},error:{"!type":"fn(msg: string)","!url":"http://nodejs.org/api/util.html#util_util_error","!doc":"Same as util.debug() except this will output all arguments immediately to stderr."},puts:{"!type":"fn(data: string)","!url":"http://nodejs.org/api/util.html#util_util_puts","!doc":"A synchronous output function. Will block the process and output all arguments to stdout with newlines after each argument."},print:{"!type":"fn(data: string)","!url":"http://nodejs.org/api/util.html#util_util_print","!doc":"A synchronous output function. Will block the process, cast each argument to a string then output to stdout. Does not place newlines after each argument."},log:{"!type":"fn(string: string)","!url":"http://nodejs.org/api/util.html#util_util_log_string","!doc":"Output with timestamp on stdout."},inspect:{"!type":"fn(object: ?, options: ?) -> string","!url":"http://nodejs.org/api/util.html#util_util_inspect_object_options","!doc":"Return a string representation of object, which is useful for debugging."},isArray:{"!type":"fn(object: ?) -> bool","!url":"http://nodejs.org/api/util.html#util_util_isarray_object","!doc":'Returns true if the given "object" is an Array. false otherwise.'},isRegExp:{"!type":"fn(object: ?) -> bool","!url":"http://nodejs.org/api/util.html#util_util_isregexp_object","!doc":'Returns true if the given "object" is a RegExp. false otherwise.'},isDate:{"!type":"fn(object: ?) -> bool","!url":"http://nodejs.org/api/util.html#util_util_isdate_object","!doc":'Returns true if the given "object" is a Date. false otherwise.'},isError:{"!type":"fn(object: ?) -> bool","!url":"http://nodejs.org/api/util.html#util_util_iserror_object","!doc":'Returns true if the given "object" is an Error. false otherwise.'},inherits:{"!type":"fn(constructor: ?, superConstructor: ?)","!url":"http://nodejs.org/api/util.html#util_util_inherits_constructor_superconstructor","!doc":"Inherit the prototype methods from one constructor into another. The prototype of constructor will be set to a new object created from superConstructor."}},assert:{"!type":"fn(value: ?, message?: string)",fail:{"!type":"fn(actual: ?, expected: ?, message: string, operator: string)","!url":"http://nodejs.org/api/assert.html#assert_assert_fail_actual_expected_message_operator","!doc":"Throws an exception that displays the values for actual and expected separated by the provided operator."},ok:{"!type":"fn(value: ?, message?: string)","!url":"http://nodejs.org/api/assert.html#assert_assert","!doc":"This module is used for writing unit tests for your applications, you can access it with require('assert')."},equal:{"!type":"fn(actual: ?, expected: ?, message?: string)","!url":"http://nodejs.org/api/assert.html#assert_assert_equal_actual_expected_message","!doc":"Tests shallow, coercive equality with the equal comparison operator ( == )."},notEqual:{"!type":"fn(actual: ?, expected: ?, message?: string)","!url":"http://nodejs.org/api/assert.html#assert_assert_notequal_actual_expected_message","!doc":"Tests shallow, coercive non-equality with the not equal comparison operator ( != )."},deepEqual:{"!type":"fn(actual: ?, expected: ?, message?: string)","!url":"http://nodejs.org/api/assert.html#assert_assert_deepequal_actual_expected_message","!doc":"Tests for deep equality."},notDeepEqual:{"!type":"fn(acutal: ?, expected: ?, message?: string)","!url":"http://nodejs.org/api/assert.html#assert_assert_notdeepequal_actual_expected_message","!doc":"Tests for any deep inequality."},strictEqual:{"!type":"fn(actual: ?, expected: ?, message?: string)","!url":"http://nodejs.org/api/assert.html#assert_assert_strictequal_actual_expected_message","!doc":"Tests strict equality, as determined by the strict equality operator ( === )"},notStrictEqual:{"!type":"fn(actual: ?, expected: ?, message?: string)","!url":"http://nodejs.org/api/assert.html#assert_assert_notstrictequal_actual_expected_message","!doc":"Tests strict non-equality, as determined by the strict not equal operator ( !== )"},"throws":{"!type":"fn(block: fn(), error?: ?, messsage?: string)","!url":"http://nodejs.org/api/assert.html#assert_assert_throws_block_error_message","!doc":"Expects block to throw an error. error can be constructor, regexp or validation function."},doesNotThrow:{"!type":"fn(block: fn(), error?: ?, messsage?: string)","!url":"http://nodejs.org/api/assert.html#assert_assert_doesnotthrow_block_message","!doc":"Expects block not to throw an error."},ifError:{"!type":"fn(value: ?)","!url":"http://nodejs.org/api/assert.html#assert_assert_iferror_value","!doc":"Tests if value is not a false value, throws if it is a true value. Useful when testing the first argument, error in callbacks."},"!url":"http://nodejs.org/api/assert.html#assert_assert","!doc":"This module is used for writing unit tests for your applications, you can access it with require('assert')."},tty:{isatty:{"!type":"fn(fd: number) -> bool","!url":"http://nodejs.org/api/tty.html#tty_tty_isatty_fd","!doc":"Returns true or false depending on if the fd is associated with a terminal."}},domain:{create:{"!type":"fn() -> +events.EventEmitter","!url":"http://nodejs.org/api/domain.html#domain_domain_create","!doc":"Returns a new Domain object."},Domain:{"!type":"fn()",prototype:{"!proto":"events.EventEmitter.prototype",run:{"!type":"fn(fn: fn())","!url":"http://nodejs.org/api/domain.html#domain_domain_run_fn","!doc":"Run the supplied function in the context of the domain, implicitly binding all event emitters, timers, and lowlevel requests that are created in that context."},members:{"!type":"[+events.EventEmitter]","!url":"http://nodejs.org/api/domain.html#domain_domain_members","!doc":"An array of timers and event emitters that have been explicitly added to the domain."},add:{"!type":"fn(emitter: +events.EventEmitter)","!url":"http://nodejs.org/api/domain.html#domain_domain_add_emitter","!doc":"Explicitly adds an emitter to the domain. If any event handlers called by the emitter throw an error, or if the emitter emits an error event, it will be routed to the domain's error event, just like with implicit binding."},remove:{"!type":"fn(emitter: +events.EventEmitter)","!url":"http://nodejs.org/api/domain.html#domain_domain_remove_emitter","!doc":"The opposite of domain.add(emitter). Removes domain handling from the specified emitter."},bind:{"!type":"fn(callback: fn(err: +Error, data: ?)) -> !0","!url":"http://nodejs.org/api/domain.html#domain_domain_bind_callback","!doc":"The returned function will be a wrapper around the supplied callback function. When the returned function is called, any errors that are thrown will be routed to the domain's error event."},intercept:{"!type":"fn(cb: fn(data: ?)) -> !0","!url":"http://nodejs.org/api/domain.html#domain_domain_intercept_callback","!doc":"This method is almost identical to domain.bind(callback). However, in addition to catching thrown errors, it will also intercept Error objects sent as the first argument to the function."},dispose:{"!type":"fn()","!url":"http://nodejs.org/api/domain.html#domain_domain_dispose","!doc":"The dispose method destroys a domain, and makes a best effort attempt to clean up any and all IO that is associated with the domain. Streams are aborted, ended, closed, and/or destroyed. Timers are cleared. Explicitly bound callbacks are no longer called. Any error events that are raised as a result of this are ignored."}},"!url":"http://nodejs.org/api/domain.html#domain_class_domain","!doc":"The Domain class encapsulates the functionality of routing errors and uncaught exceptions to the active Domain object."}},"os.cpuSpec":{model:"string",speed:"number",times:{user:"number",nice:"number",sys:"number",idle:"number",irq:"number"}},"process.memoryUsage.type":{rss:"number",heapTotal:"?",number:"?",heapUsed:"number"},"net.address":{port:"number",family:"string",address:"string"},"url.type":{href:"string",protocol:"string",auth:"string",hostname:"string",port:"string",host:"string",pathname:"string",search:"string",query:"string",slashes:"bool",hash:"string"},"tls.Server.credentials":{key:"string",cert:"string",ca:"string"},"tls.cipher":{name:"string",version:"string"},"crypto.credentials":{pfx:"string",key:"string",passphrase:"string",cert:"string",ca:"string",crl:"string",ciphers:"string"},buffer:{Buffer:"Buffer",INSPECT_MAX_BYTES:"number",SlowBuffer:"Buffer"},module:{},timers:{setTimeout:{"!type":"fn(callback: fn(), ms: number) -> timers.Timer","!url":"http://nodejs.org/api/globals.html#globals_settimeout_cb_ms","!doc":"Run callback cb after at least ms milliseconds. The actual delay depends on external factors like OS timer granularity and system load."},clearTimeout:{"!type":"fn(id: timers.Timer)","!url":"http://nodejs.org/api/globals.html#globals_cleartimeout_t","!doc":"Stop a timer that was previously created with setTimeout(). The callback will not execute."},setInterval:{"!type":"fn(callback: fn(), ms: number) -> timers.Timer","!url":"http://nodejs.org/api/globals.html#globals_setinterval_cb_ms","!doc":"Run callback cb repeatedly every ms milliseconds. Note that the actual interval may vary, depending on external factors like OS timer granularity and system load. It's never less than ms but it may be longer."},clearInterval:{"!type":"fn(id: timers.Timer)","!url":"http://nodejs.org/api/globals.html#globals_clearinterval_t","!doc":"Stop a timer that was previously created with setInterval(). The callback will not execute."},setImmediate:{"!type":"fn(callback: fn()) -> timers.Timer","!url":"http://nodejs.org/api/timers.html#timers_setimmediate_callback_arg","!doc":"Schedule the 'immediate' execution of callback after I/O events callbacks."},clearImmediate:{"!type":"fn(id: timers.Timer)","!url":"http://nodejs.org/api/timers.html#timers_clearimmediate_immediateid","!doc":"Stops an immediate from triggering."},Timer:{unref:{"!type":"fn()","!url":"http://nodejs.org/api/timers.html#timers_unref","!doc":"Create a timer that is active but if it is the only item left in the event loop won't keep the program running."},ref:{"!type":"fn()","!url":"http://nodejs.org/api/timers.html#timers_unref","!doc":"Explicitly request the timer hold the program open (cancel the effect of 'unref')."}}}},process:{stdout:{"!type":"+stream.Writable","!url":"http://nodejs.org/api/process.html#process_process_stdout","!doc":"A Writable Stream to stdout."},stderr:{"!type":"+stream.Writable","!url":"http://nodejs.org/api/process.html#process_process_stderr","!doc":"A writable stream to stderr."},stdin:{"!type":"+stream.Readable","!url":"http://nodejs.org/api/process.html#process_process_stdin","!doc":"A Readable Stream for stdin. The stdin stream is paused by default, so one must call process.stdin.resume() to read from it."},argv:{"!type":"[string]","!url":"http://nodejs.org/api/process.html#process_process_argv","!doc":"An array containing the command line arguments. The first element will be 'node', the second element will be the name of the JavaScript file. The next elements will be any additional command line arguments."},execPath:{"!type":"string","!url":"http://nodejs.org/api/process.html#process_process_execpath","!doc":"This is the absolute pathname of the executable that started the process."},abort:{"!type":"fn()","!url":"http://nodejs.org/api/process.html#process_process_abort","!doc":"This causes node to emit an abort. This will cause node to exit and generate a core file."},chdir:{"!type":"fn(directory: string)","!url":"http://nodejs.org/api/process.html#process_process_chdir_directory","!doc":"Changes the current working directory of the process or throws an exception if that fails."},cwd:{"!type":"fn()","!url":"http://nodejs.org/api/process.html#process_process_cwd","!doc":"Returns the current working directory of the process."},env:{"!url":"http://nodejs.org/api/process.html#process_process_env","!doc":"An object containing the user environment."},exit:{"!type":"fn(code?: number)","!url":"http://nodejs.org/api/process.html#process_process_exit_code","!doc":"Ends the process with the specified code. If omitted, exit uses the 'success' code 0."},getgid:{"!type":"fn() -> number","!url":"http://nodejs.org/api/process.html#process_process_getgid","!doc":"Gets the group identity of the process. This is the numerical group id, not the group name."},setgid:{"!type":"fn(id: number)","!url":"http://nodejs.org/api/process.html#process_process_setgid_id","!doc":"Sets the group identity of the process. This accepts either a numerical ID or a groupname string. If a groupname is specified, this method blocks while resolving it to a numerical ID."},getuid:{"!type":"fn() -> number","!url":"http://nodejs.org/api/process.html#process_process_getuid","!doc":"Gets the user identity of the process. This is the numerical userid, not the username."},setuid:{"!type":"fn(id: number)","!url":"http://nodejs.org/api/process.html#process_process_setuid_id","!doc":"Sets the user identity of the process. This accepts either a numerical ID or a username string. If a username is specified, this method blocks while resolving it to a numerical ID."},version:{"!type":"string","!url":"http://nodejs.org/api/process.html#process_process_version","!doc":"A compiled-in property that exposes NODE_VERSION."},versions:{http_parser:"string",node:"string",v8:"string",ares:"string",uv:"string",zlib:"string",openssl:"string","!url":"http://nodejs.org/api/process.html#process_process_versions","!doc":"A property exposing version strings of node and its dependencies."},config:{target_defaults:{cflags:"[?]",default_configuration:"string",defines:"[string]",include_dirs:"[string]",libraries:"[string]"},variables:{clang:"number",host_arch:"string",node_install_npm:"bool",node_install_waf:"bool",node_prefix:"string",node_shared_openssl:"bool",node_shared_v8:"bool",node_shared_zlib:"bool",node_use_dtrace:"bool",node_use_etw:"bool",node_use_openssl:"bool",target_arch:"string",v8_no_strict_aliasing:"number",v8_use_snapshot:"bool",visibility:"string"},"!url":"http://nodejs.org/api/process.html#process_process_config","!doc":'An Object containing the JavaScript representation of the configure options that were used to compile the current node executable. This is the same as the "config.gypi" file that was produced when running the ./configure script.'},kill:{"!type":"fn(pid: number, signal?: string)","!url":"http://nodejs.org/api/process.html#process_process_kill_pid_signal","!doc":"Send a signal to a process. pid is the process id and signal is the string describing the signal to send. Signal names are strings like 'SIGINT' or 'SIGUSR1'. If omitted, the signal will be 'SIGTERM'."},pid:{"!type":"number","!url":"http://nodejs.org/api/process.html#process_process_pid","!doc":"The PID of the process."},title:{"!type":"string","!url":"http://nodejs.org/api/process.html#process_process_title","!doc":"Getter/setter to set what is displayed in 'ps'."},arch:{"!type":"string","!url":"http://nodejs.org/api/process.html#process_process_arch","!doc":"What processor architecture you're running on: 'arm', 'ia32', or 'x64'."},platform:{"!type":"string","!url":"http://nodejs.org/api/process.html#process_process_platform","!doc":"What platform you're running on: 'darwin', 'freebsd', 'linux', 'sunos' or 'win32'"},memoryUsage:{"!type":"fn() -> process.memoryUsage.type","!url":"http://nodejs.org/api/process.html#process_process_memoryusage","!doc":"Returns an object describing the memory usage of the Node process measured in bytes."},nextTick:{"!type":"fn(callback: fn())","!url":"http://nodejs.org/api/process.html#process_process_nexttick_callback","!doc":"On the next loop around the event loop call this callback. This is not a simple alias to setTimeout(fn, 0), it's much more efficient. It typically runs before any other I/O events fire, but there are some exceptions."},maxTickDepth:{"!type":"number","!url":"http://nodejs.org/api/process.html#process_process_maxtickdepth","!doc":"The maximum depth of nextTick-calling nextTick-callbacks that will be evaluated before allowing other forms of I/O to occur."},umask:{"!type":"fn(mask?: number) -> number","!url":"http://nodejs.org/api/process.html#process_process_umask_mask","!doc":"Sets or reads the process's file mode creation mask. Child processes inherit the mask from the parent process. Returns the old mask if mask argument is given, otherwise returns the current mask."},uptime:{"!type":"fn() -> number","!url":"http://nodejs.org/api/process.html#process_process_uptime","!doc":"Number of seconds Node has been running."},hrtime:{"!type":"fn() -> [number]","!url":"http://nodejs.org/api/process.html#process_process_hrtime","!doc":"Returns the current high-resolution real time in a [seconds, nanoseconds] tuple Array. It is relative to an arbitrary time in the past. It is not related to the time of day and therefore not subject to clock drift. The primary use is for measuring performance between intervals."},"!url":"http://nodejs.org/api/globals.html#globals_process","!doc":"The process object."},global:{"!type":"<top>","!url":"http://nodejs.org/api/globals.html#globals_global","!doc":"In browsers, the top-level scope is the global scope. That means that in browsers if you're in the global scope var something will define a global variable. In Node this is different. The top-level scope is not the global scope; var something inside a Node module will be local to that module."},console:{log:{"!type":"fn(text: string)","!url":"http://nodejs.org/api/stdio.html#stdio_console_log_data","!doc":"Prints to stdout with newline. This function can take multiple arguments in a printf()-like way."},info:{"!type":"fn(text: string)","!url":"http://nodejs.org/api/stdio.html#stdio_console_info_data","!doc":"Same as console.log."},error:{"!type":"fn(text: string)","!url":"http://nodejs.org/api/stdio.html#stdio_console_error_data","!doc":"Same as console.log but prints to stderr."},warn:{"!type":"fn(text: string)","!url":"http://nodejs.org/api/stdio.html#stdio_console_warn_data","!doc":"Same as console.error."},dir:{"!type":"fn(obj: ?)","!url":"http://nodejs.org/api/stdio.html#stdio_console_dir_obj","!doc":"Uses util.inspect on obj and prints resulting string to stdout."},time:{"!type":"fn(label: string)","!url":"http://nodejs.org/api/stdio.html#stdio_console_time_label","!doc":"Mark a time."},timeEnd:{"!type":"fn(label: string)","!url":"http://nodejs.org/api/stdio.html#stdio_console_timeend_label","!doc":"Finish timer, record output."},trace:{"!type":"fn(label: string)","!url":"http://nodejs.org/api/stdio.html#stdio_console_trace_label","!doc":"Print a stack trace to stderr of the current position."},assert:{"!type":"fn(expression: bool)","!url":"http://nodejs.org/api/stdio.html#stdio_console_assert_expression_message","!doc":"Same as assert.ok() where if the expression evaluates as false throw an AssertionError with message."},"!url":"http://nodejs.org/api/globals.html#globals_console","!doc":"Used to print to stdout and stderr."},__filename:{"!type":"string","!url":"http://nodejs.org/api/globals.html#globals_filename","!doc":"The filename of the code being executed. This is the resolved absolute path of this code file. For a main program this is not necessarily the same filename used in the command line. The value inside a module is the path to that module file."},__dirname:{"!type":"string","!url":"http://nodejs.org/api/globals.html#globals_dirname","!doc":"The name of the directory that the currently executing script resides in."},setTimeout:"timers.setTimeout",clearTimeout:"timers.clearTimeout",setInterval:"timers.setInterval",clearInterval:"timers.clearInterval",module:{"!type":"+Module","!url":"http://nodejs.org/api/globals.html#globals_module","!doc":"A reference to the current module. In particular module.exports is the same as the exports object. module isn't actually a global but rather local to each module."},Buffer:{"!type":"fn(str: string, encoding?: string) -> +Buffer",prototype:{"!proto":"String.prototype",write:"fn(string: string, offset?: number, length?: number, encoding?: string) -> number",toString:"fn(encoding?: string, start?: number, end?: number) -> string",length:"number",copy:"fn(targetBuffer: +Buffer, targetStart?: number, sourceStart?: number, sourceEnd?: number)",slice:"fn(start?: number, end?: number) -> +Buffer",readUInt8:"fn(offset: number, noAssert?: bool) -> number",readUInt16LE:"fn(offset: number, noAssert?: bool) -> number",readUInt16BE:"fn(offset: number, noAssert?: bool) -> number",readUInt32LE:"fn(offset: number, noAssert?: bool) -> number",readUInt32BE:"fn(offset: number, noAssert?: bool) -> number",readInt8:"fn(offset: number, noAssert?: bool) -> number",readInt16LE:"fn(offset: number, noAssert?: bool) -> number",readInt16BE:"fn(offset: number, noAssert?: bool) -> number",readInt32LE:"fn(offset: number, noAssert?: bool) -> number",readInt32BE:"fn(offset: number, noAssert?: bool) -> number",readFloatLE:"fn(offset: number, noAssert?: bool) -> number",readFloatBE:"fn(offset: number, noAssert?: bool) -> number",readDoubleLE:"fn(offset: number, noAssert?: bool) -> number",readDoubleBE:"fn(offset: number, noAssert?: bool) -> number",writeUInt8:"fn(value: number, offset: number, noAssert?: bool)",writeUInt16LE:"fn(value: number, offset: number, noAssert?: bool)",writeUInt16BE:"fn(value: number, offset: number, noAssert?: bool)",writeUInt32LE:"fn(value: number, offset: number, noAssert?: bool)",writeUInt32BE:"fn(value: number, offset: number, noAssert?: bool)",writeInt8:"fn(value: number, offset: number, noAssert?: bool)",writeInt16LE:"fn(value: number, offset: number, noAssert?: bool)",writeInt16BE:"fn(value: number, offset: number, noAssert?: bool)",writeInt32LE:"fn(value: number, offset: number, noAssert?: bool)",writeInt32BE:"fn(value: number, offset: number, noAssert?: bool)",writeFloatLE:"fn(value: number, offset: number, noAssert?: bool)",writeFloatBE:"fn(value: number, offset: number, noAssert?: bool)",writeDoubleLE:"fn(value: number, offset: number, noAssert?: bool)",writeDoubleBE:"fn(value: number, offset: number, noAssert?: bool)",fill:"fn(value: ?, offset?: number, end?: number)"},isBuffer:"fn(obj: ?) -> bool",byteLength:"fn(string: string, encoding?: string) -> number",concat:"fn(list: [+Buffer], totalLength?: number) -> +Buffer","!url":"http://nodejs.org/api/globals.html#globals_class_buffer","!doc":"Used to handle binary data."}}
}),function(e){return"object"==typeof exports&&"object"==typeof module?e(require("../lib/infer"),require("../lib/tern")):"function"==typeof define&&define.amd?define("tern/plugin/requirejs",["../lib/infer","../lib/tern","javascript/ternPlugins/resolver"],e):void e(tern,tern)}(function(e,t,n){"use strict";function r(t,n){n.push(t?t:e.ANull)}function o(t){return t.require||(t.require=new e.Fn("require",e.ANull,[e.cx().str],["module"],new e.AVal),t.require.computeRet=function(n,r,o){if(o.length&&"Literal"==o[0].type&&"string"==typeof o[0].value){var s=i(o[0].value,t);if(s)return s}return e.ANull}),t.require}function s(t,n){var r=new e.Obj(e.cx().definitions.requirejs.module,"module"),o=r.defProp("exports"),s=c(p(t.currentFile),t);return s&&o.propagate(s),n.propagate(o,m),r}function a(t){var n=new e.Obj(!0,"exports"),r=c(p(t.currentFile),t);return r&&r.addType(n,m),n}function i(t,n){if(n.options.override&&Object.prototype.hasOwnProperty.call(n.options.override,t)){var r=n.options.override[t];if("string"==typeof r&&"="===r.charAt(0))return e.def.parsePath(r.slice(1));if("object"==typeof r){var o=l(t,n);if(o)return o;var s=n.interfaces[p(t)]=new e.Obj(null,p(t));return e.def.load(r,s),s}t=r}return o=c(t,n),o&&n.server.addFile(o.origin,o.contents,n.currentFile),o}function l(e,t){var r=n.getResolved(e);return r&&r.file?t.interfaces[p(r.file)]:null}function c(t,r){var o=l(t,r);if(!o){var s=n.getResolved(t);s&&s.file&&(o=r.interfaces[p(s.file)]=new e.AVal,o.origin=s.file,o.contents=s.contents)}return o}function p(e){return e.replace(/\.js$/,"")}function u(e){switch(e.type){case"ArrayExpression":return e.elements.map(u);case"Literal":return e.value;case"ObjectExpression":var t={};return e.properties.forEach(function(e){var n=e.key.name||e.key.value;t[n]=u(e.value)}),t}}function d(t){var n=e.cx().parent._requireJS.interfaces,r=t.roots["!requirejs"]=new e.Obj(null);for(var o in n){var s=r.defProp(o.replace(/\./g,"`"));n[o].propagate(s),s.origin=n[o].origin}}function h(t){var n=e.cx(),r=n.definitions[t["!name"]]["!requirejs"],t=n.parent._requireJS;if(r)for(var o in r.props)r.props[o].propagate(i(o,t))}function f(e,t,n,r){if(!n||"Literal"!=n.node.type||"string"!=typeof n.node.value||!n.node.required)return r;r=Object.create(r);var o=n.node.required;return r.origin=o.origin,r.originNode=o.originNode,r}var m=50;e.registerFunction("requireJS",function(t,n,l){function c(e){return"require"==e?o(d):"exports"==e?g||(g=a(d)):"module"==e?b||(b=s(d,g||(g=a(d)))):i(e,d)}var u=e.cx().parent,d=u&&u._requireJS;if(!d||!n.length)return e.ANull;var h=d.currentFile,f=d.interfaces[p(h)]=new e.AVal;f.origin=h;var m,g,b,y=[];if(l&&n.length>1){var v=l[2==n.length?0:1];if("Literal"==v.type&&"string"==typeof v.value)r(c(v.value),y);else if("ArrayExpression"==v.type)for(var w=0;w<v.elements.length;++w){var S=v.elements[w];"Literal"==S.type&&"string"==typeof S.value&&r(c(S.value),y)}}else l&&1==n.length&&"FunctionExpression"==l[0].type&&l[0].params.length&&(r(c("require",d),y),r(c("exports",d),y),r(c("module",d),y),m=n[0]);return m||(m=n[Math.min(n.length-1,2)],m.isEmpty()||m.getFunctionType()||(m=null)),m?(m.propagate(new e.IsCallee(e.ANull,y,null,f)),f.originNode=m.originNode):n.length&&n[0].propagate(f),e.ANull}),e.registerFunction("requireJSConfig",function(t,n,r){var o=e.cx().parent,s=o&&o._requireJS;if(s&&r&&r.length&&"ObjectExpression"==r[0].type){var a=u(r[0]);for(var i in a)if(a.hasOwnProperty(i)){var l=a[i],c=s.options[i];if(c){if("paths"==i)for(var p in l)l.hasOwnProperty(p)&&!s.options.paths[p]&&(s.options.paths[p]=l[p])}else s.options[i]=l}}return e.ANull}),t.registerPlugin("requirejs",function(t,r){return t._requireJS={interfaces:Object.create(null),options:r||{},currentFile:null,server:t},t.on("beforeLoad",function(e){this._requireJS.currentFile=e.name}),t.on("reset",function(){this._requireJS.interfaces=Object.create(null),this._requireJS.require=null}),{defs:g,passes:{preCondenseReach:d,postLoadDef:h,typeAt:f,postParse:function(r){n.doPostParse(t,r,e.cx().definitions)},preInfer:function(){n.doPreInfer(t)}}}});var g={"!name":"requirejs","!define":{module:{id:"string",uri:"string",config:"fn() -> ?"},config:{"!url":"http://requirejs.org/docs/api.html#config",baseUrl:{"!type":"string","!doc":"the root path to use for all module lookups","!url":"http://requirejs.org/docs/api.html#config-baseUrl"},paths:{"!type":"?","!doc":"path mappings for module names not found directly under baseUrl. The path settings are assumed to be relative to baseUrl, unless the paths setting starts with a '/' or has a URL protocol in it ('like http:').","!url":"http://requirejs.org/docs/api.html#config-paths"},shim:{"!type":"?","!doc":"Configure the dependencies, exports, and custom initialization for older, traditional 'browser globals' scripts that do not use define() to declare the dependencies and set a module value.","!url":"http://requirejs.org/docs/api.html#config-shim"},map:{"!type":"?","!doc":"For the given module prefix, instead of loading the module with the given ID, substitute a different module ID.","!url":"http://requirejs.org/docs/api.html#config-map"},config:{"!type":"?","!doc":"There is a common need to pass configuration info to a module. That configuration info is usually known as part of the application, and there needs to be a way to pass that down to a module. In RequireJS, that is done with the config option for requirejs.config(). Modules can then read that info by asking for the special dependency 'module' and calling module.config().","!url":"http://requirejs.org/docs/api.html#config-moduleconfig"},packages:{"!type":"?","!doc":"configures loading modules from CommonJS packages. See the packages topic for more information.","!url":"http://requirejs.org/docs/api.html#config-packages"},nodeIdCompat:{"!type":"?","!doc":"Node treats module ID example.js and example the same. By default these are two different IDs in RequireJS. If you end up using modules installed from npm, then you may need to set this config value to true to avoid resolution issues.","!url":"http://requirejs.org/docs/api.html#config-nodeIdCompat"},waitSeconds:{"!type":"number","!doc":"The number of seconds to wait before giving up on loading a script. Setting it to 0 disables the timeout. The default is 7 seconds.","!url":"http://requirejs.org/docs/api.html#config-waitSeconds"},context:{"!type":"number","!doc":"A name to give to a loading context. This allows require.js to load multiple versions of modules in a page, as long as each top-level require call specifies a unique context string. To use it correctly, see the Multiversion Support section.","!url":"http://requirejs.org/docs/api.html#config-context"},deps:{"!type":"?","!doc":"An array of dependencies to load. Useful when require is defined as a config object before require.js is loaded, and you want to specify dependencies to load as soon as require() is defined. Using deps is just like doing a require([]) call, but done as soon as the loader has processed the configuration. It does not block any other require() calls from starting their requests for modules, it is just a way to specify some modules to load asynchronously as part of a config block.","!url":"http://requirejs.org/docs/api.html#config-deps"},callback:{"!type":"fn()","!doc":"A function to execute after deps have been loaded. Useful when require is defined as a config object before require.js is loaded, and you want to specify a function to require after the configuration's deps array has been loaded.","!url":"http://requirejs.org/docs/api.html#config-callback"},enforceDefine:{"!type":"bool","!doc":"If set to true, an error will be thrown if a script loads that does not call define() or have a shim exports string value that can be checked. See Catching load failures in IE for more information.","!url":"http://requirejs.org/docs/api.html#config-enforceDefine"},xhtml:{"!type":"bool","!doc":"If set to true, document.createElementNS() will be used to create script elements.","!url":"http://requirejs.org/docs/api.html#config-xhtml"},urlArgs:{"!type":"string","!doc":"Extra query string arguments appended to URLs that RequireJS uses to fetch resources. Most useful to cache bust when the browser or server is not configured correctly.","!url":"http://requirejs.org/docs/api.html#config-urlArgs"},scriptType:{"!type":"string","!doc":"Specify the value for the type='' attribute used for script tags inserted into the document by RequireJS. Default is 'text/javascript'. To use Firefox's JavaScript 1.8 features, use 'text/javascript;version=1.8'.","!url":"http://requirejs.org/docs/api.html#config-scriptType"},skipDataMain:{"!type":"bool","!doc":"Introduced in RequireJS 2.1.9: If set to true, skips the data-main attribute scanning done to start module loading. Useful if RequireJS is embedded in a utility library that may interact with other RequireJS library on the page, and the embedded version should not do data-main loading.","!url":"http://requirejs.org/docs/api.html#config-skipDataMain"}},RequireJSError:{prototype:{"!proto":"Error.prototype",requireType:{"!type":"string","!doc":"A string value with a general classification, like 'timeout', 'nodefine', 'scripterror'.","!url":"http://requirejs.org/docs/api.html#errors"},requireModules:{"!type":"[string]","!doc":"An array of module names/URLs that timed out.","!url":"http://requirejs.org/docs/api.html#errors"}}}},requirejs:{"!type":"fn(deps: [string], callback: fn(), errback?: fn(err: +RequireJSError)) -> !custom:requireJS",onError:{"!type":"fn(err: +RequireJSError)","!doc":"To detect errors that are not caught by local errbacks, you can override requirejs.onError()","!url":"http://requirejs.org/docs/api.html#requirejsonerror"},load:{"!type":"fn(context: ?, moduleName: string, url: string)"},config:"fn(config: config) -> !custom:requireJSConfig",version:"string",isBrowser:"bool"},require:"requirejs",define:{"!type":"fn(deps: [string], callback: fn()) -> !custom:requireJS",amd:{jQuery:"bool"}}}}),define("javascript/ternPlugins/amqp",["tern/lib/infer","tern/lib/tern","./resolver"],function(e,t,n){function r(t,r,s,a){var i=e.findExpressionAround(t.ast,r,s,t.scope),l=n.getTemplatesForNode(o,i,r);l&&l.forEach(function(e){a(e.name,null,0,function(t){t.prefix=e.prefix,t.description=e.description,t.template=e.template,t.segments=e.segments,t.origin="amqp",t.type="template"})})}var o=[{prefix:"amqp",name:"amqp",nodes:{top:!0,member:!1,prop:!1},description:" - Node.js require statement for AMQP framework",template:"var amqp = require('amqp');\n"},{prefix:"amqp",name:"amqp connection",nodes:{top:!0,member:!1,prop:!1},description:" - create a new AMQP connection ",template:"var amqp = require('amqp');\nvar ${connection} = amqp.createConnection({\n	host: ${host},\n	port: ${port},\n	login: ${login},\n	password: ${password}\n});\n"},{prefix:"amqp",name:"amqp on",nodes:{top:!0,member:!1,prop:!1},description:" - create a new AMQP connection on statement",template:"${connection}.on(${event}, function() {\n	${cursor}\n});\n"},{prefix:"amqp",name:"amqp queue",nodes:{top:!0,member:!1,prop:!1},description:" - create a new AMQP connection queue statement",template:"${connection}.queue(${id}, function(queue) {\n	queue.bind('#'); //catch all messages\n	queue.subscribe(function (message, headers, deliveryInfo) {\n		// Receive messages\n	});\n	${cursor}\n});\n"},{prefix:"amqp",name:"amqp exchange",nodes:{top:!0,member:!1,prop:!1},description:" - create a new AMQP connection exchange",template:"var exchange = ${connection}.exchange(${id}, {type: 'topic'}, function(exchange) {\n	${cursor}\n});\n"}];t.registerPlugin("amqp",function(){return{defs:s,passes:{variableCompletion:r}}});var s={"!name":"amqp","!define":{"!node":{amqp:{Connection:"Connection",createConnection:"fn(options: Object, implOptions: Object, readyCallback: fn()) -> +Connection"}},"Exchange.!3":{type:"string"},"createExchangeErrorHandlerFor.!ret":"fn(err: ?)","Connection.prototype._bodyToBuffer.!ret":"[Connection.prototype._bodyToBuffer.!ret.<i>]","Connection.prototype._bodyToBuffer.!ret.<i>":{contentType:"string"},"Connection.prototype._parseURLOptions.!ret":{ssl:{enabled:"bool"}},"Connection.prototype._sendHeader.!2":{reserved1:"number",routingKey:"string",noWait:"bool"},"serializer.serializeFields.!2":{reserved1:"number",routingKey:"string",noWait:"bool"},"Queue.prototype.subscribeRaw.!0":{state:"string"},"Message.!1":{parseError:"+Error",rawData:"string"},"parseTable.!ret":{"!doc":"XXX check if bitIndex greater than 7?"},"parseFields.!1":"[?]","parseFields.!ret":{}},methods:{"<i>":{"!doc":"debug(name);"},"!doc":"methods keyed on their name"},Channel:{prototype:{closeOK:"fn()",reconnect:"fn()",_taskPush:"fn(reply: ?, cb: ?)",_tasksFlush:"fn()",_handleTaskReply:"fn(channel: ?, method: ?, args: ?) -> bool",_onChannelMethod:"fn(channel: ?, method: ?, args: ?)",close:"fn(reason: ?)"},"!type":"fn(connection: +Connection, channel: number)","!doc":"This class is not exposed to the user."},Exchange:{prototype:{_onMethod:"fn(channel: ?, method: ?, args: ?) -> bool",publish:{"!type":"fn(routingKey: ?, data: ?, options: ?, callback: ?)","!doc":"exchange.publish('routing.key', 'body'); the third argument can specify additional options - mandatory (boolean, default false) - immediate (boolean, default false) - contentType (default 'application/octet-stream') - contentEncoding - headers - deliveryMode - priority (0-9) - correlationId - replyTo - expiration - messageId - timestamp - userId - appId - clusterId the callback is optional and is only used when confirm is turned on for the exchange"},_awaitConfirm:{"!type":"fn(task: ?, callback: ?)","!doc":"registers tasks for confirms"},cleanup:{"!type":"fn()","!doc":"do any necessary cleanups eg."},destroy:"fn(ifUnused: ?)",unbind:"fn()",bind:"fn()",bind_headers:"fn()"},"!type":"fn(connection: +Connection, channel: number, name: ?, options: Exchange.!3, openCallback: ?)",binds:"number",exchangeBinds:"number",sourceExchanges:{"<i>":"+Exchange"},_sequence:"number",_unAcked:{},_addedExchangeErrorHandler:"bool",state:"string",channel:"number",connection:"+Connection",_tasks:"[?]"},createExchangeErrorHandlerFor:{"!type":"fn(exchange: +Exchange) -> fn(err: ?)","!doc":"creates an error handler scoped to the given `exchange`"},Connection:{prototype:{setOptions:"fn(options: ?)",setImplOptions:"fn(options: ?)",connect:"fn()",reconnect:"fn()",disconnect:"fn()",addAllListeners:"fn()",heartbeat:"fn()",exchange:{"!type":"fn(name: ?, options: Exchange.!3, openCallback: ?) -> +Exchange","!doc":"connection.exchange('my-exchange', { type: 'topic' }); Options - type 'fanout', 'direct', or 'topic' (default) - passive (boolean) - durable (boolean) - autoDelete (boolean, default true)"},exchangeClosed:{"!type":"fn(name: ?)","!doc":"remove an exchange when it's closed (called from Exchange)"},queue:{"!type":"fn(name: ?) -> +Queue","!doc":"Options - passive (boolean) - durable (boolean) - exclusive (boolean) - autoDelete (boolean, default true)"},queueClosed:{"!type":"fn(name: ?)","!doc":"remove a queue when it's closed (called from Queue)"},publish:{"!type":"fn(routingKey: ?, body: ?, options: ?, callback: ?)","!doc":"Publishes a message to the default exchange."},_bodyToBuffer:"fn(body: ?) -> [?]",_inboundHeartbeatTimerReset:"fn()",_outboundHeartbeatTimerReset:"fn()",_saslResponse:"fn() -> ?|string",_onMethod:"fn(channel: number, method: methods.<i>, args: parseFields.!ret)",_parseURLOptions:{"!type":"fn(connectionString: ?) -> Connection.prototype._parseURLOptions.!ret","!doc":"Generate connection options from URI string formatted with amqp scheme."},_chooseHost:{"!type":"fn() -> !this.options.host","!doc":"If you pass a array of hosts, lets choose a random host or the preferred host number, or then next one."},_createSocket:"fn()",end:"fn()",_getSSLOptions:"fn() -> !this.sslConnectionOptions",_startHandshake:{"!type":"fn()","!doc":"Time to start the AMQP 7-way connection initialization handshake! 1."},_sendBody:{"!type":"fn(channel: number, body: ?, properties: ?)","!doc":"Parse helpers "},_sendHeader:{"!type":"fn(channel: number, size: ?, properties: ?)","!doc":"connection: the connection channel: the channel to send this on size: size in bytes of the following message properties: an object containing any of the following: - contentType (default 'application/octet-stream') - contentEncoding - headers - deliveryMode - priority (0-9) - correlationId - replyTo - expiration - messageId - timestamp - userId - appId - clusterId"},_sendMethod:"fn(channel: number, method: ?, args: ?)",generateChannelId:{"!type":"fn() -> !this.channelCounter","!doc":"tries to find the next available id slot for a channel"}},"!type":"fn(connectionArgs: ?, options: ?, readyCallback: ?)",connectionAttemptScheduled:{"!type":"bool","!doc":"Set to false, so that if we fail in the reconnect attempt, we can schedule another one."},_defaultExchange:"+Exchange",channelCounter:"number",_blocked:"bool",channels:{"!doc":"In the case where this is a reconnection, do not trample on the existing channels.","<i>":"+Queue"},exchanges:{"<i>":"+Exchange"},parser:{"!type":"+AMQPParser","!doc":"Reset parser state"},readyEmitted:{"!type":"bool","!doc":"Set 'ready' flag for auth failure detection."},hosti:{"!type":"number","!doc":"If this is already set, it looks like we want to choose another one."},"<i>":"fn()",sslConnectionOptions:{}},serializer:{serializeFloat:"fn(b: ?, size: number, value: ?, bigEndian: ?)",serializeInt:"fn(b: ?, size: number, int: number)",serializeShortString:"fn(b: ?, string: ?)",serializeLongString:"fn(b: ?, string: ?)",serializeDate:"fn(b: ?, date: ?)",serializeBuffer:"fn(b: ?, buffer: ?)",serializeBase64:"fn(b: ?, buffer: ?)",isBigInt:"fn(value: ?) -> bool",getCode:"fn(dec: ?) -> string",isFloat:"fn(value: ?) -> bool",serializeValue:"fn(b: ?, value: ?)",serializeTable:"fn(b: ?, object: ?)",serializeArray:"fn(b: ?, arr: ?)",serializeFields:"fn(buffer: ?, fields: ?, args: ?, strict: bool)"},methodTable:{"<i>":{"<i>":"methods.<i>"},"!doc":"a look up table for methods recieved indexed on class id, method id"},classes:{"!doc":"classes keyed on their index"},Queue:{prototype:{subscribeRaw:"fn(options: Queue.consumerTagListeners.<i>, messageListener: Queue.consumerTagListeners.<i>)",unsubscribe:"fn(consumerTag: ?)",subscribe:"fn(options: ?, messageListener: ?)",shift:{"!type":"fn(reject: ?, requeue: ?)","!doc":"Acknowledges the last message"},bind:"fn(exchange: string, routingKey: string, callback: string)",unbind:"fn(exchange: string, routingKey: string)",bind_headers:"fn()",unbind_headers:"fn()",destroy:"fn(options: ?)",purge:"fn()",_onMethod:"fn(channel: ?, method: ?, args: ?)",_onContentHeader:"fn(channel: number, classInfo: ?, weight: number, properties: parseFields.!ret, size: number)",_onContent:"fn(channel: number, data: ?)",flow:"fn(active: ?)",subscribeJSON:"Queue.prototype.subscribe"},"!type":"fn(connection: +Connection, channel: number, name: ?, options: ?, callback: ?)",name:"string",_bindings:{"<i>":{"<i>":"number"}},consumerTagListeners:{"<i>":{state:"string"}},consumerTagOptions:{"<i>":"Queue.consumerTagListeners.<i>"},options:{autoDelete:"bool",closeChannelOnUnsubscribe:"bool"},state:"string",_bindCallback:"string",_sequence:"number",confirm:"bool",currentMessage:"+Message"},AMQPParser:{prototype:{throwError:{"!type":"fn(error: string)","!doc":"If there's an error in the parser, call the onError handler or throw"},execute:{"!type":"fn(data: ?)","!doc":"Everytime data is recieved on the socket, pass it to this function for parsing."},_parseMethodFrame:"fn(channel: number, buffer: ?)",_parseHeaderFrame:"fn(channel: number, buffer: ?)"},"!type":"fn(version: string, type: string)","!doc":"An interruptible AMQP parser.",isClient:"bool",state:"string",parse:"fn(data: ?) -> AMQPParser.parse",onMethod:"fn(channel: number, method: methods.<i>, args: parseFields.!ret)",onContent:"fn(channel: number, data: ?)",onContentHeader:"fn(channel: number, classInfo: ?, weight: number, properties: parseFields.!ret, size: number)",onHeartBeat:"fn()",onError:"fn(e: string)"},maxFrameBuffer:{"!type":"number","!doc":"parser"},channelMax:{"!type":"number","!doc":"copying qpid)"},defaultPorts:{amqp:"number",amqps:"number"},defaultOptions:{host:"string",port:"number",login:"string",password:"string",authMechanism:"string",vhost:"string",connectionTimeout:"number",ssl:{enabled:"bool"}},defaultSslOptions:{port:"number",ssl:{rejectUnauthorized:"bool"}},defaultImplOptions:{defaultExchangeName:"string",reconnect:"bool",reconnectBackoffStrategy:"string",reconnectExponentialLimit:"number",reconnectBackoffTime:"number"},defaultClientProperties:{platform:"string",product:"string"},Message:{prototype:{acknowledge:{"!type":"fn(all: ?)","!doc":"Acknowledge receipt of message."},reject:{"!type":"fn(requeue: ?)","!doc":"Reject an incoming message."}},"!type":"fn(queue: +Queue, args: ?)","!doc":"Properties: - routingKey - size - deliveryTag - contentType (default 'application/octet-stream') - contentEncoding - headers - deliveryMode - priority (0-9) - correlationId - replyTo - experation - messageId - timestamp - userId - appId - clusterId",queue:"+Queue",read:"number",size:"number"},parseShortString:"fn(buffer: ?)",parseLongString:"fn(buffer: ?)",parseSignedInteger:"fn(buffer: ?) -> !0.<i>",parseValue:"fn(buffer: ?) -> !0.<i>",parseTable:"fn(buffer: ?) -> parseTable.!ret",parseFields:"fn(buffer: ?, fields: [?]) -> parseFields.!ret",Error:{name:"string"},createConnection:"fn(options: Object, implOptions: Object, readyCallback: fn()) -> +Connection"}}),function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define("estraverse/estraverse",[],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.estraverse=e()}}(function(){return function e(t,n,r){function o(a,i){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!i&&l)return l(a,!0);if(s)return s(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var p=n[a]={exports:{}};t[a][0].call(p.exports,function(e){var n=t[a][1][e];return o(n?n:e)},p,p.exports,e,t,n,r)}return n[a].exports}for(var s="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){!function r(t){"use strict";function n(){}function o(e){var t,n,r={};for(t in e)e.hasOwnProperty(t)&&(n=e[t],r[t]="object"==typeof n&&null!==n?o(n):n);return r}function s(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function a(e,t){var n,r,o,s;for(r=e.length,o=0;r;)n=r>>>1,s=o+n,t(e[s])?r=n:(o=s+1,r-=n+1);return o}function i(e,t){var n,r,o,s;for(r=e.length,o=0;r;)n=r>>>1,s=o+n,t(e[s])?(o=s+1,r-=n+1):r=n;return o}function l(e,t){var n,r,o,s=x(t);for(r=0,o=s.length;o>r;r+=1)n=s[r],e[n]=t[n];return e}function c(e,t){this.parent=e,this.key=t}function p(e,t,n,r){this.node=e,this.path=t,this.wrap=n,this.ref=r}function u(){}function d(e){return null==e?!1:"object"==typeof e&&"string"==typeof e.type}function h(e,t){return(e===y.ObjectExpression||e===y.ObjectPattern)&&"properties"===t}function f(e,t){var n=new u;return n.traverse(e,t)}function m(e,t){var n=new u;return n.replace(e,t)}function g(e,t){var n;return n=a(t,function(t){return t.range[0]>e.range[0]}),e.extendedRange=[e.range[0],e.range[1]],n!==t.length&&(e.extendedRange[1]=t[n].range[0]),n-=1,n>=0&&(e.extendedRange[0]=t[n].range[1]),e}function b(e,t,n){var r,s,a,i,l=[];if(!e.range)throw new Error("attachComments needs range information");if(!n.length){if(t.length){for(a=0,s=t.length;s>a;a+=1)r=o(t[a]),r.extendedRange=[0,e.range[0]],l.push(r);e.leadingComments=l}return e}for(a=0,s=t.length;s>a;a+=1)l.push(g(o(t[a]),n));return i=0,f(e,{enter:function(e){for(var t;i<l.length&&(t=l[i],!(t.extendedRange[1]>e.range[0]));)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),l.splice(i,1)):i+=1;return i===l.length?w.Break:l[i].extendedRange[0]>e.range[1]?w.Skip:void 0}}),i=0,f(e,{leave:function(e){for(var t;i<l.length&&(t=l[i],!(e.range[1]<t.extendedRange[0]));)e.range[1]===t.extendedRange[0]?(e.trailingComments||(e.trailingComments=[]),e.trailingComments.push(t),l.splice(i,1)):i+=1;return i===l.length?w.Break:l[i].extendedRange[0]>e.range[1]?w.Skip:void 0}}),e}var y,v,w,S,_,x,j,E,T;return v=Array.isArray,v||(v=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),n(s),n(i),_=Object.create||function(){function e(){}return function(t){return e.prototype=t,new e}}(),x=Object.keys||function(e){var t,n=[];for(t in e)n.push(t);return n},y={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},S={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","defaults","body"],FunctionExpression:["id","params","defaults","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],Program:["body"],Property:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},j={},E={},T={},w={Break:j,Skip:E,Remove:T},c.prototype.replace=function(e){this.parent[this.key]=e},c.prototype.remove=function(){return v(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},u.prototype.path=function(){function e(e,t){if(v(t))for(r=0,o=t.length;o>r;++r)e.push(t[r]);else e.push(t)}var t,n,r,o,s,a;if(!this.__current.path)return null;for(s=[],t=2,n=this.__leavelist.length;n>t;++t)a=this.__leavelist[t],e(s,a.path);return e(s,this.__current.path),s},u.prototype.type=function(){var e=this.current();return e.type||this.__current.wrap},u.prototype.parents=function(){var e,t,n;for(n=[],e=1,t=this.__leavelist.length;t>e;++e)n.push(this.__leavelist[e].node);return n},u.prototype.current=function(){return this.__current.node},u.prototype.__execute=function(e,t){var n,r;return r=void 0,n=this.__current,this.__current=t,this.__state=null,e&&(r=e.call(this,t.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=n,r},u.prototype.notify=function(e){this.__state=e},u.prototype.skip=function(){this.notify(E)},u.prototype["break"]=function(){this.notify(j)},u.prototype.remove=function(){this.notify(T)},u.prototype.__initialize=function(e,t){this.visitor=t,this.root=e,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback="iteration"===t.fallback,this.__keys=S,t.keys&&(this.__keys=l(_(this.__keys),t.keys))},u.prototype.traverse=function(e,t){var n,r,o,s,a,i,l,c,u,f,m,g;for(this.__initialize(e,t),g={},n=this.__worklist,r=this.__leavelist,n.push(new p(e,null,null,null)),r.push(new p(null,null,null,null));n.length;)if(o=n.pop(),o!==g){if(o.node){if(i=this.__execute(t.enter,o),this.__state===j||i===j)return;if(n.push(g),r.push(o),this.__state===E||i===E)continue;if(s=o.node,a=s.type||o.wrap,f=this.__keys[a],!f){if(!this.__fallback)throw new Error("Unknown node type "+a+".");f=x(s)}for(c=f.length;(c-=1)>=0;)if(l=f[c],m=s[l])if(v(m)){for(u=m.length;(u-=1)>=0;)if(m[u]){if(h(a,f[c]))o=new p(m[u],[l,u],"Property",null);else{if(!d(m[u]))continue;o=new p(m[u],[l,u],null,null)}n.push(o)}}else d(m)&&n.push(new p(m,l,null,null))}}else if(o=r.pop(),i=this.__execute(t.leave,o),this.__state===j||i===j)return},u.prototype.replace=function(e,t){function n(e){var t,n,o,s;if(e.ref.remove())for(n=e.ref.key,s=e.ref.parent,t=r.length;t--;)if(o=r[t],o.ref&&o.ref.parent===s){if(o.ref.key<n)break;--o.ref.key}}var r,o,s,a,i,l,u,f,m,g,b,y,w;for(this.__initialize(e,t),b={},r=this.__worklist,o=this.__leavelist,y={root:e},l=new p(e,null,null,new c(y,"root")),r.push(l),o.push(l);r.length;)if(l=r.pop(),l!==b){if(i=this.__execute(t.enter,l),void 0!==i&&i!==j&&i!==E&&i!==T&&(l.ref.replace(i),l.node=i),(this.__state===T||i===T)&&(n(l),l.node=null),this.__state===j||i===j)return y.root;
if(s=l.node,s&&(r.push(b),o.push(l),this.__state!==E&&i!==E)){if(a=s.type||l.wrap,m=this.__keys[a],!m){if(!this.__fallback)throw new Error("Unknown node type "+a+".");m=x(s)}for(u=m.length;(u-=1)>=0;)if(w=m[u],g=s[w])if(v(g)){for(f=g.length;(f-=1)>=0;)if(g[f]){if(h(a,m[u]))l=new p(g[f],[w,f],"Property",new c(g,f));else{if(!d(g[f]))continue;l=new p(g[f],[w,f],null,new c(g,f))}r.push(l)}}else d(g)&&r.push(new p(g,w,null,new c(s,w)))}}else if(l=o.pop(),i=this.__execute(t.leave,l),void 0!==i&&i!==j&&i!==E&&i!==T&&l.ref.replace(i),(this.__state===T||i===T)&&n(l),this.__state===j||i===j)return y.root;return y.root},t.version=e("./package.json").version,t.Syntax=y,t.traverse=f,t.replace=m,t.attachComments=b,t.VisitorKeys=S,t.VisitorOption=w,t.Controller=u,t.cloneEnvironment=function(){return r({})},t}(n)},{"./package.json":2}],2:[function(e,t){t.exports={name:"estraverse",description:"ECMAScript JS AST traversal functions",homepage:"https://github.com/estools/estraverse",main:"estraverse.js",version:"4.1.1",engines:{node:">=0.10.0"},maintainers:[{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",web:"http://github.com/Constellation"}],repository:{type:"git",url:"http://github.com/estools/estraverse.git"},devDependencies:{chai:"^2.1.1","coffee-script":"^1.8.0",espree:"^1.11.0",gulp:"^3.8.10","gulp-bump":"^0.2.2","gulp-filter":"^2.0.0","gulp-git":"^1.0.1","gulp-tag-version":"^1.2.1",jshint:"^2.5.6",mocha:"^2.1.0"},license:"BSD-2-Clause",scripts:{test:"npm run-script lint && npm run-script unit-test",lint:"jshint estraverse.js","unit-test":"mocha --compilers coffee:coffee-script/register"}}},{}]},{},[1])(1)}),define("eslint/conf/globals",[],function(){return{builtin:{Array:!1,ArrayBuffer:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,String:!1,Symbol:!1,SyntaxError:!1,System:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},browser:{addEventListener:!1,alert:!1,AnalyserNode:!1,AnimationEvent:!1,applicationCache:!1,ApplicationCache:!1,ApplicationCacheErrorEvent:!1,atob:!1,Attr:!1,Audio:!1,AudioBuffer:!1,AudioBufferSourceNode:!1,AudioContext:!1,AudioDestinationNode:!1,AudioListener:!1,AudioNode:!1,AudioParam:!1,AudioProcessingEvent:!1,AutocompleteErrorEvent:!1,BarProp:!1,BatteryManager:!1,BeforeUnloadEvent:!1,BiquadFilterNode:!1,Blob:!1,blur:!1,btoa:!1,Cache:!1,caches:!1,CacheStorage:!1,cancelAnimationFrame:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,CDATASection:!1,ChannelMergerNode:!1,ChannelSplitterNode:!1,CharacterData:!1,clearInterval:!1,clearTimeout:!1,clientInformation:!1,ClientRect:!1,ClientRectList:!1,ClipboardEvent:!1,close:!1,closed:!1,CloseEvent:!1,Comment:!1,CompositionEvent:!1,confirm:!1,console:!1,ConvolverNode:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CSS:!1,CSSFontFaceRule:!1,CSSImportRule:!1,CSSKeyframeRule:!1,CSSKeyframesRule:!1,CSSMediaRule:!1,CSSPageRule:!1,CSSRule:!1,CSSRuleList:!1,CSSStyleDeclaration:!1,CSSStyleRule:!1,CSSStyleSheet:!1,CSSSupportsRule:!1,CSSUnknownRule:!1,CSSViewportRule:!1,CustomEvent:!1,DataTransfer:!1,DataTransferItem:!1,DataTransferItemList:!1,Debug:!1,defaultStatus:!1,defaultstatus:!1,DelayNode:!1,DeviceMotionEvent:!1,DeviceOrientationEvent:!1,devicePixelRatio:!1,dispatchEvent:!1,document:!1,Document:!1,DocumentFragment:!1,DocumentType:!1,DOMError:!1,DOMException:!1,DOMImplementation:!1,DOMParser:!1,DOMSettableTokenList:!1,DOMStringList:!1,DOMStringMap:!1,DOMTokenList:!1,DragEvent:!1,DynamicsCompressorNode:!1,Element:!1,ElementTimeControl:!1,ErrorEvent:!1,event:!1,Event:!1,EventSource:!1,EventTarget:!1,external:!1,fetch:!1,File:!1,FileError:!1,FileList:!1,FileReader:!1,find:!1,focus:!1,FocusEvent:!1,FontFace:!1,FormData:!1,frameElement:!1,frames:!1,GainNode:!1,Gamepad:!1,GamepadButton:!1,GamepadEvent:!1,getComputedStyle:!1,getSelection:!1,HashChangeEvent:!1,Headers:!1,history:!1,History:!1,HTMLAllCollection:!1,HTMLAnchorElement:!1,HTMLAppletElement:!1,HTMLAreaElement:!1,HTMLAudioElement:!1,HTMLBaseElement:!1,HTMLBlockquoteElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLContentElement:!1,HTMLDataListElement:!1,HTMLDetailsElement:!1,HTMLDialogElement:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLDocument:!1,HTMLElement:!1,HTMLEmbedElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormControlsCollection:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLIsIndexElement:!1,HTMLKeygenElement:!1,HTMLLabelElement:!1,HTMLLayerElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMarqueeElement:!1,HTMLMediaElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLMeterElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLOptionsCollection:!1,HTMLOutputElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPictureElement:!1,HTMLPreElement:!1,HTMLProgressElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLShadowElement:!1,HTMLSourceElement:!1,HTMLSpanElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTitleElement:!1,HTMLTrackElement:!1,HTMLUListElement:!1,HTMLUnknownElement:!1,HTMLVideoElement:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBEnvironment:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,Image:!1,ImageBitmap:!1,ImageData:!1,indexedDB:!1,innerHeight:!1,innerWidth:!1,InputEvent:!1,InputMethodContext:!1,Intl:!1,KeyboardEvent:!1,length:!1,localStorage:!1,location:!1,Location:!1,locationbar:!1,matchMedia:!1,MediaElementAudioSourceNode:!1,MediaEncryptedEvent:!1,MediaError:!1,MediaKeyError:!1,MediaKeyEvent:!1,MediaKeyMessageEvent:!1,MediaKeys:!1,MediaKeySession:!1,MediaKeyStatusMap:!1,MediaKeySystemAccess:!1,MediaList:!1,MediaQueryList:!1,MediaQueryListEvent:!1,MediaSource:!1,MediaStreamAudioDestinationNode:!1,MediaStreamAudioSourceNode:!1,MediaStreamEvent:!1,MediaStreamTrack:!1,menubar:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MIDIAccess:!1,MIDIConnectionEvent:!1,MIDIInput:!1,MIDIInputMap:!1,MIDIMessageEvent:!1,MIDIOutput:!1,MIDIOutputMap:!1,MIDIPort:!1,MimeType:!1,MimeTypeArray:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationEvent:!1,MutationObserver:!1,MutationRecord:!1,name:!1,NamedNodeMap:!1,navigator:!1,Navigator:!1,Node:!1,NodeFilter:!1,NodeIterator:!1,NodeList:!1,Notification:!1,OfflineAudioCompletionEvent:!1,OfflineAudioContext:!1,offscreenBuffering:!1,onbeforeunload:!0,onblur:!0,onerror:!0,onfocus:!0,onload:!0,onresize:!0,onunload:!0,open:!1,openDatabase:!1,opener:!1,opera:!1,Option:!1,OscillatorNode:!1,outerHeight:!1,outerWidth:!1,PageTransitionEvent:!1,pageXOffset:!1,pageYOffset:!1,parent:!1,Path2D:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,PeriodicWave:!1,Permissions:!1,PermissionStatus:!1,personalbar:!1,Plugin:!1,PluginArray:!1,PopStateEvent:!1,postMessage:!1,print:!1,ProcessingInstruction:!1,ProgressEvent:!1,prompt:!1,PushManager:!1,PushSubscription:!1,RadioNodeList:!1,Range:!1,ReadableByteStream:!1,ReadableStream:!1,removeEventListener:!1,Request:!1,requestAnimationFrame:!1,resizeBy:!1,resizeTo:!1,Response:!1,RTCIceCandidate:!1,RTCSessionDescription:!1,screen:!1,Screen:!1,screenLeft:!1,ScreenOrientation:!1,screenTop:!1,screenX:!1,screenY:!1,ScriptProcessorNode:!1,scroll:!1,scrollbars:!1,scrollBy:!1,scrollTo:!1,scrollX:!1,scrollY:!1,SecurityPolicyViolationEvent:!1,Selection:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerRegistration:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,ShadowRoot:!1,SharedWorker:!1,showModalDialog:!1,speechSynthesis:!1,SpeechSynthesisEvent:!1,SpeechSynthesisUtterance:!1,status:!1,statusbar:!1,stop:!1,Storage:!1,StorageEvent:!1,styleMedia:!1,StyleSheet:!1,StyleSheetList:!1,SubtleCrypto:!1,SVGAElement:!1,SVGAltGlyphDefElement:!1,SVGAltGlyphElement:!1,SVGAltGlyphItemElement:!1,SVGAngle:!1,SVGAnimateColorElement:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPathData:!1,SVGAnimatedPoints:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimationElement:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGColor:!1,SVGColorProfileElement:!1,SVGColorProfileRule:!1,SVGComponentTransferFunctionElement:!1,SVGCSSRule:!1,SVGCursorElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGDiscardElement:!1,SVGDocument:!1,SVGElement:!1,SVGElementInstance:!1,SVGElementInstanceList:!1,SVGEllipseElement:!1,SVGEvent:!1,SVGExternalResourcesRequired:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEDropShadowElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGFilterPrimitiveStandardAttributes:!1,SVGFitToViewBox:!1,SVGFontElement:!1,SVGFontFaceElement:!1,SVGFontFaceFormatElement:!1,SVGFontFaceNameElement:!1,SVGFontFaceSrcElement:!1,SVGFontFaceUriElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGeometryElement:!1,SVGGlyphElement:!1,SVGGlyphRefElement:!1,SVGGradientElement:!1,SVGGraphicsElement:!1,SVGHKernElement:!1,SVGICCColor:!1,SVGImageElement:!1,SVGLangSpace:!1,SVGLength:!1,SVGLengthList:!1,SVGLinearGradientElement:!1,SVGLineElement:!1,SVGLocatable:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMissingGlyphElement:!1,SVGMPathElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPaint:!1,SVGPathElement:!1,SVGPathSeg:!1,SVGPathSegArcAbs:!1,SVGPathSegArcRel:!1,SVGPathSegClosePath:!1,SVGPathSegCurvetoCubicAbs:!1,SVGPathSegCurvetoCubicRel:!1,SVGPathSegCurvetoCubicSmoothAbs:!1,SVGPathSegCurvetoCubicSmoothRel:!1,SVGPathSegCurvetoQuadraticAbs:!1,SVGPathSegCurvetoQuadraticRel:!1,SVGPathSegCurvetoQuadraticSmoothAbs:!1,SVGPathSegCurvetoQuadraticSmoothRel:!1,SVGPathSegLinetoAbs:!1,SVGPathSegLinetoHorizontalAbs:!1,SVGPathSegLinetoHorizontalRel:!1,SVGPathSegLinetoRel:!1,SVGPathSegLinetoVerticalAbs:!1,SVGPathSegLinetoVerticalRel:!1,SVGPathSegList:!1,SVGPathSegMovetoAbs:!1,SVGPathSegMovetoRel:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGRenderingIntent:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStylable:!1,SVGStyleElement:!1,SVGSVGElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTests:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformable:!1,SVGTransformList:!1,SVGTRefElement:!1,SVGTSpanElement:!1,SVGUnitTypes:!1,SVGURIReference:!1,SVGUseElement:!1,SVGViewElement:!1,SVGViewSpec:!1,SVGVKernElement:!1,SVGZoomAndPan:!1,SVGZoomEvent:!1,Text:!1,TextDecoder:!1,TextEncoder:!1,TextEvent:!1,TextMetrics:!1,TextTrack:!1,TextTrackCue:!1,TextTrackCueList:!1,TextTrackList:!1,TimeEvent:!1,TimeRanges:!1,toolbar:!1,top:!1,Touch:!1,TouchEvent:!1,TouchList:!1,TrackEvent:!1,TransitionEvent:!1,TreeWalker:!1,UIEvent:!1,URL:!1,ValidityState:!1,VTTCue:!1,WaveShaperNode:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLProgram:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLTexture:!1,WebGLUniformLocation:!1,WebSocket:!1,WheelEvent:!1,window:!1,Window:!1,Worker:!1,XDomainRequest:!1,XMLDocument:!1,XMLHttpRequest:!1,XMLHttpRequestEventTarget:!1,XMLHttpRequestProgressEvent:!1,XMLHttpRequestUpload:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathException:!1,XPathExpression:!1,XPathNamespace:!1,XPathNSResolver:!1,XPathResult:!1,XSLTProcessor:!1},worker:{applicationCache:!1,atob:!1,BroadcastChannel:!1,btoa:!1,Cache:!1,caches:!1,clearInterval:!1,clearTimeout:!1,close:!0,console:!1,fetch:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!0,indexedDB:!1,location:!1,MessageChannel:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onlanguagechange:!0,onmessage:!0,onoffline:!0,ononline:!0,onrejectionhandled:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,Request:!1,Response:!1,self:!0,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,WebSocket:!1,Worker:!1,XMLHttpRequest:!1},node:{__dirname:!1,__filename:!1,arguments:!1,Buffer:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,console:!1,exports:!0,GLOBAL:!1,global:!1,module:!1,process:!1,require:!1,root:!1,setImmediate:!1,setInterval:!1,setTimeout:!1},commonjs:{exports:!0,module:!1,require:!1},amd:{define:!1,require:!1},mocha:{after:!1,afterEach:!1,before:!1,beforeEach:!1,context:!1,describe:!1,it:!1,mocha:!1,setup:!1,specify:!1,suite:!1,suiteSetup:!1,suiteTeardown:!1,teardown:!1,test:!1,xcontext:!1,xdescribe:!1,xit:!1,xspecify:!1},jasmine:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fail:!1,fdescribe:!1,fit:!1,it:!1,jasmine:!1,pending:!1,runs:!1,spyOn:!1,waits:!1,waitsFor:!1,xdescribe:!1,xit:!1},jest:{afterEach:!1,beforeEach:!1,describe:!1,expect:!1,it:!1,jest:!1,pit:!1,require:!1,xdescribe:!1,xit:!1},qunit:{asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notOk:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,"throws":!1},phantomjs:{console:!0,exports:!0,phantom:!0,require:!0,WebPage:!0},couch:{emit:!1,exports:!1,getRow:!1,log:!1,module:!1,provides:!1,require:!1,respond:!1,send:!1,start:!1,sum:!1},rhino:{defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},nashorn:{__DIR__:!1,__FILE__:!1,__LINE__:!1,com:!1,edu:!1,exit:!1,Java:!1,java:!1,javafx:!1,JavaImporter:!1,javax:!1,JSAdapter:!1,load:!1,loadWithNewGlobal:!1,org:!1,Packages:!1,print:!1,quit:!1},wsh:{ActiveXObject:!0,Enumerator:!0,GetObject:!0,ScriptEngine:!0,ScriptEngineBuildVersion:!0,ScriptEngineMajorVersion:!0,ScriptEngineMinorVersion:!0,VBArray:!0,WScript:!0,WSH:!0,XDomainRequest:!0},jquery:{$:!1,jQuery:!1},yui:{Y:!1,YUI:!1,YUI_config:!1},shelljs:{cat:!1,cd:!1,chmod:!1,config:!1,cp:!1,dirs:!1,echo:!1,env:!1,error:!1,exec:!1,exit:!1,find:!1,grep:!1,ls:!1,mkdir:!1,mv:!1,popd:!1,pushd:!1,pwd:!1,rm:!1,sed:!1,target:!1,tempdir:!1,test:!1,which:!1},prototypejs:{$:!1,$$:!1,$A:!1,$break:!1,$continue:!1,$F:!1,$H:!1,$R:!1,$w:!1,Abstract:!1,Ajax:!1,Autocompleter:!1,Builder:!1,Class:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Element:!1,Enumerable:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Scriptaculous:!1,Selector:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Template:!1,Toggle:!1,Try:!1},meteor:{$:!1,_:!1,Accounts:!1,App:!1,Assets:!1,Blaze:!1,check:!1,Cordova:!1,DDP:!1,DDPServer:!1,Deps:!1,EJSON:!1,Email:!1,HTTP:!1,Log:!1,Match:!1,Meteor:!1,Mongo:!1,MongoInternals:!1,Npm:!1,Package:!1,Plugin:!1,process:!1,Random:!1,ReactiveDict:!1,ReactiveVar:!1,Router:!1,Session:!1,share:!1,Spacebars:!1,Template:!1,Tinytest:!1,Tracker:!1,UI:!1,Utils:!1,WebApp:!1,WebAppInternals:!1},mongo:{_isWindows:!1,_rand:!1,BulkWriteResult:!1,cat:!1,cd:!1,connect:!1,db:!1,getHostName:!1,getMemInfo:!1,hostname:!1,listFiles:!1,load:!1,ls:!1,md5sumFile:!1,mkdir:!1,Mongo:!1,ObjectId:!1,PlanCache:!1,pwd:!1,quit:!1,removeFile:!1,rs:!1,sh:!1,UUID:!1,version:!1,WriteResult:!1},applescript:{$:!1,Application:!1,Automation:!1,console:!1,delay:!1,Library:!1,ObjC:!1,ObjectSpecifier:!1,Path:!1,Progress:!1,Ref:!1},serviceworker:{caches:!1,Cache:!1,CacheStorage:!1,Client:!1,clients:!1,Clients:!1,ExtendableEvent:!1,ExtendableMessageEvent:!1,FetchEvent:!1,importScripts:!1,registration:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerGlobalScope:!1,ServiceWorkerMessageEvent:!1,ServiceWorkerRegistration:!1,skipWaiting:!1,WindowClient:!1},embertest:{andThen:!1,click:!1,currentPath:!1,currentRouteName:!1,currentUrl:!1,fillIn:!1,find:!1,keyEvent:!1,triggerEvent:!1,visit:!1},protractor:{$:!1,$$:!1,browser:!1,By:!1,by:!1,DartObject:!1,element:!1,protractor:!1},"shared-node-browser":{clearInterval:!1,clearTimeout:!1,console:!1,setInterval:!1,setTimeout:!1},webextensions:{browser:!1,chrome:!1,opr:!1}}}),define("eslint/conf/environments",["./globals"],function(e){var t={builtin:e.builtin,browser:{globals:e.browser},node:{globals:e.node,ecmaFeatures:{globalReturn:!0}},commonjs:{globals:e.commonjs,ecmaFeatures:{globalReturn:!0}},worker:{globals:e.worker},amd:{globals:e.amd},mocha:{globals:e.mocha},jasmine:{globals:e.jasmine},jest:{globals:e.jest},phantomjs:{globals:e.phantom},jquery:{globals:e.jquery},qunit:{globals:e.qunit},prototypejs:{globals:e.prototypejs},shelljs:{globals:e.shelljs},meteor:{globals:e.meteor},mongo:{globals:e.mongo},protractor:{globals:e.protractor},applescript:{globals:e.applescript},nashorn:{globals:e.nashorn},serviceworker:{globals:e.serviceworker},embertest:{globals:e.embertest},webextensions:{globals:e.webextensions},es6:{ecmaFeatures:{arrowFunctions:!0,blockBindings:!0,regexUFlag:!0,regexYFlag:!0,templateStrings:!0,binaryLiterals:!0,octalLiterals:!0,unicodeCodePointEscapes:!0,superInFunctions:!0,defaultParams:!0,restParams:!0,forOf:!0,objectLiteralComputedProperties:!0,objectLiteralShorthandMethods:!0,objectLiteralShorthandProperties:!0,objectLiteralDuplicateProperties:!0,generators:!0,destructuring:!0,classes:!0,spread:!0,newTarget:!0}}};return t}),define("javascript/finder",["estraverse/estraverse","eslint/conf/environments"],function(e,t){e.VisitorKeys.RecoveredNode||(e.VisitorKeys.RecoveredNode=[]);var n={visitor:null,punc:"\n	\r (){}[]:;,.+=-*^&@!%~`'\"/\\",findWord:function(e,t){if(e&&t>-1){for(var n=this.punc.indexOf(e.charAt(t))>-1,r=n&&t>0?t-1:t;r>=0&&!(this.punc.indexOf(e.charAt(r))>-1);)r--;var o=r;for(r=t;r<=e.length&&!(this.punc.indexOf(e.charAt(r))>-1);)r++;return(o===t||n&&o===t-1)&&r===t?null:o===t?e.substring(o,r):e.substring(o+1,r)}return null},findNode:function(t,n,r){var o=null,s=r&&r.parents?[]:null,a=r&&r.next?r.next:!1;if("number"==typeof t&&t>-1&&n&&e.traverse(n,{enter:function(n){if(n.type&&n.range){if(!a&&n.type===e.Syntax.Program&&t<n.range[0])return e.VisitorOption.Break;if(n.range[0]<=t)o=n,s&&s.push(n);else if(a&&(o=n,s&&s.push(n)),o.type!==e.Syntax.Program)return e.VisitorOption.Break}},leave:function(e){s&&t>e.range[1]&&s.pop()}}),o&&s&&s.length>0){var i=s[s.length-1];"Program"!==i.type&&i.range[0]===o.range[0]&&i.range[1]===o.range[1]&&s.pop(),o.parents=s}return o},findNodeAfterComment:function(t,n){var r=null,o=[];if(Array.isArray(t.range)&&n){var s=t.range[1];e.traverse(n,{enter:function(t,n){if(t.type&&t.range)if(n&&o.push(n),s>t.range[0])r=t;else if(r=t,t.type!==e.Syntax.Program)return e.VisitorOption.Break}})}return r&&(r.parents=o),r},findNodesForRange:function(t,n,r){var o=[];return t&&e.traverse(t,{enter:function(t){return t.range[0]>=n&&t.range[0]<r&&o.push(t),t.range[0]>=r?e.VisitorOption.BREAK:void 0}}),o},findToken:function(e,t){if("number"==typeof e&&e>-1&&t&&t.length>0){var n,r=0,o=t.length-1,s=0;if(n=t[0],e>=n.range[0]&&e<n.range[1])return n.index=0,n;if(n=t[o],e>=n.range[0])return n.index=o,n;for(n=null;o>=r;){if(s=Math.floor((r+o)/2),n=t[s],e<n.range[0])o=s-1;else if(e>n.range[1])r=s+1;else if(e===n.range[1]){var a=t[s+1];if(a.range[0]!==n.range[1])return n.index=s,n;r=s+1}else if(e>=n.range[0]&&e<n.range[1])return n.index=s,n;if(r===o)return n=t[r],e>=n.range[0]&&e<=n.range[1]?(n.index=r,n):null}}return null},findComment:function(e,t){if(t.comments){for(var n=t.comments,r=n.length,o=0;r>o;o++){var s=n[o];if(s.range[0]<e&&s.range[1]>=e)return s;if(e===t.range[1]&&e===s.range[1])return s;if(e>t.range[1]&&e<=s.range[1])return s;if(s.range[0]>e)return null}return null}},findScriptBlocks:function(e,t){var n=[],r=null,o=/<\s*script([^>]*)(?:\/>|>((?:.|\r?\n)*?)<\s*\/script[^<>]*>)/gi,s=/(type|language)\s*=\s*"([^"]*)"/i,a=/src\s*=\s*"([^"]*)"/i,i=this.findHtmlCommentBlocks(e,t);e:for(;null!==(r=o.exec(e));){var l=r[1],c=r[2],p=null;if(l){var u=s.exec(l);if(u&&u[2]){var d=u[2];if("language"===u[1]&&(d="text/"+d),!/^(application|text)\/(ecmascript|javascript(\d.\d)?|livescript|jscript|x\-ecmascript|x\-javascript)$/gi.test(d))continue}var h=a.exec(l);h&&(p=h[1])}if(c||!p){if(void 0!==c){var f=r.index+r[0].indexOf(">")+1;if("number"!=typeof t||t>=f&&f+c.length>=t){for(var m=0;m<i.length;m++)if(i[m].start<=f&&i[m].end>=f)continue e;n.push({text:c,offset:f,dependencies:p})}}}else n.push({text:"",offset:0,dependencies:p})}var g={blur:!0,change:!0,click:!0,dblclick:!0,focus:!0,keydown:!0,keypress:!0,keyup:!0,load:!0,mousedown:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,reset:!0,select:!0,submit:!0,unload:!0},b=/(\s+)on(\w*)(\s*=\s*")([^"]*)"/gi,y=0;e:for(;null!==(r=b.exec(e));){y++;var v=r[1],w=r[2],S=r[3];if(c=r[4],w&&w.toLowerCase()in g&&(c||(c=""),f=r.index+v.length+2+w.length+S.length,"number"!=typeof t||t>=f&&f+c.length>=t)){for(var _=0;_<i.length;_++)if(i[_].start<=f&&i[_].end>=f)continue e;n.push({text:c,offset:f,isWrappedFunctionCall:!0})}}return n},findHtmlCommentBlocks:function(e,t){for(var n=[],r=null,o=/<!--((?:.|\r?\n)*?)-->/gi;null!=(r=o.exec(e));){var s=r[1];s.length<1||("number"!=typeof t||r.index<=t&&r.index+s.length>=r.index)&&n.push({text:s,start:r.index,end:r.index+s.length})}return n},findESLintEnvForMember:function(e){var n=Object.keys(t);if(n)for(var r=n.length,o=0;r>o;o++){var s=t[n[o]];if("undefined"!=typeof s[e])return n[o];var a=s.globals;if(a&&"undefined"!=typeof a[e])return n[o]}return null},findDirective:function(e,t){if(e&&"undefined"!=typeof t)for(var n=e.comments.length,r=0;n>r;r++){var o=/^\s*(eslint-\w+|eslint|globals?)(\s|$)/.exec(e.comments[r].value);if(null!==o&&"undefined"!=typeof o&&o[1]===t)return e.comments[r]}return null},findCommentForNode:function r(e){var t=e.leadingComments,n=null;if(t&&t.length>0){if(n=t[t.length-1],"Block"===n.type)return n.node=e,n}else if("Property"===e.type){if(n=r(e.key))return n.node=e,n}else if("FunctionDeclaration"===e.type&&(n=r(e.id)))return n.node=e,n;return n=Object.create(null),n.node=e,n.value="",n},findParentFunction:function(e){if(e)if(e.parents)for(var t=e.parents,n=t.pop();n;){if("FunctionDeclaration"===n.type||"FunctionExpression"===n.type)return n;n=t.pop()}else if(e.parent)for(n=e.parent;n;){if("FunctionDeclaration"===n.type||"FunctionExpression"===n.type)return n;n=n.parent}return null}};return n}),define("esrecurse/esrecurse",[],function(){"use strict";function e(e){return null==e?!1:"object"==typeof e&&"string"==typeof e.type}function t(e,t){return(e===s.Syntax.ObjectExpression||e===s.Syntax.ObjectPattern)&&"properties"===t}function n(e){this.__visitor=e}var r,o,s=require("estraverse/estraverse");return r=Array.isArray,r||(r=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),o=Object.keys||function(e){var t,n=[];for(t in e)n.push(t);return n},n.prototype.visitChildren=function(n){var r,a,i,l,c,p,u;if(null!=n)for(r=n.type||s.Syntax.Property,a=s.VisitorKeys[r],a||(a=o(n)),i=0,l=a.length;l>i;++i)if(u=n[a[i]])if(Array.isArray(u))for(c=0,p=u.length;p>c;++c)u[c]&&(e(u[c])||t(r,a[i]))&&this.visit(u[c]);else e(u)&&this.visit(u)},n.prototype.visit=function(e){var t;if(null!=e)return t=e.type||s.Syntax.Property,this.__visitor[t]?void this.__visitor[t].call(this,e):void this.visitChildren(e)},{version:"1.2.0",Visitor:n,visit:function(e,t){var r=new n(t);r.visit(e)}}}),define("orion/objects",[],function(){function e(e){for(var t=Object.prototype.hasOwnProperty,n=1,r=arguments.length;r>n;n++){var o=arguments[n];for(var s in o)t.call(o,s)&&(e[s]=o[s])}return e}return{clone:function(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var n=Object.create(Object.getPrototypeOf(t));return e(n,t),n},mixin:e,toArray:function(e){return Array.isArray(e)?e:[e]}}}),define("escope/escope",["esrecurse/esrecurse","estraverse/estraverse","orion/objects"],function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e._super=t}function o(e,t){if(!e)throw new Error(t)}function s(){return{optimistic:!1,directive:!1,sourceType:"script",ecmaVersion:5}}function a(e,t){function n(e){return"object"==typeof e&&e instanceof Object&&!(e instanceof RegExp)}var r,o;for(r in t)t.hasOwnProperty(r)&&(o=t[r],n(o)?n(e[r])?a(e[r],o):e[r]=a({},o):e[r]=o);return e}function i(e,t,n,r,o,s){this.identifier=e,this.from=t,this.tainted=!1,this.resolved=null,this.flag=n,this.isWrite()&&(this.writeExpr=r,this.partial=s),this.__maybeImplicitGlobal=o}function l(e,t){this.name=e,this.identifiers=[],this.references=[],this.defs=[],this.tainted=!1,this.stack=!0,this.scope=t}function c(e,t,n,r){var o,s,a,i,l;if(e.upper&&e.upper.isStrict)return!0;if(t.type===y.ArrowFunctionExpression)return!0;if(n)return!0;if("class"===e.type||"module"===e.type)return!0;if("block"===e.type||"switch"===e.type)return!1;if("function"===e.type)o=t.body;else{if("global"!==e.type)return!1;o=t}if(r){for(s=0,a=o.body.length;a>s&&(i=o.body[s],"DirectiveStatement"===i.type);++s)if('"use strict"'===i.raw||"'use strict'"===i.raw)return!0}else for(s=0,a=o.body.length;a>s&&(i=o.body[s],i.type===y.ExpressionStatement)&&(l=i.expression,l.type===y.Literal&&"string"==typeof l.value);++s)if(null!=l.raw){if('"use strict"'===l.raw||"'use strict'"===l.raw)return!0}else if("use strict"===l.value)return!0;return!1}function p(e,t){var n;e.scopes.push(t),n=e.__nodeToScope.get(t.block),n?n.push(t):e.__nodeToScope.set(t.block,[t])}function u(e,t,n,r){this.type=r===_?"TDZ":r===w?"module":t.type===y.BlockStatement?"block":t.type===y.SwitchStatement?"switch":t.type===y.FunctionExpression||t.type===y.FunctionDeclaration||t.type===y.ArrowFunctionExpression?"function":t.type===y.CatchClause?"catch":t.type===y.ForInStatement||t.type===y.ForOfStatement||t.type===y.ForStatement?"for":t.type===y.WithStatement?"with":t.type===y.ClassExpression||t.type===y.ClassDeclaration?"class":"global",this.set=new Map,this.taints=new Map,this.dynamic="global"===this.type||"with"===this.type,this.block=t,this.through=[],this.variables=[],this.references=[],this.variableScope="global"===this.type||"function"===this.type||"module"===this.type?this:e.__currentScope.variableScope,this.functionExpressionScope=!1,this.directCallToEvalScope=!1,this.thisFound=!1,this.__left=[],r===S?(this.__define(t.id,{type:l.FunctionName,name:t.id,node:t}),this.functionExpressionScope=!0):("function"===this.type&&this.block.type!==y.ArrowFunctionExpression&&this.__defineArguments(),t.type===y.FunctionExpression&&t.id&&e.__nestFunctionExpressionNameScope(t,n)),this.upper=e.__currentScope,this.isStrict=c(this,t,n,e.__useDirective()),this.childScopes=[],e.__currentScope&&e.__currentScope.childScopes.push(this),e.__currentScope=this,"global"===this.type&&(e.globalScope=this,e.globalScope.implicit={set:new Map,variables:[],left:[]}),p(e,this)}function d(e){this.scopes=[],this.globalScope=null,this.__nodeToScope=new WeakMap,this.__currentScope=null,this.__options=e}function h(e,n){t.traverse(e,{enter:function(e,t){var r,o,s,a;switch(e.type){case y.Identifier:null===t&&n(e,!0);break;case y.SpreadElement:e.argument.type===y.Identifier&&n(e.argument,!1);break;case y.ObjectPattern:for(r=0,o=e.properties.length;o>r;++r)a=e.properties[r],a.shorthand?n(a.key,!1):a.value.type!==y.Identifier||n(a.value,!1);break;case y.ArrayPattern:for(r=0,o=e.elements.length;o>r;++r)s=e.elements[r],s&&s.type===y.Identifier&&n(s,!1)}}})}function f(e){var t=e.type;return t===y.Identifier||t===y.ObjectPattern||t===y.ArrayPattern||t===y.SpreadElement}function m(t,n){e.Visitor.call(this,this),this.declaration=t,this.referencer=n}function g(t){e.Visitor.call(this,this),this.scopeManager=t,this.parent=null,this.isInnerMethodDefinition=!1}function b(e,t){var n,r,i;return i=a(s(),t),n=new d(i),r=new g(n),r.visit(e),o(null===n.__currentScope),n}var y=t.Syntax;i.READ=1,i.WRITE=2,i.RW=i.READ|i.WRITE,i.prototype.isStatic=function(){return!this.tainted&&this.resolved&&this.resolved.scope.isStatic()},i.prototype.isWrite=function(){return!!(this.flag&i.WRITE)},i.prototype.isRead=function(){return!!(this.flag&i.READ)},i.prototype.isReadOnly=function(){return this.flag===i.READ},i.prototype.isWriteOnly=function(){return this.flag===i.WRITE},i.prototype.isReadWrite=function(){return this.flag===i.RW},l.CatchClause="CatchClause",l.Parameter="Parameter",l.FunctionName="FunctionName",l.ClassName="ClassName",l.Variable="Variable",l.ImportBinding="ImportBinding",l.TDZ="TDZ",l.ImplicitGlobalVariable="ImplicitGlobalVariable";var v=0,w=1,S=2,_=3;return u.prototype.__close=function(e){var t,n,r,o,s,a;if(!this.dynamic||e.__isOptimistic())for(t=0,n=this.__left.length;n>t;++t)r=this.__left[t],this.__resolve(r)||this.__delegateToUpperScope(r);else if("with"===this.type)for(t=0,n=this.__left.length;n>t;++t)r=this.__left[t],r.tainted=!0,this.__delegateToUpperScope(r);else for(t=0,n=this.__left.length;n>t;++t){r=this.__left[t],o=this;do o.through.push(r),o=o.upper;while(o)}if("global"===this.type){for(s=[],t=0,n=this.__left.length;n>t;++t)r=this.__left[t],r.__maybeImplicitGlobal&&!this.set.has(r.identifier.name)&&s.push(r.__maybeImplicitGlobal);for(t=0,n=s.length;n>t;++t)a=s[t],this.__defineImplicit(a.pattern,{type:l.ImplicitGlobalVariable,name:a.pattern,node:a.node});this.implicit.left=this.__left}this.__left=null,e.__currentScope=this.upper},u.prototype.__resolve=function(e){var t,n;return n=e.identifier.name,this.set.has(n)?(t=this.set.get(n),t.references.push(e),t.stack=t.stack&&e.from.variableScope===this.variableScope,e.tainted&&(t.tainted=!0,this.taints.set(t.name,!0)),e.resolved=t,!0):!1},u.prototype.__delegateToUpperScope=function(e){this.upper&&this.upper.__left.push(e),this.through.push(e)},u.prototype.__defineGeneric=function(e,t,n,r,o){var s;s=t.get(e),s||(s=new l(e,this),t.set(e,s),n.push(s)),o&&s.defs.push(o),r&&s.identifiers.push(r)},u.prototype.__defineArguments=function(){this.__defineGeneric("arguments",this.set,this.variables),this.taints.set("arguments",!0)
},u.prototype.__defineImplicit=function(e,t){e&&e.type===y.Identifier&&this.__defineGeneric(e.name,this.implicit.set,this.implicit.variables,e,t)},u.prototype.__define=function(e,t){e&&e.type===y.Identifier&&this.__defineGeneric(e.name,this.set,this.variables,e,t)},u.prototype.__referencing=function(e,t,n,r,o){var s;e&&e.type===y.Identifier&&(s=new i(e,this,t||i.READ,n,r,!!o),this.references.push(s),this.__left.push(s))},u.prototype.__detectEval=function(){var e;e=this,this.directCallToEvalScope=!0;do e.dynamic=!0,e=e.upper;while(e)},u.prototype.__detectThis=function(){this.thisFound=!0},u.prototype.__isClosed=function(){return null===this.__left},u.prototype.resolve=function(e){var t,n,r;for(o(this.__isClosed(),"scope should be closed"),o(e.type===y.Identifier,"target should be identifier"),n=0,r=this.references.length;r>n;++n)if(t=this.references[n],t.identifier===e)return t;return null},u.prototype.isStatic=function(){return!this.dynamic},u.prototype.isArgumentsMaterialized=function(){var e;return"function"!==this.type?!0:this.isStatic()?(e=this.set.get("arguments"),o(e,"always have arguments variable"),e.tainted||0!==e.references.length):!0},u.prototype.isThisMaterialized=function(){return"function"!==this.type?!0:this.isStatic()?this.thisFound:!0},u.prototype.isUsedName=function(e){if(this.set.has(e))return!0;for(var t=0,n=this.through.length;n>t;++t)if(this.through[t].identifier.name===e)return!0;return!1},d.prototype.__useDirective=function(){return this.__options.directive},d.prototype.__isOptimistic=function(){return this.__options.optimistic},d.prototype.__ignoreEval=function(){return this.__options.ignoreEval},d.prototype.isModule=function(){return"module"===this.__options.sourceType},d.prototype.__get=function(e){return this.__nodeToScope.get(e)},d.prototype.acquire=function(e,t){function n(e){return"function"===e.type&&e.functionExpressionScope?!1:"TDZ"===e.type?!1:!0}var r,o,s,a;if(r=this.__get(e),!r||0===r.length)return null;if(1===r.length)return r[0];if(t){for(s=r.length-1;s>=0;--s)if(o=r[s],n(o))return o}else for(s=0,a=r.length;a>s;++s)if(o=r[s],n(o))return o;return null},d.prototype.acquireAll=function(e){return this.__get(e)},d.prototype.release=function(e,t){var n,r;return n=this.__get(e),n&&n.length?(r=n[0].upper,r?this.acquire(r.block,t):null):null},d.prototype.attach=function(){},d.prototype.detach=function(){},d.prototype.__nestScope=function(e,t){return new u(this,e,t,v)},d.prototype.__nestModuleScope=function(e){return new u(this,e,!1,w)},d.prototype.__nestTDZScope=function(e){return new u(this,e,!1,_)},d.prototype.__nestFunctionExpressionNameScope=function(e,t){return new u(this,e,t,S)},d.prototype.__isES6=function(){return this.__options.ecmaVersion>=6},r(m,e.Visitor),m.prototype.visitImport=function(e,t){var n=this;n.referencer.visitPattern(e,function(e){n.referencer.currentScope().__define(e,{type:l.ImportBinding,name:e,node:t,parent:n.declaration})})},m.prototype.ImportNamespaceSpecifier=function(e){e.id&&this.visitImport(e.id,e)},m.prototype.ImportDefaultSpecifier=function(e){this.visitImport(e.id,e)},m.prototype.ImportSpecifier=function(e){e.name?this.visitImport(e.name,e):this.visitImport(e.id,e)},r(g,e.Visitor),n.mixin(g.prototype,{currentScope:function(){return this.scopeManager.__currentScope},close:function(e){for(;this.currentScope()&&e===this.currentScope().block;)this.currentScope().__close(this.scopeManager)},pushInnerMethodDefinition:function(e){var t=this.isInnerMethodDefinition;return this.isInnerMethodDefinition=e,t},popInnerMethodDefinition:function(e){this.isInnerMethodDefinition=e},materializeTDZScope:function(e,t){this.scopeManager.__nestTDZScope(e,t),this.visitVariableDeclaration(this.currentScope(),l.TDZ,t.left,0)},materializeIterationScope:function(e){var t,n=this;this.scopeManager.__nestScope(e,!1),t=e.left,this.visitVariableDeclaration(this.currentScope(),l.Variable,t,0),this.visitPattern(t.declarations[0].id,function(t){n.currentScope().__referencing(t,i.WRITE,e.right,null,!0)})},visitPattern:function(e,t){h(e,t)},visitFunction:function(e){var t,n,r=this;for(e.type===y.FunctionDeclaration&&this.currentScope().__define(e.id,{type:l.FunctionName,name:e.id,node:e}),this.scopeManager.__nestScope(e,this.isInnerMethodDefinition),t=0,n=e.params.length;n>t;++t)this.visitPattern(e.params[t],function(n){r.currentScope().__define(n,{type:l.Parameter,name:n,node:e,index:t})});e.body.type===y.BlockStatement?this.visitChildren(e.body):this.visit(e.body),this.close(e)},visitClass:function(e){e.type===y.ClassDeclaration&&this.currentScope().__define(e.id,{type:l.ClassName,name:e.id,node:e}),this.visit(e.superClass),this.scopeManager.__nestScope(e),e.id&&this.currentScope().__define(e.id,{type:l.ClassName,name:e.id,node:e}),this.visit(e.body),this.close(e)},visitProperty:function(e){var t,n;e.computed&&this.visit(e.key),n=e.type===y.MethodDefinition||e.method,n&&(t=this.pushInnerMethodDefinition(!0)),this.visit(e.value),n&&this.popInnerMethodDefinition(t)},visitForIn:function(e){var t=this;e.left.type===y.VariableDeclaration&&"var"!==e.left.kind?(this.materializeTDZScope(e.right,e),this.visit(e.right),this.close(e.right),this.materializeIterationScope(e),this.visit(e.body),this.close(e)):(e.left.type===y.VariableDeclaration?(this.visit(e.left),this.visitPattern(e.left.declarations[0].id,function(n){t.currentScope().__referencing(n,i.WRITE,e.right,null,!0)})):(f(e.left)||this.visit(e.left),this.visitPattern(e.left,function(n){var r=null;t.currentScope().isStrict||(r={pattern:n,node:e}),t.currentScope().__referencing(n,i.WRITE,e.right,r,!0)})),this.visit(e.right),this.visit(e.body))},visitVariableDeclaration:function(e,t,n,r){var o,s,a=this;o=n.declarations[r],s=o.init,this.visitPattern(o.id,function(l,c){e.__define(l,{type:t,name:l,node:o,index:r,kind:n.kind,parent:n}),s&&a.currentScope().__referencing(l,i.WRITE,s,null,!c)})},AssignmentExpression:function(e){var t=this;f(e.left)?"="===e.operator?this.visitPattern(e.left,function(n,r){var o=null;t.currentScope().isStrict||(o={pattern:n,node:e}),t.currentScope().__referencing(n,i.WRITE,e.right,o,!r)}):t.currentScope().__referencing(e.left,i.RW,e.right):this.visit(e.left),this.visit(e.right)},CatchClause:function(e){var t=this;this.scopeManager.__nestScope(e),this.visitPattern(e.param,function(n){t.currentScope().__define(n,{type:l.CatchClause,name:e.param,node:e})}),this.visit(e.body),this.close(e)},Program:function(e){this.scopeManager.__nestScope(e),this.scopeManager.__isES6()&&this.scopeManager.isModule()&&this.scopeManager.__nestModuleScope(e),this.visitChildren(e),this.close(e)},Identifier:function(e){this.currentScope().__referencing(e)},UpdateExpression:function(e){f(e.argument)?this.currentScope().__referencing(e.argument,i.RW,null):this.visitChildren(e)},MemberExpression:function(e){this.visit(e.object),e.computed&&this.visit(e.property)},Property:function(e){this.visitProperty(e)},MethodDefinition:function(e){this.visitProperty(e)},BreakStatement:function(){},ContinueStatement:function(){},LabeledStatement:function(e){this.visit(e.body)},ForStatement:function(e){e.init&&e.init.type===y.VariableDeclaration&&"var"!==e.init.kind&&this.scopeManager.__nestScope(e),this.visitChildren(e),this.close(e)},ClassExpression:function(e){this.visitClass(e)},ClassDeclaration:function(e){this.visitClass(e)},CallExpression:function(e){this.scopeManager.__ignoreEval()||e.callee.type!==y.Identifier||"eval"!==e.callee.name||this.currentScope().variableScope.__detectEval(),this.visitChildren(e)},BlockStatement:function(e){this.scopeManager.__isES6()&&this.scopeManager.__nestScope(e),this.visitChildren(e),this.close(e)},ThisExpression:function(){this.currentScope().variableScope.__detectThis()},WithStatement:function(e){this.visit(e.object),this.scopeManager.__nestScope(e),this.visit(e.body),this.close(e)},VariableDeclaration:function(e){var t,n,r,o;for(t="var"===e.kind?this.currentScope().variableScope:this.currentScope(),n=0,r=e.declarations.length;r>n;++n)o=e.declarations[n],this.visitVariableDeclaration(t,l.Variable,e,n),o.init&&this.visit(o.init)},SwitchStatement:function(e){var t,n;for(this.visit(e.discriminant),this.scopeManager.__isES6()&&this.scopeManager.__nestScope(e),t=0,n=e.cases.length;n>t;++t)this.visit(e.cases[t]);this.close(e)},FunctionDeclaration:function(e){this.visitFunction(e)},FunctionExpression:function(e){this.visitFunction(e)},ForOfStatement:function(e){this.visitForIn(e)},ForInStatement:function(e){this.visitForIn(e)},ArrowFunctionExpression:function(e){this.visitFunction(e)},ImportDeclaration:function(e){var t;o(this.scopeManager.__isES6()&&this.scopeManager.isModule()),t=new m(e,this),t.visit(e)},ExportDeclaration:function(e){return e.source?void 0:e.declaration?void this.visit(e.declaration):void this.visitChildren(e)},ExportSpecifier:function(e){this.visit(e.id)}}),{version:"2.0.4",Reference:i,Variable:l,Scope:u,ScopeManager:d,analyze:b}}),define("eslint/lib/util",["exports"],function(e){var t="eslint-plugin-";return e.mixin=function(e,t){Object.keys(t).forEach(function(n){e[n]=t[n]})},e.mergeConfigs=function n(e,t){return Object.keys(t).forEach(function(r){var o=t[r];return"plugins"===r?(e[r]||(e[r]=[]),void o.forEach(function(t){-1===e[r].indexOf(t)&&e[r].push(t)})):Array.isArray(e[r])&&!Array.isArray(o)&&"number"==typeof o?void(e[r][0]=t[r]):void(e[r]="object"!=typeof o||Array.isArray(o)?t[r]:n(e[r]||{},t[r]))}),e},e.removePluginPrefix=function(e){var n;return n=0===e.indexOf(t)?e.substring(t.length):e},e.PLUGIN_NAME_PREFIX=t,e.getDeclaration=function(e,t){for(var n=t;!0;){if(!n)return null;var r,o=e.name?e.name:e.identifier.name;if(n.variables.some(function(e){return e.name===o?(r=e,!0):!1}),r)return r;n=n.upper}},e.returnableStatement=function(e){switch(e.type){case"ReturnStatement":case"ThrowStatement":case"ContinueStatement":case"BreakStatement":return!0}return!1},e}),define("javascript/logger",[],function(){return{log:function(){"undefined"!=typeof console&&console&&console.log?console.log.apply(console,arguments):postMessage&&postMessage.apply(null,arguments)},error:function(){"undefined"!=typeof console&&console&&console.error?console.error.apply(console,arguments):postMessage&&postMessage.apply(null,arguments)}}}),define("javascript/nls/problems",{root:!0}),define("javascript/nls/root/problems",{syntaxErrorIncomplete:"Syntax error, incomplete statement.",syntaxErrorBadToken:"Syntax error on token '${0}', delete this token.",esprimaParseFailure:"Esprima failed to parse this file because an error occurred: ${0}",eslintValidationFailure:"ESLint failed to validate this file because an error occurred: ${0}",curly:"Statement should be enclosed in braces.","curly-description":"Require curly braces for all control statements.",eqeqeq:"Expected '${0}' and instead saw '${1}'.","eqeqeq-description":"Require the use of === and !==.","missing-doc":"Missing documentation for function '${0}'.","missing-doc-description":"Require JSDoc for all functions.","missing-nls":"Non-externalized string literal '${0}'.","missing-nls-description":"Disallow non-externalized string literals.","new-parens":"Missing parentheses invoking constructor.","new-parens-description":"Require parenthesis for constructors.","no-caller":"'arguments.${0}' is deprecated.","no-caller-description":"Warn on use of arguments.callee or arguments.caller.","no-comma-dangle":"Trailing commas in object expressions are discouraged.","no-comma-dangle-description":"Report extra trailing comma in object expressions.","no-cond-assign":"Expected a conditional expression and instead saw an assignment.","no-cond-assign-description":"Disallow assignment statements in control statements like if-else, do-while, while and for statements.","no-console":"Discouraged use of console in browser-based code.","no-console-description":"Disallow the use of 'console' in browser-run code.","no-constant-condition":"Discouraged use of constant as a conditional expression.","no-constant-condition-description":"Disallow use of a constant value as a conditional expression.","no-debugger":"'debugger' statement use is discouraged.","no-debugger-description":"Disallow use of the debugger keyword.","no-dupe-keys":"Duplicate object key '${0}'.","no-dupe-keys-description":"Warn when object contains duplicate keys.","no-empty-block":"Empty block should be removed or commented.","no-empty-block-description":"Warn when a code block is empty.","no-eval":"${0} function calls are discouraged.","no-eval-description":"Disallow use of eval function.","no-extra-semi":"Unnecessary semicolon.","no-extra-semi-description":"Warn about extraneous semi colons.","no-fallthrough":"Switch case may be entered by falling through the previous case.","no-fallthrough-description":"Warn when a switch case falls through.","no-implied-eval":"${0} function calls are discouraged.","no-implied-eval-description":"Disallow use of implied eval function.","no-iterator":"Discouraged __iterator__ property use.","no-iterator-description":"Warn when the __iterator__ property is used.","no-proto":"Discouraged __proto__ property use.","no-proto-description":"Warn when the __proto__ property is used.","no-jslint":"The '${0}' directive is unsupported, please use eslint-env.","no-jslint-description":"Warn when the jslint/jshint directive is used.","no-mixed-spaces-and-tabs":"Mixed spaces and tabs.","no-mixed-spaces-and-tabs-description":"Warn about mixed spaces and tabs.","no-new-array":"Use the array literal notation '[]'.","no-new-array-description":"Disallow use of the Array constructor.","no-new-func":"The Function constructor is eval.","no-new-func-description":"Disallow use of the Function constructor.","no-new-object":"Use the object literal notation '{}' or Object.create(null).","no-new-object-description":"Disallow use of the Object constructor.","no-new-wrappers":"Do not use '${0}' as a constructor.","no-new-wrappers-description":"Disallow creating new String, Number or Boolean via their constructor.","no-redeclare":"'${0}' is already defined.","no-redeclare-description":"Warn when variable or function is redeclared.","no-regex-spaces":"Avoid multiple spaces in regular expressions. Use ' {${0}}' instead.","no-regex-spaces-description":"Warn when multiple spaces are used in regular expressions.","no-reserved-keys":"Reserved words should not be used as property keys.","no-reserved-keys-description":"Warn when a reserved word is used as a property key.","no-shadow":"'${0}' is already declared in the upper scope.","no-shadow-description":"Warn when shadowing variable from upper scope.","no-shadow-global":"Variable '${0}' shadows a global member.","no-shadow-global-description":"Warn when a variable or parameter shadows a member from the global environment.","no-shadow-global-param":"Parameter '${0}' shadows a global member.","no-sparse-arrays":"Sparse array declarations should be avoided.","no-sparse-arrays-description":"Warn when sparse arrays are defined.","no-throw-literal":"Throw an Error instead.","no-throw-literal-description":"Warn when a Literal is used in a throw statement.","no-undef-defined":"'${0}' is undefined.","no-undef-init":"Avoid explicitly initializing variables to 'undefined'.","no-undef-init-description":"Warn when variables are explicitly initialized to undefined.","no-undef-readonly":"'${0}' is read-only.","no-undef-description":"Warn when used variable or function has not been defined.","no-unreachable":"Unreachable code.","no-unreachable-description":"Warn when code is not reachable.","no-unused-params":"Parameter '${0}' is never used.","no-unused-params-description":"Warn when function parameters are not used.","no-unused-vars-unused":"'${0}' is unused.","no-unused-vars-unused-funcdecl":"Function '${0}' is unused.","no-unused-vars-unread":"'${0}' is unread.","no-unused-vars-description":"Warn when declared variables are not used.","no-use-before-define":"'${0}' was used before it was defined.","no-use-before-define-description":"Warn when a variable or function is used before it is defined.","no-with":"Discouraged use of 'with' statement.","no-with-description":"Warn when the with statement is used.",radix:"Missing radix parameter.","radix-description":"Warn when parseInt() is called without the 'radix' parameter.",semi:"Missing semicolon.","semi-description":"Warn about missing semicolons.","unnecessary-nls":"Unnecessary $NON-NLS$ tag.","unnecessary-nls-description":"Disallow unnecessary non-NLS comments.","use-isnan":"Use the isNaN function to compare with NaN.","use-isnan-description":"Disallow comparison to the value NaN.","valid-typeof":"Invalid typeof comparison.","valid-typeof-description":"Warn when incorrectly comparing the result of a typeof expression.","accessor-pairs-description":"Report when accessors don't come in pairs (getter, setter)","no-control-regex-description":"Disallow control characters in regular expressions","no-duplicate-case-description":"Disallow a duplicate case label","no-empty-character-class-description":"Disallow empty character classes","no-extra-boolean-cast-description":"Discourage redundant double negation","no-extra-parens-description":"Discourage redundant parentheses","no-invalid-regexp-description":"Report invalid regular expressions","no-negated-in-lhs-description":"Disallow negated left operand of in operator","no-obj-calls-description":"Disallow global object as function calls","no-eq-null-description":"Disallow null comparisons","no-else-return-description":"Report else after return","no-empty-label-description":"No empty labels","no-self-compare-description":"Disallow self compare","no-irregular-whitespace-description":"No irregular whitespace:","no-self-assign-description":"Disallow self assignment","no-self-assign":"Assigning to itself is pointless.","type-checked-consistent-return-description":"Detect inconsistent return values","inconsistent-return":"Inconsistent return types: '{{type1}}', '{{type2}}'",notNum:"'${0}' must be a number",notArray:"'${0}' must be an array of strings",notEmpty:"'${0}' should not be empty",onlyStrings:"'${0}' entries can only be strings",notObject:"'${0}' must be an object",pluginNotObject:"plugin '${0}' must be an object",noDupes:"Duplicate entries are not allowed",problemInFile:"There is a problem with your .tern-project-file.",openFile:"Open the .tern-project file",errorParsing:"There was an error parsing the JSON in your .tern-project file",multiAttrProblems:"Multiple problems were found with attributes in your .tern-project file.",attrProblem:"A problem with one of the attributes in your .tern-project file was found.",multipleFileMatchesProblem:"Multiple file matches found for: ${0}. Defaulting to: ${1}.",noFileMatchProblem:"No file match found for: ${0}.",tooManyFileMatchProblems:"... (${0} more)",fileMatchProblems:"Problems found in the loadEagerly attribute of your .tern-project file.",fileMatchProgress:"Validating loadEagerly paths in your .tern-project file.",failedWrite:"There was a problem writing to your .tern-project file."}),define("orion/editor/stylers/lib/syntax",[],function(){return{id:"orion.lib",grammars:[{id:"orion.lib",repository:{brace_open:{match:"{",name:"punctuation.section.block.begin"},brace_close:{match:"}",name:"punctuation.section.block.end"},bracket_open:{match:"\\[",name:"punctuation.section.bracket.begin"},bracket_close:{match:"\\]",name:"punctuation.section.bracket.end"},parenthesis_open:{match:"\\(",name:"punctuation.section.parens.begin"},parenthesis_close:{match:"\\)",name:"punctuation.section.parens.end"},operator:{match:"(\\+|-|!|=|>|<|&|(\\|\\|))+",name:"punctuation.operator"},doc_block:{begin:"/\\*\\*",end:"\\*/",name:"comment.block.documentation",patterns:[{match:"@(?:(?!\\*/)\\S)*",name:"meta.documentation.annotation"},{match:"<[^\\s>]*>",name:"meta.documentation.tag"},{match:"(\\b)(TODO)(\\b)(((?!\\*/).)*)",name:"meta.annotation.task.todo",captures:{2:{name:"keyword.other.documentation.task"},4:{name:"comment.block"}}}]},number_decimal:{match:"\\b-?(?:\\.\\d+|\\d+\\.?\\d*)(?:[eE][+-]?\\d+)?\\b",name:"constant.numeric.number"},number_hex:{match:"\\b0[xX][0-9A-Fa-f]+\\b",name:"constant.numeric.hex"},string_doubleQuote:{match:'"(?:\\\\.|[^"])*"?',name:"string.quoted.double"},string_singleQuote:{match:"'(?:\\\\.|[^'])*'?",name:"string.quoted.single"},todo_comment_singleLine:{match:"(\\b)(TODO)(\\b)(.*)",name:"meta.annotation.task.todo",captures:{2:{name:"keyword.other.documentation.task"},4:{name:"comment.line"}}}}},{id:"orion.c-like",repository:{comment_singleLine:{match:{match:"//.*",literal:"//"},name:"comment.line.double-slash",patterns:[{include:"orion.lib#todo_comment_singleLine"}]},comment_block:{begin:{match:"/\\*",literal:"/*"},end:{match:"\\*/",literal:"*/"},name:"comment.block",patterns:[{match:"(\\b)(TODO)(\\b)(((?!\\*/).)*)",name:"meta.annotation.task.todo",captures:{2:{name:"keyword.other.documentation.task"},4:{name:"comment.block"}}}]}}}],keywords:[]}}),define("orion/editor/stylers/application_javascript/syntax",["orion/editor/stylers/lib/syntax"],function(e){var t=["class","const","debugger","delete","enum","export","extends","function","implements","import","in","instanceof","interface","let","new","package","private","protected","public","static","super","typeof","var","void","with"],n=["break","case","catch","continue","default","do","else","finally","for","if","return","switch","throw","try","while","yield"],r=["this"],o=["false","null","true","undefined"],s=[];return s.push.apply(s,e.grammars),s.push({id:"orion.js",contentTypes:["application/javascript"],patterns:[{begin:"'(?:\\\\.|[^\\\\'])*\\\\$",end:"^(?:$|(?:\\\\.|[^\\\\'])*('|[^\\\\]$))",name:"string.quoted.single.js"},{begin:'"(?:\\\\.|[^\\\\"])*\\\\$',end:'^(?:$|(?:\\\\.|[^\\\\"])*("|[^\\\\]$))',name:"string.quoted.double.js"},{include:"orion.lib#string_doubleQuote"},{include:"orion.lib#string_singleQuote"},{include:"orion.c-like#comment_singleLine"},{match:"/(?![\\s\\*])(?:\\\\.|[^/])+/(?:[gim]{0,3})",name:"string.regexp.js"},{include:"orion.lib#doc_block"},{include:"orion.c-like#comment_block"},{include:"#jsFunctionDef"},{include:"orion.lib#brace_open"},{include:"orion.lib#brace_close"},{include:"orion.lib#bracket_open"},{include:"orion.lib#bracket_close"},{include:"orion.lib#parenthesis_open"},{include:"orion.lib#parenthesis_close"},{include:"orion.lib#operator"},{include:"orion.lib#number_decimal"},{include:"orion.lib#number_hex"},{match:"\\b(?:"+t.join("|")+")\\b",name:"keyword.operator.js"},{match:"\\b(?:"+n.join("|")+")\\b",name:"keyword.control.js"},{match:"\\b(?:"+o.join("|")+")\\b",name:"constant.language.js"},{match:"\\b(?:"+r.join("|")+")\\b",name:"variable.language.js"}],repository:{jsFunctionDef:{begin:"(function)(\\s+[_$a-zA-Z\\xA0-\\uFFFF][_$a-zA-Z0-9\\xA0-\\uFFFF]*)?\\s*\\(",end:"\\)",captures:{1:{name:"keyword.operator.js"},2:{name:"entity.name.function.js"}},patterns:[{include:"orion.c-like#comment_singleLine"},{include:"orion.c-like#comment_block"},{match:"[^\\s,]+",name:"variable.parameter.js"}]}}}),{id:s[s.length-1].id,grammars:s,keywords:t.concat(n).concat(r).concat(o)}}),define("eslint/lib/rules/accessor-pairs",["require"],function(e){function t(e,t){return"Identifier"===e.type&&e.name===t}function n(e,n,r,o){var s=e.parent;return"CallExpression"===s.type&&"MemberExpression"===s.callee.type&&s.callee.computed===!1&&t(s.callee.object,r)&&t(s.callee.property,o)&&s.arguments[n]===e}function r(e){return n(e,2,"Object","defineProperty")||n(e,2,"Reflect","defineProperty")?!0:(e=e.parent.parent,"ObjectExpression"===e.type&&(n(e,1,"Object","create")||n(e,1,"Object","defineProperties")))}return e.exports=function(e){function t(t){for(var n=!1,a=!1,i=r(t),l=0,c=t.properties.length;c>l;l++){var p=t.properties[l],u="";switch("init"===p.kind?i&&!p.computed&&(u=p.key.name):u=p.kind,u){case"set":n=!0;break;case"get":a=!0}if(n&&a)break}s&&n&&!a?e.report(t,"Getter is not present"):o&&a&&!n&&e.report(t,"Setter is not present")}var n=e.options[0]||{},o=n.getWithoutSet===!0,s=n.setWithoutGet!==!1;return{ObjectExpression:function(e){(s||o)&&t(e)}}},e.exports.schema=[{type:"object",properties:{getWithoutSet:{type:"boolean"},setWithoutGet:{type:"boolean"}},additionalProperties:!1}],e.exports}),define("eslint/lib/rules/no-control-regex",["require"],function(e){return e.exports=function(e){function t(t){if(t.value instanceof RegExp)return t.value;if("string"!=typeof t.value)return null;var n=e.getAncestors().pop();if(("NewExpression"===n.type||"CallExpression"===n.type)&&"Identifier"===n.callee.type&&"RegExp"===n.callee.name)try{return new RegExp(t.value)}catch(r){return null}}return{Literal:function(n){var r,o=t(n);o&&(r=o.toString(),/[\x00-\x1f]/.test(r)&&e.report(n,"Unexpected control character in regular expression."))}}},e.exports.schema=[],e.exports}),define("eslint/lib/rules/no-duplicate-case",["require"],function(e){return e.exports=function(e){return{SwitchStatement:function(t){var n={};t.cases.forEach(function(t){var r=e.getSource(t.test);n[r]?e.report(t.test,"Duplicate case label."):n[r]=t})}}},e.exports.schema=[],e.exports}),define("eslint/lib/rules/no-else-return",["require"],function(e){return e.exports=function(e){function t(t){e.report(t,"Unexpected 'else' after 'return'.")}function n(e){return"ReturnStatement"===e.type}function r(e){if("BlockStatement"===e.type){var t=e.body,r=t[t.length-1];return r&&n(r)}return n(e)}function o(e){return e.alternate&&e.consequent&&"IfStatement"!==e.alternate.type}function s(e){return"IfStatement"===e.type&&o(e)&&r(e.alternate)&&r(e.consequent)}function a(e){return n(e)||s(e)}function i(e){return"BlockStatement"===e.type?e.body.some(a):a(e)}return{IfStatement:function(n){var r,o,s=e.getAncestors().pop();if("IfStatement"!==s.type||s.alternate!==n){for(r=[];"IfStatement"===n.type;n=n.alternate){if(!n.alternate)return;r.push(n.consequent),o=n.alternate}r.every(i)&&t(o)}}}},e.exports.schema=[],e.exports}),define("eslint/lib/rules/no-empty-character-class",["require"],function(e){var t=/^\/([^\\[]|\\.|\[([^\\\]]|\\.)+\])*\/[gimuy]*$/;return e.exports=function(e){return{Literal:function(n){var r=e.getFirstToken(n);"RegularExpression"!==r.type||t.test(r.value)||e.report(n,"Empty class.")}}},e.exports.schema=[],e.exports}),define("eslint/lib/rules/no-empty-label",["require"],function(e){return e.exports=function(e){return{LabeledStatement:function(t){var n=t.body.type;"ForStatement"!==n&&"WhileStatement"!==n&&"DoWhileStatement"!==n&&"SwitchStatement"!==n&&"ForInStatement"!==n&&"ForOfStatement"!==n&&e.report(t,'Unexpected label "{{l}}"',{l:t.label.name})}}},e.exports.schema=[],e.exports}),define("eslint/lib/rules/no-eq-null",["require"],function(e){return e.exports=function(e){function t(e,t){for(var n=e.getTokens(t),r=n.length,o=t.operator,s=0;r>s;s++){var a=n[s];if(a.value===o)return a}return null}return{BinaryExpression:function(n){var r="=="===n.operator||"!="===n.operator;("Literal"===n.right.type&&"null"===n.right.raw&&r||"Literal"===n.left.type&&"null"===n.left.raw&&r)&&e.report(n,"Use '"+n.operator+"=' to compare with 'null'.",null,t(e,n))}}},e.exports.schema=[],e.exports}),define("eslint/lib/rules/no-extra-boolean-cast",["require"],function(e){return e.exports=function(e){return{UnaryExpression:function(t){var n=e.getAncestors(),r=n.pop(),o=n.pop();"!"===t.operator&&"UnaryExpression"===r.type&&"!"===r.operator&&("IfStatement"===o.type?e.report(t,"Redundant double negation in an if statement condition."):"DoWhileStatement"===o.type?e.report(t,"Redundant double negation in a do while loop condition."):"WhileStatement"===o.type?e.report(t,"Redundant double negation in a while loop condition."):"ConditionalExpression"===o.type&&r===o.test?e.report(t,"Redundant double negation in a ternary condition."):"ForStatement"===o.type&&r===o.test?e.report(t,"Redundant double negation in a for loop condition."):"UnaryExpression"===o.type&&"!"===o.operator?e.report(t,"Redundant multiple negation."):"CallExpression"===o.type&&"Identifier"===o.callee.type&&"Boolean"===o.callee.name?e.report(t,"Redundant double negation in call to Boolean()."):"NewExpression"===o.type&&"Identifier"===o.callee.type&&"Boolean"===o.callee.name&&e.report(t,"Redundant double negation in Boolean constructor call."))}}},e.exports.schema=[],e.exports}),define("eslint/lib/rules/no-extra-parens",["require"],function(e){return e.exports=function(e){function t(e){return d||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type}function n(t){var n=e.getTokenBefore(t),r=e.getTokenAfter(t);return n&&r&&"("===n.value&&n.range[1]<=t.range[0]&&")"===r.value&&r.range[0]>=t.range[1]}function r(t){var r=e.getTokenBefore(t,1),o=e.getTokenAfter(t,1);return n(t)&&r&&o&&"("===r.value&&r.range[1]<=t.range[0]&&")"===o.value&&o.range[0]>=t.range[1]}function o(e){return t(e)&&n(e)}function s(e){return t(e)&&r(e)}function a(e){for(var t=e.parent;t;){switch(t.type){case"SequenceExpression":if(t.expressions[0]!==e||n(e))return!1;break;case"UnaryExpression":case"UpdateExpression":if(t.prefix||n(e))return!1;break;case"BinaryExpression":case"LogicalExpression":if(t.left!==e||n(e))return!1;break;case"ConditionalExpression":if(t.test!==e||n(e))return!1;break;case"CallExpression":if(t.callee!==e||n(e))return!1;break;case"MemberExpression":if(t.object!==e||n(e))return!1;break;case"ExpressionStatement":return!0;default:return!1}e=t,t=t.parent}throw new Error("unreachable")}function i(e){switch(e.type){case"SequenceExpression":return 0;case"AssignmentExpression":case"ArrowFunctionExpression":case"YieldExpression":return 1;case"ConditionalExpression":return 3;case"LogicalExpression":switch(e.operator){case"||":return 4;case"&&":return 5}case"BinaryExpression":switch(e.operator){case"|":return 6;case"^":return 7;case"&":return 8;case"==":case"!=":case"===":case"!==":return 9;case"<":case"<=":case">":case">=":case"in":case"instanceof":return 10;case"<<":case">>":case">>>":return 11;case"+":case"-":return 12;case"*":case"/":case"%":return 13}case"UnaryExpression":return 14;case"UpdateExpression":return 15;case"CallExpression":return"FunctionExpression"===e.callee.type?-1:16;case"NewExpression":return 17}return 18}function l(t){var n=e.getTokenBefore(t);e.report(t,n.loc.start,"Gratuitous parentheses around expression.")}function c(e){o(e.argument)&&i(e.argument)>=i(e)&&l(e.argument)}function p(e){o(e.callee)&&i(e.callee)>=i(e)&&("CallExpression"!==e.type||"FunctionExpression"!==e.callee.type||s(e.callee))&&l(e.callee),1===e.arguments.length?s(e.arguments[0])&&i(e.arguments[0])>=i({type:"AssignmentExpression"})&&l(e.arguments[0]):[].forEach.call(e.arguments,function(e){o(e)&&i(e)>=i({type:"AssignmentExpression"})&&l(e)})}function u(e){var t=i(e);o(e.left)&&i(e.left)>=t&&l(e.left),o(e.right)&&i(e.right)>t&&l(e.right)}var d="functions"!==e.options[0];return{ArrayExpression:function(e){[].forEach.call(e.elements,function(e){e&&o(e)&&i(e)>=i({type:"AssignmentExpression"})&&l(e)})},ArrowFunctionExpression:function(e){if("BlockStatement"!==e.body.type){if("ObjectExpression"!==e.body.type&&o(e.body)&&i(e.body)>=i({type:"AssignmentExpression"}))return void l(e.body);if("ObjectExpression"===e.body.type&&s(e.body))return void l(e.body)}},AssignmentExpression:function(e){o(e.right)&&i(e.right)>=i(e)&&l(e.right)},BinaryExpression:u,CallExpression:p,ConditionalExpression:function(e){o(e.test)&&i(e.test)>=i({type:"LogicalExpression",operator:"||"})&&l(e.test),o(e.consequent)&&i(e.consequent)>=i({type:"AssignmentExpression"})&&l(e.consequent),o(e.alternate)&&i(e.alternate)>=i({type:"AssignmentExpression"})&&l(e.alternate)},DoWhileStatement:function(e){s(e.test)&&l(e.test)},ExpressionStatement:function(t){var n;o(t.expression)&&(n=e.getFirstToken(t.expression),"{"===n.value&&"ObjectExpression"!==t.expression.type||"function"===n.value&&"FunctionExpression"!==t.expression.type||"class"===n.value&&"ClassExpression"!==t.expression.type||l(t.expression))},ForInStatement:function(e){o(e.right)&&l(e.right)},ForOfStatement:function(e){o(e.right)&&l(e.right)},ForStatement:function(e){e.init&&o(e.init)&&l(e.init),e.test&&o(e.test)&&l(e.test),e.update&&o(e.update)&&l(e.update)
},IfStatement:function(e){s(e.test)&&l(e.test)},LogicalExpression:u,MemberExpression:function(t){o(t.object)&&i(t.object)>=i(t)&&(t.computed||!("Literal"===t.object.type&&"number"==typeof t.object.value&&/^[0-9]+$/.test(e.getFirstToken(t.object).value)||"Literal"===t.object.type&&t.object.regex))&&("FunctionExpression"!==t.object.type&&"ClassExpression"!==t.object.type||!a(t)||s(t.object))&&l(t.object),t.computed&&o(t.property)&&l(t.property)},NewExpression:p,ObjectExpression:function(e){[].forEach.call(e.properties,function(e){var t=e.value;t&&o(t)&&i(t)>=i({type:"AssignmentExpression"})&&l(t)})},ReturnStatement:function(e){!e.argument||!o(e.argument)||"Literal"===e.argument.type&&e.argument.regex||l(e.argument)},SequenceExpression:function(e){[].forEach.call(e.expressions,function(t){o(t)&&i(t)>=i(e)&&l(t)})},SwitchCase:function(e){e.test&&o(e.test)&&l(e.test)},SwitchStatement:function(e){s(e.discriminant)&&l(e.discriminant)},ThrowStatement:function(e){o(e.argument)&&l(e.argument)},UnaryExpression:c,UpdateExpression:c,VariableDeclarator:function(e){e.init&&o(e.init)&&i(e.init)>=i({type:"AssignmentExpression"})&&("Literal"!==e.init.type||!e.init.regex)&&l(e.init)},WhileStatement:function(e){s(e.test)&&l(e.test)},WithStatement:function(e){s(e.object)&&l(e.object)}}},e.exports.schema=[{"enum":["all","functions"]}],e.exports}),define("eslint/lib/rules/no-invalid-regexp",["esprima/esprima","module"],function(e,t){return t.exports=function(t){function n(e){return e&&"Literal"===e.type&&"string"==typeof e.value}function r(r){if("Identifier"===r.callee.type&&"RegExp"===r.callee.name&&n(r.arguments[0])){var o=n(r.arguments[1])?r.arguments[1].value:"";try{void new RegExp(r.arguments[0].value)}catch(s){t.report(r,s.message)}if(o)try{var a=e.parse("/./"+o,{ecmaFeatures:t.ecmaFeatures});if(a.body.length>0){var i=a.body[0],l=i.expression;l&&null===l.value&&t.report(r,"Invalid flags supplied to RegExp constructor '"+o+"'")}}catch(c){t.report(r,"Invalid flags supplied to RegExp constructor '"+o+"'")}}}return{CallExpression:r,NewExpression:r}},t.exports.schema=[],t.exports}),define("eslint/lib/rules/no-negated-in-lhs",["require"],function(e){return e.exports=function(e){return{BinaryExpression:function(t){"in"===t.operator&&"UnaryExpression"===t.left.type&&"!"===t.left.operator&&e.report(t,"The `in` expression's left operand is negated")}}},e.exports.schema=[],e.exports}),define("eslint/lib/rules/no-obj-calls",["require"],function(e){return e.exports=function(e){return{CallExpression:function(t){if("Identifier"===t.callee.type){var n=t.callee.name;("Math"===n||"JSON"===n)&&e.report(t,"'{{name}}' is not a function.",{name:n})}}}},e.exports.schema=[],e.exports}),define("eslint/lib/rules/no-self-compare",["require"],function(e){return e.exports=function(e){return{BinaryExpression:function(t){var n=["===","==","!==","!=",">","<",">=","<="];n.indexOf(t.operator)>-1&&("Identifier"===t.left.type&&"Identifier"===t.right.type&&t.left.name===t.right.name||"Literal"===t.left.type&&"Literal"===t.right.type&&t.left.value===t.right.value)&&e.report(t,"Comparing to itself is potentially pointless.")}}},e.exports.schema=[],e.exports}),define("eslint/lib/rules/no-irregular-whitespace",["require"],function(e){return e.exports=function(e){function t(e){var t=e.loc.start,n=e.loc.end;i=i.filter(function(e){var r=e[1];return r.line>=t.line&&r.line<=n.line&&r.column>=t.column&&(r.column<=n.column||r.line<n.line)?!1:!0})}function n(e){"string"==typeof e.value&&(e.raw.match(s)||e.raw.match(a))&&t(e)}function r(t){var n=e.getSourceLines();n.forEach(function(e,n){for(var r,o,a=n+1;null!==(o=s.exec(e));)r={line:a,column:o.index},i.push([t,r,"Irregular whitespace not allowed"])})}function o(t){for(var n,r,o,s=e.getSource(),l=e.getSourceLines(),c=s.match(/\r\n|\r|\n|\u2028|\u2029/g),p=-1;null!==(o=a.exec(s));)n=c.indexOf(o[0],p+1)||0,r={line:n+1,column:l[n].length},i.push([t,r,"Irregular whitespace not allowed"]),p=n}var s=/[\u0085\u00A0\ufeff\f\v\u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u202f\u205f\u3000]+/gm,a=/[\u2028\u2029]/gm,i=[];return{Program:function(e){r(e),o(e)},Identifier:n,Literal:n,"Program:exit":function(){i.forEach(function(t){e.report.apply(e,t)})}}},e.exports.schema=[],e.exports}),define("eslint/lib/load-rules-async",["./util","javascript/logger","javascript/finder","i18n!javascript/nls/problems","estraverse/estraverse","orion/editor/stylers/application_javascript/syntax","./rules/accessor-pairs","./rules/no-control-regex","./rules/no-duplicate-case","./rules/no-else-return","./rules/no-empty-character-class","./rules/no-empty-label","./rules/no-eq-null","./rules/no-extra-boolean-cast","./rules/no-extra-parens","./rules/no-invalid-regexp","./rules/no-negated-in-lhs","./rules/no-obj-calls","./rules/no-self-compare","./rules/no-irregular-whitespace"],function(e,t,n,r,o,s,a,i,l,c,p,u,d,h,f,m,g,b,y,v){function w(e,t){for(var n=0;n<e.length;n++)t[e[n]]=!0}function S(e,t){if("string"==typeof e.value&&e.value.length>0){if("use strict"===e.value.toLowerCase())return;if(/^(?:[\.,-\/#!$%\^&\*;:{}=\-_`~()@\+\?><\[\]\+])$/.test(e.value))return;if(/^(?:==|!=|===|!==|=>)$/.test(e.value))return;if(e.parent)switch(e.parent.type){case"UnaryExpression":case"MemberExpression":case"SwitchCase":return;case"BinaryExpression":if("+"!==e.parent.operator)return;break;case"Property":if(e.parent.key===e)return;var n=e.parent.parent.parent;if(n&&"CallExpression"===n.type&&n.callee&&"define"===n.callee.name)return;break;case"NewExpression":case"CallExpression":var r=e.parent.callee;if(r){if("MemberExpression"===r.type&&r.property&&x[r.property.name])return;if(x[r.name])return}break;case"ArrayExpression":if(n=e.parent.parent,"CallExpression"===n.type&&("define"===n.callee.name||"require"===n.callee.name||"requirejs"===n.callee.name))return}var o=e.loc.end.line;t[o]||(t[o]=[]),t[o].push(e)}}var _={curly:function(e){function n(n){try{switch(n.type){case"IfStatement":n.consequent&&"BlockStatement"!==n.consequent.type&&e.report(n.consequent,r.curly,null),n.alternate&&"BlockStatement"!==n.alternate.type&&"IfStatement"!==n.alternate.type&&e.report(n.alternate,r.curly,null);break;case"DoWhileStatement":case"WhileStatement":case"WithStatement":case"ForStatement":case"ForInStatement":case"ForOfStatement":n.body&&"BlockStatement"!==n.body.type&&e.report(n.body,r.curly,null)}}catch(o){t.log(o)}}return{IfStatement:n,WhileStatement:n,ForStatement:n,ForInStatement:n,ForOfStatement:n,WithStatement:n,DoWhileStatement:n}},eqeqeq:function(e){function n(e,t){for(var n=e.getTokens(t),r=n.length,o=t.operator,s=0;r>s;s++){var a=n[s];if(a.value===o)return a}return null}function o(e){return e&&e.type?"Literal"===e.type&&null===e.value||"Identifier"===e.type&&"undefined"===e.name:!1}return{BinaryExpression:function(s){try{if(o(s.left)||o(s.right))return;var a=s.operator,i=null;"=="===a?(i="===",e.report(s,r.eqeqeq,{0:i,1:a},n(e,s))):"!="===a&&(i="!==",e.report(s,r.eqeqeq,{0:i,1:a},n(e,s)))}catch(l){t.log(l)}}}},"missing-doc":function(e){function n(e){if(e&&e.leading){var t=e.leading.length;return t>0&&"Block"===e.leading[t-1].type}return!1}function o(o){try{var s,a;switch(o.type){case"Property":if(o.value&&"FunctionExpression"===o.value.type&&(s=e.getComments(o),(!s||s.leading.length<1)&&(s=e.getComments(o.key)),!n(s))){switch(o.key.type){case"Identifier":a=o.key.name;break;case"Literal":a=o.key.value}e.report(o.key,r["missing-doc"],{0:a},{type:"expr"})}break;case"FunctionDeclaration":s=e.getComments(o),(!s||s.leading.length<1)&&(s=e.getComments(o.id)),n(s)||e.report(o.id,r["missing-doc"],{0:o.id.name},{type:"decl"});break;case"ExpressionStatement":if(o.expression&&"AssignmentExpression"===o.expression.type){var i=o.expression;i.right&&"FunctionExpression"===i.right.type&&i.left&&"MemberExpression"===i.left.type&&(s=e.getComments(o),(!s||s.leading.length<1)&&(s=e.getComments(i.left)),n(s)||(a=i.left.computed===!0?i.left.property.value:i.left.property.name,e.report(i.left.property,r["missing-doc"],{0:a},{type:"expr"})))}}}catch(l){t.log(l)}}return{Property:o,FunctionDeclaration:o,ExpressionStatement:o}},"new-parens":function(e){return{NewExpression:function(n){try{if(n.callee){var o=e.getTokens(n.callee,0,1);if(o&&o.length>0){var s=o[o.length-1];("Punctuator"!==s.type||"("!==s.value)&&e.report(n.callee,r["new-parens"],null,o[0])}}}catch(a){t.log(a)}}}},"no-caller":function(e){return{MemberExpression:function(t){var o=n.findParentFunction(t);if(o){var s=t.object;if(!s||"arguments"!==s.name||"Identifier"!==s.type)return;var a=t.property,i=a.name?a.name:a.value;("callee"===i||"caller"===i)&&e.report(a,r["no-caller"],{0:i})}}}},"no-comma-dangle":function(e){return{ObjectExpression:function(t){var n=e.getLastToken(t,1);n&&","===n.value&&e.report(t,r["no-comma-dangle"],null,n)}}},"no-cond-assign":function(e){function t(t){var n=t.parent.type;return a[n]&&"ForStatement"!==n?"("===e.getTokenBefore(t,1).value:"("===e.getTokenBefore(t).value}function n(e){switch(e.type){case"FunctionExpression":case"ObjectExpression":case"CallExpression":case"ArrayExpression":return!0;default:return!1}}function s(s){var a=[];if(null!==s.test){s.test.parent=s,o.traverse(s.test,{enter:function(e,t){return e.range[0]>s.test.range[1]?o.VisitorOption.Break:n(e)?o.VisitorOption.Skip:(t&&(e.parent=t),void(e&&"AssignmentExpression"===e.type&&a.push(e)))}});var i=a.length;if(i>0)for(var l=0;i>l;l++){var c=a[l];t(c)||(c.range[0]=c.left.range[0],e.report(c,r["no-cond-assign"]))}}}var a={IfStatement:!0,DoWhileStatement:!0,WhileStatement:!0,ForStatement:!0};return{IfStatement:s,WhileStatement:s,ForStatement:s,DoWhileStatement:s}},"no-console":function(e){return{MemberExpression:function(t){"console"===t.object.name&&e.env&&e.env.browser&&e.report(t.object,r["no-console"])}}},"no-constant-condition":function(e){function t(e){switch(e.type){case"Literal":case"ObjectExpression":case"FunctionExpression":case"ArrayExpression":return!0;case"BinaryExpression":case"LogicalExpression":return t(e.left)&&t(e.right);case"UnaryExpression":return t(e.argument);default:return!1}}function n(n){n&&n.test&&t(n.test)&&e.report(n.test,r["no-constant-condition"])}return{IfStatement:n,WhileStatement:n,DoWhileStatement:n,ForStatement:n,ConditionalExpression:n}},"no-debugger":function(e){return{DebuggerStatement:function(n){try{e.report(n,r["no-debugger"],null,e.getTokens(n)[0])}catch(o){t.log(o)}}}},"no-dupe-keys":function(e){return{ObjectExpression:function(n){try{var o=n.properties;if(o&&o.length>0)for(var s=o.length,a=Object.create(null),i=0;s>i;i++){var l=o[i];if("init"===l.kind){var c=l.key.name?l.key.name:l.key.value;Object.prototype.hasOwnProperty.call(a,c)?e.report(l,r["no-dupe-keys"],{0:c},e.getTokens(l)[0]):a[c]=1}}}catch(p){t.log(p)}}}},"no-empty-block":function(e){var n;return{Program:function(e){n=e.comments},BlockStatement:function(o){try{if(o.body.length<1){for(var s=0;s<n.length;s++){var a=n[s].range;if(a[0]>=o.range[0]&&a[1]<=o.range[1])return}e.report(o,r["no-empty-block"])}}catch(i){t.log(i)}}}},"no-eval":function(e){return{CallExpression:function(n){try{var o=n.callee.name;if(!o)return;"eval"===o&&e.report(n.callee,r["no-eval"],{0:"'eval'"},e.getTokens(n.callee)[0])}catch(s){t.log(s)}}}},"no-extra-semi":function(e){return{EmptyStatement:function(n){try{var o=e.getTokens(n),s=o[o.length-1];s&&"Punctuator"===s.type&&";"===s.value&&e.report(n,r["no-extra-semi"],null,s)}catch(a){t.log(a)}}}},"no-fallthrough":function(n){function o(t){if(t.consequent){var n=t.consequent.slice(0);if(n.length>0&&"BlockStatement"===n[0].type){var r=n.shift();r.body.length>0&&(n=[].concat(n,r.body))}if(n.length<1)return!1;for(var o=null,s=0;s<n.length;s++)if(o=n[s],e.returnableStatement(o))return!1;return!0}return!1}return{SwitchStatement:function(e){try{if(e.cases&&e.cases.length>1){var s=e.cases.length;e:for(var a=0;s>a&&a+1!==s;a++)if(o(e.cases[a])){var i=e.cases[a+1];if(i.test)i.range[1]=i.test.range[1];else{var l=n.getTokens(i);l&&l.length>0&&(i.range[1]=l[0].range[1])}var c=i.leadingComments;if(!c&&i.test&&(c=i.test.leadingComments),c)for(var p=null,u=0;u<c.length;u++)if(p=c[u],/\$?falls?\s?through\$?/i.test(p.value.toLowerCase()))continue e;n.report(i,r["no-fallthrough"])}}}catch(d){t.log(d)}}}},"no-implied-eval":function(n){return{CallExpression:function(o){try{var s=o.callee.name;if(!s)return;if(("setInterval"===s||"setTimeout"===s)&&o.arguments.length>0){var a=o.arguments[0];if("Literal"===a.type)n.report(o.callee,r["no-eval"],{0:"Implicit 'eval'"},n.getTokens(o.callee)[0]);else if("Identifier"===a.type){var i=n.getScope(),l=e.getDeclaration(a,i);if(l&&l.defs&&l.defs.length){var c=l.defs[0],p=c.node;"Variable"===c.type&&p&&"VariableDeclarator"===p.type&&p.init&&"Literal"===p.init.type&&n.report(o.callee,r["no-eval"],{0:"Implicit 'eval'"},n.getTokens(o.callee)[0])}}}}catch(u){t.log(u)}}}},"no-iterator":function(e){return{MemberExpression:function(t){null!==t.property&&(t.computed?"__iterator__"===t.property.value&&e.report(t.property,r["no-iterator"]):"__iterator__"===t.property.name&&e.report(t.property,r["no-iterator"]))}}},"no-proto":function(e){return{MemberExpression:function(t){null!==t.property&&(t.computed?"__proto__"===t.property.value&&e.report(t.property,r["no-proto"]):"__proto__"===t.property.name&&e.report(t.property,r["no-proto"]))}}},"no-jslint":function(e){return{Program:function(n){try{var o,s=n.comments;if(s&&(o=s.length)&&s.length>0)for(var a=0;o>a;a++){var i=s[a];if("Block"===i.type){var l=/^\s*(js[l|h]int)(\s+\w+:\w+)+/gi.exec(i.value);if(l){var c=l[1];if(c.length<1)continue;var p=2+i.value.indexOf(c)+i.range[0],u=p+c.length;e.report({type:"BlockComment",range:[p,u],loc:i.loc},r["no-jslint"],{0:c})}}}}catch(d){t.log(d)}}}},"no-new-array":function(e){function t(t){var n=t.callee;if(n&&"Array"===n.name){var o=t.arguments;o.length>1?e.report(n,r["no-new-array"]):1===o.length&&"Literal"===o[0].type&&"number"!=typeof o[0].value&&e.report(n,r["no-new-array"])}}return{NewExpression:t,CallExpression:t}},"no-new-func":function(e){return{NewExpression:function(t){var n=t.callee;n&&"Function"===n.name&&e.report(n,r["no-new-func"])}}},"no-new-object":function(e){return{NewExpression:function(t){var n=t.callee;n&&"Object"===n.name&&e.report(n,r["no-new-object"])}}},"no-new-wrappers":function(e){var t=["String","Number","Math","Boolean","JSON"];return{NewExpression:function(n){var o=n.callee;o&&t.indexOf(o.name)>-1&&e.report(o,r["no-new-wrappers"],[o.name])}}},"no-with":function(e){return{WithStatement:function(t){e.report(t,r["no-with"],null,e.getFirstToken(t))}}},"missing-nls":function(e){function t(t,n){var o=Object.create(null);o.indexOnLine=n,e.report(t,r["missing-nls"],{0:t.value,data:o})}return{Literal:function(t){S(t,e._linesWithStringLiterals)},Program:function(){e._linesWithStringLiterals=Object.create(null),e._isMissingNLSActive=!0},"Program:exit":function(n){if(e._isMissingNLSActive=!1,e._linesWithStringLiterals){var r=n.comments,o={};if(Array.isArray(r))for(var s=0;s<r.length;s++){var a=r[s];if("line"===a.type.toLowerCase()){var i=a.loc.end.line;o[i]="//"+a.value}}for(i in e._linesWithStringLiterals){var l=e._linesWithStringLiterals[i];if(l){a=o[i];var c,p=/\/\/\$NON-NLS-([0-9])+\$/g;if(r=[],a)for(;null!==(c=p.exec(a));)r.push(c[1]);for(var u=0;u<l.length;u++){c=!1;for(var d=0;d<r.length;d++){if(r[d]===""+(u+1)){r[d]=null,c=!0;break}if(0===u&&"0"===r[d]){r[d]=null,c=!0;break}}c||t(l[u],u)}}}}}}},"unnecessary-nls":function(e){function t(t,n,o){e.report({range:t,loc:{start:t[0],end:t[1]},value:n},r["unnecessary-nls"],{data:{nlsComment:o}})}return{Literal:function(t){e._isMissingNLSActive||S(t,e._linesWithStringLiterals)},Program:function(){e._isMissingNLSActive||(e._linesWithStringLiterals=Object.create(null))},"Program:exit":function(n){var r,o,s,a,i,l=n.comments,c={};if(Array.isArray(l))for(var p=0;p<l.length;p++){var u=l[p];"line"===u.type.toLowerCase()&&(s=u.loc.end.line,c[s]=u)}var d=/(?:^|(\/\/))\$NON-NLS-([0-9])+\$/g;if(e._linesWithStringLiterals)for(s in e._linesWithStringLiterals){var h=e._linesWithStringLiterals[s];if(h){if(u=c[s],delete c[s],i=[],u)for(;null!==(a=d.exec(u.value));)i.push(a);for(var f=0;f<i.length;f++){a=i[f];for(var m=!1,g=0;g<h.length;g++){if(a[2]===""+(g+1)){m=!0;break}if(0===g&&"0"===a[2]){m=!0;break}}m||(o=a[1]?a[0]:"//"+a[0],r=u.range[0]+a.index,a[1]&&(r+=2),t([r,r+o.length],o,a[0]))}}}for(s in c)if(u=c[s]){var b,y=u.range[0]-1,v=n.sourceFile.text,w=0>y;if(v)for(;y>=0&&(b=v.charAt(y)).match(/\s/);){if("\n"===b||0===y){w=!0;break}y--}for(;null!==(a=d.exec(u.value))&&!(w&&a.index>0);)o=a[1]?a[0]:"//"+a[0],r=u.range[0]+a.index,a[1]&&(r+=2),t([r,r+o.length],o,a[0])}}}},"no-redeclare":function(e){function n(t,n){e.report(t,r["no-redeclare"],{0:n})}function o(){try{var r=e.getScope();r.variables.forEach(function(e){e.defs.slice(1).forEach(function(e){n(e.name,e.name.name)})})}catch(o){t.log(o)}}return{Program:o,FunctionDeclaration:o,FunctionExpression:o,ArrowFunctionExpression:o}},"no-regex-spaces":function(e){function t(t){for(var n=/( {2,})/g,o=null;null!==(o=n.exec(t.raw));){var s=t.range[0]+o.index,a=o[0].length;e.report({type:"Literal",range:[s,s+a],loc:t.loc},r["no-regex-spaces"],{0:a})}}return{Literal:function(n){n.parent&&"NewExpression"===n.parent.type&&"RegExp"===n.parent.callee.name&&t(n);var r=e.getFirstToken(n);r&&"RegularExpression"===r.type&&t(n)}}},"no-reserved-keys":function(e){return{ObjectExpression:function(t){if(t.properties)for(var n=0;n<t.properties.length;n++){var o=t.properties[n];"Identifier"===o.key.type&&s.keywords.indexOf(o.key.name)>-1&&e.report(o.key,r["no-reserved-keys"])}}}},"no-shadow":function(n){function o(e,t){t.variables.forEach(function(n){var r=n.name;n.defs.length&&(Object.prototype.hasOwnProperty.call(e,r)||(e[n.name]=t))})}function s(t){for(var n=t.upper,r=Object.create(null);n&&!n._symbols;)n=n.upper;return n&&e.mixin(r,n._symbols),o(r,t),t._symbols=r,r}function a(e,t){n.report(e,r["no-shadow"],{0:t})}function i(e){return e.defs.some(function(e){return"Parameter"===e.type})}function l(e){try{var r=n.getScope();if("FunctionExpression"===e.type&&e.id&&e.id.name&&(r=r.upper,"global"===r.type))return;var o=s(r);r.variables.forEach(function(e){if(e.defs.length){var t;(t=o[e.name])&&t!==r&&!i(e)&&a(e.defs[0].name,e.name)}})}catch(l){t.log(l)}}return{Program:l,FunctionDeclaration:l,FunctionExpression:l,ArrowFunctionExpression:l}},"no-shadow-global":function(e){function t(t){var o=e.env?e.env:{};switch(o.builtin=!0,t.type){case"VariableDeclarator":o[n.findESLintEnvForMember(t.id.name)]&&e.report(t.id,r["no-shadow-global"],{0:t.id.name});break;case"FunctionExpression":case"FunctionDeclaration":case"ArrowFunctionExpression":t.params.forEach(function(t){"Identifier"===t.type&&o[n.findESLintEnvForMember(t.name)]&&e.report(t,r["no-shadow-global-param"],{0:t.name,nls:"no-shadow-global-param"})})}}return{FunctionExpression:t,FunctionDeclaration:t,ArrowFunctionExpression:t,VariableDeclarator:t}},"no-sparse-arrays":function(e){return{ArrayExpression:function(t){t.elements.indexOf(null)>-1&&e.report(t,r["no-sparse-arrays"])}}},"no-throw-literal":function(e){return{ThrowStatement:function(n){try{var o=n.argument;switch(o.type){case"Identifier":if("undefined"!==o.name)return;case"Literal":case"ObjectExpression":case"ArrayExpression":e.report(o,r["no-throw-literal"])}}catch(s){t.log(s)}}}},"no-undef":function(e){function o(e){return e.defs.every(function(e){return"ImplicitGlobalVariable"===e.type})}function s(e,t){var n=null;return e.variables.some(function(e){return e.name!==t.identifier.name||o(e)&&!Object.hasOwnProperty.call(e,"writeable")?!1:(n=e,!0)}),n}return{Program:function(){try{var o=e.getScope();o.through.forEach(function(t){var a=s(o,t),i=t.identifier.name;if(a)t.isWrite()&&a.writeable===!1&&e.report(t.identifier,r["no-undef-readonly"],{0:i,nls:"no-undef-readonly"});else{var l=n.findESLintEnvForMember(i),c=l?"-inenv":"",p="no-undef-defined";e.report(t.identifier,r["no-undef-defined"],{0:i,nls:p,pid:p+c})}})}catch(a){t.log(a)}}}},"no-undef-init":function(e){return{VariableDeclarator:function(t){t.init&&"Identifier"===t.init.type&&"undefined"===t.init.name&&e.report(t.init,r["no-undef-init"])}}},"no-unreachable":function(n){function o(e){switch(e.type){case"FunctionDeclaration":case"VariableDeclaration":return!0}return!1}function s(s){try{var a=0;for(a;a<s.length&&!e.returnableStatement(s[a]);a++);for(a++;a<s.length;a++){var i=s[a];o(i)||"EmptyStatement"===i.type||n.report(i,r["no-unreachable"])}}catch(l){t.log(l)}}return{BlockStatement:function(e){s(e.body)},SwitchCase:function(e){s(e.consequent)}}},"no-unused-params":function(e){function n(e){if(e&&e.leadingComments)for(var t=e.leadingComments.length,n=0;t>n;n++){var r=e.leadingComments[n];if("Block"===r.type&&/\s*(?:@(callback|public))\s+/.test(r.value))return!0}return!1}function o(o){try{var s=e.getScope(),a=s.childScopes;s.functionExpressionScope&&a&&a.length&&(s=a[0]),s.variables.forEach(function(t){if(t.defs.length&&"Parameter"===t.defs[0].type){var s=t.defs[0].name;if(!t.references.length){var a="no-unused-params";if("FunctionExpression"===o.type){if(a+="-expr",n(o)||o.params&&o.params.length>0&&n(o.params[0]))return;var i=o.parent;switch(i.type){case"Property":if(n(i)||n(i.key))return;break;case"MemberExpression":if(i=i.parent,"CallExpression"===i.type&&n(i))return;break;case"AssignmentExpression":var l=i.left;if("MemberExpression"===l.type){if(n(l))return}else if("Identifier"===l.type&&n(l))return;break;case"VariableDeclarator":if(n(i.id))return}}else"ArrowFunctionExpression"===o.type&&(a+="-arrow");e.report(s,r["no-unused-params"],{0:s.name,pid:a})}}})}catch(i){t.log(i)}}return{FunctionDeclaration:o,FunctionExpression:o,ArrowFunctionExpression:o}},"no-unused-vars":function(e){function n(e){return e.isRead()}function o(e,t){var n=t.references;return"global"===e.type&&(n=n.concat(e.through.filter(function(e){return e.identifier.name===t.name}))),n}function s(){try{var s=e.getScope();s.variables.forEach(function(t){if(t.defs.length&&"Parameter"!==t.defs[0].type){var a=t.defs[0].node,i=o(s,t),l=a.id;i.length?i.some(n)||e.report(l,r["no-unused-vars-unread"],{0:l.name,nls:"no-unused-vars-unread"}):"FunctionDeclaration"===a.type?e.report(l,r["no-unused-vars-unused-funcdecl"],{0:l.name,nls:"no-unused-vars-unused-funcdecl"}):e.report(l,r["no-unused-vars-unused"],{0:l.name,nls:"no-unused-vars-unused"})}})}catch(a){t.log(a)}}return{Program:s,FunctionDeclaration:s,FunctionExpression:s,ArrowFunctionExpression:s}},"no-use-before-define":function(n){function o(e,t){return"boolean"==typeof e?e:t}function s(){try{var o=n.getScope();o.references.forEach(function(t){var s,a=e.getDeclaration(t,o),c=t.identifier,p=c.name;if(a&&(s=a.defs).length&&c.range[0]<s[0].node.range[0]){var u=s[0].type;if(!l&&"FunctionName"===u||!i&&"Variable"===u)return;n.report(c,r["no-use-before-define"],{0:p})}})}catch(s){t.log(s)}}var a=n.options,i=o(a[0],!0),l=o(a[1],!1);return{Program:s,FunctionExpression:s,FunctionDeclaration:s}},radix:function(e){function t(t){var n=t.callee;if("parseInt"===n.name&&"Identifier"===n.type&&t.arguments.length<2){for(var o=!1,s=e.getScope();s&&!(o=s.variables.some(function(e){return"parseInt"===e.name&&e.defs.length}));s=s.upper);o||e.report(n,r.radix,null)}}return{CallExpression:t}},"no-mixed-spaces-and-tabs":function(e){function t(e){i.push(e.loc)}function n(n){var s=e.getSourceLines(),a=e.getAllComments();a.forEach(t),s.forEach(function(t,s){var a=l.exec(t);if(null!==a){var c=s+1,p=a.index+1;if(null!==o(i,{line:c,column:p}))return;e.report(n,{line:c,column:p},r["no-mixed-spaces-and-tabs"])}})}function o(e,t){for(var n,r=0,o=e.length-1;o>=r;){n=Math.floor(r+(o-r)/2);var i=e[n];if(s(t,i))return i;a(t,i)?o=n-1:r=n+1}return null}function s(e,t){var n=t.start,r=t.end,o=e.line,s=e.column;if(n.line<o){if(r.line>o)return!0;if(r.line===o)return r.column>s}else if(n.line===o&&n.column<s){if(r.line>o)return!0;if(r.line===o)return r.column>s}return!1}function a(e,t){var n=t.start,r=e.line,o=e.column;return r<n.line?!0:r===n.line?o<n.column:!1}var i=[],l=/^(?=[\t ]* \t)/;return{"Program:exit":n}},semi:function(e){function n(n){try{var o=e.getTokens(n),s=o.length,a=o[s-1];if(a&&"Punctuator"===a.type&&";"===a.value)return;e.report(n,r.semi,null,a)}catch(i){t.log(i)}}function o(r){try{var o=e.getAncestors(r),s=o[o.length-1],a=s.type;if("ForStatement"===a&&s.init===r||"ForInStatement"===a&&s.left===r)return;n(r)}catch(i){t.log(i)}}return{VariableDeclaration:o,ExpressionStatement:n,ReturnStatement:n,ThrowStatement:n,BreakStatement:n,ContinueStatement:n}},"use-isnan":function(e){return{BinaryExpression:function(n){try{"Identifier"===n.left.type&&"NaN"===n.left.name?e.report(n.left,r["use-isnan"],null,n.left):"Identifier"===n.right.type&&"NaN"===n.right.name&&e.report(n.right,r["use-isnan"],null,n.right)}catch(o){t.log(o)}}}},"valid-typeof":function(e){var t=["undefined","object","function","boolean","number","string","symbol"],n=["==","===","!=","!=="];return{UnaryExpression:function(o){if("typeof"===o.operator){var s=o.parent;if(s&&"BinaryExpression"===s.type&&n.indexOf(s.operator)>-1){var a=s.left===o?s.right:s.left;("Literal"!==a.type||t.indexOf(a.value)<0)&&e.report(a,r["valid-typeof"])}}}}},"accessor-pairs":a,"no-control-regex":i,"no-duplicate-case":l,"no-empty-character-class":p,"no-extra-boolean-cast":h,"no-extra-parens":f,"no-invalid-regexp":m,"no-negated-in-lhs":g,"no-obj-calls":b,"no-eq-null":d,"no-else-return":c,"no-empty-label":u,"no-self-compare":y,"no-irregular-whitespace":v,"no-self-assign":function(e){function t(t){var n=t.init,o=t.id;n&&"Identifier"===n.type&&"Identifier"===o.type&&o.name===n.name&&e.report(t,r["no-self-assign"])}function n(t){var n=t.left,o=t.right;"Identifier"===n.type&&"Identifier"===o.type&&n.name===o.name&&e.report(t,r["no-self-assign"])}return{AssignmentExpression:n,VariableDeclarator:t}},"type-checked-consistent-return":function(e){function t(){a.push({})}function n(){a.pop()}function s(e){if(e.argument){var t=e.argument.type;switch(t){case"Literal":return null===e.argument.value?"null":typeof e.argument.value;case"BinaryExpression":var n=null;return o.traverse(e.argument,{enter:function(e){if("Literal"===e.type&&null!==e.value)if(null===n)n=typeof e.value;else switch(n){case"object":return o.VisitorOption.Break;case"string":return o.VisitorOption.Break;case"number":var t=typeof e.value;"number"!==t&&(n=t)}}}),null!==n?n:"object";default:return"object"}}return"undefined"}var a=[];return{Program:t,FunctionDeclaration:t,FunctionExpression:t,ArrowFunctionExpression:t,"Program:exit":n,"FunctionDeclaration:exit":n,"FunctionExpression:exit":n,"ArrowFunctionExpression:exit":n,ReturnStatement:function(t){var n=a[a.length-1],o="type"in n;if(o){var i=s(t),l=n.type;if(l!==i)switch(l){case"null":"object"!==i&&"string"!==i&&e.report(t,r["inconsistent-return"],{type1:l,type2:i});break;case"string":"null"!==i&&e.report(t,r["inconsistent-return"],{type1:l,type2:i});break;case"object":"null"!==i&&e.report(t,r["inconsistent-return"],{type1:l,type2:i});break;default:e.report(t,r["inconsistent-return"],{type1:l,type2:i})}}else n.type=s(t)}}}},x=Object.create(null);return w(["require","requirejs","importScripts","define","Worker","SharedWorker","addEventListener","RegExp","removeEventListener"],x),{rules:_}}),define("eslint/lib/rules",["./load-rules-async","exports"],function(e,t){function n(e,t){o[e]=t}function r(){var t=e.rules;Object.keys(t).forEach(function(e){n(e,t[e])})}var o=Object.create(null);return t.define=n,t.load=r,t["import"]=function(e,t){Object.keys(e).forEach(function(r){var o=t+"/"+r,s=e[r];n(o,s)})},t.get=function(e){return o[e]},t.testClear=function(){o=Object.create(null)},r(),t}),define("eslint/lib/rule-fixer",[],function(){function e(e,t){return{range:[e,e],text:t}}function t(){Object.freeze(this)}return t.prototype={constructor:t,insertTextAfter:function(e,t){return this.insertTextAfterRange(e.range,t)},insertTextAfterRange:function(t,n){return e(t[1],n)},insertTextBefore:function(e,t){return this.insertTextBeforeRange(e.range,t)},insertTextBeforeRange:function(t,n){return e(t[0],n)},replaceText:function(e,t){return this.replaceTextRange(e.range,t)},replaceTextRange:function(e,t){return{range:e,text:t}},remove:function(e){return this.removeRange(e.range)},removeRange:function(e){return{range:e,text:""}}},t}),define("eslint/lib/rule-context",["./rule-fixer"],function(e){function t(t,r,o,s,a,i,l){Object.defineProperty(this,"env",{value:l}),Object.defineProperty(this,"id",{value:t}),Object.defineProperty(this,"options",{value:s}),Object.defineProperty(this,"settings",{value:a}),Object.defineProperty(this,"ecmaFeatures",{value:Object.create(i)}),Object.freeze(this.ecmaFeatures),n.forEach(function(e){this[e]=function(){return r[e].apply(r,arguments)}},this),this.report=function(n,s,a,i){var l,c=null;return 1===arguments.length?(l=n,"function"==typeof l.fix&&(c=l.fix(new e)),void r.report(t,o,l.node,l.loc||l.node.loc.start,l.message,l.data,c)):void r.report(t,o,n,s,a,i)},this.getSourceCode=function(){return r.getSourceCode()}}var n=["getAllComments","getAncestors","getComments","getDeclaredVariables","getFilename","getFirstToken","getFirstTokens","getJSDocComment","getLastToken","getLastTokens","getNodeByRangeIndex","getScope","getSource","getSourceLines","getTokenAfter","getTokenBefore","getTokenByRangeStart","getTokens","getTokensAfter","getTokensBefore","getTokensBetween","markVariableAsUsed","isMarkedAsUsed"];return t.prototype={constructor:t},t}),define("orion/EventTarget",[],function(){function e(){this._namedListeners={}}return e.prototype={dispatchEvent:function(e){if(!e.type)throw new Error("unspecified type");var t=this._namedListeners[e.type];return t&&t.forEach(function(t){try{"function"==typeof t?t(e):t.handleEvent(e)}catch(n){"undefined"!=typeof console&&console.log(n)}}),!e.defaultPrevented},addEventListener:function(e,t){("function"==typeof t||t.handleEvent)&&(this._namedListeners[e]=this._namedListeners[e]||[],this._namedListeners[e].push(t))},removeEventListener:function(e,t){var n=this._namedListeners[e];if(n)for(var r=0;r<n.length;r++)if(n[r]===t){1===n.length?delete this._namedListeners[e]:n.splice(r,1);break}}},e.prototype.constructor=e,e.attach=function(t){var n=new e;t.dispatchEvent=n.dispatchEvent.bind(n),t.addEventListener=n.addEventListener.bind(n),t.removeEventListener=n.removeEventListener.bind(n)},e}),define("eslint/lib/events",["orion/EventTarget","orion/objects"],function(e,t){function n(){this._eventTarget=new e}function r(e,t){if("function"!=typeof t)throw new Error("addListener only takes instances of Function");var r,s="undefined"!=typeof this._maxListeners?this._maxListeners:o;return 0!==s&&(r=n.listenerCount(this,e)>=s)&&"undefined"!=typeof console&&console.error("Possible EventEmitter memory leak: "+r+" listeners added."),this.emit("newListener",t),this._eventTarget.addEventListener(e,t),this}var o=10;return n.prototype.constructor=n,t.mixin(n.prototype,{_maxListeners:10,addListener:r,on:r,once:function(e,t){var n=this,r=function(){try{t.apply(this,Array.prototype.slice.call(arguments))}finally{n.removeListener(e,r)}};return this.addListener(e,r),this},removeListener:function(e,t){if("function"!=typeof t)throw new Error("removeListener only takes instances of Function");return this._eventTarget.removeEventListener(e,t),this.emit("removeListener",t),this},removeAllListeners:function(e){var t=this._eventTarget._namedListeners,n=this,r=function(e){var r=t[e];r&&(r.forEach(n.emit.bind(n,"removeListener")),delete t[e])};return"undefined"==typeof e?Object.keys(t).forEach(r):r(e),this},setMaxListeners:function(e){if("number"!=typeof e)throw new Error("setMaxListeners only takes a number");this._maxListeners=e},listeners:function(e){var t=this._eventTarget._namedListeners[e];return t?t.slice():[]},emit:function(e){var t=this._eventTarget._namedListeners[e];if(!t){if("error"===e)throw new Error("Uncaught, unspecified 'error' event.");return!1}var n=Array.prototype.slice.call(arguments,1),r=this;
return t.forEach(function(e){e.apply(r,n)}),!0}}),n.listenerCount=function(e,t){var n=e._eventTarget._namedListeners[t];return n?n.length:0},{EventEmitter:n}}),define("eslint/lib/token-store",[],function(){return function(e){function t(t,n){var r,s=[];for(r=Math.max(0,t);n>r&&o>r;r++)s.push(e[r]);return s}function n(e){var t=e.range[1],n=l[t];return"undefined"==typeof n&&(n=i[t]-1),isNaN(n)&&(n=o-1),n}var r,o,s,a={},i=Object.create(null),l=Object.create(null);for(r=0,o=e.length;o>r;r++)s=e[r].range,i[s[0]]=r,l[s[1]]=r;return a.getTokensBefore=function(e,n){var r=i[e.range[0]];return t(r-(n||0),r)},a.getTokenBefore=function(t,n){return e[i[t.range[0]]-(n||0)-1]},a.getTokensAfter=function(e,r){var o=n(e)+1;return t(o,o+(r||0))},a.getTokenAfter=function(t,r){return e[n(t)+(r||0)+1]},a.getTokens=function(e,r,o){return t(i[e.range[0]]-(r||0),n(e)+(o||0)+1)},a.getFirstTokens=function(e,r){var o=i[e.range[0]];return t(o,Math.min(n(e)+1,o+(r||0)))},a.getFirstToken=function(t,n){return e[i[t.range[0]]+(n||0)]},a.getLastTokens=function(e,r){var o=n(e)+1;return t(Math.max(i[e.range[0]],o-(r||0)),o)},a.getLastToken=function(t,r){return e[n(t)-(r||0)]},a.getTokensBetween=function(e,r,o){return o=o||0,t(n(e)+1-o,i[r.range[0]]+o)},a.getTokenByRangeStart=function(t){return e[i[t]]||null},a}}),define("eslint/lib/source-code",["./token-store","estraverse/estraverse","./eslint"],function(e,t,n){function r(e){if(!e.tokens)throw new Error("AST is missing the tokens array.");if(!e.comments)throw new Error("AST is missing the comments array.");if(!e.loc)throw new Error("AST is missing location information.");if(!e.range)throw new Error("AST is missing range information")}function o(e,t){if(e)for(var n=e.length-1;n>=0;n--)if("Block"===e[n].type&&"*"===e[n].value.charAt(0)){if(t-e[n].loc.end.line<=1)return e[n];break}return null}function s(e){return"ExportDefaultDeclaration"===e.type||"ExportNamedDeclaration"===e.type||"ExportAllDeclaration"===e.type||"ExportSpecifier"===e.type}function a(t,n){r(n),this.text=t,this.ast=n,this.lines=t.split(/\r\n|\r|\n|\u2028|\u2029/g),this.tokensAndComments=n.tokens.concat(n.comments).sort(function(e,t){return e.range[0]-t.range[0]});var o=e(n.tokens);Object.keys(o).forEach(function(e){this[e]=o[e]},this),Object.freeze(this),Object.freeze(this.lines)}return a.prototype={constructor:a,getText:function(e,t,n){return e?null!==this.text?this.text.slice(Math.max(e.range[0]-(t||0),0),e.range[1]+(n||0)):null:this.text},getLines:function(){return this.lines},getAllComments:function(){return this.ast.comments},getComments:function(e){var t=e.leadingComments||[],n=e.trailingComments||[];return"Program"===e.type&&0===e.body.length&&(t=e.comments),{leading:t,trailing:n}},getJSDocComment:function(e){var t=e.parent,n=e.loc.start.line;switch(e.type){case"FunctionDeclaration":return s(t)?o(t.leadingComments,n):o(e.leadingComments,n);case"ClassDeclaration":return o(e.leadingComments,n);case"ClassExpression":return o(t.parent.leadingComments,n);case"ArrowFunctionExpression":case"FunctionExpression":if("CallExpression"!==t.type&&"NewExpression"!==t.type){for(;t&&!t.leadingComments&&!/Function/.test(t.type);)t=t.parent;return t&&"FunctionDeclaration"!==t.type?o(t.leadingComments,n):null}default:return null}},getNodeByRangeIndex:function(e){var r=null;return t.traverse(this.ast,{enter:function(t,o){t.range[0]<=e&&e<t.range[1]?r=n.assign({parent:o},t):this.skip()},leave:function(e){e===r&&this["break"]()}}),r},isSpaceBetweenTokens:function(e,t){var n=this.text.slice(e.range[1],t.range[0]);return/\s/.test(n.replace(/\/\*.*?\*\//g,""))}},a}),define("eslint/lib/node-event-generator",[],function(){function e(e){this.emitter=e}return e.prototype={constructor:e,enterNode:function(e){this.emitter.emit(e.type,e)},leaveNode:function(e){this.emitter.emit(e.type+":exit",e)}},e}),define("eslint/lib/comment-event-generator",[],function(){function e(e,t,n,r){e.length>0&&e.forEach(function(e){var o=n.indexOf(e.loc);o>=0?n.splice(o,1):(n.push(e.loc),t.emit(e.type+r,e))})}function t(t,n){e(n,t.emitter,t.commentLocsEnter,"Comment")}function n(t,n){e(n,t.emitter,t.commentLocsExit,"Comment:exit")}function r(e,t){this.original=e,this.emitter=e.emitter,this.sourceCode=t,this.commentLocsEnter=[],this.commentLocsExit=[]}return r.prototype={constructor:r,enterNode:function(e){var n=this.sourceCode.getComments(e);t(this,n.leading),this.original.enterNode(e),t(this,n.trailing)},leaveNode:function(e){var t=this.sourceCode.getComments(e);n(this,t.trailing),this.original.leaveNode(e),n(this,t.leading)}},r}),define("eslint/lib/config-validator",["eslint/conf/environments","./rules","module"],function(e,t,n){function r(e){var n=t.get(e),r=n&&n.schema;return r?Array.isArray(r)?{type:"array",items:[{"enum":[0,1,2]}].concat(r),minItems:1,maxItems:r.length+1}:r:{type:"array",items:[{"enum":[0,1,2]}],minItems:1}}function o(e,t,n){var r,o=i.rules[e];if(o&&("number"==typeof t&&(t=[t]),o(t),o.errors))throw r=[n,":\n",'	Configuration for rule "',e,'" is invalid:\n'],o.errors.forEach(function(e){'data["0"]'===e.field?r.push('	Severity should be one of the following: 0 = off, 1 = warning, 2 = error (you passed "',e.value,'").\n'):r.push('	Value "',e.value,'" ',e.message,".\n")}),new Error(r.join(""))}function s(t,n){if(t){if(Array.isArray(t))throw new Error("Environment must not be an array");if("object"!=typeof t)throw new Error("Environment must be an object");Object.keys(t).forEach(function(t){if(!e[t]){var r=[n,":\n",'	Environment key "',t,'" is unknown\n'];throw new Error(r.join(""))}})}}function a(e,t){"object"==typeof e.rules&&Object.keys(e.rules).forEach(function(n){o(n,e.rules[n],t)}),s(e.env,t)}var i={rules:Object.create(null)};return n.exports={getRuleOptionsSchema:r,validate:a,validateRuleOptions:o},n.exports}),define("json!eslint/conf/replacements.json",function(){return{rules:{"generator-star":["generator-star-spacing"],"global-strict":["strict"],"no-comma-dangle":["comma-dangle"],"no-empty-class":["no-empty-character-class"],"no-extra-strict":["strict"],"no-reserved-keys":["quote-props"],"no-space-before-semi":["semi-spacing"],"no-wrap-func":["no-extra-parens"],"space-after-function-name":["space-before-function-paren"],"space-before-function-parentheses":["space-before-function-paren"],"space-in-brackets":["object-curly-spacing","array-bracket-spacing","computed-property-spacing"],"space-unary-word-ops":["space-unary-ops"],"spaced-line-comment":["spaced-comment"]}}}),define("eslint/lib/eslint",["estraverse/estraverse","escope/escope","eslint/conf/environments","./rules","./util","./rule-context","./events","require","module","./source-code","./node-event-generator","./comment-event-generator","./config-validator","json!eslint/conf/replacements.json"],function(e,t,n,r,o,s,a,i,l,c,p,u,d,h){function f(e,t){var n={};return e=e.replace(/\s*:\s*/g,":"),e=e.replace(/\s*,\s*/g,","),e.split(/\s|,+/).forEach(function(e){if(e){var r,o=e.indexOf(":");-1!==o&&(r=e.substring(o+1,e.length),e=e.substring(0,o)),n[e]={value:"true"===r,comment:t}}}),n}function m(e,t,n){var r={};e=e.replace(/([a-zA-Z0-9\-\/]+):/g,'"$1":').replace(/(\]|[0-9])\s+(?=")/,"$1,");try{r=JSON.parse("{"+e+"}")}catch(o){n.push({fatal:!0,severity:2,message:"Failed to parse JSON from '"+e+"': "+o.message,line:t.start.line,column:t.start.column+1})}return r}function g(e){var t={};return e=e.replace(/\s*,\s*/g,","),e.split(/,+/).forEach(function(e){e=e.trim(),e&&(t[e]=!0)}),t}function b(e,t){var n=null;return e.variables.some(function(e){return e.name===t?(n=e,!0):!1}),n}function y(e,r,o){var s={},a={},i={},l=n.builtin;O(s,l),Object.keys(o.env).forEach(function(e){if(o.env[e]){var t=n[e]&&n[e].globals;t&&O(s,t)}}),O(a,o.exported),O(s,o.globals),O(i,o.astGlobals),Object.keys(s).forEach(function(e){var n=b(r,e);n||(n=new t.Variable(e,r),n.eslintExplicitGlobal=!1,r.variables.push(n)),n.writeable=s[e]}),Object.keys(i).forEach(function(e){var n=b(r,e);n||(n=new t.Variable(e,r),n.eslintExplicitGlobal=!0,n.eslintExplicitGlobalComment=i[e].comment,r.variables.push(n)),n.writeable=i[e].value}),Object.keys(a).forEach(function(e){var t=b(r,e);t&&(t.eslintUsed=!0)})}function v(e,t,n){n.length?n.forEach(function(n){e.push({start:t,end:null,rule:n})}):e.push({start:t,end:null,rule:null})}function w(e,t,n){var r;if(n.length)n.forEach(function(n){for(r=e.length-1;r>=0;r--)if(!e[r].end&&e[r].rule===n){e[r].end=t;break}});else{var o;for(r=e.length-1;r>=0&&(!o||o===e[r].start);r--)e[r].end||(e[r].end=t,o=e[r].start)}}function S(e,t,r,s,a){var i={exported:{},astGlobals:{},rules:{},env:{}},l={};return t.comments.forEach(function(t){var n=t.value.trim(),r=/^(eslint-\w+|eslint-\w+-\w+|eslint|exported|globals?)(\s|$)/.exec(n);if(r)if(n=n.substring(r.index+r[1].length),"Block"===t.type)switch(r[1]){case"exported":O(i.exported,f(n,t));break;case"globals":case"global":O(i.astGlobals,f(n,t));break;case"eslint-env":O(i.env,g(n));break;case"eslint-disable":v(s,t.loc.start,Object.keys(g(n)));break;case"eslint-enable":w(s,t.loc.start,Object.keys(g(n)));break;case"eslint":var o=m(n,t.loc,a);Object.keys(o).forEach(function(n){var r=o[n];d.validateRuleOptions(n,r,e+" line "+t.loc.start.line),l[n]=r})}else"eslint-disable-line"===r[1]&&(v(s,{line:t.loc.start.line,column:0},Object.keys(g(n))),w(s,t.loc.end,Object.keys(g(n))))}),Object.keys(i.env).forEach(function(e){n[e]&&(i=o.mergeConfigs(i,n[e]))}),O(i.rules,l),o.mergeConfigs(r,i)}function _(e,t,n){for(var r=0,o=e.length;o>r;r++){var s=e[r];if((!s.rule||s.rule===t)&&(n.line>s.start.line||n.line===s.start.line&&n.column>=s.start.column)&&(!s.end||n.line<s.end.line||n.line===s.end.line&&n.column<=s.end.column))return!0}return!1}function x(e){e.globals=e.globals||e.global||{},delete e.global;var t,r={},s={};return"object"==typeof e.rules&&Object.keys(e.rules).forEach(function(t){var n=e.rules[t];if(null===n)throw new Error("Invalid config for rule '"+t+"'.");r[t]=Array.isArray(n)?n.slice():n}),"object"==typeof e.env&&Object.keys(e.env).forEach(function(t){e.env[t]&&n[t]&&n[t].ecmaFeatures&&O(s,n[t].ecmaFeatures)}),t={rules:r,parser:e.parser||R,globals:o.mergeConfigs({},e.globals),env:o.mergeConfigs({},e.env||{}),settings:o.mergeConfigs({},e.settings||{}),ecmaFeatures:o.mergeConfigs(s,e.ecmaFeatures||{})},t.ecmaFeatures.modules&&(t.ecmaFeatures.globalReturn=!1),t}function j(e){function t(t){return{Program:function(n){t.report(n,e)}}}if(e)return t;throw new Error("No message passed to stub rule")}function E(e){if(e in D.rules){var t=D.rules[e];return"Rule '"+e+"' was removed and replaced by: "+t.join(", ")}}function T(e){var t,n;for(A.lastIndex=0;t=A.exec(e);)n=O(n||{},g(t[1]));return n}var k=a.EventEmitter,O=o.mixin,D=h,R="",A=/\/\*\s*eslint-env\s(.+?)\*\//g;return l.exports=function(){function n(e,t){var n;try{n=i(t.parser)}catch(r){return d.push({fatal:!0,severity:2,message:r.message,line:0,column:0}),null}try{return n.parse(e,{loc:!0,range:!0,raw:!0,tokens:!0,comment:!0,attachComment:!0,ecmaFeatures:t.ecmaFeatures})}catch(r){var o=r.message.replace(/^line \d+:/i,"").trim();return d.push({fatal:!0,severity:2,message:"Parsing error: "+o,line:r.lineNumber,column:r.column+1}),null}}function o(e){return"number"==typeof e?e:Array.isArray(e)?e[0]:0}function a(e){return Array.isArray(e)?e.slice(1):[]}var l=Object.create(new k),d=[],h=null,f=null,m=null,g=null,b=null,v=null,w=[],D=null;l.setMaxListeners(0),l.reset=function(){this.removeAllListeners(),d=[],h=null,f=null,m=null,g=null,v=null,w=[],D=null},l.verify=function(i,_,k,R){var A,M,C,P,I="string"==typeof i?i:null;b=k,R||this.reset();var z=T(I||i.text);if(z&&(_&&_.env?(_=O({},_),_.env=O({},_.env,z)):_=O({},_||{},{env:z})),_=x(_||{}),null!==I){if(0===I.trim().length)return d;A=n(I.replace(/^#!([^\r\n]+)/,function(e,t){return M=t,"//"+t}),_),A&&(D=new c(I,A))}else D=i,A=D.ast;if(A){_=S(k,A,_,w,d),Object.keys(_.rules).filter(function(e){return o(_.rules[e])>0}).forEach(function(e){var t,n,i,c;if(t=r.get(e),!t){var p=E(e);t=j(p?p:"Definition for rule '"+e+"' was not found"),r.define(e,t)}n=o(_.rules[e]),i=a(_.rules[e]);try{c=t(new s(e,l,n,i,_.settings,_.ecmaFeatures,_.env)),Object.keys(c).forEach(function(e){l.on(e,c[e])})}catch(u){throw u.message="Error while loading rule '"+e+"': "+u.message,u}}),h=_,v=new e.Controller,C=h.ecmaFeatures,P=C.blockBindings||C.classes||C.modules||C.defaultParams||C.destructuring?6:5,g=t.analyze(A,{ignoreEval:!0,nodejsScope:C.globalReturn,ecmaVersion:P,sourceType:C.modules?"module":"script"}),f=g.scopes,m=[],f.forEach(function(e,t){var n=e.block.range[0];m[n]||(m[n]=t)}),y(A,f[0],h),M&&A.comments.length&&A.comments[0].value===M&&(A.comments.splice(0,1),A.body.length&&A.body[0].leadingComments&&A.body[0].leadingComments[0].value===M&&A.body[0].leadingComments.splice(0,1));var N=new p(l);N=new u(N,D),v.traverse(A,{enter:function(e,t){e.parent=t,N.enterNode(e)},leave:function(e){N.leaveNode(e)}})}return d.sort(function(e,t){var n=e.line-t.line;return 0===n?e.column-t.column:n}),d},l.report=function(e,t,n,r,o,s,a,i){if("string"==typeof r&&(a=s,i=s,s=o,o=r,r=n.loc.start),!_(w,e,r)){s&&(o=o.replace(/\{\{\s*(.+?)\s*\}\}/g,function(e,t){return t in s?s[t]:e}));var l={ruleId:e,severity:t,message:o,node:n,args:s,line:r.line,column:r.column,nodeType:n.type,source:D.lines[r.line-1]||"",related:"undefined"!=typeof i?i:null};a&&Array.isArray(a.range)&&"string"==typeof a.text&&(l.fix=a),d.push(l)}},l.getSourceCode=function(){return D};var R={getSource:"getText",getSourceLines:"getLines",getAllComments:"getAllComments",getNodeByRangeIndex:"getNodeByRangeIndex",getComments:"getComments",getJSDocComment:"getJSDocComment",getFirstToken:"getFirstToken",getFirstTokens:"getFirstTokens",getLastToken:"getLastToken",getLastTokens:"getLastTokens",getTokenAfter:"getTokenAfter",getTokenBefore:"getTokenBefore",getTokenByRangeStart:"getTokenByRangeStart",getTokens:"getTokens",getTokensAfter:"getTokensAfter",getTokensBefore:"getTokensBefore",getTokensBetween:"getTokensBetween"};Object.keys(R).forEach(function(e){l[e]=function(){return D?D[R[e]].apply(D,arguments):null}}),l.getAncestors=function(){return v.parents()},l.getScope=function(){var e=v.parents(),t=f[0];if(e.length){var n=v.current();h.ecmaFeatures.blockBindings?["BlockStatement","SwitchStatement","CatchClause","FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"].indexOf(n.type)>=0&&e.push(n):["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"].indexOf(n.type)>=0&&e.push(n);for(var r=e.length-1;r>=0;--r)if(t=g.acquire(e[r],!0))return"function-expression-name"===t.type?t.childScopes[0]:t}return f[0]},l.markVariableAsUsed=function(e){var t,n,r,o=this.getScope(),s=h.ecmaFeatures.globalReturn||h.ecmaFeatures.modules;"global"===o.type&&s&&(o=o.childScopes[0]);do for(t=o.variables,n=0,r=t.length;r>n;n++)if(t[n].name===e)return t[n].eslintUsed=!0,!0;while(o=o.upper);return!1},l.getFilename=function(){return"string"==typeof b?b:"<input>"};var A=l.defineRule=function(e,t){r.define(e,t)};return l.defineRules=function(e){Object.getOwnPropertyNames(e).forEach(function(t){A(t,e[t])})},l.defaults=function(){return{}},l.getDeclaredVariables=function(e){return g&&g.getDeclaredVariables(e)||[]},l}(),l.exports}),define("orion/metrics",[],function(){function e(e,t){var n=window.location.protocol+"//"+window.location.hostname+window.location.pathname+window.location.search,r=window.location.pathname+window.location.search,o=document.title;s=e,s.forEach(function(e){e.pageLoad(n,r,o,t)})}function t(t,n){var r=t.getServiceReferences("orion.metrics"),o=[];r.forEach(function(e){o.push(t.getService(e))}),e(o,n)}function n(e,t,n,r,o){s.forEach(function(s){s.logEvent(e,t,n||"",r,o)})}function r(e,t){if(window.performance){if(window.performance.getEntriesByName&&window.performance.mark){if(window.performance.getEntriesByName(e).length)return;window.performance.mark(e)}else{if(a[e])return;a[e]=new Date}o("page",e,window.performance.now(),t)}}function o(e,t,n,r){s.forEach(function(o){o.logTiming(e,t,n,r)})}var s=[],a={};return{init:e,initFromRegistry:t,logEvent:n,logPageLoadTiming:r,logTiming:o}}),function(e,t){"function"==typeof define&&define.amd?define("orion/Deferred",t):"object"==typeof exports?module.exports=t():(e.orion=e.orion||{},e.orion.Deferred=t())}(this,function(){function e(){for(var e;e=s.shift();)e();a=!1}function t(e){s.push(e),a||(a=!0,i())}function n(e){return function(t){e(t)}}function r(e,t,r){try{var o=e(t),s=o&&("object"==typeof o||"function"==typeof o)&&o.then;if("function"==typeof s)if(o===r.promise)r.reject(new TypeError);else{var a=o.cancel;"function"==typeof a?r._parentCancel=a.bind(o):delete r._parentCancel,s.call(o,n(r.resolve),n(r.reject),n(r.progress))}else r.resolve(o)}catch(i){r.reject(i)}}function o(){function e(){for(var e;e=c.shift();){var t=e.deferred,n="fulfilled"===l?"resolve":"reject",o=e[n];"function"==typeof o?r(o,i,t):t[n](i)}}function n(n){delete p._parentCancel,l="rejected",i=n,c.length&&t(e)}function s(r){function a(e){return function(t){l&&"assumed"!==l||e(t)}}delete p._parentCancel;try{var u=r&&("object"==typeof r||"function"==typeof r)&&r.then;if("function"==typeof u)if(r===p)n(new TypeError);else{l="assumed";var d=r&&r.cancel;if("function"!=typeof d){var h=new o;r=h.promise;try{u(h.resolve,h.reject,h.progress)}catch(f){h.reject(f)}d=r.cancel,u=r.then}i=r,u.call(r,a(s),a(n)),p._parentCancel=d.bind(r)}else l="fulfilled",i=r,c.length&&t(e)}catch(m){a(n)(m)}}function a(){var e=p._parentCancel;if(e)delete p._parentCancel,e();else if(!l){var t=new Error("Cancel");t.name="Cancel",n(t)}}var i,l,c=[],p=this;this.resolve=function(e){return l||s(e),p},this.reject=function(e){return l||n(e),p},this.progress=function(e){return l||c.forEach(function(t){if(t.progress)try{t.progress(e)}catch(n){}}),p.promise},this.cancel=function(){return p._parentCancel?setTimeout(a,0):a(),p},this.then=function(n,r,s){var a=new o;return a._parentCancel=p.promise.cancel,c.push({resolve:n,reject:r,progress:s,deferred:a}),("fulfilled"===l||"rejected"===l)&&t(e),a.promise},this.promise={then:p.then,cancel:p.cancel}}var s=[],a=!1,i=function(){if("undefined"!=typeof process&&"function"==typeof process.nextTick){var t=process.nextTick;return function(){t(e)}}if("function"==typeof MutationObserver){var n=document.createElement("div"),r=new MutationObserver(e);return r.observe(n,{attributes:!0}),function(){n.setAttribute("class","_tick")}}return function(){setTimeout(e,0)}}();return o.all=function(e,t){function n(e,t){i||(a[e]=t,0===--s&&l.resolve(a))}function r(e,r){if(!i){if(t)try{return void n(e,t(r))}catch(o){r=o}l.reject(r)}}var s=e.length,a=[],i=!1,l=new o;return l.then(void 0,function(){i=!0,e.forEach(function(e){e.cancel&&e.cancel()})}),0===s?l.resolve(a):e.forEach(function(e,t){e.then(n.bind(void 0,t),r.bind(void 0,t))}),l.promise},o.when=function(e,t,n,r){var s,a;return e&&"function"==typeof e.then?s=e:(a=new o,a.resolve(e),s=a.promise),s.then(t,n,r)},o}),define("javascript/lru",[],function(){function e(e,t){var n=Object.create(null);return n._p=null,n._n=null,n._v={key:e,value:t},n}function t(e){this._max="undefined"==typeof e?-1:e,this._start=this._end=null,this._size=0,this._cache=Object.create(null)}return t.prototype.clear=function(){this._cache=Object.create(null),this._start=null,this._end=null,this._size=0},t.prototype.size=function(){return this._size},t.prototype.containsKey=function(e){return"undefined"!=typeof this._cache[e]},t.prototype.put=function(t,n){-1!==this._max&&this._size+1>this._max&&this.remove(this._end._v.key),this.remove(t);var r=e(t,n);this._start?(r=e(t,n),r._n=this._start,this._start._p=r,this._start=r):this._start=this._end=r,this._cache[t]=r,this._size++},t.prototype.get=function(e){if(this._size>0){var t=this._cache[e];if(t&&t._v)return t._v.value}return null},t.prototype.remove=function(e){if(0===this._size)return null;var t=this._cache[e];if(t){var n=t._p;this._end===t&&(this._end=n);var r=t._n;return this._start===t&&(this._start=t._n),n&&(n._n=r),r&&(r._p=n),delete this._cache[e],this._size--,t._v.value}return null},t.prototype.keys=function n(){var n=[];if(this._end)for(var e=this._end;e;)n.push(e._v.key),e=e._p;return n},t}),define("javascript/astManager",["orion/Deferred","orion/objects","javascript/lru","orion/metrics","javascript/util"],function(e,t,n,r,o){function s(e){if(this.parser=e,this.cache=new n(10),!this.parser)throw new Error("Missing parser")}var a={Unexpected:1,EndOfInput:2};return t.mixin(s.prototype,{getAST:function(t){var n=this;return t.getFileMetadata().then(function(r){var o=n._getKey(r),s=n.cache.get(o);return s?(new e).resolve(s):t.getText().then(function(e){return s=n.parse(e,r?r.location:"unknown"),n.cache.put(o,s),s})})},_getKey:function(e){return e&&e.location?e.location:"unknown"},parse:function(e,t){var n=Date.now();try{var s=this.parser.parse(e,{range:!0,loc:!0,tolerant:!0,tokens:!0,attachComment:!0,directSourceFile:t,deps:!0})}catch(a){s=o.errorAST(a,t,e)}var i=Date.now()-n;return r.logTiming("language tools","parse",i,"application/javascript"),s.errors=o.serializeAstErrors(s),s.fileLocation=t,s.source=e,s},onModelChanging:function(e){this.inputChanged?this.inputChanged=null:this.cache.remove(this._getKey(e.file))},onInputChanged:function(e){this.inputChanged=e}}),{ASTManager:s,ErrorTypes:a}}),define("javascript/ternPlugins/eslint",["tern/lib/tern","javascript/finder","eslint/lib/eslint","eslint/lib/source-code","orion/metrics","javascript/astManager"],function(e,t,n,r,o,s){function a(e){var n=[],r=Object.create(null),o=e.errors;if(o)for(var a=o.length,i=0;a>i;i++){var l=o[i],c=null;l.end&&l.token?c={range:[l.index,l.end],value:l.token}:e.tokens.length>0&&(c=t.findToken(l.index,e.tokens));var p=l.message;if(r[l.index]!==p){if(r[l.index]=p,l.type)switch(l.type){case s.ErrorTypes.Unexpected:c&&(l.args={0:c.value,nls:"syntaxErrorBadToken"},l.message=p=l.args.nls);break;case s.ErrorTypes.EndOfInput:l.args={nls:"syntaxErrorIncomplete"},l.message=l.args.nls}else l.token||(l.args={0:l.message,nls:"esprimaParseFailure"},l.message=l.args.nls,delete l.start,delete l.end);c&&(l.node=c,c.value&&(l.args||(l.args=Object.create(null)),l.args.data||(l.args.data=Object.create(null)),l.args.data.tokenValue=c.value)),n.push(l)}}return n}function i(e,t){var n=e.length;if(1>n)return t;var r=[].concat(e),o=t.length;e:for(var s=0;o>s;s++){for(var a=t[s],i=0;n>i;i++){var l=e[i],c=a.node;if(c&&c.range&&c.range[0]>=l.index&&c.range[0]<=l.end)continue e}r.push(a)}return r}e.registerPlugin("eslint",function(){return{}}),e.defineQueryType("lint",{takesFile:!0,run:function(e,t,s){var l=Date.now(),c=n.verify(new r(s.text,s.ast),t.config,s.name),p=Date.now()-l;o.logTiming("language tools","validation",p,"application/javascript");var u=[];c.forEach(function(e){var t={args:e.args,severity:e.severity,column:e.column,line:e.line,message:e.message,nodeType:e.nodeType,ruleId:e.ruleId,source:e.source};e.node&&e.node.range&&(t.node={range:e.node.range}),e.related&&(t.related={range:e.related.range}),u.push(t)});var d=a(s.ast);return i(d,u)}})}),define("javascript/ternPlugins/express",["tern/lib/infer","tern/lib/tern","./resolver"],function(e,t,n){function r(t,r,s,a){var i=e.findExpressionAround(t.ast,r,s,t.scope),l=n.getTemplatesForNode(o,i,r);l&&l.forEach(function(e){a(e.name,null,0,function(t){t.prefix=e.prefix,t.description=e.description,t.template=e.template,t.segments=e.segments,t.origin="express",t.type="template"})})}var o=[{prefix:"express",name:"express",nodes:{top:!0,member:!1,prop:!1},description:" - Node.js require statement for Express",template:"var ${name} = require('express');"},{prefix:"express",name:"express app",description:" - create a new Express app",template:"var express = require('express');\nvar ${app} = express();\n${cursor}\napp.listen(${timeout});\n"},{prefix:"express",name:"express configure",nodes:{top:!0,member:!1,prop:!1},description:" - create an Express app configure statement",template:"app.configure(function() {\n	app.set(${id}, ${value});\n});"},{prefix:"express",name:"express specific configure",nodes:{top:!0,member:!1,prop:!1},description:" - create a specific Express app configure statement",template:"app.configure(${name}, function() {\n	app.set(${id}, ${value});\n});"},{prefix:"express",name:"express app get",nodes:{top:!0,member:!1,prop:!1},description:" - create a new Express app.get call",template:"var value = app.get(${id}, function(request, result){\n	${cursor}\n});\n"},{prefix:"express",name:"express app set",nodes:{top:!0,member:!1,prop:!1},description:" - create a new Express app set call",template:"app.set(${id}, ${value});\n"},{prefix:"express",name:"express app use",nodes:{top:!0,member:!1,prop:!1},description:" - create a new Express app use statement",template:"app.use(${fnOrObject});\n"},{prefix:"express",name:"express app engine",nodes:{top:!0,member:!1,prop:!1},description:" - create a new Express app engine statement",template:"app.engine(${fnOrObject});\n"},{prefix:"express",name:"express app param",nodes:{top:!0,member:!1,prop:!1},description:" - create a new Express app param statement",template:"app.param(${id}, ${value});\n"},{prefix:"express",name:"express app error use",nodes:{top:!0,member:!1,prop:!1},description:" - create a new Express app error handling use statement",template:"app.use(function(error, request, result, next) {\n	result.send(${code}, ${message});\n});\n"}];t.registerPlugin("express",function(){return{defs:s,passes:{variableCompletion:r}}});var s={express:{IRoute:{path:"string",stack:"?",all:"fn(handler: [RequestHandler]) -> IRoute",get:"fn(handler: [RequestHandler]) -> IRoute",post:"fn(handler: [RequestHandler]) -> IRoute",put:"fn(handler: [RequestHandler]) -> IRoute","delete":"fn(handler: [RequestHandler]) -> IRoute",patch:"fn(handler: [RequestHandler]) -> IRoute",options:"fn(handler: [RequestHandler]) -> IRoute"},Router:{"!type":"fn(options?: ?) -> Router",prototype:{param:"fn(name: string, handler: RequestParamHandler) -> T",all:"?",get:"?",post:"?",put:"?","delete":"?",patch:"?",options:"?",route:"fn(path: string) -> IRoute",use:"fn(handler: [RequestHandler]) -> T"}},CookieOptions:{maxAge:"number",signed:"bool",expires:"Date",httpOnly:"bool",path:"string",domain:"string",secure:"bool"},Errback:{},Request:{get:"fn(name: string) -> string",header:"fn(name: string) -> string",headers:{},accepts:"fn(type: string) -> string",acceptsCharset:"fn(charset: string) -> bool",acceptsLanguage:"fn(lang: string) -> bool",range:"fn(size: number) -> [?]",accepted:"[MediaType]",acceptedLanguages:"[?]",acceptedCharsets:"[?]",param:"fn(name: string, defaultValue?: ?) -> string",is:"fn(type: string) -> bool",protocol:"string",secure:"bool",ip:"string",ips:"[string]",subdomains:"[string]",path:"string",hostname:"string",host:"string",fresh:"bool",stale:"bool",xhr:"bool",body:"?",cookies:"?",method:"string",params:"?",user:"?",authenticatedUser:"?",files:"?",clearCookie:"fn(name: string, options?: ?) -> Response",query:"?",route:"?",signedCookies:"?",originalUrl:"string",url:"string"},MediaType:{value:"string",quality:"number",type:"string",subtype:"string"},Send:{},Response:{status:"fn(code: number) -> Response",sendStatus:"fn(code: number) -> Response",links:"fn(links: ?) -> Response",send:"Send",json:"Send",jsonp:"Send",sendFile:"fn(path: string)",sendfile:"fn(path: string)",download:"fn(path: string)",contentType:"fn(type: string) -> Response",type:"fn(type: string) -> Response",format:"fn(obj: ?) -> Response",attachment:"fn(filename?: string) -> Response",set:"fn(field: ?) -> Response",header:"fn(field: ?) -> Response",headersSent:"bool",get:"fn(field: string) -> string",clearCookie:"fn(name: string, options?: ?) -> Response",cookie:"fn(name: string, val: string, options: CookieOptions) -> Response",location:"fn(url: string) -> Response",redirect:"fn(url: string)",render:"fn(view: string, options?: Object, callback?: fn(err: Error, html: string))",locals:"?",charset:"string"},ErrorRequestHandler:{},RequestHandler:{},Handler:{},RequestParamHandler:{},Application:{init:"fn()",defaultConfiguration:"fn()",engine:"fn(ext: string, fn: Function) -> Application",set:"fn(setting: string, val: ?) -> Application",get:{},path:"fn() -> string",enabled:"fn(setting: string) -> bool",disabled:"fn(setting: string) -> bool",enable:"fn(setting: string) -> Application",disable:"fn(setting: string) -> Application",configure:"fn(fn: Function) -> Application",render:"fn(name: string, options?: Object, callback?: fn(err: Error, html: string))",listen:"fn(port: number, hostname: string, backlog: number, callback?: Function) -> http.Server",route:"fn(path: string) -> IRoute",router:"string",settings:"?",resource:"?",map:"?",locals:"?",routes:"?"},Express:{version:"string",mime:"string",createApplication:"fn() -> Application",createServer:"fn() -> Application",application:"?",request:"Request",response:"Response"},"static":"fn(root: string, options?: ?) -> RequestHandler"},"!name":"express","!define":{"!node":{express:{"!type":"fn() -> express.Application","!url":"http://expressjs.com","!doc":"Creates an express application.",Router:{"!type":"fn(options?: express.RouterOptions) -> +express.Router"}}}}}}),define("javascript/compilationUnit",["orion/Deferred"],function(e){function t(e,t,n){this._blocks=e,this._metadata=t,this._ec=n,this._deps=[]}return t.prototype._init=function(){var e="",t=0;this._source="",this._blocks.sort(function(e,t){var n=e.offset?e.offset:0,r=t.offset?t.offset:0;return n-r});for(var n=0;n<this._blocks.length;n++){var r=this._blocks[n];r.dependencies&&this._deps.push(r.dependencies);var o=r.offset-t;if(r.isWrappedFunctionCall){if(o<e.length)continue;for(o-=e.length;o>0;)this._source+=" ",o--;this._source+=e,this._source+=r.text,r.text&&";"!==r.text.charAt(r.text.length-1)&&(this._source+=";")}else{for(;o>0;)this._source+=" ",o--;this._source+=r.text}t=this._source.length}},t.prototype.getSource=function(){return this._source||this._init(),this._source},t.prototype.validOffset=function(e){if(!this._blocks||this._blocks.length<1||0>e)return!1;for(var t=0;t<this._blocks.length;t++){var n=this._blocks[t],r=n.offset;if(e>=r&&e<=r+n.text.length)return!0}return!1},t.prototype.getEditorContext=function(){var t=Object.create(null),n=this;return t.getText=function(){return(new e).resolve(n.getSource())},t.getFileMetadata=function(){return(new e).resolve(n._metadata)},t.setText=function(t,r,o){return n._ec?n._ec.setText(t,r,o):(new e).resolve(null)},t},t.prototype.getDependencies=function(){return this._deps},t}),define("javascript/ternPlugins/html",["tern/lib/infer","tern/lib/tern","./resolver","javascript/compilationUnit","javascript/finder"],function(e,t,n,r,o){t.registerPlugin("html",function(t){function s(e){return/(?:html|htm|xhtml)$/g.test(e)}return t._htmlDeps=Object.create(null),t._htmlDeps.map=Object.create(null),t.on("beforeLoad",function(e){this._htmlDeps.file=e.name}),t.on("reset",function(){t._htmlDeps=Object.create(null),t._htmlDeps.map=Object.create(null)}),{passes:{postParse:function(r){if(s(r.sourceFile.name)){var o=t._htmlDeps.map[t._htmlDeps.file];Array.isArray(o)&&(r.dependencies=o.slice(0)),n.doPostParse(t,r,e.cx().definitions)}},preInfer:function(e){if(s(e.sourceFile.name)&&(n.doPreInfer(t),Array.isArray(e.dependencies)))for(var r=0;r<e.dependencies.length;r++){var o=e.dependencies[r],a=n.getResolved(o);a&&t.addFile(a.file,a.contents,t._htmlDeps.file)}},preParse:function(e,n){var a=n.directSourceFile.name;if(s(a)){var i=o.findScriptBlocks(e);if(Array.isArray(i)){var l=new r(i,{location:a});return t._htmlDeps.file=a,t._htmlDeps.map[a]=l.getDependencies(),l.getSource()}}}}}})}),define("javascript/signatures",[],function(){var e={computeSignature:function(e){if(e){if(e.sig)return e.sig;var t=this.getNameFrom(e);return{sig:t.name,details:t.details,range:this.getSignatureSourceRangeFrom(e)}}return null},getParamsFrom:function(e){if(e){var t=e.params;if(t&&t.length>0){for(var n=t.length,r="",o=0;n>o;o++)r+=t[o].name?t[o].name:"Object",n-1>o&&(r+=", ");return r}}},getPropertyListFrom:function(e,t){if(t||(t=50),0>t&&(t=0),e){var n=e.properties;
if(n&&n.length>0){for(var r,o=n.length,s="{",a=0;o>a;a++){if(r=n[a].key&&n[a].key.name?n[a].key.name:"Object",s.length+r.length>t+1){s+="...";break}s+=r,o-1>a&&(s+=", ")}return s+="}"}}return"{...}"},getNameFrom:function(e){var t,n="Anonyous "+e.type;if(e&&e.type)if("FunctionDeclaration"===e.type){if(e.id&&e.id.name){n=e.id.name+"(";var r=this.getParamsFrom(e);r&&(n+=r),n+=")"}}else if("FunctionExpression"===e.type){n="function(";var o=this.getParamsFrom(e);o&&(n+=o),n+=")"}else if("ObjectExpression"===e.type)n="closure ",t=this.getPropertyListFrom(e);else if("Property"===e.type){if(e.value)if("FunctionExpression"===e.value.type){e.key?e.key.name?n=e.key.name+"(":e.key.value&&(n=e.key.value+"("):n="function(";var s=this.getParamsFrom(e.value);s&&(n+=s),n+=")"}else"ObjectExpression"===e.value.type?e.key&&(e.key.name?n=e.key.name+" ":e.key.value&&(n=e.key.value+" "),t=this.getPropertyListFrom(e.value)):e.key&&(e.key.name?n=e.key.name:e.key.value&&(n=e.key.value))}else if("VariableDeclarator"===e.type){if(e.init)if("ObjectExpression"===e.init.type)e.id&&e.id.name&&(n="var "+e.id.name+" = ",t=this.getPropertyListFrom(e.init));else if("FunctionExpression"===e.init.type)if(e.id&&e.id.name){n=e.id.name+"(";var a=this.getParamsFrom(e.init);a&&(n+=a),n+=")"}else n=this.getNameFrom(e.init)}else if("AssignmentExpression"===e.type){if(e.left&&e.right){var i="ObjectExpression"===e.right.type;if(i||"FunctionExpression"===e.right.type)if(e.left.name?n=e.left.name:"MemberExpression"===e.left.type&&(n=this.expandMemberExpression(e.left,"")),n)if(i)n+=" ",t=this.getPropertyListFrom(e.right);else{n+="(";var l=this.getParamsFrom(e.right);l&&(n+=l),n+=")"}else n=this.getNameFrom(e.right)}}else"ReturnStatement"===e.type&&e.argument&&("ObjectExpression"===e.argument.type||"FunctionExpression"===e.argument.type)&&(n="return ",t=this.getPropertyListFrom(e.argument));return{name:n,details:t}},expandMemberExpression:function(e,t){if("MemberExpression"===e.type){if(e.property){var n=e.property.name;"Literal"===e.property.type&&(n=e.property.value),n&&(t=t&&t.length>0?n+"."+t:n)}return e.object&&e.object.name&&(t=e.object.name+"."+t),this.expandMemberExpression(e.object,t)}return t},getSignatureSourceRangeFrom:function(e){var t=[0,0];return e&&("AssignmentExpression"===e.type?e.left&&e.left.range&&(t=e.left.range):"Property"===e.type?e.key&&e.key.range&&(t=e.key.range):"ReturnStatement"===e.type?(t[0]=e.range[0],t[1]=t[0]+6):e.id&&e.id.range?t=e.id.range:e.range&&(t=e.range,"FunctionExpression"===e.type&&(t[1]=t[0]+8)),t[0]<1&&(t[0]=1)),t}};return e}),define("javascript/ruleData",["i18n!javascript/nls/problems"],function(e){var t={defaults:{"accessor-pairs":1,curly:0,eqeqeq:1,"missing-doc":0,"missing-nls":0,"new-parens":1,"no-caller":1,"no-comma-dangle":0,"no-cond-assign":2,"no-console":0,"no-constant-condition":2,"no-control-regex":2,"no-debugger":1,"no-dupe-keys":2,"no-duplicate-case":2,"no-else-return":1,"no-empty-block":0,"no-empty-character-class":2,"no-empty-label":2,"no-eq-null":1,"no-eval":0,"no-extra-boolean-cast":2,"no-extra-parens":1,"no-extra-semi":1,"no-fallthrough":2,"no-implied-eval":0,"no-invalid-regexp":2,"no-irregular-whitespace":0,"no-iterator":2,"no-jslint":1,"no-mixed-spaces-and-tabs":0,"no-negated-in-lhs":2,"no-new-array":1,"no-new-func":1,"no-new-object":1,"no-new-wrappers":1,"no-obj-calls":2,"no-proto":2,"no-redeclare":1,"no-regex-spaces":2,"no-reserved-keys":2,"no-self-compare":2,"no-self-assign":2,"no-shadow":1,"no-shadow-global":1,"no-sparse-arrays":1,"no-throw-literal":1,"no-undef":2,"no-undef-init":1,"no-unreachable":2,"no-unused-params":1,"no-unused-vars":1,"no-use-before-define":1,"no-with":1,radix:1,semi:1,"type-checked-consistent-return":0,"unnecessary-nls":0,"use-isnan":2,"valid-typeof":2},metadata:{"accessor-pairs":{description:e["accessor-pairs-description"],url:"http://eslint.org/docs/rules/accessor-pairs"},curly:{description:e["curly-description"],url:"http://eslint.org/docs/rules/curly"},eqeqeq:{description:e["eqeqeq-description"],url:"http://eslint.org/docs/rules/eqeqeq"},"missing-doc":{description:e["missing-doc-description"],url:"http://eslint.org/docs/rules/valid-jsdoc"},"missing-nls":{description:e["missing-nls-description"]},"new-parens":{description:e["new-parens-description"],url:"http://eslint.org/docs/rules/new-parens"},"no-caller":{description:e["no-caller-description"],url:"http://eslint.org/docs/rules/no-caller"},"no-comma-dangle":{description:e["no-comma-dangle-description"],url:"http://eslint.org/docs/rules/no-comma-dangle"},"no-cond-assign":{description:e["no-cond-assign-description"],url:"http://eslint.org/docs/rules/no-cond-assign"},"no-console":{description:e["no-console-description"],url:"http://eslint.org/docs/rules/no-console"},"no-constant-condition":{description:e["no-constant-condition-description"],url:"http://eslint.org/docs/rules/no-constant-condition"},"no-control-regex":{description:e["no-control-regex-description"],url:"http://eslint.org/docs/rules/no-control-regex"},"no-debugger":{description:e["no-debugger-description"],url:"http://eslint.org/docs/rules/no-debugger"},"no-dupe-keys":{description:e["no-dupe-keys-description"],url:"http://eslint.org/docs/rules/no-dupe-keys"},"no-duplicate-case":{description:e["no-duplicate-case-description"],url:"http://eslint.org/docs/rules/no-duplicate-case"},"no-else-return":{description:e["no-else-return-description"],url:"http://eslint.org/docs/rules/no-else-return"},"no-empty-block":{description:e["no-empty-block-description"],url:"http://eslint.org/docs/rules/no-empty"},"no-empty-character-class":{description:e["no-empty-character-class-description"],url:"http://eslint.org/docs/rules/no-empty-character-class"},"no-empty-label":{description:e["no-empty-label-description"],url:"http://eslint.org/docs/rules/no-empty-label"},"no-eq-null":{description:e["no-eq-null-description"],url:"http://eslint.org/docs/rules/no-eq-null"},"no-eval":{description:e["no-eval-description"],url:"http://eslint.org/docs/rules/no-eval"},"no-extra-boolean-cast":{description:e["no-extra-boolean-cast-description"],url:"http://eslint.org/docs/rules/no-extra-boolean-cast"},"no-extra-parens":{description:e["no-extra-parens-description"],url:"http://eslint.org/docs/rules/no-extra-parens"},"no-extra-semi":{description:e["no-extra-semi-description"],url:"http://eslint.org/docs/rules/no-extra-semi"},"no-fallthrough":{description:e["no-fallthrough-description"],url:"http://eslint.org/docs/rules/no-fallthrough"},"no-implied-eval":{description:e["no-implied-eval-description"],url:"http://eslint.org/docs/rules/no-implied-eval"},"no-invalid-regexp":{description:e["no-invalid-regexp-description"],url:"http://eslint.org/docs/rules/no-invalid-regexp"},"no-irregular-whitespace":{description:e["no-irregular-whitespace-description"],url:"http://eslint.org/docs/rules/no-irregular-whitespace"},"no-iterator":{description:e["no-iterator-description"],url:"http://eslint.org/docs/rules/no-iterator"},"no-jslint":{description:e["no-jslint-description"]},"no-mixed-spaces-and-tabs":{description:e["no-mixed-spaces-and-tabs-description"],url:"http://eslint.org/docs/rules/no-mixed-spaces-and-tabs"},"no-negated-in-lhs":{description:e["no-negated-in-lhs-description"],url:"http://eslint.org/docs/rules/no-negated-in-lhs"},"no-new-array":{description:e["no-new-array-description"],url:"http://eslint.org/docs/rules/no-array-constructor.html"},"no-new-func":{description:e["no-new-func-description"],url:"http://eslint.org/docs/rules/no-new-func"},"no-new-object":{description:e["no-new-object-description"],url:"http://eslint.org/docs/rules/no-new-object"},"no-new-wrappers":{description:e["no-new-wrappers-description"],url:"http://eslint.org/docs/rules/no-new-wrappers"},"no-obj-calls":{description:e["no-obj-calls-description"],url:"http://eslint.org/docs/rules/no-obj-calls"},"no-proto":{description:e["no-proto-description"],url:"http://eslint.org/docs/rules/no-proto.html"},"no-redeclare":{description:e["no-redeclare-description"],url:"http://eslint.org/docs/rules/no-redeclare"},"no-regex-spaces":{description:e["no-regex-spaces-description"],url:"http://eslint.org/docs/rules/no-regex-spaces"},"no-reserved-keys":{description:e["no-reserved-keys-description"],url:"http://eslint.org/docs/rules/no-reserved-keys"},"no-self-compare":{description:e["no-self-compare-description"],url:"http://eslint.org/docs/rules/no-self-compare"},"no-self-assign":{description:e["no-self-assign-description"],url:"http://eslint.org/docs/rules/no-self-assign"},"no-shadow":{description:e["no-shadow-description"],url:"http://eslint.org/docs/rules/no-shadow"},"no-shadow-global":{description:e["no-shadow-global-description"]},"no-sparse-arrays":{description:e["no-sparse-arrays-description"],url:"http://eslint.org/docs/rules/no-sparse-arrays"},"no-throw-literal":{description:e["no-throw-literal-description"],url:"http://eslint.org/docs/rules/no-throw-literal"},"no-undef":{description:e["no-undef-description"],url:"http://eslint.org/docs/rules/no-undef"},"no-undef-init":{description:e["no-undef-init-description"],url:"http://eslint.org/docs/rules/no-undef-init.html"},"no-unreachable":{description:e["no-unreachable-description"],url:"http://eslint.org/docs/rules/no-unreachable"},"no-unused-params":{description:e["no-unused-params-description"]},"no-unused-vars":{description:e["no-unused-vars-description"],url:"http://eslint.org/docs/rules/no-unused-vars"},"no-use-before-define":{description:e["no-use-before-define-description"],url:"http://eslint.org/docs/rules/no-use-before-define"},"no-with":{description:e["no-with-description"],url:"http://eslint.org/docs/rules/no-with"},radix:{description:e["radix-description"],url:"http://eslint.org/docs/rules/radix"},semi:{description:e["semi-description"],url:"http://eslint.org/docs/rules/semi"},"unnecessary-nls":{description:e["unnecessary-nls-description"]},"use-isnan":{description:e["use-isnan-description"],url:"http://eslint.org/docs/rules/use-isnan"},"valid-typeof":{description:e["valid-typeof-description"],url:"http://eslint.org/docs/rules/valid-typeof"},"type-checked-consistent-return":{description:e["type-checked-consistent-return-description"]}}};return t}),define("javascript/ternPlugins/jsdoc",["tern/lib/tern","orion/objects","javascript/finder","javascript/signatures","javascript/util","javascript/ruleData","eslint/conf/environments","i18n!javascript/nls/messages"],function(e,t,n,r,o,s,a,i){function l(e){if(e.options&&e.options.plugins)for(var t=Object.keys(e.options.plugins),n=0,r=t.length;r>n;n++){var o=e.options.plugins[t[n]].env;o&&(x[o]=!0)}}function c(e,t,n){var r=[],o=u(t.end,n.text),s=n.text.charAt(t.end-o.length-1);return"{"===s&&(r=d(o,e,n)),{completions:r}}function p(e,t,n){var r=[],o=u(t.end,n.text),s=n.text.charAt(t.end-o.length-1);return"{"===s?r=d(o,e,n):"."===s?r=g(o,e,t):("*"===s||" "===s)&&(r=b(o,e,t,n)),{completions:r}}function u(e,t){var n=e-1,r="",o=t.charAt(n);if("{*,".indexOf(o)>-1)return r;if("@"===o)return o;if("/"===o&&"/"===t.charAt(n-1))return r;for(;n>=0&&/\S/.test(o);){if(r=o+r,"@"===o||"*"===o||"{"===o)return r;if("/"===o&&"/"===t.charAt(n-1))return r;if(n--,o=t.charAt(n),"{*,".indexOf(o)>-1)return r}return r}function d(e,t,r){var o,s,a,i=[],l={ecma5:!0,ecma6:!0};h(r.name)&&(l.browser=!0);var c=m(r.ast,l),p=Object.create(null),u=n.findNodeAfterComment(t,r.ast),d=r.scope;if(u)if(u.scope)d=u.scope;else if(u.parents)for(var g=u.parents.length-1;g>=0;g--)if(u.parents[g]&&u.parents[g].scope){d=u.parents[g].scope;break}for(;d;){for(a in d.props)o=d.props[a],o&&o.types&&o.types.length>0&&(s=f(o.types[0],c,p,e),s&&i.push(s));d=d.prev}return i}function h(e){return/(?:html|htm|xhtml)$/g.test(e)}function f(e,t,n,r){if(e&&"object"==typeof e&&e.name&&e.origin&&(t[e.origin]||e.origin.indexOf("/")>=0)){var o=e.name;if("<top>"===o)return null;var s=["bool","boolean","string","number","regexp"];if(e.retval&&s.indexOf(e.retval.name)>=0&&s.indexOf(e.name.toLowerCase())<0)return null;if(n[o])return null;n[o]=!0;var a=_(o,"",r);return a.origin=e.origin,a.doc=e.doc,a.url=e.url,a}return null}function m(e,n){var r=Object.create(null);if(t.mixin(r,n),e.comments)for(var o=0;o<e.comments.length;o++){var s=e.comments[o];if("Block"===s.type){var a=s.value.trim(),i=/^(eslint-\w+|eslint|globals?)(\s|$)/.exec(a);if(i&&(a=a.substring(i.index+i[1].length),"eslint-env"===i[1])){var l=a.replace(/\s*,\s*/g,",");l.split(/,+/).forEach(function(e){e=e.trim(),e&&(r[e]=!0)})}}}return r}function g(){return[]}function b(e,t,r,a){var l,c,p,u=[],d=y(r.end,a),h=d.line.slice(0,r.end-d.start-e.length-1);if(/^\/\*$/.test(h.trim())){if(o.looselyMatches(e,"eslint-env")){var f=S(),m="eslint-env ${library:"+f+"}";p=_("eslint-env","",e,m),p.doc=i.eslintEnvDirective,p.url="http://eslint.org/docs/user-guide/configuring.html#specifying-environments",u.push(p)}l=Object.keys(E);for(var g=l.length,b=0;g>b;b++){var k=E[l[b]];o.looselyMatches(e,k.name)&&(p=_(k.name,"",e,k.template),p.url=k.url,p.doc=k.desc,u.push(p))}}else if(null!==(c=/\s*\*\s*\@name\s*(\w*)/gi.exec(d.line))){if(c[1]===e){var O=n.findNodeAfterComment(t,a.ast),D=v(O);D&&u.push(_(D,i.funcProposalDescription,e))}}else if(null!==(c=/\s*\*\s*\@param\s*(?:\{[\w.]*\})?\s*(\w*)/gi.exec(d.line))){if(c[1]===e&&(O=n.findNodeAfterComment(t,a.ast))){var R=w(O);if(Array.isArray(R))for(b=0;b<R.length;b++)D=R[b].name,o.looselyMatches(e,D)&&u.push(_(D,i.funcParamProposalDescription,e))}}else if(/^\s*(?:\/\*)?\s*eslint(?:-enable|-disable)?\s+/gi.test(d.line)){var A=s.metadata,M=Object.keys(A).sort();for(b=0;b<M.length;b++){var C=M[b];if(o.looselyMatches(e,C)){var P=A[C];p=_(C,"",e),p.doc=P.description?P.description:i.eslintRuleProposalDescripton,P.url&&(p.url=P.url),u.push(p)}}}else if(/^\s*(?:\/\*)?\s*eslint-env\s+/gi.test(d.line))for(l=Object.keys(x).sort(),b=0;b<l.length;b++){var I=l[b];"builtin"!==I&&o.looselyMatches(e,I)&&(p=_(I,"",e),p.doc=j[I],p.doc||(p.doc=i.eslintEnvProposalDescription),p.url="http://eslint.org/docs/user-guide/configuring.html#specifying-environments",u.push(p))}else for(l=Object.keys(T),g=l.length,b=0;g>b;b++)k=T[l[b]],o.looselyMatches(e,k.name)&&(p=k.template?_(k.name,"",e,k.template):_(k.name,"",e),p.url=k.url,p.doc=k.desc,u.push(p));return u}function y(e,t){var n="",r=e;if(r>0&&r<=t.text.length){var o=t.text.charAt(r);for("\n"===o&&(r--,o=t.text.charAt(r));"\n"!==o&&r>-1;)n=o+n,r--,o=t.text.charAt(r)}return{line:n,start:r}}function v(e){switch(e.type){case"FunctionDeclaration":return e.id.name;case"Property":if("FunctionExpression"===e.value.type)return e.value.id?e.value.id.name:e.key.name;break;case"ExpressionStatement":var t=e.expression;if(t&&"AssignmentExpression"===t.type&&"FunctionExpression"===t.right.type){if(t.right.id)return t.right.id.name;if("Identifier"===t.left.type)return t.left.name;if("MemberExpression"===t.left.type)return r.expandMemberExpression(t.left,"")}break;case"VariableDeclaration":if(e.declarations.length>0){var n=e.declarations[0];if(n.init&&"FunctionExpression"===n.init.type)return n.init.id?n.init.id.name:n.id.name}}return null}function w(e){switch(e.type){case"FunctionDeclaration":return e.params;case"Property":if("FunctionExpression"===e.value.type)return e.value.params;break;case"ExpressionStatement":var t=e.expression;if(t&&"AssignmentExpression"===t.type&&"FunctionExpression"===t.right.type)return t.right.params;break;case"VariableDeclaration":if(e.declarations.length>0){var n=e.declarations[0];if(n.init&&"FunctionExpression"===n.init.type)return n.init.params}}return[]}function S(){for(var e=[],t=Object.keys(x).sort(),n=0;n<t.length;n++){var r=t[n];"builtin"!==r&&e.push(r)}var o={type:"link",values:e,title:"ESLint Environments",style:"no_emphasis"};return JSON.stringify(o).replace("}","\\}")}function _(e,t,n,r){var o=Object.create(null);return"string"==typeof r?(o.type="jsdoc_template",o.template=r,o.isTemplate=!0):o.type="doc",o.name=e,o.proposal=e.slice(n.length),o.description=t,"string"==typeof n&&(o.prefix=n),o}var x={},j={browser:i.browser,node:i.node,commonjs:i.commonjs,worker:i.worker,amd:i.amd,mocha:i.mocha,jasmine:i.jasmine,jest:i.jest,phantomjs:i.phantomjs,protractor:i.protractor,qunit:i.qunit,jquery:i.jquery,prototypejs:i.prototypejs,shelljs:i.shelljs,meteor:i.meteor,mongo:i.mongo,applescript:i.applescript,nashorn:i.nashorn,serviceworker:i.serviceworker,embertest:i.embertest,webextensions:i.webextension,es6:i.es6};e.registerPlugin("jsdoc",function(e){return{passes:{completion:function(r,o){var s=n.findComment(o.end,r.ast);return s?(t.mixin(x,a),l(e),"Line"===s.type?c(s,o,r):p(s,o,r)):null}}}});var E={eslint:{name:"eslint",desc:i.eslintRuleEnableDisable,template:"eslint ${rule-id}:${0/1} ${cursor}",url:"http://eslint.org/docs/user-guide/configuring.html#configuring-rules"},"eslint-enable":{name:"eslint-enable",desc:i.eslintRuleEnable,template:"eslint-enable ${rule-id} ${cursor}",url:"http://eslint.org/docs/user-guide/configuring.html#configuring-rules"},"eslint-disable":{name:"eslint-disable",desc:i.eslintRuleDisable,template:"eslint-disable ${rule-id} ${cursor}",url:"http://eslint.org/docs/user-guide/configuring.html#configuring-rules"}},T={"abstract":{name:"@abstract",url:"http://usejsdoc.org/tags-abstract.html",desc:"This member must be implemented (or overridden) by the inheritor."},access:{name:"@access",url:"http://usejsdoc.org/tags-access.html",desc:"Specify the access level of this member (private, public, or protected)."},alias:{name:"@alias",url:"http://usejsdoc.org/tags-alias.html",desc:"Treat a member as if it had a different name."},augments:{name:"@augments",url:"http://usejsdoc.org/tags-augments.html",desc:"Indicate that a symbol inherits from, ands adds to, a parent symbol."},author:{name:"@author",url:"http://usejsdoc.org/tags-author.html",desc:"Identify the author of an item.",template:"@author ${cursor}"},borrows:{name:"@borrows",url:"http://usejsdoc.org/tags-borrows.html",desc:"This object uses something from another object."},callback:{name:"@callback",url:"http://usejsdoc.org/tags-callback.html",desc:"Document a callback function.",template:"@callback ${cursor}"},"class":{name:"@class",url:"http://usejsdoc.org/tags-class.html",desc:'This function is intended to be called with the "new" keyword.',template:"@class ${cursor}"},classdesc:{name:"@classdesc",url:"http://usejsdoc.org/tags-classdesc.html",desc:"Use the following text to describe the entire class."},constant:{name:"@constant",url:"http://usejsdoc.org/tags-constant.html",desc:"Document an object as a constant."},constructs:{name:"@constructs",url:"http://usejsdoc.org/tags-constructs.html",desc:"This function member will be the constructor for the previous class."},copyright:{name:"@copyright",url:"http://usejsdoc.org/tags-copyright.html",desc:"Document some copyright information."},"default":{name:"@default",url:"http://usejsdoc.org/tags-default.html",desc:"Document the default value."},deprecated:{name:"@deprecated",url:"http://usejsdoc.org/tags-deprecated.html",desc:"Document that this is no longer the preferred way.",template:"@deprecated ${cursor}"},description:{name:"@description",url:"http://usejsdoc.org/tags-description.html",desc:"Describe a symbol.",template:"@description ${cursor}"},"enum":{name:"@enum",url:"http://usejsdoc.org/tags-enum.html",desc:"Document a collection of related properties."},event:{name:"@event",url:"http://usejsdoc.org/tags-event.html",desc:"Document an event."},example:{name:"@example",url:"http://usejsdoc.org/tags-example.html",desc:"Provide an example of how to use a documented item."},exports:{name:"@exports",url:"http://usejsdoc.org/tags-exports.html",desc:"Identify the member that is exported by a JavaScript module."},external:{name:"@external",url:"http://usejsdoc.org/tags-external.html",desc:"Identifies an external class, namespace, or module."},file:{name:"@file",url:"http://usejsdoc.org/tags-file.html",desc:"Describe a file."},fires:{name:"@fires",url:"http://usejsdoc.org/tags-fires.html",desc:"Describe the events this method may fire."},"function":{name:"@function",url:"http://usejsdoc.org/tags-function.html",desc:"Describe a function or method.",template:"@function ${cursor}"},global:{name:"@global",url:"http://usejsdoc.org/tags-global.html",desc:"Document a global object."},ignore:{name:"@ignore",url:"http://usejsdoc.org/tags-ignore.html",desc:"Omit a symbol from the documentation."},"implements":{name:"@implements",url:"http://usejsdoc.org/tags-implements.html",desc:"This symbol implements an interface."},inheritdoc:{name:"@inheritdoc",url:"http://usejsdoc.org/tags-inheritdoc.html",desc:"Indicate that a symbol should inherit its parent's documentation."},inner:{name:"@inner",url:"http://usejsdoc.org/tags-inner.html",desc:"Document an inner object."},instance:{name:"@instance",url:"http://usejsdoc.org/tags-instance.html",desc:"Document an instance member."},"interface":{name:"@interface",url:"http://usejsdoc.org/tags-interface.html",desc:"This symbol is an interface that others can implement."},kind:{name:"@kind",url:"http://usejsdoc.org/tags-kind.html",desc:"What kind of symbol is this?"},lends:{name:"@lends",url:"http://usejsdoc.org/tags-lends.html",desc:"Document properties on an object literal as if they belonged to a symbol with a given name.",template:"@lends ${cursor}"},license:{name:"@license",url:"http://usejsdoc.org/tags-license.html",desc:"Identify the license that applies to this code.",template:"@license ${cursor}"},listens:{name:"@listens",url:"http://usejsdoc.org/tags-listens.html",desc:"List the events that a symbol listens for."},member:{name:"@member",url:"http://usejsdoc.org/tags-member.html",desc:"Document a member."},memberof:{name:"@memberof",url:"http://usejsdoc.org/tags-memberof.html",desc:"This symbol belongs to a parent symbol."},mixes:{name:"@mixes",url:"http://usejsdoc.org/tags-mixes.html",desc:"This object mixes in all the members from another object."},mixin:{name:"@mixin",url:"http://usejsdoc.org/tags-mixin.html",desc:"Document a mixin object."},module:{name:"@module",url:"http://usejsdoc.org/tags-module.html",desc:"Document a JavaScript module."},name:{name:"@name",url:"http://usejsdoc.org/tags-name.html",desc:"Document the name of an object.",template:"@name ${cursor}"},namespace:{name:"@namespace",url:"http://usejsdoc.org/tags-namespace.html",desc:"Document a namespace object."},override:{name:"@override",url:"http://usejsdoc.org/tags-override.html",desc:"Indicate that a symbol overrides its parent."},param:{name:"@param",url:"http://usejsdoc.org/tags-param.html",desc:"Document the parameter to a function.",template:"@param {${type}} ${cursor}"},"private":{name:"@private",url:"http://usejsdoc.org/tags-private.html",desc:"This symbol is meant to be private.",template:"@private ${cursor}"},property:{name:"@property",url:"http://usejsdoc.org/tags-property.html",desc:"Document a property of an object."},"protected":{name:"@protected",url:"http://usejsdoc.org/tags-protected.html",desc:"This symbol is meant to be protected."},"public":{name:"@public",url:"http://usejsdoc.org/tags-public.html",desc:"This symbol is meant to be public.",template:"@public ${cursor}"},readonly:{name:"@readonly",url:"http://usejsdoc.org/tags-readonly.html",desc:"This symbol is meant to be read-only."},requires:{name:"@requires",url:"http://usejsdoc.org/tags-requires.html",desc:"This file requires a JavaScript module."},returns:{name:"@returns",url:"http://usejsdoc.org/tags-returns.html",desc:"Document the return value of a function.",template:"@returns {${type}} ${cursor}"},see:{name:"@see",url:"http://usejsdoc.org/tags-see.html",desc:"Refer to some other documentation for more information.",template:"@see ${cursor}"},since:{name:"@since",url:"http://usejsdoc.org/tags-since.html",desc:"When was this feature added?",template:"@since ${cursor}"},"static":{name:"@static",url:"http://usejsdoc.org/tags-static.html",desc:"Document a static member."},summary:{name:"@summary",url:"http://usejsdoc.org/tags-summary.html",desc:"A shorter version of the full description."},"this":{name:"@this",url:"http://usejsdoc.org/tags-this.html",desc:"What does the 'this' keyword refer to here?"},"throws":{name:"@throws",url:"http://usejsdoc.org/tags-throws.html",desc:"Describe what errors could be thrown.",template:"@throws {${type}} ${cursor}"},todo:{name:"@todo",url:"http://usejsdoc.org/tags-todo.html",desc:"Document tasks to be completed."},tutorial:{name:"@tutorial",url:"http://usejsdoc.org/tags-tutorial.html",desc:"Insert a link to an included tutorial file."},type:{name:"@type",url:"http://usejsdoc.org/tags-type.html",desc:"Document the type of an object."},typedef:{name:"@typedef",url:"http://usejsdoc.org/tags-typedef.html",desc:"Document a custom type."},variation:{name:"@variation",url:"http://usejsdoc.org/tags-variation.html",desc:"Distinguish different objects with the same name."},version:{name:"@version",url:"http://usejsdoc.org/tags-version.html",desc:"Documents the version number of an item."},link:{name:"{@link}",url:"http://usejsdoc.org/tags-inline-link.html",desc:"Link to another item in the documentation."},"inline-tutorial":{name:"{@tutorial}",url:"http://usejsdoc.org/tags-inline-tutorial.html",desc:"Link to a tutorial."}}}),define("javascript/ternPlugins/mongodb",["tern/lib/infer","tern/lib/tern","./resolver"],function(e,t,n){function r(t,r,s,a){var i=e.findExpressionAround(t.ast,r,s,t.scope),l=n.getTemplatesForNode(o,i,r);l&&l.forEach(function(e){a(e.name,null,0,function(t){t.prefix=e.prefix,t.description=e.description,t.template=e.template,t.segments=e.segments,t.origin="mongodb",t.type="template"})})}var o=[{prefix:"mongodb",name:"mongodb",nodes:{top:!0,member:!1,prop:!1},description:" - Node.js require statement for MongoDB",template:"var ${name} = require('mongodb');\n"},{prefix:"mongodb",name:"mongodb client",nodes:{top:!0,member:!1,prop:!1},description:" - create a new MongoDB client",template:"var MongoClient = require('mongodb').MongoClient;\nvar Server = require('mongodb').Server;\n${cursor}"},{prefix:"mongodb",name:"mongodb open",nodes:{top:!0,member:!1,prop:!1},description:" - create a new MongoDB client and open a connection",template:"var MongoClient = require('mongodb').MongoClient;\nvar Server = require('mongodb').Server;\nvar ${client} = new MongoClient(new Server(${host}, ${port}));\ntry {\n	${client}.open(function(error, ${client}) {\n		var ${db} = ${client}.db(${name});\n		${cursor}\n	});\n} finally {\n	${client}.close();\n};"},{prefix:"mongodb",name:"mongodb connect",nodes:{top:!0,member:!1,prop:!1},description:" - connect to an existing MongoDB database",template:"var MongoClient = require('mongodb').MongoClient;\nMongoClient.connect(${url}, function(error, db) {\n	${cursor}\n});\n"},{prefix:"mongodb",name:"mongodb connect (Cloud Foundry)",nodes:{top:!0,member:!1,prop:!1},description:" - connect to an existing MongoDB database using Cloud Foundry",template:"if (${process}.env.VCAP_SERVICES) {\n	var env = JSON.parse(${process}.env.VCAP_SERVICES);\n	var mongo = env['${mongo-version}'][0].credentials;\n} else {\n	var mongo = {\n		username : 'username',\n		password : 'password',\n		url : 'mongodb://username:password@localhost:27017/database'\n	};\n}\nvar MongoClient = require('mongodb').MongoClient;\nMongoClient.connect(mongo.url, function(error, db) {\n	${cursor}\n});\n"},{prefix:"mongodb",name:"mongodb collection",nodes:{top:!0,member:!1,prop:!1},description:" - create a MongoDB database collection",template:"${db}.collection(${id}, function(${error}, collection) {\n	${cursor}\n});"},{prefix:"mongodb",name:"mongodb strict collection",nodes:{top:!0,member:!1,prop:!1},description:" - create a MongoDB database strict collection",template:"${db}.collection(${id}, {strict:true}, function(${error}, collection) {\n	${cursor}\n});"}];t.registerPlugin("mongodb",function(){return{defs:s,passes:{variableCompletion:r}}});var s={mongodb:{MongoClient:{"!type":"fn(serverConfig: ?, options: ?)",connect:"fn(uri: string, options: ?, callback: fn(err: Error, db: Db))",prototype:{}},Server:{"!type":"fn(host: string, port: number, opts?: ServerOptions)",prototype:{connect:"fn() -> ?"}},Db:{"!type":"fn(databaseName: string, serverConfig: Server, dbOptions?: DbCreateOptions)",prototype:{db:"fn(dbName: string) -> Db",open:"fn(callback: fn(err: Error, db: Db))",close:"fn(forceClose?: bool, callback?: fn(err: Error, result: ?))",admin:"fn(callback: fn(err: Error, result: ?)) -> ?",collectionsInfo:"fn(collectionName: string, callback?: fn(err: Error, result: ?))",collectionNames:"fn(collectionName: string, options: ?, callback?: fn(err: Error, result: ?))",collection:"fn(collectionName: string) -> Collection",collections:"fn(callback: fn(err: Error, collections: [Collection]))",eval:"fn(code: ?, parameters: [?], options?: ?, callback?: fn(err: Error, result: ?))",logout:"fn(options: ?, callback?: fn(err: Error, result: ?))",authenticate:"fn(userName: string, password: string, callback?: fn(err: Error, result: ?))",addUser:"fn(username: string, password: string, callback?: fn(err: Error, result: ?))",removeUser:"fn(username: string, callback?: fn(err: Error, result: ?))",createCollection:"fn(collectionName: string, callback?: fn(err: Error, result: Collection))",command:"fn(selector: Object, callback?: fn(err: Error, result: ?))",dropCollection:"fn(collectionName: string, callback?: fn(err: Error, result: ?))",renameCollection:"fn(fromCollection: string, toCollection: string, callback?: fn(err: Error, result: ?))",lastError:"fn(options: Object, connectionOptions: ?, callback: fn(err: Error, result: ?))",previousError:"fn(options: Object, callback: fn(err: Error, result: ?))",executeDbCommand:"fn(command_hash: ?, callback?: fn(err: Error, result: ?))",executeDbAdminCommand:"fn(command_hash: ?, callback?: fn(err: Error, result: ?))",resetErrorHistory:"fn(callback?: fn(err: Error, result: ?))",createIndex:"fn(collectionName: ?, fieldOrSpec: ?, options: IndexOptions, callback: Function)",ensureIndex:"fn(collectionName: ?, fieldOrSpec: ?, options: IndexOptions, callback: Function)",cursorInfo:"fn(options: ?, callback: Function)",dropIndex:"fn(collectionName: string, indexName: string, callback: Function)",reIndex:"fn(collectionName: string, callback: Function)",indexInformation:"fn(collectionName: string, options: ?, callback: Function)",dropDatabase:"fn(callback: fn(err: Error, result: ?))",stats:"fn(options: ?, callback: Function)",_registerHandler:"fn(db_command: ?, raw: ?, connection: ?, exhaust: ?, callback: Function)",_reRegisterHandler:"fn(newId: ?, object: ?, callback: Function)",_callHandler:"fn(id: ?, document: ?, err: ?) -> ?",_hasHandler:"fn(id: ?) -> ?",_removeHandler:"fn(id: ?) -> ?",_findHandler:"fn(id: ?) -> ret",__executeQueryCommand:"fn(self: ?, db_command: ?, options: ?, callback: ?)",DEFAULT_URL:"string",connect:"fn(url: string, options: Object, callback: fn(err: Error, result: ?))",addListener:"fn(event: string, handler: fn(param: ?)) -> ?"}},SocketOptions:{timeout:"number",noDelay:"bool",keepAlive:"number",encoding:"string"},ServerOptions:{auto_reconnect:"bool",poolSize:"number",socketOptions:"?"},PKFactory:{counter:"number",createPk:"fn()"},DbCreateOptions:{w:"?",wtimeout:"number",fsync:"bool",journal:"bool",readPreference:"string",native_parser:"bool",forceServerObjectId:"bool",pkFactory:"PKFactory",serializeFunctions:"bool",raw:"bool",recordQueryStats:"bool",retryMiliSeconds:"number",numberOfRetries:"number",logger:"Object",slaveOk:"number",promoteLongs:"bool"},ReadPreference:{PRIMARY:"string",PRIMARY_PREFERRED:"string",SECONDARY:"string",SECONDARY_PREFERRED:"string",NEAREST:"string",prototype:{}},CollectionCreateOptions:{readPreference:"string",slaveOk:"bool",serializeFunctions:"bool",raw:"bool",pkFactory:"PKFactory"},CollStats:{ns:"string",count:"number",size:"number",avgObjSize:"number",storageSize:"number",numExtents:"number",nindexes:"number",lastExtentSize:"number",paddingFactor:"number",flags:"number",totalIndexSize:"number",indexSizes:{_id_:"number",username:"number"}},Collection:{insert:"fn(query: ?, callback: fn(err: Error, result: ?))",remove:"fn(selector: Object, callback?: fn(err: Error, result: ?))",rename:"fn(newName: String, callback?: fn(err: Error, result: ?))",save:"fn(doc: ?, callback: fn(err: Error, result: ?))",update:"fn(selector: Object, document: ?, callback?: fn(err: Error, result: ?))",distinct:"fn(key: string, query: Object, callback: fn(err: Error, result: ?))",count:"fn(callback: fn(err: Error, result: ?))",drop:"fn(callback?: fn(err: Error, result: ?))",findAndModify:"fn(query: Object, sort: [?], doc: Object, callback: fn(err: Error, result: ?))",findAndRemove:"fn(query: Object, sort?: [?], callback?: fn(err: Error, result: ?))",find:"fn(callback?: fn(err: Error, result: Cursor)) -> Cursor",findOne:"fn(callback?: fn(err: Error, result: ?)) -> Cursor",createIndex:"fn(fieldOrSpec: ?, callback: fn(err: Error, indexName: string))",ensureIndex:"fn(fieldOrSpec: ?, callback: fn(err: Error, indexName: string))",indexInformation:"fn(options: ?, callback: Function)",dropIndex:"fn(name: string, callback: Function)",dropAllIndexes:"fn(callback: Function)",reIndex:"fn(callback: Function)",mapReduce:"fn(map: Function, reduce: Function, options: MapReduceOptions, callback: Function)",group:"fn(keys: Object, condition: Object, initial: Object, reduce: Function, finalize: Function, command: bool, options: Object, callback: Function)",options:"fn(callback: Function)",isCapped:"fn(callback: Function)",indexExists:"fn(indexes: string, callback: Function)",geoNear:"fn(x: number, y: number, callback: Function)",geoHaystackSearch:"fn(x: number, y: number, callback: Function)",indexes:"fn(callback: Function)",aggregate:"fn(pipeline: [?], callback: fn(err: Error, results: ?))",stats:"fn(options: Object, callback: fn(err: Error, results: CollStats))",hint:"?"},MapReduceOptions:{out:"Object",query:"Object",sort:"Object",limit:"number",keeptemp:"bool",finalize:"?",scope:"Object",jsMode:"bool",verbose:"bool",readPreference:"string"},IndexOptions:{w:"?",wtimeout:"number",fsync:"bool",journal:"bool",unique:"bool",sparse:"bool",background:"bool",dropDups:"bool",min:"number",max:"number",v:"number",expireAfterSeconds:"number",name:"string"},Cursor:{INIT:"number",OPEN:"number",CLOSED:"number",GET_MORE:"number",prototype:{rewind:"fn() -> Cursor",toArray:"fn(callback: fn(err: Error, results: [?]))",each:"fn(callback: fn(err: Error, item: ?))",count:"fn(applySkipLimit: bool, callback: fn(err: Error, count: number))",sort:"fn(keyOrList: ?, callback?: fn(err: Error, result: ?)) -> Cursor",limit:"fn(limit: number, callback?: fn(err: Error, result: ?)) -> Cursor",setReadPreference:"fn(preference: string, callback?: Function) -> Cursor",skip:"fn(skip: number, callback?: fn(err: Error, result: ?)) -> Cursor",batchSize:"fn(batchSize: number, callback?: fn(err: Error, result: ?)) -> Cursor",nextObject:"fn(callback: fn(err: Error, doc: ?))",explain:"fn(callback: fn(err: Error, result: ?))",stream:"fn() -> CursorStream",close:"fn(callback: fn(err: Error, result: ?))",isClosed:"fn() -> bool"}},CursorStream:{"!type":"fn(cursor: Cursor)",prototype:{pause:"fn() -> ?",resume:"fn() -> ?",destroy:"fn() -> ?"}},CollectionFindOptions:{limit:"number",sort:"?",fields:"Object",skip:"number",hint:"Object",explain:"bool",snapshot:"bool",timeout:"bool",tailtable:"bool",tailableRetryInterval:"number",numberOfRetries:"number",awaitdata:"bool",oplogReplay:"bool",exhaust:"bool",batchSize:"number",returnKey:"bool",maxScan:"number",min:"number",max:"number",showDiskLoc:"bool",comment:"String",raw:"bool",readPreference:"String",partial:"bool"},MongoCollectionOptions:{safe:"?",serializeFunctions:"?",raw:"bool",pkFactory:"?",readPreference:"string"}},"!name":"mongodb","!define":{"!node":{mongodb:{"!doc":"MongoDB","!url":"https://www.mongodb.org/",MongoClient:"mongodb.MongoClient",Db:"mongodb.Db",Server:"mongodb.Server",SocketOptions:"mongodb.SocketOptions",ServerOptions:"mongodb.ServerOptions",CollectionFindOptions:"mongodb.CollectionFindOptions",MongoCollectionOptions:"mongodb.MongoCollectionOptions",IndexOptions:"mongodb.IndexOptions",CollectionCreateOptions:"mongodb.CollectionCreateOptions",DbCreateOptions:"mongodb.DbCreateOptions",MapReduceOptions:"mongodb.MapReduceOptions",CollStats:"mongodb.CollStats",ReadPreference:"mongodb.ReadPreference",Collection:"mongodb.Collection",Cursor:"mongodb.Cursor",PKFactory:"mongodb.PKFactory"}}}}
}),define("javascript/ternPlugins/mysql",["tern/lib/infer","tern/lib/tern","./resolver"],function(e,t,n){function r(t,r,s,a){var i=e.findExpressionAround(t.ast,r,s,t.scope),l=n.getTemplatesForNode(o,i,r);l&&l.forEach(function(e){a(e.name,null,0,function(t){t.prefix=e.prefix,t.description=e.description,t.template=e.template,t.segments=e.segments,t.origin="mysql",t.type="template"})})}var o=[{prefix:"mysql",name:"mysql",nodes:{top:!0,member:!1,prop:!1},description:" - Node.js require statement for MySQL DB",template:"var mysql = require('mysql');\n"},{prefix:"mysql",name:"mysql connection",nodes:{top:!0,member:!1,prop:!1},description:" - create a new MySQL DB connection",template:"var mysql = require('mysql');\nvar ${connection} = mysql.createConnection({\n	host : ${host},\n	user : ${username},\n	password : ${password}\n});\ntry {\n	${connection}.connect();\n	${cursor}\n} finally {\n	${connection}.end();\n}"},{prefix:"mysql",name:"mysql query",nodes:{top:!0,member:!1,prop:!1},description:" - create a new MySQL DB query statement",template:"${connection}.query(${sql}, function(error, rows, fields) {\n	${cursor}\n});\n"}];t.registerPlugin("mysql",function(){return{defs:s,passes:{variableCompletion:r}}});var s={mysql:{createConnection:"fn(connectionUri: string) -> Connection",createPool:"fn(config: PoolConfig) -> Pool",createPoolCluster:"fn(config?: PoolClusterConfig) -> PoolCluster",escape:"fn(value: ?) -> string",format:"fn(sql: string) -> string",MySql:{createConnection:"fn(connectionUri: string) -> Connection",createPool:"fn(config: PoolConfig) -> Pool",createPoolCluster:"fn(config?: PoolClusterConfig) -> PoolCluster",escape:"fn(value: ?) -> string",format:"fn(sql: string) -> string"},ConnectionStatic:{createQuery:"fn(sql: string) -> Query"},Connection:{config:"ConnectionConfig",threadId:"number",beginTransaction:"fn(callback: fn(err: Error))",connect:"fn()",commit:"fn(callback: fn(err: Error))",changeUser:"fn(options: ConnectionOptions)",query:"QueryFunction",end:"fn()",destroy:"fn()",pause:"fn()",release:"fn()",resume:"fn()",escape:"fn(value: ?) -> string",escapeId:"fn(value: string) -> string",format:"fn(sql: string) -> string",on:"fn(ev: string, callback: fn(args: [?])) -> Connection",rollback:"fn(callback: fn())"},Pool:{config:"PoolConfig",getConnection:"fn(callback: fn(err: Error, connection: Connection))",query:"QueryFunction",end:"fn()",on:"fn(ev: string, callback: fn(args: [?])) -> Pool"},PoolCluster:{config:"PoolClusterConfig",add:"fn(config: PoolConfig)",end:"fn()",getConnection:"fn(callback: fn(err: Error, connection: Connection))",of:"fn(pattern: string) -> Pool",on:"fn(ev: string, callback: fn(args: [?])) -> PoolCluster"},Query:{sql:"string",start:"fn()",determinePacket:"fn(firstByte: number, parser: ?) -> ?",stream:"fn(options: StreamOptions) -> stream.Readable",pipe:"fn(callback: fn(args: [?])) -> Query",on:"fn(ev: string, callback: fn(args: [?])) -> Query"},QueryFunction:{},QueryOptions:{sql:"string",timeout:"number",nestTables:"?",typeCast:"?"},StreamOptions:{highWaterMark:"number",objectMode:"?"},ConnectionOptions:{user:"string",password:"string",database:"string",charset:"string"},ConnectionConfig:{host:"string",port:"number",localAddress:"string",socketPath:"string",timezone:"string",connectTimeout:"number",stringifyObjects:"bool",insecureAuth:"bool",typeCast:"?",queryFormat:"fn(query: string, values: ?)",supportBigNumbers:"bool",bigNumberStrings:"bool",dateStrings:"bool",debug:"?",trace:"bool",multipleStatements:"bool",flags:"?",ssl:"?"},PoolConfig:{acquireTimeout:"number",waitForConnections:"bool",connectionLimit:"number",queueLimit:"number"},PoolClusterConfig:{canRetry:"bool",removeNodeErrorCount:"number",defaultSelector:"string"},SslCredentials:{pfx:"string",key:"string",passphrase:"string",cert:"string",ca:"?",crl:"?",ciphers:"string"},Error:{code:"string",errno:"number",sqlStateMarker:"string",sqlState:"string",fieldCount:"number",stack:"string",fatal:"bool"}},"!name":"mysql","!define":{"!node":{mysql:{createConnection:"fn(connectionUri: string) -> mysql.Connection",createPool:"fn(config: mysql.PoolConfig) -> mysql.Pool",createPoolCluster:"fn(config?: mysql.PoolClusterConfig) -> mysql.PoolCluster",escape:"fn(value: ?) -> string",format:"fn(sql: string) -> string"}}}}}),define("javascript/ternPlugins/open_impl",["tern/lib/infer","tern/lib/tern","javascript/finder"],function(e,t,n){t.registerPlugin("open_impl",function(){return{}}),t.defineQueryType("implementation",{run:function(t,n){n.end&&!n.start&&(n.start=n.end);var r=t.fileMap[n.file],o=this.findImplRecurse(n.end,r,{implementation:{}},t);return!n.guess&&e.didGuess()?null:(o.implementation.guess=e.didGuess(),o)},findImplRecurse:function(e,r,o,s){var a,i,l;if(r){var c=n.findNode(e,r.ast,{parents:!0});if(c&&"Identifier"===c.type){var p=c.parents[c.parents.length-1];if(p){"MemberExpression"===p.type&&c.parents.length>=2&&(p=c.parents[c.parents.length-2]);var u;if("VariableDeclarator"===p.type&&p.init?u=p.init:"AssignmentExpression"===p.type&&p.right?u=p.right:"Property"===p.type&&p.value&&(u=p.value),u){if("Literal"===u.type||"FunctionExpression"===u.type)return{implementation:{start:c.start,end:c.end,file:r.name}};if(a={start:u.start,end:u.end,file:r.name,guess:!0},i=t.findDef(s,a,r),i&&"number"==typeof i.start&&"number"==typeof i.end&&(i.start!==c.start||i.end!==c.end))return l=s.fileMap[i.file],this.findImplRecurse(i.end,l,{implementation:{start:i.start,end:i.end,file:i.file}},s)}}return a={start:c.start,end:c.end,file:r.name,guess:!0},i=t.findDef(s,a,r),!i||"number"!=typeof i.start||"number"!=typeof i.end||i.start===c.start&&i.end===c.end?{implementation:{start:c.start,end:c.end,file:r.name}}:(l=s.fileMap[i.file],this.findImplRecurse(i.end,l,{implementation:{start:i.start,end:i.end,file:i.file}},s))}}return o}})}),define("javascript/ternPlugins/outliner",["tern/lib/tern","estraverse/estraverse","javascript/signatures"],function(e,t,n){e.registerPlugin("outliner",function(){return{}}),e.defineQueryType("outline",{takesFile:!0,run:function(e,r,o){function s(e){if(e){var t={label:e.sig,labelPost:e.details,start:e.range[0],end:e.range[1]};if(i.length<1)a.push(t);else{var n=i[i.length-1];n.children||(n.children=[]),n.children.push(t)}return t}}if(o.ast){var a=[],i=[];t.traverse(o.ast,{enter:function(e){var r;switch(e.type){case t.Syntax.FunctionDeclaration:r=s(n.computeSignature(e)),r&&i.push(r);break;case t.Syntax.FunctionExpression:r=s(n.computeSignature(e)),r&&i.push(r),delete e.sig;break;case t.Syntax.ObjectExpression:r=s(n.computeSignature(e)),r&&i.push(r),delete e.sig,e.properties&&e.properties.forEach(function(e){e.value&&(e.value.type===t.Syntax.FunctionExpression||e.value.type===t.Syntax.ObjectExpression?e.value.sig=n.computeSignature(e):s(n.computeSignature(e)))});break;case t.Syntax.VariableDeclaration:e.declarations&&e.declarations.forEach(function(e){e.init&&e.init.type===t.Syntax.ObjectExpression&&(e.init.sig=n.computeSignature(e))});break;case t.Syntax.AssignmentExpression:e.left&&e.right&&(e.right.type===t.Syntax.ObjectExpression||e.right.type===t.Syntax.FunctionExpression)&&(e.right.sig=n.computeSignature(e));break;case t.Syntax.ReturnStatement:e.argument&&(e.argument.type===t.Syntax.ObjectExpression||e.argument.type===t.Syntax.FunctionExpression)&&(e.argument.sig=n.computeSignature(e))}},leave:function(e){(e.type===t.Syntax.ObjectExpression||e.type===t.Syntax.FunctionDeclaration||e.type===t.Syntax.FunctionExpression)&&i.pop()}})}return a}})}),define("javascript/ternPlugins/plugins",["tern/lib/tern"],function(e){e.registerPlugin("plugins",function(){return{}}),e.defineQueryType("installed_plugins",{run:function(e){return e.options&&"object"==typeof e.options.plugins?e.options.plugins:null}}),e.defineQueryType("installed_defs",{run:function(e){return e.options&&"object"==typeof e.options.defs?e.options.defs:null}}),e.defineQueryType("environments",{run:function(e){if(e.options&&"object"==typeof e.options.plugins){for(var t=e.options.plugins,n=Object.keys(t),r=Object.create(null),o=0;o<n.length;o++){var s=n[o],a=t[s].env;a&&(r[a]=!0)}return r}return null}})}),define("javascript/ternPlugins/postgres",["tern/lib/infer","tern/lib/tern","./resolver"],function(e,t,n){function r(t,r,s,a){var i=e.findExpressionAround(t.ast,r,s,t.scope),l=n.getTemplatesForNode(o,i,r);l&&l.forEach(function(e){a(e.name,null,0,function(t){t.prefix=e.prefix,t.description=e.description,t.template=e.template,t.segments=e.segments,t.origin="postgres",t.type="template"})})}var o=[{prefix:"postgres",name:"postgres",nodes:{top:!0,member:!1,prop:!1},description:" - Node.js require statement for Postgres DB",template:"var pg = require('pg');\n"},{prefix:"postgres",name:"postgres client",nodes:{top:!0,member:!1,prop:!1},description:" - create a new Postgres DB client",template:"var pg = require('pg');\nvar url = \"postgres://postgres:${port}@${host}/${database}\";\nvar ${client} = new pg.Client(url);\n"},{prefix:"postgres",name:"postgres connect",nodes:{top:!0,member:!1,prop:!1},description:" - create a new Postgres DB client and connect",template:"var pg = require('pg');\nvar url = \"postgres://postgres:${port}@${host}/${database}\";\nvar ${client} = new pg.Client(url);\n${client}.connect(function(error) {\n	${cursor}\n});\n"},{prefix:"postgres",name:"postgres query",nodes:{top:!0,member:!1,prop:!1},description:" - create a new Postgres DB query statement",template:"${client}.query(${sql}, function(error, result) {\n	${cursor}\n});\n"}];t.registerPlugin("postgres",function(){return{defs:s,passes:{variableCompletion:r}}});var s={pg:{connect:"fn(connection: string, callback: fn(err: Error, client: Client, done: fn()))",end:"fn()",ConnectionConfig:{user:"string",database:"string",password:"string",port:"number",host:"string"},Defaults:{poolSize:"number",poolIdleTimeout:"number",reapIntervalMillis:"number",binary:"bool",parseInt8:"bool"},ClientConfig:{ssl:"bool"},QueryConfig:{name:"string",text:"string",values:"[?]"},QueryResult:{rows:"[?]"},ResultBuilder:{command:"string",rowCount:"number",oid:"number",addRow:"fn(row: ?)"},Client:{"!type":"fn(connection: string)",prototype:{connect:"fn(callback?: fn(err: Error))",end:"fn()",query:"fn(queryText: string, callback?: fn(err: Error, result: QueryResult)) -> Query",copyFrom:"fn(queryText: string) -> stream.Writable",copyTo:"fn(queryText: string) -> stream.Readable",pauseDrain:"fn()",resumeDrain:"fn()",on:"fn(event: string, listener: fn()) -> Client"}},Query:{prototype:{on:"fn(event: string, listener: fn(row: ?, result?: ResultBuilder)) -> Query"}},Events:{prototype:{on:"fn(event: string, listener: fn(err: Error, client: Client)) -> Events"}}},"!name":"pg","!define":{"!node":{pg:{connect:"fn(connection: string, callback: fn(err: Error, client: Client, done: fn()))",end:"fn()",Client:"pg.Client"}}}}}),define("javascript/ternPlugins/redis",["tern/lib/infer","tern/lib/tern","./resolver"],function(e,t,n){function r(t,r,s,a){var i=e.findExpressionAround(t.ast,r,s,t.scope),l=n.getTemplatesForNode(o,i,r);l&&l.forEach(function(e){a(e.name,null,0,function(t){t.prefix=e.prefix,t.description=e.description,t.template=e.template,t.segments=e.segments,t.origin="redis",t.type="template"})})}var o=[{prefix:"redis",name:"redis",nodes:{top:!0,member:!1,prop:!1},description:" - Node.js require statement for Redis",template:"var ${name} = require('redis');\n"},{prefix:"redis",name:"redis client",nodes:{top:!0,member:!1,prop:!1},description:" - create a new Redis client",template:"var ${name} = require('redis');\nvar ${client} = ${name}.createClient(${port}, ${host}, ${options});\n"},{prefix:"redis",name:"redis connect",nodes:{top:!0,member:!1,prop:!1},description:" - create a new Redis client and connect",template:"var ${name} = require('redis');\nvar ${client} = ${name}.createClient(${port}, ${host}, ${options});\ntry {\n	${cursor}\n} finally {\n	${client}.close();\n}\n"},{prefix:"redis",name:"redis set",nodes:{top:!0,member:!1,prop:!1},description:" - create a new Redis client set call",template:"client.set(${key}, ${value});\n"},{prefix:"redis",name:"redis get",nodes:{top:!0,member:!1,prop:!1},description:" - create a new Redis client get call",template:"client.get(${key}, function(${error}, ${reply}) {\n	${cursor}\n});\n"},{prefix:"redis",name:"redis on",nodes:{top:!0,member:!1,prop:!1},description:" - create a new Redis client event handler",template:"client.on(${event}, function(${arg}) {\n	${cursor}});\n"}];t.registerPlugin("redis",function(){return{defs:s,passes:{variableCompletion:r}}});var s={"!name":"redis","!define":{"!node":{redis:{createClient:"fn(port_arg: number, host_arg?: string, options?: ClientOpts) -> RedisClient",print:"fn(err: Error, reply: ?)",debug_mode:"bool",ClientOpts:"redis.ClientOpts"}}},ClientOpts:{parser:"string",return_buffers:"bool",detect_buffers:"bool",socket_nodelay:"bool",no_ready_check:"bool",enable_offline_queue:"bool",retry_max_delay:"number",connect_timeout:"number",max_attempts:"number",auth_pass:"string"},RedisClient:{connected:"bool",retry_delay:"number",retry_backoff:"number",command_queue:"[?]",offline_queue:"[?]",server_info:"ServerInfo",end:"fn()",auth:"fn(password: string, callback?: ?)",ping:"fn(callback?: ?)",append:"fn(key: string, value: string, callback?: ?)",bitcount:"fn(key: string, callback?: ?)",set:"fn(key: string, value: string, callback?: ?)",get:"fn(key: string, callback?: ?)",exists:"fn(key: string, value: string, callback?: ?)",publish:"fn(channel: string, value: ?)",subscribe:"fn(channel: string)",setnx:"fn(args: [?], callback?: ?)",setex:"fn(args: [?], callback?: ?)",strlen:"fn(args: [?], callback?: ?)",del:"fn(args: [?], callback?: ?)",setbit:"fn(args: [?], callback?: ?)",getbit:"fn(args: [?], callback?: ?)",setrange:"fn(args: [?], callback?: ?)",getrange:"fn(args: [?], callback?: ?)",substr:"fn(args: [?], callback?: ?)",incr:"fn(args: [?], callback?: ?)",decr:"fn(args: [?], callback?: ?)",mget:"fn(args: [?], callback?: ?)",rpush:"fn(args: [?])",lpush:"fn(args: [?], callback?: ?)",rpushx:"fn(args: [?], callback?: ?)",lpushx:"fn(args: [?], callback?: ?)",linsert:"fn(args: [?], callback?: ?)",rpop:"fn(args: [?], callback?: ?)",lpop:"fn(args: [?], callback?: ?)",brpop:"fn(args: [?], callback?: ?)",brpoplpush:"fn(args: [?], callback?: ?)",blpop:"fn(args: [?], callback?: ?)",llen:"fn(args: [?], callback?: ?)",lindex:"fn(args: [?], callback?: ?)",lset:"fn(args: [?], callback?: ?)",lrange:"fn(args: [?], callback?: ?)",ltrim:"fn(args: [?], callback?: ?)",lrem:"fn(args: [?], callback?: ?)",rpoplpush:"fn(args: [?], callback?: ?)",sadd:"fn(args: [?], callback?: ?)",srem:"fn(args: [?], callback?: ?)",smove:"fn(args: [?], callback?: ?)",sismember:"fn(args: [?], callback?: ?)",scard:"fn(args: [?], callback?: ?)",spop:"fn(args: [?], callback?: ?)",srandmember:"fn(args: [?], callback?: ?)",sinter:"fn(args: [?], callback?: ?)",sinterstore:"fn(args: [?], callback?: ?)",sunion:"fn(args: [?], callback?: ?)",sunionstore:"fn(args: [?], callback?: ?)",sdiff:"fn(args: [?], callback?: ?)",sdiffstore:"fn(args: [?], callback?: ?)",smembers:"fn(args: [?], callback?: ?)",zadd:"fn(args: [?], callback?: ?)",zincrby:"fn(args: [?], callback?: ?)",zrem:"fn(args: [?], callback?: ?)",zremrangebyscore:"fn(args: [?], callback?: ?)",zremrangebyrank:"fn(args: [?], callback?: ?)",zunionstore:"fn(args: [?], callback?: ?)",zinterstore:"fn(args: [?], callback?: ?)",zrange:"fn(args: [?], callback?: ?)",zrangebyscore:"fn(args: [?], callback?: ?)",zrevrangebyscore:"fn(args: [?], callback?: ?)",zcount:"fn(args: [?], callback?: ?)",zrevrange:"fn(args: [?], callback?: ?)",zcard:"fn(args: [?], callback?: ?)",zscore:"fn(args: [?], callback?: ?)",zrank:"fn(args: [?], callback?: ?)",zrevrank:"fn(args: [?], callback?: ?)",hset:"fn(args: [?], callback?: ?)",hsetnx:"fn(args: [?], callback?: ?)",hget:"fn(args: [?], callback?: ?)",hmset:"fn(args: [?], callback?: ?)",hmget:"fn(args: [?], callback?: ?)",hincrby:"fn(args: [?], callback?: ?)",hdel:"fn(args: [?], callback?: ?)",hlen:"fn(args: [?], callback?: ?)",hkeys:"fn(args: [?], callback?: ?)",hvals:"fn(args: [?], callback?: ?)",hgetall:"fn(args: [?], callback?: ?)",hexists:"fn(args: [?], callback?: ?)",incrby:"fn(args: [?], callback?: ?)",decrby:"fn(args: [?], callback?: ?)",getset:"fn(args: [?], callback?: ?)",mset:"fn(args: [?], callback?: ?)",msetnx:"fn(args: [?], callback?: ?)",randomkey:"fn(args: [?], callback?: ?)",select:"fn(args: [?], callback?: ?)",move:"fn(args: [?], callback?: ?)",rename:"fn(args: [?], callback?: ?)",renamenx:"fn(args: [?], callback?: ?)",expire:"fn(args: [?], callback?: ?)",expireat:"fn(args: [?], callback?: ?)",keys:"fn(args: [?], callback?: ?)",dbsize:"fn(args: [?], callback?: ?)",echo:"fn(args: [?], callback?: ?)",save:"fn(args: [?], callback?: ?)",bgsave:"fn(args: [?], callback?: ?)",bgrewriteaof:"fn(args: [?], callback?: ?)",shutdown:"fn(args: [?], callback?: ?)",lastsave:"fn(args: [?], callback?: ?)",type:"fn(args: [?], callback?: ?)",multi:"fn(args: [?], callback?: ?)",exec:"fn(args: [?], callback?: ?)",discard:"fn(args: [?], callback?: ?)",sync:"fn(args: [?], callback?: ?)",flushdb:"fn(args: [?], callback?: ?)",flushall:"fn(args: [?], callback?: ?)",sort:"fn(args: [?], callback?: ?)",info:"fn(args: [?], callback?: ?)",monitor:"fn(args: [?], callback?: ?)",ttl:"fn(args: [?], callback?: ?)",persist:"fn(args: [?], callback?: ?)",slaveof:"fn(args: [?], callback?: ?)",debug:"fn(args: [?], callback?: ?)",config:"fn(args: [?], callback?: ?)",unsubscribe:"fn(args: [?], callback?: ?)",psubscribe:"fn(args: [?], callback?: ?)",punsubscribe:"fn(args: [?], callback?: ?)",watch:"fn(args: [?], callback?: ?)",unwatch:"fn(args: [?], callback?: ?)",cluster:"fn(args: [?], callback?: ?)",restore:"fn(args: [?], callback?: ?)",migrate:"fn(args: [?], callback?: ?)",dump:"fn(args: [?], callback?: ?)",object:"fn(args: [?], callback?: ?)",client:"fn(args: [?], callback?: ?)",eval:"fn(args: [?], callback?: ?)",evalsha:"fn(args: [?], callback?: ?)",quit:"fn(args: [?], callback?: ?)"},createClient:"fn(port_arg: number, host_arg?: string, options?: ClientOpts) -> RedisClient",print:"fn(err: Error, reply: ?)",debug_mode:"bool",MessageHandler:{},ServerInfo:{redis_version:"string",versions:"[number]"}}}),define("javascript/ternPlugins/refs",["tern/lib/infer","tern/lib/tern","javascript/finder"],function(e,t,n){function r(r,s,i){var l,c=n.findComment(r.end,s.ast);if(c)l={guess:!1,type:void 0,name:void 0,category:"Block"===c.type?"blockcomments":"linecomments"};else{var p,u,d,h=t.findExpr(s,r);try{u=t.findExprType(i,r,s,h),d=u,u=r.preferFunction?u.getFunctionType()||u.getType():u.getType(),h&&("Identifier"===h.node.type?p=h.node.name:"MemberExpression"!==h.node.type||h.node.computed||(p=h.node.property.name))}catch(f){}l={guess:e.didGuess(),type:e.toString(d),name:u&&u.name,exprName:p},o(r,s,l),u?t.storeTypeDocs(r,u,l):a(r,s,l),!l.doc&&d&&d.doc&&(l.doc=t.parseDoc(r,d.doc))}return l}function o(e,t,r){if(Array.isArray(t.ast.errors)&&t.ast.errors.length>0)return void(r.category="parseerrors");var o=n.findNode(e.end-1,t.ast,{parents:!0});if(o){if("Identifier"===o.type){var a=o.parents.pop();a.parents=o.parents,o=a}if("RecoveredNode"!==o.type)switch(o.type){case"Program":r.category="uncategorized";break;case"FunctionDeclaration":case"FunctionExpression":for(var i=0,l=o.params.length;l>i;i++)if(s(e.end,o.params[i])){r.category="vardecls";break}r.category||(r.category="funcdecls");break;case"Property":s(e.end,o.key)?r.category=o.value&&"FunctionExpression"===o.value.type?"funcdecl":"propwrite":s(e.end,o.value)&&(r.category="FunctionExpression"===o.value.type?"funcdecls":"Identifier"===o.value.type?"varaccess":"propwrite");break;case"CallExpression":if(s(e.end,o.callee)&&(r.category="funccalls"),o.arguments.length>0)for(i=0,l=o.arguments.length;l>i;i++){var c=o.arguments[i];s(e.end,c)&&("Identifier"===c.type?r.category="varaccess":"MemberExpression"===c.type&&(r.category="propaccess"))}break;case"AssignmentExpression":s(e.end,o.left)?r.category="Identifier"===o.left.type?"varwrite":"propwrite":s(e.end,o.right)&&("Identifier"===o.right.type?r.category="varaccess":"MemberExpression"===o.right.type&&(r.category="propaccess"));break;case"VariableDeclarator":s(e.end,o.id)?r.category="vardecls":s(e.end,o.init)&&(r.category="varaccess");break;case"Literal":o.regex?r.category="regex":"string"==typeof o.value&&(r.category="strings");break;case"NewExpression":o.callee&&s(e.end,o.callee)&&(r.category="funccalls");break;case"MemberExpression":if(o.object&&"Identifier"===o.object.type&&s(e.end,o.object)){r.category="varaccess";break}for(var p;"MemberExpression"===o.type;)p=o.property,a=o.parents.pop(),a.parents=o.parents,o=a;if(o&&("CallExpression"===o.type||"NewExpression"===o.type)&&s(e.end,p)){if(o.callee&&s(e.end,o.callee))r.category="funccalls";else if(o.arguments&&o.arguments.length>0)for(i=0,l=o.arguments.length;l>i;i++)s(e.end,o.arguments[i])&&(r.category="propaccess")}else r.category=o&&"AssignmentExpression"===o.type&&s(e.end,o.left)?o.right&&"FunctionExpression"===o.right.type?"funcdecls":s(e.end,p)?"propwrite":"propaccess":"propaccess";break;case"UpdateExpression":"Identifier"===o.argument.type?r.category="varaccess":"MemberExpression"===o.argument.type&&(r.category="propaccess");break;case"BinaryExpression":"Identifier"===o.left.type&&s(e.end,o.left)?r.category="varaccess":"Identifier"===o.right.type&&s(e.end,o.right)&&(r.category="varaccess");break;case"BreakStatement":case"ConditionalExpression":case"ContinueStatement":case"IfStatement":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"LogicalExpression":case"SwitchStatement":case"SwitchCase":case"WithStatement":case"WhileStatement":r.category="varaccess";break;case"LetStatement":case"LabeledStatement":r.category="varwrite";break;case"Block":r.category="blockcomments";break;case"Line":r.category="linecomments";break;case"UnaryExpression":o.argument&&s(e.end,o.argument)&&(r.category="varaccess")}}r.category||(r.category="uncategorized")}function s(e,t){return t&&t.range[0]<=e&&e<=t.range[1]}function a(e,t,r){var o=n.findNode(e.end,t.ast,{parents:!0});o?i(e,o,r):r.staticCheck={confidence:0}}function i(e,t,n){switch(t.type){case"FunctionDeclaration":case"FunctionExpression":case"VariableDeclarator":case"Literal":n.staticCheck={confidence:0};break;case"Identifier":if(Array.isArray(t.parents)){var r=t.parents.slice(t.parents.length-1)[0];i(e,r,n)}else n.staticCheck={confidence:25};break;case"AssignmentExpression":n.staticCheck="Identifier"===t.left.type&&t.left.name===e.origin.type.exprName?{confidence:25}:"Identifier"===t.right.type&&t.right.name===e.origin.type.exprName?{confidence:25}:{confidence:5};break;case"MemberExpression":n.staticCheck={confidence:10};break;case"CallExpression":t.callee.name===e.origin.type.exprName&&(n.staticCheck="fn()"===e.origin.type.type?{confidence:25}:{confidence:0});for(var o=0,s=t.arguments.length;s>o;o++){var a=t.arguments[o];"Identifier"===a.type?n.staticCheck="fn()"===e.origin.type.type?{confidence:0}:{confidence:40}:"FunctionExpression"===a.type&&a.id===e.origin.type.exprName&&(n.staticCheck={confidence:0})}break;default:n.staticCheck={confidence:0}}}t.registerPlugin("refs",function(){return{}}),t.defineQueryType("checkRef",{takesFile:!0,run:function(e,t,n){return r(t,n,e)}})}),define("javascript/plugins/ternDefaults",["i18n!javascript/nls/messages","json!tern/defs/ecma5.json","json!tern/defs/ecma6.json","json!tern/defs/browser.json","json!tern/defs/chai.json","tern/plugin/angular","tern/plugin/doc_comment","tern/plugin/node","tern/plugin/requirejs","javascript/ternPlugins/amqp","javascript/ternPlugins/eslint","javascript/ternPlugins/express","javascript/ternPlugins/html","javascript/ternPlugins/jsdoc","javascript/ternPlugins/mongodb","javascript/ternPlugins/mysql","javascript/ternPlugins/open_impl","javascript/ternPlugins/outliner","javascript/ternPlugins/plugins","javascript/ternPlugins/postgres","javascript/ternPlugins/redis","javascript/ternPlugins/refs"],function(e,t,n,r,o){var s=[t,n,r,o],a=["ecma5","ecma6","browser","chai"],i={required:{doc_comment:{name:e.ternDocPluginName,description:e.ternDocPluginDescription,fullDocs:!0,version:"0.12.0"},plugins:{name:e.ternPluginsPluginName,description:e.ternPluginsPluginDescription,version:"1.0"},open_impl:{name:e.openImplPluginName,description:e.openImplPluginDescription,version:"1.0"},html:{name:e.htmlDepPluginName,description:e.htmlDepPluginDescription,version:"1.0"},refs:{name:e.findTypesName,description:e.findTypesDescription,version:"1.0"},jsdoc:{name:e.jsdocPluginName,description:e.jsdocPluginDescription,version:"1.0"},eslint:{name:e.eslintPluginName,description:e.eslintPluginDescription,version:"1.0"},outliner:{name:e.outlinerPluginName,description:e.outlinerPluginDescription,version:"1.0"}},optional:{amqp:{name:e.orionAMQPPluginName,description:e.orionAMQPPluginDescription,version:"0.9.1",env:"amqp"},angular:{name:e.orionAngularPluginName,description:e.orionAngularPluginDescription,version:"0.12.0"},express:{name:e.orionExpressPluginName,description:e.orionExpressPluginDescription,version:"4.12.4",env:"express"},mongodb:{name:e.orionMongoDBPluginName,description:e.orionMongoDBPluginDescription,version:"1.1.21",env:"mongodb"},mysql:{name:e.orionMySQLPluginName,description:e.orionMySQLPluginDescription,version:"2.7.0",env:"mysql"},node:{name:e.orionNodePluginName,description:e.orionNodePluginDescription,version:"0.12.0"},postgres:{name:e.orionPostgresPluginName,description:e.orionPostgresPluginDescription,version:"4.4.0",env:"pg"},redis:{name:e.orionRedisPluginName,description:e.orionRedisPluginDescription,version:"0.12.1",env:"redis"},requirejs:{name:e.orionRequirePluginName,description:e.orionRequirePluginDescription,version:"0.12.0"}}};return{plugins:i,defs:s,defNames:a,pluginsDir:"tern/plugin/"}}),define("orion/serialize",[],function(){function e(e){var t=e?JSON.parse(JSON.stringify(e)):e;return e instanceof Error&&(t.__isError=!0,t.lineNumber="number"==typeof t.lineNumber?t.lineNumber:e.lineNumber,t.message=t.message||e.message,t.name=t.name||e.name,t.stack=t.stack||e.stack),t}return{serializeError:e}}),define("orion/i18nUtil",[],function(){function e(e){var t=/\$\{([^\}]+)\}/g,n=arguments;return 2===n.length&&n[1]&&"object"==typeof n[1]?e.replace(t,function(e,t){return n[1][t]}):e.replace(t,function(e,t){return n[(t<<0)+1]})}return{formatMessage:e}});var lang="en",sear=self.location.search;if(sear){var langs=sear.split("worker-language");Array.isArray(langs)&&2===langs.length&&(lang=langs[1].slice(1),lang&&(lang=lang.toLocaleLowerCase()))}requirejs.config({locale:lang}),require(["tern/lib/tern","javascript/plugins/ternDefaults","orion/Deferred","orion/objects","orion/serialize","i18n!javascript/nls/messages","orion/i18nUtil"],function(e,t,n,r,o,s,a){function i(s,a){function i(e){b.plugins=t.plugins.required,_||r.mixin(b.plugins,t.plugins.optional),b.defs=t.defs,l(b),e&&p(o.serializeError(e))}function l(t){m=new e.Server(t),a({request:"start_server",state:"server_ready"})}m&&(m.reset(),m=null);var c,f,g,b={async:!0,debug:!1,projectDir:"/",getFile:u,plugins:t.plugins.required,defs:t.defs,ecmaVersion:6},y=t.pluginsDir;if(s&&(g=s.projectLoc,f=s.plugins,y=s.pluginsDir,c=s.libs,"number"==typeof s.ecmaVersion&&(b.ecmaVersion=s.ecmaVersion),"number"==typeof s.dependencyBudget&&(b.dependencyBudget=s.dependencyBudget),Array.isArray(s.dontLoad))){for(var v=!0,w=0,S=s.dontLoad.length;S>w;w++)if("string"!=typeof s.dontLoad[w]){v=!1;break}v&&(b.dontLoad=s.dontLoad)}"object"!=typeof f?f=null:r.mixin(b.plugins,f),Array.isArray(c)||(c=null);var _=f&&Object.keys(f).length<1;f&&!_||c?n.all(d(b.plugins,y)).then(function(){c?c.length<1?l(b):n.all(h(c,g)).then(function(e){b.defs=e,l(b)},i):l(b)},i):i()}function l(e){var t=Object.create(null);t.request=e.request,e.messageID?t.messageID=e.messageID:e.ternID&&(t.ternID=e.ternID),t.error=a.formatMessage(s.unknownRequest,t.request),p(t)}function c(e){var t=Object.create(null);t.request=e.request,e.messageID?t.messageID=e.messageID:e.ternID&&(t.ternID=e.ternID),t.error=a.formatMessage(s.serverNotStarted,t.request),p(t)}function p(e,t){e||(e=new Error(t?t:s.unknownError)),this.port?this.port.postMessage(e):postMessage(e)}function u(e,t){var n={request:"read",ternID:b++,args:{file:e}};null!==e&&"object"==typeof e?v[n.ternID]=t:y[n.ternID]=t,p(n,null)}function d(e,r){var o=[];return e&&Object.keys(e).forEach(function(s){if(!t.plugins.required[s]&&!t.plugins.optional[s]){var a=e[s];if(a&&"object"==typeof a){var i=a.location;"string"!=typeof i&&(i="string"==typeof r?r+s:"tern/plugin/"+s);var l=new n;try{o.push(l),requirejs([i],function(e){l.resolve(e)},function(e){l.reject(e)})}catch(c){p(c),l.reject(c)}}}}),o}function h(e,r){var o=[];return Array.isArray(e)&&e.forEach(function(e){if(/^\.definitions/.test(e)){if("string"==typeof e){var s=f(e,r);s&&o.push(s)}}else{var a=t.defNames.indexOf(e);a>-1&&o.push((new n).resolve(t.defs[a]))}}),o}function f(e,t){var r=e;t&&(r=t+r),/$.json/i.test(e)||(r+=".json");var o=new n;return u(r,function(e,t){"string"==typeof t?o.resolve(JSON.parse(t)):o.reject()}),o}var m=null;p({request:"worker_ready"});var g={start_server:function(e,t){i(e.options,t)},addFile:function(e,t){m.addFile(e.file,e.source),t({request:"addFile"})},completions:function(e,t){m?m.request({query:{type:"completions",file:e.meta.location,types:!0,origins:!0,urls:!0,docs:!0,end:e.params.offset,sort:!0,includeKeywords:e.params.keywords,caseInsensitive:!0,docFormat:"full"},files:e.files},function(e,n){t(e?{request:"completions",proposals:[],error:e.message,message:s.failedToComputeProposals}:n&&n.completions?{request:"completions",proposals:n.completions}:{request:"completions",proposals:[]})}):t({request:"completions",message:s.failedToComputeProposalsNoServer})},definition:function(e,t){m?m.request({query:{type:"definition",file:e.meta.location,end:e.params.offset,guess:e.guess},files:e.files},function(e,n){e&&t({request:"definition",error:e.message,message:s.failedToComputeDecl}),t(n&&"number"==typeof n.start&&"number"==typeof n.end?{request:"definition",declaration:n}:{request:"definition",declaration:null})}):t({request:"definition",message:s.failedToComputeDeclNoServer})},delFile:function(e,t){m&&"string"==typeof e.file?(m.delFile(e.file),t({request:"delFile"})):t({request:"delFile",message:a.formatMessage(s.failedDeleteRequest,e.file)})},documentation:function(e,t){m?m.request({query:{type:"documentation",file:e.meta.location,end:e.params.offset,docFormat:e.params.docFormat},files:e.files},function(e,n){t(e?{request:"documentation",error:e.message,message:s.failedToComputeDoc}:n&&n.doc?{request:"documentation",doc:n}:{request:"documentation",doc:null})}):t({request:"documentation",message:s.failedToComputeDocNoServer})},environments:function(e,t){m?m.request({query:{type:"environments"}},function(e,n){e&&t({request:"environments",error:e.message,message:s.failedGetEnvs}),t("object"==typeof n?{request:"environments",envs:n}:{request:"environments",envs:null})}):t({request:"environments",message:s.failedGetEnvsNoServer})},implementation:function(e,t){m?m.request({query:{type:"implementation",file:e.meta.location,end:e.params.offset,guess:e.guess},files:e.files},function(e,n){e&&t({request:"implementation",error:e.message,message:s.failedToComputeImpl}),t(n&&n.implementation&&"number"==typeof n.implementation.start&&"number"==typeof n.implementation.end?{request:"implementation",implementation:n.implementation}:{request:"implementation",implementation:null})}):t({request:"implementation",message:s.failedToComputeImplNoServer})},installed_plugins:function(e,t){m?m.request({query:{type:"installed_plugins"}},function(e,n){e&&t({request:"installed_plugins",error:e.message,message:s.failedGetInstalledPlugins}),t("object"==typeof n?{request:"installed_plugins",plugins:n}:{request:"installed_plugins",plugins:null})}):t({request:"installed_plugins",message:s.failedGetInstalledPluginsNoServer})},installed_defs:function(e,t){m?m.request({query:{type:"installed_defs"}},function(e,n){e&&t({request:"installed_defs",error:e.message,message:s.failedGetInstalledDefs}),t("object"==typeof n?{request:"installed_defs",defs:n}:{request:"installed_defs",defs:null})
}):t({request:"installed_defs",message:s.failedGetInstalledDefsNoServer})},rename:function(e,t){m?m.request({query:{type:"rename",file:e.meta.location,end:e.params.offset,newName:e.newname},files:e.files},function(e,n){t(e?{request:"rename",error:"string"==typeof e?e:e.message,message:s.failedRenameTern}:n&&Array.isArray(n.changes)?{request:"rename",changes:n}:{request:"rename",changes:[]})}):t({request:"rename",message:s.failedRenameNoServer})},type:function(e,t){m.request({query:{type:"type",file:e.meta.location,end:e.params.offset}},function(e,n){t(e?{request:"type",error:"string"==typeof e?e:e.message,message:s.failedType}:{request:"type",type:n})})},checkRef:function(e,t){m.request({query:{type:"checkRef",file:e.meta.location,end:e.params.offset,origin:e.origin},files:e.files},function(e,n){t(e?{request:"checkRef",error:"string"==typeof e?e:e.message,message:s.failedType}:{request:"checkRef",type:n})})},lint:function(e,t){var n={type:"lint",file:e.meta.location,config:{rules:e.rules}};e.env&&(n.env=e.env),m.request({query:n,files:e.files},function(e,n){t(e?{request:"lint",error:e.message,message:s.failedToComputeProblems}:n&&Array.isArray(n)?{request:"lint",problems:n}:{request:"lint",problems:[]})})},outline:function(e,t){m.request({query:{type:"outline",file:e.meta.location},files:e.files},function(e,n){t(e?{request:"outline",error:e.message,message:s.failedToComputeOutline}:n&&Array.isArray(n)?{request:"outline",outline:n}:{request:"outline",outline:[]})})}},b=0,y=Object.create(null),v=Object.create(null);onmessage=function(e){if("object"==typeof e.data){var t=e.data,n=g[t.request];if("function"==typeof n){if(!m&&"start_server"!==t.request)return void c(t);n(t.args,function(e){"number"==typeof t.messageID?e.messageID=t.messageID:"number"==typeof t.ternID&&(e.ternID=t.ternID),p(e)})}else{if("read"===t.request){var r=y[t.ternID];if("function"==typeof r){var o="";t.args&&t.args.contents&&(o=t.args.contents),r(t.args.error,o),delete y[t.ternID]}return r=v[t.ternID],void("function"==typeof r&&(r(t.args.error,{contents:t.args.contents?t.args.contents:"",file:t.args.file,logical:t.args.logical}),delete y[t.ternID]))}l(t)}}},onerror=function(e){p(e)},onconnect=function(e){this.port=e.ports[0],this.port.onmessage=onmessage,this.port.start()}}),define("javascript/plugins/ternWorkerCore",function(){});