From b2f5749b70bfd65c3c9237d6f21557c63c435b5a Mon Sep 17 00:00:00 2001 From: alexlamsl Date: Fri, 8 Jul 2016 15:26:36 +0800 Subject: [PATCH] Version 3.0.0 --- README.md | 20 ++-- dist/htmlminifier.js | 238 ++++++++++++++++++++++++++------------- dist/htmlminifier.min.js | 14 +-- index.html | 2 +- package.json | 2 +- 5 files changed, 179 insertions(+), 97 deletions(-) diff --git a/README.md b/README.md index 4de4708..9af837b 100644 --- a/README.md +++ b/README.md @@ -22,18 +22,18 @@ How does HTMLMinifier compare to other solutions — [HTML Minifier from Will Pe | Site | Original size *(KB)* | HTMLMinifier | minimize | Will Peavy | htmlcompressor.com | | --------------------------------------------------------------------------- |:--------------------:| ------------:| --------:| ----------:| ------------------:| -| [Google](https://www.google.com/) | 48 | **46** | 48 | 50 | 48 | -| [CNN](http://www.cnn.com/) | 115 | **105** | 111 | 113 | 109 | -| [HTMLMinifier](https://github.com/kangax/html-minifier) | 117 | **79** | 99 | 103 | 99 | -| [BBC](http://www.bbc.co.uk/) | 179 | **147** | 172 | 177 | 168 | -| [New York Times](http://www.nytimes.com/) | 186 | **127** | 136 | 140 | 134 | -| [Stack Overflow](http://stackoverflow.com/) | 240 | **186** | 195 | 204 | 193 | +| [Google](https://www.google.com/) | 44 | **43** | 45 | 46 | 45 | +| [CNN](http://www.cnn.com/) | 115 | **104** | 111 | 112 | 108 | +| [HTMLMinifier](https://github.com/kangax/html-minifier) | 118 | **80** | 100 | 105 | 101 | +| [BBC](http://www.bbc.co.uk/) | 180 | **147** | 173 | 178 | 169 | +| [New York Times](http://www.nytimes.com/) | 188 | **128** | 138 | 142 | 135 | +| [Stack Overflow](http://stackoverflow.com/) | 237 | **183** | 192 | 200 | 190 | | [Bootstrap CSS](http://getbootstrap.com/css/) | 277 | **264** | 274 | 232 | 274 | -| [Amazon](http://www.amazon.co.uk/) | 431 | **377** | 412 | 424 | n/a | -| [Wikipedia](https://en.wikipedia.org/wiki/President_of_the_United_States) | 481 | **437** | 464 | 479 | n/a | -| [NBC](http://www.nbc.com/) | 508 | **486** | 506 | 508 | n/a | +| [Amazon](http://www.amazon.co.uk/) | 429 | **374** | 409 | 421 | n/a | +| [Wikipedia](https://en.wikipedia.org/wiki/President_of_the_United_States) | 481 | **437** | 465 | 480 | n/a | +| [NBC](http://www.nbc.com/) | 499 | **477** | 497 | 499 | n/a | | [Eloquent Javascript](http://eloquentjavascript.net/1st_edition/print.html) | 870 | **815** | 840 | 864 | n/a | -| [ES6 table](http://kangax.github.io/compat-table/es6/) | 3884 | **3272** | 3664 | 3839 | n/a | +| [ES6 table](http://kangax.github.io/compat-table/es6/) | 3884 | **3272** | 3665 | 3839 | n/a | | [ES6 draft](https://tc39.github.io/ecma262/) | 4797 | **4247** | 4377 | 4500 | n/a | ## Options Quick Reference diff --git a/dist/htmlminifier.js b/dist/htmlminifier.js index af8ead2..51f0b21 100644 --- a/dist/htmlminifier.js +++ b/dist/htmlminifier.js @@ -1,5 +1,5 @@ /*! - * HTMLMinifier v2.1.7 (http://kangax.github.io/html-minifier/) + * HTMLMinifier v3.0.0 (http://kangax.github.io/html-minifier/) * Copyright 2010-2016 Juriy "kangax" Zaytsev * Licensed under the MIT license */ @@ -21627,10 +21627,19 @@ function makePredicate(words) { } cats.push([words[i]]); } + function quote(word) { + return JSON.stringify(word).replace(/[\u2028\u2029]/g, function(s) { + switch (s) { + case "\u2028": return "\\u2028"; + case "\u2029": return "\\u2029"; + } + return s; + }); + } function compareTo(arr) { - if (arr.length == 1) return f += "return str === " + JSON.stringify(arr[0]) + ";"; + if (arr.length == 1) return f += "return str === " + quote(arr[0]) + ";"; f += "switch(str){"; - for (var i = 0; i < arr.length; ++i) f += "case " + JSON.stringify(arr[i]) + ":"; + for (var i = 0; i < arr.length; ++i) f += "case " + quote(arr[i]) + ":"; f += "return true}return false;"; } // When there are more than three length categories, an outer @@ -22841,7 +22850,9 @@ var OPERATORS = makePredicate([ "||" ]); -var WHITESPACE_CHARS = makePredicate(characters(" \u00a0\n\r\t\f\u000b\u200b\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\uFEFF")); +var WHITESPACE_CHARS = makePredicate(characters(" \u00a0\n\r\t\f\u000b\u200b\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000\uFEFF")); + +var NEWLINE_CHARS = makePredicate(characters("\n\r\u2028\u2029")); var PUNC_BEFORE_EXPRESSION = makePredicate(characters("[{(,.;:")); @@ -22968,7 +22979,7 @@ function tokenizer($TEXT, filename, html5_comments, shebang) { var ch = S.text.charAt(S.pos++); if (signal_eof && !ch) throw EX_EOF; - if ("\r\n\u2028\u2029".indexOf(ch) >= 0) { + if (NEWLINE_CHARS(ch)) { S.newline_before = S.newline_before || !in_string; ++S.line; S.col = 0; @@ -22995,7 +23006,7 @@ function tokenizer($TEXT, filename, html5_comments, shebang) { var text = S.text; for (var i = S.pos, n = S.text.length; i < n; ++i) { var ch = text[i]; - if (ch == '\n' || ch == '\r') + if (NEWLINE_CHARS(ch)) return i; } return -1; @@ -23047,8 +23058,7 @@ function tokenizer($TEXT, filename, html5_comments, shebang) { }; function skip_whitespace() { - var ch; - while (WHITESPACE_CHARS(ch = peek()) || ch == "\u2028" || ch == "\u2029") + while (WHITESPACE_CHARS(peek())) next(); }; @@ -23086,7 +23096,7 @@ function tokenizer($TEXT, filename, html5_comments, shebang) { if (!isNaN(valid)) { return token("num", valid); } else { - parse_error("Invalid syntax: " + num); + parse_error("SyntaxError: Invalid syntax: " + num); } }; @@ -23099,7 +23109,6 @@ function tokenizer($TEXT, filename, html5_comments, shebang) { case 98 : return "\b"; case 118 : return "\u000b"; // \v case 102 : return "\f"; - case 48 : return "\0"; case 120 : return String.fromCharCode(hex_bytes(2)); // \x case 117 : return String.fromCharCode(hex_bytes(4)); // \u case 10 : return ""; // newline @@ -23109,46 +23118,44 @@ function tokenizer($TEXT, filename, html5_comments, shebang) { return ""; } } + if (ch >= "0" && ch <= "7") + return read_octal_escape_sequence(ch); return ch; }; + function read_octal_escape_sequence(ch) { + // Read + var p = peek(); + if (p >= "0" && p <= "7") { + ch += next(true); + if (ch[0] <= "3" && (p = peek()) >= "0" && p <= "7") + ch += next(true); + } + + // Parse + if (ch === "0") return "\0"; + if (ch.length > 0 && next_token.has_directive("use strict")) + parse_error("SyntaxError: Octal literals are not allowed in strict mode"); + return String.fromCharCode(parseInt(ch, 8)); + } + function hex_bytes(n) { var num = 0; for (; n > 0; --n) { var digit = parseInt(next(true), 16); if (isNaN(digit)) - parse_error("Invalid hex-character pattern in string"); + parse_error("SyntaxError: Invalid hex-character pattern in string"); num = (num << 4) | digit; } return num; }; - var read_string = with_eof_error("Unterminated string constant", function(quote_char){ + var read_string = with_eof_error("SyntaxError: Unterminated string constant", function(quote_char){ var quote = next(), ret = ""; for (;;) { var ch = next(true, true); - if (ch == "\\") { - var octal_len = 0, first = null; - ch = read_while(function(ch){ - if (ch >= "0" && ch <= "7") { - if (!first) { - first = ch; - return ++octal_len; - } - else if (first <= "3" && octal_len <= 2) return ++octal_len; - else if (first >= "4" && octal_len <= 1) return ++octal_len; - } - return false; - }); - if (octal_len > 0) { - if (ch !== "0" && next_token.has_directive("use strict")) - parse_error("Octal literals are not allowed in strict mode"); - ch = String.fromCharCode(parseInt(ch, 8)); - } else { - ch = read_escaped_char(true); - } - } - else if ("\r\n\u2028\u2029".indexOf(ch) >= 0) parse_error("Unterminated string constant"); + if (ch == "\\") ch = read_escaped_char(true); + else if (NEWLINE_CHARS(ch)) parse_error("SyntaxError: Unterminated string constant"); else if (ch == quote) break; ret += ch; } @@ -23173,21 +23180,14 @@ function tokenizer($TEXT, filename, html5_comments, shebang) { return next_token; }; - var skip_multiline_comment = with_eof_error("Unterminated multiline comment", function(){ + var skip_multiline_comment = with_eof_error("SyntaxError: Unterminated multiline comment", function(){ var regex_allowed = S.regex_allowed; var i = find("*/", true); - var text = S.text.substring(S.pos, i).replace(/\r\n|\r/g, '\n'); - var a = text.split("\n"), n = a.length; + var text = S.text.substring(S.pos, i).replace(/\r\n|\r|\u2028|\u2029/g, '\n'); // update stream position - S.pos = i + 2; - S.line += n - 1; - if (n > 1) S.col = a[n - 1].length; - else S.col += a[n - 1].length; - S.col += 2; - var nlb = S.newline_before = S.newline_before || text.indexOf("\n") >= 0; + forward(text.length /* doesn't count \r\n as 2 char while S.pos - i does */ + 2); S.comments_before.push(token("comment2", text, true)); S.regex_allowed = regex_allowed; - S.newline_before = nlb; return next_token; }); @@ -23200,9 +23200,9 @@ function tokenizer($TEXT, filename, html5_comments, shebang) { else break; } else { - if (ch != "u") parse_error("Expecting UnicodeEscapeSequence -- uXXXX"); + if (ch != "u") parse_error("SyntaxError: Expecting UnicodeEscapeSequence -- uXXXX"); ch = read_escaped_char(); - if (!is_identifier_char(ch)) parse_error("Unicode char: " + ch.charCodeAt(0) + " is not valid in identifier"); + if (!is_identifier_char(ch)) parse_error("SyntaxError: Unicode char: " + ch.charCodeAt(0) + " is not valid in identifier"); name += ch; backslash = false; } @@ -23214,9 +23214,11 @@ function tokenizer($TEXT, filename, html5_comments, shebang) { return name; }; - var read_regexp = with_eof_error("Unterminated regular expression", function(regexp){ + var read_regexp = with_eof_error("SyntaxError: Unterminated regular expression", function(regexp){ var prev_backslash = false, ch, in_class = false; - while ((ch = next(true))) if (prev_backslash) { + while ((ch = next(true))) if (NEWLINE_CHARS(ch)) { + parse_error("SyntaxError: Unexpected line terminator"); + } else if (prev_backslash) { regexp += "\\" + ch; prev_backslash = false; } else if (ch == "[") { @@ -23229,8 +23231,6 @@ function tokenizer($TEXT, filename, html5_comments, shebang) { break; } else if (ch == "\\") { prev_backslash = true; - } else if ("\r\n\u2028\u2029".indexOf(ch) >= 0) { - parse_error("Unexpected line terminator"); } else { regexp += ch; } @@ -23339,7 +23339,7 @@ function tokenizer($TEXT, filename, html5_comments, shebang) { } break; } - parse_error("Unexpected character '" + ch + "'"); + parse_error("SyntaxError: Unexpected character '" + ch + "'"); }; next_token.context = function(nc) { @@ -24621,7 +24621,7 @@ SymbolDef.prototype = { AST_Toplevel.DEFMETHOD("figure_out_scope", function(options){ options = defaults(options, { - screw_ie8: false, + screw_ie8: true, cache: null }); @@ -24910,7 +24910,7 @@ AST_Toplevel.DEFMETHOD("_default_mangler_options", function(options){ eval : false, sort : false, // Ignored. Flag retained for backwards compatibility. toplevel : false, - screw_ie8 : false, + screw_ie8 : true, keep_fnames : false }); }); @@ -25234,7 +25234,7 @@ function OutputStream(options) { comments : false, shebang : true, preserve_line : false, - screw_ie8 : false, + screw_ie8 : true, preamble : null, quote_style : 0, keep_quoted_props: false @@ -26031,8 +26031,8 @@ function OutputStream(options) { // adds the block brackets if needed. if (!self.body) return output.force_semicolon(); - if (self.body instanceof AST_Do - && !output.option("screw_ie8")) { + if (self.body instanceof AST_Do) { + // Unconditionally use the if/do-while workaround for all browsers. // https://github.com/mishoo/UglifyJS/issues/#issue/57 IE // croaks with "syntax error" on code like this: if (foo) // do ... while(cond); else ... we need block brackets @@ -26660,13 +26660,15 @@ function Compressor(options, false_by_default) { pure_getters : false, pure_funcs : null, negate_iife : !false_by_default, - screw_ie8 : false, + screw_ie8 : true, drop_console : false, angular : false, warnings : true, global_defs : {}, passes : 1, }, true); + var sequences = this.options["sequences"]; + this.sequences_limit = sequences == 1 ? 200 : sequences | 0; this.warnings_produced = {}; }; @@ -26778,7 +26780,7 @@ merge(Compressor.prototype, { if ((1 / val) < 0) { return make_node(AST_UnaryPrefix, orig, { operator: "-", - expression: make_node(AST_Number, null, { value: -val }) + expression: make_node(AST_Number, orig, { value: -val }) }); } @@ -26854,7 +26856,7 @@ merge(Compressor.prototype, { if (compressor.option("if_return")) { statements = handle_if_return(statements, compressor); } - if (compressor.option("sequences")) { + if (compressor.sequences_limit > 0) { statements = sequencesize(statements, compressor); } if (compressor.option("join_vars")) { @@ -27309,7 +27311,7 @@ merge(Compressor.prototype, { seq = []; }; statements.forEach(function(stat){ - if (stat instanceof AST_SimpleStatement && seqLength(seq) < 2000) { + if (stat instanceof AST_SimpleStatement && seqLength(seq) < compressor.sequences_limit) { seq.push(stat.body); } else { push_seq(); @@ -29625,20 +29627,55 @@ function SourceMap(options) { (function(){ - var MOZ_TO_ME = { - ExpressionStatement: function(M) { - var expr = M.expression; - if (expr.type === "Literal" && typeof expr.value === "string") { - return new AST_Directive({ - start: my_start_token(M), - end: my_end_token(M), - value: expr.value + var normalize_directives = function(body) { + var in_directive = true; + + for (var i = 0; i < body.length; i++) { + if (in_directive && body[i] instanceof AST_Statement && body[i].body instanceof AST_String) { + body[i] = new AST_Directive({ + start: body[i].start, + end: body[i].end, + value: body[i].body.value }); + } else if (in_directive && !(body[i] instanceof AST_Statement && body[i].body instanceof AST_String)) { + in_directive = false; } + } + + return body; + }; + + var MOZ_TO_ME = { + Program: function(M) { + return new AST_Toplevel({ + start: my_start_token(M), + end: my_end_token(M), + body: normalize_directives(M.body.map(from_moz)) + }); + }, + FunctionDeclaration: function(M) { + return new AST_Defun({ + start: my_start_token(M), + end: my_end_token(M), + name: from_moz(M.id), + argnames: M.params.map(from_moz), + body: normalize_directives(from_moz(M.body).body) + }); + }, + FunctionExpression: function(M) { + return new AST_Function({ + start: my_start_token(M), + end: my_end_token(M), + name: from_moz(M.id), + argnames: M.params.map(from_moz), + body: normalize_directives(from_moz(M.body).body) + }); + }, + ExpressionStatement: function(M) { return new AST_SimpleStatement({ start: my_start_token(M), end: my_end_token(M), - body: from_moz(expr) + body: from_moz(M.expression) }); }, TryStatement: function(M) { @@ -29674,6 +29711,15 @@ function SourceMap(options) { return new AST_ObjectGetter(args); } }, + ArrayExpression: function(M) { + return new AST_Array({ + start : my_start_token(M), + end : my_end_token(M), + elements : M.elements.map(function(elem){ + return elem === null ? new AST_Hole() : from_moz(elem); + }) + }); + }, ObjectExpression: function(M) { return new AST_Object({ start : my_start_token(M), @@ -29765,7 +29811,6 @@ function SourceMap(options) { }); }; - map("Program", AST_Toplevel, "body@body"); map("EmptyStatement", AST_EmptyStatement); map("BlockStatement", AST_BlockStatement, "body@body"); map("IfStatement", AST_If, "test>condition, consequent>body, alternate>alternative"); @@ -29781,13 +29826,10 @@ function SourceMap(options) { map("ForStatement", AST_For, "init>init, test>condition, update>step, body>body"); map("ForInStatement", AST_ForIn, "left>init, right>object, body>body"); map("DebuggerStatement", AST_Debugger); - map("FunctionDeclaration", AST_Defun, "id>name, params@argnames, body%body"); map("VariableDeclarator", AST_VarDef, "id>name, init>value"); map("CatchClause", AST_Catch, "param>argname, body%body"); map("ThisExpression", AST_This); - map("ArrayExpression", AST_Array, "elements@elements"); - map("FunctionExpression", AST_Function, "id>name, params@argnames, body%body"); map("BinaryExpression", AST_Binary, "operator=operator, left>left, right>right"); map("LogicalExpression", AST_Binary, "operator=operator, left>left, right>right"); map("AssignmentExpression", AST_Assign, "operator=operator, left>left, right>right"); @@ -29795,6 +29837,31 @@ function SourceMap(options) { map("NewExpression", AST_New, "callee>expression, arguments@args"); map("CallExpression", AST_Call, "callee>expression, arguments@args"); + def_to_moz(AST_Toplevel, function To_Moz_Program(M) { + return { + type: "Program", + body: M.body.map(to_moz) + }; + }); + + def_to_moz(AST_Defun, function To_Moz_FunctionDeclaration(M) { + return { + type: "FunctionDeclaration", + id: to_moz(M.name), + params: M.argnames.map(to_moz), + body: to_moz_block(M) + } + }); + + def_to_moz(AST_Function, function To_Moz_FunctionExpression(M) { + return { + type: "FunctionExpression", + id: to_moz(M.name), + params: M.argnames.map(to_moz), + body: to_moz_block(M) + } + }); + def_to_moz(AST_Directive, function To_Moz_Directive(M) { return { type: "ExpressionStatement", @@ -29882,6 +29949,13 @@ function SourceMap(options) { }; }); + def_to_moz(AST_Array, function To_Moz_ArrayExpression(M) { + return { + type: "ArrayExpression", + elements: M.elements.map(to_moz) + }; + }); + def_to_moz(AST_Object, function To_Moz_ObjectExpression(M) { return { type: "ObjectExpression", @@ -30494,6 +30568,7 @@ exports.RE_HEX_NUMBER = RE_HEX_NUMBER; exports.RE_OCT_NUMBER = RE_OCT_NUMBER; exports.OPERATORS = OPERATORS; exports.WHITESPACE_CHARS = WHITESPACE_CHARS; +exports.NEWLINE_CHARS = NEWLINE_CHARS; exports.PUNC_BEFORE_EXPRESSION = PUNC_BEFORE_EXPRESSION; exports.PUNC_CHARS = PUNC_CHARS; exports.REGEXP_MODIFIERS = REGEXP_MODIFIERS; @@ -30557,18 +30632,25 @@ exports.minify = function (files, options) { if (options.spidermonkey) { toplevel = UglifyJS.AST_Node.from_mozilla_ast(files); } else { - if (typeof files == "string") - files = [ files ]; - files.forEach(function(file, i){ + function addFile(file, fileUrl) { var code = options.fromString ? file : fs.readFileSync(file, "utf8"); - sourcesContent[file] = code; + sourcesContent[fileUrl] = code; toplevel = UglifyJS.parse(code, { - filename: options.fromString ? i : file, + filename: fileUrl, toplevel: toplevel, bare_returns: options.parse ? options.parse.bare_returns : undefined }); + } + [].concat(files).forEach(function (files, i) { + if (typeof files === 'string') { + addFile(files, options.fromString ? i : files); + } else { + for (var fileUrl in files) { + addFile(files[fileUrl], fileUrl); + } + } }); } if (options.wrap) { diff --git a/dist/htmlminifier.min.js b/dist/htmlminifier.min.js index cf958f6..b32c21d 100644 --- a/dist/htmlminifier.min.js +++ b/dist/htmlminifier.min.js @@ -1,5 +1,5 @@ /*! - * HTMLMinifier v2.1.7 (http://kangax.github.io/html-minifier/) + * HTMLMinifier v3.0.0 (http://kangax.github.io/html-minifier/) * Copyright 2010-2016 Juriy "kangax" Zaytsev * Licensed under the MIT license */ @@ -12,9 +12,9 @@ Gcedil:"Ģ",gcirc:"ĝ",Gcirc:"Ĝ",gcy:"г",Gcy:"Г",gdot:"ġ",Gdot:"Ġ",ge:"≥" var h=/\+/g;a=a.split(b);var i=1e3;f&&"number"==typeof f.maxKeys&&(i=f.maxKeys);var j=a.length;i>0&&j>i&&(j=i);for(var k=0;k=0?(l=p.substr(0,q),m=p.substr(q+1)):(l=p,m=""),n=decodeURIComponent(l),o=decodeURIComponent(m),d(g,n)?e(g[n])?g[n].push(o):g[n]=[g[n],o]:g[n]=o}return g};var e=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)}},{}],84:[function(a,b,c){"use strict";function d(a,b){if(a.map)return a.map(b);for(var c=[],d=0;d0)if(b.ended&&!e){var g=new Error("stream.push() after EOF");a.emit("error",g)}else if(b.endEmitted&&e){var i=new Error("stream.unshift() after end event");a.emit("error",i)}else{var j;!b.decoder||e||d||(c=b.decoder.write(c),j=!b.objectMode&&0===c.length),e||(b.reading=!1),j||(b.flowing&&0===b.length&&!b.sync?(a.emit("data",c),a.read(0)):(b.length+=b.objectMode?1:c.length,e?b.buffer.unshift(c):b.buffer.push(c),b.needReadable&&m(a))),o(a,b)}else e||(b.reading=!1);return h(b)}function h(a){return!a.ended&&(a.needReadable||a.length=N?a=N:(a--,a|=a>>>1,a|=a>>>2,a|=a>>>4,a|=a>>>8,a|=a>>>16,a++),a}function j(a,b){return 0===b.length&&b.ended?0:b.objectMode?0===a?0:1:null===a||isNaN(a)?b.flowing&&b.buffer.length?b.buffer[0].length:b.length:a<=0?0:(a>b.highWaterMark&&(b.highWaterMark=i(a)),a>b.length?b.ended?b.length:(b.needReadable=!0,0):a)}function k(a,b){var c=null;return F.isBuffer(b)||"string"==typeof b||null===b||void 0===b||a.objectMode||(c=new TypeError("Invalid non-string/buffer chunk")),c}function l(a,b){if(!b.ended){if(b.decoder){var c=b.decoder.end();c&&c.length&&(b.buffer.push(c),b.length+=b.objectMode?1:c.length)}b.ended=!0,m(a)}}function m(a){var b=a._readableState;b.needReadable=!1,b.emittedReadable||(J("emitReadable",b.flowing),b.emittedReadable=!0,b.sync?A(n,a):n(a))}function n(a){J("emit readable"),a.emit("readable"),u(a)}function o(a,b){b.readingMore||(b.readingMore=!0,A(p,a,b))}function p(a,b){for(var c=b.length;!b.reading&&!b.flowing&&!b.ended&&b.length=e)c=f?d.join(""):1===d.length?d[0]:F.concat(d,e),d.length=0;else if(a0)throw new Error('"endReadable()" called on non-empty stream');b.endEmitted||(b.ended=!0,A(x,b,a))}function x(a,b){a.endEmitted||0!==a.length||(a.endEmitted=!0,b.readable=!1,b.emit("end"))}function y(a,b){for(var c=0,d=a.length;c0)&&(b.emittedReadable=!1),0===a&&b.needReadable&&(b.length>=b.highWaterMark||b.ended))return J("read: emitReadable",b.length,b.ended),0===b.length&&b.ended?w(this):m(this),null;if(a=j(a,b),0===a&&b.ended)return 0===b.length&&w(this),null;var d=b.needReadable;J("need readable",d),(0===b.length||b.length-a0?v(a,b):null,null===e&&(b.needReadable=!0,a=0),b.length-=a,0!==b.length||b.ended||(b.needReadable=!0),c!==a&&b.ended&&0===b.length&&w(this),null!==e&&this.emit("data",e),e},f.prototype._read=function(a){this.emit("error",new Error("not implemented"))},f.prototype.pipe=function(a,b){function e(a){J("onunpipe"),a===m&&g()}function f(){J("onend"),a.end()}function g(){J("cleanup"),a.removeListener("close",j),a.removeListener("finish",k),a.removeListener("drain",r),a.removeListener("error",i),a.removeListener("unpipe",e),m.removeListener("end",f),m.removeListener("end",g),m.removeListener("data",h),s=!0,!n.awaitDrain||a._writableState&&!a._writableState.needDrain||r()}function h(b){J("ondata");var c=a.write(b);!1===c&&((1===n.pipesCount&&n.pipes===a||n.pipesCount>1&&z(n.pipes,a)!==-1)&&!s&&(J("false write response, pause",m._readableState.awaitDrain),m._readableState.awaitDrain++),m.pause())}function i(b){J("onerror",b),l(),a.removeListener("error",i),0===E(a,"error")&&a.emit("error",b)}function j(){a.removeListener("finish",k),l()}function k(){J("onfinish"),a.removeListener("close",j),l()}function l(){J("unpipe"),m.unpipe(a)}var m=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=a;break;case 1:n.pipes=[n.pipes,a];break;default:n.pipes.push(a)}n.pipesCount+=1,J("pipe count=%d opts=%j",n.pipesCount,b);var o=(!b||b.end!==!1)&&a!==c.stdout&&a!==c.stderr,p=o?f:g;n.endEmitted?A(p):m.once("end",p),a.on("unpipe",e);var r=q(m);a.on("drain",r);var s=!1;return m.on("data",h),d(a,"error",i),a.once("close",j),a.once("finish",k),a.emit("pipe",m),n.flowing||(J("pipe resume"),m.resume()),a},f.prototype.unpipe=function(a){var b=this._readableState;if(0===b.pipesCount)return this;if(1===b.pipesCount)return a&&a!==b.pipes?this:(a||(a=b.pipes),b.pipes=null,b.pipesCount=0,b.flowing=!1,a&&a.emit("unpipe",this),this);if(!a){var c=b.pipes,d=b.pipesCount;b.pipes=null,b.pipesCount=0,b.flowing=!1;for(var e=0;e-1?setImmediate:x;g.WritableState=f;var z=a("core-util-is");z.inherits=a("inherits");var A,B={deprecate:a("util-deprecate")};!function(){try{A=a("stream")}catch(b){}finally{A||(A=a("events").EventEmitter)}}();var C=a("buffer").Buffer,D=a("buffer-shims");z.inherits(g,A);var E;f.prototype.getBuffer=function(){for(var a=this.bufferedRequest,b=[];a;)b.push(a),a=a.next;return b},function(){try{Object.defineProperty(f.prototype,"buffer",{get:B.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")})}catch(a){}}();var E;g.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},g.prototype.write=function(a,b,c){var e=this._writableState,f=!1;return"function"==typeof b&&(c=b,b=null),C.isBuffer(a)?b="buffer":b||(b=e.defaultEncoding),"function"!=typeof c&&(c=d),e.ended?h(this,c):i(this,e,a,c)&&(e.pendingcb++,f=k(this,e,a,b,c)),f},g.prototype.cork=function(){var a=this._writableState;a.corked++},g.prototype.uncork=function(){var a=this._writableState;a.corked&&(a.corked--,a.writing||a.corked||a.finished||a.bufferProcessing||!a.bufferedRequest||r(this,a))},g.prototype.setDefaultEncoding=function(a){if("string"==typeof a&&(a=a.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((a+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+a);return this._writableState.defaultEncoding=a,this},g.prototype._write=function(a,b,c){c(new Error("not implemented"))},g.prototype._writev=null,g.prototype.end=function(a,b,c){var d=this._writableState;"function"==typeof a?(c=a,a=null,b=null):"function"==typeof b&&(c=b,b=null),null!==a&&void 0!==a&&this.write(a,b),d.corked&&(d.corked=1,this.uncork()),d.ending||d.finished||v(this,d,c)}}).call(this,a("_process"))},{"./_stream_duplex":86,_process:81,buffer:6,"buffer-shims":5,"core-util-is":69,events:70,inherits:74,"process-nextick-args":80,"util-deprecate":140}],91:[function(a,b,c){(function(d){var e=function(){try{return a("stream")}catch(b){}}();c=b.exports=a("./lib/_stream_readable.js"),c.Stream=e||c,c.Readable=c,c.Writable=a("./lib/_stream_writable.js"),c.Duplex=a("./lib/_stream_duplex.js"),c.Transform=a("./lib/_stream_transform.js"),c.PassThrough=a("./lib/_stream_passthrough.js"),!d.browser&&"disable"===d.env.READABLE_STREAM&&e&&(b.exports=e)}).call(this,a("_process"))},{"./lib/_stream_duplex.js":86,"./lib/_stream_passthrough.js":87,"./lib/_stream_readable.js":88,"./lib/_stream_transform.js":89,"./lib/_stream_writable.js":90,_process:81}],92:[function(a,b,c){"use strict";b.exports={ABSOLUTE:"absolute",PATH_RELATIVE:"pathRelative",ROOT_RELATIVE:"rootRelative",SHORTEST:"shortest"}},{}],93:[function(a,b,c){"use strict";function d(a,b){return!a.auth||b.removeAuth||!a.extra.relation.maximumHost&&b.output!==p.ABSOLUTE?"":a.auth+"@"}function e(a,b){return a.hash?a.hash:""}function f(a,b){return a.host.full&&(a.extra.relation.maximumAuth||b.output===p.ABSOLUTE)?a.host.full:""}function g(a,b){var c="",d=a.path.absolute.string,e=a.path.relative.string,f=o(a,b);if(a.extra.relation.maximumHost||b.output===p.ABSOLUTE||b.output===p.ROOT_RELATIVE)c=d;else if(e.length<=d.length&&b.output===p.SHORTEST||b.output===p.PATH_RELATIVE){if(c=e,""===c){var g=n(a,b)&&!!m(a,b);a.extra.relation.maximumPath&&!f?c="./":!a.extra.relation.overridesQuery||f||g||(c="./")}}else c=d;return"/"!==c||f||!b.removeRootTrailingSlash||a.extra.relation.minimumPort&&b.output!==p.ABSOLUTE||(c=""),c}function h(a,b){return a.port&&!a.extra.portIsDefault&&a.extra.relation.maximumHost?":"+a.port:""}function i(a,b){return n(a,b)?m(a,b):""}function j(a,b){return o(a,b)?a.resource:""}function k(a,b){var c="";return(a.extra.relation.maximumHost||b.output===p.ABSOLUTE)&&(c+=a.extra.relation.minimumScheme&&b.schemeRelative&&b.output!==p.ABSOLUTE?"//":a.scheme+"://"),c}function l(a,b){var c="";return c+=k(a,b),c+=d(a,b),c+=f(a,b),c+=h(a,b),c+=g(a,b),c+=j(a,b),c+=i(a,b),c+=e(a,b)}function m(a,b){var c=b.removeEmptyQueries&&a.extra.relation.minimumPort;return a.query.string[c?"stripped":"full"]}function n(a,b){return!a.extra.relation.minimumQuery||b.output===p.ABSOLUTE||b.output===p.ROOT_RELATIVE}function o(a,b){var c=b.removeDirectoryIndexes&&a.extra.resourceIsIndex,d=a.extra.relation.minimumResource&&b.output!==p.ABSOLUTE&&b.output!==p.ROOT_RELATIVE;return!!a.resource&&!d&&!c}var p=a("./constants");b.exports=l},{"./constants":92}],94:[function(a,b,c){"use strict";function d(a,b){this.options=g(b,{defaultPorts:{ftp:21,http:80,https:443},directoryIndexes:["index.html"],ignore_www:!1,output:d.SHORTEST,rejectedSchemes:["data","javascript","mailto"],removeAuth:!1,removeDirectoryIndexes:!0,removeEmptyQueries:!1,removeRootTrailingSlash:!0,schemeRelative:!0,site:void 0,slashesDenoteHost:!0}),this.from=i.from(a,this.options,null)}var e=a("./constants"),f=a("./format"),g=a("./options"),h=a("./util/object"),i=a("./parse"),j=a("./relate");d.prototype.relate=function(a,b,c){if(h.isPlainObject(b)?(c=b,b=a,a=null):b||(b=a,a=null),c=g(c,this.options),a=a||c.site,a=i.from(a,c,this.from),!a||!a.href)throw new Error("from value not defined.");if(a.extra.hrefInfo.minimumPathOnly)throw new Error("from value supplied is not absolute: "+a.href);return b=i.to(b,c),b.valid===!1?b.href:(b=j(a,b,c),b=f(b,c))},d.relate=function(a,b,c){return(new d).relate(a,b,c)},h.shallowMerge(d,e),b.exports=d},{"./constants":92,"./format":93,"./options":95,"./parse":98,"./relate":105,"./util/object":107}],95:[function(a,b,c){"use strict";function d(a,b){if(f.isPlainObject(a)){var c={};for(var d in b)b.hasOwnProperty(d)&&(void 0!==a[d]?c[d]=e(a[d],b[d]):c[d]=b[d]);return c}return b}function e(a,b){return b instanceof Object&&a instanceof Object?b instanceof Array&&a instanceof Array?b.concat(a):f.shallowMerge(a,b):a}var f=a("./util/object");b.exports=d},{"./util/object":107}],96:[function(a,b,c){"use strict";function d(a,b){if(b.ignore_www){var c=a.host.full;if(c){var d=c;0===c.indexOf("www.")&&(d=c.substr(4)),a.host.stripped=d}}}b.exports=d},{}],97:[function(a,b,c){"use strict";function d(a){var b=!(a.scheme||a.auth||a.host.full||a.port),c=b&&!a.path.absolute.string,d=c&&!a.resource,e=d&&!a.query.string.full.length,f=e&&!a.hash;a.extra.hrefInfo.minimumPathOnly=b,a.extra.hrefInfo.minimumResourceOnly=c,a.extra.hrefInfo.minimumQueryOnly=d,a.extra.hrefInfo.minimumHashOnly=e,a.extra.hrefInfo.empty=f}b.exports=d},{}],98:[function(a,b,c){"use strict";function d(a,b,c){if(a){var d=e(a,b),f=l.resolveDotSegments(d.path.absolute.array);return d.path.absolute.array=f,d.path.absolute.string="/"+l.join(f),d}return c}function e(a,b){var c=k(a,b);return c.valid===!1?c:(g(c,b),i(c,b),h(c,b),j(c,b),f(c),c)}var f=a("./hrefInfo"),g=a("./host"),h=a("./path"),i=a("./port"),j=a("./query"),k=a("./urlstring"),l=a("../util/path");b.exports={from:d,to:e}},{"../util/path":108,"./host":96,"./hrefInfo":97,"./path":99,"./port":100,"./query":101,"./urlstring":102}],99:[function(a,b,c){"use strict";function d(a,b){var c=!1;return b.directoryIndexes.every(function(b){return b!==a||(c=!0,!1)}),c}function e(a,b){var c=a.path.absolute.string;if(c){var e=c.lastIndexOf("/");if(e>-1){if(++e-1&&(c=c.toString(),null===a.port&&(a.port=c),a.extra.portIsDefault=a.port===c)}b.exports=d},{}],101:[function(a,b,c){"use strict";function d(a,b){a.query.string.full=e(a.query.object,!1),b.removeEmptyQueries&&(a.query.string.stripped=e(a.query.object,!0))}function e(a,b){var c=0,d="";for(var e in a)if(""!==e&&a.hasOwnProperty(e)){var f=a[e];""===f&&b||(d+=1===++c?"?":"&",e=encodeURIComponent(e),d+=""!==f?e+"="+encodeURIComponent(f).replace(/%20/g,"+"):e)}return d}b.exports=d},{}],102:[function(a,b,c){"use strict";function d(a){var b=a.protocol;return b&&b.indexOf(":")===b.length-1&&(b=b.substr(0,b.length-1)),a.host={full:a.hostname,stripped:null},a.path={absolute:{array:null,string:a.pathname},relative:{array:null,string:null}},a.query={object:a.query,string:{full:null,stripped:null}},a.extra={hrefInfo:{minimumPathOnly:null,minimumResourceOnly:null,minimumQueryOnly:null,minimumHashOnly:null,empty:null,separatorOnlyQuery:"?"===a.search},portIsDefault:null,relation:{maximumScheme:null,maximumAuth:null,maximumHost:null,maximumPort:null,maximumPath:null,maximumResource:null,maximumQuery:null,maximumHash:null,minimumScheme:null,minimumAuth:null,minimumHost:null,minimumPort:null,minimumPath:null,minimumResource:null,minimumQuery:null,minimumHash:null,overridesQuery:null},resourceIsIndex:null,slashes:a.slashes},a.resource=null,a.scheme=b,delete a.hostname,delete a.pathname,delete a.protocol,delete a.search,delete a.slashes,a}function e(a,b){var c=!0;return b.rejectedSchemes.every(function(b){return c=!(0===a.indexOf(b+":"))}),c}function f(a,b){return e(a,b)?d(g(a,!0,b.slashesDenoteHost)):{href:a,valid:!1}}var g=a("url").parse;b.exports=f},{url:138}],103:[function(a,b,c){"use strict";function d(a,b,c){h.upToPath(a,b,c),a.extra.relation.minimumScheme&&(a.scheme=b.scheme),a.extra.relation.minimumAuth&&(a.auth=b.auth),a.extra.relation.minimumHost&&(a.host=i.clone(b.host)),a.extra.relation.minimumPort&&f(a,b),a.extra.relation.minimumScheme&&e(a,b),h.pathOn(a,b,c),a.extra.relation.minimumResource&&g(a,b),a.extra.relation.minimumQuery&&(a.query=i.clone(b.query)),a.extra.relation.minimumHash&&(a.hash=b.hash)}function e(a,b){if(a.extra.relation.maximumHost||!a.extra.hrefInfo.minimumResourceOnly){var c=a.path.absolute.array,d="/";c?(a.extra.hrefInfo.minimumPathOnly&&0!==a.path.absolute.string.indexOf("/")&&(c=b.path.absolute.array.concat(c)),c=j.resolveDotSegments(c),d+=j.join(c)):c=[],a.path.absolute.array=c,a.path.absolute.string=d}else a.path=i.clone(b.path)}function f(a,b){a.port=b.port,a.extra.portIsDefault=b.extra.portIsDefault}function g(a,b){a.resource=b.resource,a.extra.resourceIsIndex=b.extra.resourceIsIndex}var h=a("./findRelation"),i=a("../util/object"),j=a("../util/path");b.exports=d},{"../util/object":107,"../util/path":108,"./findRelation":104}],104:[function(a,b,c){"use strict";function d(a,b,c){var d=a.extra.hrefInfo.minimumPathOnly,e=a.scheme===b.scheme||!a.scheme,f=e&&(a.auth===b.auth||c.removeAuth||d),g=c.ignore_www?"stripped":"full",h=f&&(a.host[g]===b.host[g]||d),i=h&&(a.port===b.port||d);a.extra.relation.minimumScheme=e,a.extra.relation.minimumAuth=f,a.extra.relation.minimumHost=h,a.extra.relation.minimumPort=i,a.extra.relation.maximumScheme=!e||e&&!f,a.extra.relation.maximumAuth=!e||e&&!h,a.extra.relation.maximumHost=!e||e&&!i}function e(a,b,c){var d=a.extra.hrefInfo.minimumQueryOnly,e=a.extra.hrefInfo.minimumHashOnly,f=a.extra.hrefInfo.empty,g=a.extra.relation.minimumPort,h=a.extra.relation.minimumScheme,i=g&&a.path.absolute.string===b.path.absolute.string,j=a.resource===b.resource||!a.resource&&b.extra.resourceIsIndex||c.removeDirectoryIndexes&&a.extra.resourceIsIndex&&!b.resource,k=i&&(j||d||e||f),l=c.removeEmptyQueries?"stripped":"full",m=a.query.string[l],n=b.query.string[l],o=k&&!!m&&m===n||(e||f)&&!a.extra.hrefInfo.separatorOnlyQuery,p=o&&a.hash===b.hash;a.extra.relation.minimumPath=i,a.extra.relation.minimumResource=k,a.extra.relation.minimumQuery=o,a.extra.relation.minimumHash=p,a.extra.relation.maximumPort=!h||h&&!i,a.extra.relation.maximumPath=!h||h&&!k,a.extra.relation.maximumResource=!h||h&&!o,a.extra.relation.maximumQuery=!h||h&&!p,a.extra.relation.maximumHash=!h||h&&!p,a.extra.relation.overridesQuery=i&&a.extra.relation.maximumResource&&!o&&!!n}b.exports={pathOn:e,upToPath:d}},{}],105:[function(a,b,c){"use strict";function d(a,b,c){return e(b,a,c),f(b,a,c),b}var e=a("./absolutize"),f=a("./relativize");b.exports=d},{"./absolutize":103,"./relativize":106}],106:[function(a,b,c){"use strict";function d(a,b){var c=[],d=!0,e=-1;return b.forEach(function(b,f){d&&(a[f]!==b?d=!1:e=f),d||c.push("..")}),a.forEach(function(a,b){b>e&&c.push(a)}),c}function e(a,b,c){if(a.extra.relation.minimumScheme){var e=d(a.path.absolute.array,b.path.absolute.array);a.path.relative.array=e,a.path.relative.string=f.join(e)}}var f=a("../util/path");b.exports=e},{"../util/path":108}],107:[function(a,b,c){"use strict";function d(a){if(a instanceof Object){var b=a instanceof Array?[]:{};for(var c in a)a.hasOwnProperty(c)&&(b[c]=d(a[c]));return b}return a}function e(a){return!!a&&"object"==typeof a&&a.constructor===Object}function f(a,b){if(a instanceof Object&&b instanceof Object)for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a}b.exports={clone:d,isPlainObject:e,shallowMerge:f}},{}],108:[function(a,b,c){"use strict";function d(a){return a.length?a.join("/")+"/":""}function e(a){var b=[];return a.forEach(function(a){".."!==a?"."!==a&&b.push(a):b.length&&b.splice(b.length-1,1)}),b}b.exports={join:d,resolveDotSegments:e}},{}],109:[function(a,b,c){c.SourceMapGenerator=a("./source-map/source-map-generator").SourceMapGenerator,c.SourceMapConsumer=a("./source-map/source-map-consumer").SourceMapConsumer,c.SourceNode=a("./source-map/source-node").SourceNode},{"./source-map/source-map-consumer":116,"./source-map/source-map-generator":117,"./source-map/source-node":118}],110:[function(a,b,c){if("function"!=typeof d)var d=a("amdefine")(b,a);d(function(a,b,c){function d(){this._array=[],this._set={}}var e=a("./util");d.fromArray=function(a,b){for(var c=new d,e=0,f=a.length;e=0&&a>1;return b?-c:c}var f=a("./base64"),g=5,h=1<>>=g,e>0&&(b|=j),c+=f.encode(b);while(e>0);return c},b.decode=function(a,b,c){var d,h,k=a.length,l=0,m=0;do{if(b>=k)throw new Error("Expected more digits in base 64 VLQ value.");if(h=f.decode(a.charCodeAt(b++)),h===-1)throw new Error("Invalid base64 digit: "+a.charAt(b-1));d=!!(h&j),h&=i,l+=h<0?c-i>1?d(i,c,e,f,g,h):h==b.LEAST_UPPER_BOUND?c1?d(a,i,e,f,g,h):h==b.LEAST_UPPER_BOUND?i:a<0?-1:a}b.GREATEST_LOWER_BOUND=1,b.LEAST_UPPER_BOUND=2,b.search=function(a,c,e,f){if(0===c.length)return-1;var g=d(-1,c.length,a,c,e,f||b.GREATEST_LOWER_BOUND);if(g<0)return-1;for(;g-1>=0&&0===e(c[g],c[g-1],!0);)--g;return g}})},{amdefine:1}],114:[function(a,b,c){if("function"!=typeof d)var d=a("amdefine")(b,a);d(function(a,b,c){function d(a,b){var c=a.generatedLine,d=b.generatedLine,e=a.generatedColumn,g=b.generatedColumn;return d>c||d==c&&g>=e||f.compareByGeneratedPositionsInflated(a,b)<=0}function e(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}var f=a("./util");e.prototype.unsortedForEach=function(a,b){this._array.forEach(a,b)},e.prototype.add=function(a){d(this._last,a)?(this._last=a,this._array.push(a)):(this._sorted=!1,this._array.push(a))},e.prototype.toArray=function(){return this._sorted||(this._array.sort(f.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},b.MappingList=e})},{"./util":119,amdefine:1}],115:[function(a,b,c){if("function"!=typeof d)var d=a("amdefine")(b,a);d(function(a,b,c){function d(a,b,c){var d=a[b];a[b]=a[c],a[c]=d}function e(a,b){return Math.round(a+Math.random()*(b-a))}function f(a,b,c,g){if(c=0){var f=this._originalMappings[e];if(void 0===a.column)for(var g=f.originalLine;f&&f.originalLine===g;)d.push({line:h.getArg(f,"generatedLine",null),column:h.getArg(f,"generatedColumn",null),lastColumn:h.getArg(f,"lastGeneratedColumn",null)}),f=this._originalMappings[++e];else for(var j=f.originalColumn;f&&f.originalLine===b&&f.originalColumn==j;)d.push({line:h.getArg(f,"generatedLine",null),column:h.getArg(f,"generatedColumn",null),lastColumn:h.getArg(f,"lastGeneratedColumn",null)}),f=this._originalMappings[++e]}return d},b.SourceMapConsumer=d,e.prototype=Object.create(d.prototype),e.prototype.consumer=d,e.fromSourceMap=function(a){var b=Object.create(e.prototype),c=b._names=j.fromArray(a._names.toArray(),!0),d=b._sources=j.fromArray(a._sources.toArray(),!0);b.sourceRoot=a._sourceRoot,b.sourcesContent=a._generateSourcesContent(b._sources.toArray(),b.sourceRoot),b.file=a._file;for(var g=a._mappings.toArray().slice(),i=b.__generatedMappings=[],k=b.__originalMappings=[],m=0,n=g.length;m1&&(c.source=p+e[1],p+=e[1],c.originalLine=n+e[2],n=c.originalLine,c.originalLine+=1,c.originalColumn=o+e[3],o=c.originalColumn,e.length>4&&(c.name=q+e[4],q+=e[4])),w.push(c),"number"==typeof c.originalLine&&v.push(c)}l(w,h.compareByGeneratedPositionsDeflated),this.__generatedMappings=w,l(v,h.compareByOriginalPositions),this.__originalMappings=v},e.prototype._findMapping=function(a,b,c,d,e,f){if(a[c]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+a[c]);if(a[d]<0)throw new TypeError("Column must be greater than or equal to 0, got "+a[d]);return i.search(a,b,e,f)},e.prototype.computeColumnSpans=function(){for(var a=0;a=0){var e=this._generatedMappings[c];if(e.generatedLine===b.generatedLine){var f=h.getArg(e,"source",null);null!==f&&(f=this._sources.at(f),null!=this.sourceRoot&&(f=h.join(this.sourceRoot,f)));var g=h.getArg(e,"name",null);return null!==g&&(g=this._names.at(g)),{source:f,line:h.getArg(e,"originalLine",null),column:h.getArg(e,"originalColumn",null),name:g}}}return{source:null,line:null,column:null,name:null}},e.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(a){return null==a}))},e.prototype.sourceContentFor=function(a,b){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(a=h.relative(this.sourceRoot,a)),this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];var c;if(null!=this.sourceRoot&&(c=h.urlParse(this.sourceRoot))){var d=a.replace(/^file:\/\//,"");if("file"==c.scheme&&this._sources.has(d))return this.sourcesContent[this._sources.indexOf(d)];if((!c.path||"/"==c.path)&&this._sources.has("/"+a))return this.sourcesContent[this._sources.indexOf("/"+a)]}if(b)return null;throw new Error('"'+a+'" is not in the SourceMap.')},e.prototype.generatedPositionFor=function(a){var b=h.getArg(a,"source");if(null!=this.sourceRoot&&(b=h.relative(this.sourceRoot,b)),!this._sources.has(b))return{line:null,column:null,lastColumn:null};b=this._sources.indexOf(b);var c={source:b,originalLine:h.getArg(a,"line"),originalColumn:h.getArg(a,"column")},e=this._findMapping(c,this._originalMappings,"originalLine","originalColumn",h.compareByOriginalPositions,h.getArg(a,"bias",d.GREATEST_LOWER_BOUND));if(e>=0){var f=this._originalMappings[e];if(f.source===c.source)return{line:h.getArg(f,"generatedLine",null),column:h.getArg(f,"generatedColumn",null),lastColumn:h.getArg(f,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},b.BasicSourceMapConsumer=e,g.prototype=Object.create(d.prototype),g.prototype.constructor=d,g.prototype._version=3,Object.defineProperty(g.prototype,"sources",{get:function(){for(var a=[],b=0;b0&&a.column>=0)||b||c||d)&&!(a&&"line"in a&&"column"in a&&b&&"line"in b&&"column"in b&&a.line>0&&a.column>=0&&b.line>0&&b.column>=0&&c))throw new Error("Invalid mapping: "+JSON.stringify({generated:a,source:c,original:b,name:d}))},d.prototype._serializeMappings=function(){for(var a,b=0,c=1,d=0,g=0,h=0,i=0,j="",k=this._mappings.toArray(),l=0,m=k.length;l0){if(!f.compareByGeneratedPositionsInflated(a,k[l-1]))continue;j+=","}j+=e.encode(a.generatedColumn-b),b=a.generatedColumn,null!=a.source&&(j+=e.encode(this._sources.indexOf(a.source)-i),i=this._sources.indexOf(a.source),j+=e.encode(a.originalLine-1-g),g=a.originalLine-1,j+=e.encode(a.originalColumn-d),d=a.originalColumn,null!=a.name&&(j+=e.encode(this._names.indexOf(a.name)-h),h=this._names.indexOf(a.name)))}return j},d.prototype._generateSourcesContent=function(a,b){return a.map(function(a){if(!this._sourcesContents)return null;null!=b&&(a=f.relative(b,a));var c=f.toSetString(a);return Object.prototype.hasOwnProperty.call(this._sourcesContents,c)?this._sourcesContents[c]:null},this)},d.prototype.toJSON=function(){var a={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(a.file=this._file),null!=this._sourceRoot&&(a.sourceRoot=this._sourceRoot),this._sourcesContents&&(a.sourcesContent=this._generateSourcesContent(a.sources,a.sourceRoot)),a},d.prototype.toString=function(){return JSON.stringify(this.toJSON())},b.SourceMapGenerator=d})},{"./array-set":110,"./base64-vlq":111,"./mapping-list":114,"./util":119,amdefine:1}],118:[function(a,b,c){if("function"!=typeof d)var d=a("amdefine")(b,a);d(function(a,b,c){function d(a,b,c,d,e){this.children=[],this.sourceContents={},this.line=null==a?null:a,this.column=null==b?null:b,this.source=null==c?null:c,this.name=null==e?null:e,this[i]=!0,null!=d&&this.add(d)}var e=a("./source-map-generator").SourceMapGenerator,f=a("./util"),g=/(\r?\n)/,h=10,i="$$$isSourceNode$$$";d.fromStringWithSourceMap=function(a,b,c){function e(a,b){if(null===a||void 0===a.source)h.add(b);else{var e=c?f.join(c,a.source):a.source;h.add(new d(a.originalLine,a.originalColumn,e,b,a.name))}}var h=new d,i=a.split(g),j=function(){var a=i.shift(),b=i.shift()||"";return a+b},k=1,l=0,m=null;return b.eachMapping(function(a){if(null!==m){if(!(k0&&(m&&e(m,j()),h.add(i.join(""))),b.sources.forEach(function(a){var d=b.sourceContentFor(a);null!=d&&(null!=c&&(a=f.join(c,a)),h.setSourceContent(a,d))}),h},d.prototype.add=function(a){if(Array.isArray(a))a.forEach(function(a){this.add(a)},this);else{if(!a[i]&&"string"!=typeof a)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+a);a&&this.children.push(a)}return this},d.prototype.prepend=function(a){if(Array.isArray(a))for(var b=a.length-1;b>=0;b--)this.prepend(a[b]);else{if(!a[i]&&"string"!=typeof a)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+a);this.children.unshift(a)}return this},d.prototype.walk=function(a){for(var b,c=0,d=this.children.length;c0){for(b=[],c=0;c=0;j--)d=h[j],"."===d?h.splice(j,1):".."===d?i++:i>0&&(""===d?(h.splice(j+1,i),i=0):(h.splice(j,2),i--));return b=h.join("/"),""===b&&(b=g?"/":"."),c?(c.path=b,f(c)):b}function h(a,b){""===a&&(a="."),""===b&&(b=".");var c=e(b),d=e(a);if(d&&(a=d.path||"/"),c&&!c.scheme)return d&&(c.scheme=d.scheme),f(c);if(c||b.match(q))return b;if(d&&!d.host&&!d.path)return d.host=b,f(d);var h="/"===b.charAt(0)?b:g(a.replace(/\/+$/,"")+"/"+b);return d?(d.path=h,f(d)):h}function i(a,b){""===a&&(a="."),a=a.replace(/\/$/,"");for(var c=0;0!==b.indexOf(a+"/");){var d=a.lastIndexOf("/");if(d<0)return b;if(a=a.slice(0,d),a.match(/^([^\/]+:\/)?\/*$/))return b;++c}return Array(c+1).join("../")+b.substr(a.length+1)}function j(a){return"$"+a}function k(a){return a.substr(1)}function l(a,b,c){var d=a.source-b.source;return 0!==d?d:(d=a.originalLine-b.originalLine,0!==d?d:(d=a.originalColumn-b.originalColumn,0!==d||c?d:(d=a.generatedColumn-b.generatedColumn,0!==d?d:(d=a.generatedLine-b.generatedLine,0!==d?d:a.name-b.name))))}function m(a,b,c){var d=a.generatedLine-b.generatedLine;return 0!==d?d:(d=a.generatedColumn-b.generatedColumn,0!==d||c?d:(d=a.source-b.source,0!==d?d:(d=a.originalLine-b.originalLine,0!==d?d:(d=a.originalColumn-b.originalColumn,0!==d?d:a.name-b.name))))}function n(a,b){return a===b?0:a>b?1:-1}function o(a,b){var c=a.generatedLine-b.generatedLine;return 0!==c?c:(c=a.generatedColumn-b.generatedColumn,0!==c?c:(c=n(a.source,b.source),0!==c?c:(c=a.originalLine-b.originalLine,0!==c?c:(c=a.originalColumn-b.originalColumn,0!==c?c:n(a.name,b.name)))))}b.getArg=d;var p=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,q=/^data:.+\,.+$/;b.urlParse=e,b.urlGenerate=f,b.normalize=g,b.join=h,b.relative=i,b.toSetString=j,b.fromSetString=k,b.compareByOriginalPositions=l,b.compareByGeneratedPositionsDeflated=m,b.compareByGeneratedPositionsInflated=o})},{amdefine:1}],120:[function(a,b,c){(function(b){var d=a("./lib/request"),e=a("xtend"),f=a("builtin-status-codes"),g=a("url"),h=c;h.request=function(a,c){a="string"==typeof a?g.parse(a):e(a);var f=b.location.protocol.search(/^https?:$/)===-1?"http:":"",h=a.protocol||f,i=a.hostname||a.host,j=a.port,k=a.path||"/";i&&i.indexOf(":")!==-1&&(i="["+i+"]"),a.url=(i?h+"//"+i:"")+(j?":"+j:"")+k,a.method=(a.method||"GET").toUpperCase(),a.headers=a.headers||{};var l=new d(a);return c&&l.on("response",c),l},h.get=function(a,b){var c=h.request(a,b);return c.end(),c},h.Agent=function(){},h.Agent.defaultMaxSockets=4,h.STATUS_CODES=f,h.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/request":122,"builtin-status-codes":7,url:138,xtend:144}],121:[function(a,b,c){(function(a){function b(a){try{return f.responseType=a,f.responseType===a}catch(b){}return!1}function d(a){return"function"==typeof a}c.fetch=d(a.fetch)&&d(a.ReadableByteStream),c.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),c.blobConstructor=!0}catch(e){}var f=new a.XMLHttpRequest;f.open("GET",a.location.host?"/":"https://example.com");var g="undefined"!=typeof a.ArrayBuffer,h=g&&d(a.ArrayBuffer.prototype.slice);c.arraybuffer=g&&b("arraybuffer"),c.msstream=!c.fetch&&h&&b("ms-stream"),c.mozchunkedarraybuffer=!c.fetch&&g&&b("moz-chunked-arraybuffer"),c.overrideMimeType=d(f.overrideMimeType),c.vbArray=d(a.VBArray),f=null}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],122:[function(a,b,c){(function(c,d,e){function f(a){return h.fetch?"fetch":h.mozchunkedarraybuffer?"moz-chunked-arraybuffer":h.msstream?"ms-stream":h.arraybuffer&&a?"arraybuffer":h.vbArray&&a?"text:vbarray":"text"}function g(a){try{var b=a.status;return null!==b&&0!==b}catch(c){return!1}}var h=a("./capability"),i=a("inherits"),j=a("./response"),k=a("readable-stream"),l=a("to-arraybuffer"),m=j.IncomingMessage,n=j.readyStates,o=b.exports=function(a){var b=this;k.Writable.call(b),b._opts=a,b._body=[],b._headers={},a.auth&&b.setHeader("Authorization","Basic "+new e(a.auth).toString("base64")),Object.keys(a.headers).forEach(function(c){b.setHeader(c,a.headers[c])});var c;if("prefer-streaming"===a.mode)c=!1;else if("allow-wrong-content-type"===a.mode)c=!h.overrideMimeType;else{if(a.mode&&"default"!==a.mode&&"prefer-fast"!==a.mode)throw new Error("Invalid value for opts.mode");c=!0}b._mode=f(c),b.on("finish",function(){b._onFinish()})};i(o,k.Writable),o.prototype.setHeader=function(a,b){var c=this,d=a.toLowerCase();p.indexOf(d)===-1&&(c._headers[d]={name:a,value:b})},o.prototype.getHeader=function(a){var b=this;return b._headers[a.toLowerCase()].value},o.prototype.removeHeader=function(a){var b=this;delete b._headers[a.toLowerCase()]},o.prototype._onFinish=function(){var a=this;if(!a._destroyed){var b,f=a._opts,g=a._headers;if("POST"!==f.method&&"PUT"!==f.method&&"PATCH"!==f.method||(b=h.blobConstructor?new d.Blob(a._body.map(function(a){return l(a)}),{type:(g["content-type"]||{}).value||""}):e.concat(a._body).toString()),"fetch"===a._mode){var i=Object.keys(g).map(function(a){return[g[a].name,g[a].value]});d.fetch(a._opts.url,{method:a._opts.method,headers:i,body:b,mode:"cors",credentials:f.withCredentials?"include":"same-origin"}).then(function(b){a._fetchResponse=b,a._connect()},function(b){a.emit("error",b)})}else{var j=a._xhr=new d.XMLHttpRequest;try{j.open(a._opts.method,a._opts.url,!0)}catch(k){return void c.nextTick(function(){a.emit("error",k)})}"responseType"in j&&(j.responseType=a._mode.split(":")[0]),"withCredentials"in j&&(j.withCredentials=!!f.withCredentials),"text"===a._mode&&"overrideMimeType"in j&&j.overrideMimeType("text/plain; charset=x-user-defined"),Object.keys(g).forEach(function(a){j.setRequestHeader(g[a].name,g[a].value)}),a._response=null,j.onreadystatechange=function(){switch(j.readyState){case n.LOADING:case n.DONE:a._onXHRProgress()}},"moz-chunked-arraybuffer"===a._mode&&(j.onprogress=function(){a._onXHRProgress()}),j.onerror=function(){a._destroyed||a.emit("error",new Error("XHR error"))};try{j.send(b)}catch(k){return void c.nextTick(function(){a.emit("error",k)})}}}},o.prototype._onXHRProgress=function(){var a=this;g(a._xhr)&&!a._destroyed&&(a._response||a._connect(),a._response._onXHRProgress())},o.prototype._connect=function(){var a=this;a._destroyed||(a._response=new m(a._xhr,a._fetchResponse,a._mode),a.emit("response",a._response))},o.prototype._write=function(a,b,c){var d=this;d._body.push(a),c()},o.prototype.abort=o.prototype.destroy=function(){var a=this;a._destroyed=!0,a._response&&(a._response._destroyed=!0),a._xhr&&a._xhr.abort()},o.prototype.end=function(a,b,c){var d=this;"function"==typeof a&&(c=a,a=void 0),k.Writable.prototype.end.call(d,a,b,c)},o.prototype.flushHeaders=function(){},o.prototype.setTimeout=function(){},o.prototype.setNoDelay=function(){},o.prototype.setSocketKeepAlive=function(){};var p=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},a("buffer").Buffer)},{"./capability":121,"./response":123,_process:81,buffer:6,inherits:74,"readable-stream":91,"to-arraybuffer":125}],123:[function(a,b,c){(function(b,d,e){var f=a("./capability"),g=a("inherits"),h=a("readable-stream"),i=c.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},j=c.IncomingMessage=function(a,c,d){function g(){m.read().then(function(a){if(!i._destroyed){if(a.done)return void i.push(null);i.push(new e(a.value)),g()}})}var i=this;if(h.Readable.call(i),i._mode=d,i.headers={},i.rawHeaders=[],i.trailers={},i.rawTrailers=[],i.on("end",function(){b.nextTick(function(){i.emit("close")})}),"fetch"===d){i._fetchResponse=c,i.url=c.url,i.statusCode=c.status,i.statusMessage=c.statusText;for(var j,k,l=c.headers[Symbol.iterator]();j=(k=l.next()).value,!k.done;)i.headers[j[0].toLowerCase()]=j[1],i.rawHeaders.push(j[0],j[1]);var m=c.body.getReader();g()}else{i._xhr=a,i._pos=0,i.url=a.responseURL, i.statusCode=a.status,i.statusMessage=a.statusText;var n=a.getAllResponseHeaders().split(/\r?\n/);if(n.forEach(function(a){var b=a.match(/^([^:]+):\s*(.*)/);if(b){var c=b[1].toLowerCase();"set-cookie"===c?(void 0===i.headers[c]&&(i.headers[c]=[]),i.headers[c].push(b[2])):void 0!==i.headers[c]?i.headers[c]+=", "+b[2]:i.headers[c]=b[2],i.rawHeaders.push(b[1],b[2])}}),i._charset="x-user-defined",!f.overrideMimeType){var o=i.rawHeaders["mime-type"];if(o){var p=o.match(/;\s*charset=([^;])(;|$)/);p&&(i._charset=p[1].toLowerCase())}i._charset||(i._charset="utf-8")}}};g(j,h.Readable),j.prototype._read=function(){},j.prototype._onXHRProgress=function(){var a=this,b=a._xhr,c=null;switch(a._mode){case"text:vbarray":if(b.readyState!==i.DONE)break;try{c=new d.VBArray(b.responseBody).toArray()}catch(f){}if(null!==c){a.push(new e(c));break}case"text":try{c=b.responseText}catch(f){a._mode="text:vbarray";break}if(c.length>a._pos){var g=c.substr(a._pos);if("x-user-defined"===a._charset){for(var h=new e(g.length),j=0;ja._pos&&(a.push(new e(new Uint8Array(k.result.slice(a._pos)))),a._pos=k.result.byteLength)},k.onload=function(){a.push(null)},k.readAsArrayBuffer(c)}a._xhr.readyState===i.DONE&&"ms-stream"!==a._mode&&a.push(null)}}).call(this,a("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},a("buffer").Buffer)},{"./capability":121,_process:81,buffer:6,inherits:74,"readable-stream":91}],124:[function(a,b,c){function d(a){if(a&&!i(a))throw new Error("Unknown encoding: "+a)}function e(a){return a.toString(this.encoding)}function f(a){this.charReceived=a.length%2,this.charLength=this.charReceived?2:0}function g(a){this.charReceived=a.length%3,this.charLength=this.charReceived?3:0}var h=a("buffer").Buffer,i=h.isEncoding||function(a){switch(a&&a.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},j=c.StringDecoder=function(a){switch(this.encoding=(a||"utf8").toLowerCase().replace(/[-_]/,""),d(a),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=f;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=g;break;default:return void(this.write=e)}this.charBuffer=new h(6),this.charReceived=0,this.charLength=0};j.prototype.write=function(a){for(var b="";this.charLength;){var c=a.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:a.length;if(a.copy(this.charBuffer,this.charReceived,0,c),this.charReceived+=c,this.charReceived=55296&&d<=56319)){if(this.charReceived=this.charLength=0,0===a.length)return b;break}this.charLength+=this.surrogateSize,b=""}this.detectIncompleteChar(a);var e=a.length;this.charLength&&(a.copy(this.charBuffer,0,a.length-this.charReceived,e),e-=this.charReceived),b+=a.toString(this.encoding,0,e);var e=b.length-1,d=b.charCodeAt(e);if(d>=55296&&d<=56319){var f=this.surrogateSize;return this.charLength+=f,this.charReceived+=f,this.charBuffer.copy(this.charBuffer,f,0,f),a.copy(this.charBuffer,0,0,f),b.substring(0,e)}return b},j.prototype.detectIncompleteChar=function(a){for(var b=a.length>=3?3:a.length;b>0;b--){var c=a[a.length-b];if(1==b&&c>>5==6){this.charLength=2;break}if(b<=2&&c>>4==14){this.charLength=3;break}if(b<=3&&c>>3==30){this.charLength=4;break}}this.charReceived=b},j.prototype.end=function(a){var b="";if(a&&a.length&&(b=this.write(a)),this.charReceived){var c=this.charReceived,d=this.charBuffer,e=this.encoding;b+=d.slice(0,c).toString(e)}return b}},{buffer:6}],125:[function(a,b,c){var d=a("buffer").Buffer;b.exports=function(a){if(a instanceof Uint8Array){if(0===a.byteOffset&&a.byteLength===a.buffer.byteLength)return a.buffer;if("function"==typeof a.buffer.slice)return a.buffer.slice(a.byteOffset,a.byteOffset+a.byteLength)}if(d.isBuffer(a)){for(var b=new Uint8Array(a.length),c=a.length,e=0;e=0&&a>1;return b?-c:c}var f=a("./base64"),g=5,h=1<>>=g,e>0&&(b|=j),c+=f.encode(b);while(e>0);return c},c.decode=function(a,b,c){var d,h,k=a.length,l=0,m=0;do{if(b>=k)throw new Error("Expected more digits in base 64 VLQ value.");if(h=f.decode(a.charCodeAt(b++)),h===-1)throw new Error("Invalid base64 digit: "+a.charAt(b-1));d=!!(h&j),h&=i,l+=h<0?b-i>1?d(i,b,e,f,g,h):h==c.LEAST_UPPER_BOUND?b1?d(a,i,e,f,g,h):h==c.LEAST_UPPER_BOUND?i:a<0?-1:a}c.GREATEST_LOWER_BOUND=1,c.LEAST_UPPER_BOUND=2,c.search=function(a,b,e,f){if(0===b.length)return-1;var g=d(-1,b.length,a,b,e,f||c.GREATEST_LOWER_BOUND);if(g<0)return-1;for(;g-1>=0&&0===e(b[g],b[g-1],!0);)--g;return g}},{}],130:[function(a,b,c){function d(a,b){var c=a.generatedLine,d=b.generatedLine,e=a.generatedColumn,g=b.generatedColumn;return d>c||d==c&&g>=e||f.compareByGeneratedPositionsInflated(a,b)<=0}function e(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}var f=a("./util");e.prototype.unsortedForEach=function(a,b){this._array.forEach(a,b)},e.prototype.add=function(a){d(this._last,a)?(this._last=a,this._array.push(a)):(this._sorted=!1,this._array.push(a))},e.prototype.toArray=function(){return this._sorted||(this._array.sort(f.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},c.MappingList=e},{"./util":135}],131:[function(a,b,c){function d(a,b,c){var d=a[b];a[b]=a[c],a[c]=d}function e(a,b){return Math.round(a+Math.random()*(b-a))}function f(a,b,c,g){if(c=0){var f=this._originalMappings[e];if(void 0===a.column)for(var g=f.originalLine;f&&f.originalLine===g;)d.push({line:h.getArg(f,"generatedLine",null),column:h.getArg(f,"generatedColumn",null),lastColumn:h.getArg(f,"lastGeneratedColumn",null)}),f=this._originalMappings[++e];else for(var j=f.originalColumn;f&&f.originalLine===b&&f.originalColumn==j;)d.push({line:h.getArg(f,"generatedLine",null),column:h.getArg(f,"generatedColumn",null),lastColumn:h.getArg(f,"lastGeneratedColumn",null)}),f=this._originalMappings[++e]}return d},c.SourceMapConsumer=d,e.prototype=Object.create(d.prototype),e.prototype.consumer=d,e.fromSourceMap=function(a){var b=Object.create(e.prototype),c=b._names=j.fromArray(a._names.toArray(),!0),d=b._sources=j.fromArray(a._sources.toArray(),!0);b.sourceRoot=a._sourceRoot,b.sourcesContent=a._generateSourcesContent(b._sources.toArray(),b.sourceRoot),b.file=a._file;for(var g=a._mappings.toArray().slice(),i=b.__generatedMappings=[],k=b.__originalMappings=[],m=0,n=g.length;m1&&(c.source=p+e[1],p+=e[1],c.originalLine=n+e[2],n=c.originalLine,c.originalLine+=1,c.originalColumn=o+e[3],o=c.originalColumn,e.length>4&&(c.name=q+e[4],q+=e[4])),w.push(c),"number"==typeof c.originalLine&&v.push(c)}l(w,h.compareByGeneratedPositionsDeflated),this.__generatedMappings=w,l(v,h.compareByOriginalPositions),this.__originalMappings=v},e.prototype._findMapping=function(a,b,c,d,e,f){if(a[c]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+a[c]);if(a[d]<0)throw new TypeError("Column must be greater than or equal to 0, got "+a[d]);return i.search(a,b,e,f)},e.prototype.computeColumnSpans=function(){for(var a=0;a=0){var e=this._generatedMappings[c];if(e.generatedLine===b.generatedLine){var f=h.getArg(e,"source",null);null!==f&&(f=this._sources.at(f),null!=this.sourceRoot&&(f=h.join(this.sourceRoot,f)));var g=h.getArg(e,"name",null);return null!==g&&(g=this._names.at(g)),{source:f,line:h.getArg(e,"originalLine",null),column:h.getArg(e,"originalColumn",null),name:g}}}return{source:null,line:null,column:null,name:null}},e.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(a){return null==a}))},e.prototype.sourceContentFor=function(a,b){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(a=h.relative(this.sourceRoot,a)),this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];var c;if(null!=this.sourceRoot&&(c=h.urlParse(this.sourceRoot))){var d=a.replace(/^file:\/\//,"");if("file"==c.scheme&&this._sources.has(d))return this.sourcesContent[this._sources.indexOf(d)];if((!c.path||"/"==c.path)&&this._sources.has("/"+a))return this.sourcesContent[this._sources.indexOf("/"+a)]}if(b)return null;throw new Error('"'+a+'" is not in the SourceMap.')},e.prototype.generatedPositionFor=function(a){var b=h.getArg(a,"source");if(null!=this.sourceRoot&&(b=h.relative(this.sourceRoot,b)),!this._sources.has(b))return{line:null,column:null,lastColumn:null};b=this._sources.indexOf(b);var c={source:b,originalLine:h.getArg(a,"line"),originalColumn:h.getArg(a,"column")},e=this._findMapping(c,this._originalMappings,"originalLine","originalColumn",h.compareByOriginalPositions,h.getArg(a,"bias",d.GREATEST_LOWER_BOUND));if(e>=0){var f=this._originalMappings[e];if(f.source===c.source)return{line:h.getArg(f,"generatedLine",null),column:h.getArg(f,"generatedColumn",null),lastColumn:h.getArg(f,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},c.BasicSourceMapConsumer=e,g.prototype=Object.create(d.prototype),g.prototype.constructor=d,g.prototype._version=3,Object.defineProperty(g.prototype,"sources",{get:function(){for(var a=[],b=0;b0&&a.column>=0)||b||c||d)&&!(a&&"line"in a&&"column"in a&&b&&"line"in b&&"column"in b&&a.line>0&&a.column>=0&&b.line>0&&b.column>=0&&c))throw new Error("Invalid mapping: "+JSON.stringify({generated:a,source:c,original:b,name:d}))},d.prototype._serializeMappings=function(){for(var a,b,c,d,g=0,h=1,i=0,j=0,k=0,l=0,m="",n=this._mappings.toArray(),o=0,p=n.length;o0){if(!f.compareByGeneratedPositionsInflated(b,n[o-1]))continue;a+=","}a+=e.encode(b.generatedColumn-g),g=b.generatedColumn,null!=b.source&&(d=this._sources.indexOf(b.source),a+=e.encode(d-l),l=d,a+=e.encode(b.originalLine-1-j),j=b.originalLine-1,a+=e.encode(b.originalColumn-i),i=b.originalColumn,null!=b.name&&(c=this._names.indexOf(b.name),a+=e.encode(c-k),k=c)),m+=a}return m},d.prototype._generateSourcesContent=function(a,b){return a.map(function(a){if(!this._sourcesContents)return null;null!=b&&(a=f.relative(b,a));var c=f.toSetString(a);return Object.prototype.hasOwnProperty.call(this._sourcesContents,c)?this._sourcesContents[c]:null},this)},d.prototype.toJSON=function(){var a={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(a.file=this._file),null!=this._sourceRoot&&(a.sourceRoot=this._sourceRoot),this._sourcesContents&&(a.sourcesContent=this._generateSourcesContent(a.sources,a.sourceRoot)),a},d.prototype.toString=function(){return JSON.stringify(this.toJSON())},c.SourceMapGenerator=d},{"./array-set":126,"./base64-vlq":127,"./mapping-list":130,"./util":135}],134:[function(a,b,c){function d(a,b,c,d,e){this.children=[],this.sourceContents={},this.line=null==a?null:a,this.column=null==b?null:b,this.source=null==c?null:c,this.name=null==e?null:e,this[i]=!0,null!=d&&this.add(d)}var e=a("./source-map-generator").SourceMapGenerator,f=a("./util"),g=/(\r?\n)/,h=10,i="$$$isSourceNode$$$";d.fromStringWithSourceMap=function(a,b,c){function e(a,b){if(null===a||void 0===a.source)h.add(b);else{var e=c?f.join(c,a.source):a.source;h.add(new d(a.originalLine,a.originalColumn,e,b,a.name))}}var h=new d,i=a.split(g),j=function(){var a=i.shift(),b=i.shift()||"";return a+b},k=1,l=0,m=null;return b.eachMapping(function(a){if(null!==m){if(!(k0&&(m&&e(m,j()),h.add(i.join(""))),b.sources.forEach(function(a){var d=b.sourceContentFor(a);null!=d&&(null!=c&&(a=f.join(c,a)),h.setSourceContent(a,d))}),h},d.prototype.add=function(a){if(Array.isArray(a))a.forEach(function(a){this.add(a)},this);else{if(!a[i]&&"string"!=typeof a)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+a);a&&this.children.push(a)}return this},d.prototype.prepend=function(a){if(Array.isArray(a))for(var b=a.length-1;b>=0;b--)this.prepend(a[b]);else{if(!a[i]&&"string"!=typeof a)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+a);this.children.unshift(a)}return this},d.prototype.walk=function(a){for(var b,c=0,d=this.children.length;c0){for(b=[],c=0;c=0;k--)g=i[k],"."===g?i.splice(k,1):".."===g?j++:j>0&&(""===g?(i.splice(k+1,j),j=0):(i.splice(k,2),j--));return b=i.join("/"),""===b&&(b=h?"/":"."),d?(d.path=b,f(d)):b}function h(a,b){""===a&&(a="."),""===b&&(b=".");var c=e(b),d=e(a);if(d&&(a=d.path||"/"),c&&!c.scheme)return d&&(c.scheme=d.scheme),f(c);if(c||b.match(s))return b;if(d&&!d.host&&!d.path)return d.host=b,f(d);var h="/"===b.charAt(0)?b:g(a.replace(/\/+$/,"")+"/"+b);return d?(d.path=h,f(d)):h}function i(a,b){""===a&&(a="."),a=a.replace(/\/$/,"");for(var c=0;0!==b.indexOf(a+"/");){var d=a.lastIndexOf("/");if(d<0)return b;if(a=a.slice(0,d),a.match(/^([^\/]+:\/)?\/*$/))return b;++c}return Array(c+1).join("../")+b.substr(a.length+1)}function j(a){return a}function k(a){return m(a)?"$"+a:a}function l(a){return m(a)?a.slice(1):a}function m(a){if(!a)return!1;var b=a.length;if(b<9)return!1;if(95!==a.charCodeAt(b-1)||95!==a.charCodeAt(b-2)||111!==a.charCodeAt(b-3)||116!==a.charCodeAt(b-4)||111!==a.charCodeAt(b-5)||114!==a.charCodeAt(b-6)||112!==a.charCodeAt(b-7)||95!==a.charCodeAt(b-8)||95!==a.charCodeAt(b-9))return!1;for(var c=b-10;c>=0;c--)if(36!==a.charCodeAt(c))return!1;return!0}function n(a,b,c){var d=a.source-b.source;return 0!==d?d:(d=a.originalLine-b.originalLine,0!==d?d:(d=a.originalColumn-b.originalColumn,0!==d||c?d:(d=a.generatedColumn-b.generatedColumn,0!==d?d:(d=a.generatedLine-b.generatedLine,0!==d?d:a.name-b.name))))}function o(a,b,c){var d=a.generatedLine-b.generatedLine;return 0!==d?d:(d=a.generatedColumn-b.generatedColumn,0!==d||c?d:(d=a.source-b.source,0!==d?d:(d=a.originalLine-b.originalLine,0!==d?d:(d=a.originalColumn-b.originalColumn,0!==d?d:a.name-b.name))))}function p(a,b){return a===b?0:a>b?1:-1}function q(a,b){var c=a.generatedLine-b.generatedLine;return 0!==c?c:(c=a.generatedColumn-b.generatedColumn,0!==c?c:(c=p(a.source,b.source),0!==c?c:(c=a.originalLine-b.originalLine,0!==c?c:(c=a.originalColumn-b.originalColumn,0!==c?c:p(a.name,b.name)))))}c.getArg=d;var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,s=/^data:.+\,.+$/;c.urlParse=e,c.urlGenerate=f,c.normalize=g,c.join=h,c.isAbsolute=function(a){return"/"===a.charAt(0)||!!a.match(r)},c.relative=i;var t=function(){var a=Object.create(null);return!("__proto__"in a)}();c.toSetString=t?j:k,c.fromSetString=t?j:l,c.compareByOriginalPositions=n,c.compareByGeneratedPositionsDeflated=o,c.compareByGeneratedPositionsInflated=q},{}],136:[function(a,b,c){c.SourceMapGenerator=a("./lib/source-map-generator").SourceMapGenerator,c.SourceMapConsumer=a("./lib/source-map-consumer").SourceMapConsumer,c.SourceNode=a("./lib/source-node").SourceNode},{"./lib/source-map-consumer":132,"./lib/source-map-generator":133,"./lib/source-node":134}],137:[function(a,b,c){function d(a){for(var b=Object.create(null),c=0;c=0}function h(a,b){for(var c=0,d=b.length;c>1);return c+=c,1&b&&(c+=a),c}function j(a,b){Error.call(this,a),this.msg=a,this.defs=b}function k(a,b,c){a===!0&&(a={});var d=a||{};if(c)for(var e in d)w(d,e)&&!w(b,e)&&j.croak("`"+e+"` is not a supported option",b);for(var e in b)w(b,e)&&(d[e]=a&&w(a,e)?a[e]:b[e]);return d}function l(a,b){var c=0;for(var d in b)w(b,d)&&(a[d]=b[d],c++);return c}function m(){}function n(a,b){a.indexOf(b)<0&&a.push(b)}function o(a,b){return a.replace(/\{(.+?)\}/g,function(a,c){return b[c]})}function p(a,b){for(var c=a.length;--c>=0;)a[c]===b&&a.splice(c,1)}function q(a,b){function c(a,c){for(var d=[],e=0,f=0,g=0;e=0})} -function t(a){function b(a){if(1==a.length)return c+="return str === "+JSON.stringify(a[0])+";";c+="switch(str){";for(var b=0;b3){d.sort(function(a,b){return b.length-a.length}),c+="switch(str.length){";for(var e=0;e=0;)if(!b(a[c]))return!1;return!0}function v(){this._values=Object.create(null),this._size=0}function w(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function x(a,b,d,e){arguments.length<4&&(e=aa),b=b?b.split(/\s+/):[];var f=b;e&&e.PROPS&&(b=b.concat(e.PROPS));for(var g="return function AST_"+a+"(props){ if (props) { ",h=b.length;--h>=0;)g+="this."+b[h]+" = props."+b[h]+";";var i=e&&new e;(i&&i.initialize||d&&d.initialize)&&(g+="this.initialize();"),g+="}}";var j=new Function(g)();if(i&&(j.prototype=i,j.BASE=e),e&&e.SUBCLASSES.push(j),j.prototype.CTOR=j,j.PROPS=b||null,j.SELF_PROPS=f,j.SUBCLASSES=[],a&&(j.prototype.TYPE=j.TYPE=a),d)for(h in d)w(d,h)&&(/^\$/.test(h)?j[h.substr(1)]=d[h]:j.prototype[h]=d[h]);return j.DEFMETHOD=function(a,b){this.prototype[a]=b},c["AST_"+a]=j,j}function y(a,b){a.body instanceof ba?a.body._walk(b):a.body.forEach(function(a){a._walk(b)})}function z(a){this.visit=a,this.stack=[],this.directives=Object.create(null)}function A(a){return a>=97&&a<=122||a>=65&&a<=90||a>=170&&Sb.letter.test(String.fromCharCode(a))}function B(a){return a>=48&&a<=57}function C(a){return B(a)||A(a)}function D(a){return Sb.digit.test(String.fromCharCode(a))}function E(a){return Sb.non_spacing_mark.test(a)||Sb.space_combining_mark.test(a)}function F(a){return Sb.connector_punctuation.test(a)}function G(a){return!Ib(a)&&/^[a-z_$][a-z0-9_$]*$/i.test(a)}function H(a){return 36==a||95==a||A(a)}function I(a){var b=a.charCodeAt(0);return H(b)||B(b)||8204==b||8205==b||E(a)||F(a)||D(b)}function J(a){return/^[a-z_$][a-z0-9_$]*$/i.test(a)}function K(a){if(Lb.test(a))return parseInt(a.substr(2),16);if(Mb.test(a))return parseInt(a.substr(1),8);var b=parseFloat(a);return b==a?b:void 0}function L(a,b,c,d,e){this.message=a,this.filename=b,this.line=c,this.col=d,this.pos=e,this.stack=(new Error).stack}function M(a,b,c,d,e){throw new L(a,b,c,d,e)}function N(a,b,c){return a.type==b&&(null==c||a.value==c)}function O(a,b,c,d){function e(){return A.text.charAt(A.pos)}function f(a,b){var c=A.text.charAt(A.pos++);if(a&&!c)throw Tb;return"\r\n\u2028\u2029".indexOf(c)>=0?(A.newline_before=A.newline_before||!b,++A.line,A.col=0,b||"\r"!=c||"\n"!=e()||(++A.pos,c="\n")):++A.col,c}function g(a){for(;a-- >0;)f()}function h(a){return A.text.substr(A.pos,a.length)==a}function i(){for(var a=A.text,b=A.pos,c=A.text.length;b0;--a){var c=parseInt(f(!0),16);isNaN(c)&&o("Invalid hex-character pattern in string"),b=b<<4|c}return b}function s(a){var b,c=A.regex_allowed,d=i();return d==-1?(b=A.text.substr(A.pos),A.pos=A.text.length):(b=A.text.substring(A.pos,d),A.pos=d),A.col=A.tokcol+(A.pos-A.tokpos),A.comments_before.push(l(a,b,!0)),A.regex_allowed=c,z}function t(){for(var a,b,c=!1,d="",g=!1;null!=(a=e());)if(c)"u"!=a&&o("Expecting UnicodeEscapeSequence -- uXXXX"),a=q(),I(a)||o("Unicode char: "+a.charCodeAt(0)+" is not valid in identifier"),d+=a,c=!1;else if("\\"==a)g=c=!0,f();else{if(!I(a))break;d+=f()}return Gb(d)&&g&&(b=d.charCodeAt(0).toString(16).toUpperCase(),d="\\u"+"0000".substr(b.length)+b+d.slice(1)),d}function u(a){function b(a){if(!e())return a;var c=a+e();return Nb(c)?(f(),b(c)):a}return l("operator",b(a||f()))}function v(){switch(f(),e()){case"/":return f(),s("comment1");case"*":return f(),F()}return A.regex_allowed?G(""):u("/")}function w(){return f(),B(e().charCodeAt(0))?p("."):l("punc",".")}function x(){var a=t();return D?l("name",a):Hb(a)?l("atom",a):Gb(a)?Nb(a)?l("operator",a):l("keyword",a):l("name",a)}function y(a,b){return function(c){try{return b(c)}catch(d){if(d!==Tb)throw d;o(a)}}}function z(a){if(null!=a)return G(a);for(;;){if(m(),k(),c){if(h("")&&A.newline_before){g(3),s("comment4");continue}}var b=e();if(!b)return l("eof");var i=b.charCodeAt(0);switch(i){case 34:case 39:return E(b);case 46:return w();case 47:var j=v();if(j===z)continue;return j}if(B(i))return p();if(Qb(b))return l("punc",f());if(Kb(b))return u();if(92==i||H(i))return x();if(!d||0!=A.pos||!h("#!"))break;g(2),s("comment5")}o("Unexpected character '"+b+"'")}var A={text:a,filename:b,pos:0,tokpos:0,line:1,tokline:0,col:0,tokcol:0,newline_before:!1,regex_allowed:!1,comments_before:[],directives:{},directive_stack:[]},D=!1,E=y("Unterminated string constant",function(a){for(var b=f(),c="";;){var d=f(!0,!0);if("\\"==d){var e=0,g=null;d=n(function(a){if(a>="0"&&a<="7"){if(!g)return g=a,++e;if(g<="3"&&e<=2)return++e;if(g>="4"&&e<=1)return++e}return!1}),e>0?("0"!==d&&z.has_directive("use strict")&&o("Octal literals are not allowed in strict mode"),d=String.fromCharCode(parseInt(d,8))):d=q(!0)}else if("\r\n\u2028\u2029".indexOf(d)>=0)o("Unterminated string constant");else if(d==b)break;c+=d}var h=l("string",c);return h.quote=a,h}),F=y("Unterminated multiline comment",function(){var a=A.regex_allowed,b=j("*/",!0),c=A.text.substring(A.pos,b).replace(/\r\n|\r/g,"\n"),d=c.split("\n"),e=d.length;A.pos=b+2,A.line+=e-1,e>1?A.col=d[e-1].length:A.col+=d[e-1].length,A.col+=2;var f=A.newline_before=A.newline_before||c.indexOf("\n")>=0;return A.comments_before.push(l("comment2",c,!0)),A.regex_allowed=a,A.newline_before=f,z}),G=y("Unterminated regular expression",function(a){for(var b,c=!1,d=!1;b=f(!0);)if(c)a+="\\"+b,c=!1;else if("["==b)d=!0,a+=b;else if("]"==b&&d)d=!1,a+=b;else{if("/"==b&&!d)break;"\\"==b?c=!0:"\r\n\u2028\u2029".indexOf(b)>=0?o("Unexpected line terminator"):a+=b}var e=t();try{return l("regexp",new RegExp(a,e))}catch(g){o(g.message)}});return z.context=function(a){return a&&(A=a),A},z.add_directive=function(a){A.directive_stack[A.directive_stack.length-1].push(a),void 0===A.directives[a]?A.directives[a]=1:A.directives[a]++},z.push_directives_stack=function(){A.directive_stack.push([])},z.pop_directives_stack=function(){for(var a=A.directive_stack[A.directive_stack.length-1],b=0;b0},z}function P(a,b){function c(a,b){return N(R.token,a,b)}function d(){return R.peeked||(R.peeked=R.input())}function e(){return R.prev=R.token,R.peeked?(R.token=R.peeked,R.peeked=null):R.token=R.input(),R.in_directives=R.in_directives&&("string"==R.token.type||c("punc",";")),R.token}function f(){return R.prev}function g(a,b,c,d){var e=R.input.context();M(a,e.filename,null!=b?b:e.tokline,null!=c?c:e.tokcol,null!=d?d:e.tokpos)}function i(a,b){g(b,a.line,a.col)}function j(a){null==a&&(a=R.token),i(a,"SyntaxError: Unexpected token: "+a.type+" ("+a.value+")")}function l(a,b){return c(a,b)?e():void i(R.token,"SyntaxError: Unexpected token "+R.token.type+" «"+R.token.value+"», expected "+a+" «"+b+"»")}function m(a){return l("punc",a)}function n(){return!b.strict&&(R.token.nlb||c("eof")||c("punc","}"))}function o(a){c("punc",";")?e():a||n()||j()}function p(){m("(");var a=ia(!0);return m(")"),a}function q(a){return function(){var b=R.token,c=a(),d=f();return c.start=b,c.end=d,c}}function r(){(c("operator","/")||c("operator","/="))&&(R.peeked=null,R.token=R.input(R.token.value.substr(1)))}function s(){var a=I(pb);h(function(b){return b.name==a.name},R.labels)&&g("SyntaxError: Label "+a.name+" defined twice"),m(":"),R.labels.push(a);var b=S();return R.labels.pop(),b instanceof ka||a.references.forEach(function(b){b instanceof Da&&(b=b.label.start,g("SyntaxError: Continue label `"+a.name+"` refers to non-IterationStatement.",b.line,b.col,b.pos))}),new ja({body:b,label:a})}function t(a){return new ea({body:(a=ia(!0),o(),a)})}function u(a){var b,c=null;n()||(c=I(rb,!0)),null!=c?(b=h(function(a){return a.name==c.name},R.labels),b||g("SyntaxError: Undefined label "+c.name),c.thedef=b):0==R.in_loop&&g("SyntaxError: "+a.TYPE+" not inside a loop or switch"),o();var d=new a({label:c});return b&&b.references.push(d),d}function v(){m("(");var a=null;return!c("punc",";")&&(a=c("keyword","var")?(e(),U(!0)):ia(!0,!0),c("operator","in"))?(a instanceof Na&&a.definitions.length>1&&g("SyntaxError: Only one variable declaration allowed in for..in loop"),e(),x(a)):w(a)}function w(a){m(";");var b=c("punc",";")?null:ia(!0);m(";");var d=c("punc",")")?null:ia(!0);return m(")"),new oa({init:a,condition:b,step:d,body:Q(S)})}function x(a){var b=a instanceof Na?a.definitions[0].name:null,c=ia(!0);return m(")"),new pa({init:a,name:b,object:c,body:Q(S)})}function y(){var a=p(),b=S(),d=null;return c("keyword","else")&&(e(),d=S()),new Ea({condition:a,body:b,alternative:d})}function z(){m("{");for(var a=[];!c("punc","}");)c("eof")&&j(),a.push(S());return e(),a}function A(){m("{");for(var a,b=[],d=null,g=null;!c("punc","}");)c("eof")&&j(),c("keyword","case")?(g&&(g.end=f()),d=[],g=new Ia({start:(a=R.token,e(),a),expression:ia(!0),body:d}),b.push(g),m(":")):c("keyword","default")?(g&&(g.end=f()),d=[],g=new Ha({start:(a=R.token,e(),m(":"),a),body:d}),b.push(g)):(d||j(),d.push(S()));return g&&(g.end=f()),e(),b}function B(){var a=z(),b=null,d=null;if(c("keyword","catch")){var h=R.token;e(),m("(");var i=I(ob);m(")"),b=new Ka({start:h,argname:i,body:z(),end:f()})}if(c("keyword","finally")){var h=R.token;e(),d=new La({start:h,body:z(),end:f()})}return b||d||g("SyntaxError: Missing catch/finally blocks"),new Ja({body:a,bcatch:b,bfinally:d})}function C(a,b){for(var d=[];d.push(new Pa({start:R.token,name:I(b?kb:jb),value:c("operator","=")?(e(),ia(!1,a)):null,end:f()})),c("punc",",");)e();return d}function D(){var a,b=R.token;switch(b.type){case"name":case"keyword":a=H(qb);break;case"num":a=new vb({start:b,end:b,value:b.value});break;case"string":a=new ub({start:b,end:b,value:b.value,quote:b.quote});break;case"regexp":a=new wb({start:b,end:b,value:b.value});break;case"atom":switch(b.value){case"false":a=new Eb({start:b,end:b});break;case"true":a=new Fb({start:b,end:b});break;case"null":a=new yb({start:b,end:b})}break;case"operator":J(b.value)||g("SyntaxError: Invalid getter/setter name: "+b.value,b.line,b.col,b.pos),a=H(qb)}return e(),a}function E(a,b,d){for(var f=!0,g=[];!c("punc",a)&&(f?f=!1:m(","),!b||!c("punc",a));)c("punc",",")&&d?g.push(new Bb({start:R.token,end:R.token})):g.push(ia(!1));return e(),g}function F(){var a=R.token;switch(e(),a.type){case"num":case"string":case"name":case"operator":case"keyword":case"atom":return a.value;default:j()}}function G(){var a=R.token;switch(e(),a.type){case"name":case"operator":case"keyword":case"atom":return a.value;default:j()}}function H(a){var b=R.token.value;return new("this"==b?sb:a)({name:String(b),start:R.token,end:R.token})}function I(a,b){if(!c("name"))return b||g("SyntaxError: Name expected"),null;var d=H(a);return e(),d}function K(a,b,c){return"++"!=b&&"--"!=b||P(c)||g("SyntaxError: Invalid use of "+b+" operator"),new a({operator:b,expression:c})}function L(a){return aa(_(!0),0,a)}function P(a){return!b.strict||!(a instanceof sb)&&(a instanceof Ta||a instanceof gb)}function Q(a){++R.in_loop;var b=a();return--R.in_loop,b}b=k(b,{strict:!1,filename:null,toplevel:null,expression:!1,html5_comments:!0,bare_returns:!1,shebang:!0});var R={input:"string"==typeof a?O(a,b.filename,b.html5_comments,b.shebang):a,token:null,prev:null,peeked:null,in_function:0,in_directives:!0,in_loop:0,labels:[]};R.token=e();var S=q(function(){var a;switch(r(),R.token.type){case"string":var h=!1;R.in_directives===!0&&((N(d(),"punc",";")||d().nlb)&&R.token.raw.indexOf("\\")===-1?R.input.add_directive(R.token.value):R.in_directives=!1);var h=R.in_directives,i=t();return h?new da({start:i.body.start,end:i.body.end,quote:i.body.quote,value:i.body.value}):i;case"num":case"regexp":case"operator":case"atom":return t();case"name":return N(d(),"punc",":")?s():t();case"punc":switch(R.token.value){case"{":return new ga({start:R.token,body:z(),end:f()});case"[":case"(":return t();case";":return R.in_directives=!1,e(),new ha;default:j()}case"keyword":switch(a=R.token.value,e(),a){case"break":return u(Ca);case"continue":return u(Da);case"debugger":return o(),new ca;case"do":return new ma({body:Q(S),condition:(l("keyword","while"),a=p(),o(!0),a)});case"while":return new na({condition:p(),body:Q(S)});case"for":return v();case"function":return T(wa);case"if":return y();case"return":return 0!=R.in_function||b.bare_returns||g("SyntaxError: 'return' outside of function"),new za({value:c("punc",";")?(e(),null):n()?null:(a=ia(!0),o(),a)});case"switch":return new Fa({expression:p(),body:Q(A)});case"throw":return R.token.nlb&&g("SyntaxError: Illegal newline after 'throw'"),new Aa({value:(a=ia(!0),o(),a)});case"try":return B();case"var":return a=U(),o(),a;case"const":return a=V(),o(),a;case"with":return R.input.has_directive("use strict")&&g("SyntaxError: Strict mode may not include a with statement"),new qa({expression:p(),body:S()});default:j()}}}),T=function(a){var b=a===wa,d=c("name")?I(b?mb:nb):null;return b&&!d&&j(),m("("),new a({name:d,argnames:function(a,b){for(;!c("punc",")");)a?a=!1:m(","),b.push(I(lb));return e(),b}(!0,[]),body:function(a,b){++R.in_function,R.in_directives=!0,R.input.push_directives_stack(),R.in_loop=0,R.labels=[];var c=z();return R.input.pop_directives_stack(),--R.in_function,R.in_loop=a,R.labels=b,c}(R.in_loop,R.labels)})},U=function(a){return new Na({start:f(),definitions:C(a,!1),end:f()})},V=function(){return new Oa({start:f(),definitions:C(!1,!0),end:f()})},W=function(a){var b=R.token;l("operator","new");var d,g=X(!1);return c("punc","(")?(e(),d=E(")")):d=[],$(new Ra({start:b,expression:g,args:d,end:f()}),a)},X=function(a){if(c("operator","new"))return W(a);var b=R.token;if(c("punc")){switch(b.value){case"(":e();var d=ia(!0);return d.start=b,d.end=R.token,m(")"),$(d,a);case"[":return $(Y(),a);case"{":return $(Z(),a)}j()}if(c("keyword","function")){e();var g=T(va);return g.start=b,g.end=f(),$(g,a)}return Zb[R.token.type]?$(D(),a):void j()},Y=q(function(){return m("["),new ab({elements:E("]",!b.strict,!0)})}),Z=q(function(){m("{");for(var a=!0,d=[];!c("punc","}")&&(a?a=!1:m(","),b.strict||!c("punc","}"));){var g=R.token,h=g.type,i=F();if("name"==h&&!c("punc",":")){if("get"==i){d.push(new fb({start:g,key:D(),value:T(ua),end:f()}));continue}if("set"==i){d.push(new eb({start:g,key:D(),value:T(ua),end:f()}));continue}}m(":"),d.push(new db({start:g,quote:g.quote,key:i,value:ia(!1),end:f()}))}return e(),new bb({properties:d})}),$=function(a,b){var d=a.start;if(c("punc","."))return e(),$(new Ua({start:d,expression:a,property:G(),end:f()}),b);if(c("punc","[")){e();var g=ia(!0);return m("]"),$(new Va({start:d,expression:a,property:g,end:f()}),b)}return b&&c("punc","(")?(e(),$(new Qa({start:d,expression:a,args:E(")"),end:f()}),!0)):a},_=function(a){var b=R.token;if(c("operator")&&Ub(b.value)){e(),r();var d=K(Xa,b.value,_(a));return d.start=b,d.end=f(),d}for(var g=X(a);c("operator")&&Vb(R.token.value)&&!R.token.nlb;)g=K(Ya,R.token.value,g),g.start=b,g.end=R.token,e();return g},aa=function(a,b,d){var f=c("operator")?R.token.value:null;"in"==f&&d&&(f=null);var g=null!=f?Xb[f]:null;if(null!=g&&g>b){e();var h=aa(_(!0),g,d);return aa(new Za({start:a.start,left:a,operator:f,right:h,end:h.end}),b,d)}return a},ba=function(a){var b=R.token,d=L(a);if(c("operator","?")){e();var g=ia(!1);return m(":"),new $a({start:b,condition:d,consequent:g,alternative:ia(!1,a),end:f()})}return d},fa=function(a){var b=R.token,d=ba(a),h=R.token.value;if(c("operator")&&Wb(h)){if(P(d))return e(),new _a({start:b,left:d,operator:h,right:fa(a),end:f()});g("SyntaxError: Invalid assignment")}return d},ia=function(a,b){var f=R.token,g=fa(b);return a&&c("punc",",")?(e(),new Sa({start:f,car:g,cdr:ia(!0,b),end:d()})):g};return b.expression?ia(!0):function(){var a=R.token,d=[];for(R.input.push_directives_stack();!c("eof");)d.push(S());R.input.pop_directives_stack();var e=f(),g=b.toplevel;return g?(g.body=g.body.concat(d),g.end=e):g=new sa({start:a,body:d,end:e}),g}()}function Q(a,b){z.call(this),this.before=a,this.after=b}function R(a,b,c){this.name=c.name,this.orig=[c],this.scope=a,this.references=[],this.global=!1,this.mangled_name=null,this.undeclared=!1,this.constant=!1,this.index=b,this.id=R.next_id++}function S(a){function b(a,b){return a.replace(/[\u0000-\u001f\u007f-\uffff]/g,function(a){var c=a.charCodeAt(0).toString(16);if(c.length<=2&&!b){for(;c.length<2;)c="0"+c;return"\\x"+c}for(;c.length<4;)c="0"+c;return"\\u"+c})}function c(c,d){function e(){return"'"+c.replace(/\x27/g,"\\'")+"'"}function f(){return'"'+c.replace(/\x22/g,'\\"')+'"'}var g=0,h=0;switch(c=c.replace(/[\\\b\f\n\r\v\t\x22\x27\u2028\u2029\0\ufeff]/g,function(b,d){switch(b){case'"':return++g,'"';case"'":return++h,"'";case"\\":return"\\\\";case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\x0B":return a.screw_ie8?"\\v":"\\x0B";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";case"\ufeff":return"\\ufeff";case"\0":return/[0-7]/.test(c.charAt(d+1))?"\\x00":"\\0"}return b}),a.ascii_only&&(c=b(c)),a.quote_style){case 1:return e();case 2:return f();case 3:return"'"==d?e():f();default:return g>h?e():f()}}function d(b,d){var e=c(b,d);return a.inline_script&&(e=e.replace(/<\x2fscript([>\/\t\n\f\r ])/gi,"<\\/script$1"),e=e.replace(/\x3c!--/g,"\\x3c!--"),e=e.replace(/--\x3e/g,"--\\x3e")),e}function e(c){return c=c.toString(),a.ascii_only&&(c=b(c,!0)),c}function f(b){return i(" ",a.indent_start+v-b*a.indent_level)}function g(){return C.charAt(C.length-1)}function h(){a.max_line_len&&w>a.max_line_len&&j("\n")}function j(b){b=String(b);var c=b.charAt(0);if(B&&(B=!1,c&&!(";}".indexOf(c)<0)||/[;]$/.test(C)||(a.semicolons||D(c)?(z+=";",w++,y++):(z+="\n",y++,x++,w=0,/^\s+$/.test(b)&&(B=!0)),a.beautify||(A=!1))),!a.beautify&&a.preserve_line&&L[L.length-1])for(var d=L[L.length-1].start.line;x=a.width},newline:H,print:j,space:E,comma:r,colon:s,last:function(){return C},semicolon:J,force_semicolon:l,to_ascii:b,print_name:function(a){j(e(a))},print_string:function(a,b,c){var e=d(a,b);c===!0&&e.indexOf("\\")===-1&&(_b.test(z)||l(),l()),j(e)},encode_string:d,next_indent:n,with_indent:G,with_block:o,with_parens:p,with_square:q,add_mapping:K,option:function(b){return a[b]},line:function(){return x},col:function(){return w},pos:function(){return y},push_node:function(a){L.push(a)},pop_node:function(){return L.pop()},stack:function(){return L},parent:function(a){return L[L.length-2-(a||0)]}}}function T(a,b){return this instanceof T?(Q.call(this,this.before,this.after),this.options=k(a,{sequences:!b,properties:!b,dead_code:!b,drop_debugger:!b,unsafe:!1,unsafe_comps:!1,conditionals:!b,comparisons:!b,evaluate:!b,booleans:!b,loops:!b,unused:!b,hoist_funs:!b,keep_fargs:!0,keep_fnames:!1,hoist_vars:!1,if_return:!b,join_vars:!b,collapse_vars:!1,cascade:!b,side_effects:!b,pure_getters:!1,pure_funcs:null,negate_iife:!b,screw_ie8:!1,drop_console:!1,angular:!1,warnings:!0,global_defs:{},passes:1},!0),void(this.warnings_produced={})):new T(a,b)}function U(a){function b(b,e,f,g,h,i){if(d){var j=d.originalPositionFor({line:g,column:h});if(null===j.source)return;b=j.source,g=j.line,h=j.column,i=j.name||i}c.addMapping({generated:{line:e+a.dest_line_diff,column:f},original:{line:g+a.orig_line_diff,column:h},source:b,name:i})}a=k(a,{file:null,root:null,orig:null,orig_line_diff:0,dest_line_diff:0});var c=new Y.SourceMapGenerator({file:a.file,sourceRoot:a.root}),d=a.orig&&new Y.SourceMapConsumer(a.orig);return{add:b,get:function(){return c},toString:function(){return JSON.stringify(c.toJSON())}}}function V(){function a(a){n(b,a)}var b=[];return[Object,Array,Function,Number,String,Boolean,Error,Math,Date,RegExp].forEach(function(b){Object.getOwnPropertyNames(b).map(a),b.prototype&&Object.getOwnPropertyNames(b.prototype).map(a)}),b}function W(a,b){function c(a){return!(p.indexOf(a)>=0)&&(!(i.indexOf(a)>=0)&&(b.only_cache?j.props.has(a):!/^[0-9.]+$/.test(a)))}function d(a){return!(l&&!l.test(a))&&(!(i.indexOf(a)>=0)&&(j.props.has(a)||o.indexOf(a)>=0))}function e(a){c(a)&&n(o,a),d(a)||n(p,a)}function f(a){if(!d(a))return a;var b=j.props.get(a);if(!b){do b=$b(++j.cname);while(!c(b));j.props.set(a,b)}return b}function g(a){var b={};try{!function d(a){a.walk(new z(function(a){if(a instanceof Sa)return d(a.cdr),!0;if(a instanceof ub)return e(a.value),!0;if(a instanceof $a)return d(a.consequent),d(a.alternative),!0;throw b}))}(a)}catch(c){if(c!==b)throw c}}function h(a){return a.transform(new Q(function(a){return a instanceof Sa?a.cdr=h(a.cdr):a instanceof ub?a.value=f(a.value):a instanceof $a&&(a.consequent=h(a.consequent),a.alternative=h(a.alternative)),a}))}b=k(b,{reserved:null,cache:null,only_cache:!1,regex:null,ignore_quoted:!1});var i=b.reserved;null==i&&(i=V());var j=b.cache;null==j&&(j={cname:-1,props:new v});var l=b.regex,m=b.ignore_quoted,o=[],p=[];return a.walk(new z(function(a){a instanceof db?m&&a.quote||e(a.key):a instanceof cb?e(a.key.name):a instanceof Ua?this.parent()instanceof _a&&e(a.property):a instanceof Va&&this.parent()instanceof _a&&(m||g(a.property))})),a.transform(new Q(function(a){a instanceof db?m&&a.quote||(a.key=f(a.key)):a instanceof cb?a.key.name=f(a.key.name):a instanceof Ua?a.property=f(a.property):a instanceof Va&&(m||(a.property=h(a.property)))}))}var X=a("util"),Y=a("source-map"),Z=c;j.prototype=Object.create(Error.prototype),j.prototype.constructor=j,j.croak=function(a,b){throw new j(a,b)};var $=function(){function a(a,f,g){function h(){var h=f(a[i],i),l=h instanceof d;return l&&(h=h.v),h instanceof b?(h=h.v,h instanceof c?k.push.apply(k,g?h.v.slice().reverse():h.v):k.push(h)):h!==e&&(h instanceof c?j.push.apply(j,g?h.v.slice().reverse():h.v):j.push(h)),l}var i,j=[],k=[];if(a instanceof Array)if(g){for(i=a.length;--i>=0&&!h(););j.reverse(),k.reverse()}else for(i=0;i SymbolDef for all variables/functions defined in this scope",functions:"[Object/S] like `variables`, but only lists function declarations",uses_with:"[boolean/S] tells whether this scope uses the `with` statement",uses_eval:"[boolean/S] tells whether this scope contains a direct call to the global `eval`",parent_scope:"[AST_Scope?/S] link to the parent scope",enclosed:"[SymbolDef*/S] a list of all symbol definitions that are accessed from this scope or any subscopes",cname:"[integer/S] current index for mangling variables (used internally by the mangler)"}},fa),sa=x("Toplevel","globals",{$documentation:"The toplevel scope",$propdoc:{globals:"[Object/S] a map of name -> SymbolDef for all undeclared names"},wrap_enclose:function(a){var b=this,c=[],d=[];a.forEach(function(a){var b=a.lastIndexOf(":");c.push(a.substr(0,b)),d.push(a.substr(b+1))});var e="(function("+d.join(",")+"){ '$ORIG'; })("+c.join(",")+")";return e=P(e),e=e.transform(new Q(function(a){if(a instanceof da&&"$ORIG"==a.value)return $.splice(b.body)}))},wrap_commonjs:function(a,b){var c=this,d=[];b&&(c.figure_out_scope(),c.walk(new z(function(a){a instanceof ib&&a.definition().global&&(h(function(b){return b.name==a.name},d)||d.push(a))})));var e="(function(exports, global){ '$ORIG'; '$EXPORTS'; global['"+a+"'] = exports; }({}, (function(){return this}())))";return e=P(e),e=e.transform(new Q(function(a){if(a instanceof da)switch(a.value){case"$ORIG":return $.splice(c.body); -case"$EXPORTS":var b=[];return d.forEach(function(a){b.push(new ea({body:new _a({left:new Va({expression:new qb({name:"exports"}),property:new ub({value:a.name})}),operator:"=",right:new qb(a)})}))}),$.splice(b)}}))}},ra),ta=x("Lambda","name argnames uses_arguments",{$documentation:"Base class for functions",$propdoc:{name:"[AST_SymbolDeclaration?] the name of this function",argnames:"[AST_SymbolFunarg*] array of function arguments",uses_arguments:"[boolean/S] tells whether this function accesses the arguments array"},_walk:function(a){return a._visit(this,function(){this.name&&this.name._walk(a),this.argnames.forEach(function(b){b._walk(a)}),y(this,a)})}},ra),ua=x("Accessor",null,{$documentation:"A setter/getter function. The `name` property is always null."},ta),va=x("Function",null,{$documentation:"A function expression"},ta),wa=x("Defun",null,{$documentation:"A function definition"},ta),xa=x("Jump",null,{$documentation:"Base class for “jumps” (for now that's `return`, `throw`, `break` and `continue`)"},ba),ya=x("Exit","value",{$documentation:"Base class for “exits” (`return` and `throw`)",$propdoc:{value:"[AST_Node?] the value returned or thrown by this statement; could be null for AST_Return"},_walk:function(a){return a._visit(this,this.value&&function(){this.value._walk(a)})}},xa),za=x("Return",null,{$documentation:"A `return` statement"},ya),Aa=x("Throw",null,{$documentation:"A `throw` statement"},ya),Ba=x("LoopControl","label",{$documentation:"Base class for loop control statements (`break` and `continue`)",$propdoc:{label:"[AST_LabelRef?] the label, or null if none"},_walk:function(a){return a._visit(this,this.label&&function(){this.label._walk(a)})}},xa),Ca=x("Break",null,{$documentation:"A `break` statement"},Ba),Da=x("Continue",null,{$documentation:"A `continue` statement"},Ba),Ea=x("If","condition alternative",{$documentation:"A `if` statement",$propdoc:{condition:"[AST_Node] the `if` condition",alternative:"[AST_Statement?] the `else` part, or null if not present"},_walk:function(a){return a._visit(this,function(){this.condition._walk(a),this.body._walk(a),this.alternative&&this.alternative._walk(a)})}},ia),Fa=x("Switch","expression",{$documentation:"A `switch` statement",$propdoc:{expression:"[AST_Node] the `switch` “discriminant”"},_walk:function(a){return a._visit(this,function(){this.expression._walk(a),y(this,a)})}},fa),Ga=x("SwitchBranch",null,{$documentation:"Base class for `switch` branches"},fa),Ha=x("Default",null,{$documentation:"A `default` switch branch"},Ga),Ia=x("Case","expression",{$documentation:"A `case` switch branch",$propdoc:{expression:"[AST_Node] the `case` expression"},_walk:function(a){return a._visit(this,function(){this.expression._walk(a),y(this,a)})}},Ga),Ja=x("Try","bcatch bfinally",{$documentation:"A `try` statement",$propdoc:{bcatch:"[AST_Catch?] the catch block, or null if not present",bfinally:"[AST_Finally?] the finally block, or null if not present"},_walk:function(a){return a._visit(this,function(){y(this,a),this.bcatch&&this.bcatch._walk(a),this.bfinally&&this.bfinally._walk(a)})}},fa),Ka=x("Catch","argname",{$documentation:"A `catch` node; only makes sense as part of a `try` statement",$propdoc:{argname:"[AST_SymbolCatch] symbol for the exception"},_walk:function(a){return a._visit(this,function(){this.argname._walk(a),y(this,a)})}},fa),La=x("Finally",null,{$documentation:"A `finally` node; only makes sense as part of a `try` statement"},fa),Ma=x("Definitions","definitions",{$documentation:"Base class for `var` or `const` nodes (variable declarations/initializations)",$propdoc:{definitions:"[AST_VarDef*] array of variable definitions"},_walk:function(a){return a._visit(this,function(){this.definitions.forEach(function(b){b._walk(a)})})}},ba),Na=x("Var",null,{$documentation:"A `var` statement"},Ma),Oa=x("Const",null,{$documentation:"A `const` statement"},Ma),Pa=x("VarDef","name value",{$documentation:"A variable declaration; only appears in a AST_Definitions node",$propdoc:{name:"[AST_SymbolVar|AST_SymbolConst] name of the variable",value:"[AST_Node?] initializer, or null of there's no initializer"},_walk:function(a){return a._visit(this,function(){this.name._walk(a),this.value&&this.value._walk(a)})}}),Qa=x("Call","expression args",{$documentation:"A function call expression",$propdoc:{expression:"[AST_Node] expression to invoke as function",args:"[AST_Node*] array of arguments"},_walk:function(a){return a._visit(this,function(){this.expression._walk(a),this.args.forEach(function(b){b._walk(a)})})}}),Ra=x("New",null,{$documentation:"An object instantiation. Derives from a function call since it has exactly the same properties"},Qa),Sa=x("Seq","car cdr",{$documentation:"A sequence expression (two comma-separated expressions)",$propdoc:{car:"[AST_Node] first element in sequence",cdr:"[AST_Node] second element in sequence"},$cons:function(a,b){var c=new Sa(a);return c.car=a,c.cdr=b,c},$from_array:function(a){if(0==a.length)return null;if(1==a.length)return a[0].clone();for(var b=null,c=a.length;--c>=0;)b=Sa.cons(a[c],b);for(var d=b;d;){if(d.cdr&&!d.cdr.cdr){d.cdr=d.cdr.car;break}d=d.cdr}return b},to_array:function(){for(var a=this,b=[];a;){if(b.push(a.car),a.cdr&&!(a.cdr instanceof Sa)){b.push(a.cdr);break}a=a.cdr}return b},add:function(a){for(var b=this;b;){if(!(b.cdr instanceof Sa)){var c=Sa.cons(b.cdr,a);return b.cdr=c}b=b.cdr}},len:function(){return this.cdr instanceof Sa?this.cdr.len()+1:2},_walk:function(a){return a._visit(this,function(){this.car._walk(a),this.cdr&&this.cdr._walk(a)})}}),Ta=x("PropAccess","expression property",{$documentation:'Base class for property access expressions, i.e. `a.foo` or `a["foo"]`',$propdoc:{expression:"[AST_Node] the “container” expression",property:"[AST_Node|string] the property to access. For AST_Dot this is always a plain string, while for AST_Sub it's an arbitrary AST_Node"}}),Ua=x("Dot",null,{$documentation:"A dotted property access expression",_walk:function(a){return a._visit(this,function(){this.expression._walk(a)})}},Ta),Va=x("Sub",null,{$documentation:'Index-style property access, i.e. `a["foo"]`',_walk:function(a){return a._visit(this,function(){this.expression._walk(a),this.property._walk(a)})}},Ta),Wa=x("Unary","operator expression",{$documentation:"Base class for unary expressions",$propdoc:{operator:"[string] the operator",expression:"[AST_Node] expression that this unary operator applies to"},_walk:function(a){return a._visit(this,function(){this.expression._walk(a)})}}),Xa=x("UnaryPrefix",null,{$documentation:"Unary prefix expression, i.e. `typeof i` or `++i`"},Wa),Ya=x("UnaryPostfix",null,{$documentation:"Unary postfix expression, i.e. `i++`"},Wa),Za=x("Binary","left operator right",{$documentation:"Binary expression, i.e. `a + b`",$propdoc:{left:"[AST_Node] left-hand side expression",operator:"[string] the operator",right:"[AST_Node] right-hand side expression"},_walk:function(a){return a._visit(this,function(){this.left._walk(a),this.right._walk(a)})}}),$a=x("Conditional","condition consequent alternative",{$documentation:"Conditional expression using the ternary operator, i.e. `a ? b : c`",$propdoc:{condition:"[AST_Node]",consequent:"[AST_Node]",alternative:"[AST_Node]"},_walk:function(a){return a._visit(this,function(){this.condition._walk(a),this.consequent._walk(a),this.alternative._walk(a)})}}),_a=x("Assign",null,{$documentation:"An assignment expression — `a = b + 5`"},Za),ab=x("Array","elements",{$documentation:"An array literal",$propdoc:{elements:"[AST_Node*] array of elements"},_walk:function(a){return a._visit(this,function(){this.elements.forEach(function(b){b._walk(a)})})}}),bb=x("Object","properties",{$documentation:"An object literal",$propdoc:{properties:"[AST_ObjectProperty*] array of properties"},_walk:function(a){return a._visit(this,function(){this.properties.forEach(function(b){b._walk(a)})})}}),cb=x("ObjectProperty","key value",{$documentation:"Base class for literal object properties",$propdoc:{key:"[string] the property name converted to a string for ObjectKeyVal. For setters and getters this is an arbitrary AST_Node.",value:"[AST_Node] property value. For setters and getters this is an AST_Function."},_walk:function(a){return a._visit(this,function(){this.value._walk(a)})}}),db=x("ObjectKeyVal","quote",{$documentation:"A key: value object property",$propdoc:{quote:"[string] the original quote character"}},cb),eb=x("ObjectSetter",null,{$documentation:"An object setter property"},cb),fb=x("ObjectGetter",null,{$documentation:"An object getter property"},cb),gb=x("Symbol","scope name thedef",{$propdoc:{name:"[string] name of this symbol",scope:"[AST_Scope/S] the current scope (not necessarily the definition scope)",thedef:"[SymbolDef/S] the definition of this symbol"},$documentation:"Base class for all symbols"}),hb=x("SymbolAccessor",null,{$documentation:"The name of a property accessor (setter/getter function)"},gb),ib=x("SymbolDeclaration","init",{$documentation:"A declaration symbol (symbol in var/const, function name or argument, symbol in catch)",$propdoc:{init:"[AST_Node*/S] array of initializers for this declaration."}},gb),jb=x("SymbolVar",null,{$documentation:"Symbol defining a variable"},ib),kb=x("SymbolConst",null,{$documentation:"A constant declaration"},ib),lb=x("SymbolFunarg",null,{$documentation:"Symbol naming a function argument"},jb),mb=x("SymbolDefun",null,{$documentation:"Symbol defining a function"},ib),nb=x("SymbolLambda",null,{$documentation:"Symbol naming a function expression"},ib),ob=x("SymbolCatch",null,{$documentation:"Symbol naming the exception in catch"},ib),pb=x("Label","references",{$documentation:"Symbol naming a label (declaration)",$propdoc:{references:"[AST_LoopControl*] a list of nodes referring to this label"},initialize:function(){this.references=[],this.thedef=this}},gb),qb=x("SymbolRef",null,{$documentation:"Reference to some symbol (not definition/declaration)"},gb),rb=x("LabelRef",null,{$documentation:"Reference to a label symbol"},gb),sb=x("This",null,{$documentation:"The `this` symbol"},gb),tb=x("Constant",null,{$documentation:"Base class for all constants",getValue:function(){return this.value}}),ub=x("String","value quote",{$documentation:"A string literal",$propdoc:{value:"[string] the contents of this string",quote:"[string] the original quote character"}},tb),vb=x("Number","value literal",{$documentation:"A number literal",$propdoc:{value:"[number] the numeric value",literal:"[string] numeric value as string (optional)"}},tb),wb=x("RegExp","value",{$documentation:"A regexp literal",$propdoc:{value:"[RegExp] the actual regexp"}},tb),xb=x("Atom",null,{$documentation:"Base class for atoms"},tb),yb=x("Null",null,{$documentation:"The `null` atom",value:null},xb),zb=x("NaN",null,{$documentation:"The impossible value",value:NaN},xb),Ab=x("Undefined",null,{$documentation:"The `undefined` value",value:void 0},xb),Bb=x("Hole",null,{$documentation:"A hole in an array",value:void 0},xb),Cb=x("Infinity",null,{$documentation:"The `Infinity` value",value:1/0},xb),Db=x("Boolean",null,{$documentation:"Base class for booleans"},xb),Eb=x("False",null,{$documentation:"The `false` atom",value:!1},Db),Fb=x("True",null,{$documentation:"The `true` atom",value:!0},Db);z.prototype={_visit:function(a,b){this.push(a);var c=this.visit(a,b?function(){b.call(a)}:m);return!c&&b&&b.call(a),this.pop(a),c},parent:function(a){return this.stack[this.stack.length-2-(a||0)]},push:function(a){a instanceof ta?this.directives=Object.create(this.directives):a instanceof da&&(this.directives[a.value]=!this.directives[a.value]||"up"),this.stack.push(a)},pop:function(a){this.stack.pop(),a instanceof ta&&(this.directives=Object.getPrototypeOf(this.directives))},self:function(){return this.stack[this.stack.length-1]},find_parent:function(a){for(var b=this.stack,c=b.length;--c>=0;){var d=b[c];if(d instanceof a)return d}},has_directive:function(a){var b=this.directives[a];if(b)return b;var c=this.stack[this.stack.length-1];if(c instanceof ra)for(var d=0;d0;){var d=a[--b];if(d instanceof Ea&&d.condition===c||d instanceof $a&&d.condition===c||d instanceof la&&d.condition===c||d instanceof oa&&d.condition===c||d instanceof Xa&&"!"==d.operator&&d.expression===c)return!0;if(!(d instanceof Za)||"&&"!=d.operator&&"||"!=d.operator)return!1;c=d}},loopcontrol_target:function(a){var b=this.stack;if(a)for(var c=b.length;--c>=0;){var d=b[c];if(d instanceof ja&&d.label.name==a.name)return d.body}else for(var c=b.length;--c>=0;){var d=b[c];if(d instanceof Fa||d instanceof ka)return d}}};var Gb="break case catch const continue debugger default delete do else finally for function if in instanceof new return switch throw try typeof var void while with",Hb="false null true",Ib="abstract boolean byte char class double enum export extends final float goto implements import int interface let long native package private protected public short static super synchronized this throws transient volatile yield "+Hb+" "+Gb,Jb="return new delete throw else case";Gb=t(Gb),Ib=t(Ib),Jb=t(Jb),Hb=t(Hb);var Kb=t(f("+-*&%=<>!?|~^")),Lb=/^0x[0-9a-f]+$/i,Mb=/^0[0-7]+$/,Nb=t(["in","instanceof","typeof","new","void","delete","++","--","+","-","!","~","&","|","^","*","/","%",">>","<<",">>>","<",">","<=",">=","==","===","!=","!==","?","=","+=","-=","/=","*=","%=",">>=","<<=",">>>=","|=","^=","&=","&&","||"]),Ob=t(f("  \n\r\t\f\x0B​᠎              \ufeff")),Pb=t(f("[{(,.;:")),Qb=t(f("[]{}(),;:")),Rb=t(f("gmsiy")),Sb={letter:new RegExp("[\\u0041-\\u005A\\u0061-\\u007A\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"),digit:new RegExp("[\\u0030-\\u0039\\u0660-\\u0669\\u06F0-\\u06F9\\u07C0-\\u07C9\\u0966-\\u096F\\u09E6-\\u09EF\\u0A66-\\u0A6F\\u0AE6-\\u0AEF\\u0B66-\\u0B6F\\u0BE6-\\u0BEF\\u0C66-\\u0C6F\\u0CE6-\\u0CEF\\u0D66-\\u0D6F\\u0DE6-\\u0DEF\\u0E50-\\u0E59\\u0ED0-\\u0ED9\\u0F20-\\u0F29\\u1040-\\u1049\\u1090-\\u1099\\u17E0-\\u17E9\\u1810-\\u1819\\u1946-\\u194F\\u19D0-\\u19D9\\u1A80-\\u1A89\\u1A90-\\u1A99\\u1B50-\\u1B59\\u1BB0-\\u1BB9\\u1C40-\\u1C49\\u1C50-\\u1C59\\uA620-\\uA629\\uA8D0-\\uA8D9\\uA900-\\uA909\\uA9D0-\\uA9D9\\uA9F0-\\uA9F9\\uAA50-\\uAA59\\uABF0-\\uABF9\\uFF10-\\uFF19]"),non_spacing_mark:new RegExp("[\\u0300-\\u036F\\u0483-\\u0487\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0610-\\u061A\\u064B-\\u065E\\u0670\\u06D6-\\u06DC\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0900-\\u0902\\u093C\\u0941-\\u0948\\u094D\\u0951-\\u0955\\u0962\\u0963\\u0981\\u09BC\\u09C1-\\u09C4\\u09CD\\u09E2\\u09E3\\u0A01\\u0A02\\u0A3C\\u0A41\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70\\u0A71\\u0A75\\u0A81\\u0A82\\u0ABC\\u0AC1-\\u0AC5\\u0AC7\\u0AC8\\u0ACD\\u0AE2\\u0AE3\\u0B01\\u0B3C\\u0B3F\\u0B41-\\u0B44\\u0B4D\\u0B56\\u0B62\\u0B63\\u0B82\\u0BC0\\u0BCD\\u0C3E-\\u0C40\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0CBC\\u0CBF\\u0CC6\\u0CCC\\u0CCD\\u0CE2\\u0CE3\\u0D41-\\u0D44\\u0D4D\\u0D62\\u0D63\\u0DCA\\u0DD2-\\u0DD4\\u0DD6\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB4-\\u0EB9\\u0EBB\\u0EBC\\u0EC8-\\u0ECD\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F71-\\u0F7E\\u0F80-\\u0F84\\u0F86\\u0F87\\u0F90-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102D-\\u1030\\u1032-\\u1037\\u1039\\u103A\\u103D\\u103E\\u1058\\u1059\\u105E-\\u1060\\u1071-\\u1074\\u1082\\u1085\\u1086\\u108D\\u109D\\u135F\\u1712-\\u1714\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B7-\\u17BD\\u17C6\\u17C9-\\u17D3\\u17DD\\u180B-\\u180D\\u18A9\\u1920-\\u1922\\u1927\\u1928\\u1932\\u1939-\\u193B\\u1A17\\u1A18\\u1A56\\u1A58-\\u1A5E\\u1A60\\u1A62\\u1A65-\\u1A6C\\u1A73-\\u1A7C\\u1A7F\\u1B00-\\u1B03\\u1B34\\u1B36-\\u1B3A\\u1B3C\\u1B42\\u1B6B-\\u1B73\\u1B80\\u1B81\\u1BA2-\\u1BA5\\u1BA8\\u1BA9\\u1C2C-\\u1C33\\u1C36\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE0\\u1CE2-\\u1CE8\\u1CED\\u1DC0-\\u1DE6\\u1DFD-\\u1DFF\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2CEF-\\u2CF1\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\uA66F\\uA67C\\uA67D\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA825\\uA826\\uA8C4\\uA8E0-\\uA8F1\\uA926-\\uA92D\\uA947-\\uA951\\uA980-\\uA982\\uA9B3\\uA9B6-\\uA9B9\\uA9BC\\uAA29-\\uAA2E\\uAA31\\uAA32\\uAA35\\uAA36\\uAA43\\uAA4C\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uABE5\\uABE8\\uABED\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE26]"),space_combining_mark:new RegExp("[\\u0903\\u093E-\\u0940\\u0949-\\u094C\\u094E\\u0982\\u0983\\u09BE-\\u09C0\\u09C7\\u09C8\\u09CB\\u09CC\\u09D7\\u0A03\\u0A3E-\\u0A40\\u0A83\\u0ABE-\\u0AC0\\u0AC9\\u0ACB\\u0ACC\\u0B02\\u0B03\\u0B3E\\u0B40\\u0B47\\u0B48\\u0B4B\\u0B4C\\u0B57\\u0BBE\\u0BBF\\u0BC1\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCC\\u0BD7\\u0C01-\\u0C03\\u0C41-\\u0C44\\u0C82\\u0C83\\u0CBE\\u0CC0-\\u0CC4\\u0CC7\\u0CC8\\u0CCA\\u0CCB\\u0CD5\\u0CD6\\u0D02\\u0D03\\u0D3E-\\u0D40\\u0D46-\\u0D48\\u0D4A-\\u0D4C\\u0D57\\u0D82\\u0D83\\u0DCF-\\u0DD1\\u0DD8-\\u0DDF\\u0DF2\\u0DF3\\u0F3E\\u0F3F\\u0F7F\\u102B\\u102C\\u1031\\u1038\\u103B\\u103C\\u1056\\u1057\\u1062-\\u1064\\u1067-\\u106D\\u1083\\u1084\\u1087-\\u108C\\u108F\\u109A-\\u109C\\u17B6\\u17BE-\\u17C5\\u17C7\\u17C8\\u1923-\\u1926\\u1929-\\u192B\\u1930\\u1931\\u1933-\\u1938\\u19B0-\\u19C0\\u19C8\\u19C9\\u1A19-\\u1A1B\\u1A55\\u1A57\\u1A61\\u1A63\\u1A64\\u1A6D-\\u1A72\\u1B04\\u1B35\\u1B3B\\u1B3D-\\u1B41\\u1B43\\u1B44\\u1B82\\u1BA1\\u1BA6\\u1BA7\\u1BAA\\u1C24-\\u1C2B\\u1C34\\u1C35\\u1CE1\\u1CF2\\uA823\\uA824\\uA827\\uA880\\uA881\\uA8B4-\\uA8C3\\uA952\\uA953\\uA983\\uA9B4\\uA9B5\\uA9BA\\uA9BB\\uA9BD-\\uA9C0\\uAA2F\\uAA30\\uAA33\\uAA34\\uAA4D\\uAA7B\\uABE3\\uABE4\\uABE6\\uABE7\\uABE9\\uABEA\\uABEC]"),connector_punctuation:new RegExp("[\\u005F\\u203F\\u2040\\u2054\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFF3F]")};L.prototype.toString=function(){return this.message+" (line: "+this.line+", col: "+this.col+", pos: "+this.pos+")\n\n"+this.stack};var Tb={},Ub=t(["typeof","void","delete","--","++","!","~","-","+"]),Vb=t(["--","++"]),Wb=t(["=","+=","-=","/=","*=","%=",">>=","<<=",">>>=","|=","^=","&="]),Xb=function(a,b){for(var c=0;c","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]],{}),Yb=d(["for","do","while","switch"]),Zb=d(["atom","num","string","regexp","name"]);Q.prototype=new z,function(a){function b(b,c){b.DEFMETHOD("transform",function(b,d){var e,f;return b.push(this),b.before&&(e=b.before(this,c,d)),e===a&&(b.after?(b.stack[b.stack.length-1]=e=this,c(e,b),f=b.after(e,d),f!==a&&(e=f)):(e=this,c(e,b))),b.pop(this),e})}function c(a,b){return $(a,function(a){return a.transform(b,!0)})}b(aa,m),b(ja,function(a,b){a.label=a.label.transform(b),a.body=a.body.transform(b)}),b(ea,function(a,b){a.body=a.body.transform(b)}),b(fa,function(a,b){a.body=c(a.body,b)}),b(la,function(a,b){a.condition=a.condition.transform(b),a.body=a.body.transform(b)}),b(oa,function(a,b){a.init&&(a.init=a.init.transform(b)),a.condition&&(a.condition=a.condition.transform(b)),a.step&&(a.step=a.step.transform(b)),a.body=a.body.transform(b)}),b(pa,function(a,b){a.init=a.init.transform(b),a.object=a.object.transform(b),a.body=a.body.transform(b)}),b(qa,function(a,b){a.expression=a.expression.transform(b),a.body=a.body.transform(b)}),b(ya,function(a,b){a.value&&(a.value=a.value.transform(b))}),b(Ba,function(a,b){a.label&&(a.label=a.label.transform(b))}),b(Ea,function(a,b){a.condition=a.condition.transform(b),a.body=a.body.transform(b),a.alternative&&(a.alternative=a.alternative.transform(b))}),b(Fa,function(a,b){a.expression=a.expression.transform(b),a.body=c(a.body,b)}),b(Ia,function(a,b){a.expression=a.expression.transform(b),a.body=c(a.body,b)}),b(Ja,function(a,b){a.body=c(a.body,b),a.bcatch&&(a.bcatch=a.bcatch.transform(b)),a.bfinally&&(a.bfinally=a.bfinally.transform(b))}),b(Ka,function(a,b){a.argname=a.argname.transform(b),a.body=c(a.body,b)}),b(Ma,function(a,b){a.definitions=c(a.definitions,b)}),b(Pa,function(a,b){a.name=a.name.transform(b),a.value&&(a.value=a.value.transform(b))}),b(ta,function(a,b){a.name&&(a.name=a.name.transform(b)),a.argnames=c(a.argnames,b),a.body=c(a.body,b)}),b(Qa,function(a,b){a.expression=a.expression.transform(b),a.args=c(a.args,b)}),b(Sa,function(a,b){a.car=a.car.transform(b),a.cdr=a.cdr.transform(b)}),b(Ua,function(a,b){a.expression=a.expression.transform(b)}),b(Va,function(a,b){a.expression=a.expression.transform(b),a.property=a.property.transform(b)}),b(Wa,function(a,b){a.expression=a.expression.transform(b)}),b(Za,function(a,b){a.left=a.left.transform(b),a.right=a.right.transform(b)}),b($a,function(a,b){a.condition=a.condition.transform(b),a.consequent=a.consequent.transform(b),a.alternative=a.alternative.transform(b)}),b(ab,function(a,b){a.elements=c(a.elements,b)}),b(bb,function(a,b){a.properties=c(a.properties,b)}),b(cb,function(a,b){a.value=a.value.transform(b)})}(),R.next_id=1,R.prototype={unmangleable:function(a){return a||(a={}),this.global&&!a.toplevel||this.undeclared||!a.eval&&(this.scope.uses_eval||this.scope.uses_with)||a.keep_fnames&&(this.orig[0]instanceof nb||this.orig[0]instanceof mb)},mangle:function(a){var b=a.cache&&a.cache.props;if(this.global&&b&&b.has(this.name))this.mangled_name=b.get(this.name);else if(!this.mangled_name&&!this.unmangleable(a)){var c=this.scope;!a.screw_ie8&&this.orig[0]instanceof nb&&(c=c.parent_scope),this.mangled_name=c.next_mangled(a,this),this.global&&b&&b.set(this.name,this.mangled_name)}}},sa.DEFMETHOD("figure_out_scope",function(a){a=k(a,{screw_ie8:!1,cache:null});var b=this,c=b.parent_scope=null,d=new v,e=null,f=!1,g=0,h=new z(function(b,i){if(a.screw_ie8&&b instanceof Ka){var j=c;return c=new ra(b),c.init_scope_vars(g),c.parent_scope=j,i(),c=j,!0}if(b instanceof ra){b.init_scope_vars(g);var j=b.parent_scope=c,k=e,l=d;return e=c=b,d=new v,++g,i(),--g,c=j,e=k,d=l,!0}if(b instanceof ja){var m=b.label;if(d.has(m.name))throw new Error(o("Label {name} defined twice",m));return d.set(m.name,m),i(),d.del(m.name),!0}if(b instanceof qa)for(var n=c;n;n=n.parent_scope)n.uses_with=!0;else if(b instanceof gb&&(b.scope=c),b instanceof pb&&(b.thedef=b,b.references=[]),b instanceof nb)e.def_function(b);else if(b instanceof mb)(b.scope=e.parent_scope).def_function(b);else if(b instanceof Na)f=b.has_const_pragma();else if(b instanceof jb||b instanceof kb){var p=e.def_variable(b);p.constant=b instanceof kb||f,p.init=h.parent().value}else if(b instanceof ob)(a.screw_ie8?c:e).def_variable(b);else if(b instanceof rb){var q=d.get(b.name);if(!q)throw new Error(o("Undefined label {name} [{line},{col}]",{name:b.name,line:b.start.line,col:b.start.col}));b.thedef=q}});b.walk(h);var i=null,j=b.globals=new v,h=new z(function(a,c){if(a instanceof ta){var d=i;return i=a,c(),i=d,!0}if(a instanceof Ba&&a.label)return a.label.thedef.references.push(a),!0;if(a instanceof qb){var e=a.name;if("eval"==e&&h.parent()instanceof Qa)for(var f=a.scope;f&&!f.uses_eval;f=f.parent_scope)f.uses_eval=!0;var g=a.scope.find_variable(e);if(g)a.thedef=g;else{var k;j.has(e)?k=j.get(e):(k=new R(b,j.size(),a),k.undeclared=!0,k.global=!0,j.set(e,k)),a.thedef=k,i&&"arguments"==e&&(i.uses_arguments=!0)}return a.reference(),!0}});b.walk(h),a.cache&&(this.cname=a.cache.cname)}),ra.DEFMETHOD("init_scope_vars",function(a){this.variables=new v,this.functions=new v,this.uses_with=!1,this.uses_eval=!1,this.parent_scope=null,this.enclosed=[],this.cname=-1,this.nesting=a}),ta.DEFMETHOD("init_scope_vars",function(){ra.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1;var a=new Pa({name:"arguments",start:this.start,end:this.end}),b=new R(this,this.variables.size(),a);this.variables.set(a.name,b)}),qb.DEFMETHOD("reference",function(){var a=this.definition();a.references.push(this);for(var b=this.scope;b&&(n(b.enclosed,a),b!==a.scope);)b=b.parent_scope;this.frame=this.scope.nesting-a.scope.nesting}),ra.DEFMETHOD("find_variable",function(a){return a instanceof gb&&(a=a.name),this.variables.get(a)||this.parent_scope&&this.parent_scope.find_variable(a)}),ra.DEFMETHOD("def_function",function(a){this.functions.set(a.name,this.def_variable(a))}),ra.DEFMETHOD("def_variable",function(a){var b;return this.variables.has(a.name)?(b=this.variables.get(a.name),b.orig.push(a)):(b=new R(this,this.variables.size(),a),this.variables.set(a.name,b),b.global=!this.parent_scope),a.thedef=b}),ra.DEFMETHOD("next_mangled",function(a){var b=this.enclosed;a:for(;;){var c=$b(++this.cname);if(G(c)&&!(a.except.indexOf(c)>=0)){for(var d=b.length;--d>=0;){var e=b[d],f=e.mangled_name||e.unmangleable(a)&&e.name;if(c==f)continue a}return c}}}),va.DEFMETHOD("next_mangled",function(a,b){for(var c=b.orig[0]instanceof lb&&this.name&&this.name.definition();;){var d=ta.prototype.next_mangled.call(this,a,b);if(!c||c.mangled_name!=d)return d}}),ra.DEFMETHOD("references",function(a){return a instanceof gb&&(a=a.definition()),this.enclosed.indexOf(a)<0?null:a}),gb.DEFMETHOD("unmangleable",function(a){return this.definition().unmangleable(a)}),hb.DEFMETHOD("unmangleable",function(){return!0}),pb.DEFMETHOD("unmangleable",function(){return!1}),gb.DEFMETHOD("unreferenced",function(){return 0==this.definition().references.length&&!(this.scope.uses_eval||this.scope.uses_with)}),gb.DEFMETHOD("undeclared",function(){return this.definition().undeclared}),rb.DEFMETHOD("undeclared",function(){return!1}),pb.DEFMETHOD("undeclared",function(){return!1}),gb.DEFMETHOD("definition",function(){return this.thedef}),gb.DEFMETHOD("global",function(){return this.definition().global}),Na.DEFMETHOD("has_const_pragma",function(){var a=this.start&&this.start.comments_before,b=a&&a[a.length-1];return b&&/@const\b/.test(b.value)}),sa.DEFMETHOD("_default_mangler_options",function(a){return k(a,{except:[],eval:!1,sort:!1,toplevel:!1,screw_ie8:!1,keep_fnames:!1})}),sa.DEFMETHOD("mangle_names",function(a){a=this._default_mangler_options(a),a.except.push("arguments");var b=-1,c=[];a.cache&&this.globals.each(function(b){a.except.indexOf(b.name)<0&&c.push(b)});var d=new z(function(e,f){if(e instanceof ja){var g=b;return f(),b=g,!0}if(e instanceof ra){var h=(d.parent(),[]);return e.variables.each(function(b){a.except.indexOf(b.name)<0&&h.push(b)}),void c.push.apply(c,h)}if(e instanceof pb){var i;do i=$b(++b);while(!G(i));return e.mangled_name=i,!0}if(a.screw_ie8&&e instanceof ob)return void c.push(e.definition())});this.walk(d),c.forEach(function(b){b.mangle(a)}),a.cache&&(a.cache.cname=this.cname)}),sa.DEFMETHOD("compute_char_frequency",function(a){a=this._default_mangler_options(a);var b=new z(function(b){b instanceof tb?$b.consider(b.print_to_string()):b instanceof za?$b.consider("return"):b instanceof Aa?$b.consider("throw"):b instanceof Da?$b.consider("continue"):b instanceof Ca?$b.consider("break"):b instanceof ca?$b.consider("debugger"):b instanceof da?$b.consider(b.value):b instanceof na?$b.consider("while"):b instanceof ma?$b.consider("do while"):b instanceof Ea?($b.consider("if"),b.alternative&&$b.consider("else")):b instanceof Na?$b.consider("var"):b instanceof Oa?$b.consider("const"):b instanceof ta?$b.consider("function"):b instanceof oa?$b.consider("for"):b instanceof pa?$b.consider("for in"):b instanceof Fa?$b.consider("switch"):b instanceof Ia?$b.consider("case"):b instanceof Ha?$b.consider("default"):b instanceof qa?$b.consider("with"):b instanceof eb?$b.consider("set"+b.key):b instanceof fb?$b.consider("get"+b.key):b instanceof db?$b.consider(b.key):b instanceof Ra?$b.consider("new"):b instanceof sb?$b.consider("this"):b instanceof Ja?$b.consider("try"):b instanceof Ka?$b.consider("catch"):b instanceof La?$b.consider("finally"):b instanceof gb&&b.unmangleable(a)?$b.consider(b.name):b instanceof Wa||b instanceof Za?$b.consider(b.operator):b instanceof Ua&&$b.consider(b.property); -});this.walk(b),$b.sort()});var $b=function(){function a(){d=Object.create(null),c=e.split("").map(function(a){return a.charCodeAt(0)}),c.forEach(function(a){d[a]=0})}function b(a){var b="",d=54;a++;do a--,b+=String.fromCharCode(c[a%d]),a=Math.floor(a/d),d=64;while(a>0);return b}var c,d,e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_0123456789";return b.consider=function(a){for(var b=a.length;--b>=0;){var c=a.charCodeAt(b);c in d&&++d[c]}},b.sort=function(){c=q(c,function(a,b){return B(a)&&!B(b)?1:B(b)&&!B(a)?-1:d[b]-d[a]})},b.reset=a,a(),b.get=function(){return c},b.freq=function(){return d},b}();sa.DEFMETHOD("scope_warnings",function(a){a=k(a,{undeclared:!1,unreferenced:!0,assign_to_global:!0,func_arguments:!0,nested_defuns:!0,eval:!0});var b=new z(function(c){if(a.undeclared&&c instanceof qb&&c.undeclared()&&aa.warn("Undeclared symbol: {name} [{file}:{line},{col}]",{name:c.name,file:c.start.file,line:c.start.line,col:c.start.col}),a.assign_to_global){var d=null;c instanceof _a&&c.left instanceof qb?d=c.left:c instanceof pa&&c.init instanceof qb&&(d=c.init),d&&(d.undeclared()||d.global()&&d.scope!==d.definition().scope)&&aa.warn("{msg}: {name} [{file}:{line},{col}]",{msg:d.undeclared()?"Accidental global?":"Assignment to global",name:d.name,file:d.start.file,line:d.start.line,col:d.start.col})}a.eval&&c instanceof qb&&c.undeclared()&&"eval"==c.name&&aa.warn("Eval is used [{file}:{line},{col}]",c.start),a.unreferenced&&(c instanceof ib||c instanceof pb)&&!(c instanceof ob)&&c.unreferenced()&&aa.warn("{type} {name} is declared but not referenced [{file}:{line},{col}]",{type:c instanceof pb?"Label":"Symbol",name:c.name,file:c.start.file,line:c.start.line,col:c.start.col}),a.func_arguments&&c instanceof ta&&c.uses_arguments&&aa.warn("arguments used in function {name} [{file}:{line},{col}]",{name:c.name?c.name.name:"anonymous",file:c.start.file,line:c.start.line,col:c.start.col}),a.nested_defuns&&c instanceof wa&&!(b.parent()instanceof ra)&&aa.warn('Function {name} declared in nested statement "{type}" [{file}:{line},{col}]',{name:c.name.name,type:b.parent().TYPE,file:c.start.file,line:c.start.line,col:c.start.col})});this.walk(b)});var _b=/^$|[;{][\s\n]*$/;!function(){function a(a,b){a.DEFMETHOD("_codegen",b)}function b(a,c){Array.isArray(a)?a.forEach(function(a){b(a,c)}):a.DEFMETHOD("needs_parens",c)}function c(a,b,c,d){var e=a.length-1;r=d,a.forEach(function(a,d){r!==!0||a instanceof da||a instanceof ha||a instanceof ea&&a.body instanceof ub||(r=!1),a instanceof ha||(c.indent(),a.print(c),d==e&&b||(c.newline(),b&&c.newline())),r===!0&&a instanceof ea&&a.body instanceof ub&&(r=!1)}),r=!1}function d(a,b,d){a.length>0?b.with_block(function(){c(a,!1,b,d)}):b.print("{}")}function e(a,b){if(b.option("bracketize"))return void n(a.body,b);if(!a.body)return b.force_semicolon();if(a.body instanceof ma&&!b.option("screw_ie8"))return void n(a.body,b);for(var c=a.body;;)if(c instanceof Ea){if(!c.alternative)return void n(a.body,b);c=c.alternative}else{if(!(c instanceof ia))break;c=c.body}h(a.body,b)}function f(a,b,c){if(c)try{a.walk(new z(function(a){if(a instanceof Za&&"in"==a.operator)throw b})),a.print(b)}catch(d){if(d!==b)throw d;a.print(b,!0)}else a.print(b)}function g(a){return[92,47,46,43,42,63,40,41,91,93,123,125,36,94,58,124,33,10,13,0,65279,8232,8233].indexOf(a)<0}function h(a,b){b.option("bracketize")?!a||a instanceof ha?b.print("{}"):a instanceof ga?a.print(b):b.with_block(function(){b.indent(),a.print(b),b.newline()}):!a||a instanceof ha?b.force_semicolon():a.print(b)}function i(a){for(var b=a.stack(),c=b.length,d=b[--c],e=b[--c];c>0;){if(e instanceof ba&&e.body===d)return!0;if(!(e instanceof Sa&&e.car===d||e instanceof Qa&&e.expression===d&&!(e instanceof Ra)||e instanceof Ua&&e.expression===d||e instanceof Va&&e.expression===d||e instanceof $a&&e.condition===d||e instanceof Za&&e.left===d||e instanceof Ya&&e.expression===d))return!1;d=e,e=b[--c]}}function j(a,b){return a.args.length>0||b.option("beautify")}function k(a){for(var b=a[0],c=b.length,d=1;d=0?d.push("0x"+a.toString(16).toLowerCase(),"0"+a.toString(8)):d.push("-0x"+(-a).toString(16).toLowerCase(),"-0"+(-a).toString(8)),(b=/^(.*?)(0+)$/.exec(a))&&d.push(b[1]+"e"+b[2].length)):(b=/^0?\.(0+)(.*)$/.exec(a))&&d.push(b[2]+"e-"+(b[1].length+b[2].length),c.substr(c.indexOf("."))),k(d)}function n(a,b){return a instanceof ga?void a.print(b):void b.with_block(function(){b.indent(),a.print(b),b.newline()})}function o(a,b){a.DEFMETHOD("add_source_map",function(a){b(this,a)})}function p(a,b){b.add_mapping(a.start)}var q=!1,r=!1;aa.DEFMETHOD("print",function(a,b){function c(){d.add_comments(a),d.add_source_map(a),e(d,a)}var d=this,e=d._codegen,f=q;d instanceof da&&"use asm"==d.value&&a.parent()instanceof ra&&(q=!0),a.push_node(d),b||d.needs_parens(a)?a.with_parens(c):c(),a.pop_node(),d instanceof ra&&(q=f)}),aa.DEFMETHOD("print_to_string",function(a){var b=S(a);return a||(b._readonly=!0),this.print(b),b.get()}),aa.DEFMETHOD("add_comments",function(a){if(!a._readonly){var b=a.option("comments"),c=this,d=c.start;if(d&&!d._comments_dumped){d._comments_dumped=!0;var e=d.comments_before||[];c instanceof ya&&c.value&&c.value.walk(new z(function(a){if(a.start&&a.start.comments_before&&(e=e.concat(a.start.comments_before),a.start.comments_before=[]),a instanceof va||a instanceof ab||a instanceof bb)return!0})),b?b.test?e=e.filter(function(a){return"comment5"==a.type||b.test(a.value)}):"function"==typeof b&&(e=e.filter(function(a){return"comment5"==a.type||b(c,a)})):e=e.filter(function(a){return"comment5"==a.type}),!a.option("beautify")&&e.length>0&&/comment[134]/.test(e[0].type)&&0!==a.col()&&e[0].nlb&&a.print("\n"),e.forEach(function(b){/comment[134]/.test(b.type)?(a.print("//"+b.value+"\n"),a.indent()):"comment2"==b.type?(a.print("/*"+b.value+"*/"),d.nlb?(a.print("\n"),a.indent()):a.space()):0===a.pos()&&"comment5"==b.type&&a.option("shebang")&&(a.print("#!"+b.value+"\n"),a.indent())})}}}),b(aa,function(){return!1}),b(va,function(a){return i(a)}),b(bb,function(a){return i(a)}),b([Wa,Ab],function(a){var b=a.parent();return b instanceof Ta&&b.expression===this||b instanceof Ra}),b(Sa,function(a){var b=a.parent();return b instanceof Qa||b instanceof Wa||b instanceof Za||b instanceof Pa||b instanceof Ta||b instanceof ab||b instanceof cb||b instanceof $a}),b(Za,function(a){var b=a.parent();if(b instanceof Qa&&b.expression===this)return!0;if(b instanceof Wa)return!0;if(b instanceof Ta&&b.expression===this)return!0;if(b instanceof Za){var c=b.operator,d=Xb[c],e=this.operator,f=Xb[e];if(d>f||d==f&&this===b.right)return!0}}),b(Ta,function(a){var b=a.parent();if(b instanceof Ra&&b.expression===this)try{this.walk(new z(function(a){if(a instanceof Qa)throw b}))}catch(c){if(c!==b)throw c;return!0}}),b(Qa,function(a){var b,c=a.parent();return c instanceof Ra&&c.expression===this||this.expression instanceof va&&c instanceof Ta&&c.expression===this&&(b=a.parent(1))instanceof _a&&b.left===c}),b(Ra,function(a){var b=a.parent();if(!j(this,a)&&(b instanceof Ta||b instanceof Qa&&b.expression===this))return!0}),b(vb,function(a){var b=a.parent();if(b instanceof Ta&&b.expression===this){var c=this.getValue();if(c<0||/^0/.test(l(c)))return!0}}),b([_a,$a],function(a){var b=a.parent();return b instanceof Wa||(b instanceof Za&&!(b instanceof _a)||(b instanceof Qa&&b.expression===this||(b instanceof $a&&b.condition===this||(b instanceof Ta&&b.expression===this||void 0))))}),a(da,function(a,b){b.print_string(a.value,a.quote),b.semicolon()}),a(ca,function(a,b){b.print("debugger"),b.semicolon()}),ia.DEFMETHOD("_do_print_body",function(a){h(this.body,a)}),a(ba,function(a,b){a.body.print(b),b.semicolon()}),a(sa,function(a,b){c(a.body,!0,b,!0),b.print("")}),a(ja,function(a,b){a.label.print(b),b.colon(),a.body.print(b)}),a(ea,function(a,b){a.body.print(b),b.semicolon()}),a(ga,function(a,b){d(a.body,b)}),a(ha,function(a,b){b.semicolon()}),a(ma,function(a,b){b.print("do"),b.space(),a._do_print_body(b),b.space(),b.print("while"),b.space(),b.with_parens(function(){a.condition.print(b)}),b.semicolon()}),a(na,function(a,b){b.print("while"),b.space(),b.with_parens(function(){a.condition.print(b)}),b.space(),a._do_print_body(b)}),a(oa,function(a,b){b.print("for"),b.space(),b.with_parens(function(){!a.init||a.init instanceof ha?b.print(";"):(a.init instanceof Ma?a.init.print(b):f(a.init,b,!0),b.print(";"),b.space()),a.condition?(a.condition.print(b),b.print(";"),b.space()):b.print(";"),a.step&&a.step.print(b)}),b.space(),a._do_print_body(b)}),a(pa,function(a,b){b.print("for"),b.space(),b.with_parens(function(){a.init.print(b),b.space(),b.print("in"),b.space(),a.object.print(b)}),b.space(),a._do_print_body(b)}),a(qa,function(a,b){b.print("with"),b.space(),b.with_parens(function(){a.expression.print(b)}),b.space(),a._do_print_body(b)}),ta.DEFMETHOD("_do_print",function(a,b){var c=this;b||a.print("function"),c.name&&(a.space(),c.name.print(a)),a.with_parens(function(){c.argnames.forEach(function(b,c){c&&a.comma(),b.print(a)})}),a.space(),d(c.body,a,!0)}),a(ta,function(a,b){a._do_print(b)}),ya.DEFMETHOD("_do_print",function(a,b){a.print(b),this.value&&(a.space(),this.value.print(a)),a.semicolon()}),a(za,function(a,b){a._do_print(b,"return")}),a(Aa,function(a,b){a._do_print(b,"throw")}),Ba.DEFMETHOD("_do_print",function(a,b){a.print(b),this.label&&(a.space(),this.label.print(a)),a.semicolon()}),a(Ca,function(a,b){a._do_print(b,"break")}),a(Da,function(a,b){a._do_print(b,"continue")}),a(Ea,function(a,b){b.print("if"),b.space(),b.with_parens(function(){a.condition.print(b)}),b.space(),a.alternative?(e(a,b),b.space(),b.print("else"),b.space(),h(a.alternative,b)):a._do_print_body(b)}),a(Fa,function(a,b){b.print("switch"),b.space(),b.with_parens(function(){a.expression.print(b)}),b.space(),a.body.length>0?b.with_block(function(){a.body.forEach(function(a,c){c&&b.newline(),b.indent(!0),a.print(b)})}):b.print("{}")}),Ga.DEFMETHOD("_do_print_body",function(a){this.body.length>0&&(a.newline(),this.body.forEach(function(b){a.indent(),b.print(a),a.newline()}))}),a(Ha,function(a,b){b.print("default:"),a._do_print_body(b)}),a(Ia,function(a,b){b.print("case"),b.space(),a.expression.print(b),b.print(":"),a._do_print_body(b)}),a(Ja,function(a,b){b.print("try"),b.space(),d(a.body,b),a.bcatch&&(b.space(),a.bcatch.print(b)),a.bfinally&&(b.space(),a.bfinally.print(b))}),a(Ka,function(a,b){b.print("catch"),b.space(),b.with_parens(function(){a.argname.print(b)}),b.space(),d(a.body,b)}),a(La,function(a,b){b.print("finally"),b.space(),d(a.body,b)}),Ma.DEFMETHOD("_do_print",function(a,b){a.print(b),a.space(),this.definitions.forEach(function(b,c){c&&a.comma(),b.print(a)});var c=a.parent(),d=c instanceof oa||c instanceof pa,e=d&&c.init===this;e||a.semicolon()}),a(Na,function(a,b){a._do_print(b,"var")}),a(Oa,function(a,b){a._do_print(b,"const")}),a(Pa,function(a,b){if(a.name.print(b),a.value){b.space(),b.print("="),b.space();var c=b.parent(1),d=c instanceof oa||c instanceof pa;f(a.value,b,d)}}),a(Qa,function(a,b){a.expression.print(b),a instanceof Ra&&!j(a,b)||b.with_parens(function(){a.args.forEach(function(a,c){c&&b.comma(),a.print(b)})})}),a(Ra,function(a,b){b.print("new"),b.space(),Qa.prototype._codegen(a,b)}),Sa.DEFMETHOD("_do_print",function(a){this.car.print(a),this.cdr&&(a.comma(),a.should_break()&&(a.newline(),a.indent()),this.cdr.print(a))}),a(Sa,function(a,b){a._do_print(b)}),a(Ua,function(a,b){var c=a.expression;c.print(b),c instanceof vb&&c.getValue()>=0&&(/[xa-f.)]/i.test(b.last())||b.print(".")),b.print("."),b.add_mapping(a.end),b.print_name(a.property)}),a(Va,function(a,b){a.expression.print(b),b.print("["),a.property.print(b),b.print("]")}),a(Xa,function(a,b){var c=a.operator;b.print(c),(/^[a-z]/i.test(c)||/[+-]$/.test(c)&&a.expression instanceof Xa&&/^[+-]/.test(a.expression.operator))&&b.space(),a.expression.print(b)}),a(Ya,function(a,b){a.expression.print(b),b.print(a.operator)}),a(Za,function(a,b){var c=a.operator;a.left.print(b),">"==c[0]&&a.left instanceof Ya&&"--"==a.left.operator?b.print(" "):b.space(),b.print(c),("<"==c||"<<"==c)&&a.right instanceof Xa&&"!"==a.right.operator&&a.right.expression instanceof Xa&&"--"==a.right.expression.operator?b.print(" "):b.space(),a.right.print(b)}),a($a,function(a,b){a.condition.print(b),b.space(),b.print("?"),b.space(),a.consequent.print(b),b.space(),b.colon(),a.alternative.print(b)}),a(ab,function(a,b){b.with_square(function(){var c=a.elements,d=c.length;d>0&&b.space(),c.forEach(function(a,c){c&&b.comma(),a.print(b),c===d-1&&a instanceof Bb&&b.comma()}),d>0&&b.space()})}),a(bb,function(a,b){a.properties.length>0?b.with_block(function(){a.properties.forEach(function(a,c){c&&(b.print(","),b.newline()),b.indent(),a.print(b)}),b.newline()}):b.print("{}")}),a(db,function(a,b){var c=a.key,d=a.quote;b.option("quote_keys")?b.print_string(c+""):("number"==typeof c||!b.option("beautify")&&+c+""==c)&&parseFloat(c)>=0?b.print(l(c)):(Ib(c)?b.option("screw_ie8"):J(c))?d&&b.option("keep_quoted_props")?b.print_string(c,d):b.print_name(c):b.print_string(c,d),b.colon(),a.value.print(b)}),a(eb,function(a,b){b.print("set"),b.space(),a.key.print(b),a.value._do_print(b,!0)}),a(fb,function(a,b){b.print("get"),b.space(),a.key.print(b),a.value._do_print(b,!0)}),a(gb,function(a,b){var c=a.definition();b.print_name(c?c.mangled_name||c.name:a.name)}),a(Ab,function(a,b){b.print("void 0")}),a(Bb,m),a(Cb,function(a,b){b.print("Infinity")}),a(zb,function(a,b){b.print("NaN")}),a(sb,function(a,b){b.print("this")}),a(tb,function(a,b){b.print(a.getValue())}),a(ub,function(a,b){b.print_string(a.getValue(),a.quote,r)}),a(vb,function(a,b){q&&a.start&&null!=a.start.raw?b.print(a.start.raw):b.print(l(a.getValue()))}),a(wb,function(a,b){var c=a.getValue().toString();b.option("ascii_only")?c=b.to_ascii(c):b.option("unescape_regexps")&&(c=c.split("\\\\").map(function(a){return a.replace(/\\u[0-9a-fA-F]{4}|\\x[0-9a-fA-F]{2}/g,function(a){var b=parseInt(a.substr(2),16);return g(b)?String.fromCharCode(b):a})}).join("\\\\")),b.print(c);var d=b.parent();d instanceof Za&&/^in/.test(d.operator)&&d.left===a&&b.print(" ")}),o(aa,m),o(da,p),o(ca,p),o(gb,p),o(xa,p),o(ia,p),o(ja,m),o(ta,p),o(Fa,p),o(Ga,p),o(ga,p),o(sa,m),o(Ra,p),o(Ja,p),o(Ka,p),o(La,p),o(Ma,p),o(tb,p),o(eb,function(a,b){b.add_mapping(a.start,a.key.name)}),o(fb,function(a,b){b.add_mapping(a.start,a.key.name)}),o(cb,function(a,b){b.add_mapping(a.start,a.key)})}(),T.prototype=new Q,l(T.prototype,{option:function(a){return this.options[a]},compress:function(a){for(var b=+this.options.passes||1,c=0;c0&&a.clear_opt_flags(),a=a.transform(this);return a},warn:function(a,b){if(this.options.warnings){var c=o(a,b);c in this.warnings_produced||(this.warnings_produced[c]=!0,aa.warn.apply(aa,arguments))}},clear_warnings:function(){this.warnings_produced={}},before:function(a,b,c){if(a._squeezed)return a;var d=!1;return a instanceof ra&&(a=a.hoist_declarations(this),d=!0),b(a,this),a=a.optimize(this),d&&a instanceof ra&&(a.drop_unused(this),b(a,this)),a._squeezed=!0,a}}),function(){function a(a,b){a.DEFMETHOD("optimize",function(a){var c=this;if(c._optimized)return c;if(a.has_directive("use asm"))return c;var d=b(c,a);return d._optimized=!0,d===c?d:d.transform(a)})}function b(a,b,c){return c||(c={}),b&&(c.start||(c.start=b.start),c.end||(c.end=b.end)),new a(c)}function c(a,c,d){if(c instanceof aa)return c.transform(a);switch(typeof c){case"string":return b(ub,d,{value:c}).optimize(a);case"number":return isNaN(c)?b(zb,d):1/c<0?b(Xa,d,{operator:"-",expression:b(vb,null,{value:-c})}):b(vb,d,{value:c}).optimize(a);case"boolean":return b(c?Fb:Eb,d).optimize(a);case"undefined":return b(Ab,d).optimize(a);default:if(null===c)return b(yb,d,{value:null}).optimize(a);if(c instanceof RegExp)return b(wb,d,{value:c}).optimize(a);throw new Error(o("Can't handle constant of type: {type}",{type:typeof c}))}}function d(a,c,d){return a instanceof Qa&&a.expression===c&&(d instanceof Ta||d instanceof qb&&"eval"===d.name)?b(Sa,c,{car:b(vb,c,{value:0}),cdr:d}):d}function e(a){if(null===a)return[];if(a instanceof ga)return a.body;if(a instanceof ha)return[];if(a instanceof ba)return[a];throw new Error("Can't convert thing to statement array")}function f(a){return null===a||(a instanceof ha||a instanceof ga&&0==a.body.length)}function i(a){return a instanceof Fa?a:(a instanceof oa||a instanceof pa||a instanceof la)&&a.body instanceof ga?a.body:a}function j(a,c){function f(a,c){function e(a,b){return a instanceof qb&&(b instanceof _a&&a===b.left||b instanceof Wa&&b.expression===a&&("++"==b.operator||"--"==b.operator))}function g(f,g,j){if(e(f,g))return f;var m=d(g,f,t.value);return t.value=null,n.splice(s,1),0===n.length&&(a[l]=b(ha,h),i=!0),k.clear_opt_flags(),c.warn("Replacing "+(j?"constant":"variable")+" "+v+" [{file}:{line},{col}]",f.start),u=!0,m}for(var h=c.self(),i=!1,j=a.length;--j>=0;){var k=a[j];if(!(k instanceof Ma)){if([k,k.body,k.alternative,k.bcatch,k.bfinally].forEach(function(a){a&&a.body&&f(a.body,c)}),j<=0)break;var l=j-1,m=a[l];if(m instanceof Ma){var n=m.definitions;if(null!=n)for(var o={},p=!1,q=!1,r={},s=n.length;--s>=0;){var t=n[s];if(null==t.value)break;var v=t.name.name;if(!v||!v.length)break;if(v in o)break;o[v]=!0;var w=h.find_variable&&h.find_variable(v);if(w&&w.references&&1===w.references.length&&"arguments"!=v){var x=w.references[0];if(x.scope.uses_eval||x.scope.uses_with)break;if(t.value instanceof wb||!t.value.is_constant(c)){if(!(p|=q))if(x.scope===h){var y=new z(function(a){a instanceof qb&&e(a,y.parent())&&(r[a.name]=q=!0)});t.value.walk(y);var A=!1,B=new Q(function(a){if(A)return a;var b=B.parent();return a instanceof ta||a instanceof Ja||a instanceof qa||a instanceof Ia||a instanceof ka||b instanceof Ea&&a!==b.condition||b instanceof $a&&a!==b.condition||b instanceof Za&&("&&"==b.operator||"||"==b.operator)&&a===b.right||b instanceof Fa&&a!==b.expression?(p=A=!0,a):void 0},function(a){return A?a:a===x?(A=!0,g(a,B.parent(),!1)):(p|=a.has_side_effects(c))?(A=!0,a):q&&a instanceof qb&&a.name in r?(p=!0,A=!0,a):void 0});k.transform(B)}else p|=t.value.has_side_effects(c)}else{var C=new Q(function(a){if(a===x)return g(a,C.parent(),!0)});k.transform(C)}}else p=!0}}}}if(i)for(var D=a.length;--D>=0;)a.length>1&&a[D]instanceof ha&&a.splice(D,1);return a}function g(a){function d(a){return/@ngInject/.test(a.value)}function e(a){return a.argnames.map(function(a){return b(ub,a,{value:a.name})})}function f(a,c){return b(ab,a,{elements:c})}function g(a,c){return b(ea,a,{body:b(_a,a,{operator:"=",left:b(Ua,c,{expression:b(qb,c,c),property:"$inject"}),right:f(a,e(a))})})}function h(a){a&&a.args&&(a.args.forEach(function(a,b,c){var g=a.start.comments_before;a instanceof ta&&g.length&&d(g[0])&&(c[b]=f(a,e(a).concat(a)))}),a.expression&&a.expression.expression&&h(a.expression.expression))}return a.reduce(function(a,b){if(a.push(b),b.body&&b.body.args)h(b.body);else{var e=b.start,f=e.comments_before;if(f&&f.length>0){var i=f.pop();d(i)&&(b instanceof wa?a.push(g(b,b.name)):b instanceof Ma?b.definitions.forEach(function(b){b.value&&b.value instanceof ta&&a.push(g(b.value,b.name))}):c.warn("Unknown statement marked with @ngInject [{file}:{line},{col}]",e))}}return a},[])}function h(a){var b=[];return a.reduce(function(a,c){return c instanceof ga?(u=!0,a.push.apply(a,h(c.body))):c instanceof ha?u=!0:c instanceof da?b.indexOf(c.value)<0?(a.push(c),b.push(c.value)):u=!0:a.push(c),a},[])}function j(a,c){function d(a){for(var b=0,c=a.length;--c>=0;){var d=a[c];if(d instanceof Ea&&d.body instanceof za&&++b>1)return!0}return!1}var f=c.self(),g=d(a),h=f instanceof ta,j=[];a:for(var l=a.length;--l>=0;){var m=a[l];switch(!0){case h&&m instanceof za&&!m.value&&0==j.length:u=!0;continue a;case m instanceof Ea:if(m.body instanceof za){if((h&&0==j.length||j[0]instanceof za&&!j[0].value)&&!m.body.value&&!m.alternative){u=!0;var o=b(ea,m.condition,{body:m.condition});j.unshift(o);continue a}if(j[0]instanceof za&&m.body.value&&j[0].value&&!m.alternative){u=!0,m=m.clone(),m.alternative=j[0],j[0]=m.transform(c);continue a}if(g&&(0==j.length||j[0]instanceof za)&&m.body.value&&!m.alternative&&h){u=!0,m=m.clone(),m.alternative=j[0]||b(za,m,{value:b(Ab,m)}),j[0]=m.transform(c);continue a}if(!m.body.value&&h){u=!0,m=m.clone(),m.condition=m.condition.negate(c);var q=e(m.alternative).concat(j),r=k(q);m.body=b(ga,m,{body:q}),m.alternative=null,j=r.concat([m.transform(c)]);continue a}if(c.option("sequences")&&1==j.length&&h&&j[0]instanceof ea&&(!m.alternative||m.alternative instanceof ea)){u=!0,j.push(b(za,j[0],{value:b(Ab,j[0])}).transform(c)),j=e(m.alternative).concat(j),j.unshift(m);continue a}}var s=n(m.body),t=s instanceof Ba?c.loopcontrol_target(s.label):null;if(s&&(s instanceof za&&!s.value&&h||s instanceof Da&&f===i(t)||s instanceof Ca&&t instanceof ga&&f===t)){s.label&&p(s.label.thedef.references,s),u=!0;var q=e(m.body).slice(0,-1);m=m.clone(),m.condition=m.condition.negate(c),m.body=b(ga,m,{body:e(m.alternative).concat(j)}),m.alternative=b(ga,m,{body:q}),j=[m.transform(c)];continue a}var s=n(m.alternative),t=s instanceof Ba?c.loopcontrol_target(s.label):null;if(s&&(s instanceof za&&!s.value&&h||s instanceof Da&&f===i(t)||s instanceof Ca&&t instanceof ga&&f===t)){s.label&&p(s.label.thedef.references,s),u=!0,m=m.clone(),m.body=b(ga,m.body,{body:e(m.body).concat(j)}),m.alternative=b(ga,m.alternative,{body:e(m.alternative).slice(0,-1)}),j=[m.transform(c)];continue a}j.unshift(m);break;default:j.unshift(m)}}return j}function m(a,b){var c=!1,d=a.length,e=b.self();return a=a.reduce(function(a,d){if(c)l(b,d,a);else{if(d instanceof Ba){var f=b.loopcontrol_target(d.label);d instanceof Ca&&f instanceof ga&&i(f)===e||d instanceof Da&&i(f)===e?d.label&&p(d.label.thedef.references,d):a.push(d)}else a.push(d);n(d)&&(c=!0)}return a},[]),u=a.length!=d,a}function o(a,c){function d(){e=Sa.from_array(e),e&&f.push(b(ea,e,{body:e})),e=[]}if(a.length<2)return a;var e=[],f=[];return a.forEach(function(a){a instanceof ea&&q(e)<2e3?e.push(a.body):(d(),f.push(a))}),d(),f=r(f,c),u=f.length!=a.length,f}function q(a){for(var b=0,c=0;c0);return c.option("negate_iife")&&t(a,c),a}function k(a){for(var b=[],c=a.length-1;c>=0;--c){var d=a[c];d instanceof wa&&(a.splice(c,1),b.unshift(d))}return b}function l(a,b,c){b instanceof wa||a.warn("Dropping unreachable code [{file}:{line},{col}]",b.start),b.walk(new z(function(b){return b instanceof Ma?(a.warn("Declarations in unreachable code! [{file}:{line},{col}]",b.start),b.remove_initializers(),c.push(b),!0):b instanceof wa?(c.push(b),!0):b instanceof ra||void 0}))}function m(a,b){return a.print_to_string().length>b.print_to_string().length?b:a}function n(a){return a&&a.aborts()}function r(a,c){function d(d){d=e(d),a.body instanceof ga?(a.body=a.body.clone(),a.body.body=d.concat(a.body.body.slice(1)),a.body=a.body.transform(c)):a.body=b(ga,a.body,{body:d}).transform(c),r(a,c)}var f=a.body instanceof ga?a.body.body[0]:a.body;f instanceof Ea&&(f.body instanceof Ca&&c.loopcontrol_target(f.body.label)===a?(a.condition?a.condition=b(Za,a.condition,{left:a.condition,operator:"&&",right:f.condition.negate(c)}):a.condition=f.condition.negate(c),d(f.alternative)):f.alternative instanceof Ca&&c.loopcontrol_target(f.alternative.label)===a&&(a.condition?a.condition=b(Za,a.condition,{left:a.condition,operator:"&&",right:f.condition}):a.condition=f.condition,d(f.body)))}function s(a,b){var c=b.option("pure_getters");b.options.pure_getters=!1;var d=a.has_side_effects(b);return b.options.pure_getters=c,d}function x(a,c){return c.option("booleans")&&c.in_boolean_context()&&!a.has_side_effects(c)?b(Fb,a):a}a(aa,function(a,b){return a}),aa.DEFMETHOD("equivalent_to",function(a){return this.print_to_string()==a.print_to_string()}),aa.DEFMETHOD("clear_opt_flags",function(){this.walk(new z(function(a){a instanceof da||a instanceof tb||(a._squeezed=!1,a._optimized=!1)}))}),function(a){var b=["!","delete"],c=["in","instanceof","==","!=","===","!==","<","<=",">=",">"];a(aa,function(){return!1}),a(Xa,function(){return g(this.operator,b)}),a(Za,function(){return g(this.operator,c)||("&&"==this.operator||"||"==this.operator)&&this.left.is_boolean()&&this.right.is_boolean()}),a($a,function(){return this.consequent.is_boolean()&&this.alternative.is_boolean()}),a(_a,function(){return"="==this.operator&&this.right.is_boolean()}),a(Sa,function(){return this.cdr.is_boolean()}),a(Fb,function(){return!0}),a(Eb,function(){return!0})}(function(a,b){a.DEFMETHOD("is_boolean",b)}),function(a){a(aa,function(){return!1}),a(ub,function(){return!0}),a(Xa,function(){return"typeof"==this.operator}),a(Za,function(a){return"+"==this.operator&&(this.left.is_string(a)||this.right.is_string(a))}),a(_a,function(a){return("="==this.operator||"+="==this.operator)&&this.right.is_string(a)}),a(Sa,function(a){return this.cdr.is_string(a)}),a($a,function(a){return this.consequent.is_string(a)&&this.alternative.is_string(a)}),a(Qa,function(a){return a.option("unsafe")&&this.expression instanceof qb&&"String"==this.expression.name&&this.expression.undeclared()})}(function(a,b){a.DEFMETHOD("is_string",b)}),function(a){function b(a,b){if(!b)throw new Error("Compressor must be passed");return a._eval(b)}aa.DEFMETHOD("evaluate",function(b){if(!b.option("evaluate"))return[this];try{var d=this._eval(b);return[m(c(b,d,this),this),d]}catch(e){if(e!==a)throw e;return[this]}}),aa.DEFMETHOD("is_constant",function(a){return this instanceof tb||this instanceof Xa&&"!"==this.operator&&this.expression instanceof tb||this.evaluate(a).length>1}),aa.DEFMETHOD("constant_value",function(a){if(this instanceof tb)return this.value;if(this instanceof Xa&&"!"==this.operator&&this.expression instanceof tb)return!this.expression.value;var b=this.evaluate(a);return b.length>1?b[1]:void 0}),a(ba,function(){throw new Error(o("Cannot evaluate a statement [{file}:{line},{col}]",this.start))}),a(va,function(){throw a}),a(aa,function(){throw a}),a(tb,function(){return this.getValue()}),a(Xa,function(c){var d=this.expression;switch(this.operator){case"!":return!b(d,c);case"typeof":if(d instanceof va)return"function";if(d=b(d,c),d instanceof RegExp)throw a;return typeof d;case"void":return void b(d,c);case"~":return~b(d,c);case"-":return-b(d,c);case"+":return+b(d,c)}throw a}),a(Za,function(c){var d,e=this.left,f=this.right;switch(this.operator){case"&&":d=b(e,c)&&b(f,c);break;case"||":d=b(e,c)||b(f,c);break;case"|":d=b(e,c)|b(f,c);break;case"&":d=b(e,c)&b(f,c);break;case"^":d=b(e,c)^b(f,c);break;case"+":d=b(e,c)+b(f,c);break;case"*":d=b(e,c)*b(f,c);break;case"/":d=b(e,c)/b(f,c);break;case"%":d=b(e,c)%b(f,c);break;case"-":d=b(e,c)-b(f,c);break;case"<<":d=b(e,c)<>":d=b(e,c)>>b(f,c);break;case">>>":d=b(e,c)>>>b(f,c);break;case"==":d=b(e,c)==b(f,c);break;case"===":d=b(e,c)===b(f,c);break;case"!=":d=b(e,c)!=b(f,c);break;case"!==":d=b(e,c)!==b(f,c);break;case"<":d=b(e,c)":d=b(e,c)>b(f,c);break;case">=":d=b(e,c)>=b(f,c);break;default:throw a}if(isNaN(d)&&c.find_parent(qa))throw a;return d}),a($a,function(a){return b(this.condition,a)?b(this.consequent,a):b(this.alternative,a)}),a(qb,function(c){if(this._evaluating)throw a;this._evaluating=!0;try{var d=this.definition();if(d&&d.constant&&d.init)return b(d.init,c)}finally{this._evaluating=!1}throw a}),a(Ua,function(c){if(c.option("unsafe")&&"length"==this.property){var d=b(this.expression,c);if("string"==typeof d)return d.length}throw a})}(function(a,b){a.DEFMETHOD("_eval",b)}),function(a){function c(a){return b(Xa,a,{operator:"!",expression:a})}a(aa,function(){return c(this)}),a(ba,function(){throw new Error("Cannot negate a statement")}),a(va,function(){return c(this)}),a(Xa,function(){return"!"==this.operator?this.expression:c(this)}),a(Sa,function(a){var b=this.clone();return b.cdr=b.cdr.negate(a),b}),a($a,function(a){var b=this.clone();return b.consequent=b.consequent.negate(a),b.alternative=b.alternative.negate(a),m(c(this),b)}),a(Za,function(a){var b=this.clone(),d=this.operator;if(a.option("unsafe_comps"))switch(d){case"<=":return b.operator=">",b;case"<":return b.operator=">=",b;case">=":return b.operator="<",b;case">":return b.operator="<=",b}switch(d){case"==":return b.operator="!=",b;case"!=":return b.operator="==",b;case"===":return b.operator="!==",b;case"!==":return b.operator="===",b;case"&&":return b.operator="||",b.left=b.left.negate(a),b.right=b.right.negate(a),m(c(this),b);case"||":return b.operator="&&",b.left=b.left.negate(a),b.right=b.right.negate(a),m(c(this),b)}return c(this)})}(function(a,b){a.DEFMETHOD("negate",function(a){return b.call(this,a)})}),function(a){a(aa,function(a){return!0}),a(ha,function(a){return!1}),a(tb,function(a){return!1}),a(sb,function(a){return!1}),a(Qa,function(a){var b=a.option("pure_funcs");return!b||("function"==typeof b?b(this):b.indexOf(this.expression.print_to_string())<0)}),a(fa,function(a){for(var b=this.body.length;--b>=0;)if(this.body[b].has_side_effects(a))return!0;return!1}),a(ea,function(a){return this.body.has_side_effects(a)}),a(wa,function(a){return!0}),a(va,function(a){return!1}),a(Za,function(a){return this.left.has_side_effects(a)||this.right.has_side_effects(a)}),a(_a,function(a){return!0}),a($a,function(a){return this.condition.has_side_effects(a)||this.consequent.has_side_effects(a)||this.alternative.has_side_effects(a)}),a(Wa,function(a){return"delete"==this.operator||"++"==this.operator||"--"==this.operator||this.expression.has_side_effects(a)}),a(qb,function(a){return this.global()&&this.undeclared()}),a(bb,function(a){for(var b=this.properties.length;--b>=0;)if(this.properties[b].has_side_effects(a))return!0;return!1}),a(cb,function(a){return this.value.has_side_effects(a)}),a(ab,function(a){for(var b=this.elements.length;--b>=0;)if(this.elements[b].has_side_effects(a))return!0;return!1}),a(Ua,function(a){return!a.option("pure_getters")||this.expression.has_side_effects(a)}),a(Va,function(a){return!a.option("pure_getters")||(this.expression.has_side_effects(a)||this.property.has_side_effects(a))}),a(Ta,function(a){return!a.option("pure_getters"); -}),a(Sa,function(a){return this.car.has_side_effects(a)||this.cdr.has_side_effects(a)})}(function(a,b){a.DEFMETHOD("has_side_effects",b)}),function(a){function b(){var a=this.body.length;return a>0&&n(this.body[a-1])}a(ba,function(){return null}),a(xa,function(){return this}),a(ga,b),a(Ga,b),a(Ea,function(){return this.alternative&&n(this.body)&&n(this.alternative)&&this})}(function(a,b){a.DEFMETHOD("aborts",b)}),a(da,function(a,c){return"up"===c.has_directive(a.value)?b(ha,a):a}),a(ca,function(a,c){return c.option("drop_debugger")?b(ha,a):a}),a(ja,function(a,c){return a.body instanceof Ca&&c.loopcontrol_target(a.body.label)===a.body?b(ha,a):0==a.label.references.length?a.body:a}),a(fa,function(a,b){return a.body=j(a.body,b),a}),a(ga,function(a,c){switch(a.body=j(a.body,c),a.body.length){case 1:return a.body[0];case 0:return b(ha,a)}return a}),ra.DEFMETHOD("drop_unused",function(a){var c=this;if(a.has_directive("use asm"))return c;if(a.option("unused")&&!(c instanceof sa)&&!c.uses_eval&&!c.uses_with){var d=[],e={},f=new v,g=this,h=new z(function(b,i){if(b!==c){if(b instanceof wa)return f.add(b.name.name,b),!0;if(b instanceof Ma&&g===c)return b.definitions.forEach(function(b){b.value&&(f.add(b.name.name,b.value),b.value.has_side_effects(a)&&b.value.walk(h))}),!0;if(b instanceof qb){var j=b.definition();return j.id in e||(e[j.id]=!0,d.push(j)),!0}if(b instanceof ra){var k=g;return g=b,i(),g=k,!0}}});c.walk(h);for(var i=0;i=0;){var k=h[i];if(!k.unreferenced())break;h.pop(),a.warn("Dropping unused function argument {name} [{file}:{line},{col}]",{name:k.name,file:k.start.file,line:k.start.line,col:k.start.col})}if(d instanceof wa&&d!==c)return d.name.definition().id in e?d:(a.warn("Dropping unused function {name} [{file}:{line},{col}]",{name:d.name.name,file:d.name.start.file,line:d.name.start.line,col:d.name.start.col}),b(ha,d));if(d instanceof Ma&&!(j.parent()instanceof pa)){var l=d.definitions.filter(function(b){if(b.name.definition().id in e)return!0;var c={name:b.name.name,file:b.name.start.file,line:b.name.start.line,col:b.name.start.col};return b.value&&b.value.has_side_effects(a)?(b._unused_side_effects=!0,a.warn("Side effects in initialization of unused variable {name} [{file}:{line},{col}]",c),!0):(a.warn("Dropping unused variable {name} [{file}:{line},{col}]",c),!1)});l=q(l,function(a,b){return!a.value&&b.value?-1:!b.value&&a.value?1:0});for(var m=[],i=0;i0&&(m.push(n.value),n.value=Sa.from_array(m),m=[]),++i)}return m=m.length>0?b(ga,d,{body:[b(ea,d,{body:Sa.from_array(m)})]}):null,0!=l.length||m?0==l.length?g?$.splice(m.body):m:(d.definitions=l,m?(m.body.unshift(d),g?$.splice(m.body):m):d):b(ha,d)}if(d instanceof oa&&(f(d,this),d.init instanceof ga)){var o=d.init.body.slice(0,-1);return d.init=d.init.body.slice(-1)[0].body,o.push(d),g?$.splice(o):b(ga,d,{body:o})}return d instanceof ra&&d!==c?d:void 0});c.transform(j)}}),ra.DEFMETHOD("hoist_declarations",function(a){var c=this;if(a.has_directive("use asm"))return c;var d=a.option("hoist_funs"),e=a.option("hoist_vars");if(d||e){var f=[],g=[],i=new v,j=0,k=0;c.walk(new z(function(a){return a instanceof ra&&a!==c||(a instanceof Na?(++k,!0):void 0)})),e=e&&k>1;var l=new Q(function(a){if(a!==c){if(a instanceof da)return f.push(a),b(ha,a);if(a instanceof wa&&d)return g.push(a),b(ha,a);if(a instanceof Na&&e){a.definitions.forEach(function(a){i.set(a.name.name,a),++j});var h=a.to_assignments(),k=l.parent();if(k instanceof pa&&k.init===a){if(null==h){var m=a.definitions[0].name;return b(qb,m,m)}return h}return k instanceof oa&&k.init===a?h:h?b(ea,a,{body:h}):b(ha,a)}if(a instanceof ra)return a}});if(c=c.transform(l),j>0){var m=[];if(i.each(function(a,b){c instanceof ta&&h(function(b){return b.name==a.name.name},c.argnames)?i.del(b):(a=a.clone(),a.value=null,m.push(a),i.set(b,a))}),m.length>0){for(var n=0;n1){if(d[1])return b(oa,a,{body:a.body});if(a instanceof na&&c.option("dead_code")){var e=[];return l(c,a.body,e),b(ga,a,{body:e})}}return a}),a(na,function(a,c){return c.option("loops")?(a=la.prototype.optimize.call(a,c),a instanceof na&&(r(a,c),a=b(oa,a,a).transform(c)),a):a}),a(oa,function(a,c){var d=a.condition;if(d&&(d=d.evaluate(c),a.condition=d[0]),!c.option("loops"))return a;if(d&&d.length>1&&!d[1]&&c.option("dead_code")){var e=[];return a.init instanceof ba?e.push(a.init):a.init&&e.push(b(ea,a.init,{body:a.init})),l(c,a.body,e),b(ga,a,{body:e})}return r(a,c),a}),a(Ea,function(a,c){if(!c.option("conditionals"))return a;var d=a.condition.evaluate(c);if(a.condition=d[0],d.length>1)if(d[1]){if(c.warn("Condition always true [{file}:{line},{col}]",a.condition.start),c.option("dead_code")){var e=[];return a.alternative&&l(c,a.alternative,e),e.push(a.body),b(ga,a,{body:e}).transform(c)}}else if(c.warn("Condition always false [{file}:{line},{col}]",a.condition.start),c.option("dead_code")){var e=[];return l(c,a.body,e),a.alternative&&e.push(a.alternative),b(ga,a,{body:e}).transform(c)}f(a.alternative)&&(a.alternative=null);var g=a.condition.negate(c),h=a.condition.print_to_string().length,i=g.print_to_string().length,j=i=Xb[a.operator]||e(null,!0)),/^[!=]==?$/.test(a.operator))){if(a.left instanceof qb&&a.right instanceof $a){if(a.right.consequent instanceof qb&&a.right.consequent.definition()===a.left.definition()){if(/^==/.test(a.operator))return a.right.condition;if(/^!=/.test(a.operator))return a.right.condition.negate(c)}if(a.right.alternative instanceof qb&&a.right.alternative.definition()===a.left.definition()){if(/^==/.test(a.operator))return a.right.condition.negate(c);if(/^!=/.test(a.operator))return a.right.condition}}if(a.right instanceof qb&&a.left instanceof $a){if(a.left.consequent instanceof qb&&a.left.consequent.definition()===a.right.definition()){if(/^==/.test(a.operator))return a.left.condition;if(/^!=/.test(a.operator))return a.left.condition.negate(c)}if(a.left.alternative instanceof qb&&a.left.alternative.definition()===a.right.definition()){if(/^==/.test(a.operator))return a.left.condition.negate(c);if(/^!=/.test(a.operator))return a.left.condition}}}if(a=a.lift_sequences(c),c.option("comparisons"))switch(a.operator){case"===":case"!==":(a.left.is_string(c)&&a.right.is_string(c)||a.left.is_boolean()&&a.right.is_boolean())&&(a.operator=a.operator.substr(0,2));case"==":case"!=":a.left instanceof ub&&"undefined"==a.left.value&&a.right instanceof Xa&&"typeof"==a.right.operator&&c.option("unsafe")&&(a.right.expression instanceof qb&&a.right.expression.undeclared()||(a.right=a.right.expression,a.left=b(Ab,a.left).optimize(c),2==a.operator.length&&(a.operator+="=")))}if(c.option("conditionals"))if("&&"==a.operator){var f=a.left.evaluate(c);if(f.length>1)return f[1]?(c.warn("Condition left of && always true [{file}:{line},{col}]",a.start),d(c.parent(),a,a.right.evaluate(c)[0])):(c.warn("Condition left of && always false [{file}:{line},{col}]",a.start),d(c.parent(),a,f[0]))}else if("||"==a.operator){var f=a.left.evaluate(c);if(f.length>1)return f[1]?(c.warn("Condition left of || always true [{file}:{line},{col}]",a.start),d(c.parent(),a,f[0])):(c.warn("Condition left of || always false [{file}:{line},{col}]",a.start),d(c.parent(),a,a.right.evaluate(c)[0]))}if(c.option("booleans")&&c.in_boolean_context())switch(a.operator){case"&&":var f=a.left.evaluate(c),g=a.right.evaluate(c);if(f.length>1&&!f[1]||g.length>1&&!g[1])return c.warn("Boolean && always false [{file}:{line},{col}]",a.start),a.left.has_side_effects(c)?b(Sa,a,{car:a.left,cdr:b(Eb)}).optimize(c):b(Eb,a);if(f.length>1&&f[1])return g[0];if(g.length>1&&g[1])return f[0];break;case"||":var f=a.left.evaluate(c),g=a.right.evaluate(c);if(f.length>1&&f[1]||g.length>1&&g[1])return c.warn("Boolean || always true [{file}:{line},{col}]",a.start),a.left.has_side_effects(c)?b(Sa,a,{car:a.left,cdr:b(Fb)}).optimize(c):b(Fb,a);if(f.length>1&&!f[1])return g[0];if(g.length>1&&!g[1])return f[0];break;case"+":var f=a.left.evaluate(c),g=a.right.evaluate(c);if(f.length>1&&f[0]instanceof ub&&f[1]||g.length>1&&g[0]instanceof ub&&g[1])return c.warn("+ in boolean context always true [{file}:{line},{col}]",a.start),b(Fb,a)}if(c.option("comparisons")&&a.is_boolean()){if(!(c.parent()instanceof Za)||c.parent()instanceof _a){var h=b(Xa,a,{operator:"!",expression:a.negate(c)});a=m(a,h)}if(c.option("unsafe_comps"))switch(a.operator){case"<":e(">");break;case"<=":e(">=")}}return"+"==a.operator&&a.right instanceof ub&&""===a.right.getValue()&&a.left instanceof Za&&"+"==a.left.operator&&a.left.is_string(c)?a.left:(c.option("evaluate")&&"+"==a.operator&&(a.left instanceof tb&&a.right instanceof Za&&"+"==a.right.operator&&a.right.left instanceof tb&&a.right.is_string(c)&&(a=b(Za,a,{operator:"+",left:b(ub,null,{value:""+a.left.getValue()+a.right.left.getValue(),start:a.left.start,end:a.right.left.end}),right:a.right.right})),a.right instanceof tb&&a.left instanceof Za&&"+"==a.left.operator&&a.left.right instanceof tb&&a.left.is_string(c)&&(a=b(Za,a,{operator:"+",left:a.left.left,right:b(ub,null,{value:""+a.left.right.getValue()+a.right.getValue(),start:a.left.right.start,end:a.right.end})})),a.left instanceof Za&&"+"==a.left.operator&&a.left.is_string(c)&&a.left.right instanceof tb&&a.right instanceof Za&&"+"==a.right.operator&&a.right.left instanceof tb&&a.right.is_string(c)&&(a=b(Za,a,{operator:"+",left:b(Za,a.left,{operator:"+",left:a.left.left,right:b(ub,null,{value:""+a.left.right.getValue()+a.right.left.getValue(),start:a.left.right.start,end:a.right.left.end})}),right:a.right.right}))),a.right instanceof Za&&a.right.operator==a.operator&&("&&"==a.operator||"||"==a.operator)?(a.left=b(Za,a.left,{operator:a.operator,left:a.left,right:a.right.left}),a.right=a.right.right,a.transform(c)):a.evaluate(c)[0])}),a(qb,function(a,d){function e(a,b){return b instanceof Za&&"="===b.operator&&b.left===a}if(a.undeclared()&&!e(a,d.parent())){var f=d.option("global_defs");if(f&&w(f,a.name))return c(d,f[a.name],a);if(!a.scope.uses_with||!d.find_parent(qa))switch(a.name){case"undefined":return b(Ab,a);case"NaN":return b(zb,a).transform(d);case"Infinity":return b(Cb,a).transform(d)}}return a}),a(Cb,function(a,c){return b(Za,a,{operator:"/",left:b(vb,a,{value:1}),right:b(vb,a,{value:0})})}),a(Ab,function(a,c){if(c.option("unsafe")){var d=c.find_parent(ra),e=d.find_variable("undefined");if(e){var f=b(qb,a,{name:"undefined",scope:d,thedef:e});return f.reference(),f}}return a});var A=["+","-","/","*","%",">>","<<",">>>","|","^","&"];a(_a,function(a,b){return a=a.lift_sequences(b),"="==a.operator&&a.left instanceof qb&&a.right instanceof Za&&a.right.left instanceof qb&&a.right.left.name==a.left.name&&g(a.right.operator,A)&&(a.operator=a.right.operator+"=",a.right=a.right.right),a}),a($a,function(a,e){function f(a){return a.is_boolean()?a:b(Xa,a,{operator:"!",expression:a.negate(e)})}function g(a){return a instanceof Fb||a instanceof Xa&&"!"==a.operator&&a.expression instanceof tb&&!a.expression.value}function h(a){return a instanceof Eb||a instanceof Xa&&"!"==a.operator&&a.expression instanceof tb&&!!a.expression.value}if(!e.option("conditionals"))return a;if(a.condition instanceof Sa){var i=a.condition.car;return a.condition=a.condition.cdr,Sa.cons(i,a)}var j=a.condition.evaluate(e);if(j.length>1)return j[1]?(e.warn("Condition always true [{file}:{line},{col}]",a.start),d(e.parent(),a,a.consequent)):(e.warn("Condition always false [{file}:{line},{col}]",a.start),d(e.parent(),a,a.alternative));var k=j[0].negate(e);m(j[0],k)===k&&(a=b($a,a,{condition:k,consequent:a.alternative,alternative:a.consequent}));var l=a.consequent,n=a.alternative;if(l instanceof _a&&n instanceof _a&&l.operator==n.operator&&l.left.equivalent_to(n.left)&&!l.left.has_side_effects(e))return b(_a,a,{operator:l.operator,left:l.left,right:b($a,a,{condition:a.condition,consequent:l.right,alternative:n.right})});if(l instanceof Qa&&n.TYPE===l.TYPE&&l.args.length==n.args.length&&!l.expression.has_side_effects(e)&&l.expression.equivalent_to(n.expression)){if(0==l.args.length)return b(Sa,a,{car:a.condition,cdr:l});if(1==l.args.length)return l.args[0]=b($a,a,{condition:a.condition,consequent:l.args[0],alternative:n.args[0]}),l}if(l instanceof $a&&l.alternative.equivalent_to(n))return b($a,a,{condition:b(Za,a,{left:a.condition,operator:"&&",right:l.condition}),consequent:l.consequent,alternative:n});if(l.is_constant(e)&&n.is_constant(e)&&l.equivalent_to(n)){var o=l.constant_value(e);return a.condition.has_side_effects(e)?Sa.from_array([a.condition,c(e,o,a)]):c(e,o,a)}return g(a.consequent)?h(a.alternative)?f(a.condition):b(Za,a,{operator:"||",left:f(a.condition),right:a.alternative}):h(a.consequent)?g(a.alternative)?f(a.condition.negate(e)):b(Za,a,{operator:"&&",left:f(a.condition.negate(e)),right:a.alternative}):g(a.alternative)?b(Za,a,{operator:"||",left:f(a.condition.negate(e)),right:a.consequent}):h(a.alternative)?b(Za,a,{operator:"&&",left:f(a.condition),right:a.consequent}):a}),a(Db,function(a,c){if(c.option("booleans")){var d=c.parent();return d instanceof Za&&("=="==d.operator||"!="==d.operator)?(c.warn("Non-strict equality against boolean: {operator} {value} [{file}:{line},{col}]",{operator:d.operator,value:a.value,file:d.start.file,line:d.start.line,col:d.start.col}),b(vb,a,{value:+a.value})):b(Xa,a,{operator:"!",expression:b(vb,a,{value:1-a.value})})}return a}),a(Va,function(a,c){var d=a.property;if(d instanceof ub&&c.option("properties")){if(d=d.getValue(),Ib(d)?c.option("screw_ie8"):J(d))return b(Ua,a,{expression:a.expression,property:d}).optimize(c);var e=parseFloat(d);isNaN(e)||e.toString()!=d||(a.property=b(vb,a.property,{value:e}))}return a}),a(Ua,function(a,c){var d=a.property;return Ib(d)&&!c.option("screw_ie8")?b(Va,a,{expression:a.expression,property:b(ub,a,{value:d})}).optimize(c):a.evaluate(c)[0]}),a(ab,x),a(bb,x),a(wb,x),a(za,function(a,b){return a.value instanceof Ab&&(a.value=null),a})}(),function(){function a(a){if("Literal"==a.type)return null!=a.raw?a.raw:a.value+""}function b(b){var c=b.loc,d=c&&c.start,e=b.range;return new _({file:c&&c.source,line:d&&d.line,col:d&&d.column,pos:e?e[0]:b.start,endline:d&&d.line,endcol:d&&d.column,endpos:e?e[0]:b.start,raw:a(b)})}function d(b){var c=b.loc,d=c&&c.end,e=b.range;return new _({file:c&&c.source,line:d&&d.line,col:d&&d.column,pos:e?e[1]:b.end,endline:d&&d.line,endcol:d&&d.column,endpos:e?e[1]:b.end,raw:a(b)})}function e(a,e,g){var l="function From_Moz_"+a+"(M){\n";l+="return new U2."+e.name+"({\nstart: my_start_token(M),\nend: my_end_token(M)";var m="function To_Moz_"+a+"(M){\n";m+="return {\ntype: "+JSON.stringify(a),g&&g.split(/\s*,\s*/).forEach(function(a){var b=/([a-z0-9$_]+)(=|@|>|%)([a-z0-9$_]+)/i.exec(a);if(!b)throw new Error("Can't understand property map: "+a);var c=b[1],d=b[2],e=b[3];switch(l+=",\n"+e+": ",m+=",\n"+c+": ",d){case"@":l+="M."+c+".map(from_moz)",m+="M."+e+".map(to_moz)";break;case">":l+="from_moz(M."+c+")",m+="to_moz(M."+e+")";break;case"=":l+="M."+c,m+="M."+e;break;case"%":l+="from_moz(M."+c+").body",m+="to_moz_block(M)";break;default:throw new Error("Can't understand operator in propmap: "+a)}}),l+="\n})\n}",m+="\n}\n}",l=new Function("U2","my_start_token","my_end_token","from_moz","return("+l+")")(c,b,d,f),m=new Function("to_moz","to_moz_block","return("+m+")")(i,j),k[a]=l,h(e,m)}function f(a){l.push(a);var b=null!=a?k[a.type](a):null;return l.pop(),b}function g(a,b,c){var d=a.start,e=a.end;return null!=d.pos&&null!=e.endpos&&(b.range=[d.pos,e.endpos]),d.line&&(b.loc={start:{line:d.line,column:d.col},end:e.endline?{line:e.endline,column:e.endcol}:null},d.file&&(b.loc.source=d.file)),b}function h(a,b){a.DEFMETHOD("to_mozilla_ast",function(){return g(this,b(this))})}function i(a){return null!=a?a.to_mozilla_ast():null}function j(a){return{type:"BlockStatement",body:a.body.map(i)}}var k={ExpressionStatement:function(a){var c=a.expression;return"Literal"===c.type&&"string"==typeof c.value?new da({start:b(a),end:d(a),value:c.value}):new ea({start:b(a),end:d(a),body:f(c)})},TryStatement:function(a){var c=a.handlers||[a.handler];if(c.length>1||a.guardedHandlers&&a.guardedHandlers.length)throw new Error("Multiple catch clauses are not supported.");return new Ja({start:b(a),end:d(a),body:f(a.block).body,bcatch:f(c[0]),bfinally:a.finalizer?new La(f(a.finalizer)):null})},Property:function(a){var c=a.key,e="Identifier"==c.type?c.name:c.value,g={start:b(c),end:d(a.value),key:e,value:f(a.value)};switch(a.kind){case"init":return new db(g);case"set":return g.value.name=f(c),new eb(g);case"get":return g.value.name=f(c),new fb(g)}},ObjectExpression:function(a){return new bb({start:b(a),end:d(a),properties:a.properties.map(function(a){return a.type="Property",f(a)})})},SequenceExpression:function(a){return Sa.from_array(a.expressions.map(f))},MemberExpression:function(a){return new(a.computed?Va:Ua)({start:b(a),end:d(a),property:a.computed?f(a.property):a.property.name,expression:f(a.object)})},SwitchCase:function(a){return new(a.test?Ia:Ha)({start:b(a),end:d(a),expression:f(a.test),body:a.consequent.map(f)})},VariableDeclaration:function(a){return new("const"===a.kind?Oa:Na)({start:b(a),end:d(a),definitions:a.declarations.map(f)})},Literal:function(a){var c=a.value,e={start:b(a),end:d(a)};if(null===c)return new yb(e);switch(typeof c){case"string":return e.value=c,new ub(e);case"number":return e.value=c,new vb(e);case"boolean":return new(c?Fb:Eb)(e);default:var f=a.regex;return f&&f.pattern?e.value=new RegExp(f.pattern,f.flags).toString():e.value=a.regex&&a.raw?a.raw:c,new wb(e)}},Identifier:function(a){var c=l[l.length-2];return new("LabeledStatement"==c.type?pb:"VariableDeclarator"==c.type&&c.id===a?"const"==c.kind?kb:jb:"FunctionExpression"==c.type?c.id===a?nb:lb:"FunctionDeclaration"==c.type?c.id===a?mb:lb:"CatchClause"==c.type?ob:"BreakStatement"==c.type||"ContinueStatement"==c.type?rb:qb)({start:b(a),end:d(a),name:a.name})}};k.UpdateExpression=k.UnaryExpression=function(a){var c="prefix"in a?a.prefix:"UnaryExpression"==a.type;return new(c?Xa:Ya)({start:b(a),end:d(a),operator:a.operator,expression:f(a.argument)})},e("Program",sa,"body@body"),e("EmptyStatement",ha),e("BlockStatement",ga,"body@body"),e("IfStatement",Ea,"test>condition, consequent>body, alternate>alternative"),e("LabeledStatement",ja,"label>label, body>body"),e("BreakStatement",Ca,"label>label"),e("ContinueStatement",Da,"label>label"),e("WithStatement",qa,"object>expression, body>body"),e("SwitchStatement",Fa,"discriminant>expression, cases@body"),e("ReturnStatement",za,"argument>value"),e("ThrowStatement",Aa,"argument>value"),e("WhileStatement",na,"test>condition, body>body"),e("DoWhileStatement",ma,"test>condition, body>body"),e("ForStatement",oa,"init>init, test>condition, update>step, body>body"),e("ForInStatement",pa,"left>init, right>object, body>body"),e("DebuggerStatement",ca),e("FunctionDeclaration",wa,"id>name, params@argnames, body%body"),e("VariableDeclarator",Pa,"id>name, init>value"),e("CatchClause",Ka,"param>argname, body%body"),e("ThisExpression",sb),e("ArrayExpression",ab,"elements@elements"),e("FunctionExpression",va,"id>name, params@argnames, body%body"),e("BinaryExpression",Za,"operator=operator, left>left, right>right"),e("LogicalExpression",Za,"operator=operator, left>left, right>right"),e("AssignmentExpression",_a,"operator=operator, left>left, right>right"),e("ConditionalExpression",$a,"test>condition, consequent>consequent, alternate>alternative"),e("NewExpression",Ra,"callee>expression, arguments@args"),e("CallExpression",Qa,"callee>expression, arguments@args"),h(da,function(a){return{type:"ExpressionStatement",expression:{type:"Literal",value:a.value}}}),h(ea,function(a){return{type:"ExpressionStatement",expression:i(a.body)}}),h(Ga,function(a){return{type:"SwitchCase",test:i(a.expression),consequent:a.body.map(i)}}),h(Ja,function(a){return{type:"TryStatement",block:j(a),handler:i(a.bcatch),guardedHandlers:[],finalizer:i(a.bfinally)}}),h(Ka,function(a){return{type:"CatchClause",param:i(a.argname),guard:null,body:j(a)}}),h(Ma,function(a){return{type:"VariableDeclaration",kind:a instanceof Oa?"const":"var",declarations:a.definitions.map(i)}}),h(Sa,function(a){return{type:"SequenceExpression",expressions:a.to_array().map(i)}}),h(Ta,function(a){var b=a instanceof Va;return{type:"MemberExpression",object:i(a.expression),computed:b,property:b?i(a.property):{type:"Identifier",name:a.property}}}),h(Wa,function(a){return{type:"++"==a.operator||"--"==a.operator?"UpdateExpression":"UnaryExpression",operator:a.operator,prefix:a instanceof Xa,argument:i(a.expression)}}),h(Za,function(a){return{type:"&&"==a.operator||"||"==a.operator?"LogicalExpression":"BinaryExpression",left:i(a.left),operator:a.operator,right:i(a.right)}}),h(bb,function(a){return{type:"ObjectExpression",properties:a.properties.map(i)}}),h(cb,function(a){var b,c=G(a.key)?{type:"Identifier",name:a.key}:{type:"Literal",value:a.key};return a instanceof db?b="init":a instanceof fb?b="get":a instanceof eb&&(b="set"),{type:"Property",kind:b,key:c,value:i(a.value)}}),h(gb,function(a){var b=a.definition();return{type:"Identifier",name:b?b.mangled_name||b.name:a.name}}),h(wb,function(a){var b=a.value;return{type:"Literal",value:b,raw:b.toString(),regex:{pattern:b.source,flags:b.toString().match(/[gimuy]*$/)[0]}}}),h(tb,function(a){var b=a.value;return"number"==typeof b&&(b<0||0===b&&1/b<0)?{type:"UnaryExpression",operator:"-",prefix:!0,argument:{type:"Literal",value:-b,raw:a.start.raw}}:{type:"Literal",value:b,raw:a.start.raw}}),h(xb,function(a){return{type:"Identifier",name:String(a.value)}}),Db.DEFMETHOD("to_mozilla_ast",tb.prototype.to_mozilla_ast),yb.DEFMETHOD("to_mozilla_ast",tb.prototype.to_mozilla_ast),Bb.DEFMETHOD("to_mozilla_ast",function(){return null}),fa.DEFMETHOD("to_mozilla_ast",ga.prototype.to_mozilla_ast),ta.DEFMETHOD("to_mozilla_ast",va.prototype.to_mozilla_ast);var l=null;aa.from_mozilla_ast=function(a){var b=l;l=[];var c=f(a);return l=b,c}}(),c.Compressor=T,c.DefaultsError=j,c.Dictionary=v,c.JS_Parse_Error=L,c.MAP=$,c.OutputStream=S,c.SourceMap=U,c.TreeTransformer=Q,c.TreeWalker=z,c.base54=$b,c.defaults=k,c.mangle_properties=W, -c.merge=l,c.parse=P,c.push_uniq=n,c.string_template=o,c.tokenizer=O,c.is_identifier=G,c.SymbolDef=R,"undefined"!=typeof DEBUG&&DEBUG&&(c.EXPECT_DIRECTIVE=_b),c.sys=X,c.MOZ_SourceMap=Y,c.UglifyJS=Z,c.array_to_hash=d,c.slice=e,c.characters=f,c.member=g,c.find_if=h,c.repeat_string=i,c.DefaultsError=j,c.defaults=k,c.merge=l,c.noop=m,c.MAP=$,c.push_uniq=n,c.string_template=o,c.remove=p,c.mergeSort=q,c.set_difference=r,c.set_intersection=s,c.makePredicate=t,c.all=u,c.Dictionary=v,c.HOP=w,c.DEFNODE=x,c.AST_Token=_,c.AST_Node=aa,c.AST_Statement=ba,c.AST_Debugger=ca,c.AST_Directive=da,c.AST_SimpleStatement=ea,c.walk_body=y,c.AST_Block=fa,c.AST_BlockStatement=ga,c.AST_EmptyStatement=ha,c.AST_StatementWithBody=ia,c.AST_LabeledStatement=ja,c.AST_IterationStatement=ka,c.AST_DWLoop=la,c.AST_Do=ma,c.AST_While=na,c.AST_For=oa,c.AST_ForIn=pa,c.AST_With=qa,c.AST_Scope=ra,c.AST_Toplevel=sa,c.AST_Lambda=ta,c.AST_Accessor=ua,c.AST_Function=va,c.AST_Defun=wa,c.AST_Jump=xa,c.AST_Exit=ya,c.AST_Return=za,c.AST_Throw=Aa,c.AST_LoopControl=Ba,c.AST_Break=Ca,c.AST_Continue=Da,c.AST_If=Ea,c.AST_Switch=Fa,c.AST_SwitchBranch=Ga,c.AST_Default=Ha,c.AST_Case=Ia,c.AST_Try=Ja,c.AST_Catch=Ka,c.AST_Finally=La,c.AST_Definitions=Ma,c.AST_Var=Na,c.AST_Const=Oa,c.AST_VarDef=Pa,c.AST_Call=Qa,c.AST_New=Ra,c.AST_Seq=Sa,c.AST_PropAccess=Ta,c.AST_Dot=Ua,c.AST_Sub=Va,c.AST_Unary=Wa,c.AST_UnaryPrefix=Xa,c.AST_UnaryPostfix=Ya,c.AST_Binary=Za,c.AST_Conditional=$a,c.AST_Assign=_a,c.AST_Array=ab,c.AST_Object=bb,c.AST_ObjectProperty=cb,c.AST_ObjectKeyVal=db,c.AST_ObjectSetter=eb,c.AST_ObjectGetter=fb,c.AST_Symbol=gb,c.AST_SymbolAccessor=hb,c.AST_SymbolDeclaration=ib,c.AST_SymbolVar=jb,c.AST_SymbolConst=kb,c.AST_SymbolFunarg=lb,c.AST_SymbolDefun=mb,c.AST_SymbolLambda=nb,c.AST_SymbolCatch=ob,c.AST_Label=pb,c.AST_SymbolRef=qb,c.AST_LabelRef=rb,c.AST_This=sb,c.AST_Constant=tb,c.AST_String=ub,c.AST_Number=vb,c.AST_RegExp=wb,c.AST_Atom=xb,c.AST_Null=yb,c.AST_NaN=zb,c.AST_Undefined=Ab,c.AST_Hole=Bb,c.AST_Infinity=Cb,c.AST_Boolean=Db,c.AST_False=Eb,c.AST_True=Fb,c.TreeWalker=z,c.KEYWORDS=Gb,c.KEYWORDS_ATOM=Hb,c.RESERVED_WORDS=Ib,c.KEYWORDS_BEFORE_EXPRESSION=Jb,c.OPERATOR_CHARS=Kb,c.RE_HEX_NUMBER=Lb,c.RE_OCT_NUMBER=Mb,c.OPERATORS=Nb,c.WHITESPACE_CHARS=Ob,c.PUNC_BEFORE_EXPRESSION=Pb,c.PUNC_CHARS=Qb,c.REGEXP_MODIFIERS=Rb,c.UNICODE=Sb,c.is_letter=A,c.is_digit=B,c.is_alphanumeric_char=C,c.is_unicode_digit=D,c.is_unicode_combining_mark=E,c.is_unicode_connector_punctuation=F,c.is_identifier=G,c.is_identifier_start=H,c.is_identifier_char=I,c.is_identifier_string=J,c.parse_js_number=K,c.JS_Parse_Error=L,c.js_error=M,c.is_token=N,c.EX_EOF=Tb,c.tokenizer=O,c.UNARY_PREFIX=Ub,c.UNARY_POSTFIX=Vb,c.ASSIGNMENT=Wb,c.PRECEDENCE=Xb,c.STATEMENTS_WITH_LABELS=Yb,c.ATOMIC_START_TOKEN=Zb,c.parse=P,c.TreeTransformer=Q,c.SymbolDef=R,c.base54=$b,c.EXPECT_DIRECTIVE=_b,c.OutputStream=S,c.Compressor=T,c.SourceMap=U,c.find_builtins=V,c.mangle_properties=W,c.AST_Node.warn_function=function(a){"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(a)},c.minify=function(a,b){b=Z.defaults(b,{spidermonkey:!1,outSourceMap:null,sourceRoot:null,inSourceMap:null,fromString:!1,warnings:!1,mangle:{},mangleProperties:!1,nameCache:null,output:null,compress:{},parse:{}}),Z.base54.reset();var c=null,d={};if(b.spidermonkey?c=Z.AST_Node.from_mozilla_ast(a):("string"==typeof a&&(a=[a]),a.forEach(function(a,e){var f=b.fromString?a:fs.readFileSync(a,"utf8");d[a]=f,c=Z.parse(f,{filename:b.fromString?e:a,toplevel:c,bare_returns:b.parse?b.parse.bare_returns:void 0})})),b.wrap&&(c=c.wrap_commonjs(b.wrap,b.exportAll)),b.compress){var e={warnings:b.warnings};Z.merge(e,b.compress),c.figure_out_scope();var f=Z.Compressor(e);c=f.compress(c)}(b.mangleProperties||b.nameCache)&&(b.mangleProperties.cache=Z.readNameCache(b.nameCache,"props"),c=Z.mangle_properties(c,b.mangleProperties),Z.writeNameCache(b.nameCache,"props",b.mangleProperties.cache)),b.mangle&&(c.figure_out_scope(b.mangle),c.compute_char_frequency(b.mangle),c.mangle_names(b.mangle));var g=b.inSourceMap,h={};if("string"==typeof b.inSourceMap&&(g=fs.readFileSync(b.inSourceMap,"utf8")),b.outSourceMap&&(h.source_map=Z.SourceMap({file:b.outSourceMap,orig:g,root:b.sourceRoot}),b.sourceMapIncludeSources))for(var i in d)d.hasOwnProperty(i)&&h.source_map.get().setSourceContent(i,d[i]);b.output&&Z.merge(h,b.output);var j=Z.OutputStream(h);c.print(j),b.outSourceMap&&"string"==typeof b.outSourceMap&&(j+="\n//# sourceMappingURL="+b.outSourceMap);var k=h.source_map;return k&&(k+=""),{code:j+"",map:k}},c.describe_ast=function(){function a(c){b.print("AST_"+c.TYPE);var d=c.SELF_PROPS.filter(function(a){return!/^\$/.test(a)});d.length>0&&(b.space(),b.with_parens(function(){d.forEach(function(a,c){c&&b.space(),b.print(a)})})),c.documentation&&(b.space(),b.print_string(c.documentation)),c.SUBCLASSES.length>0&&(b.space(),b.with_block(function(){c.SUBCLASSES.forEach(function(c,d){b.indent(),a(c),b.newline()})}))}var b=Z.OutputStream({beautify:!0});return a(Z.AST_Node),b+""}},{"source-map":136,util:142}],138:[function(a,b,c){"use strict";function d(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function e(a,b,c){if(a&&j.isObject(a)&&a instanceof d)return a;var e=new d;return e.parse(a,b,c),e}function f(a){return j.isString(a)&&(a=e(a)),a instanceof d?a.format():d.prototype.format.call(a)}function g(a,b){return e(a,!1,!0).resolve(b)}function h(a,b){return a?e(a,!1,!0).resolveObject(b):b}var i=a("punycode"),j=a("./util");c.parse=e,c.resolve=g,c.resolveObject=h,c.format=f,c.Url=d;var k=/^([a-z0-9.+-]+:)/i,l=/:[0-9]*$/,m=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,n=["<",">",'"',"`"," ","\r","\n","\t"],o=["{","}","|","\\","^","`"].concat(n),p=["'"].concat(o),q=["%","/","?",";","#"].concat(p),r=["/","?","#"],s=255,t=/^[+a-z0-9A-Z_-]{0,63}$/,u=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},w={javascript:!0,"javascript:":!0},x={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=a("querystring");d.prototype.parse=function(a,b,c){if(!j.isString(a))throw new TypeError("Parameter 'url' must be a string, not "+typeof a);var d=a.indexOf("?"),e=d!==-1&&d127?"x":I[K];if(!J.match(t)){var M=G.slice(0,B),N=G.slice(B+1),O=I.match(u);O&&(M.push(O[1]),N.unshift(O[2])),N.length&&(h="/"+N.join(".")+h),this.hostname=M.join(".");break}}}this.hostname.length>s?this.hostname="":this.hostname=this.hostname.toLowerCase(),F||(this.hostname=i.toASCII(this.hostname));var P=this.port?":"+this.port:"",Q=this.hostname||"";this.host=Q+P,this.href+=this.host,F&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==h[0]&&(h="/"+h))}if(!v[o])for(var B=0,H=p.length;B0)&&c.host.split("@");z&&(c.auth=z.shift(),c.host=c.hostname=z.shift())}return c.search=a.search,c.query=a.query,j.isNull(c.pathname)&&j.isNull(c.search)||(c.path=(c.pathname?c.pathname:"")+(c.search?c.search:"")),c.href=c.format(),c}if(!v.length)return c.pathname=null,c.search?c.path="/"+c.search:c.path=null,c.href=c.format(),c;for(var A=v.slice(-1)[0],B=(c.host||a.host||v.length>1)&&("."===A||".."===A)||""===A,C=0,D=v.length;D>=0;D--)A=v[D],"."===A?v.splice(D,1):".."===A?(v.splice(D,1),C++):C&&(v.splice(D,1),C--);if(!t&&!u)for(;C--;C)v.unshift("..");!t||""===v[0]||v[0]&&"/"===v[0].charAt(0)||v.unshift(""),B&&"/"!==v.join("/").substr(-1)&&v.push("");var E=""===v[0]||v[0]&&"/"===v[0].charAt(0);if(y){c.hostname=c.host=E?"":v.length?v.shift():"";var z=!!(c.host&&c.host.indexOf("@")>0)&&c.host.split("@");z&&(c.auth=z.shift(),c.host=c.hostname=z.shift())}return t=t||c.host&&v.length,t&&!E&&v.unshift(""),v.length?c.pathname=v.join("/"):(c.pathname=null,c.path=null),j.isNull(c.pathname)&&j.isNull(c.search)||(c.path=(c.pathname?c.pathname:"")+(c.search?c.search:"")),c.auth=a.auth||c.auth,c.slashes=c.slashes||a.slashes,c.href=c.format(),c},d.prototype.parseHost=function(){var a=this.host,b=l.exec(a);b&&(b=b[0],":"!==b&&(this.port=b.substr(1)),a=a.substr(0,a.length-b.length)),a&&(this.hostname=a)}},{"./util":139,punycode:82,querystring:85}],139:[function(a,b,c){"use strict";b.exports={isString:function(a){return"string"==typeof a},isObject:function(a){return"object"==typeof a&&null!==a},isNull:function(a){return null===a},isNullOrUndefined:function(a){return null==a}}},{}],140:[function(a,b,c){(function(a){function c(a,b){function c(){if(!e){if(d("throwDeprecation"))throw new Error(b);d("traceDeprecation")?console.trace(b):console.warn(b),e=!0}return a.apply(this,arguments)}if(d("noDeprecation"))return a;var e=!1;return c}function d(b){try{if(!a.localStorage)return!1}catch(c){return!1}var d=a.localStorage[b];return null!=d&&"true"===String(d).toLowerCase()}b.exports=c}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],141:[function(a,b,c){b.exports=function(a){return a&&"object"==typeof a&&"function"==typeof a.copy&&"function"==typeof a.fill&&"function"==typeof a.readUInt8}},{}],142:[function(a,b,c){(function(b,d){function e(a,b){var d={seen:[],stylize:g};return arguments.length>=3&&(d.depth=arguments[2]),arguments.length>=4&&(d.colors=arguments[3]),p(b)?d.showHidden=b:b&&c._extend(d,b),v(d.showHidden)&&(d.showHidden=!1),v(d.depth)&&(d.depth=2),v(d.colors)&&(d.colors=!1),v(d.customInspect)&&(d.customInspect=!0),d.colors&&(d.stylize=f),i(d,a,d.depth)}function f(a,b){var c=e.styles[b];return c?"["+e.colors[c][0]+"m"+a+"["+e.colors[c][1]+"m":a}function g(a,b){return a}function h(a){var b={};return a.forEach(function(a,c){b[a]=!0}),b}function i(a,b,d){if(a.customInspect&&b&&A(b.inspect)&&b.inspect!==c.inspect&&(!b.constructor||b.constructor.prototype!==b)){var e=b.inspect(d,a);return t(e)||(e=i(a,e,d)),e}var f=j(a,b);if(f)return f;var g=Object.keys(b),p=h(g);if(a.showHidden&&(g=Object.getOwnPropertyNames(b)),z(b)&&(g.indexOf("message")>=0||g.indexOf("description")>=0))return k(b);if(0===g.length){if(A(b)){var q=b.name?": "+b.name:"";return a.stylize("[Function"+q+"]","special")}if(w(b))return a.stylize(RegExp.prototype.toString.call(b),"regexp");if(y(b))return a.stylize(Date.prototype.toString.call(b),"date");if(z(b))return k(b)}var r="",s=!1,u=["{","}"];if(o(b)&&(s=!0,u=["[","]"]),A(b)){var v=b.name?": "+b.name:"";r=" [Function"+v+"]"}if(w(b)&&(r=" "+RegExp.prototype.toString.call(b)),y(b)&&(r=" "+Date.prototype.toUTCString.call(b)),z(b)&&(r=" "+k(b)),0===g.length&&(!s||0==b.length))return u[0]+r+u[1];if(d<0)return w(b)?a.stylize(RegExp.prototype.toString.call(b),"regexp"):a.stylize("[Object]","special");a.seen.push(b);var x;return x=s?l(a,b,d,p,g):g.map(function(c){return m(a,b,d,p,c,s)}),a.seen.pop(),n(x,r,u)}function j(a,b){if(v(b))return a.stylize("undefined","undefined");if(t(b)){var c="'"+JSON.stringify(b).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return a.stylize(c,"string")}return s(b)?a.stylize(""+b,"number"):p(b)?a.stylize(""+b,"boolean"):q(b)?a.stylize("null","null"):void 0}function k(a){return"["+Error.prototype.toString.call(a)+"]"}function l(a,b,c,d,e){for(var f=[],g=0,h=b.length;g-1&&(h=f?h.split("\n").map(function(a){return" "+a}).join("\n").substr(2):"\n"+h.split("\n").map(function(a){return" "+a}).join("\n"))):h=a.stylize("[Circular]","special")),v(g)){if(f&&e.match(/^\d+$/))return h;g=JSON.stringify(""+e),g.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(g=g.substr(1,g.length-2),g=a.stylize(g,"name")):(g=g.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),g=a.stylize(g,"string"))}return g+": "+h}function n(a,b,c){var d=0,e=a.reduce(function(a,b){return d++,b.indexOf("\n")>=0&&d++,a+b.replace(/\u001b\[\d\d?m/g,"").length+1},0);return e>60?c[0]+(""===b?"":b+"\n ")+" "+a.join(",\n ")+" "+c[1]:c[0]+b+" "+a.join(", ")+" "+c[1]}function o(a){return Array.isArray(a)}function p(a){return"boolean"==typeof a}function q(a){return null===a}function r(a){return null==a}function s(a){return"number"==typeof a}function t(a){return"string"==typeof a}function u(a){return"symbol"==typeof a}function v(a){return void 0===a}function w(a){return x(a)&&"[object RegExp]"===C(a)}function x(a){return"object"==typeof a&&null!==a}function y(a){return x(a)&&"[object Date]"===C(a)}function z(a){return x(a)&&("[object Error]"===C(a)||a instanceof Error)}function A(a){return"function"==typeof a}function B(a){return null===a||"boolean"==typeof a||"number"==typeof a||"string"==typeof a||"symbol"==typeof a||"undefined"==typeof a}function C(a){return Object.prototype.toString.call(a)}function D(a){return a<10?"0"+a.toString(10):a.toString(10)}function E(){var a=new Date,b=[D(a.getHours()),D(a.getMinutes()),D(a.getSeconds())].join(":");return[a.getDate(),J[a.getMonth()],b].join(" ")}function F(a,b){return Object.prototype.hasOwnProperty.call(a,b)}var G=/%[sdj%]/g;c.format=function(a){if(!t(a)){for(var b=[],c=0;c=f)return a;switch(a){case"%s":return String(d[c++]);case"%d":return Number(d[c++]);case"%j":try{return JSON.stringify(d[c++])}catch(b){return"[Circular]"}default:return a}}),h=d[c];c=0;d--)c[d]="(?:("+a.customAttrSurround[d][0].source+")\\s*"+b+"\\s*("+a.customAttrSurround[d][1].source+"))";c.push("(?:"+b+")"),b="(?:"+c.join("|")+")"}return new RegExp("^\\s*"+b)}function f(a){return k.concat(a.customAttrAssign||[]).map(function(a){return"(?:"+a.source+")"}).join("|")}function g(a,b){function c(a){var b=a.match(n);if(b){var c={tagName:b[1],attrs:[]};a=a.slice(b[0].length);for(var d,e;!(d=a.match(o))&&(e=a.match(l));)a=a.slice(e[0].length),c.attrs.push(e);if(d)return c.unarySlash=d[1],c.rest=a.slice(d[0].length),c}}function d(a){var c=a.tagName,d=a.unarySlash;if(b.html5&&"p"===g&&x(c)&&f("",g),!b.html5)for(;g&&t(g);)f("",g);u(c)&&g===c&&f("",c);var e=s(c)||"html"===c&&"head"===g||!!d,h=a.attrs.map(function(a){function c(b){return h=a[b],e=a[b+1],"undefined"!=typeof e?'"':(e=a[b+2],"undefined"!=typeof e?"'":(e=a[b+3],"undefined"==typeof e&&v(d)&&(e=d),""))}var d,e,f,g,h,i,j=7;r&&a[0].indexOf('""')===-1&&(""===a[3]&&delete a[3],""===a[4]&&delete a[4],""===a[5]&&delete a[5]);var k=1;if(b.customAttrSurround)for(var l=0,m=b.customAttrSurround.length;l=0&&k[d].tag.toLowerCase()!==e;d--);}else d=0;if(d>=0){for(var f=k.length-1;f>=d;f--)b.end&&b.end(k[f].tag,k[f].attrs,f>d||!a);k.length=d,g=d&&k[d-1].tag}else"br"===c.toLowerCase()?b.start&&b.start(c,[],!0,""):"p"===c.toLowerCase()&&(b.start&&b.start(c,[],!1,"",!0),b.end&&b.end(c,[]))}for(var g,h,i,j,k=[],l=e(b);a;){if(h=a,g&&w(g)){var m=g.toLowerCase(),z=y[m]||(y[m]=new RegExp("([\\s\\S]*?)]*>","i"));a=a.replace(z,function(a,c){return"script"!==m&&"style"!==m&&"noscript"!==m&&(c=c.replace(//g,"$1").replace(//g,"$1")),b.chars&&b.chars(c),""}),f("",m)}else{var A=a.indexOf("<");if(0===A){if(/^");if(B>=0){b.comment&&b.comment(a.substring(4,B)),a=a.substring(B+3),i="";continue}}if(/^");if(C>=0){b.comment&&b.comment(a.substring(2,C+1),!0),a=a.substring(C+2),i="";continue}}var D=a.match(q);if(D){b.doctype&&b.doctype(D[0]),a=a.substring(D[0].length),i="";continue}var E=a.match(p);if(E){a=a.substring(E[0].length),E[0].replace(p,f),i="/"+E[1].toLowerCase();continue}var F=c(a);if(F){a=F.rest,d(F),i=F.tagName.toLowerCase();continue}}var G;A>=0?(G=a.substring(0,A),a=a.substring(A)):(G=a,a="");var H=c(a);H?j=H.tagName:(H=a.match(p),j=H?"/"+H[1]:""),b.chars&&b.chars(G,i,j),i=""}if(a===h)throw new Error("Parse Error: "+a)}b.partialMarkup||f()}var h=a("./utils").createMapFromString,i=/([^\s"'<>\/=]+)/,j=/=/,k=[j],l=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],m=function(){var b=a("ncname").source.slice(1,-1);return"((?:"+b+"\\:)?"+b+")"}(),n=new RegExp("^<"+m),o=/^\s*(\/?)>/,p=new RegExp("^<\\/"+m+"[^>]*>"),q=/^]+>/i,r=!1;"x".replace(/x(.)?/g,function(a,b){r=""===b});var s=d("area,base,basefont,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),t=d("a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,noscript,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,svg,textarea,tt,u,var"),u=d("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),v=d("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),w=d("script,style"),x=d("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),y={};c.HTMLParser=g,c.HTMLtoXML=function(a){var b="";return new g(a,{start:function(a,c,d){b+="<"+a;for(var e=0,f=c.length;e"},end:function(a){b+=""},chars:function(a){b+=a},comment:function(a){b+=""},ignore:function(a){b+=a}}),b},c.HTMLtoDOM=function(a,b){var c={html:!0,head:!0,body:!0,title:!0},d={link:"head",base:"head"};b?b=b.ownerDocument||b.getOwnerDocument&&b.getOwnerDocument()||b:"undefined"!=typeof DOMDocument?b=new DOMDocument:"undefined"!=typeof document&&document.implementation&&document.implementation.createDocument?b=document.implementation.createDocument("","",null):"undefined"!=typeof ActiveX&&(b=new ActiveXObject("Msxml.DOMDocument"));var e=[],f=b.documentElement||b.getDocumentElement&&b.getDocumentElement();if(!f&&b.createElement&&!function(){var a=b.createElement("html"),c=b.createElement("head");c.appendChild(b.createElement("title")),a.appendChild(c),a.appendChild(b.createElement("body")),b.appendChild(a)}(),b.getElementsByTagName)for(var h in c)c[h]=b.getElementsByTagName(h)[0];var i=c.body;return new g(a,{start:function(a,f,g){if(c[a])return void(i=c[a]);var h=b.createElement(a);for(var j in f)h.setAttribute(f[j].name,f[j].value);d[a]&&"boolean"!=typeof c[d[a]]?c[d[a]].appendChild(h):i&&i.appendChild&&i.appendChild(h),g||(e.push(h),i=h)},end:function(){e.length-=1,i=e[e.length-1]},chars:function(a){i.appendChild(b.createTextNode(a))},comment:function(){},ignore:function(){}}),b}},{"./utils":147,ncname:77}],146:[function(a,b,c){"use strict";function d(){}function e(){}d.prototype.sort=function(a,b){b=b||0;for(var c=0,d=this.tokens.length;ce?-1:bc?1:0}).filter(function(c){if(a[c].processed]+$/.test(a)}function l(a,b){for(var c=a.length;c--;)if(a[c].name.toLowerCase()===b)return!0;return!1}function m(a,b,c,d){return c=c?aa(c.toLowerCase()):"","script"===a&&"language"===b&&"javascript"===c||"form"===a&&"method"===b&&"get"===c||"input"===a&&"type"===b&&"text"===c||"script"===a&&"charset"===b&&!l(d,"src")||"a"===a&&"name"===b&&l(d,"id")||"area"===a&&"shape"===b&&"rect"===c}function n(a){return a=aa(a.split(/;/,2)[0]).toLowerCase(),""===a||fa(a)}function o(a,b){if("script"!==a)return!1;for(var c=0,d=b.length;c)([\s\S]*?)(-1)return T(a,b);return a}function F(a,b){switch(a){case"html":case"head":return!0;case"body":return!la(b);case"colgroup":return"col"===b;case"tbody":return"tr"===b}return!1}function G(a,b){switch(b){case"colgroup":return"colgroup"===a;case"tbody":return ta(a)}return!1}function H(a,b){switch(a){case"html":case"head":case"body":case"colgroup":case"caption":return!0;case"li":case"optgroup":case"tr":return b===a;case"dt":case"dd":return ma(b);case"p":return na(b);case"rb":case"rt":case"rp":return pa(b);case"rtc":return qa(b);case"option":return ra(b);case"thead":case"tbody":return sa(b);case"tfoot":return"tbody"===b;case"td":case"th":return ua(b)}return!1}function I(a,b,c){var d=!c||/^\s*$/.test(c);return!!d&&("input"===a&&"value"===b||Aa.test(b))}function J(a,b){for(var c=b.length-1;c>=0;c--)if(b[c].name===a)return!0;return!1}function K(a,b){switch(a){case"textarea":return!1;case"audio":case"script":case"video":if(J("src",b))return!1;break;case"iframe":if(J("src",b)||J("srcdoc",b))return!1;break;case"object":if(J("data",b))return!1;break;case"applet":if(J("code",b))return!1}return!0}function L(a){return!/^(?:script|style|pre|textarea)$/.test(a)}function M(a){return!/^(?:pre|textarea)$/.test(a)}function N(a,b,c,d){var e=d.caseSensitive?a.name:a.name.toLowerCase(),f=a.value;if(d.decodeEntities&&f&&(f=W(f,{isAttributeValue:!0})),!(d.removeRedundantAttributes&&m(c,e,f,b)||d.removeScriptTypeAttributes&&"script"===c&&"type"===e&&n(f)||d.removeStyleLinkTypeAttributes&&("style"===c||"link"===c)&&"type"===e&&p(f)||(f=x(c,e,f,d,b),d.removeEmptyAttributes&&I(c,e,f))))return d.decodeEntities&&f&&(f=f.replace(/&(#?[0-9a-zA-Z]+;)/g,"&$1")),{attr:a,name:e,value:f}}function O(a,b,c,d){var e,f,g=a.name,h=a.value,i=a.attr,j=i.quote;if("undefined"!=typeof h&&!c.removeAttributeQuotes||!k(h)){if(!c.preventAttributesEscaping){if("undefined"==typeof c.quoteCharacter){var l=(h.match(/'/g)||[]).length,m=(h.match(/"/g)||[]).length;j=l/,/<\?[\s\S]*?\?>/]),a.minifyURLs||(a.minifyURLs=P),"function"!=typeof a.minifyURLs){var e=a.minifyURLs;"string"==typeof e?e={site:e}:"object"!=typeof e&&(e={}),a.minifyURLs=function(b){try{return Y.relate(b,e)}catch(c){return a.log(c),b}}}if(a.minifyJS||(a.minifyJS=P),"function"!=typeof a.minifyJS){var f=a.minifyJS;"object"!=typeof f&&(f={}),f.fromString=!0,(f.output||(f.output={})).inline_script=!0,a.minifyJS=function(b,c){var d=b.match(/^\s*\s*$/,""):b;try{return c&&(e=Ba+e+Ca),e=$.minify(e,f).code,c&&(e=e.slice(Ba.length,-Ca.length)),/;$/.test(e)&&(e=e.slice(0,-1)),e}catch(g){return a.log(g),b}}}if(a.minifyCSS||(a.minifyCSS=P),"function"!=typeof a.minifyCSS){var g=a.minifyCSS;"object"!=typeof g&&(g={}),"undefined"==typeof g.advanced&&(g.advanced=!1),a.minifyCSS=function(b){b=b.replace(/(url\s*\(\s*)("|'|)(.*?)\2(\s*\))/gi,function(b,c,d,e,f){return c+d+a.minifyURLs(e)+d+f});var c=b.match(/^\s*\s*$/,""):b;try{return new V(g).minify(d).styles}catch(e){return a.log(e),b}}}}function R(a){var b;do b=Math.random().toString(36).replace(/^0\.[0-9]*/,"");while(~a.indexOf(b));return b}function S(a,b,c,d){function e(a){return a.map(function(a){return b.caseSensitive?a.name:a.name.toLowerCase()})}function f(a,b){return!b||a.indexOf(b)===-1}function g(a){return f(a,c)&&f(a,d)}function h(a){var c,d;new X(a,{start:function(a,f){i&&(i[a]||(i[a]=new Z),i[a].add(e(f).filter(g)));for(var h=0,k=f.length;h-1&&h(a)}})}var i=b.sortAttributes&&Object.create(null),j=b.sortClassName&&new Z,k=b.log;if(b.log=null,b.sortAttributes=!1,b.sortClassName=!1,h(T(a,b)),b.log=k,i){var l=Object.create(null);for(var m in i)l[m]=i[m].createSorter();b.sortAttributes=function(a,b){var c=l[a];if(c){var d=Object.create(null),f=e(b);f.forEach(function(a,c){(d[a]||(d[a]=[])).push(b[c])}),c.sort(f).forEach(function(a,c){b[c]=d[a].shift()})}}}if(j){var n=j.createSorter();b.sortClassName=function(a){return n.sort(a.split(/\s+/)).join(" ")}}}function T(a,b,c){function d(a,c){return L(a)||b.canCollapseWhitespace(a,c)}function j(a,c){return M(a)||b.canTrimWhitespace(a,c)}function k(){for(var a=w.length-1;a>0&&!/^<[^\/!]/.test(w[a]);)a--;w.length=Math.max(0,a)}function l(){for(var a=w.length-1;a>0&&!/^<\//.test(w[a]);)a--;w.length=Math.max(0,a)}function m(a,c){for(var d=null;a>=0&&j(d);a--){var e=w[a],f=e.match(/^<\/([\w:-]+)>$/);if(f)d=f[1];else if(/>$/.test(e)||(w[a]=g(e,null,c,b)))break}}function n(a){var b=w.length-1;if(w.length>1){var c=w[w.length-1];/^(?:([\s\S]*?)/g,function(b,c){t||(t=R(a));var d="";return P.push(c),d});var V=b.ignoreCustomFragments.map(function(a){return a.source});if(V.length){var Y=new RegExp("\\s*(?:"+V.join("|")+")+\\s*","g");a=a.replace(Y,function(c){if(!u){u=R(a),v=new RegExp("(\\s*)"+u+"([0-9]+)(\\s*)","g");var d=b.minifyCSS;d&&(b.minifyCSS=function(a){return d(a).replace(v,function(a,b,c,d){return(b&&"\t")+u+c+(d&&"\t")})});var e=b.minifyJS;if(e){var f=new RegExp("(\\\\t|)"+u+"([0-9]+)(\\\\t|)","g");b.minifyJS=function(a,b){return e(a,b).replace(f,function(a,b,c,d){return(b&&"\t")+u+c+(d&&"\t")})}}}var g=u+T.length;return T.push(c),"\t"+g+"\t"})}(b.sortAttributes&&"function"!=typeof b.sortAttributes||b.sortClassName&&"function"!=typeof b.sortClassName)&&S(a,b,t,u),new X(a,{partialMarkup:c,html5:b.html5,start:function(a,c,e,f,g){var h=a.toLowerCase();if("svg"===h){p.push(b);var i={};for(var m in b)i[m]=b[m];i.keepClosingSlash=!0,i.caseSensitive=!0,b=i}a=b.caseSensitive?a:h,y=a,r=a,da(a)||(x=""),s=!1,z=c;var o=b.removeOptionalTags;if(o){var q=za(a);q&&F(C,a)&&k(),C="",q&&H(I,a)&&(l(),o=!G(I,a)),I=""}b.collapseWhitespace&&(A.length||n(a),j(a,c)||A.push(a),d(a,c)||B.push(a));var t="<"+a,u=f&&b.keepClosingSlash;w.push(t),b.sortAttributes&&b.sortAttributes(a,c);for(var v=[],D=c.length,E=!0;--D>=0;){var J=N(c[D],c,a,b);J&&(v.unshift(O(J,u,b,E)),E=!1)}v.length>0?(w.push(" "),w.push.apply(w,v)):o&&ja(a)&&(C=a),w.push(w.pop()+(u?"/":"")+">"),g&&!b.includeAutoGeneratedTags&&(k(),C="")},end:function(a,c,d){var e=a.toLowerCase();"svg"===e&&(b=p.pop()),a=b.caseSensitive?a:e,b.collapseWhitespace&&(A.length?a===A[A.length-1]&&A.pop():n("/"+a),B.length&&a===B[B.length-1]&&B.pop());var f=!1;a===y&&(y="",f=!s),b.removeOptionalTags&&(f&&va(C)&&k(),C="",!za(a)||!I||ya(I)||"p"===I&&oa(a)||l(),I=ka(a)?a:""),b.removeEmptyElements&&f&&K(a,c)?(k(),C="",I=""):(d&&!b.includeAutoGeneratedTags?I="":w.push(""),r="/"+a,ca(a)?f&&(x+="|"):x="")},chars:function(a,c,d){if(c=""===c?"comment":c,d=""===d?"comment":d,b.decodeEntities&&a&&!Da(y)&&(a=W(a)),b.collapseWhitespace){if(!A.length){if("comment"===c){var e=w[w.length-1];if(e.indexOf(t)===-1&&(e||(c=r),w.length>1&&(!e||!b.conservativeCollapse&&/ $/.test(x)))){var h=w.length-2;w[h]=w[h].replace(/\s+$/,function(b){return a=b+a,""})}}c&&("/nobr"===c||"wbr"===c?/^\s/.test(a)&&m(w.length-2,"br"):da("/"===c.charAt(0)?c.slice(1):c)&&(a=f(a,b,/(?:^|\s)$/.test(x)))),a=c||d?g(a,c,d,b):f(a,b,!0,!0),!a&&/\s$/.test(x)&&c&&"/"===c.charAt(0)&&m(w.length-1,d)}B.length||"html"===d||c&&d||(a=f(a,b,!1,!1,!0))}b.processScripts&&Da(y)&&(a=E(a,b,z)),o(y,z)&&(a=b.minifyJS(a)),q(y,z)&&(a=b.minifyCSS(a)),b.removeOptionalTags&&a&&(("html"===C||"body"===C&&!/^\s/.test(a))&&k(),C="",(wa(I)||xa(I)&&!/^\s/.test(a))&&l(),I=""),r=/^\s*$/.test(a)?c:"comment",b.decodeEntities&&a&&!Da(y)&&(a=a.replace(/&(#?[0-9a-zA-Z]+;)/g,"&$1").replace(/":"-->";a=h(a)?d+D(a,b)+e:b.removeComments?i(a,b)?"":"":d+a+e,b.removeOptionalTags&&a&&(C="",I=""),w.push(a)},doctype:function(a){w.push(b.useShortDoctype?"":e(a))},customAttrAssign:b.customAttrAssign,customAttrSurround:b.customAttrSurround}),b.removeOptionalTags&&(va(C)&&k(),I&&!ya(I)&&l()),b.collapseWhitespace&&n("br");var Z=U(w,b);return v&&(Z=Z.replace(v,function(a,c,d,e){var g=T[+d];return b.collapseWhitespace?("\t"!==c&&(g=c+g),"\t"!==e&&(g+=e),f(g,{preserveLineBreaks:b.preserveLineBreaks,conservativeCollapse:!0},/^\s/.test(g),/\s$/.test(g))):g})),t&&(Z=Z.replace(new RegExp("","g"),function(a,b){return P[+b]})),b.log("minified in: "+(Date.now()-J)+"ms"),Z}function U(a,b){var c,d=b.maxLineLength;if(d){for(var e,g=[],h="",i=0,j=a.length;i3){e.sort(function(a,b){return b.length-a.length}),d+="switch(str.length){";for(var f=0;f=0;)if(!b(a[c]))return!1;return!0}function v(){this._values=Object.create(null),this._size=0}function w(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function x(a,b,d,e){arguments.length<4&&(e=aa),b=b?b.split(/\s+/):[];var f=b;e&&e.PROPS&&(b=b.concat(e.PROPS));for(var g="return function AST_"+a+"(props){ if (props) { ",h=b.length;--h>=0;)g+="this."+b[h]+" = props."+b[h]+";";var i=e&&new e;(i&&i.initialize||d&&d.initialize)&&(g+="this.initialize();"),g+="}}";var j=new Function(g)();if(i&&(j.prototype=i,j.BASE=e),e&&e.SUBCLASSES.push(j),j.prototype.CTOR=j,j.PROPS=b||null,j.SELF_PROPS=f,j.SUBCLASSES=[],a&&(j.prototype.TYPE=j.TYPE=a),d)for(h in d)w(d,h)&&(/^\$/.test(h)?j[h.substr(1)]=d[h]:j.prototype[h]=d[h]);return j.DEFMETHOD=function(a,b){this.prototype[a]=b},c["AST_"+a]=j,j}function y(a,b){a.body instanceof ba?a.body._walk(b):a.body.forEach(function(a){a._walk(b)})}function z(a){this.visit=a,this.stack=[],this.directives=Object.create(null)}function A(a){return a>=97&&a<=122||a>=65&&a<=90||a>=170&&Tb.letter.test(String.fromCharCode(a))}function B(a){return a>=48&&a<=57}function C(a){return B(a)||A(a)}function D(a){return Tb.digit.test(String.fromCharCode(a))}function E(a){return Tb.non_spacing_mark.test(a)||Tb.space_combining_mark.test(a)}function F(a){return Tb.connector_punctuation.test(a)}function G(a){return!Ib(a)&&/^[a-z_$][a-z0-9_$]*$/i.test(a)}function H(a){return 36==a||95==a||A(a)}function I(a){var b=a.charCodeAt(0);return H(b)||B(b)||8204==b||8205==b||E(a)||F(a)||D(b)}function J(a){return/^[a-z_$][a-z0-9_$]*$/i.test(a)}function K(a){if(Lb.test(a))return parseInt(a.substr(2),16);if(Mb.test(a))return parseInt(a.substr(1),8);var b=parseFloat(a);return b==a?b:void 0}function L(a,b,c,d,e){this.message=a,this.filename=b,this.line=c,this.col=d,this.pos=e,this.stack=(new Error).stack}function M(a,b,c,d,e){throw new L(a,b,c,d,e)}function N(a,b,c){return a.type==b&&(null==c||a.value==c)}function O(a,b,c,d){function e(){return D.text.charAt(D.pos)}function f(a,b){var c=D.text.charAt(D.pos++);if(a&&!c)throw Ub;return Pb(c)?(D.newline_before=D.newline_before||!b,++D.line,D.col=0,b||"\r"!=c||"\n"!=e()||(++D.pos,c="\n")):++D.col,c}function g(a){for(;a-- >0;)f()}function h(a){return D.text.substr(D.pos,a.length)==a}function i(){for(var a=D.text,b=D.pos,c=D.text.length;b="0"&&b<="7"?r(b):b}function r(a){var b=e();return b>="0"&&b<="7"&&(a+=f(!0),a[0]<="3"&&(b=e())>="0"&&b<="7"&&(a+=f(!0))),"0"===a?"\0":(a.length>0&&A.has_directive("use strict")&&o("SyntaxError: Octal literals are not allowed in strict mode"),String.fromCharCode(parseInt(a,8)))}function s(a){for(var b=0;a>0;--a){var c=parseInt(f(!0),16);isNaN(c)&&o("SyntaxError: Invalid hex-character pattern in string"),b=b<<4|c}return b}function t(a){var b,c=D.regex_allowed,d=i();return d==-1?(b=D.text.substr(D.pos),D.pos=D.text.length):(b=D.text.substring(D.pos,d),D.pos=d),D.col=D.tokcol+(D.pos-D.tokpos),D.comments_before.push(l(a,b,!0)),D.regex_allowed=c,A}function u(){for(var a,b,c=!1,d="",g=!1;null!=(a=e());)if(c)"u"!=a&&o("SyntaxError: Expecting UnicodeEscapeSequence -- uXXXX"),a=q(),I(a)||o("SyntaxError: Unicode char: "+a.charCodeAt(0)+" is not valid in identifier"),d+=a,c=!1;else if("\\"==a)g=c=!0,f();else{if(!I(a))break;d+=f()}return Gb(d)&&g&&(b=d.charCodeAt(0).toString(16).toUpperCase(),d="\\u"+"0000".substr(b.length)+b+d.slice(1)),d}function v(a){function b(a){if(!e())return a;var c=a+e();return Nb(c)?(f(),b(c)):a}return l("operator",b(a||f()))}function w(){switch(f(),e()){case"/":return f(),t("comment1");case"*":return f(),G()}return D.regex_allowed?J(""):v("/")}function x(){return f(),B(e().charCodeAt(0))?p("."):l("punc",".")}function y(){var a=u();return E?l("name",a):Hb(a)?l("atom",a):Gb(a)?Nb(a)?l("operator",a):l("keyword",a):l("name",a)}function z(a,b){return function(c){try{return b(c)}catch(d){if(d!==Ub)throw d;o(a)}}}function A(a){if(null!=a)return J(a);for(;;){if(m(),k(),c){if(h("")&&D.newline_before){g(3),t("comment4");continue}}var b=e();if(!b)return l("eof");var i=b.charCodeAt(0);switch(i){case 34:case 39:return F(b);case 46:return x();case 47:var j=w();if(j===A)continue;return j}if(B(i))return p();if(Rb(b))return l("punc",f());if(Kb(b))return v();if(92==i||H(i))return y();if(!d||0!=D.pos||!h("#!"))break;g(2),t("comment5")}o("SyntaxError: Unexpected character '"+b+"'")}var D={text:a,filename:b,pos:0,tokpos:0,line:1,tokline:0,col:0,tokcol:0,newline_before:!1,regex_allowed:!1,comments_before:[],directives:{},directive_stack:[]},E=!1,F=z("SyntaxError: Unterminated string constant",function(a){for(var b=f(),c="";;){var d=f(!0,!0);if("\\"==d)d=q(!0);else if(Pb(d))o("SyntaxError: Unterminated string constant");else if(d==b)break;c+=d}var e=l("string",c);return e.quote=a,e}),G=z("SyntaxError: Unterminated multiline comment",function(){var a=D.regex_allowed,b=j("*/",!0),c=D.text.substring(D.pos,b).replace(/\r\n|\r|\u2028|\u2029/g,"\n");return g(c.length+2),D.comments_before.push(l("comment2",c,!0)),D.regex_allowed=a,A}),J=z("SyntaxError: Unterminated regular expression",function(a){for(var b,c=!1,d=!1;b=f(!0);)if(Pb(b))o("SyntaxError: Unexpected line terminator");else if(c)a+="\\"+b,c=!1;else if("["==b)d=!0,a+=b;else if("]"==b&&d)d=!1,a+=b;else{if("/"==b&&!d)break;"\\"==b?c=!0:a+=b}var e=u();try{return l("regexp",new RegExp(a,e))}catch(g){o(g.message)}});return A.context=function(a){return a&&(D=a),D},A.add_directive=function(a){D.directive_stack[D.directive_stack.length-1].push(a),void 0===D.directives[a]?D.directives[a]=1:D.directives[a]++},A.push_directives_stack=function(){D.directive_stack.push([])},A.pop_directives_stack=function(){for(var a=D.directive_stack[D.directive_stack.length-1],b=0;b0},A}function P(a,b){function c(a,b){return N(R.token,a,b)}function d(){return R.peeked||(R.peeked=R.input())}function e(){return R.prev=R.token,R.peeked?(R.token=R.peeked,R.peeked=null):R.token=R.input(),R.in_directives=R.in_directives&&("string"==R.token.type||c("punc",";")),R.token}function f(){return R.prev}function g(a,b,c,d){var e=R.input.context();M(a,e.filename,null!=b?b:e.tokline,null!=c?c:e.tokcol,null!=d?d:e.tokpos)}function i(a,b){g(b,a.line,a.col)}function j(a){null==a&&(a=R.token),i(a,"SyntaxError: Unexpected token: "+a.type+" ("+a.value+")")}function l(a,b){return c(a,b)?e():void i(R.token,"SyntaxError: Unexpected token "+R.token.type+" «"+R.token.value+"», expected "+a+" «"+b+"»")}function m(a){return l("punc",a)}function n(){return!b.strict&&(R.token.nlb||c("eof")||c("punc","}"))}function o(a){c("punc",";")?e():a||n()||j()}function p(){m("(");var a=ia(!0);return m(")"),a}function q(a){return function(){var b=R.token,c=a(),d=f();return c.start=b,c.end=d,c}}function r(){(c("operator","/")||c("operator","/="))&&(R.peeked=null,R.token=R.input(R.token.value.substr(1)))}function s(){var a=I(pb);h(function(b){return b.name==a.name},R.labels)&&g("SyntaxError: Label "+a.name+" defined twice"),m(":"),R.labels.push(a);var b=S();return R.labels.pop(),b instanceof ka||a.references.forEach(function(b){b instanceof Da&&(b=b.label.start,g("SyntaxError: Continue label `"+a.name+"` refers to non-IterationStatement.",b.line,b.col,b.pos))}),new ja({body:b,label:a})}function t(a){return new ea({body:(a=ia(!0),o(),a)})}function u(a){var b,c=null;n()||(c=I(rb,!0)),null!=c?(b=h(function(a){return a.name==c.name},R.labels),b||g("SyntaxError: Undefined label "+c.name),c.thedef=b):0==R.in_loop&&g("SyntaxError: "+a.TYPE+" not inside a loop or switch"),o();var d=new a({label:c});return b&&b.references.push(d),d}function v(){m("(");var a=null;return!c("punc",";")&&(a=c("keyword","var")?(e(),U(!0)):ia(!0,!0),c("operator","in"))?(a instanceof Na&&a.definitions.length>1&&g("SyntaxError: Only one variable declaration allowed in for..in loop"),e(),x(a)):w(a)}function w(a){m(";");var b=c("punc",";")?null:ia(!0);m(";");var d=c("punc",")")?null:ia(!0);return m(")"),new oa({init:a,condition:b,step:d,body:Q(S)})}function x(a){var b=a instanceof Na?a.definitions[0].name:null,c=ia(!0);return m(")"),new pa({init:a,name:b,object:c,body:Q(S)})}function y(){var a=p(),b=S(),d=null;return c("keyword","else")&&(e(),d=S()),new Ea({condition:a,body:b,alternative:d})}function z(){m("{");for(var a=[];!c("punc","}");)c("eof")&&j(),a.push(S());return e(),a}function A(){m("{");for(var a,b=[],d=null,g=null;!c("punc","}");)c("eof")&&j(),c("keyword","case")?(g&&(g.end=f()),d=[],g=new Ia({start:(a=R.token,e(),a),expression:ia(!0),body:d}),b.push(g),m(":")):c("keyword","default")?(g&&(g.end=f()),d=[],g=new Ha({start:(a=R.token,e(),m(":"),a),body:d}),b.push(g)):(d||j(),d.push(S()));return g&&(g.end=f()),e(),b}function B(){var a=z(),b=null,d=null;if(c("keyword","catch")){var h=R.token;e(),m("(");var i=I(ob);m(")"),b=new Ka({start:h,argname:i,body:z(),end:f()})}if(c("keyword","finally")){var h=R.token;e(),d=new La({start:h,body:z(),end:f()})}return b||d||g("SyntaxError: Missing catch/finally blocks"),new Ja({body:a,bcatch:b,bfinally:d})}function C(a,b){for(var d=[];d.push(new Pa({start:R.token,name:I(b?kb:jb),value:c("operator","=")?(e(),ia(!1,a)):null,end:f()})),c("punc",",");)e();return d}function D(){var a,b=R.token;switch(b.type){case"name":case"keyword":a=H(qb);break;case"num":a=new vb({start:b,end:b,value:b.value});break;case"string":a=new ub({start:b,end:b,value:b.value,quote:b.quote});break;case"regexp":a=new wb({start:b,end:b,value:b.value});break;case"atom":switch(b.value){case"false":a=new Eb({start:b,end:b});break;case"true":a=new Fb({start:b,end:b});break;case"null":a=new yb({start:b,end:b})}break;case"operator":J(b.value)||g("SyntaxError: Invalid getter/setter name: "+b.value,b.line,b.col,b.pos),a=H(qb)}return e(),a}function E(a,b,d){for(var f=!0,g=[];!c("punc",a)&&(f?f=!1:m(","),!b||!c("punc",a));)c("punc",",")&&d?g.push(new Bb({start:R.token,end:R.token})):g.push(ia(!1));return e(),g}function F(){var a=R.token;switch(e(),a.type){case"num":case"string":case"name":case"operator":case"keyword":case"atom":return a.value;default:j()}}function G(){var a=R.token;switch(e(),a.type){case"name":case"operator":case"keyword":case"atom":return a.value;default:j()}}function H(a){var b=R.token.value;return new("this"==b?sb:a)({name:String(b),start:R.token,end:R.token})}function I(a,b){if(!c("name"))return b||g("SyntaxError: Name expected"),null;var d=H(a);return e(),d}function K(a,b,c){return"++"!=b&&"--"!=b||P(c)||g("SyntaxError: Invalid use of "+b+" operator"),new a({operator:b,expression:c})}function L(a){return aa(_(!0),0,a)}function P(a){return!b.strict||!(a instanceof sb)&&(a instanceof Ta||a instanceof gb)}function Q(a){++R.in_loop;var b=a();return--R.in_loop,b}b=k(b,{strict:!1,filename:null,toplevel:null,expression:!1,html5_comments:!0,bare_returns:!1,shebang:!0});var R={input:"string"==typeof a?O(a,b.filename,b.html5_comments,b.shebang):a,token:null,prev:null,peeked:null,in_function:0,in_directives:!0,in_loop:0,labels:[]};R.token=e();var S=q(function(){var a;switch(r(),R.token.type){case"string":var h=!1;R.in_directives===!0&&((N(d(),"punc",";")||d().nlb)&&R.token.raw.indexOf("\\")===-1?R.input.add_directive(R.token.value):R.in_directives=!1);var h=R.in_directives,i=t();return h?new da({start:i.body.start,end:i.body.end,quote:i.body.quote,value:i.body.value}):i;case"num":case"regexp":case"operator":case"atom":return t();case"name":return N(d(),"punc",":")?s():t();case"punc":switch(R.token.value){case"{":return new ga({start:R.token,body:z(),end:f()});case"[":case"(":return t();case";":return R.in_directives=!1,e(),new ha;default:j()}case"keyword":switch(a=R.token.value,e(),a){case"break":return u(Ca);case"continue":return u(Da);case"debugger":return o(),new ca;case"do":return new ma({body:Q(S),condition:(l("keyword","while"),a=p(),o(!0),a)});case"while":return new na({condition:p(),body:Q(S)});case"for":return v();case"function":return T(wa);case"if":return y();case"return":return 0!=R.in_function||b.bare_returns||g("SyntaxError: 'return' outside of function"),new za({value:c("punc",";")?(e(),null):n()?null:(a=ia(!0),o(),a)});case"switch":return new Fa({expression:p(),body:Q(A)});case"throw":return R.token.nlb&&g("SyntaxError: Illegal newline after 'throw'"),new Aa({value:(a=ia(!0),o(),a)});case"try":return B();case"var":return a=U(),o(),a;case"const":return a=V(),o(),a;case"with":return R.input.has_directive("use strict")&&g("SyntaxError: Strict mode may not include a with statement"),new qa({expression:p(),body:S()});default:j()}}}),T=function(a){var b=a===wa,d=c("name")?I(b?mb:nb):null;return b&&!d&&j(),m("("),new a({name:d,argnames:function(a,b){for(;!c("punc",")");)a?a=!1:m(","),b.push(I(lb));return e(),b}(!0,[]),body:function(a,b){++R.in_function,R.in_directives=!0,R.input.push_directives_stack(),R.in_loop=0,R.labels=[];var c=z();return R.input.pop_directives_stack(),--R.in_function,R.in_loop=a,R.labels=b,c}(R.in_loop,R.labels)})},U=function(a){return new Na({start:f(),definitions:C(a,!1),end:f()})},V=function(){return new Oa({start:f(),definitions:C(!1,!0),end:f()})},W=function(a){var b=R.token;l("operator","new");var d,g=X(!1);return c("punc","(")?(e(),d=E(")")):d=[],$(new Ra({start:b,expression:g,args:d,end:f()}),a)},X=function(a){if(c("operator","new"))return W(a);var b=R.token;if(c("punc")){switch(b.value){case"(":e();var d=ia(!0);return d.start=b,d.end=R.token,m(")"),$(d,a);case"[":return $(Y(),a);case"{":return $(Z(),a)}j()}if(c("keyword","function")){e();var g=T(va);return g.start=b,g.end=f(),$(g,a)}return $b[R.token.type]?$(D(),a):void j()},Y=q(function(){return m("["),new ab({elements:E("]",!b.strict,!0)})}),Z=q(function(){m("{");for(var a=!0,d=[];!c("punc","}")&&(a?a=!1:m(","),b.strict||!c("punc","}"));){var g=R.token,h=g.type,i=F();if("name"==h&&!c("punc",":")){if("get"==i){d.push(new fb({start:g,key:D(),value:T(ua),end:f()}));continue}if("set"==i){d.push(new eb({start:g,key:D(),value:T(ua),end:f()}));continue}}m(":"),d.push(new db({start:g,quote:g.quote,key:i,value:ia(!1),end:f()}))}return e(),new bb({properties:d})}),$=function(a,b){var d=a.start;if(c("punc","."))return e(),$(new Ua({start:d,expression:a,property:G(),end:f()}),b);if(c("punc","[")){e();var g=ia(!0);return m("]"),$(new Va({start:d,expression:a,property:g,end:f()}),b)}return b&&c("punc","(")?(e(),$(new Qa({start:d,expression:a,args:E(")"),end:f()}),!0)):a},_=function(a){var b=R.token;if(c("operator")&&Vb(b.value)){e(),r();var d=K(Xa,b.value,_(a));return d.start=b,d.end=f(),d}for(var g=X(a);c("operator")&&Wb(R.token.value)&&!R.token.nlb;)g=K(Ya,R.token.value,g),g.start=b,g.end=R.token,e();return g},aa=function(a,b,d){var f=c("operator")?R.token.value:null;"in"==f&&d&&(f=null);var g=null!=f?Yb[f]:null;if(null!=g&&g>b){e();var h=aa(_(!0),g,d);return aa(new Za({start:a.start,left:a,operator:f,right:h,end:h.end}),b,d)}return a},ba=function(a){var b=R.token,d=L(a);if(c("operator","?")){e();var g=ia(!1);return m(":"),new $a({start:b,condition:d,consequent:g,alternative:ia(!1,a),end:f()})}return d},fa=function(a){var b=R.token,d=ba(a),h=R.token.value;if(c("operator")&&Xb(h)){if(P(d))return e(),new _a({start:b,left:d,operator:h,right:fa(a),end:f()});g("SyntaxError: Invalid assignment")}return d},ia=function(a,b){var f=R.token,g=fa(b);return a&&c("punc",",")?(e(),new Sa({start:f,car:g,cdr:ia(!0,b),end:d()})):g};return b.expression?ia(!0):function(){var a=R.token,d=[];for(R.input.push_directives_stack();!c("eof");)d.push(S());R.input.pop_directives_stack();var e=f(),g=b.toplevel;return g?(g.body=g.body.concat(d),g.end=e):g=new sa({start:a,body:d,end:e}),g}()}function Q(a,b){z.call(this),this.before=a,this.after=b}function R(a,b,c){this.name=c.name,this.orig=[c],this.scope=a,this.references=[],this.global=!1,this.mangled_name=null,this.undeclared=!1,this.constant=!1,this.index=b,this.id=R.next_id++}function S(a){function b(a,b){return a.replace(/[\u0000-\u001f\u007f-\uffff]/g,function(a){var c=a.charCodeAt(0).toString(16);if(c.length<=2&&!b){for(;c.length<2;)c="0"+c;return"\\x"+c}for(;c.length<4;)c="0"+c;return"\\u"+c})}function c(c,d){function e(){return"'"+c.replace(/\x27/g,"\\'")+"'"}function f(){return'"'+c.replace(/\x22/g,'\\"')+'"'}var g=0,h=0;switch(c=c.replace(/[\\\b\f\n\r\v\t\x22\x27\u2028\u2029\0\ufeff]/g,function(b,d){switch(b){case'"':return++g,'"';case"'":return++h,"'";case"\\":return"\\\\";case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\x0B":return a.screw_ie8?"\\v":"\\x0B";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";case"\ufeff":return"\\ufeff";case"\0":return/[0-7]/.test(c.charAt(d+1))?"\\x00":"\\0"}return b}),a.ascii_only&&(c=b(c)),a.quote_style){case 1:return e();case 2:return f();case 3:return"'"==d?e():f();default:return g>h?e():f()}}function d(b,d){var e=c(b,d);return a.inline_script&&(e=e.replace(/<\x2fscript([>\/\t\n\f\r ])/gi,"<\\/script$1"),e=e.replace(/\x3c!--/g,"\\x3c!--"),e=e.replace(/--\x3e/g,"--\\x3e")),e}function e(c){return c=c.toString(),a.ascii_only&&(c=b(c,!0)),c}function f(b){return i(" ",a.indent_start+v-b*a.indent_level)}function g(){return C.charAt(C.length-1)}function h(){a.max_line_len&&w>a.max_line_len&&j("\n")}function j(b){b=String(b);var c=b.charAt(0);if(B&&(B=!1,c&&!(";}".indexOf(c)<0)||/[;]$/.test(C)||(a.semicolons||D(c)?(z+=";",w++,y++):(z+="\n",y++,x++,w=0,/^\s+$/.test(b)&&(B=!0)),a.beautify||(A=!1))),!a.beautify&&a.preserve_line&&L[L.length-1])for(var d=L[L.length-1].start.line;x=a.width},newline:H,print:j,space:E,comma:r,colon:s,last:function(){return C},semicolon:J,force_semicolon:l,to_ascii:b,print_name:function(a){j(e(a))},print_string:function(a,b,c){var e=d(a,b);c===!0&&e.indexOf("\\")===-1&&(ac.test(z)||l(),l()),j(e)},encode_string:d,next_indent:n,with_indent:G,with_block:o,with_parens:p,with_square:q,add_mapping:K,option:function(b){return a[b]},line:function(){return x},col:function(){return w},pos:function(){return y},push_node:function(a){L.push(a)},pop_node:function(){return L.pop()},stack:function(){return L},parent:function(a){return L[L.length-2-(a||0)]}}}function T(a,b){if(!(this instanceof T))return new T(a,b);Q.call(this,this.before,this.after),this.options=k(a,{sequences:!b,properties:!b,dead_code:!b,drop_debugger:!b,unsafe:!1,unsafe_comps:!1,conditionals:!b,comparisons:!b,evaluate:!b,booleans:!b,loops:!b,unused:!b,hoist_funs:!b,keep_fargs:!0,keep_fnames:!1,hoist_vars:!1,if_return:!b,join_vars:!b,collapse_vars:!1,cascade:!b,side_effects:!b,pure_getters:!1,pure_funcs:null,negate_iife:!b,screw_ie8:!0,drop_console:!1,angular:!1,warnings:!0,global_defs:{},passes:1},!0);var c=this.options.sequences;this.sequences_limit=1==c?200:0|c,this.warnings_produced={}}function U(a){function b(b,e,f,g,h,i){if(d){var j=d.originalPositionFor({line:g,column:h});if(null===j.source)return;b=j.source,g=j.line,h=j.column,i=j.name||i}c.addMapping({generated:{line:e+a.dest_line_diff,column:f},original:{line:g+a.orig_line_diff,column:h},source:b,name:i})}a=k(a,{file:null,root:null,orig:null,orig_line_diff:0,dest_line_diff:0});var c=new Y.SourceMapGenerator({file:a.file,sourceRoot:a.root}),d=a.orig&&new Y.SourceMapConsumer(a.orig);return{add:b,get:function(){return c},toString:function(){return JSON.stringify(c.toJSON())}}}function V(){function a(a){n(b,a)}var b=[];return[Object,Array,Function,Number,String,Boolean,Error,Math,Date,RegExp].forEach(function(b){Object.getOwnPropertyNames(b).map(a),b.prototype&&Object.getOwnPropertyNames(b.prototype).map(a)}),b}function W(a,b){function c(a){return!(p.indexOf(a)>=0)&&(!(i.indexOf(a)>=0)&&(b.only_cache?j.props.has(a):!/^[0-9.]+$/.test(a)))}function d(a){return!(l&&!l.test(a))&&(!(i.indexOf(a)>=0)&&(j.props.has(a)||o.indexOf(a)>=0))}function e(a){c(a)&&n(o,a),d(a)||n(p,a)}function f(a){if(!d(a))return a;var b=j.props.get(a);if(!b){do b=_b(++j.cname);while(!c(b));j.props.set(a,b)}return b}function g(a){var b={};try{!function d(a){a.walk(new z(function(a){if(a instanceof Sa)return d(a.cdr),!0;if(a instanceof ub)return e(a.value),!0;if(a instanceof $a)return d(a.consequent),d(a.alternative),!0;throw b}))}(a)}catch(c){if(c!==b)throw c}}function h(a){return a.transform(new Q(function(a){return a instanceof Sa?a.cdr=h(a.cdr):a instanceof ub?a.value=f(a.value):a instanceof $a&&(a.consequent=h(a.consequent),a.alternative=h(a.alternative)),a}))}b=k(b,{reserved:null,cache:null,only_cache:!1,regex:null,ignore_quoted:!1});var i=b.reserved;null==i&&(i=V());var j=b.cache;null==j&&(j={cname:-1,props:new v});var l=b.regex,m=b.ignore_quoted,o=[],p=[];return a.walk(new z(function(a){a instanceof db?m&&a.quote||e(a.key):a instanceof cb?e(a.key.name):a instanceof Ua?this.parent()instanceof _a&&e(a.property):a instanceof Va&&this.parent()instanceof _a&&(m||g(a.property))})),a.transform(new Q(function(a){a instanceof db?m&&a.quote||(a.key=f(a.key)):a instanceof cb?a.key.name=f(a.key.name):a instanceof Ua?a.property=f(a.property):a instanceof Va&&(m||(a.property=h(a.property)))}))}var X=a("util"),Y=a("source-map"),Z=c;j.prototype=Object.create(Error.prototype),j.prototype.constructor=j,j.croak=function(a,b){throw new j(a,b)};var $=function(){function a(a,f,g){function h(){var h=f(a[i],i),l=h instanceof d;return l&&(h=h.v),h instanceof b?(h=h.v,h instanceof c?k.push.apply(k,g?h.v.slice().reverse():h.v):k.push(h)):h!==e&&(h instanceof c?j.push.apply(j,g?h.v.slice().reverse():h.v):j.push(h)),l}var i,j=[],k=[];if(a instanceof Array)if(g){for(i=a.length;--i>=0&&!h(););j.reverse(),k.reverse()}else for(i=0;i SymbolDef for all variables/functions defined in this scope",functions:"[Object/S] like `variables`, but only lists function declarations",uses_with:"[boolean/S] tells whether this scope uses the `with` statement",uses_eval:"[boolean/S] tells whether this scope contains a direct call to the global `eval`",parent_scope:"[AST_Scope?/S] link to the parent scope",enclosed:"[SymbolDef*/S] a list of all symbol definitions that are accessed from this scope or any subscopes",cname:"[integer/S] current index for mangling variables (used internally by the mangler)"}},fa),sa=x("Toplevel","globals",{$documentation:"The toplevel scope",$propdoc:{globals:"[Object/S] a map of name -> SymbolDef for all undeclared names"},wrap_enclose:function(a){var b=this,c=[],d=[];a.forEach(function(a){var b=a.lastIndexOf(":");c.push(a.substr(0,b)),d.push(a.substr(b+1))});var e="(function("+d.join(",")+"){ '$ORIG'; })("+c.join(",")+")";return e=P(e),e=e.transform(new Q(function(a){if(a instanceof da&&"$ORIG"==a.value)return $.splice(b.body)}))},wrap_commonjs:function(a,b){var c=this,d=[];b&&(c.figure_out_scope(),c.walk(new z(function(a){a instanceof ib&&a.definition().global&&(h(function(b){return b.name==a.name},d)||d.push(a))})));var e="(function(exports, global){ '$ORIG'; '$EXPORTS'; global['"+a+"'] = exports; }({}, (function(){return this}())))";return e=P(e),e=e.transform(new Q(function(a){if(a instanceof da)switch(a.value){ +case"$ORIG":return $.splice(c.body);case"$EXPORTS":var b=[];return d.forEach(function(a){b.push(new ea({body:new _a({left:new Va({expression:new qb({name:"exports"}),property:new ub({value:a.name})}),operator:"=",right:new qb(a)})}))}),$.splice(b)}}))}},ra),ta=x("Lambda","name argnames uses_arguments",{$documentation:"Base class for functions",$propdoc:{name:"[AST_SymbolDeclaration?] the name of this function",argnames:"[AST_SymbolFunarg*] array of function arguments",uses_arguments:"[boolean/S] tells whether this function accesses the arguments array"},_walk:function(a){return a._visit(this,function(){this.name&&this.name._walk(a),this.argnames.forEach(function(b){b._walk(a)}),y(this,a)})}},ra),ua=x("Accessor",null,{$documentation:"A setter/getter function. The `name` property is always null."},ta),va=x("Function",null,{$documentation:"A function expression"},ta),wa=x("Defun",null,{$documentation:"A function definition"},ta),xa=x("Jump",null,{$documentation:"Base class for “jumps” (for now that's `return`, `throw`, `break` and `continue`)"},ba),ya=x("Exit","value",{$documentation:"Base class for “exits” (`return` and `throw`)",$propdoc:{value:"[AST_Node?] the value returned or thrown by this statement; could be null for AST_Return"},_walk:function(a){return a._visit(this,this.value&&function(){this.value._walk(a)})}},xa),za=x("Return",null,{$documentation:"A `return` statement"},ya),Aa=x("Throw",null,{$documentation:"A `throw` statement"},ya),Ba=x("LoopControl","label",{$documentation:"Base class for loop control statements (`break` and `continue`)",$propdoc:{label:"[AST_LabelRef?] the label, or null if none"},_walk:function(a){return a._visit(this,this.label&&function(){this.label._walk(a)})}},xa),Ca=x("Break",null,{$documentation:"A `break` statement"},Ba),Da=x("Continue",null,{$documentation:"A `continue` statement"},Ba),Ea=x("If","condition alternative",{$documentation:"A `if` statement",$propdoc:{condition:"[AST_Node] the `if` condition",alternative:"[AST_Statement?] the `else` part, or null if not present"},_walk:function(a){return a._visit(this,function(){this.condition._walk(a),this.body._walk(a),this.alternative&&this.alternative._walk(a)})}},ia),Fa=x("Switch","expression",{$documentation:"A `switch` statement",$propdoc:{expression:"[AST_Node] the `switch` “discriminant”"},_walk:function(a){return a._visit(this,function(){this.expression._walk(a),y(this,a)})}},fa),Ga=x("SwitchBranch",null,{$documentation:"Base class for `switch` branches"},fa),Ha=x("Default",null,{$documentation:"A `default` switch branch"},Ga),Ia=x("Case","expression",{$documentation:"A `case` switch branch",$propdoc:{expression:"[AST_Node] the `case` expression"},_walk:function(a){return a._visit(this,function(){this.expression._walk(a),y(this,a)})}},Ga),Ja=x("Try","bcatch bfinally",{$documentation:"A `try` statement",$propdoc:{bcatch:"[AST_Catch?] the catch block, or null if not present",bfinally:"[AST_Finally?] the finally block, or null if not present"},_walk:function(a){return a._visit(this,function(){y(this,a),this.bcatch&&this.bcatch._walk(a),this.bfinally&&this.bfinally._walk(a)})}},fa),Ka=x("Catch","argname",{$documentation:"A `catch` node; only makes sense as part of a `try` statement",$propdoc:{argname:"[AST_SymbolCatch] symbol for the exception"},_walk:function(a){return a._visit(this,function(){this.argname._walk(a),y(this,a)})}},fa),La=x("Finally",null,{$documentation:"A `finally` node; only makes sense as part of a `try` statement"},fa),Ma=x("Definitions","definitions",{$documentation:"Base class for `var` or `const` nodes (variable declarations/initializations)",$propdoc:{definitions:"[AST_VarDef*] array of variable definitions"},_walk:function(a){return a._visit(this,function(){this.definitions.forEach(function(b){b._walk(a)})})}},ba),Na=x("Var",null,{$documentation:"A `var` statement"},Ma),Oa=x("Const",null,{$documentation:"A `const` statement"},Ma),Pa=x("VarDef","name value",{$documentation:"A variable declaration; only appears in a AST_Definitions node",$propdoc:{name:"[AST_SymbolVar|AST_SymbolConst] name of the variable",value:"[AST_Node?] initializer, or null of there's no initializer"},_walk:function(a){return a._visit(this,function(){this.name._walk(a),this.value&&this.value._walk(a)})}}),Qa=x("Call","expression args",{$documentation:"A function call expression",$propdoc:{expression:"[AST_Node] expression to invoke as function",args:"[AST_Node*] array of arguments"},_walk:function(a){return a._visit(this,function(){this.expression._walk(a),this.args.forEach(function(b){b._walk(a)})})}}),Ra=x("New",null,{$documentation:"An object instantiation. Derives from a function call since it has exactly the same properties"},Qa),Sa=x("Seq","car cdr",{$documentation:"A sequence expression (two comma-separated expressions)",$propdoc:{car:"[AST_Node] first element in sequence",cdr:"[AST_Node] second element in sequence"},$cons:function(a,b){var c=new Sa(a);return c.car=a,c.cdr=b,c},$from_array:function(a){if(0==a.length)return null;if(1==a.length)return a[0].clone();for(var b=null,c=a.length;--c>=0;)b=Sa.cons(a[c],b);for(var d=b;d;){if(d.cdr&&!d.cdr.cdr){d.cdr=d.cdr.car;break}d=d.cdr}return b},to_array:function(){for(var a=this,b=[];a;){if(b.push(a.car),a.cdr&&!(a.cdr instanceof Sa)){b.push(a.cdr);break}a=a.cdr}return b},add:function(a){for(var b=this;b;){if(!(b.cdr instanceof Sa)){var c=Sa.cons(b.cdr,a);return b.cdr=c}b=b.cdr}},len:function(){return this.cdr instanceof Sa?this.cdr.len()+1:2},_walk:function(a){return a._visit(this,function(){this.car._walk(a),this.cdr&&this.cdr._walk(a)})}}),Ta=x("PropAccess","expression property",{$documentation:'Base class for property access expressions, i.e. `a.foo` or `a["foo"]`',$propdoc:{expression:"[AST_Node] the “container” expression",property:"[AST_Node|string] the property to access. For AST_Dot this is always a plain string, while for AST_Sub it's an arbitrary AST_Node"}}),Ua=x("Dot",null,{$documentation:"A dotted property access expression",_walk:function(a){return a._visit(this,function(){this.expression._walk(a)})}},Ta),Va=x("Sub",null,{$documentation:'Index-style property access, i.e. `a["foo"]`',_walk:function(a){return a._visit(this,function(){this.expression._walk(a),this.property._walk(a)})}},Ta),Wa=x("Unary","operator expression",{$documentation:"Base class for unary expressions",$propdoc:{operator:"[string] the operator",expression:"[AST_Node] expression that this unary operator applies to"},_walk:function(a){return a._visit(this,function(){this.expression._walk(a)})}}),Xa=x("UnaryPrefix",null,{$documentation:"Unary prefix expression, i.e. `typeof i` or `++i`"},Wa),Ya=x("UnaryPostfix",null,{$documentation:"Unary postfix expression, i.e. `i++`"},Wa),Za=x("Binary","left operator right",{$documentation:"Binary expression, i.e. `a + b`",$propdoc:{left:"[AST_Node] left-hand side expression",operator:"[string] the operator",right:"[AST_Node] right-hand side expression"},_walk:function(a){return a._visit(this,function(){this.left._walk(a),this.right._walk(a)})}}),$a=x("Conditional","condition consequent alternative",{$documentation:"Conditional expression using the ternary operator, i.e. `a ? b : c`",$propdoc:{condition:"[AST_Node]",consequent:"[AST_Node]",alternative:"[AST_Node]"},_walk:function(a){return a._visit(this,function(){this.condition._walk(a),this.consequent._walk(a),this.alternative._walk(a)})}}),_a=x("Assign",null,{$documentation:"An assignment expression — `a = b + 5`"},Za),ab=x("Array","elements",{$documentation:"An array literal",$propdoc:{elements:"[AST_Node*] array of elements"},_walk:function(a){return a._visit(this,function(){this.elements.forEach(function(b){b._walk(a)})})}}),bb=x("Object","properties",{$documentation:"An object literal",$propdoc:{properties:"[AST_ObjectProperty*] array of properties"},_walk:function(a){return a._visit(this,function(){this.properties.forEach(function(b){b._walk(a)})})}}),cb=x("ObjectProperty","key value",{$documentation:"Base class for literal object properties",$propdoc:{key:"[string] the property name converted to a string for ObjectKeyVal. For setters and getters this is an arbitrary AST_Node.",value:"[AST_Node] property value. For setters and getters this is an AST_Function."},_walk:function(a){return a._visit(this,function(){this.value._walk(a)})}}),db=x("ObjectKeyVal","quote",{$documentation:"A key: value object property",$propdoc:{quote:"[string] the original quote character"}},cb),eb=x("ObjectSetter",null,{$documentation:"An object setter property"},cb),fb=x("ObjectGetter",null,{$documentation:"An object getter property"},cb),gb=x("Symbol","scope name thedef",{$propdoc:{name:"[string] name of this symbol",scope:"[AST_Scope/S] the current scope (not necessarily the definition scope)",thedef:"[SymbolDef/S] the definition of this symbol"},$documentation:"Base class for all symbols"}),hb=x("SymbolAccessor",null,{$documentation:"The name of a property accessor (setter/getter function)"},gb),ib=x("SymbolDeclaration","init",{$documentation:"A declaration symbol (symbol in var/const, function name or argument, symbol in catch)",$propdoc:{init:"[AST_Node*/S] array of initializers for this declaration."}},gb),jb=x("SymbolVar",null,{$documentation:"Symbol defining a variable"},ib),kb=x("SymbolConst",null,{$documentation:"A constant declaration"},ib),lb=x("SymbolFunarg",null,{$documentation:"Symbol naming a function argument"},jb),mb=x("SymbolDefun",null,{$documentation:"Symbol defining a function"},ib),nb=x("SymbolLambda",null,{$documentation:"Symbol naming a function expression"},ib),ob=x("SymbolCatch",null,{$documentation:"Symbol naming the exception in catch"},ib),pb=x("Label","references",{$documentation:"Symbol naming a label (declaration)",$propdoc:{references:"[AST_LoopControl*] a list of nodes referring to this label"},initialize:function(){this.references=[],this.thedef=this}},gb),qb=x("SymbolRef",null,{$documentation:"Reference to some symbol (not definition/declaration)"},gb),rb=x("LabelRef",null,{$documentation:"Reference to a label symbol"},gb),sb=x("This",null,{$documentation:"The `this` symbol"},gb),tb=x("Constant",null,{$documentation:"Base class for all constants",getValue:function(){return this.value}}),ub=x("String","value quote",{$documentation:"A string literal",$propdoc:{value:"[string] the contents of this string",quote:"[string] the original quote character"}},tb),vb=x("Number","value literal",{$documentation:"A number literal",$propdoc:{value:"[number] the numeric value",literal:"[string] numeric value as string (optional)"}},tb),wb=x("RegExp","value",{$documentation:"A regexp literal",$propdoc:{value:"[RegExp] the actual regexp"}},tb),xb=x("Atom",null,{$documentation:"Base class for atoms"},tb),yb=x("Null",null,{$documentation:"The `null` atom",value:null},xb),zb=x("NaN",null,{$documentation:"The impossible value",value:NaN},xb),Ab=x("Undefined",null,{$documentation:"The `undefined` value",value:void 0},xb),Bb=x("Hole",null,{$documentation:"A hole in an array",value:void 0},xb),Cb=x("Infinity",null,{$documentation:"The `Infinity` value",value:1/0},xb),Db=x("Boolean",null,{$documentation:"Base class for booleans"},xb),Eb=x("False",null,{$documentation:"The `false` atom",value:!1},Db),Fb=x("True",null,{$documentation:"The `true` atom",value:!0},Db);z.prototype={_visit:function(a,b){this.push(a);var c=this.visit(a,b?function(){b.call(a)}:m);return!c&&b&&b.call(a),this.pop(a),c},parent:function(a){return this.stack[this.stack.length-2-(a||0)]},push:function(a){a instanceof ta?this.directives=Object.create(this.directives):a instanceof da&&(this.directives[a.value]=!this.directives[a.value]||"up"),this.stack.push(a)},pop:function(a){this.stack.pop(),a instanceof ta&&(this.directives=Object.getPrototypeOf(this.directives))},self:function(){return this.stack[this.stack.length-1]},find_parent:function(a){for(var b=this.stack,c=b.length;--c>=0;){var d=b[c];if(d instanceof a)return d}},has_directive:function(a){var b=this.directives[a];if(b)return b;var c=this.stack[this.stack.length-1];if(c instanceof ra)for(var d=0;d0;){var d=a[--b];if(d instanceof Ea&&d.condition===c||d instanceof $a&&d.condition===c||d instanceof la&&d.condition===c||d instanceof oa&&d.condition===c||d instanceof Xa&&"!"==d.operator&&d.expression===c)return!0;if(!(d instanceof Za)||"&&"!=d.operator&&"||"!=d.operator)return!1;c=d}},loopcontrol_target:function(a){var b=this.stack;if(a)for(var c=b.length;--c>=0;){var d=b[c];if(d instanceof ja&&d.label.name==a.name)return d.body}else for(var c=b.length;--c>=0;){var d=b[c];if(d instanceof Fa||d instanceof ka)return d}}};var Gb="break case catch const continue debugger default delete do else finally for function if in instanceof new return switch throw try typeof var void while with",Hb="false null true",Ib="abstract boolean byte char class double enum export extends final float goto implements import int interface let long native package private protected public short static super synchronized this throws transient volatile yield "+Hb+" "+Gb,Jb="return new delete throw else case";Gb=t(Gb),Ib=t(Ib),Jb=t(Jb),Hb=t(Hb);var Kb=t(f("+-*&%=<>!?|~^")),Lb=/^0x[0-9a-f]+$/i,Mb=/^0[0-7]+$/,Nb=t(["in","instanceof","typeof","new","void","delete","++","--","+","-","!","~","&","|","^","*","/","%",">>","<<",">>>","<",">","<=",">=","==","===","!=","!==","?","=","+=","-=","/=","*=","%=",">>=","<<=",">>>=","|=","^=","&=","&&","||"]),Ob=t(f("  \n\r\t\f\x0B​           \u2028\u2029   \ufeff")),Pb=t(f("\n\r\u2028\u2029")),Qb=t(f("[{(,.;:")),Rb=t(f("[]{}(),;:")),Sb=t(f("gmsiy")),Tb={letter:new RegExp("[\\u0041-\\u005A\\u0061-\\u007A\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"),digit:new RegExp("[\\u0030-\\u0039\\u0660-\\u0669\\u06F0-\\u06F9\\u07C0-\\u07C9\\u0966-\\u096F\\u09E6-\\u09EF\\u0A66-\\u0A6F\\u0AE6-\\u0AEF\\u0B66-\\u0B6F\\u0BE6-\\u0BEF\\u0C66-\\u0C6F\\u0CE6-\\u0CEF\\u0D66-\\u0D6F\\u0DE6-\\u0DEF\\u0E50-\\u0E59\\u0ED0-\\u0ED9\\u0F20-\\u0F29\\u1040-\\u1049\\u1090-\\u1099\\u17E0-\\u17E9\\u1810-\\u1819\\u1946-\\u194F\\u19D0-\\u19D9\\u1A80-\\u1A89\\u1A90-\\u1A99\\u1B50-\\u1B59\\u1BB0-\\u1BB9\\u1C40-\\u1C49\\u1C50-\\u1C59\\uA620-\\uA629\\uA8D0-\\uA8D9\\uA900-\\uA909\\uA9D0-\\uA9D9\\uA9F0-\\uA9F9\\uAA50-\\uAA59\\uABF0-\\uABF9\\uFF10-\\uFF19]"),non_spacing_mark:new RegExp("[\\u0300-\\u036F\\u0483-\\u0487\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0610-\\u061A\\u064B-\\u065E\\u0670\\u06D6-\\u06DC\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0900-\\u0902\\u093C\\u0941-\\u0948\\u094D\\u0951-\\u0955\\u0962\\u0963\\u0981\\u09BC\\u09C1-\\u09C4\\u09CD\\u09E2\\u09E3\\u0A01\\u0A02\\u0A3C\\u0A41\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70\\u0A71\\u0A75\\u0A81\\u0A82\\u0ABC\\u0AC1-\\u0AC5\\u0AC7\\u0AC8\\u0ACD\\u0AE2\\u0AE3\\u0B01\\u0B3C\\u0B3F\\u0B41-\\u0B44\\u0B4D\\u0B56\\u0B62\\u0B63\\u0B82\\u0BC0\\u0BCD\\u0C3E-\\u0C40\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0CBC\\u0CBF\\u0CC6\\u0CCC\\u0CCD\\u0CE2\\u0CE3\\u0D41-\\u0D44\\u0D4D\\u0D62\\u0D63\\u0DCA\\u0DD2-\\u0DD4\\u0DD6\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB4-\\u0EB9\\u0EBB\\u0EBC\\u0EC8-\\u0ECD\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F71-\\u0F7E\\u0F80-\\u0F84\\u0F86\\u0F87\\u0F90-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102D-\\u1030\\u1032-\\u1037\\u1039\\u103A\\u103D\\u103E\\u1058\\u1059\\u105E-\\u1060\\u1071-\\u1074\\u1082\\u1085\\u1086\\u108D\\u109D\\u135F\\u1712-\\u1714\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B7-\\u17BD\\u17C6\\u17C9-\\u17D3\\u17DD\\u180B-\\u180D\\u18A9\\u1920-\\u1922\\u1927\\u1928\\u1932\\u1939-\\u193B\\u1A17\\u1A18\\u1A56\\u1A58-\\u1A5E\\u1A60\\u1A62\\u1A65-\\u1A6C\\u1A73-\\u1A7C\\u1A7F\\u1B00-\\u1B03\\u1B34\\u1B36-\\u1B3A\\u1B3C\\u1B42\\u1B6B-\\u1B73\\u1B80\\u1B81\\u1BA2-\\u1BA5\\u1BA8\\u1BA9\\u1C2C-\\u1C33\\u1C36\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE0\\u1CE2-\\u1CE8\\u1CED\\u1DC0-\\u1DE6\\u1DFD-\\u1DFF\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2CEF-\\u2CF1\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\uA66F\\uA67C\\uA67D\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA825\\uA826\\uA8C4\\uA8E0-\\uA8F1\\uA926-\\uA92D\\uA947-\\uA951\\uA980-\\uA982\\uA9B3\\uA9B6-\\uA9B9\\uA9BC\\uAA29-\\uAA2E\\uAA31\\uAA32\\uAA35\\uAA36\\uAA43\\uAA4C\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uABE5\\uABE8\\uABED\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE26]"),space_combining_mark:new RegExp("[\\u0903\\u093E-\\u0940\\u0949-\\u094C\\u094E\\u0982\\u0983\\u09BE-\\u09C0\\u09C7\\u09C8\\u09CB\\u09CC\\u09D7\\u0A03\\u0A3E-\\u0A40\\u0A83\\u0ABE-\\u0AC0\\u0AC9\\u0ACB\\u0ACC\\u0B02\\u0B03\\u0B3E\\u0B40\\u0B47\\u0B48\\u0B4B\\u0B4C\\u0B57\\u0BBE\\u0BBF\\u0BC1\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCC\\u0BD7\\u0C01-\\u0C03\\u0C41-\\u0C44\\u0C82\\u0C83\\u0CBE\\u0CC0-\\u0CC4\\u0CC7\\u0CC8\\u0CCA\\u0CCB\\u0CD5\\u0CD6\\u0D02\\u0D03\\u0D3E-\\u0D40\\u0D46-\\u0D48\\u0D4A-\\u0D4C\\u0D57\\u0D82\\u0D83\\u0DCF-\\u0DD1\\u0DD8-\\u0DDF\\u0DF2\\u0DF3\\u0F3E\\u0F3F\\u0F7F\\u102B\\u102C\\u1031\\u1038\\u103B\\u103C\\u1056\\u1057\\u1062-\\u1064\\u1067-\\u106D\\u1083\\u1084\\u1087-\\u108C\\u108F\\u109A-\\u109C\\u17B6\\u17BE-\\u17C5\\u17C7\\u17C8\\u1923-\\u1926\\u1929-\\u192B\\u1930\\u1931\\u1933-\\u1938\\u19B0-\\u19C0\\u19C8\\u19C9\\u1A19-\\u1A1B\\u1A55\\u1A57\\u1A61\\u1A63\\u1A64\\u1A6D-\\u1A72\\u1B04\\u1B35\\u1B3B\\u1B3D-\\u1B41\\u1B43\\u1B44\\u1B82\\u1BA1\\u1BA6\\u1BA7\\u1BAA\\u1C24-\\u1C2B\\u1C34\\u1C35\\u1CE1\\u1CF2\\uA823\\uA824\\uA827\\uA880\\uA881\\uA8B4-\\uA8C3\\uA952\\uA953\\uA983\\uA9B4\\uA9B5\\uA9BA\\uA9BB\\uA9BD-\\uA9C0\\uAA2F\\uAA30\\uAA33\\uAA34\\uAA4D\\uAA7B\\uABE3\\uABE4\\uABE6\\uABE7\\uABE9\\uABEA\\uABEC]"),connector_punctuation:new RegExp("[\\u005F\\u203F\\u2040\\u2054\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFF3F]")};L.prototype.toString=function(){return this.message+" (line: "+this.line+", col: "+this.col+", pos: "+this.pos+")\n\n"+this.stack};var Ub={},Vb=t(["typeof","void","delete","--","++","!","~","-","+"]),Wb=t(["--","++"]),Xb=t(["=","+=","-=","/=","*=","%=",">>=","<<=",">>>=","|=","^=","&="]),Yb=function(a,b){for(var c=0;c","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]],{}),Zb=d(["for","do","while","switch"]),$b=d(["atom","num","string","regexp","name"]);Q.prototype=new z,function(a){function b(b,c){b.DEFMETHOD("transform",function(b,d){var e,f;return b.push(this),b.before&&(e=b.before(this,c,d)),e===a&&(b.after?(b.stack[b.stack.length-1]=e=this,c(e,b),f=b.after(e,d),f!==a&&(e=f)):(e=this,c(e,b))),b.pop(this),e})}function c(a,b){return $(a,function(a){return a.transform(b,!0)})}b(aa,m),b(ja,function(a,b){a.label=a.label.transform(b),a.body=a.body.transform(b)}),b(ea,function(a,b){a.body=a.body.transform(b)}),b(fa,function(a,b){a.body=c(a.body,b)}),b(la,function(a,b){a.condition=a.condition.transform(b),a.body=a.body.transform(b)}),b(oa,function(a,b){a.init&&(a.init=a.init.transform(b)),a.condition&&(a.condition=a.condition.transform(b)),a.step&&(a.step=a.step.transform(b)),a.body=a.body.transform(b)}),b(pa,function(a,b){a.init=a.init.transform(b),a.object=a.object.transform(b),a.body=a.body.transform(b)}),b(qa,function(a,b){a.expression=a.expression.transform(b),a.body=a.body.transform(b)}),b(ya,function(a,b){a.value&&(a.value=a.value.transform(b))}),b(Ba,function(a,b){a.label&&(a.label=a.label.transform(b))}),b(Ea,function(a,b){a.condition=a.condition.transform(b),a.body=a.body.transform(b),a.alternative&&(a.alternative=a.alternative.transform(b))}),b(Fa,function(a,b){a.expression=a.expression.transform(b),a.body=c(a.body,b)}),b(Ia,function(a,b){a.expression=a.expression.transform(b),a.body=c(a.body,b)}),b(Ja,function(a,b){a.body=c(a.body,b),a.bcatch&&(a.bcatch=a.bcatch.transform(b)),a.bfinally&&(a.bfinally=a.bfinally.transform(b))}),b(Ka,function(a,b){a.argname=a.argname.transform(b),a.body=c(a.body,b)}),b(Ma,function(a,b){a.definitions=c(a.definitions,b)}),b(Pa,function(a,b){a.name=a.name.transform(b),a.value&&(a.value=a.value.transform(b))}),b(ta,function(a,b){a.name&&(a.name=a.name.transform(b)),a.argnames=c(a.argnames,b),a.body=c(a.body,b)}),b(Qa,function(a,b){a.expression=a.expression.transform(b),a.args=c(a.args,b)}),b(Sa,function(a,b){a.car=a.car.transform(b),a.cdr=a.cdr.transform(b)}),b(Ua,function(a,b){a.expression=a.expression.transform(b)}),b(Va,function(a,b){a.expression=a.expression.transform(b),a.property=a.property.transform(b)}),b(Wa,function(a,b){a.expression=a.expression.transform(b)}),b(Za,function(a,b){a.left=a.left.transform(b),a.right=a.right.transform(b)}),b($a,function(a,b){a.condition=a.condition.transform(b),a.consequent=a.consequent.transform(b),a.alternative=a.alternative.transform(b)}),b(ab,function(a,b){a.elements=c(a.elements,b)}),b(bb,function(a,b){a.properties=c(a.properties,b)}),b(cb,function(a,b){a.value=a.value.transform(b)})}(),R.next_id=1,R.prototype={unmangleable:function(a){return a||(a={}),this.global&&!a.toplevel||this.undeclared||!a.eval&&(this.scope.uses_eval||this.scope.uses_with)||a.keep_fnames&&(this.orig[0]instanceof nb||this.orig[0]instanceof mb)},mangle:function(a){var b=a.cache&&a.cache.props;if(this.global&&b&&b.has(this.name))this.mangled_name=b.get(this.name);else if(!this.mangled_name&&!this.unmangleable(a)){var c=this.scope;!a.screw_ie8&&this.orig[0]instanceof nb&&(c=c.parent_scope),this.mangled_name=c.next_mangled(a,this),this.global&&b&&b.set(this.name,this.mangled_name)}}},sa.DEFMETHOD("figure_out_scope",function(a){a=k(a,{screw_ie8:!0,cache:null});var b=this,c=b.parent_scope=null,d=new v,e=null,f=!1,g=0,h=new z(function(b,i){if(a.screw_ie8&&b instanceof Ka){var j=c;return c=new ra(b),c.init_scope_vars(g),c.parent_scope=j,i(),c=j,!0}if(b instanceof ra){b.init_scope_vars(g);var j=b.parent_scope=c,k=e,l=d;return e=c=b,d=new v,++g,i(),--g,c=j,e=k,d=l,!0}if(b instanceof ja){var m=b.label;if(d.has(m.name))throw new Error(o("Label {name} defined twice",m));return d.set(m.name,m),i(),d.del(m.name),!0}if(b instanceof qa)for(var n=c;n;n=n.parent_scope)n.uses_with=!0;else if(b instanceof gb&&(b.scope=c),b instanceof pb&&(b.thedef=b,b.references=[]),b instanceof nb)e.def_function(b);else if(b instanceof mb)(b.scope=e.parent_scope).def_function(b);else if(b instanceof Na)f=b.has_const_pragma();else if(b instanceof jb||b instanceof kb){var p=e.def_variable(b);p.constant=b instanceof kb||f,p.init=h.parent().value}else if(b instanceof ob)(a.screw_ie8?c:e).def_variable(b);else if(b instanceof rb){var q=d.get(b.name);if(!q)throw new Error(o("Undefined label {name} [{line},{col}]",{name:b.name,line:b.start.line,col:b.start.col}));b.thedef=q}});b.walk(h);var i=null,j=b.globals=new v,h=new z(function(a,c){if(a instanceof ta){var d=i;return i=a,c(),i=d,!0}if(a instanceof Ba&&a.label)return a.label.thedef.references.push(a),!0;if(a instanceof qb){var e=a.name;if("eval"==e&&h.parent()instanceof Qa)for(var f=a.scope;f&&!f.uses_eval;f=f.parent_scope)f.uses_eval=!0;var g=a.scope.find_variable(e);if(g)a.thedef=g;else{var k;j.has(e)?k=j.get(e):(k=new R(b,j.size(),a),k.undeclared=!0,k.global=!0,j.set(e,k)),a.thedef=k,i&&"arguments"==e&&(i.uses_arguments=!0)}return a.reference(),!0}});b.walk(h),a.cache&&(this.cname=a.cache.cname)}),ra.DEFMETHOD("init_scope_vars",function(a){this.variables=new v,this.functions=new v,this.uses_with=!1,this.uses_eval=!1,this.parent_scope=null,this.enclosed=[],this.cname=-1,this.nesting=a}),ta.DEFMETHOD("init_scope_vars",function(){ra.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1;var a=new Pa({name:"arguments",start:this.start,end:this.end}),b=new R(this,this.variables.size(),a);this.variables.set(a.name,b)}),qb.DEFMETHOD("reference",function(){var a=this.definition();a.references.push(this);for(var b=this.scope;b&&(n(b.enclosed,a),b!==a.scope);)b=b.parent_scope;this.frame=this.scope.nesting-a.scope.nesting}),ra.DEFMETHOD("find_variable",function(a){return a instanceof gb&&(a=a.name),this.variables.get(a)||this.parent_scope&&this.parent_scope.find_variable(a)}),ra.DEFMETHOD("def_function",function(a){this.functions.set(a.name,this.def_variable(a))}),ra.DEFMETHOD("def_variable",function(a){var b;return this.variables.has(a.name)?(b=this.variables.get(a.name),b.orig.push(a)):(b=new R(this,this.variables.size(),a),this.variables.set(a.name,b),b.global=!this.parent_scope),a.thedef=b}),ra.DEFMETHOD("next_mangled",function(a){var b=this.enclosed;a:for(;;){var c=_b(++this.cname);if(G(c)&&!(a.except.indexOf(c)>=0)){for(var d=b.length;--d>=0;){var e=b[d],f=e.mangled_name||e.unmangleable(a)&&e.name;if(c==f)continue a}return c}}}),va.DEFMETHOD("next_mangled",function(a,b){for(var c=b.orig[0]instanceof lb&&this.name&&this.name.definition();;){var d=ta.prototype.next_mangled.call(this,a,b);if(!c||c.mangled_name!=d)return d}}),ra.DEFMETHOD("references",function(a){return a instanceof gb&&(a=a.definition()),this.enclosed.indexOf(a)<0?null:a}),gb.DEFMETHOD("unmangleable",function(a){return this.definition().unmangleable(a)}),hb.DEFMETHOD("unmangleable",function(){return!0}),pb.DEFMETHOD("unmangleable",function(){return!1}),gb.DEFMETHOD("unreferenced",function(){return 0==this.definition().references.length&&!(this.scope.uses_eval||this.scope.uses_with)}),gb.DEFMETHOD("undeclared",function(){return this.definition().undeclared}),rb.DEFMETHOD("undeclared",function(){return!1}),pb.DEFMETHOD("undeclared",function(){return!1}),gb.DEFMETHOD("definition",function(){return this.thedef}),gb.DEFMETHOD("global",function(){return this.definition().global}),Na.DEFMETHOD("has_const_pragma",function(){var a=this.start&&this.start.comments_before,b=a&&a[a.length-1];return b&&/@const\b/.test(b.value)}),sa.DEFMETHOD("_default_mangler_options",function(a){return k(a,{except:[],eval:!1,sort:!1,toplevel:!1,screw_ie8:!0,keep_fnames:!1})}),sa.DEFMETHOD("mangle_names",function(a){a=this._default_mangler_options(a),a.except.push("arguments");var b=-1,c=[];a.cache&&this.globals.each(function(b){a.except.indexOf(b.name)<0&&c.push(b)});var d=new z(function(e,f){if(e instanceof ja){var g=b;return f(),b=g,!0}if(e instanceof ra){var h=(d.parent(),[]);return e.variables.each(function(b){a.except.indexOf(b.name)<0&&h.push(b)}),void c.push.apply(c,h)}if(e instanceof pb){var i;do i=_b(++b);while(!G(i));return e.mangled_name=i,!0}if(a.screw_ie8&&e instanceof ob)return void c.push(e.definition())});this.walk(d),c.forEach(function(b){b.mangle(a)}),a.cache&&(a.cache.cname=this.cname)}),sa.DEFMETHOD("compute_char_frequency",function(a){a=this._default_mangler_options(a);var b=new z(function(b){b instanceof tb?_b.consider(b.print_to_string()):b instanceof za?_b.consider("return"):b instanceof Aa?_b.consider("throw"):b instanceof Da?_b.consider("continue"):b instanceof Ca?_b.consider("break"):b instanceof ca?_b.consider("debugger"):b instanceof da?_b.consider(b.value):b instanceof na?_b.consider("while"):b instanceof ma?_b.consider("do while"):b instanceof Ea?(_b.consider("if"), +b.alternative&&_b.consider("else")):b instanceof Na?_b.consider("var"):b instanceof Oa?_b.consider("const"):b instanceof ta?_b.consider("function"):b instanceof oa?_b.consider("for"):b instanceof pa?_b.consider("for in"):b instanceof Fa?_b.consider("switch"):b instanceof Ia?_b.consider("case"):b instanceof Ha?_b.consider("default"):b instanceof qa?_b.consider("with"):b instanceof eb?_b.consider("set"+b.key):b instanceof fb?_b.consider("get"+b.key):b instanceof db?_b.consider(b.key):b instanceof Ra?_b.consider("new"):b instanceof sb?_b.consider("this"):b instanceof Ja?_b.consider("try"):b instanceof Ka?_b.consider("catch"):b instanceof La?_b.consider("finally"):b instanceof gb&&b.unmangleable(a)?_b.consider(b.name):b instanceof Wa||b instanceof Za?_b.consider(b.operator):b instanceof Ua&&_b.consider(b.property)});this.walk(b),_b.sort()});var _b=function(){function a(){d=Object.create(null),c=e.split("").map(function(a){return a.charCodeAt(0)}),c.forEach(function(a){d[a]=0})}function b(a){var b="",d=54;a++;do a--,b+=String.fromCharCode(c[a%d]),a=Math.floor(a/d),d=64;while(a>0);return b}var c,d,e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_0123456789";return b.consider=function(a){for(var b=a.length;--b>=0;){var c=a.charCodeAt(b);c in d&&++d[c]}},b.sort=function(){c=q(c,function(a,b){return B(a)&&!B(b)?1:B(b)&&!B(a)?-1:d[b]-d[a]})},b.reset=a,a(),b.get=function(){return c},b.freq=function(){return d},b}();sa.DEFMETHOD("scope_warnings",function(a){a=k(a,{undeclared:!1,unreferenced:!0,assign_to_global:!0,func_arguments:!0,nested_defuns:!0,eval:!0});var b=new z(function(c){if(a.undeclared&&c instanceof qb&&c.undeclared()&&aa.warn("Undeclared symbol: {name} [{file}:{line},{col}]",{name:c.name,file:c.start.file,line:c.start.line,col:c.start.col}),a.assign_to_global){var d=null;c instanceof _a&&c.left instanceof qb?d=c.left:c instanceof pa&&c.init instanceof qb&&(d=c.init),d&&(d.undeclared()||d.global()&&d.scope!==d.definition().scope)&&aa.warn("{msg}: {name} [{file}:{line},{col}]",{msg:d.undeclared()?"Accidental global?":"Assignment to global",name:d.name,file:d.start.file,line:d.start.line,col:d.start.col})}a.eval&&c instanceof qb&&c.undeclared()&&"eval"==c.name&&aa.warn("Eval is used [{file}:{line},{col}]",c.start),a.unreferenced&&(c instanceof ib||c instanceof pb)&&!(c instanceof ob)&&c.unreferenced()&&aa.warn("{type} {name} is declared but not referenced [{file}:{line},{col}]",{type:c instanceof pb?"Label":"Symbol",name:c.name,file:c.start.file,line:c.start.line,col:c.start.col}),a.func_arguments&&c instanceof ta&&c.uses_arguments&&aa.warn("arguments used in function {name} [{file}:{line},{col}]",{name:c.name?c.name.name:"anonymous",file:c.start.file,line:c.start.line,col:c.start.col}),a.nested_defuns&&c instanceof wa&&!(b.parent()instanceof ra)&&aa.warn('Function {name} declared in nested statement "{type}" [{file}:{line},{col}]',{name:c.name.name,type:b.parent().TYPE,file:c.start.file,line:c.start.line,col:c.start.col})});this.walk(b)});var ac=/^$|[;{][\s\n]*$/;!function(){function a(a,b){a.DEFMETHOD("_codegen",b)}function b(a,c){Array.isArray(a)?a.forEach(function(a){b(a,c)}):a.DEFMETHOD("needs_parens",c)}function c(a,b,c,d){var e=a.length-1;r=d,a.forEach(function(a,d){r!==!0||a instanceof da||a instanceof ha||a instanceof ea&&a.body instanceof ub||(r=!1),a instanceof ha||(c.indent(),a.print(c),d==e&&b||(c.newline(),b&&c.newline())),r===!0&&a instanceof ea&&a.body instanceof ub&&(r=!1)}),r=!1}function d(a,b,d){a.length>0?b.with_block(function(){c(a,!1,b,d)}):b.print("{}")}function e(a,b){if(b.option("bracketize"))return void n(a.body,b);if(!a.body)return b.force_semicolon();if(a.body instanceof ma)return void n(a.body,b);for(var c=a.body;;)if(c instanceof Ea){if(!c.alternative)return void n(a.body,b);c=c.alternative}else{if(!(c instanceof ia))break;c=c.body}h(a.body,b)}function f(a,b,c){if(c)try{a.walk(new z(function(a){if(a instanceof Za&&"in"==a.operator)throw b})),a.print(b)}catch(d){if(d!==b)throw d;a.print(b,!0)}else a.print(b)}function g(a){return[92,47,46,43,42,63,40,41,91,93,123,125,36,94,58,124,33,10,13,0,65279,8232,8233].indexOf(a)<0}function h(a,b){b.option("bracketize")?!a||a instanceof ha?b.print("{}"):a instanceof ga?a.print(b):b.with_block(function(){b.indent(),a.print(b),b.newline()}):!a||a instanceof ha?b.force_semicolon():a.print(b)}function i(a){for(var b=a.stack(),c=b.length,d=b[--c],e=b[--c];c>0;){if(e instanceof ba&&e.body===d)return!0;if(!(e instanceof Sa&&e.car===d||e instanceof Qa&&e.expression===d&&!(e instanceof Ra)||e instanceof Ua&&e.expression===d||e instanceof Va&&e.expression===d||e instanceof $a&&e.condition===d||e instanceof Za&&e.left===d||e instanceof Ya&&e.expression===d))return!1;d=e,e=b[--c]}}function j(a,b){return a.args.length>0||b.option("beautify")}function k(a){for(var b=a[0],c=b.length,d=1;d=0?d.push("0x"+a.toString(16).toLowerCase(),"0"+a.toString(8)):d.push("-0x"+(-a).toString(16).toLowerCase(),"-0"+(-a).toString(8)),(b=/^(.*?)(0+)$/.exec(a))&&d.push(b[1]+"e"+b[2].length)):(b=/^0?\.(0+)(.*)$/.exec(a))&&d.push(b[2]+"e-"+(b[1].length+b[2].length),c.substr(c.indexOf("."))),k(d)}function n(a,b){return a instanceof ga?void a.print(b):void b.with_block(function(){b.indent(),a.print(b),b.newline()})}function o(a,b){a.DEFMETHOD("add_source_map",function(a){b(this,a)})}function p(a,b){b.add_mapping(a.start)}var q=!1,r=!1;aa.DEFMETHOD("print",function(a,b){function c(){d.add_comments(a),d.add_source_map(a),e(d,a)}var d=this,e=d._codegen,f=q;d instanceof da&&"use asm"==d.value&&a.parent()instanceof ra&&(q=!0),a.push_node(d),b||d.needs_parens(a)?a.with_parens(c):c(),a.pop_node(),d instanceof ra&&(q=f)}),aa.DEFMETHOD("print_to_string",function(a){var b=S(a);return a||(b._readonly=!0),this.print(b),b.get()}),aa.DEFMETHOD("add_comments",function(a){if(!a._readonly){var b=a.option("comments"),c=this,d=c.start;if(d&&!d._comments_dumped){d._comments_dumped=!0;var e=d.comments_before||[];c instanceof ya&&c.value&&c.value.walk(new z(function(a){if(a.start&&a.start.comments_before&&(e=e.concat(a.start.comments_before),a.start.comments_before=[]),a instanceof va||a instanceof ab||a instanceof bb)return!0})),b?b.test?e=e.filter(function(a){return"comment5"==a.type||b.test(a.value)}):"function"==typeof b&&(e=e.filter(function(a){return"comment5"==a.type||b(c,a)})):e=e.filter(function(a){return"comment5"==a.type}),!a.option("beautify")&&e.length>0&&/comment[134]/.test(e[0].type)&&0!==a.col()&&e[0].nlb&&a.print("\n"),e.forEach(function(b){/comment[134]/.test(b.type)?(a.print("//"+b.value+"\n"),a.indent()):"comment2"==b.type?(a.print("/*"+b.value+"*/"),d.nlb?(a.print("\n"),a.indent()):a.space()):0===a.pos()&&"comment5"==b.type&&a.option("shebang")&&(a.print("#!"+b.value+"\n"),a.indent())})}}}),b(aa,function(){return!1}),b(va,function(a){return i(a)}),b(bb,function(a){return i(a)}),b([Wa,Ab],function(a){var b=a.parent();return b instanceof Ta&&b.expression===this||b instanceof Ra}),b(Sa,function(a){var b=a.parent();return b instanceof Qa||b instanceof Wa||b instanceof Za||b instanceof Pa||b instanceof Ta||b instanceof ab||b instanceof cb||b instanceof $a}),b(Za,function(a){var b=a.parent();if(b instanceof Qa&&b.expression===this)return!0;if(b instanceof Wa)return!0;if(b instanceof Ta&&b.expression===this)return!0;if(b instanceof Za){var c=b.operator,d=Yb[c],e=this.operator,f=Yb[e];if(d>f||d==f&&this===b.right)return!0}}),b(Ta,function(a){var b=a.parent();if(b instanceof Ra&&b.expression===this)try{this.walk(new z(function(a){if(a instanceof Qa)throw b}))}catch(c){if(c!==b)throw c;return!0}}),b(Qa,function(a){var b,c=a.parent();return c instanceof Ra&&c.expression===this||this.expression instanceof va&&c instanceof Ta&&c.expression===this&&(b=a.parent(1))instanceof _a&&b.left===c}),b(Ra,function(a){var b=a.parent();if(!j(this,a)&&(b instanceof Ta||b instanceof Qa&&b.expression===this))return!0}),b(vb,function(a){var b=a.parent();if(b instanceof Ta&&b.expression===this){var c=this.getValue();if(c<0||/^0/.test(l(c)))return!0}}),b([_a,$a],function(a){var b=a.parent();return b instanceof Wa||(b instanceof Za&&!(b instanceof _a)||(b instanceof Qa&&b.expression===this||(b instanceof $a&&b.condition===this||(b instanceof Ta&&b.expression===this||void 0))))}),a(da,function(a,b){b.print_string(a.value,a.quote),b.semicolon()}),a(ca,function(a,b){b.print("debugger"),b.semicolon()}),ia.DEFMETHOD("_do_print_body",function(a){h(this.body,a)}),a(ba,function(a,b){a.body.print(b),b.semicolon()}),a(sa,function(a,b){c(a.body,!0,b,!0),b.print("")}),a(ja,function(a,b){a.label.print(b),b.colon(),a.body.print(b)}),a(ea,function(a,b){a.body.print(b),b.semicolon()}),a(ga,function(a,b){d(a.body,b)}),a(ha,function(a,b){b.semicolon()}),a(ma,function(a,b){b.print("do"),b.space(),a._do_print_body(b),b.space(),b.print("while"),b.space(),b.with_parens(function(){a.condition.print(b)}),b.semicolon()}),a(na,function(a,b){b.print("while"),b.space(),b.with_parens(function(){a.condition.print(b)}),b.space(),a._do_print_body(b)}),a(oa,function(a,b){b.print("for"),b.space(),b.with_parens(function(){!a.init||a.init instanceof ha?b.print(";"):(a.init instanceof Ma?a.init.print(b):f(a.init,b,!0),b.print(";"),b.space()),a.condition?(a.condition.print(b),b.print(";"),b.space()):b.print(";"),a.step&&a.step.print(b)}),b.space(),a._do_print_body(b)}),a(pa,function(a,b){b.print("for"),b.space(),b.with_parens(function(){a.init.print(b),b.space(),b.print("in"),b.space(),a.object.print(b)}),b.space(),a._do_print_body(b)}),a(qa,function(a,b){b.print("with"),b.space(),b.with_parens(function(){a.expression.print(b)}),b.space(),a._do_print_body(b)}),ta.DEFMETHOD("_do_print",function(a,b){var c=this;b||a.print("function"),c.name&&(a.space(),c.name.print(a)),a.with_parens(function(){c.argnames.forEach(function(b,c){c&&a.comma(),b.print(a)})}),a.space(),d(c.body,a,!0)}),a(ta,function(a,b){a._do_print(b)}),ya.DEFMETHOD("_do_print",function(a,b){a.print(b),this.value&&(a.space(),this.value.print(a)),a.semicolon()}),a(za,function(a,b){a._do_print(b,"return")}),a(Aa,function(a,b){a._do_print(b,"throw")}),Ba.DEFMETHOD("_do_print",function(a,b){a.print(b),this.label&&(a.space(),this.label.print(a)),a.semicolon()}),a(Ca,function(a,b){a._do_print(b,"break")}),a(Da,function(a,b){a._do_print(b,"continue")}),a(Ea,function(a,b){b.print("if"),b.space(),b.with_parens(function(){a.condition.print(b)}),b.space(),a.alternative?(e(a,b),b.space(),b.print("else"),b.space(),h(a.alternative,b)):a._do_print_body(b)}),a(Fa,function(a,b){b.print("switch"),b.space(),b.with_parens(function(){a.expression.print(b)}),b.space(),a.body.length>0?b.with_block(function(){a.body.forEach(function(a,c){c&&b.newline(),b.indent(!0),a.print(b)})}):b.print("{}")}),Ga.DEFMETHOD("_do_print_body",function(a){this.body.length>0&&(a.newline(),this.body.forEach(function(b){a.indent(),b.print(a),a.newline()}))}),a(Ha,function(a,b){b.print("default:"),a._do_print_body(b)}),a(Ia,function(a,b){b.print("case"),b.space(),a.expression.print(b),b.print(":"),a._do_print_body(b)}),a(Ja,function(a,b){b.print("try"),b.space(),d(a.body,b),a.bcatch&&(b.space(),a.bcatch.print(b)),a.bfinally&&(b.space(),a.bfinally.print(b))}),a(Ka,function(a,b){b.print("catch"),b.space(),b.with_parens(function(){a.argname.print(b)}),b.space(),d(a.body,b)}),a(La,function(a,b){b.print("finally"),b.space(),d(a.body,b)}),Ma.DEFMETHOD("_do_print",function(a,b){a.print(b),a.space(),this.definitions.forEach(function(b,c){c&&a.comma(),b.print(a)});var c=a.parent(),d=c instanceof oa||c instanceof pa,e=d&&c.init===this;e||a.semicolon()}),a(Na,function(a,b){a._do_print(b,"var")}),a(Oa,function(a,b){a._do_print(b,"const")}),a(Pa,function(a,b){if(a.name.print(b),a.value){b.space(),b.print("="),b.space();var c=b.parent(1),d=c instanceof oa||c instanceof pa;f(a.value,b,d)}}),a(Qa,function(a,b){a.expression.print(b),a instanceof Ra&&!j(a,b)||b.with_parens(function(){a.args.forEach(function(a,c){c&&b.comma(),a.print(b)})})}),a(Ra,function(a,b){b.print("new"),b.space(),Qa.prototype._codegen(a,b)}),Sa.DEFMETHOD("_do_print",function(a){this.car.print(a),this.cdr&&(a.comma(),a.should_break()&&(a.newline(),a.indent()),this.cdr.print(a))}),a(Sa,function(a,b){a._do_print(b)}),a(Ua,function(a,b){var c=a.expression;c.print(b),c instanceof vb&&c.getValue()>=0&&(/[xa-f.)]/i.test(b.last())||b.print(".")),b.print("."),b.add_mapping(a.end),b.print_name(a.property)}),a(Va,function(a,b){a.expression.print(b),b.print("["),a.property.print(b),b.print("]")}),a(Xa,function(a,b){var c=a.operator;b.print(c),(/^[a-z]/i.test(c)||/[+-]$/.test(c)&&a.expression instanceof Xa&&/^[+-]/.test(a.expression.operator))&&b.space(),a.expression.print(b)}),a(Ya,function(a,b){a.expression.print(b),b.print(a.operator)}),a(Za,function(a,b){var c=a.operator;a.left.print(b),">"==c[0]&&a.left instanceof Ya&&"--"==a.left.operator?b.print(" "):b.space(),b.print(c),("<"==c||"<<"==c)&&a.right instanceof Xa&&"!"==a.right.operator&&a.right.expression instanceof Xa&&"--"==a.right.expression.operator?b.print(" "):b.space(),a.right.print(b)}),a($a,function(a,b){a.condition.print(b),b.space(),b.print("?"),b.space(),a.consequent.print(b),b.space(),b.colon(),a.alternative.print(b)}),a(ab,function(a,b){b.with_square(function(){var c=a.elements,d=c.length;d>0&&b.space(),c.forEach(function(a,c){c&&b.comma(),a.print(b),c===d-1&&a instanceof Bb&&b.comma()}),d>0&&b.space()})}),a(bb,function(a,b){a.properties.length>0?b.with_block(function(){a.properties.forEach(function(a,c){c&&(b.print(","),b.newline()),b.indent(),a.print(b)}),b.newline()}):b.print("{}")}),a(db,function(a,b){var c=a.key,d=a.quote;b.option("quote_keys")?b.print_string(c+""):("number"==typeof c||!b.option("beautify")&&+c+""==c)&&parseFloat(c)>=0?b.print(l(c)):(Ib(c)?b.option("screw_ie8"):J(c))?d&&b.option("keep_quoted_props")?b.print_string(c,d):b.print_name(c):b.print_string(c,d),b.colon(),a.value.print(b)}),a(eb,function(a,b){b.print("set"),b.space(),a.key.print(b),a.value._do_print(b,!0)}),a(fb,function(a,b){b.print("get"),b.space(),a.key.print(b),a.value._do_print(b,!0)}),a(gb,function(a,b){var c=a.definition();b.print_name(c?c.mangled_name||c.name:a.name)}),a(Ab,function(a,b){b.print("void 0")}),a(Bb,m),a(Cb,function(a,b){b.print("Infinity")}),a(zb,function(a,b){b.print("NaN")}),a(sb,function(a,b){b.print("this")}),a(tb,function(a,b){b.print(a.getValue())}),a(ub,function(a,b){b.print_string(a.getValue(),a.quote,r)}),a(vb,function(a,b){q&&a.start&&null!=a.start.raw?b.print(a.start.raw):b.print(l(a.getValue()))}),a(wb,function(a,b){var c=a.getValue().toString();b.option("ascii_only")?c=b.to_ascii(c):b.option("unescape_regexps")&&(c=c.split("\\\\").map(function(a){return a.replace(/\\u[0-9a-fA-F]{4}|\\x[0-9a-fA-F]{2}/g,function(a){var b=parseInt(a.substr(2),16);return g(b)?String.fromCharCode(b):a})}).join("\\\\")),b.print(c);var d=b.parent();d instanceof Za&&/^in/.test(d.operator)&&d.left===a&&b.print(" ")}),o(aa,m),o(da,p),o(ca,p),o(gb,p),o(xa,p),o(ia,p),o(ja,m),o(ta,p),o(Fa,p),o(Ga,p),o(ga,p),o(sa,m),o(Ra,p),o(Ja,p),o(Ka,p),o(La,p),o(Ma,p),o(tb,p),o(eb,function(a,b){b.add_mapping(a.start,a.key.name)}),o(fb,function(a,b){b.add_mapping(a.start,a.key.name)}),o(cb,function(a,b){b.add_mapping(a.start,a.key)})}(),T.prototype=new Q,l(T.prototype,{option:function(a){return this.options[a]},compress:function(a){for(var b=+this.options.passes||1,c=0;c0&&a.clear_opt_flags(),a=a.transform(this);return a},warn:function(a,b){if(this.options.warnings){var c=o(a,b);c in this.warnings_produced||(this.warnings_produced[c]=!0,aa.warn.apply(aa,arguments))}},clear_warnings:function(){this.warnings_produced={}},before:function(a,b,c){if(a._squeezed)return a;var d=!1;return a instanceof ra&&(a=a.hoist_declarations(this),d=!0),b(a,this),a=a.optimize(this),d&&a instanceof ra&&(a.drop_unused(this),b(a,this)),a._squeezed=!0,a}}),function(){function a(a,b){a.DEFMETHOD("optimize",function(a){var c=this;if(c._optimized)return c;if(a.has_directive("use asm"))return c;var d=b(c,a);return d._optimized=!0,d===c?d:d.transform(a)})}function b(a,b,c){return c||(c={}),b&&(c.start||(c.start=b.start),c.end||(c.end=b.end)),new a(c)}function c(a,c,d){if(c instanceof aa)return c.transform(a);switch(typeof c){case"string":return b(ub,d,{value:c}).optimize(a);case"number":return isNaN(c)?b(zb,d):1/c<0?b(Xa,d,{operator:"-",expression:b(vb,d,{value:-c})}):b(vb,d,{value:c}).optimize(a);case"boolean":return b(c?Fb:Eb,d).optimize(a);case"undefined":return b(Ab,d).optimize(a);default:if(null===c)return b(yb,d,{value:null}).optimize(a);if(c instanceof RegExp)return b(wb,d,{value:c}).optimize(a);throw new Error(o("Can't handle constant of type: {type}",{type:typeof c}))}}function d(a,c,d){return a instanceof Qa&&a.expression===c&&(d instanceof Ta||d instanceof qb&&"eval"===d.name)?b(Sa,c,{car:b(vb,c,{value:0}),cdr:d}):d}function e(a){if(null===a)return[];if(a instanceof ga)return a.body;if(a instanceof ha)return[];if(a instanceof ba)return[a];throw new Error("Can't convert thing to statement array")}function f(a){return null===a||(a instanceof ha||a instanceof ga&&0==a.body.length)}function i(a){return a instanceof Fa?a:(a instanceof oa||a instanceof pa||a instanceof la)&&a.body instanceof ga?a.body:a}function j(a,c){function f(a,c){function e(a,b){return a instanceof qb&&(b instanceof _a&&a===b.left||b instanceof Wa&&b.expression===a&&("++"==b.operator||"--"==b.operator))}function g(f,g,j){if(e(f,g))return f;var m=d(g,f,t.value);return t.value=null,n.splice(s,1),0===n.length&&(a[l]=b(ha,h),i=!0),k.clear_opt_flags(),c.warn("Replacing "+(j?"constant":"variable")+" "+v+" [{file}:{line},{col}]",f.start),u=!0,m}for(var h=c.self(),i=!1,j=a.length;--j>=0;){var k=a[j];if(!(k instanceof Ma)){if([k,k.body,k.alternative,k.bcatch,k.bfinally].forEach(function(a){a&&a.body&&f(a.body,c)}),j<=0)break;var l=j-1,m=a[l];if(m instanceof Ma){var n=m.definitions;if(null!=n)for(var o={},p=!1,q=!1,r={},s=n.length;--s>=0;){var t=n[s];if(null==t.value)break;var v=t.name.name;if(!v||!v.length)break;if(v in o)break;o[v]=!0;var w=h.find_variable&&h.find_variable(v);if(w&&w.references&&1===w.references.length&&"arguments"!=v){var x=w.references[0];if(x.scope.uses_eval||x.scope.uses_with)break;if(t.value instanceof wb||!t.value.is_constant(c)){if(!(p|=q))if(x.scope===h){var y=new z(function(a){a instanceof qb&&e(a,y.parent())&&(r[a.name]=q=!0)});t.value.walk(y);var A=!1,B=new Q(function(a){if(A)return a;var b=B.parent();return a instanceof ta||a instanceof Ja||a instanceof qa||a instanceof Ia||a instanceof ka||b instanceof Ea&&a!==b.condition||b instanceof $a&&a!==b.condition||b instanceof Za&&("&&"==b.operator||"||"==b.operator)&&a===b.right||b instanceof Fa&&a!==b.expression?(p=A=!0,a):void 0},function(a){return A?a:a===x?(A=!0,g(a,B.parent(),!1)):(p|=a.has_side_effects(c))?(A=!0,a):q&&a instanceof qb&&a.name in r?(p=!0,A=!0,a):void 0});k.transform(B)}else p|=t.value.has_side_effects(c)}else{var C=new Q(function(a){if(a===x)return g(a,C.parent(),!0)});k.transform(C)}}else p=!0}}}}if(i)for(var D=a.length;--D>=0;)a.length>1&&a[D]instanceof ha&&a.splice(D,1);return a}function g(a){function d(a){return/@ngInject/.test(a.value)}function e(a){return a.argnames.map(function(a){return b(ub,a,{value:a.name})})}function f(a,c){return b(ab,a,{elements:c})}function g(a,c){return b(ea,a,{body:b(_a,a,{operator:"=",left:b(Ua,c,{expression:b(qb,c,c),property:"$inject"}),right:f(a,e(a))})})}function h(a){a&&a.args&&(a.args.forEach(function(a,b,c){var g=a.start.comments_before;a instanceof ta&&g.length&&d(g[0])&&(c[b]=f(a,e(a).concat(a)))}),a.expression&&a.expression.expression&&h(a.expression.expression))}return a.reduce(function(a,b){if(a.push(b),b.body&&b.body.args)h(b.body);else{var e=b.start,f=e.comments_before;if(f&&f.length>0){var i=f.pop();d(i)&&(b instanceof wa?a.push(g(b,b.name)):b instanceof Ma?b.definitions.forEach(function(b){b.value&&b.value instanceof ta&&a.push(g(b.value,b.name))}):c.warn("Unknown statement marked with @ngInject [{file}:{line},{col}]",e))}}return a},[])}function h(a){var b=[];return a.reduce(function(a,c){return c instanceof ga?(u=!0,a.push.apply(a,h(c.body))):c instanceof ha?u=!0:c instanceof da?b.indexOf(c.value)<0?(a.push(c),b.push(c.value)):u=!0:a.push(c),a},[])}function j(a,c){function d(a){for(var b=0,c=a.length;--c>=0;){var d=a[c];if(d instanceof Ea&&d.body instanceof za&&++b>1)return!0}return!1}var f=c.self(),g=d(a),h=f instanceof ta,j=[];a:for(var l=a.length;--l>=0;){var m=a[l];switch(!0){case h&&m instanceof za&&!m.value&&0==j.length:u=!0;continue a;case m instanceof Ea:if(m.body instanceof za){if((h&&0==j.length||j[0]instanceof za&&!j[0].value)&&!m.body.value&&!m.alternative){u=!0;var o=b(ea,m.condition,{body:m.condition});j.unshift(o);continue a}if(j[0]instanceof za&&m.body.value&&j[0].value&&!m.alternative){u=!0,m=m.clone(),m.alternative=j[0],j[0]=m.transform(c);continue a}if(g&&(0==j.length||j[0]instanceof za)&&m.body.value&&!m.alternative&&h){u=!0,m=m.clone(),m.alternative=j[0]||b(za,m,{value:b(Ab,m)}),j[0]=m.transform(c);continue a}if(!m.body.value&&h){u=!0,m=m.clone(),m.condition=m.condition.negate(c);var q=e(m.alternative).concat(j),r=k(q);m.body=b(ga,m,{body:q}),m.alternative=null,j=r.concat([m.transform(c)]);continue a}if(c.option("sequences")&&1==j.length&&h&&j[0]instanceof ea&&(!m.alternative||m.alternative instanceof ea)){u=!0,j.push(b(za,j[0],{value:b(Ab,j[0])}).transform(c)),j=e(m.alternative).concat(j),j.unshift(m);continue a}}var s=n(m.body),t=s instanceof Ba?c.loopcontrol_target(s.label):null;if(s&&(s instanceof za&&!s.value&&h||s instanceof Da&&f===i(t)||s instanceof Ca&&t instanceof ga&&f===t)){s.label&&p(s.label.thedef.references,s),u=!0;var q=e(m.body).slice(0,-1);m=m.clone(),m.condition=m.condition.negate(c),m.body=b(ga,m,{body:e(m.alternative).concat(j)}),m.alternative=b(ga,m,{body:q}),j=[m.transform(c)];continue a}var s=n(m.alternative),t=s instanceof Ba?c.loopcontrol_target(s.label):null;if(s&&(s instanceof za&&!s.value&&h||s instanceof Da&&f===i(t)||s instanceof Ca&&t instanceof ga&&f===t)){s.label&&p(s.label.thedef.references,s),u=!0,m=m.clone(),m.body=b(ga,m.body,{body:e(m.body).concat(j)}),m.alternative=b(ga,m.alternative,{body:e(m.alternative).slice(0,-1)}),j=[m.transform(c)];continue a}j.unshift(m);break;default:j.unshift(m)}}return j}function m(a,b){var c=!1,d=a.length,e=b.self();return a=a.reduce(function(a,d){if(c)l(b,d,a);else{if(d instanceof Ba){var f=b.loopcontrol_target(d.label);d instanceof Ca&&f instanceof ga&&i(f)===e||d instanceof Da&&i(f)===e?d.label&&p(d.label.thedef.references,d):a.push(d)}else a.push(d);n(d)&&(c=!0)}return a},[]),u=a.length!=d,a}function o(a,c){function d(){e=Sa.from_array(e),e&&f.push(b(ea,e,{body:e})),e=[]}if(a.length<2)return a;var e=[],f=[];return a.forEach(function(a){a instanceof ea&&q(e)0&&(a=o(a,c)),c.option("join_vars")&&(a=s(a,c)),c.option("collapse_vars")&&(a=f(a,c));while(u&&v-- >0);return c.option("negate_iife")&&t(a,c),a}function k(a){for(var b=[],c=a.length-1;c>=0;--c){var d=a[c];d instanceof wa&&(a.splice(c,1),b.unshift(d))}return b}function l(a,b,c){b instanceof wa||a.warn("Dropping unreachable code [{file}:{line},{col}]",b.start),b.walk(new z(function(b){return b instanceof Ma?(a.warn("Declarations in unreachable code! [{file}:{line},{col}]",b.start),b.remove_initializers(),c.push(b),!0):b instanceof wa?(c.push(b),!0):b instanceof ra||void 0}))}function m(a,b){return a.print_to_string().length>b.print_to_string().length?b:a}function n(a){return a&&a.aborts()}function r(a,c){function d(d){d=e(d),a.body instanceof ga?(a.body=a.body.clone(),a.body.body=d.concat(a.body.body.slice(1)),a.body=a.body.transform(c)):a.body=b(ga,a.body,{body:d}).transform(c),r(a,c)}var f=a.body instanceof ga?a.body.body[0]:a.body;f instanceof Ea&&(f.body instanceof Ca&&c.loopcontrol_target(f.body.label)===a?(a.condition?a.condition=b(Za,a.condition,{left:a.condition,operator:"&&",right:f.condition.negate(c)}):a.condition=f.condition.negate(c),d(f.alternative)):f.alternative instanceof Ca&&c.loopcontrol_target(f.alternative.label)===a&&(a.condition?a.condition=b(Za,a.condition,{left:a.condition,operator:"&&",right:f.condition}):a.condition=f.condition,d(f.body)))}function s(a,b){var c=b.option("pure_getters");b.options.pure_getters=!1;var d=a.has_side_effects(b);return b.options.pure_getters=c,d}function x(a,c){return c.option("booleans")&&c.in_boolean_context()&&!a.has_side_effects(c)?b(Fb,a):a}a(aa,function(a,b){return a}),aa.DEFMETHOD("equivalent_to",function(a){return this.print_to_string()==a.print_to_string()}),aa.DEFMETHOD("clear_opt_flags",function(){this.walk(new z(function(a){a instanceof da||a instanceof tb||(a._squeezed=!1,a._optimized=!1)}))}),function(a){var b=["!","delete"],c=["in","instanceof","==","!=","===","!==","<","<=",">=",">"];a(aa,function(){return!1}),a(Xa,function(){return g(this.operator,b)}),a(Za,function(){return g(this.operator,c)||("&&"==this.operator||"||"==this.operator)&&this.left.is_boolean()&&this.right.is_boolean()}),a($a,function(){return this.consequent.is_boolean()&&this.alternative.is_boolean()}),a(_a,function(){return"="==this.operator&&this.right.is_boolean()}),a(Sa,function(){return this.cdr.is_boolean()}),a(Fb,function(){return!0}),a(Eb,function(){return!0})}(function(a,b){a.DEFMETHOD("is_boolean",b)}),function(a){a(aa,function(){return!1}),a(ub,function(){return!0}),a(Xa,function(){return"typeof"==this.operator}),a(Za,function(a){return"+"==this.operator&&(this.left.is_string(a)||this.right.is_string(a))}),a(_a,function(a){return("="==this.operator||"+="==this.operator)&&this.right.is_string(a)}),a(Sa,function(a){return this.cdr.is_string(a)}),a($a,function(a){return this.consequent.is_string(a)&&this.alternative.is_string(a)}),a(Qa,function(a){return a.option("unsafe")&&this.expression instanceof qb&&"String"==this.expression.name&&this.expression.undeclared()})}(function(a,b){a.DEFMETHOD("is_string",b)}),function(a){function b(a,b){if(!b)throw new Error("Compressor must be passed");return a._eval(b)}aa.DEFMETHOD("evaluate",function(b){if(!b.option("evaluate"))return[this];try{var d=this._eval(b);return[m(c(b,d,this),this),d]}catch(e){if(e!==a)throw e;return[this]}}),aa.DEFMETHOD("is_constant",function(a){return this instanceof tb||this instanceof Xa&&"!"==this.operator&&this.expression instanceof tb||this.evaluate(a).length>1}),aa.DEFMETHOD("constant_value",function(a){if(this instanceof tb)return this.value;if(this instanceof Xa&&"!"==this.operator&&this.expression instanceof tb)return!this.expression.value;var b=this.evaluate(a);return b.length>1?b[1]:void 0}),a(ba,function(){throw new Error(o("Cannot evaluate a statement [{file}:{line},{col}]",this.start))}),a(va,function(){throw a}),a(aa,function(){throw a}),a(tb,function(){return this.getValue()}),a(Xa,function(c){var d=this.expression;switch(this.operator){case"!":return!b(d,c);case"typeof":if(d instanceof va)return"function";if(d=b(d,c),d instanceof RegExp)throw a;return typeof d;case"void":return void b(d,c);case"~":return~b(d,c);case"-":return-b(d,c);case"+":return+b(d,c)}throw a}),a(Za,function(c){var d,e=this.left,f=this.right;switch(this.operator){case"&&":d=b(e,c)&&b(f,c);break;case"||":d=b(e,c)||b(f,c);break;case"|":d=b(e,c)|b(f,c);break;case"&":d=b(e,c)&b(f,c);break;case"^":d=b(e,c)^b(f,c);break;case"+":d=b(e,c)+b(f,c);break;case"*":d=b(e,c)*b(f,c);break;case"/":d=b(e,c)/b(f,c);break;case"%":d=b(e,c)%b(f,c);break;case"-":d=b(e,c)-b(f,c);break;case"<<":d=b(e,c)<>":d=b(e,c)>>b(f,c);break;case">>>":d=b(e,c)>>>b(f,c);break;case"==":d=b(e,c)==b(f,c);break;case"===":d=b(e,c)===b(f,c);break;case"!=":d=b(e,c)!=b(f,c);break;case"!==":d=b(e,c)!==b(f,c);break;case"<":d=b(e,c)":d=b(e,c)>b(f,c);break;case">=":d=b(e,c)>=b(f,c);break;default:throw a}if(isNaN(d)&&c.find_parent(qa))throw a;return d}),a($a,function(a){return b(this.condition,a)?b(this.consequent,a):b(this.alternative,a)}),a(qb,function(c){if(this._evaluating)throw a;this._evaluating=!0;try{var d=this.definition();if(d&&d.constant&&d.init)return b(d.init,c)}finally{this._evaluating=!1}throw a}),a(Ua,function(c){if(c.option("unsafe")&&"length"==this.property){var d=b(this.expression,c);if("string"==typeof d)return d.length}throw a})}(function(a,b){a.DEFMETHOD("_eval",b)}),function(a){function c(a){return b(Xa,a,{operator:"!",expression:a})}a(aa,function(){return c(this)}),a(ba,function(){throw new Error("Cannot negate a statement")}),a(va,function(){return c(this)}),a(Xa,function(){return"!"==this.operator?this.expression:c(this)}),a(Sa,function(a){var b=this.clone();return b.cdr=b.cdr.negate(a),b}),a($a,function(a){var b=this.clone();return b.consequent=b.consequent.negate(a),b.alternative=b.alternative.negate(a),m(c(this),b)}),a(Za,function(a){var b=this.clone(),d=this.operator;if(a.option("unsafe_comps"))switch(d){case"<=":return b.operator=">",b;case"<":return b.operator=">=",b;case">=":return b.operator="<",b;case">":return b.operator="<=",b}switch(d){case"==":return b.operator="!=",b;case"!=":return b.operator="==",b;case"===":return b.operator="!==",b;case"!==":return b.operator="===",b;case"&&":return b.operator="||",b.left=b.left.negate(a),b.right=b.right.negate(a),m(c(this),b);case"||":return b.operator="&&",b.left=b.left.negate(a),b.right=b.right.negate(a),m(c(this),b)}return c(this)})}(function(a,b){a.DEFMETHOD("negate",function(a){return b.call(this,a)})}),function(a){a(aa,function(a){return!0}),a(ha,function(a){return!1}),a(tb,function(a){return!1}),a(sb,function(a){return!1}),a(Qa,function(a){var b=a.option("pure_funcs");return!b||("function"==typeof b?b(this):b.indexOf(this.expression.print_to_string())<0)}),a(fa,function(a){for(var b=this.body.length;--b>=0;)if(this.body[b].has_side_effects(a))return!0;return!1}),a(ea,function(a){return this.body.has_side_effects(a)}),a(wa,function(a){return!0}),a(va,function(a){return!1}),a(Za,function(a){return this.left.has_side_effects(a)||this.right.has_side_effects(a)}),a(_a,function(a){return!0}),a($a,function(a){return this.condition.has_side_effects(a)||this.consequent.has_side_effects(a)||this.alternative.has_side_effects(a); +}),a(Wa,function(a){return"delete"==this.operator||"++"==this.operator||"--"==this.operator||this.expression.has_side_effects(a)}),a(qb,function(a){return this.global()&&this.undeclared()}),a(bb,function(a){for(var b=this.properties.length;--b>=0;)if(this.properties[b].has_side_effects(a))return!0;return!1}),a(cb,function(a){return this.value.has_side_effects(a)}),a(ab,function(a){for(var b=this.elements.length;--b>=0;)if(this.elements[b].has_side_effects(a))return!0;return!1}),a(Ua,function(a){return!a.option("pure_getters")||this.expression.has_side_effects(a)}),a(Va,function(a){return!a.option("pure_getters")||(this.expression.has_side_effects(a)||this.property.has_side_effects(a))}),a(Ta,function(a){return!a.option("pure_getters")}),a(Sa,function(a){return this.car.has_side_effects(a)||this.cdr.has_side_effects(a)})}(function(a,b){a.DEFMETHOD("has_side_effects",b)}),function(a){function b(){var a=this.body.length;return a>0&&n(this.body[a-1])}a(ba,function(){return null}),a(xa,function(){return this}),a(ga,b),a(Ga,b),a(Ea,function(){return this.alternative&&n(this.body)&&n(this.alternative)&&this})}(function(a,b){a.DEFMETHOD("aborts",b)}),a(da,function(a,c){return"up"===c.has_directive(a.value)?b(ha,a):a}),a(ca,function(a,c){return c.option("drop_debugger")?b(ha,a):a}),a(ja,function(a,c){return a.body instanceof Ca&&c.loopcontrol_target(a.body.label)===a.body?b(ha,a):0==a.label.references.length?a.body:a}),a(fa,function(a,b){return a.body=j(a.body,b),a}),a(ga,function(a,c){switch(a.body=j(a.body,c),a.body.length){case 1:return a.body[0];case 0:return b(ha,a)}return a}),ra.DEFMETHOD("drop_unused",function(a){var c=this;if(a.has_directive("use asm"))return c;if(a.option("unused")&&!(c instanceof sa)&&!c.uses_eval&&!c.uses_with){var d=[],e={},f=new v,g=this,h=new z(function(b,i){if(b!==c){if(b instanceof wa)return f.add(b.name.name,b),!0;if(b instanceof Ma&&g===c)return b.definitions.forEach(function(b){b.value&&(f.add(b.name.name,b.value),b.value.has_side_effects(a)&&b.value.walk(h))}),!0;if(b instanceof qb){var j=b.definition();return j.id in e||(e[j.id]=!0,d.push(j)),!0}if(b instanceof ra){var k=g;return g=b,i(),g=k,!0}}});c.walk(h);for(var i=0;i=0;){var k=h[i];if(!k.unreferenced())break;h.pop(),a.warn("Dropping unused function argument {name} [{file}:{line},{col}]",{name:k.name,file:k.start.file,line:k.start.line,col:k.start.col})}if(d instanceof wa&&d!==c)return d.name.definition().id in e?d:(a.warn("Dropping unused function {name} [{file}:{line},{col}]",{name:d.name.name,file:d.name.start.file,line:d.name.start.line,col:d.name.start.col}),b(ha,d));if(d instanceof Ma&&!(j.parent()instanceof pa)){var l=d.definitions.filter(function(b){if(b.name.definition().id in e)return!0;var c={name:b.name.name,file:b.name.start.file,line:b.name.start.line,col:b.name.start.col};return b.value&&b.value.has_side_effects(a)?(b._unused_side_effects=!0,a.warn("Side effects in initialization of unused variable {name} [{file}:{line},{col}]",c),!0):(a.warn("Dropping unused variable {name} [{file}:{line},{col}]",c),!1)});l=q(l,function(a,b){return!a.value&&b.value?-1:!b.value&&a.value?1:0});for(var m=[],i=0;i0&&(m.push(n.value),n.value=Sa.from_array(m),m=[]),++i)}return m=m.length>0?b(ga,d,{body:[b(ea,d,{body:Sa.from_array(m)})]}):null,0!=l.length||m?0==l.length?g?$.splice(m.body):m:(d.definitions=l,m?(m.body.unshift(d),g?$.splice(m.body):m):d):b(ha,d)}if(d instanceof oa&&(f(d,this),d.init instanceof ga)){var o=d.init.body.slice(0,-1);return d.init=d.init.body.slice(-1)[0].body,o.push(d),g?$.splice(o):b(ga,d,{body:o})}return d instanceof ra&&d!==c?d:void 0});c.transform(j)}}),ra.DEFMETHOD("hoist_declarations",function(a){var c=this;if(a.has_directive("use asm"))return c;var d=a.option("hoist_funs"),e=a.option("hoist_vars");if(d||e){var f=[],g=[],i=new v,j=0,k=0;c.walk(new z(function(a){return a instanceof ra&&a!==c||(a instanceof Na?(++k,!0):void 0)})),e=e&&k>1;var l=new Q(function(a){if(a!==c){if(a instanceof da)return f.push(a),b(ha,a);if(a instanceof wa&&d)return g.push(a),b(ha,a);if(a instanceof Na&&e){a.definitions.forEach(function(a){i.set(a.name.name,a),++j});var h=a.to_assignments(),k=l.parent();if(k instanceof pa&&k.init===a){if(null==h){var m=a.definitions[0].name;return b(qb,m,m)}return h}return k instanceof oa&&k.init===a?h:h?b(ea,a,{body:h}):b(ha,a)}if(a instanceof ra)return a}});if(c=c.transform(l),j>0){var m=[];if(i.each(function(a,b){c instanceof ta&&h(function(b){return b.name==a.name.name},c.argnames)?i.del(b):(a=a.clone(),a.value=null,m.push(a),i.set(b,a))}),m.length>0){for(var n=0;n1){if(d[1])return b(oa,a,{body:a.body});if(a instanceof na&&c.option("dead_code")){var e=[];return l(c,a.body,e),b(ga,a,{body:e})}}return a}),a(na,function(a,c){return c.option("loops")?(a=la.prototype.optimize.call(a,c),a instanceof na&&(r(a,c),a=b(oa,a,a).transform(c)),a):a}),a(oa,function(a,c){var d=a.condition;if(d&&(d=d.evaluate(c),a.condition=d[0]),!c.option("loops"))return a;if(d&&d.length>1&&!d[1]&&c.option("dead_code")){var e=[];return a.init instanceof ba?e.push(a.init):a.init&&e.push(b(ea,a.init,{body:a.init})),l(c,a.body,e),b(ga,a,{body:e})}return r(a,c),a}),a(Ea,function(a,c){if(!c.option("conditionals"))return a;var d=a.condition.evaluate(c);if(a.condition=d[0],d.length>1)if(d[1]){if(c.warn("Condition always true [{file}:{line},{col}]",a.condition.start),c.option("dead_code")){var e=[];return a.alternative&&l(c,a.alternative,e),e.push(a.body),b(ga,a,{body:e}).transform(c)}}else if(c.warn("Condition always false [{file}:{line},{col}]",a.condition.start),c.option("dead_code")){var e=[];return l(c,a.body,e),a.alternative&&e.push(a.alternative),b(ga,a,{body:e}).transform(c)}f(a.alternative)&&(a.alternative=null);var g=a.condition.negate(c),h=a.condition.print_to_string().length,i=g.print_to_string().length,j=i=Yb[a.operator]||e(null,!0)),/^[!=]==?$/.test(a.operator))){if(a.left instanceof qb&&a.right instanceof $a){if(a.right.consequent instanceof qb&&a.right.consequent.definition()===a.left.definition()){if(/^==/.test(a.operator))return a.right.condition;if(/^!=/.test(a.operator))return a.right.condition.negate(c)}if(a.right.alternative instanceof qb&&a.right.alternative.definition()===a.left.definition()){if(/^==/.test(a.operator))return a.right.condition.negate(c);if(/^!=/.test(a.operator))return a.right.condition}}if(a.right instanceof qb&&a.left instanceof $a){if(a.left.consequent instanceof qb&&a.left.consequent.definition()===a.right.definition()){if(/^==/.test(a.operator))return a.left.condition;if(/^!=/.test(a.operator))return a.left.condition.negate(c)}if(a.left.alternative instanceof qb&&a.left.alternative.definition()===a.right.definition()){if(/^==/.test(a.operator))return a.left.condition.negate(c);if(/^!=/.test(a.operator))return a.left.condition}}}if(a=a.lift_sequences(c),c.option("comparisons"))switch(a.operator){case"===":case"!==":(a.left.is_string(c)&&a.right.is_string(c)||a.left.is_boolean()&&a.right.is_boolean())&&(a.operator=a.operator.substr(0,2));case"==":case"!=":a.left instanceof ub&&"undefined"==a.left.value&&a.right instanceof Xa&&"typeof"==a.right.operator&&c.option("unsafe")&&(a.right.expression instanceof qb&&a.right.expression.undeclared()||(a.right=a.right.expression,a.left=b(Ab,a.left).optimize(c),2==a.operator.length&&(a.operator+="=")))}if(c.option("conditionals"))if("&&"==a.operator){var f=a.left.evaluate(c);if(f.length>1)return f[1]?(c.warn("Condition left of && always true [{file}:{line},{col}]",a.start),d(c.parent(),a,a.right.evaluate(c)[0])):(c.warn("Condition left of && always false [{file}:{line},{col}]",a.start),d(c.parent(),a,f[0]))}else if("||"==a.operator){var f=a.left.evaluate(c);if(f.length>1)return f[1]?(c.warn("Condition left of || always true [{file}:{line},{col}]",a.start),d(c.parent(),a,f[0])):(c.warn("Condition left of || always false [{file}:{line},{col}]",a.start),d(c.parent(),a,a.right.evaluate(c)[0]))}if(c.option("booleans")&&c.in_boolean_context())switch(a.operator){case"&&":var f=a.left.evaluate(c),g=a.right.evaluate(c);if(f.length>1&&!f[1]||g.length>1&&!g[1])return c.warn("Boolean && always false [{file}:{line},{col}]",a.start),a.left.has_side_effects(c)?b(Sa,a,{car:a.left,cdr:b(Eb)}).optimize(c):b(Eb,a);if(f.length>1&&f[1])return g[0];if(g.length>1&&g[1])return f[0];break;case"||":var f=a.left.evaluate(c),g=a.right.evaluate(c);if(f.length>1&&f[1]||g.length>1&&g[1])return c.warn("Boolean || always true [{file}:{line},{col}]",a.start),a.left.has_side_effects(c)?b(Sa,a,{car:a.left,cdr:b(Fb)}).optimize(c):b(Fb,a);if(f.length>1&&!f[1])return g[0];if(g.length>1&&!g[1])return f[0];break;case"+":var f=a.left.evaluate(c),g=a.right.evaluate(c);if(f.length>1&&f[0]instanceof ub&&f[1]||g.length>1&&g[0]instanceof ub&&g[1])return c.warn("+ in boolean context always true [{file}:{line},{col}]",a.start),b(Fb,a)}if(c.option("comparisons")&&a.is_boolean()){if(!(c.parent()instanceof Za)||c.parent()instanceof _a){var h=b(Xa,a,{operator:"!",expression:a.negate(c)});a=m(a,h)}if(c.option("unsafe_comps"))switch(a.operator){case"<":e(">");break;case"<=":e(">=")}}return"+"==a.operator&&a.right instanceof ub&&""===a.right.getValue()&&a.left instanceof Za&&"+"==a.left.operator&&a.left.is_string(c)?a.left:(c.option("evaluate")&&"+"==a.operator&&(a.left instanceof tb&&a.right instanceof Za&&"+"==a.right.operator&&a.right.left instanceof tb&&a.right.is_string(c)&&(a=b(Za,a,{operator:"+",left:b(ub,null,{value:""+a.left.getValue()+a.right.left.getValue(),start:a.left.start,end:a.right.left.end}),right:a.right.right})),a.right instanceof tb&&a.left instanceof Za&&"+"==a.left.operator&&a.left.right instanceof tb&&a.left.is_string(c)&&(a=b(Za,a,{operator:"+",left:a.left.left,right:b(ub,null,{value:""+a.left.right.getValue()+a.right.getValue(),start:a.left.right.start,end:a.right.end})})),a.left instanceof Za&&"+"==a.left.operator&&a.left.is_string(c)&&a.left.right instanceof tb&&a.right instanceof Za&&"+"==a.right.operator&&a.right.left instanceof tb&&a.right.is_string(c)&&(a=b(Za,a,{operator:"+",left:b(Za,a.left,{operator:"+",left:a.left.left,right:b(ub,null,{value:""+a.left.right.getValue()+a.right.left.getValue(),start:a.left.right.start,end:a.right.left.end})}),right:a.right.right}))),a.right instanceof Za&&a.right.operator==a.operator&&("&&"==a.operator||"||"==a.operator)?(a.left=b(Za,a.left,{operator:a.operator,left:a.left,right:a.right.left}),a.right=a.right.right,a.transform(c)):a.evaluate(c)[0])}),a(qb,function(a,d){function e(a,b){return b instanceof Za&&"="===b.operator&&b.left===a}if(a.undeclared()&&!e(a,d.parent())){var f=d.option("global_defs");if(f&&w(f,a.name))return c(d,f[a.name],a);if(!a.scope.uses_with||!d.find_parent(qa))switch(a.name){case"undefined":return b(Ab,a);case"NaN":return b(zb,a).transform(d);case"Infinity":return b(Cb,a).transform(d)}}return a}),a(Cb,function(a,c){return b(Za,a,{operator:"/",left:b(vb,a,{value:1}),right:b(vb,a,{value:0})})}),a(Ab,function(a,c){if(c.option("unsafe")){var d=c.find_parent(ra),e=d.find_variable("undefined");if(e){var f=b(qb,a,{name:"undefined",scope:d,thedef:e});return f.reference(),f}}return a});var A=["+","-","/","*","%",">>","<<",">>>","|","^","&"];a(_a,function(a,b){return a=a.lift_sequences(b),"="==a.operator&&a.left instanceof qb&&a.right instanceof Za&&a.right.left instanceof qb&&a.right.left.name==a.left.name&&g(a.right.operator,A)&&(a.operator=a.right.operator+"=",a.right=a.right.right),a}),a($a,function(a,e){function f(a){return a.is_boolean()?a:b(Xa,a,{operator:"!",expression:a.negate(e)})}function g(a){return a instanceof Fb||a instanceof Xa&&"!"==a.operator&&a.expression instanceof tb&&!a.expression.value}function h(a){return a instanceof Eb||a instanceof Xa&&"!"==a.operator&&a.expression instanceof tb&&!!a.expression.value}if(!e.option("conditionals"))return a;if(a.condition instanceof Sa){var i=a.condition.car;return a.condition=a.condition.cdr,Sa.cons(i,a)}var j=a.condition.evaluate(e);if(j.length>1)return j[1]?(e.warn("Condition always true [{file}:{line},{col}]",a.start),d(e.parent(),a,a.consequent)):(e.warn("Condition always false [{file}:{line},{col}]",a.start),d(e.parent(),a,a.alternative));var k=j[0].negate(e);m(j[0],k)===k&&(a=b($a,a,{condition:k,consequent:a.alternative,alternative:a.consequent}));var l=a.consequent,n=a.alternative;if(l instanceof _a&&n instanceof _a&&l.operator==n.operator&&l.left.equivalent_to(n.left)&&!l.left.has_side_effects(e))return b(_a,a,{operator:l.operator,left:l.left,right:b($a,a,{condition:a.condition,consequent:l.right,alternative:n.right})});if(l instanceof Qa&&n.TYPE===l.TYPE&&l.args.length==n.args.length&&!l.expression.has_side_effects(e)&&l.expression.equivalent_to(n.expression)){if(0==l.args.length)return b(Sa,a,{car:a.condition,cdr:l});if(1==l.args.length)return l.args[0]=b($a,a,{condition:a.condition,consequent:l.args[0],alternative:n.args[0]}),l}if(l instanceof $a&&l.alternative.equivalent_to(n))return b($a,a,{condition:b(Za,a,{left:a.condition,operator:"&&",right:l.condition}),consequent:l.consequent,alternative:n});if(l.is_constant(e)&&n.is_constant(e)&&l.equivalent_to(n)){var o=l.constant_value(e);return a.condition.has_side_effects(e)?Sa.from_array([a.condition,c(e,o,a)]):c(e,o,a)}return g(a.consequent)?h(a.alternative)?f(a.condition):b(Za,a,{operator:"||",left:f(a.condition),right:a.alternative}):h(a.consequent)?g(a.alternative)?f(a.condition.negate(e)):b(Za,a,{operator:"&&",left:f(a.condition.negate(e)),right:a.alternative}):g(a.alternative)?b(Za,a,{operator:"||",left:f(a.condition.negate(e)),right:a.consequent}):h(a.alternative)?b(Za,a,{operator:"&&",left:f(a.condition),right:a.consequent}):a}),a(Db,function(a,c){if(c.option("booleans")){var d=c.parent();return d instanceof Za&&("=="==d.operator||"!="==d.operator)?(c.warn("Non-strict equality against boolean: {operator} {value} [{file}:{line},{col}]",{operator:d.operator,value:a.value,file:d.start.file,line:d.start.line,col:d.start.col}),b(vb,a,{value:+a.value})):b(Xa,a,{operator:"!",expression:b(vb,a,{value:1-a.value})})}return a}),a(Va,function(a,c){var d=a.property;if(d instanceof ub&&c.option("properties")){if(d=d.getValue(),Ib(d)?c.option("screw_ie8"):J(d))return b(Ua,a,{expression:a.expression,property:d}).optimize(c);var e=parseFloat(d);isNaN(e)||e.toString()!=d||(a.property=b(vb,a.property,{value:e}))}return a}),a(Ua,function(a,c){var d=a.property;return Ib(d)&&!c.option("screw_ie8")?b(Va,a,{expression:a.expression,property:b(ub,a,{value:d})}).optimize(c):a.evaluate(c)[0]}),a(ab,x),a(bb,x),a(wb,x),a(za,function(a,b){return a.value instanceof Ab&&(a.value=null),a})}(),function(){function a(a){if("Literal"==a.type)return null!=a.raw?a.raw:a.value+""}function b(b){var c=b.loc,d=c&&c.start,e=b.range;return new _({file:c&&c.source,line:d&&d.line,col:d&&d.column,pos:e?e[0]:b.start,endline:d&&d.line,endcol:d&&d.column,endpos:e?e[0]:b.start,raw:a(b)})}function d(b){var c=b.loc,d=c&&c.end,e=b.range;return new _({file:c&&c.source,line:d&&d.line,col:d&&d.column,pos:e?e[1]:b.end,endline:d&&d.line,endcol:d&&d.column,endpos:e?e[1]:b.end,raw:a(b)})}function e(a,e,g){var k="function From_Moz_"+a+"(M){\n";k+="return new U2."+e.name+"({\nstart: my_start_token(M),\nend: my_end_token(M)";var m="function To_Moz_"+a+"(M){\n";m+="return {\ntype: "+JSON.stringify(a),g&&g.split(/\s*,\s*/).forEach(function(a){var b=/([a-z0-9$_]+)(=|@|>|%)([a-z0-9$_]+)/i.exec(a);if(!b)throw new Error("Can't understand property map: "+a);var c=b[1],d=b[2],e=b[3];switch(k+=",\n"+e+": ",m+=",\n"+c+": ",d){case"@":k+="M."+c+".map(from_moz)",m+="M."+e+".map(to_moz)";break;case">":k+="from_moz(M."+c+")",m+="to_moz(M."+e+")";break;case"=":k+="M."+c,m+="M."+e;break;case"%":k+="from_moz(M."+c+").body",m+="to_moz_block(M)";break;default:throw new Error("Can't understand operator in propmap: "+a)}}),k+="\n})\n}",m+="\n}\n}",k=new Function("U2","my_start_token","my_end_token","from_moz","return("+k+")")(c,b,d,f),m=new Function("to_moz","to_moz_block","return("+m+")")(i,j),l[a]=k,h(e,m)}function f(a){m.push(a);var b=null!=a?l[a.type](a):null;return m.pop(),b}function g(a,b,c){var d=a.start,e=a.end;return null!=d.pos&&null!=e.endpos&&(b.range=[d.pos,e.endpos]),d.line&&(b.loc={start:{line:d.line,column:d.col},end:e.endline?{line:e.endline,column:e.endcol}:null},d.file&&(b.loc.source=d.file)),b}function h(a,b){a.DEFMETHOD("to_mozilla_ast",function(){return g(this,b(this))})}function i(a){return null!=a?a.to_mozilla_ast():null}function j(a){return{type:"BlockStatement",body:a.body.map(i)}}var k=function(a){for(var b=!0,c=0;c1||a.guardedHandlers&&a.guardedHandlers.length)throw new Error("Multiple catch clauses are not supported.");return new Ja({start:b(a),end:d(a),body:f(a.block).body,bcatch:f(c[0]),bfinally:a.finalizer?new La(f(a.finalizer)):null})},Property:function(a){var c=a.key,e="Identifier"==c.type?c.name:c.value,g={start:b(c),end:d(a.value),key:e,value:f(a.value)};switch(a.kind){case"init":return new db(g);case"set":return g.value.name=f(c),new eb(g);case"get":return g.value.name=f(c),new fb(g)}},ArrayExpression:function(a){return new ab({start:b(a),end:d(a),elements:a.elements.map(function(a){return null===a?new Bb:f(a)})})},ObjectExpression:function(a){return new bb({start:b(a),end:d(a),properties:a.properties.map(function(a){return a.type="Property",f(a)})})},SequenceExpression:function(a){return Sa.from_array(a.expressions.map(f))},MemberExpression:function(a){return new(a.computed?Va:Ua)({start:b(a),end:d(a),property:a.computed?f(a.property):a.property.name,expression:f(a.object)})},SwitchCase:function(a){return new(a.test?Ia:Ha)({start:b(a),end:d(a),expression:f(a.test),body:a.consequent.map(f)})},VariableDeclaration:function(a){return new("const"===a.kind?Oa:Na)({start:b(a),end:d(a),definitions:a.declarations.map(f)})},Literal:function(a){var c=a.value,e={start:b(a),end:d(a)};if(null===c)return new yb(e);switch(typeof c){case"string":return e.value=c,new ub(e);case"number":return e.value=c,new vb(e);case"boolean":return new(c?Fb:Eb)(e);default:var f=a.regex;return f&&f.pattern?e.value=new RegExp(f.pattern,f.flags).toString():e.value=a.regex&&a.raw?a.raw:c,new wb(e)}},Identifier:function(a){var c=m[m.length-2];return new("LabeledStatement"==c.type?pb:"VariableDeclarator"==c.type&&c.id===a?"const"==c.kind?kb:jb:"FunctionExpression"==c.type?c.id===a?nb:lb:"FunctionDeclaration"==c.type?c.id===a?mb:lb:"CatchClause"==c.type?ob:"BreakStatement"==c.type||"ContinueStatement"==c.type?rb:qb)({start:b(a),end:d(a),name:a.name})}};l.UpdateExpression=l.UnaryExpression=function(a){var c="prefix"in a?a.prefix:"UnaryExpression"==a.type;return new(c?Xa:Ya)({start:b(a),end:d(a),operator:a.operator,expression:f(a.argument)})},e("EmptyStatement",ha),e("BlockStatement",ga,"body@body"),e("IfStatement",Ea,"test>condition, consequent>body, alternate>alternative"),e("LabeledStatement",ja,"label>label, body>body"),e("BreakStatement",Ca,"label>label"),e("ContinueStatement",Da,"label>label"),e("WithStatement",qa,"object>expression, body>body"),e("SwitchStatement",Fa,"discriminant>expression, cases@body"),e("ReturnStatement",za,"argument>value"),e("ThrowStatement",Aa,"argument>value"),e("WhileStatement",na,"test>condition, body>body"),e("DoWhileStatement",ma,"test>condition, body>body"),e("ForStatement",oa,"init>init, test>condition, update>step, body>body"),e("ForInStatement",pa,"left>init, right>object, body>body"),e("DebuggerStatement",ca),e("VariableDeclarator",Pa,"id>name, init>value"),e("CatchClause",Ka,"param>argname, body%body"),e("ThisExpression",sb),e("BinaryExpression",Za,"operator=operator, left>left, right>right"),e("LogicalExpression",Za,"operator=operator, left>left, right>right"),e("AssignmentExpression",_a,"operator=operator, left>left, right>right"),e("ConditionalExpression",$a,"test>condition, consequent>consequent, alternate>alternative"),e("NewExpression",Ra,"callee>expression, arguments@args"),e("CallExpression",Qa,"callee>expression, arguments@args"),h(sa,function(a){return{type:"Program",body:a.body.map(i)}}),h(wa,function(a){return{type:"FunctionDeclaration",id:i(a.name),params:a.argnames.map(i),body:j(a)}}),h(va,function(a){return{type:"FunctionExpression",id:i(a.name),params:a.argnames.map(i),body:j(a)}}),h(da,function(a){return{type:"ExpressionStatement",expression:{type:"Literal",value:a.value}}}),h(ea,function(a){return{type:"ExpressionStatement",expression:i(a.body)}}),h(Ga,function(a){return{type:"SwitchCase",test:i(a.expression),consequent:a.body.map(i)}}),h(Ja,function(a){return{type:"TryStatement",block:j(a),handler:i(a.bcatch),guardedHandlers:[],finalizer:i(a.bfinally)}}),h(Ka,function(a){return{type:"CatchClause",param:i(a.argname),guard:null,body:j(a)}}),h(Ma,function(a){return{type:"VariableDeclaration",kind:a instanceof Oa?"const":"var",declarations:a.definitions.map(i)}}),h(Sa,function(a){return{type:"SequenceExpression",expressions:a.to_array().map(i)}}),h(Ta,function(a){var b=a instanceof Va;return{type:"MemberExpression",object:i(a.expression),computed:b,property:b?i(a.property):{type:"Identifier",name:a.property}}}),h(Wa,function(a){return{type:"++"==a.operator||"--"==a.operator?"UpdateExpression":"UnaryExpression",operator:a.operator,prefix:a instanceof Xa,argument:i(a.expression)}}),h(Za,function(a){return{type:"&&"==a.operator||"||"==a.operator?"LogicalExpression":"BinaryExpression",left:i(a.left),operator:a.operator,right:i(a.right) +}}),h(ab,function(a){return{type:"ArrayExpression",elements:a.elements.map(i)}}),h(bb,function(a){return{type:"ObjectExpression",properties:a.properties.map(i)}}),h(cb,function(a){var b,c=G(a.key)?{type:"Identifier",name:a.key}:{type:"Literal",value:a.key};return a instanceof db?b="init":a instanceof fb?b="get":a instanceof eb&&(b="set"),{type:"Property",kind:b,key:c,value:i(a.value)}}),h(gb,function(a){var b=a.definition();return{type:"Identifier",name:b?b.mangled_name||b.name:a.name}}),h(wb,function(a){var b=a.value;return{type:"Literal",value:b,raw:b.toString(),regex:{pattern:b.source,flags:b.toString().match(/[gimuy]*$/)[0]}}}),h(tb,function(a){var b=a.value;return"number"==typeof b&&(b<0||0===b&&1/b<0)?{type:"UnaryExpression",operator:"-",prefix:!0,argument:{type:"Literal",value:-b,raw:a.start.raw}}:{type:"Literal",value:b,raw:a.start.raw}}),h(xb,function(a){return{type:"Identifier",name:String(a.value)}}),Db.DEFMETHOD("to_mozilla_ast",tb.prototype.to_mozilla_ast),yb.DEFMETHOD("to_mozilla_ast",tb.prototype.to_mozilla_ast),Bb.DEFMETHOD("to_mozilla_ast",function(){return null}),fa.DEFMETHOD("to_mozilla_ast",ga.prototype.to_mozilla_ast),ta.DEFMETHOD("to_mozilla_ast",va.prototype.to_mozilla_ast);var m=null;aa.from_mozilla_ast=function(a){var b=m;m=[];var c=f(a);return m=b,c}}(),c.Compressor=T,c.DefaultsError=j,c.Dictionary=v,c.JS_Parse_Error=L,c.MAP=$,c.OutputStream=S,c.SourceMap=U,c.TreeTransformer=Q,c.TreeWalker=z,c.base54=_b,c.defaults=k,c.mangle_properties=W,c.merge=l,c.parse=P,c.push_uniq=n,c.string_template=o,c.tokenizer=O,c.is_identifier=G,c.SymbolDef=R,"undefined"!=typeof DEBUG&&DEBUG&&(c.EXPECT_DIRECTIVE=ac),c.sys=X,c.MOZ_SourceMap=Y,c.UglifyJS=Z,c.array_to_hash=d,c.slice=e,c.characters=f,c.member=g,c.find_if=h,c.repeat_string=i,c.DefaultsError=j,c.defaults=k,c.merge=l,c.noop=m,c.MAP=$,c.push_uniq=n,c.string_template=o,c.remove=p,c.mergeSort=q,c.set_difference=r,c.set_intersection=s,c.makePredicate=t,c.all=u,c.Dictionary=v,c.HOP=w,c.DEFNODE=x,c.AST_Token=_,c.AST_Node=aa,c.AST_Statement=ba,c.AST_Debugger=ca,c.AST_Directive=da,c.AST_SimpleStatement=ea,c.walk_body=y,c.AST_Block=fa,c.AST_BlockStatement=ga,c.AST_EmptyStatement=ha,c.AST_StatementWithBody=ia,c.AST_LabeledStatement=ja,c.AST_IterationStatement=ka,c.AST_DWLoop=la,c.AST_Do=ma,c.AST_While=na,c.AST_For=oa,c.AST_ForIn=pa,c.AST_With=qa,c.AST_Scope=ra,c.AST_Toplevel=sa,c.AST_Lambda=ta,c.AST_Accessor=ua,c.AST_Function=va,c.AST_Defun=wa,c.AST_Jump=xa,c.AST_Exit=ya,c.AST_Return=za,c.AST_Throw=Aa,c.AST_LoopControl=Ba,c.AST_Break=Ca,c.AST_Continue=Da,c.AST_If=Ea,c.AST_Switch=Fa,c.AST_SwitchBranch=Ga,c.AST_Default=Ha,c.AST_Case=Ia,c.AST_Try=Ja,c.AST_Catch=Ka,c.AST_Finally=La,c.AST_Definitions=Ma,c.AST_Var=Na,c.AST_Const=Oa,c.AST_VarDef=Pa,c.AST_Call=Qa,c.AST_New=Ra,c.AST_Seq=Sa,c.AST_PropAccess=Ta,c.AST_Dot=Ua,c.AST_Sub=Va,c.AST_Unary=Wa,c.AST_UnaryPrefix=Xa,c.AST_UnaryPostfix=Ya,c.AST_Binary=Za,c.AST_Conditional=$a,c.AST_Assign=_a,c.AST_Array=ab,c.AST_Object=bb,c.AST_ObjectProperty=cb,c.AST_ObjectKeyVal=db,c.AST_ObjectSetter=eb,c.AST_ObjectGetter=fb,c.AST_Symbol=gb,c.AST_SymbolAccessor=hb,c.AST_SymbolDeclaration=ib,c.AST_SymbolVar=jb,c.AST_SymbolConst=kb,c.AST_SymbolFunarg=lb,c.AST_SymbolDefun=mb,c.AST_SymbolLambda=nb,c.AST_SymbolCatch=ob,c.AST_Label=pb,c.AST_SymbolRef=qb,c.AST_LabelRef=rb,c.AST_This=sb,c.AST_Constant=tb,c.AST_String=ub,c.AST_Number=vb,c.AST_RegExp=wb,c.AST_Atom=xb,c.AST_Null=yb,c.AST_NaN=zb,c.AST_Undefined=Ab,c.AST_Hole=Bb,c.AST_Infinity=Cb,c.AST_Boolean=Db,c.AST_False=Eb,c.AST_True=Fb,c.TreeWalker=z,c.KEYWORDS=Gb,c.KEYWORDS_ATOM=Hb,c.RESERVED_WORDS=Ib,c.KEYWORDS_BEFORE_EXPRESSION=Jb,c.OPERATOR_CHARS=Kb,c.RE_HEX_NUMBER=Lb,c.RE_OCT_NUMBER=Mb,c.OPERATORS=Nb,c.WHITESPACE_CHARS=Ob,c.NEWLINE_CHARS=Pb,c.PUNC_BEFORE_EXPRESSION=Qb,c.PUNC_CHARS=Rb,c.REGEXP_MODIFIERS=Sb,c.UNICODE=Tb,c.is_letter=A,c.is_digit=B,c.is_alphanumeric_char=C,c.is_unicode_digit=D,c.is_unicode_combining_mark=E,c.is_unicode_connector_punctuation=F,c.is_identifier=G,c.is_identifier_start=H,c.is_identifier_char=I,c.is_identifier_string=J,c.parse_js_number=K,c.JS_Parse_Error=L,c.js_error=M,c.is_token=N,c.EX_EOF=Ub,c.tokenizer=O,c.UNARY_PREFIX=Vb,c.UNARY_POSTFIX=Wb,c.ASSIGNMENT=Xb,c.PRECEDENCE=Yb,c.STATEMENTS_WITH_LABELS=Zb,c.ATOMIC_START_TOKEN=$b,c.parse=P,c.TreeTransformer=Q,c.SymbolDef=R,c.base54=_b,c.EXPECT_DIRECTIVE=ac,c.OutputStream=S,c.Compressor=T,c.SourceMap=U,c.find_builtins=V,c.mangle_properties=W,c.AST_Node.warn_function=function(a){"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(a)},c.minify=function(a,b){function c(a,c){var f=b.fromString?a:fs.readFileSync(a,"utf8");e[c]=f,d=Z.parse(f,{filename:c,toplevel:d,bare_returns:b.parse?b.parse.bare_returns:void 0})}b=Z.defaults(b,{spidermonkey:!1,outSourceMap:null,sourceRoot:null,inSourceMap:null,fromString:!1,warnings:!1,mangle:{},mangleProperties:!1,nameCache:null,output:null,compress:{},parse:{}}),Z.base54.reset();var d=null,e={};if(b.spidermonkey?d=Z.AST_Node.from_mozilla_ast(a):[].concat(a).forEach(function(a,d){if("string"==typeof a)c(a,b.fromString?d:a);else for(var e in a)c(a[e],e)}),b.wrap&&(d=d.wrap_commonjs(b.wrap,b.exportAll)),b.compress){var f={warnings:b.warnings};Z.merge(f,b.compress),d.figure_out_scope();var g=Z.Compressor(f);d=g.compress(d)}(b.mangleProperties||b.nameCache)&&(b.mangleProperties.cache=Z.readNameCache(b.nameCache,"props"),d=Z.mangle_properties(d,b.mangleProperties),Z.writeNameCache(b.nameCache,"props",b.mangleProperties.cache)),b.mangle&&(d.figure_out_scope(b.mangle),d.compute_char_frequency(b.mangle),d.mangle_names(b.mangle));var h=b.inSourceMap,i={};if("string"==typeof b.inSourceMap&&(h=fs.readFileSync(b.inSourceMap,"utf8")),b.outSourceMap&&(i.source_map=Z.SourceMap({file:b.outSourceMap,orig:h,root:b.sourceRoot}),b.sourceMapIncludeSources))for(var j in e)e.hasOwnProperty(j)&&i.source_map.get().setSourceContent(j,e[j]);b.output&&Z.merge(i,b.output);var k=Z.OutputStream(i);d.print(k),b.outSourceMap&&"string"==typeof b.outSourceMap&&(k+="\n//# sourceMappingURL="+b.outSourceMap);var l=i.source_map;return l&&(l+=""),{code:k+"",map:l}},c.describe_ast=function(){function a(c){b.print("AST_"+c.TYPE);var d=c.SELF_PROPS.filter(function(a){return!/^\$/.test(a)});d.length>0&&(b.space(),b.with_parens(function(){d.forEach(function(a,c){c&&b.space(),b.print(a)})})),c.documentation&&(b.space(),b.print_string(c.documentation)),c.SUBCLASSES.length>0&&(b.space(),b.with_block(function(){c.SUBCLASSES.forEach(function(c,d){b.indent(),a(c),b.newline()})}))}var b=Z.OutputStream({beautify:!0});return a(Z.AST_Node),b+""}},{"source-map":136,util:142}],138:[function(a,b,c){"use strict";function d(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function e(a,b,c){if(a&&j.isObject(a)&&a instanceof d)return a;var e=new d;return e.parse(a,b,c),e}function f(a){return j.isString(a)&&(a=e(a)),a instanceof d?a.format():d.prototype.format.call(a)}function g(a,b){return e(a,!1,!0).resolve(b)}function h(a,b){return a?e(a,!1,!0).resolveObject(b):b}var i=a("punycode"),j=a("./util");c.parse=e,c.resolve=g,c.resolveObject=h,c.format=f,c.Url=d;var k=/^([a-z0-9.+-]+:)/i,l=/:[0-9]*$/,m=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,n=["<",">",'"',"`"," ","\r","\n","\t"],o=["{","}","|","\\","^","`"].concat(n),p=["'"].concat(o),q=["%","/","?",";","#"].concat(p),r=["/","?","#"],s=255,t=/^[+a-z0-9A-Z_-]{0,63}$/,u=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},w={javascript:!0,"javascript:":!0},x={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=a("querystring");d.prototype.parse=function(a,b,c){if(!j.isString(a))throw new TypeError("Parameter 'url' must be a string, not "+typeof a);var d=a.indexOf("?"),e=d!==-1&&d127?"x":I[K];if(!J.match(t)){var M=G.slice(0,B),N=G.slice(B+1),O=I.match(u);O&&(M.push(O[1]),N.unshift(O[2])),N.length&&(h="/"+N.join(".")+h),this.hostname=M.join(".");break}}}this.hostname.length>s?this.hostname="":this.hostname=this.hostname.toLowerCase(),F||(this.hostname=i.toASCII(this.hostname));var P=this.port?":"+this.port:"",Q=this.hostname||"";this.host=Q+P,this.href+=this.host,F&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==h[0]&&(h="/"+h))}if(!v[o])for(var B=0,H=p.length;B0)&&c.host.split("@");z&&(c.auth=z.shift(),c.host=c.hostname=z.shift())}return c.search=a.search,c.query=a.query,j.isNull(c.pathname)&&j.isNull(c.search)||(c.path=(c.pathname?c.pathname:"")+(c.search?c.search:"")),c.href=c.format(),c}if(!v.length)return c.pathname=null,c.search?c.path="/"+c.search:c.path=null,c.href=c.format(),c;for(var A=v.slice(-1)[0],B=(c.host||a.host||v.length>1)&&("."===A||".."===A)||""===A,C=0,D=v.length;D>=0;D--)A=v[D],"."===A?v.splice(D,1):".."===A?(v.splice(D,1),C++):C&&(v.splice(D,1),C--);if(!t&&!u)for(;C--;C)v.unshift("..");!t||""===v[0]||v[0]&&"/"===v[0].charAt(0)||v.unshift(""),B&&"/"!==v.join("/").substr(-1)&&v.push("");var E=""===v[0]||v[0]&&"/"===v[0].charAt(0);if(y){c.hostname=c.host=E?"":v.length?v.shift():"";var z=!!(c.host&&c.host.indexOf("@")>0)&&c.host.split("@");z&&(c.auth=z.shift(),c.host=c.hostname=z.shift())}return t=t||c.host&&v.length,t&&!E&&v.unshift(""),v.length?c.pathname=v.join("/"):(c.pathname=null,c.path=null),j.isNull(c.pathname)&&j.isNull(c.search)||(c.path=(c.pathname?c.pathname:"")+(c.search?c.search:"")),c.auth=a.auth||c.auth,c.slashes=c.slashes||a.slashes,c.href=c.format(),c},d.prototype.parseHost=function(){var a=this.host,b=l.exec(a);b&&(b=b[0],":"!==b&&(this.port=b.substr(1)),a=a.substr(0,a.length-b.length)),a&&(this.hostname=a)}},{"./util":139,punycode:82,querystring:85}],139:[function(a,b,c){"use strict";b.exports={isString:function(a){return"string"==typeof a},isObject:function(a){return"object"==typeof a&&null!==a},isNull:function(a){return null===a},isNullOrUndefined:function(a){return null==a}}},{}],140:[function(a,b,c){(function(a){function c(a,b){function c(){if(!e){if(d("throwDeprecation"))throw new Error(b);d("traceDeprecation")?console.trace(b):console.warn(b),e=!0}return a.apply(this,arguments)}if(d("noDeprecation"))return a;var e=!1;return c}function d(b){try{if(!a.localStorage)return!1}catch(c){return!1}var d=a.localStorage[b];return null!=d&&"true"===String(d).toLowerCase()}b.exports=c}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],141:[function(a,b,c){b.exports=function(a){return a&&"object"==typeof a&&"function"==typeof a.copy&&"function"==typeof a.fill&&"function"==typeof a.readUInt8}},{}],142:[function(a,b,c){(function(b,d){function e(a,b){var d={seen:[],stylize:g};return arguments.length>=3&&(d.depth=arguments[2]),arguments.length>=4&&(d.colors=arguments[3]),p(b)?d.showHidden=b:b&&c._extend(d,b),v(d.showHidden)&&(d.showHidden=!1),v(d.depth)&&(d.depth=2),v(d.colors)&&(d.colors=!1),v(d.customInspect)&&(d.customInspect=!0),d.colors&&(d.stylize=f),i(d,a,d.depth)}function f(a,b){var c=e.styles[b];return c?"["+e.colors[c][0]+"m"+a+"["+e.colors[c][1]+"m":a}function g(a,b){return a}function h(a){var b={};return a.forEach(function(a,c){b[a]=!0}),b}function i(a,b,d){if(a.customInspect&&b&&A(b.inspect)&&b.inspect!==c.inspect&&(!b.constructor||b.constructor.prototype!==b)){var e=b.inspect(d,a);return t(e)||(e=i(a,e,d)),e}var f=j(a,b);if(f)return f;var g=Object.keys(b),p=h(g);if(a.showHidden&&(g=Object.getOwnPropertyNames(b)),z(b)&&(g.indexOf("message")>=0||g.indexOf("description")>=0))return k(b);if(0===g.length){if(A(b)){var q=b.name?": "+b.name:"";return a.stylize("[Function"+q+"]","special")}if(w(b))return a.stylize(RegExp.prototype.toString.call(b),"regexp");if(y(b))return a.stylize(Date.prototype.toString.call(b),"date");if(z(b))return k(b)}var r="",s=!1,u=["{","}"];if(o(b)&&(s=!0,u=["[","]"]),A(b)){var v=b.name?": "+b.name:"";r=" [Function"+v+"]"}if(w(b)&&(r=" "+RegExp.prototype.toString.call(b)),y(b)&&(r=" "+Date.prototype.toUTCString.call(b)),z(b)&&(r=" "+k(b)),0===g.length&&(!s||0==b.length))return u[0]+r+u[1];if(d<0)return w(b)?a.stylize(RegExp.prototype.toString.call(b),"regexp"):a.stylize("[Object]","special");a.seen.push(b);var x;return x=s?l(a,b,d,p,g):g.map(function(c){return m(a,b,d,p,c,s)}),a.seen.pop(),n(x,r,u)}function j(a,b){if(v(b))return a.stylize("undefined","undefined");if(t(b)){var c="'"+JSON.stringify(b).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return a.stylize(c,"string")}return s(b)?a.stylize(""+b,"number"):p(b)?a.stylize(""+b,"boolean"):q(b)?a.stylize("null","null"):void 0}function k(a){return"["+Error.prototype.toString.call(a)+"]"}function l(a,b,c,d,e){for(var f=[],g=0,h=b.length;g-1&&(h=f?h.split("\n").map(function(a){return" "+a}).join("\n").substr(2):"\n"+h.split("\n").map(function(a){return" "+a}).join("\n"))):h=a.stylize("[Circular]","special")),v(g)){if(f&&e.match(/^\d+$/))return h;g=JSON.stringify(""+e),g.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(g=g.substr(1,g.length-2),g=a.stylize(g,"name")):(g=g.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),g=a.stylize(g,"string"))}return g+": "+h}function n(a,b,c){var d=0,e=a.reduce(function(a,b){return d++,b.indexOf("\n")>=0&&d++,a+b.replace(/\u001b\[\d\d?m/g,"").length+1},0);return e>60?c[0]+(""===b?"":b+"\n ")+" "+a.join(",\n ")+" "+c[1]:c[0]+b+" "+a.join(", ")+" "+c[1]}function o(a){return Array.isArray(a)}function p(a){return"boolean"==typeof a}function q(a){return null===a}function r(a){return null==a}function s(a){return"number"==typeof a}function t(a){return"string"==typeof a}function u(a){return"symbol"==typeof a}function v(a){return void 0===a}function w(a){return x(a)&&"[object RegExp]"===C(a)}function x(a){return"object"==typeof a&&null!==a}function y(a){return x(a)&&"[object Date]"===C(a)}function z(a){return x(a)&&("[object Error]"===C(a)||a instanceof Error)}function A(a){return"function"==typeof a}function B(a){return null===a||"boolean"==typeof a||"number"==typeof a||"string"==typeof a||"symbol"==typeof a||"undefined"==typeof a}function C(a){return Object.prototype.toString.call(a)}function D(a){return a<10?"0"+a.toString(10):a.toString(10)}function E(){var a=new Date,b=[D(a.getHours()),D(a.getMinutes()),D(a.getSeconds())].join(":");return[a.getDate(),J[a.getMonth()],b].join(" ")}function F(a,b){return Object.prototype.hasOwnProperty.call(a,b)}var G=/%[sdj%]/g;c.format=function(a){if(!t(a)){for(var b=[],c=0;c=f)return a;switch(a){case"%s":return String(d[c++]);case"%d":return Number(d[c++]);case"%j":try{return JSON.stringify(d[c++])}catch(b){return"[Circular]"}default:return a}}),h=d[c];c=0;d--)c[d]="(?:("+a.customAttrSurround[d][0].source+")\\s*"+b+"\\s*("+a.customAttrSurround[d][1].source+"))";c.push("(?:"+b+")"),b="(?:"+c.join("|")+")"}return new RegExp("^\\s*"+b)}function f(a){return k.concat(a.customAttrAssign||[]).map(function(a){return"(?:"+a.source+")"}).join("|")}function g(a,b){function c(a){var b=a.match(n);if(b){var c={tagName:b[1],attrs:[]};a=a.slice(b[0].length);for(var d,e;!(d=a.match(o))&&(e=a.match(l));)a=a.slice(e[0].length),c.attrs.push(e);if(d)return c.unarySlash=d[1],c.rest=a.slice(d[0].length),c}}function d(a){var c=a.tagName,d=a.unarySlash;if(b.html5&&"p"===g&&x(c)&&f("",g),!b.html5)for(;g&&t(g);)f("",g);u(c)&&g===c&&f("",c);var e=s(c)||"html"===c&&"head"===g||!!d,h=a.attrs.map(function(a){function c(b){return h=a[b],e=a[b+1],"undefined"!=typeof e?'"':(e=a[b+2],"undefined"!=typeof e?"'":(e=a[b+3],"undefined"==typeof e&&v(d)&&(e=d),""))}var d,e,f,g,h,i,j=7;r&&a[0].indexOf('""')===-1&&(""===a[3]&&delete a[3],""===a[4]&&delete a[4],""===a[5]&&delete a[5]);var k=1;if(b.customAttrSurround)for(var l=0,m=b.customAttrSurround.length;l=0&&k[d].tag.toLowerCase()!==e;d--);}else d=0;if(d>=0){for(var f=k.length-1;f>=d;f--)b.end&&b.end(k[f].tag,k[f].attrs,f>d||!a);k.length=d,g=d&&k[d-1].tag}else"br"===c.toLowerCase()?b.start&&b.start(c,[],!0,""):"p"===c.toLowerCase()&&(b.start&&b.start(c,[],!1,"",!0),b.end&&b.end(c,[]))}for(var g,h,i,j,k=[],l=e(b);a;){if(h=a,g&&w(g)){var m=g.toLowerCase(),z=y[m]||(y[m]=new RegExp("([\\s\\S]*?)]*>","i"));a=a.replace(z,function(a,c){return"script"!==m&&"style"!==m&&"noscript"!==m&&(c=c.replace(//g,"$1").replace(//g,"$1")),b.chars&&b.chars(c),""}),f("",m)}else{var A=a.indexOf("<");if(0===A){if(/^");if(B>=0){b.comment&&b.comment(a.substring(4,B)),a=a.substring(B+3),i="";continue}}if(/^");if(C>=0){b.comment&&b.comment(a.substring(2,C+1),!0),a=a.substring(C+2),i="";continue}}var D=a.match(q);if(D){b.doctype&&b.doctype(D[0]),a=a.substring(D[0].length),i="";continue}var E=a.match(p);if(E){a=a.substring(E[0].length),E[0].replace(p,f),i="/"+E[1].toLowerCase();continue}var F=c(a);if(F){a=F.rest,d(F),i=F.tagName.toLowerCase();continue}}var G;A>=0?(G=a.substring(0,A),a=a.substring(A)):(G=a,a="");var H=c(a);H?j=H.tagName:(H=a.match(p),j=H?"/"+H[1]:""),b.chars&&b.chars(G,i,j),i=""}if(a===h)throw new Error("Parse Error: "+a)}b.partialMarkup||f()}var h=a("./utils").createMapFromString,i=/([^\s"'<>\/=]+)/,j=/=/,k=[j],l=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],m=function(){var b=a("ncname").source.slice(1,-1);return"((?:"+b+"\\:)?"+b+")"}(),n=new RegExp("^<"+m),o=/^\s*(\/?)>/,p=new RegExp("^<\\/"+m+"[^>]*>"),q=/^]+>/i,r=!1;"x".replace(/x(.)?/g,function(a,b){r=""===b});var s=d("area,base,basefont,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),t=d("a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,noscript,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,svg,textarea,tt,u,var"),u=d("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),v=d("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),w=d("script,style"),x=d("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),y={};c.HTMLParser=g,c.HTMLtoXML=function(a){var b="";return new g(a,{start:function(a,c,d){b+="<"+a;for(var e=0,f=c.length;e"},end:function(a){b+=""},chars:function(a){b+=a},comment:function(a){b+=""},ignore:function(a){b+=a}}),b},c.HTMLtoDOM=function(a,b){var c={html:!0,head:!0,body:!0,title:!0},d={link:"head",base:"head"};b?b=b.ownerDocument||b.getOwnerDocument&&b.getOwnerDocument()||b:"undefined"!=typeof DOMDocument?b=new DOMDocument:"undefined"!=typeof document&&document.implementation&&document.implementation.createDocument?b=document.implementation.createDocument("","",null):"undefined"!=typeof ActiveX&&(b=new ActiveXObject("Msxml.DOMDocument")); +var e=[],f=b.documentElement||b.getDocumentElement&&b.getDocumentElement();if(!f&&b.createElement&&!function(){var a=b.createElement("html"),c=b.createElement("head");c.appendChild(b.createElement("title")),a.appendChild(c),a.appendChild(b.createElement("body")),b.appendChild(a)}(),b.getElementsByTagName)for(var h in c)c[h]=b.getElementsByTagName(h)[0];var i=c.body;return new g(a,{start:function(a,f,g){if(c[a])return void(i=c[a]);var h=b.createElement(a);for(var j in f)h.setAttribute(f[j].name,f[j].value);d[a]&&"boolean"!=typeof c[d[a]]?c[d[a]].appendChild(h):i&&i.appendChild&&i.appendChild(h),g||(e.push(h),i=h)},end:function(){e.length-=1,i=e[e.length-1]},chars:function(a){i.appendChild(b.createTextNode(a))},comment:function(){},ignore:function(){}}),b}},{"./utils":147,ncname:77}],146:[function(a,b,c){"use strict";function d(){}function e(){}d.prototype.sort=function(a,b){b=b||0;for(var c=0,d=this.tokens.length;ce?-1:bc?1:0}).filter(function(c){if(a[c].processed]+$/.test(a)}function l(a,b){for(var c=a.length;c--;)if(a[c].name.toLowerCase()===b)return!0;return!1}function m(a,b,c,d){return c=c?aa(c.toLowerCase()):"","script"===a&&"language"===b&&"javascript"===c||"form"===a&&"method"===b&&"get"===c||"input"===a&&"type"===b&&"text"===c||"script"===a&&"charset"===b&&!l(d,"src")||"a"===a&&"name"===b&&l(d,"id")||"area"===a&&"shape"===b&&"rect"===c}function n(a){return a=aa(a.split(/;/,2)[0]).toLowerCase(),""===a||fa(a)}function o(a,b){if("script"!==a)return!1;for(var c=0,d=b.length;c)([\s\S]*?)(-1)return T(a,b);return a}function F(a,b){switch(a){case"html":case"head":return!0;case"body":return!la(b);case"colgroup":return"col"===b;case"tbody":return"tr"===b}return!1}function G(a,b){switch(b){case"colgroup":return"colgroup"===a;case"tbody":return ta(a)}return!1}function H(a,b){switch(a){case"html":case"head":case"body":case"colgroup":case"caption":return!0;case"li":case"optgroup":case"tr":return b===a;case"dt":case"dd":return ma(b);case"p":return na(b);case"rb":case"rt":case"rp":return pa(b);case"rtc":return qa(b);case"option":return ra(b);case"thead":case"tbody":return sa(b);case"tfoot":return"tbody"===b;case"td":case"th":return ua(b)}return!1}function I(a,b,c){var d=!c||/^\s*$/.test(c);return!!d&&("input"===a&&"value"===b||Aa.test(b))}function J(a,b){for(var c=b.length-1;c>=0;c--)if(b[c].name===a)return!0;return!1}function K(a,b){switch(a){case"textarea":return!1;case"audio":case"script":case"video":if(J("src",b))return!1;break;case"iframe":if(J("src",b)||J("srcdoc",b))return!1;break;case"object":if(J("data",b))return!1;break;case"applet":if(J("code",b))return!1}return!0}function L(a){return!/^(?:script|style|pre|textarea)$/.test(a)}function M(a){return!/^(?:pre|textarea)$/.test(a)}function N(a,b,c,d){var e=d.caseSensitive?a.name:a.name.toLowerCase(),f=a.value;if(d.decodeEntities&&f&&(f=W(f,{isAttributeValue:!0})),!(d.removeRedundantAttributes&&m(c,e,f,b)||d.removeScriptTypeAttributes&&"script"===c&&"type"===e&&n(f)||d.removeStyleLinkTypeAttributes&&("style"===c||"link"===c)&&"type"===e&&p(f)||(f=x(c,e,f,d,b),d.removeEmptyAttributes&&I(c,e,f))))return d.decodeEntities&&f&&(f=f.replace(/&(#?[0-9a-zA-Z]+;)/g,"&$1")),{attr:a,name:e,value:f}}function O(a,b,c,d){var e,f,g=a.name,h=a.value,i=a.attr,j=i.quote;if("undefined"!=typeof h&&!c.removeAttributeQuotes||!k(h)){if(!c.preventAttributesEscaping){if("undefined"==typeof c.quoteCharacter){var l=(h.match(/'/g)||[]).length,m=(h.match(/"/g)||[]).length;j=l/,/<\?[\s\S]*?\?>/]),a.minifyURLs||(a.minifyURLs=P),"function"!=typeof a.minifyURLs){var e=a.minifyURLs;"string"==typeof e?e={site:e}:"object"!=typeof e&&(e={}),a.minifyURLs=function(b){try{return Y.relate(b,e)}catch(c){return a.log(c),b}}}if(a.minifyJS||(a.minifyJS=P),"function"!=typeof a.minifyJS){var f=a.minifyJS;"object"!=typeof f&&(f={}),f.fromString=!0,(f.output||(f.output={})).inline_script=!0,a.minifyJS=function(b,c){var d=b.match(/^\s*\s*$/,""):b;try{return c&&(e=Ba+e+Ca),e=$.minify(e,f).code,c&&(e=e.slice(Ba.length,-Ca.length)),/;$/.test(e)&&(e=e.slice(0,-1)),e}catch(g){return a.log(g),b}}}if(a.minifyCSS||(a.minifyCSS=P),"function"!=typeof a.minifyCSS){var g=a.minifyCSS;"object"!=typeof g&&(g={}),"undefined"==typeof g.advanced&&(g.advanced=!1),a.minifyCSS=function(b){b=b.replace(/(url\s*\(\s*)("|'|)(.*?)\2(\s*\))/gi,function(b,c,d,e,f){return c+d+a.minifyURLs(e)+d+f});var c=b.match(/^\s*\s*$/,""):b;try{return new V(g).minify(d).styles}catch(e){return a.log(e),b}}}}function R(a){var b;do b=Math.random().toString(36).replace(/^0\.[0-9]*/,"");while(~a.indexOf(b));return b}function S(a,b,c,d){function e(a){return a.map(function(a){return b.caseSensitive?a.name:a.name.toLowerCase()})}function f(a,b){return!b||a.indexOf(b)===-1}function g(a){return f(a,c)&&f(a,d)}function h(a){var c,d;new X(a,{start:function(a,f){i&&(i[a]||(i[a]=new Z),i[a].add(e(f).filter(g)));for(var h=0,k=f.length;h-1&&h(a)}})}var i=b.sortAttributes&&Object.create(null),j=b.sortClassName&&new Z,k=b.log;if(b.log=null,b.sortAttributes=!1,b.sortClassName=!1,h(T(a,b)),b.log=k,i){var l=Object.create(null);for(var m in i)l[m]=i[m].createSorter();b.sortAttributes=function(a,b){var c=l[a];if(c){var d=Object.create(null),f=e(b);f.forEach(function(a,c){(d[a]||(d[a]=[])).push(b[c])}),c.sort(f).forEach(function(a,c){b[c]=d[a].shift()})}}}if(j){var n=j.createSorter();b.sortClassName=function(a){return n.sort(a.split(/\s+/)).join(" ")}}}function T(a,b,c){function d(a,c){return L(a)||b.canCollapseWhitespace(a,c)}function j(a,c){return M(a)||b.canTrimWhitespace(a,c)}function k(){for(var a=w.length-1;a>0&&!/^<[^\/!]/.test(w[a]);)a--;w.length=Math.max(0,a)}function l(){for(var a=w.length-1;a>0&&!/^<\//.test(w[a]);)a--;w.length=Math.max(0,a)}function m(a,c){for(var d=null;a>=0&&j(d);a--){var e=w[a],f=e.match(/^<\/([\w:-]+)>$/);if(f)d=f[1];else if(/>$/.test(e)||(w[a]=g(e,null,c,b)))break}}function n(a){var b=w.length-1;if(w.length>1){var c=w[w.length-1];/^(?:([\s\S]*?)/g,function(b,c){t||(t=R(a));var d="";return P.push(c),d});var V=b.ignoreCustomFragments.map(function(a){return a.source});if(V.length){var Y=new RegExp("\\s*(?:"+V.join("|")+")+\\s*","g");a=a.replace(Y,function(c){if(!u){u=R(a),v=new RegExp("(\\s*)"+u+"([0-9]+)(\\s*)","g");var d=b.minifyCSS;d&&(b.minifyCSS=function(a){return d(a).replace(v,function(a,b,c,d){return(b&&"\t")+u+c+(d&&"\t")})});var e=b.minifyJS;if(e){var f=new RegExp("(\\\\t|)"+u+"([0-9]+)(\\\\t|)","g");b.minifyJS=function(a,b){return e(a,b).replace(f,function(a,b,c,d){return(b&&"\t")+u+c+(d&&"\t")})}}}var g=u+T.length;return T.push(c),"\t"+g+"\t"})}(b.sortAttributes&&"function"!=typeof b.sortAttributes||b.sortClassName&&"function"!=typeof b.sortClassName)&&S(a,b,t,u),new X(a,{partialMarkup:c,html5:b.html5,start:function(a,c,e,f,g){var h=a.toLowerCase();if("svg"===h){p.push(b);var i={};for(var m in b)i[m]=b[m];i.keepClosingSlash=!0,i.caseSensitive=!0,b=i}a=b.caseSensitive?a:h,y=a,r=a,da(a)||(x=""),s=!1,z=c;var o=b.removeOptionalTags;if(o){var q=za(a);q&&F(C,a)&&k(),C="",q&&H(I,a)&&(l(),o=!G(I,a)),I=""}b.collapseWhitespace&&(A.length||n(a),j(a,c)||A.push(a),d(a,c)||B.push(a));var t="<"+a,u=f&&b.keepClosingSlash;w.push(t),b.sortAttributes&&b.sortAttributes(a,c);for(var v=[],D=c.length,E=!0;--D>=0;){var J=N(c[D],c,a,b);J&&(v.unshift(O(J,u,b,E)),E=!1)}v.length>0?(w.push(" "),w.push.apply(w,v)):o&&ja(a)&&(C=a),w.push(w.pop()+(u?"/":"")+">"),g&&!b.includeAutoGeneratedTags&&(k(),C="")},end:function(a,c,d){var e=a.toLowerCase();"svg"===e&&(b=p.pop()),a=b.caseSensitive?a:e,b.collapseWhitespace&&(A.length?a===A[A.length-1]&&A.pop():n("/"+a),B.length&&a===B[B.length-1]&&B.pop());var f=!1;a===y&&(y="",f=!s),b.removeOptionalTags&&(f&&va(C)&&k(),C="",!za(a)||!I||ya(I)||"p"===I&&oa(a)||l(),I=ka(a)?a:""),b.removeEmptyElements&&f&&K(a,c)?(k(),C="",I=""):(d&&!b.includeAutoGeneratedTags?I="":w.push(""),r="/"+a,ca(a)?f&&(x+="|"):x="")},chars:function(a,c,d){if(c=""===c?"comment":c,d=""===d?"comment":d,b.decodeEntities&&a&&!Da(y)&&(a=W(a)),b.collapseWhitespace){if(!A.length){if("comment"===c){var e=w[w.length-1];if(e.indexOf(t)===-1&&(e||(c=r),w.length>1&&(!e||!b.conservativeCollapse&&/ $/.test(x)))){var h=w.length-2;w[h]=w[h].replace(/\s+$/,function(b){return a=b+a,""})}}c&&("/nobr"===c||"wbr"===c?/^\s/.test(a)&&m(w.length-2,"br"):da("/"===c.charAt(0)?c.slice(1):c)&&(a=f(a,b,/(?:^|\s)$/.test(x)))),a=c||d?g(a,c,d,b):f(a,b,!0,!0),!a&&/\s$/.test(x)&&c&&"/"===c.charAt(0)&&m(w.length-1,d)}B.length||"html"===d||c&&d||(a=f(a,b,!1,!1,!0))}b.processScripts&&Da(y)&&(a=E(a,b,z)),o(y,z)&&(a=b.minifyJS(a)),q(y,z)&&(a=b.minifyCSS(a)),b.removeOptionalTags&&a&&(("html"===C||"body"===C&&!/^\s/.test(a))&&k(),C="",(wa(I)||xa(I)&&!/^\s/.test(a))&&l(),I=""),r=/^\s*$/.test(a)?c:"comment",b.decodeEntities&&a&&!Da(y)&&(a=a.replace(/&(#?[0-9a-zA-Z]+;)/g,"&$1").replace(/":"-->";a=h(a)?d+D(a,b)+e:b.removeComments?i(a,b)?"":"":d+a+e,b.removeOptionalTags&&a&&(C="",I=""),w.push(a)},doctype:function(a){w.push(b.useShortDoctype?"":e(a))},customAttrAssign:b.customAttrAssign,customAttrSurround:b.customAttrSurround}),b.removeOptionalTags&&(va(C)&&k(),I&&!ya(I)&&l()),b.collapseWhitespace&&n("br");var Z=U(w,b);return v&&(Z=Z.replace(v,function(a,c,d,e){var g=T[+d];return b.collapseWhitespace?("\t"!==c&&(g=c+g),"\t"!==e&&(g+=e),f(g,{preserveLineBreaks:b.preserveLineBreaks,conservativeCollapse:!0},/^\s/.test(g),/\s$/.test(g))):g})),t&&(Z=Z.replace(new RegExp("","g"),function(a,b){return P[+b]})),b.log("minified in: "+(Date.now()-J)+"ms"),Z}function U(a,b){var c,d=b.maxLineLength;if(d){for(var e,g=[],h="",i=0,j=a.length;i
-

HTML Minifier (v2.1.7)

+

HTML Minifier (v3.0.0)

diff --git a/package.json b/package.json index 80ff246..0644027 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "html-minifier", "description": "Highly configurable, well-tested, JavaScript-based HTML minifier.", - "version": "2.1.7", + "version": "3.0.0", "keywords": [ "cli", "compress", -- 2.34.1