!function(e){ /*********************************************************************** A JavaScript tokenizer / parser / beautifier / compressor. https://github.com/mishoo/UglifyJS2 -------------------------------- (C) --------------------------------- Author: Mihai Bazon http://mihai.bazon.net/blog Distributed under the BSD license: Copyright 2012 (c) Mihai Bazon Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ***********************************************************************/ "use strict";function n(e){return e.split("")}function t(e,n){return n.indexOf(e)>=0}function i(e,n){for(var t=0,i=n.length;t=0&&!f(););u.reverse(),c.reverse()}else for(s=0;s=0;)e[t]===n&&e.splice(t,1)}function v(e,n){if(e.length<2)return e.slice();return function e(t){if(t.length<=1)return t;var i=Math.floor(t.length/2),r=t.slice(0,i),o=t.slice(i);return function(e,t){for(var i=[],r=0,o=0,a=0;r3){t.sort(function(e,n){return n.length-e.length}),n+="switch(str.length){";for(i=0;i=0;)if(!n(e[t]))return!1;return!0}function y(){this._values=Object.create(null),this._size=0}function b(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function E(e){for(var n,t=e.parent(-1),i=0;n=e.parent(i);i++){if(n instanceof k&&n.body===t)return!0;if(!(n instanceof Be&&n.expressions[0]===t||"Call"==n.TYPE&&n.expression===t||n instanceof Te&&n.expression===t||n instanceof Oe&&n.expression===t||n instanceof Ne&&n.condition===t||n instanceof ze&&n.left===t||n instanceof qe&&n.expression===t))return!1;t=n}}function w(e,n){return!0===e||e instanceof RegExp&&e.test(n)}function x(n,t,i,r){arguments.length<4&&(r=F);var o=t=t?t.split(/\s+/):[];r&&r.PROPS&&(t=t.concat(r.PROPS));for(var a="return function AST_"+n+"(props){ if (props) { ",s=t.length;--s>=0;)a+="this."+t[s]+" = props."+t[s]+";";var u=r&&new r;(u&&u.initialize||i&&i.initialize)&&(a+="this.initialize();"),a+="}}";var c=new Function(a)();if(u&&(c.prototype=u,c.BASE=r),r&&r.SUBCLASSES.push(c),c.prototype.CTOR=c,c.PROPS=t||null,c.SELF_PROPS=o,c.SUBCLASSES=[],n&&(c.prototype.TYPE=c.TYPE=n),i)for(s in i)b(i,s)&&(/^\$/.test(s)?c[s.substr(1)]=i[s]:c.prototype[s]=i[s]);return c.DEFMETHOD=function(e,n){this.prototype[e]=n},void 0!==e&&(e["AST_"+n]=c),c}y.prototype={set:function(e,n){return this.has(e)||++this._size,this._values["$"+e]=n,this},add:function(e,n){return this.has(e)?this.get(e).push(n):this.set(e,[n]),this},get:function(e){return this._values["$"+e]},del:function(e){return this.has(e)&&(--this._size,delete this._values["$"+e]),this},has:function(e){return"$"+e in this._values},each:function(e){for(var n in this._values)e(this._values[n],n.substr(1))},size:function(){return this._size},map:function(e){var n=[];for(var t in this._values)n.push(e(this._values[t],t.substr(1)));return n},clone:function(){var e=new y;for(var n in this._values)e._values[n]=this._values[n];return e._size=this._size,e},toObject:function(){return this._values}},y.fromObject=function(e){var n=new y;return n._size=s(n._values,e),n};var A=x("Token","type value line col pos endline endcol endpos nlb comments_before comments_after file raw",{},null),F=x("Node","start end",{_clone:function(e){if(e){var n=this.clone();return n.transform(new Dt(function(e){if(e!==n)return e.clone(!0)}))}return new this.CTOR(this)},clone:function(e){return this._clone(e)},$documentation:"Base class of all AST nodes",$propdoc:{start:"[AST_Token] The first token of this node",end:"[AST_Token] The last token of this node"},_walk:function(e){return e._visit(this)},walk:function(e){return this._walk(e)}},null);F.warn_function=null,F.warn=function(e,n){F.warn_function&&F.warn_function(m(e,n))};var k=x("Statement",null,{$documentation:"Base class of all statements"}),C=x("Debugger",null,{$documentation:"Represents a debugger statement"},k),B=x("Directive","value quote",{$documentation:'Represents a directive, like "use strict";',$propdoc:{value:"[string] The value of this directive as a plain string (it's not an AST_String!)",quote:"[string] the original quote character"}},k),S=x("SimpleStatement","body",{$documentation:"A statement consisting of an expression, i.e. a = 1 + 2",$propdoc:{body:"[AST_Node] an expression node (should not be instanceof AST_Statement)"},_walk:function(e){return e._visit(this,function(){this.body._walk(e)})}},k);function T(e,n){var t=e.body;if(t instanceof F)t._walk(n);else for(var i=0,r=t.length;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)"},get_defun_scope:function(){for(var e=this;e.is_block_scope();)e=e.parent_scope;return e},clone:function(e){var n=this._clone(e);return this.variables&&(n.variables=this.variables.clone()),this.functions&&(n.functions=this.functions.clone()),this.enclosed&&(n.enclosed=this.enclosed.slice()),n},pinned:function(){return this.uses_eval||this.uses_with}},$),W=x("Toplevel","globals",{$documentation:"The toplevel scope",$propdoc:{globals:"[Object/S] a map of name -> SymbolDef for all undeclared names"},wrap_commonjs:function(e){var n=this.body,t="(function(exports){'$ORIG';})(typeof "+e+"=='undefined'?("+e+"={}):"+e+");";return t=(t=gt(t)).transform(new Dt(function(e){if(e instanceof B&&"$ORIG"==e.value)return d.splice(n)}))},wrap_enclose:function(e){"string"!=typeof e&&(e="");var n=e.indexOf(":");n<0&&(n=e.length);var t=this.body;return gt(["(function(",e.slice(0,n),'){"$ORIG"})(',e.slice(n+1),")"].join("")).transform(new Dt(function(e){if(e instanceof B&&"$ORIG"==e.value)return d.splice(t)}))}},Y),G=x("Expansion","expression",{$documentation:"An expandible argument, such as ...rest, a splat, such as [1,2,...all], or an expansion in a variable declaration, such as var [first, ...rest] = list",$propdoc:{expression:"[AST_Node] the thing to be expanded"},_walk:function(e){var n=this;return e._visit(this,function(){n.expression.walk(e)})}}),X=x("Lambda","name argnames uses_arguments is_generator async",{$documentation:"Base class for functions",$propdoc:{name:"[AST_SymbolDeclaration?] the name of this function",argnames:"[AST_SymbolFunarg|AST_Destructuring|AST_Expansion|AST_DefaultAssign*] array of function arguments, destructurings, or expanding arguments",uses_arguments:"[boolean/S] tells whether this function accesses the arguments array",is_generator:"[boolean] is this a generator method",async:"[boolean] is this method async"},args_as_names:function(){for(var e=[],n=0;n b)"},X),Q=x("Defun","inlined",{$documentation:"A function definition"},X),ee=x("Destructuring","names is_array",{$documentation:"A destructuring of several names. Used in destructuring assignment and with destructuring function argument names",$propdoc:{names:"[AST_Node*] Array of properties or elements",is_array:"[Boolean] Whether the destructuring represents an object or array"},_walk:function(e){return e._visit(this,function(){this.names.forEach(function(n){n._walk(e)})})},all_symbols:function(){var e=[];return this.walk(new qn(function(n){n instanceof Je&&e.push(n),n instanceof G&&e.push(n.expression)})),e}}),ne=x("PrefixedTemplateString","template_string prefix",{$documentation:"A templatestring with a prefix, such as String.raw`foobarbaz`",$propdoc:{template_string:"[AST_TemplateString] The template string",prefix:"[AST_SymbolRef|AST_PropAccess] The prefix, which can be a symbol such as `foo` or a dotted expression such as `String.raw`."},_walk:function(e){this.prefix._walk(e),this.template_string._walk(e)}}),te=x("TemplateString","segments",{$documentation:"A template string literal",$propdoc:{segments:"[AST_Node*] One or more segments, starting with AST_TemplateSegment. AST_Node may follow AST_TemplateSegment, but each AST_Node must be followed by AST_TemplateSegment."},_walk:function(e){return e._visit(this,function(){this.segments.forEach(function(n){n._walk(e)})})}}),ie=x("TemplateSegment","value raw",{$documentation:"A segment of a template string literal",$propdoc:{value:"Content of the segment",raw:"Raw content of the segment"}}),re=x("Jump",null,{$documentation:"Base class for \u201cjumps\u201d (for now that's `return`, `throw`, `break` and `continue`)"},k),oe=x("Exit","value",{$documentation:"Base class for \u201cexits\u201d (`return` and `throw`)",$propdoc:{value:"[AST_Node?] the value returned or thrown by this statement; could be null for AST_Return"},_walk:function(e){return e._visit(this,this.value&&function(){this.value._walk(e)})}},re),ae=x("Return",null,{$documentation:"A `return` statement"},oe),se=x("Throw",null,{$documentation:"A `throw` statement"},oe),ue=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(e){return e._visit(this,this.label&&function(){this.label._walk(e)})}},re),ce=x("Break",null,{$documentation:"A `break` statement"},ue),fe=x("Continue",null,{$documentation:"A `continue` statement"},ue),le=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(e){return e._visit(this,function(){this.condition._walk(e),this.body._walk(e),this.alternative&&this.alternative._walk(e)})}},z),pe=x("Switch","expression",{$documentation:"A `switch` statement",$propdoc:{expression:"[AST_Node] the `switch` \u201cdiscriminant\u201d"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e),T(this,e)})}},$),de=x("SwitchBranch",null,{$documentation:"Base class for `switch` branches"},$),he=x("Default",null,{$documentation:"A `default` switch branch"},de),me=x("Case","expression",{$documentation:"A `case` switch branch",$propdoc:{expression:"[AST_Node] the `case` expression"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e),T(this,e)})}},de),_e=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(e){return e._visit(this,function(){T(this,e),this.bcatch&&this.bcatch._walk(e),this.bfinally&&this.bfinally._walk(e)})}},$),ve=x("Catch","argname",{$documentation:"A `catch` node; only makes sense as part of a `try` statement",$propdoc:{argname:"[AST_SymbolCatch|AST_Destructuring|AST_Expansion|AST_DefaultAssign] symbol for the exception"},_walk:function(e){return e._visit(this,function(){this.argname&&this.argname._walk(e),T(this,e)})}},$),ge=x("Finally",null,{$documentation:"A `finally` node; only makes sense as part of a `try` statement"},$),De=x("Definitions","definitions",{$documentation:"Base class for `var` or `const` nodes (variable declarations/initializations)",$propdoc:{definitions:"[AST_VarDef*] array of variable definitions"},_walk:function(e){return e._visit(this,function(){for(var n=this.definitions,t=0,i=n.length;t a`"},ze),He=x("Array","elements",{$documentation:"An array literal",$propdoc:{elements:"[AST_Node*] array of elements"},_walk:function(e){return e._visit(this,function(){for(var n=this.elements,t=0,i=n.length;t=0;){var i=n[t];if(i instanceof e)return i}},has_directive:function(e){var n=this.directives[e];if(n)return n;var t=this.stack[this.stack.length-1];if(t instanceof Y&&t.body)for(var i=0;i=0;){if((i=n[t])instanceof N&&i.label.name==e.label.name)return i.body}else for(t=n.length;--t>=0;){var i;if((i=n[t])instanceof j||e instanceof ce&&i instanceof pe)return i}}};var zn="break case catch class const continue debugger default delete do else export extends finally for function if in instanceof let new return switch throw try typeof var void while with",Nn="false null true",jn="enum implements import interface package private protected public static super this "+Nn+" "+zn,In="return new delete throw else case yield await";zn=g(zn),jn=g(jn),In=g(In),Nn=g(Nn);var Hn=g(n("+-*&%=<>!?|~^")),Rn=/[0-9a-f]/i,Pn=/^0x[0-9a-f]+$/i,Un=/^0[0-7]+$/,Ln=/^0o[0-7]+$/i,Vn=/^0b[01]+$/i,Yn=/^\d*\.?\d*(?:e[+-]?\d*(?:\d\.?|\.?\d)\d*)?$/i,Wn=g(["in","instanceof","typeof","new","void","delete","++","--","+","-","!","~","&","|","^","*","**","/","%",">>","<<",">>>","<",">","<=",">=","==","===","!=","!==","?","=","+=","-=","/=","*=","**=","%=",">>=","<<=",">>>=","|=","^=","&=","&&","||"]),Gn=g(n(" \xa0\n\r\t\f\v\u200b\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000\ufeff")),Xn=g(n("\n\r\u2028\u2029")),Jn=g(n(";]),:")),Zn=g(n("[{(,;:")),Kn=g(n("[]{}(),;:")),Qn={ID_Start:/[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\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-\u08B4\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\u0AF9\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-\u0C5A\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\u0D5F-\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-\u13F5\u13F8-\u13FD\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\u19B0-\u19C9\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\u2118-\u211D\u2124\u2126\u2128\u212A-\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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-\uAB65\uAB70-\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]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,ID_Continue:/[0-9A-Z_a-z\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\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\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\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\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function et(e,n){var t=e.charAt(n);if(nt(t)){var i=e.charAt(n+1);if(tt(i))return t+i}if(tt(t)){var r=e.charAt(n-1);if(nt(r))return r+t}return t}function nt(e){return"string"==typeof e&&(e=e.charCodeAt(0)),e>=55296&&e<=56319}function tt(e){return"string"==typeof e&&(e=e.charCodeAt(0)),e>=56320&&e<=57343}function it(e){return e>=48&&e<=57}function rt(e){return"string"==typeof e&&!jn(e)}function ot(e){var n=e.charCodeAt(0);return Qn.ID_Start.test(e)||36==n||95==n}function at(e){var n=e.charCodeAt(0);return Qn.ID_Continue.test(e)||36==n||95==n||8204==n||8205==n}function st(e){return/^[a-z_$][a-z0-9_$]*$/i.test(e)}function ut(e,n,t,i,r){this.message=e,this.filename=n,this.line=t,this.col=i,this.pos=r}function ct(e,n,t,i,r){throw new ut(e,n,t,i,r)}function ft(e,n,t){return e.type==n&&(null==t||e.value==t)}ut.prototype=Object.create(Error.prototype),ut.prototype.constructor=ut,ut.prototype.name="SyntaxError",r(ut);var lt={};function pt(e,n,t,i){var r={text:e,filename:n,pos:0,tokpos:0,line:1,tokline:0,col:0,tokcol:0,newline_before:!1,regex_allowed:!1,brace_counter:0,template_braces:[],comments_before:[],directives:{},directive_stack:[]};function o(){return et(r.text,r.pos)}function a(e,n){var t=et(r.text,r.pos++);if(e&&!t)throw lt;return Xn(t)?(r.newline_before=r.newline_before||!n,++r.line,r.col=0,n||"\r"!=t||"\n"!=o()||(++r.pos,t="\n")):(t.length>1&&(++r.pos,++r.col),++r.col),t}function s(e){for(;e-- >0;)a()}function u(e){return r.text.substr(r.pos,e.length)==e}function c(e,n){var t=r.text.indexOf(e,r.pos);if(n&&-1==t)throw lt;return t}function f(){r.tokline=r.line,r.tokcol=r.col,r.tokpos=r.pos}var l=!1,p=null;function d(t,i,o){r.regex_allowed="operator"==t&&!ht(i)||"keyword"==t&&In(i)||"punc"==t&&Zn(i)||"arrow"==t,"punc"==t&&"."==i?l=!0:o||(l=!1);var a={type:t,value:i,line:r.tokline,col:r.tokcol,pos:r.tokpos,endline:r.line,endcol:r.col,endpos:r.pos,nlb:r.newline_before,file:n};return/^(?:num|string|regexp)$/i.test(t)&&(a.raw=e.substring(a.pos,a.endpos)),o||(a.comments_before=r.comments_before,a.comments_after=r.comments_before=[]),r.newline_before=!1,a=new A(a),o||(p=a),a}function h(){for(;Gn(o());)a()}function m(e){ct(e,n,r.tokline,r.tokcol,r.tokpos)}function _(e){var n=!1,t=!1,i=!1,r="."==e,s=function(e){for(var n,t="",i=0;(n=o())&&e(n,i++);)t+=a();return t}(function(o,a){switch(o.charCodeAt(0)){case 98:case 66:return i=!0;case 111:case 79:case 120:case 88:return!i&&(i=!0);case 101:case 69:return!!i||!n&&(n=t=!0);case 45:return t||0==a&&!e;case 43:return t;case t=!1,46:return!(r||i||n)&&(r=!0)}return Rn.test(o)});e&&(s=e+s),Un.test(s)&&B.has_directive("use strict")&&m("Legacy octal literals are not allowed in strict mode");var u=function(e){if(Pn.test(e))return parseInt(e.substr(2),16);if(Un.test(e))return parseInt(e.substr(1),8);if(Ln.test(e))return parseInt(e.substr(2),8);if(Vn.test(e))return parseInt(e.substr(2),2);if(Yn.test(e))return parseFloat(e);var n=parseFloat(e);return n==e?n:void 0}(s);if(!isNaN(u))return d("num",u);m("Invalid syntax: "+s)}function v(e,n,t){var i,s=a(!0,e);switch(s.charCodeAt(0)){case 110:return"\n";case 114:return"\r";case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 120:return String.fromCharCode(g(2,n));case 117:if("{"==o()){for(a(!0),"}"===o()&&m("Expecting hex-character between {}");"0"==o();)a(!0);var u,f=c("}",!0)-r.pos;return(f>6||(u=g(f,n))>1114111)&&m("Unicode reference out of bounds"),a(!0),(i=u)>65535?(i-=65536,String.fromCharCode(55296+(i>>10))+String.fromCharCode(i%1024+56320)):String.fromCharCode(i)}return String.fromCharCode(g(4,n));case 10:return"";case 13:if("\n"==o())return a(!0,e),""}return s>="0"&&s<="7"?(t&&n&&m("Octal escape sequences are not allowed in template strings"),function(e,n){var t=o();t>="0"&&t<="7"&&(e+=a(!0))[0]<="3"&&(t=o())>="0"&&t<="7"&&(e+=a(!0));if("0"===e)return"\0";e.length>0&&B.has_directive("use strict")&&n&&m("Legacy octal escape sequences are not allowed in strict mode");return String.fromCharCode(parseInt(e,8))}(s,n)):s}function g(e,n){for(var t=0;e>0;--e){if(!n&&isNaN(parseInt(o(),16)))return parseInt(t,16)||"";var i=a(!0);isNaN(parseInt(i,16))&&m("Invalid hex-character pattern in string"),t+=i}return parseInt(t,16)}var D=C("Unterminated string constant",function(e){for(var n=a(),t="";;){var i=a(!0,!0);if("\\"==i)i=v(!0,!0);else if(Xn(i))m("Unterminated string constant");else if(i==n)break;t+=i}var r=d("string",t);return r.quote=e,r}),y=C("Unterminated template",function(e){e&&r.template_braces.push(r.brace_counter);var n,t,i="",s="";for(a(!0,!0);"`"!=(n=a(!0,!0));){if("\r"==n)"\n"==o()&&++r.pos,n="\n";else if("$"==n&&"{"==o())return a(!0,!0),r.brace_counter++,(t=d(e?"template_head":"template_substitution",i)).begin=e,t.raw=s,t.end=!1,t;if(s+=n,"\\"==n){var u=r.pos;n=v(!0,!("name"===p.type||"punc"===p.type&&(")"===p.value||"]"===p.value)),!0),s+=r.text.substr(u,r.pos-u)}i+=n}return r.template_braces.pop(),(t=d(e?"template_head":"template_substitution",i)).begin=e,t.raw=s,t.end=!0,t});function b(e){var n,t=r.regex_allowed,i=function(){for(var e=r.text,n=r.pos,t=r.text.length;n=0,r.regex_allowed=e,B}),w=C("Unterminated identifier name",function(){var e,n="",t=!1,i=function(){return t=!0,a(),"u"!==o()&&m("Expecting UnicodeEscapeSequence -- uXXXX or u{XXXX}"),v(!1,!0)};if("\\"===(n=o()))ot(n=i())||m("First identifier char is an invalid identifier char");else{if(!ot(n))return"";a()}for(;null!=(e=o());){if("\\"===(e=o()))at(e=i())||m("Invalid escaped identifier char");else{if(!at(e))break;a()}n+=e}return jn(n)&&t&&m("Escaped characters are not allowed in keywords"),n}),x=C("Unterminated regular expression",function(e){for(var n,t=!1,i=!1;n=a(!0);)if(Xn(n))m("Unexpected line terminator");else if(t)e+="\\"+n,t=!1;else if("["==n)i=!0,e+=n;else if("]"==n&&i)i=!1,e+=n;else{if("/"==n&&!i)break;"\\"==n?t=!0:e+=n}var r=w();try{var o=new RegExp(e,r);return o.raw_source="/"+e+"/"+r,d("regexp",o)}catch(e){m(e.message)}});function F(e){return d("operator",function e(n){if(!o())return n;var t=n+o();return Wn(t)?(a(),e(t)):n}(e||a()))}function k(){switch(a(),o()){case"/":return a(),b("comment1");case"*":return a(),E()}return r.regex_allowed?x(""):F("/")}function C(e,n){return function(t){try{return n(t)}catch(n){if(n!==lt)throw n;m(e)}}}function B(e){if(null!=e)return x(e);for(i&&0==r.pos&&u("#!")&&(f(),s(2),b("comment5"));;){if(h(),f(),t){if(u("\x3c!--")){s(4),b("comment3");continue}if(u("--\x3e")&&r.newline_before){s(3),b("comment4");continue}}var n=o();if(!n)return d("eof");var c=n.charCodeAt(0);switch(c){case 34:case 39:return D(n);case 46:return a(),it(o().charCodeAt(0))?_("."):"."===o()?(a(),a(),d("expand","...")):d("punc",".");case 47:var p=k();if(p===B)continue;return p;case 61:return a(),">"===o()?(a(),d("arrow","=>")):F("=");case 96:return y(!0);case 123:r.brace_counter++;break;case 125:if(r.brace_counter--,r.template_braces.length>0&&r.template_braces[r.template_braces.length-1]===r.brace_counter)return y(!1)}if(it(c))return _();if(Kn(n))return d("punc",a());if(Hn(n))return F();if(92==c||ot(n))return v=void 0,v=w(),l?d("name",v):Nn(v)?d("atom",v):zn(v)?Wn(v)?d("operator",v):d("keyword",v):d("name",v);break}var v;m("Unexpected character '"+n+"'")}return B.next=a,B.peek=o,B.context=function(e){return e&&(r=e),r},B.add_directive=function(e){r.directive_stack[r.directive_stack.length-1].push(e),void 0===r.directives[e]?r.directives[e]=1:r.directives[e]++},B.push_directives_stack=function(){r.directive_stack.push([])},B.pop_directives_stack=function(){for(var e=r.directive_stack[r.directive_stack.length-1],n=0;n0},B}var dt=g(["typeof","void","delete","--","++","!","~","-","+"]),ht=g(["--","++"]),mt=g(["=","+=","-=","/=","*=","**=","%=",">>=","<<=",">>>=","|=","^=","&="]),_t=function(e,n){for(var t=0;t","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]],{}),vt=g(["atom","num","string","regexp","name"]);function gt(e,n){n=a(n,{bare_returns:!1,ecma:8,expression:!1,filename:null,html5_comments:!0,module:!1,shebang:!0,strict:!1,toplevel:null},!0);var t={input:"string"==typeof e?pt(e,n.filename,n.html5_comments,n.shebang):e,token:null,prev:null,peeked:null,in_function:0,in_async:-1,in_generator:-1,in_directives:!0,in_loop:0,labels:[]};function r(e,n){return ft(t.token,e,n)}function o(){return t.peeked||(t.peeked=t.input())}function s(){return t.prev=t.token,t.peeked||o(),t.token=t.peeked,t.peeked=null,t.in_directives=t.in_directives&&("string"==t.token.type||r("punc",";")),t.token}function u(){return t.prev}function c(e,n,i,r){var o=t.input.context();ct(e,o.filename,null!=n?n:o.tokline,null!=i?i:o.tokcol,null!=r?r:o.tokpos)}function f(e,n){c(n,e.line,e.col)}function l(e){null==e&&(e=t.token),f(e,"Unexpected token: "+e.type+" ("+e.value+")")}function p(e,n){if(r(e,n))return s();f(t.token,"Unexpected token "+t.token.type+" \xab"+t.token.value+"\xbb, expected "+e+" \xab"+n+"\xbb")}function d(e){return p("punc",e)}function h(e){return e.nlb||!D(e.comments_before,function(e){return!e.nlb})}function m(){return!n.strict&&(r("eof")||r("punc","}")||h(t.token))}function _(){return t.in_generator===t.in_function}function v(){return t.in_async===t.in_function}function g(e){r("punc",";")?s():e||m()||l()}function y(){d("(");var e=nt(!0);return d(")"),e}function E(e){return function(){var n=t.token,i=e.apply(null,arguments),r=u();return i.start=n,i.end=r,i}}function w(){(r("operator","/")||r("operator","/="))&&(t.peeked=null,t.token=t.input(t.token.value.substr(1)))}t.token=s();var x=E(function(e,a,_){switch(w(),t.token.type){case"string":if(t.in_directives){var D=o();-1==t.token.raw.indexOf("\\")&&(ft(D,"punc",";")||ft(D,"punc","}")||h(D)||ft(D,"eof"))?t.input.add_directive(t.token.value):t.in_directives=!1}var b=t.in_directives,E=A();return b&&E.body instanceof bn?new B(E.body):E;case"template_head":case"num":case"regexp":case"operator":case"atom":return A();case"name":if("async"==t.token.value&&ft(o(),"keyword","function"))return s(),s(),a&&c("functions are not allowed as the body of a loop"),O(Q,!1,!0,e);if("import"==t.token.value&&!ft(o(),"punc","(")){s();var F=function(){var e,n,i=u();r("name")&&(e=Un(ln));r("punc",",")&&s();((n=In(!0))||e)&&p("name","from");var o=t.token;"string"!==o.type&&l();return s(),new xe({start:i,imported_name:e,imported_names:n,module_name:new bn({start:o,value:o.value,quote:o.quote,end:o}),end:t.token})}();return g(),F}return ft(o(),"punc",":")?function(){var e=Un(dn);"await"===e.name&&v()&&f(t.prev,"await cannot be used as label inside async function");i(function(n){return n.name==e.name},t.labels)&&c("Label "+e.name+" defined twice");d(":"),t.labels.push(e);var n=x();t.labels.pop(),n instanceof j||e.references.forEach(function(n){n instanceof fe&&(n=n.label.start,c("Continue label `"+e.name+"` refers to non-IterationStatement.",n.line,n.col,n.pos))});return new N({body:n,label:e})}():A();case"punc":switch(t.token.value){case"{":return new M({start:t.token,body:re(),end:u()});case"[":case"(":return A();case";":return t.in_directives=!1,s(),new q;default:l()}case"keyword":switch(t.token.value){case"break":return s(),k(ce);case"continue":return s(),k(fe);case"debugger":return s(),g(),new C;case"do":s();var T=tt(x);p("keyword","while");var $=y();return g(!0),new H({body:T,condition:$});case"while":return s(),new R({condition:y(),body:tt(function(){return x(!1,!0)})});case"for":return s(),function(){var e="`for await` invalid in this context",n=t.token;"name"==n.type&&"await"==n.value?(v()||f(n,e),s()):n=!1;d("(");var i=null;if(r("punc",";"))n&&f(n,e);else{i=r("keyword","var")?(s(),de(!0)):r("keyword","let")?(s(),$e(!0)):r("keyword","const")?(s(),We(!0)):nt(!0,!0);var o=r("operator","in"),a=r("name","of");if(n&&!a&&f(n,e),o||a)return i instanceof De?i.definitions.length>1&&f(i.start,"Only one variable declaration allowed in for..in loop"):Kn(i)||(i=Qn(i))instanceof ee||f(i.start,"Invalid left-hand side in for..in loop"),s(),o?function(e){var n=nt(!0);return d(")"),new U({init:e,object:n,body:tt(function(){return x(!1,!0)})})}(i):function(e,n){var t=e instanceof De?e.definitions[0].name:null,i=nt(!0);return d(")"),new L({await:n,init:e,name:t,object:i,body:tt(function(){return x(!1,!0)})})}(i,!!n)}return function(e){d(";");var n=r("punc",";")?null:nt(!0);d(";");var t=r("punc",")")?null:nt(!0);return d(")"),new P({init:e,condition:n,step:t,body:tt(function(){return x(!1,!0)})})}(i)}();case"class":return s(),a&&c("classes are not allowed as the body of a loop"),_&&c("classes are not allowed as the body of an if"),qn(Ge);case"function":return s(),a&&c("functions are not allowed as the body of a loop"),O(Q,!1,!1,e);case"if":return s(),function(){var e=y(),n=x(!1,!1,!0),t=null;r("keyword","else")&&(s(),t=x(!1,!1,!0));return new le({condition:e,body:n,alternative:t})}();case"return":0!=t.in_function||n.bare_returns||c("'return' outside of function"),s();var I=null;return r("punc",";")?s():m()||(I=nt(!0),g()),new ae({value:I});case"switch":return s(),new pe({expression:y(),body:tt(oe)});case"throw":s(),h(t.token)&&c("Illegal newline after 'throw'");I=nt(!0);return g(),new se({value:I});case"try":return s(),function(){var e=re(),n=null,i=null;if(r("keyword","catch")){var o=t.token;if(s(),r("punc","{"))var a=null;else{d("(");var a=z(void 0,fn);d(")")}n=new ve({start:o,argname:a,body:re(),end:u()})}if(r("keyword","finally")){var o=t.token;s(),i=new ge({start:o,body:re(),end:u()})}n||i||c("Missing catch/finally blocks");return new _e({body:e,bcatch:n,bfinally:i})}();case"var":s();F=de();return g(),F;case"let":s();F=$e();return g(),F;case"const":s();F=We();return g(),F;case"with":return t.input.has_directive("use strict")&&c("Strict mode may not include a with statement"),s(),new V({expression:y(),body:x()});case"export":if(!ft(o(),"punc","(")){s();F=function(){var e,n,i,a,c,f=t.token;if(r("keyword","default"))e=!0,s();else if(n=In(!1)){if(r("name","from")){s();var p=t.token;return"string"!==p.type&&l(),s(),new Ae({start:f,is_default:e,exported_names:n,module_name:new bn({start:p,value:p.value,quote:p.quote,end:p}),end:u()})}return new Ae({start:f,is_default:e,exported_names:n,end:u()})}r("punc","{")||e&&(r("keyword","class")||r("keyword","function"))&&ft(o(),"punc")?(a=nt(!1),g()):(i=x(e))instanceof De&&e?l(i.start):i instanceof De||i instanceof X||i instanceof Ge?c=i:i instanceof S?a=i.body:l(i.start);return new Ae({start:f,is_default:e,exported_value:a,exported_definition:c,end:u()})}();return r("punc",";")&&g(),F}}}l()});function A(e){return new S({body:(e=nt(!0),g(),e)})}function k(e){var n,r=null;m()||(r=Un(vn,!0)),null!=r?((n=i(function(e){return e.name==r.name},t.labels))||c("Undefined label "+r.name),r.thedef=n):0==t.in_loop&&c(e.TYPE+" not inside a loop or switch"),g();var o=new e({label:r});return n&&n.references.push(o),o}var T=function(e,n,i){h(t.token)&&c("Unexpected newline before arrow (=>)"),p("arrow","=>");var o=Y(r("punc","{"),!1,i),a=o instanceof Array&&o.length?o[o.length-1].end:o instanceof Array?e:o.end;return new K({start:e,end:a,async:i,argnames:n,body:o})},O=function(e,n,i,o){t.token;var a=e===Q,c=r("operator","*");c&&s();var f=r("name")?Un(a?on:sn):null;a&&!f&&(o?e=Z:l()),!f||e===J||f instanceof Ke||l(u());var p=[],d=Y(!0,c||n,i,f,p);return new e({start:p.start,end:d.end,is_generator:c,async:i,name:f,argnames:p,body:d})};function $(e,n){var t={},i=!1,r=!1,o=!1,a=!!n,s={add_parameter:function(n){if(void 0!==t["$"+n.value])!1===i&&(i=n),s.check_strict();else if(t["$"+n.value]=!0,e)switch(n.value){case"arguments":case"eval":case"yield":a&&f(n,"Unexpected "+n.value+" identifier as parameter inside strict mode");break;default:jn(n.value)&&l()}},mark_default_assignment:function(e){!1===r&&(r=e)},mark_spread:function(e){!1===o&&(o=e)},mark_strict_mode:function(){a=!0},is_strict:function(){return!1!==r||!1!==o||a},check_strict:function(){s.is_strict()&&!1!==i&&f(i,"Parameter "+i.value+" was used already")}};return s}function z(e,n){var i,o=!1;return void 0===e&&(e=$(!0,t.input.has_directive("use strict"))),r("expand","...")&&(o=t.token,e.mark_spread(t.token),s()),i=I(e,n),r("operator","=")&&!1===o&&(e.mark_default_assignment(t.token),s(),i=new Ie({start:i.start,left:i,operator:"=",right:nt(!1),end:t.token})),!1!==o&&(r("punc",")")||l(),i=new G({start:o,expression:i,end:o})),e.check_strict(),i}function I(e,n){var i,a=[],f=!0,p=!1,h=t.token;if(void 0===e&&(e=$(!1,t.input.has_directive("use strict"))),n=void 0===n?rn:n,r("punc","[")){for(s();!r("punc","]");){if(f?f=!1:d(","),r("expand","...")&&(p=!0,i=t.token,e.mark_spread(t.token),s()),r("punc"))switch(t.token.value){case",":a.push(new Cn({start:t.token,end:t.token}));continue;case"]":break;case"[":case"{":a.push(I(e,n));break;default:l()}else r("name")?(e.add_parameter(t.token),a.push(Un(n))):c("Invalid function parameter");r("operator","=")&&!1===p&&(e.mark_default_assignment(t.token),s(),a[a.length-1]=new Ie({start:a[a.length-1].start,left:a[a.length-1],operator:"=",right:nt(!1),end:t.token})),p&&(r("punc","]")||c("Rest element must be last element"),a[a.length-1]=new G({start:i,expression:a[a.length-1],end:i}))}return d("]"),e.check_strict(),new ee({start:h,names:a,is_array:!0,end:u()})}if(r("punc","{")){for(s();!r("punc","}");){if(f?f=!1:d(","),r("expand","...")&&(p=!0,i=t.token,e.mark_spread(t.token),s()),r("name")&&(ft(o(),"punc")||ft(o(),"operator"))&&-1!==[",","}","="].indexOf(o().value)){e.add_parameter(t.token);var m=u(),_=Un(n);p?a.push(new G({start:i,expression:_,end:_.end})):a.push(new Ue({start:m,key:_.name,value:_,end:_.end}))}else{if(r("punc","}"))continue;var v=t.token,g=Hn();null===g?l(u()):"name"!==u().type||r("punc",":")?(d(":"),a.push(new Ue({start:v,quote:v.quote,key:g,value:I(e,n),end:u()}))):a.push(new Ue({start:u(),key:g,value:new n({start:u(),name:g,end:u()}),end:u()}))}p?r("punc","}")||c("Rest element must be last element"):r("operator","=")&&(e.mark_default_assignment(t.token),s(),a[a.length-1].value=new Ie({start:a[a.length-1].value.start,left:a[a.length-1].value,operator:"=",right:nt(!1),end:t.token}))}return d("}"),e.check_strict(),new ee({start:h,names:a,is_array:!1,end:u()})}if(r("name"))return e.add_parameter(t.token),Un(n);c("Invalid function parameter")}function Y(e,i,o,a,u){var c=t.in_loop,f=t.labels,p=t.in_generator,h=t.in_async;if(++t.in_function,i&&(t.in_generator=t.in_function),o&&(t.in_async=t.in_function),u&&function(e){t.token;var i=$(!0,t.input.has_directive("use strict"));for(d("(");!r("punc",")");){var o=z(i);if(e.push(o),r("punc",")")||(d(","),r("punc",")")&&n.ecma<8&&l()),o instanceof G)break}s()}(u),e&&(t.in_directives=!0),t.in_loop=0,t.labels=[],e){t.input.push_directives_stack();var m=re();a&&Pn(a),u&&u.forEach(Pn),t.input.pop_directives_stack()}else m=nt(!1);return--t.in_function,t.in_loop=c,t.labels=f,t.in_generator=p,t.in_async=h,m}function re(){d("{");for(var e=[];!r("punc","}");)r("eof")&&l(),e.push(x());return s(),e}function oe(){d("{");for(var e,n=[],i=null,o=null;!r("punc","}");)r("eof")&&l(),r("keyword","case")?(o&&(o.end=u()),i=[],o=new me({start:(e=t.token,s(),e),expression:nt(!0),body:i}),n.push(o),d(":")):r("keyword","default")?(o&&(o.end=u()),i=[],o=new he({start:(e=t.token,s(),d(":"),e),body:i}),n.push(o)):(i||l(),i.push(x()));return o&&(o.end=u()),s(),n}function ue(e,n){for(var i,o=[];;){var a="var"===n?Qe:"const"===n?nn:"let"===n?tn:null;if(r("punc","{")||r("punc","[")?i=new Fe({start:t.token,name:I(void 0,a),value:r("operator","=")?(p("operator","="),nt(!1,e)):null,end:u()}):"import"==(i=new Fe({start:t.token,name:Un(a),value:r("operator","=")?(s(),nt(!1,e)):e||"const"!==n?null:c("Missing initializer in const declaration"),end:u()})).name.name&&c("Unexpected token: import"),o.push(i),!r("punc",","))break;s()}return o}var de=function(e){return new ye({start:u(),definitions:ue(e,"var"),end:u()})},$e=function(e){return new be({start:u(),definitions:ue(e,"let"),end:u()})},We=function(e){return new Ee({start:u(),definitions:ue(e,"const"),end:u()})};function Je(){var e,n=t.token;switch(n.type){case"name":e=Rn(hn);break;case"num":e=new En({start:n,end:n,value:n.value});break;case"string":e=new bn({start:n,end:n,value:n.value,quote:n.quote});break;case"regexp":e=new wn({start:n,end:n,value:n.value});break;case"atom":switch(n.value){case"false":e=new Tn({start:n,end:n});break;case"true":e=new On({start:n,end:n});break;case"null":e=new An({start:n,end:n})}}return s(),e}function en(e,n,t,i){var r=function(e,n){return n?new Ie({start:e.start,left:e,operator:"=",right:n,end:n.end}):e};return e instanceof Re?r(new ee({start:e.start,end:e.end,is_array:!1,names:e.properties.map(en)}),i):e instanceof Ue?(e.value=en(e.value,0,[e.key]),r(e,i)):e instanceof Cn?e:e instanceof ee?(e.names=e.names.map(en),r(e,i)):e instanceof hn?r(new rn({name:e.name,start:e.start,end:e.end}),i):e instanceof G?(e.expression=en(e.expression),r(e,i)):e instanceof He?r(new ee({start:e.start,end:e.end,is_array:!0,names:e.elements.map(en)}),i):e instanceof je?r(en(e.left,void 0,void 0,e.right),i):e instanceof Ie?(e.left=en(e.left,0,[e.left]),e):void c("Invalid function parameter",e.start.line,e.start.col)}var yn=function(e,i){if(r("operator","new"))return function(e){var i=t.token;if(p("operator","new"),r("punc","."))return s(),p("name","target"),Vn(new Ze({start:i,end:u()}),e);var o,a=yn(!1);r("punc","(")?(s(),o=Fn(")",n.ecma>=8)):o=[];var c=new Ce({start:i,expression:a,args:o,end:u()});return Ln(c),Vn(c,e)}(e);var a,c=t.token,f=r("name","async")&&"["!=(a=o()).value&&"arrow"!=a.type&&Je();if(r("punc")){switch(t.token.value){case"(":if(f&&!e)break;var h=function(e,i){var o,a,c,f=[];for(d("(");!r("punc",")");)o&&l(o),r("expand","...")?(o=t.token,i&&(a=t.token),s(),f.push(new G({start:u(),expression:nt(),end:t.token}))):f.push(nt()),r("punc",")")||(d(","),r("punc",")")&&(n.ecma<8&&l(),c=u(),i&&(a=c)));return d(")"),e&&r("arrow","=>")?o&&c&&l(c):a&&l(a),f}(i,!f);if(i&&r("arrow","=>"))return T(c,h.map(en),!!f);var m=f?new ke({expression:f,args:h}):1==h.length?h[0]:new Be({expressions:h});if(m.start){var _=c.comments_before.length;if([].unshift.apply(m.start.comments_before,c.comments_before),c.comments_before=m.start.comments_before,c.comments_before_length=_,0==_&&c.comments_before.length>0){var v=c.comments_before[0];v.nlb||(v.nlb=c.nlb,c.nlb=!1)}c.comments_after=m.start.comments_after}m.start=c;var g=u();return m.end&&(g.comments_before=m.end.comments_before,[].push.apply(m.end.comments_after,g.comments_after),g.comments_after=m.end.comments_after),m.end=g,m instanceof ke&&Ln(m),Vn(m,e);case"[":return Vn(kn(),e);case"{":return Vn(Sn(),e)}f||l()}if(i&&r("name")&&ft(o(),"arrow")){var D=new rn({name:t.token.value,start:c,end:c});return s(),T(c,[D],!!f)}if(r("keyword","function")){s();var y=O(Z,!1,!!f);return y.start=c,y.end=u(),Vn(y,e)}if(f)return Vn(f,e);if(r("keyword","class")){s();var b=qn(Xe);return b.start=c,b.end=u(),Vn(b,e)}return r("template_head")?Vn(xn(!1),e):vt(t.token.type)?Vn(Je(),e):void l()};function xn(e){var n=[],i=t.token;for(n.push(new ie({start:t.token,raw:t.token.raw,value:t.token.value,end:t.token}));!1===t.token.end;)s(),w(),n.push(nt(!0)),ft("template_substitution")||l(),n.push(new ie({start:t.token,raw:t.token.raw,value:t.token.value,end:t.token}));return s(),new te({start:i,segments:n,end:t.token})}function Fn(e,n,i){for(var o=!0,a=[];!r("punc",e)&&(o?o=!1:d(","),!n||!r("punc",e));)r("punc",",")&&i?a.push(new Cn({start:t.token,end:t.token})):r("expand","...")?(s(),a.push(new G({start:u(),expression:nt(),end:t.token}))):a.push(nt(!1));return s(),a}var kn=E(function(){return d("["),new He({elements:Fn("]",!n.strict,!0)})}),Bn=E(function(e,n){return O(J,e,n)}),Sn=E(function(){var e=t.token,i=!0,o=[];for(d("{");!r("punc","}")&&(i?i=!1:d(","),n.strict||!r("punc","}"));)if("expand"!=(e=t.token).type){var a,c=Hn();if(r("punc",":"))null===c?l(u()):(s(),a=nt(!1));else{var f=zn(c,e);if(f){o.push(f);continue}a=new hn({start:u(),name:c,end:u()})}r("operator","=")&&(s(),a=new je({start:e,left:a,operator:"=",right:nt(!1),end:u()})),o.push(new Ue({start:e,quote:e.quote,key:c instanceof F?c:""+c,value:a,end:u()}))}else s(),o.push(new G({start:e,expression:nt(!1),end:u()}));return s(),new Re({properties:o})});function qn(e){var n,i,o,a,c=[];for(t.input.push_directives_stack(),t.input.add_directive("use strict"),"name"==t.token.type&&"extends"!=t.token.value&&(o=Un(e===Ge?un:cn)),e!==Ge||o||l(),"extends"==t.token.value&&(s(),a=nt(!0)),d("{"),r("punc",";")&&s();!r("punc","}");)n=t.token,(i=zn(Hn(),n,!0))||l(),c.push(i),r("punc",";")&&s();return t.input.pop_directives_stack(),s(),new e({start:n,name:o,extends:a,properties:c,end:u()})}function zn(e,n,i){var o=function(e,n){return"string"==typeof e||"number"==typeof e?new an({start:n,name:""+e,end:u()}):(null===e&&l(),e)},a=!1,s=!1,c=!1,f=n;if(i&&"static"===e&&!r("punc","(")&&(s=!0,f=t.token,e=Hn()),"async"!==e||r("punc","(")||r("punc",",")||r("punc","}")||(a=!0,f=t.token,e=Hn()),null===e&&(c=!0,f=t.token,null===(e=Hn())&&l()),r("punc","("))return e=o(e,n),new Ye({start:n,static:s,is_generator:c,async:a,key:e,quote:e instanceof an?f.quote:void 0,value:Bn(c,a),end:u()});if(f=t.token,"get"==e){if(!r("punc")||r("punc","["))return e=o(Hn(),n),new Ve({start:n,static:s,key:e,quote:e instanceof an?f.quote:void 0,value:Bn(),end:u()})}else if("set"==e&&(!r("punc")||r("punc","[")))return e=o(Hn(),n),new Le({start:n,static:s,key:e,quote:e instanceof an?f.quote:void 0,value:Bn(),end:u()})}function Nn(e){function n(e){return new e({name:Hn(),start:u(),end:u()})}var i,o,a=e?pn:_n,c=e?ln:mn,f=t.token;return e?i=n(a):o=n(c),r("name","as")?(s(),e?o=n(c):i=n(a)):e?o=new c(i):i=new a(o),new we({start:f,foreign_name:i,name:o,end:u()})}function In(e){var n;if(r("punc","{")){for(s(),n=[];!r("punc","}");)n.push(Nn(e)),r("punc",",")&&s();s()}else if(r("operator","*")){var i;s(),e&&r("name","as")&&(s(),i=Un(e?pn:_n)),n=[function(e,n){var i,r=e?pn:_n,o=e?ln:mn,a=t.token,s=u();return n=n||new o({name:"*",start:a,end:s}),i=new r({name:"*",start:a,end:s}),new we({start:a,foreign_name:i,name:n,end:s})}(e,i)]}return n}function Hn(){var e=t.token;switch(e.type){case"punc":if("["===e.value){s();var n=nt(!1);return d("]"),n}l(e);case"operator":if("*"===e.value)return s(),null;-1===["delete","in","instanceof","new","typeof","void"].indexOf(e.value)&&l(e);case"name":"yield"==e.value&&(_()?f(e,"Yield cannot be used as identifier inside generators"):ft(o(),"punc",":")||ft(o(),"punc","(")||!t.input.has_directive("use strict")||f(e,"Unexpected yield identifier inside strict mode"));case"string":case"num":case"keyword":case"atom":return s(),e.value;default:l(e)}}function Rn(e){var n=t.token.value;return new("this"==n?gn:"super"==n?Dn:e)({name:String(n),start:t.token,end:t.token})}function Pn(e){var n=e.name;_()&&"yield"==n&&f(e.start,"Yield cannot be used as identifier inside generators"),t.input.has_directive("use strict")&&("yield"==n&&f(e.start,"Unexpected yield identifier inside strict mode"),e instanceof Ke&&("arguments"==n||"eval"==n)&&f(e.start,"Unexpected "+n+" in strict mode"))}function Un(e,n){if(!r("name"))return n||c("Name expected"),null;var t=Rn(e);return Pn(t),s(),t}function Ln(e){for(var n=e.start,t=n.comments_before,i=b(n,"comments_before_length")?n.comments_before_length:t.length;--i>=0;){var r=t[i];if(/[@#]__PURE__/.test(r.value)){e.pure=r;break}}}var Vn=function(e,n){var i,o=e.start;if(r("punc","."))return s(),Vn(new Te({start:o,expression:e,property:(i=t.token,"name"!=i.type&&l(),s(),i.value),end:u()}),n);if(r("punc","[")){s();var a=nt(!0);return d("]"),Vn(new Oe({start:o,expression:e,property:a,end:u()}),n)}if(n&&r("punc","(")){s();var c=new ke({start:o,expression:e,args:Yn(),end:u()});return Ln(c),Vn(c,!0)}return r("template_head")?Vn(new ne({start:o,prefix:e,template_string:xn(),end:u()}),n):e},Yn=E(function(){for(var e=[];!r("punc",")");)r("expand","...")?(s(),e.push(new G({start:u(),expression:nt(!1),end:u()}))):e.push(nt(!1)),r("punc",")")||(d(","),r("punc",")")&&n.ecma<8&&l());return s(),e}),Wn=function(e,n){var i=t.token;if("name"==i.type&&"await"==i.value){if(v())return s(),v()||c("Unexpected await expression outside async function",t.prev.line,t.prev.col,t.prev.pos),new $n({start:u(),end:t.token,expression:Wn(!0)});t.input.has_directive("use strict")&&f(t.token,"Unexpected await identifier inside strict mode")}if(r("operator")&&dt(i.value)){s(),w();var o=Gn(Me,i,Wn(e));return o.start=i,o.end=u(),o}for(var a=yn(e,n);r("operator")&&ht(t.token.value)&&!h(t.token);)a instanceof K&&l(),(a=Gn(qe,t.token,a)).start=i,a.end=t.token,s();return a};function Gn(e,n,i){var r=n.value;switch(r){case"++":case"--":Kn(i)||c("Invalid use of "+r+" operator",n.line,n.col,n.pos);break;case"delete":i instanceof hn&&t.input.has_directive("use strict")&&c("Calling delete on expression not allowed in strict mode",i.start.line,i.start.col,i.start.pos)}return new e({operator:r,expression:i})}var Xn=function(e,n,i){var o=r("operator")?t.token.value:null;"in"==o&&i&&(o=null),"**"==o&&e instanceof Me&&!ft(e.start,"punc","(")&&"--"!==e.operator&&"++"!==e.operator&&l(e.start);var a=null!=o?_t[o]:null;if(null!=a&&(a>n||"**"===o&&n===a)){s();var u=Xn(Wn(!0),a,i);return Xn(new ze({start:e.start,left:e,operator:o,right:u,end:u.end}),n,i)}return e};var Zn=function(e){var n=t.token,i=function(e){return Xn(Wn(!0,!0),0,e)}(e);if(r("operator","?")){s();var o=nt(!1);return d(":"),new Ne({start:n,condition:i,consequent:o,alternative:nt(!1,e),end:u()})}return i};function Kn(e){return e instanceof Se||e instanceof hn}function Qn(e){if(e instanceof Re)e=new ee({start:e.start,names:e.properties.map(Qn),is_array:!1,end:e.end});else if(e instanceof He){for(var n=[],t=0;t=0;){var a=i[o];if(r==(a.mangled_name||a.unmangleable(n)&&a.name))continue e}return r}}}Dt.prototype=new qn,function(e){function n(n,t){n.DEFMETHOD("transform",function(n,i){var r,o;return n.push(this),n.before&&(r=n.before(this,t,i)),r===e&&(t(r=this,n),n.after&&(o=n.after(r,i))!==e&&(r=o)),n.pop(),r})}function t(e,n){return d(e,function(e){return e.transform(n,!0)})}n(F,u),n(N,function(e,n){e.label=e.label.transform(n),e.body=e.body.transform(n)}),n(S,function(e,n){e.body=e.body.transform(n)}),n($,function(e,n){e.body=t(e.body,n)}),n(H,function(e,n){e.body=e.body.transform(n),e.condition=e.condition.transform(n)}),n(R,function(e,n){e.condition=e.condition.transform(n),e.body=e.body.transform(n)}),n(P,function(e,n){e.init&&(e.init=e.init.transform(n)),e.condition&&(e.condition=e.condition.transform(n)),e.step&&(e.step=e.step.transform(n)),e.body=e.body.transform(n)}),n(U,function(e,n){e.init=e.init.transform(n),e.object=e.object.transform(n),e.body=e.body.transform(n)}),n(V,function(e,n){e.expression=e.expression.transform(n),e.body=e.body.transform(n)}),n(oe,function(e,n){e.value&&(e.value=e.value.transform(n))}),n(ue,function(e,n){e.label&&(e.label=e.label.transform(n))}),n(le,function(e,n){e.condition=e.condition.transform(n),e.body=e.body.transform(n),e.alternative&&(e.alternative=e.alternative.transform(n))}),n(pe,function(e,n){e.expression=e.expression.transform(n),e.body=t(e.body,n)}),n(me,function(e,n){e.expression=e.expression.transform(n),e.body=t(e.body,n)}),n(_e,function(e,n){e.body=t(e.body,n),e.bcatch&&(e.bcatch=e.bcatch.transform(n)),e.bfinally&&(e.bfinally=e.bfinally.transform(n))}),n(ve,function(e,n){e.argname&&(e.argname=e.argname.transform(n)),e.body=t(e.body,n)}),n(De,function(e,n){e.definitions=t(e.definitions,n)}),n(Fe,function(e,n){e.name=e.name.transform(n),e.value&&(e.value=e.value.transform(n))}),n(ee,function(e,n){e.names=t(e.names,n)}),n(X,function(e,n){e.name&&(e.name=e.name.transform(n)),e.argnames=t(e.argnames,n),e.body instanceof F?e.body=e.body.transform(n):e.body=t(e.body,n)}),n(ke,function(e,n){e.expression=e.expression.transform(n),e.args=t(e.args,n)}),n(Be,function(e,n){e.expressions=t(e.expressions,n)}),n(Te,function(e,n){e.expression=e.expression.transform(n)}),n(Oe,function(e,n){e.expression=e.expression.transform(n),e.property=e.property.transform(n)}),n(Mn,function(e,n){e.expression&&(e.expression=e.expression.transform(n))}),n($n,function(e,n){e.expression=e.expression.transform(n)}),n($e,function(e,n){e.expression=e.expression.transform(n)}),n(ze,function(e,n){e.left=e.left.transform(n),e.right=e.right.transform(n)}),n(Ne,function(e,n){e.condition=e.condition.transform(n),e.consequent=e.consequent.transform(n),e.alternative=e.alternative.transform(n)}),n(He,function(e,n){e.elements=t(e.elements,n)}),n(Re,function(e,n){e.properties=t(e.properties,n)}),n(Pe,function(e,n){e.key instanceof F&&(e.key=e.key.transform(n)),e.value=e.value.transform(n)}),n(We,function(e,n){e.name&&(e.name=e.name.transform(n)),e.extends&&(e.extends=e.extends.transform(n)),e.properties=t(e.properties,n)}),n(G,function(e,n){e.expression=e.expression.transform(n)}),n(we,function(e,n){e.foreign_name=e.foreign_name.transform(n),e.name=e.name.transform(n)}),n(xe,function(e,n){e.imported_name&&(e.imported_name=e.imported_name.transform(n)),e.imported_names&&t(e.imported_names,n),e.module_name=e.module_name.transform(n)}),n(Ae,function(e,n){e.exported_definition&&(e.exported_definition=e.exported_definition.transform(n)),e.exported_value&&(e.exported_value=e.exported_value.transform(n)),e.exported_names&&t(e.exported_names,n),e.module_name&&(e.module_name=e.module_name.transform(n))}),n(te,function(e,n){e.segments=t(e.segments,n)}),n(ne,function(e,n){e.prefix=e.prefix.transform(n),e.template_string=e.template_string.transform(n)})}(),yt.next_id=1,yt.prototype={unmangleable:function(e){return e||(e={}),this.global&&!e.toplevel||this.export||this.undeclared||!e.eval&&this.scope.pinned()||(this.orig[0]instanceof sn||this.orig[0]instanceof on)&&w(e.keep_fnames,this.orig[0].name)||this.orig[0]instanceof an||(this.orig[0]instanceof cn||this.orig[0]instanceof un)&&w(e.keep_classnames,this.orig[0].name)},mangle:function(e){var n=e.cache&&e.cache.props;if(this.global&&n&&n.has(this.name))this.mangled_name=n.get(this.name);else if(!this.mangled_name&&!this.unmangleable(e)){var t,i=this.scope,r=this.orig[0];e.ie8&&r instanceof sn&&(i=i.parent_scope),(t=this.redefined())?this.mangled_name=t.mangled_name||t.name:this.mangled_name=i.next_mangled(e,this),this.global&&n&&n.set(this.name,this.mangled_name)}},redefined:function(){return this.defun&&this.defun.variables.get(this.name)}},W.DEFMETHOD("figure_out_scope",function(e){e=a(e,{cache:null,ie8:!1,safari10:!1});var n=this,t=n.parent_scope=null,i=new y,r=null,o=null,s=[],u=new qn(function(n,a){if(n.is_block_scope()){var c=t;return n.block_scope=t=new Y(n),t.init_scope_vars(c),n instanceof Y||(t.uses_with=c.uses_with,t.uses_eval=c.uses_eval,t.directives=c.directives),e.safari10&&(n instanceof P||n instanceof U)&&s.push(t),a(),t=c,!0}if(n instanceof ee)return o=n,a(),o=null,!0;if(n instanceof Y){n.init_scope_vars(t);c=t;var f=r,l=i;return r=t=n,i=new y,a(),t=c,r=f,i=l,!0}if(n instanceof N){var p=n.label;if(i.has(p.name))throw new Error(m("Label {name} defined twice",p));return i.set(p.name,p),a(),i.del(p.name),!0}if(n instanceof V)for(var d=t;d;d=d.parent_scope)d.uses_with=!0;else{if(n instanceof Je&&(n.scope=t),n instanceof dn&&(n.thedef=n,n.references=[]),n instanceof sn)r.def_function(n,"arguments"==n.name?void 0:r);else if(n instanceof on)v((n.scope=r.parent_scope.get_defun_scope()).def_function(n,r),1);else if(n instanceof cn)v(r.def_variable(n,r),1);else if(n instanceof ln)t.def_variable(n);else if(n instanceof un)v((n.scope=r.parent_scope).def_function(n,r),1);else if(n instanceof Qe||n instanceof tn||n instanceof nn){if(D((h=n instanceof en?t.def_variable(n,null):r.def_variable(n,"SymbolVar"==n.TYPE?null:void 0)).orig,function(e){return e===n||(n instanceof en?e instanceof sn:!(e instanceof tn||e instanceof nn))})||ct(n.name+" redeclared",n.start.file,n.start.line,n.start.col,n.start.pos),n instanceof rn||v(h,2),h.destructuring=o,r!==t){n.mark_enclosed(e);var h=t.find_variable(n);n.thedef!==h&&(n.thedef=h,n.reference(e))}}else if(n instanceof fn)t.def_variable(n).defun=r;else if(n instanceof vn){var _=i.get(n.name);if(!_)throw new Error(m("Undefined label {name} [{line},{col}]",{name:n.name,line:n.start.line,col:n.start.col}));n.thedef=_}t instanceof W||!(n instanceof Ae||n instanceof xe)||ct(n.TYPE+" statement may only appear at top level",n.start.file,n.start.line,n.start.col,n.start.pos)}function v(e,n){if(o){var t=0;do{n++}while(u.parent(t++)!==o)}var i=u.parent(n);e.export=i instanceof Ae}});n.walk(u),n.globals=new y;u=new qn(function(t,i){if(t instanceof ue&&t.label)return t.label.thedef.references.push(t),!0;if(t instanceof hn){var r,o=t.name;if("eval"==o&&u.parent()instanceof ke)for(var a=t.scope;a&&!a.uses_eval;a=a.parent_scope)a.uses_eval=!0;return u.parent()instanceof we&&u.parent(1).module_name||!(r=t.scope.find_variable(o))?r=n.def_global(t):r.scope instanceof X&&"arguments"==o&&(r.scope.uses_arguments=!0),t.thedef=r,t.reference(e),!t.scope.is_block_scope()||r.orig[0]instanceof en||(t.scope=t.scope.get_defun_scope()),!0}var s;if(t instanceof fn&&(s=t.definition().redefined()))for(a=t.scope;a&&(h(a.enclosed,s),a!==s.scope);)a=a.parent_scope});if(n.walk(u),(e.ie8||e.safari10)&&n.walk(new qn(function(t,i){if(t instanceof fn){var r=t.name,o=t.thedef.references,a=t.thedef.defun,s=a.find_variable(r)||n.globals.get(r)||a.def_variable(t);return o.forEach(function(n){n.thedef=s,n.reference(e)}),t.thedef=s,t.reference(e),!0}})),e.safari10)for(var c=0;c0);return t}return a.consider=function(e,t){for(var i=e.length;--i>=0;)n[e[i]]+=t},a.sort=function(){e=v(t,o).concat(v(i,o))},a.reset=r,r(),a}(),wt=/^$|[;{][\s\n]*$/;function xt(e){return"comment2"==e.type&&/@preserve|@license|@cc_on/i.test(e.value)}function At(e){var n=!e;void 0===(e=a(e,{ascii_only:!1,beautify:!1,braces:!1,comments:!1,ecma:5,ie8:!1,indent_level:4,indent_start:0,inline_script:!0,keep_quoted_props:!1,max_line_len:!1,preamble:null,quote_keys:!1,quote_style:0,safari10:!1,semicolons:!0,shebang:!0,shorthand:void 0,source_map:null,webkit:!1,width:80,wrap_iife:!1},!0)).shorthand&&(e.shorthand=e.ecma>5);var t=c;if(e.comments){var i=e.comments;if("string"==typeof e.comments&&/^\/.*\/[a-zA-Z]*$/.test(e.comments)){var r=e.comments.lastIndexOf("/");i=new RegExp(e.comments.substr(1,r-1),e.comments.substr(r+1))}t=i instanceof RegExp?function(e){return"comment5"!=e.type&&i.test(e.value)}:"function"==typeof i?function(e){return"comment5"!=e.type&&i(this,e)}:"some"===i?xt:f}var o=0,s=0,l=1,p=0,d="",h=e.ascii_only?function(n,t){return e.ecma>=6&&(n=n.replace(/[\ud800-\udbff][\udc00-\udfff]/g,function(e){var n,t;return"\\u{"+(n=e,t=0,nt(n.charAt(t))?65536+(n.charCodeAt(t)-55296<<10)+n.charCodeAt(t+1)-56320:n.charCodeAt(t)).toString(16)+"}"})),n.replace(/[\u0000-\u001f\u007f-\uffff]/g,function(e){var n=e.charCodeAt(0).toString(16);if(n.length<=2&&!t){for(;n.length<2;)n="0"+n;return"\\x"+n}for(;n.length<4;)n="0"+n;return"\\u"+n})}:function(e){for(var n="",t=0,i=e.length;tr?o():a()}}(n,t);return e.inline_script&&(i=(i=(i=i.replace(/<\x2f(script)([>\/\t\n\f\r ])/gi,"<\\/$1$2")).replace(/\x3c!--/g,"\\x3c!--")).replace(/--\x3e/g,"--\\x3e")),i}function _(n){return function e(n,t){if(t<=0)return"";if(1==t)return n;var i=e(n,t>>1);return i+=i,1&t&&(i+=n),i}(" ",e.indent_start+o-n*e.indent_level)}var v,y,b=!1,E=!1,w=!1,x=0,A=!1,C=!1,B=-1,S="",T=e.source_map&&[],O=T?function(){T.forEach(function(n){try{e.source_map.add(n.token.file,n.line,n.col,n.token.line,n.token.col,n.name||"name"!=n.token.type?n.name:n.token.value)}catch(e){null!=n.token.file&&F.warn("Couldn't figure out mapping for {file}:{line},{col} \u2192 {cline},{ccol} [{name}]",{file:n.token.file,line:n.token.line,col:n.token.col,cline:n.line,ccol:n.col,name:n.name||""})}}),T=[]}:u,$=e.max_line_len?function(){if(s>e.max_line_len){if(x){var n=d.slice(0,x),t=d.slice(x);if(T){var i=t.length-s;T.forEach(function(e){e.line++,e.col+=i})}d=n+"\n"+t,l++,p++,s=t.length}s>e.max_line_len&&F.warn("Output exceeds {max_line_len} characters",e)}x&&(x=0,O())}:u,M=g("( [ + * / - , . `");function q(n){var t=et(n=String(n),0),i=et(S,S.length-1);A&&t&&(A=!1,"\n"!=t&&(q("\n"),N())),C&&t&&(C=!1,/[\s;})]/.test(t)||z()),B=-1;i=S.charAt(S.length-1);w&&(w=!1,(":"==i&&"}"==t||(!t||";}".indexOf(t)<0)&&";"!=i)&&(e.semicolons||M(t)?(d+=";",s++,p++):($(),d+="\n",p++,l++,s=0,/^\s+$/.test(n)&&(w=!0)),e.beautify||(E=!1))),E&&((at(i)&&(at(t)||"\\"==t)||"/"==t&&t==i||("+"==t||"-"==t)&&t==S)&&(d+=" ",s++,p++),E=!1),v&&(T.push({token:v,name:y,line:l,col:s}),v=!1,x||O()),d+=n,b="("==n[n.length-1],p+=n.length;var r=n.split(/\r?\n/),o=r.length-1;l+=o,s+=r[0].length,o>0&&($(),s=r[o].length),S=n}var z=e.beautify?function(){q(" ")}:function(){E=!0},N=e.beautify?function(n){e.beautify&&q(_(n?.5:0))}:u,j=e.beautify?function(e,n){!0===e&&(e=P());var t=o;o=e;var i=n();return o=t,i}:function(e,n){return n()},I=e.beautify?function(){if(B<0)return q("\n");"\n"!=d[B]&&(d=d.slice(0,B)+"\n"+d.slice(B),p++,l++),B++}:e.max_line_len?function(){$(),x=d.length}:u,H=e.beautify?function(){q(";")}:function(){w=!0};function R(){w=!1,q(";")}function P(){return o+e.indent_level}function U(){return x&&$(),d}function L(){var e=d.lastIndexOf("\n");return/^ *$/.test(d.slice(e+1))}var V=[];return{get:U,toString:U,indent:N,indentation:function(){return o},current_width:function(){return s-o},should_break:function(){return e.width&&this.current_width()>=e.width},has_parens:function(){return b},newline:I,print:q,star:function(){q("*")},space:z,comma:function(){q(","),z()},colon:function(){q(":"),z()},last:function(){return S},semicolon:H,force_semicolon:R,to_utf8:h,print_name:function(e){q(function(e){return e=e.toString(),e=h(e,!0)}(e))},print_string:function(e,n,t){var i=m(e,n);!0===t&&-1===i.indexOf("\\")&&(wt.test(d)||R(),R()),q(i)},print_template_string_chars:function(e){var n=m(e,"`").replace(/\${/g,"\\${");return q(n.substr(1,n.length-2))},encode_string:m,next_indent:P,with_indent:j,with_block:function(e){var n;return q("{"),I(),j(P(),function(){n=e()}),N(),q("}"),n},with_parens:function(e){q("(");var n=e();return q(")"),n},with_square:function(e){q("[");var n=e();return q("]"),n},add_mapping:T?function(e,n){v=e,y=n}:u,option:function(n){return e[n]},prepend_comments:n?u:function(n){var i=this,r=n.start;if(r&&(!r.comments_before||r.comments_before._dumped!==i)){var o=r.comments_before;if(o||(o=r.comments_before=[]),o._dumped=i,n instanceof oe&&n.value){var a=new qn(function(e){var n=a.parent();if(!(n instanceof oe||n instanceof ze&&n.left===e||"Call"==n.TYPE&&n.expression===e||n instanceof Ne&&n.condition===e||n instanceof Te&&n.expression===e||n instanceof Be&&n.expressions[0]===e||n instanceof Oe&&n.expression===e||n instanceof qe))return!0;if(e.start){var t=e.start.comments_before;t&&t._dumped!==i&&(t._dumped=i,o=o.concat(t))}});a.push(n),n.value.walk(a)}if(0==p){o.length>0&&e.shebang&&"comment5"==o[0].type&&(q("#!"+o.shift().value+"\n"),N());var s=e.preamble;s&&q(s.replace(/\r\n?|[\n\u2028\u2029]|\s*$/g,"\n"))}if(0!=(o=o.filter(t,n)).length){var u=L();o.forEach(function(e,n){u||(e.nlb?(q("\n"),N(),u=!0):n>0&&z()),/comment[134]/.test(e.type)?(q("//"+e.value.replace(/[@#]__PURE__/g," ")+"\n"),N(),u=!0):"comment2"==e.type&&(q("/*"+e.value.replace(/[@#]__PURE__/g," ")+"*/"),u=!1)}),u||(r.nlb?(q("\n"),N()):z())}}},append_comments:n||t===c?u:function(e,n){var i=e.end;if(i){var r=i[n?"comments_before":"comments_after"];if(r&&r._dumped!==this&&(e instanceof k||D(r,function(e){return!/comment[134]/.test(e.type)}))){r._dumped=this;var o=d.length;r.filter(t,e).forEach(function(e,t){C=!1,A?(q("\n"),N(),A=!1):e.nlb&&(t>0||!L())?(q("\n"),N()):(t>0||!n)&&z(),/comment[134]/.test(e.type)?(q("//"+e.value.replace(/[@#]__PURE__/g," ")),A=!0):"comment2"==e.type&&(q("/*"+e.value.replace(/[@#]__PURE__/g," ")+"*/"),C=!0)}),d.length>o&&(B=o)}}},line:function(){return l},col:function(){return s},pos:function(){return p},push_node:function(e){V.push(e)},pop_node:function(){return V.pop()},parent:function(e){return V[V.length-2-(e||0)]}}}function Ft(e,n){if(!(this instanceof Ft))return new Ft(e,n);Dt.call(this,this.before,this.after),void 0===e.defaults||e.defaults||(n=!0),this.options=a(e,{arguments:!1,arrows:!n,booleans:!n,booleans_as_integers:!1,collapse_vars:!n,comparisons:!n,computed_props:!n,conditionals:!n,dead_code:!n,defaults:!0,directives:!n,drop_console:!1,drop_debugger:!n,ecma:5,evaluate:!n,expression:!1,global_defs:!1,hoist_funs:!1,hoist_props:!n,hoist_vars:!1,ie8:!1,if_return:!n,inline:!n,join_vars:!n,keep_classnames:!1,keep_fargs:!0,keep_fnames:!1,keep_infinity:!1,loops:!n,module:!1,negate_iife:!n,passes:1,properties:!n,pure_getters:!n&&"strict",pure_funcs:null,reduce_funcs:!n,reduce_vars:!n,sequences:!n,side_effects:!n,switches:!n,top_retain:null,toplevel:!(!e||!e.top_retain),typeofs:!n,unsafe:!1,unsafe_arrows:!1,unsafe_comps:!1,unsafe_Function:!1,unsafe_math:!1,unsafe_methods:!1,unsafe_proto:!1,unsafe_regexp:!1,unsafe_undefined:!1,unused:!n,warnings:!1},!0);var t=this.options.global_defs;if("object"==typeof t)for(var i in t)/^@/.test(i)&&b(t,i)&&(t[i.slice(1)]=gt(t[i],{expression:!0}));!0===this.options.inline&&(this.options.inline=3);var r=this.options.pure_funcs;this.pure_funcs="function"==typeof r?r:r?function(e){return r.indexOf(e.expression.print_to_string())<0}:f;var o=this.options.top_retain;o instanceof RegExp?this.top_retain=function(e){return o.test(e.name)}:"function"==typeof o?this.top_retain=o:o&&("string"==typeof o&&(o=o.split(/,/)),this.top_retain=function(e){return o.indexOf(e.name)>=0}),this.options.module&&(this.directives["use strict"]=!0,this.options.toplevel=!0);var s=this.options.toplevel;this.toplevel="string"==typeof s?{funcs:/funcs/.test(s),vars:/vars/.test(s)}:{funcs:s,vars:s};var u=this.options.sequences;this.sequences_limit=1==u?800:0|u,this.warnings_produced={}}function kt(e,n){function t(e){h(n,e)}e.walk(new qn(function(e){e instanceof Ue&&e.quote?t(e.key):e instanceof Pe&&e.quote?t(e.key.name):e instanceof Oe&&Ct(e.property,t)}))}function Ct(e,n){e.walk(new qn(function(e){return e instanceof Be?Ct(e.tail_node(),n):e instanceof bn?n(e.value):e instanceof Ne&&(Ct(e.consequent,n),Ct(e.alternative,n)),!0}))}function Bt(e,n){var t=(n=a(n,{builtins:!1,cache:null,debug:!1,keep_quoted:!1,only_cache:!1,regex:null,reserved:null},!0)).reserved;Array.isArray(t)||(t=[]),n.builtins||function(e){var n={},t="object"==typeof global?global:self;function i(n){h(e,n)}["Symbol","Map","Promise","Proxy","Reflect","Set","WeakMap","WeakSet"].forEach(function(e){n[e]=t[e]||new Function}),["null","true","false","Infinity","-Infinity","undefined"].forEach(i),[Object,Array,Function,Number,String,Boolean,Error,Math,Date,RegExp,n.Symbol,ArrayBuffer,DataView,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,eval,EvalError,Float32Array,Float64Array,Int8Array,Int16Array,Int32Array,isFinite,isNaN,JSON,n.Map,parseFloat,parseInt,n.Promise,n.Proxy,RangeError,ReferenceError,n.Reflect,n.Set,SyntaxError,TypeError,Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,URIError,n.WeakMap,n.WeakSet].forEach(function(e){Object.getOwnPropertyNames(e).map(i),e.prototype&&Object.getOwnPropertyNames(e.prototype).map(i)})}(t);var i,r=-1;n.cache?(i=n.cache.props).each(function(e){h(t,e)}):i=new y;var o,s=n.regex,u=!1!==n.debug;u&&(o=!0===n.debug?"":n.debug);var c=[],f=[];return e.walk(new qn(function(e){e instanceof Ue?"string"==typeof e.key&&d(e.key):e instanceof Pe?d(e.key.name):e instanceof Te?d(e.property):e instanceof Oe?Ct(e.property,d):e instanceof ke&&"Object.defineProperty"==e.expression.print_to_string()&&Ct(e.args[1],d)})),e.transform(new Dt(function(e){e instanceof Ue?"string"==typeof e.key&&(e.key=m(e.key)):e instanceof Pe?e.key.name=m(e.key.name):e instanceof Te?e.property=m(e.property):!n.keep_quoted&&e instanceof Oe?e.property=_(e.property):e instanceof ke&&"Object.defineProperty"==e.expression.print_to_string()&&(e.args[1]=_(e.args[1]))}));function l(e){return!(f.indexOf(e)>=0)&&(!(t.indexOf(e)>=0)&&(n.only_cache?i.has(e):!/^-?[0-9]+(\.[0-9]+)?(e[+-][0-9]+)?$/.test(e)))}function p(e){return!(s&&!s.test(e))&&(!(t.indexOf(e)>=0)&&(i.has(e)||c.indexOf(e)>=0))}function d(e){l(e)&&h(c,e),p(e)||h(f,e)}function m(e){if(!p(e))return e;var n=i.get(e);if(!n){if(u){var t="_$"+e+"$"+o+"_";l(t)&&(n=t)}if(!n)do{n=Et(++r)}while(!l(n));i.set(e,n)}return n}function _(e){return e.transform(new Dt(function(e){if(e instanceof Be){var n=e.expressions.length-1;e.expressions[n]=_(e.expressions[n])}else e instanceof bn?e.value=m(e.value):e instanceof Ne&&(e.consequent=_(e.consequent),e.alternative=_(e.alternative));return e}))}}!function(){function e(e,n){e.DEFMETHOD("_codegen",n)}var n=!1,t=null,i=null;function r(e,n){Array.isArray(e)?e.forEach(function(e){r(e,n)}):e.DEFMETHOD("needs_parens",n)}function o(e,t,i,r){var o=e.length-1;n=r,e.forEach(function(e,r){!0!==n||e instanceof B||e instanceof q||e instanceof S&&e.body instanceof bn||(n=!1),e instanceof q||(i.indent(),e.print(i),r==o&&t||(i.newline(),t&&i.newline())),!0===n&&e instanceof S&&e.body instanceof bn&&(n=!1)}),n=!1}function a(e,n){n.print("{"),n.with_indent(n.next_indent(),function(){n.append_comments(e,!0)}),n.print("}")}function s(e,n,t){e.body.length>0?n.with_block(function(){o(e.body,!1,n,t)}):a(e,n)}function f(e,n,t){var i=!1;t&&e.walk(new qn(function(e){return!!(i||e instanceof Y)||(e instanceof ze&&"in"==e.operator?(i=!0,!0):void 0)})),e.print(n,i)}function l(e,n,t){t.option("quote_keys")?t.print_string(e):""+ +e==e&&e>=0?t.print(h(e)):(jn(e)?!t.option("ie8"):st(e))?n&&t.option("keep_quoted_props")?t.print_string(e,n):t.print_name(e):t.print_string(e,n)}function p(e,n){n.option("braces")?m(e,n):!e||e instanceof q?n.force_semicolon():e.print(n)}function d(e,n){return e.args.length>0||n.option("beautify")}function h(e){var n,t=e.toString(10),i=[t.replace(/^0\./,".").replace("e+","e")];return Math.floor(e)===e?(e>=0?i.push("0x"+e.toString(16).toLowerCase(),"0"+e.toString(8)):i.push("-0x"+(-e).toString(16).toLowerCase(),"-0"+(-e).toString(8)),(n=/^(.*?)(0+)$/.exec(e))&&i.push(n[1]+"e"+n[2].length)):(n=/^0?\.(0+)(.*)$/.exec(e))&&i.push(n[2]+"e-"+(n[1].length+n[2].length),t.substr(t.indexOf("."))),function(e){for(var n=e[0],t=n.length,i=1;io||i==o&&(this===n.right||"**"==t))return!0}}),r(Mn,function(e){var n=e.parent();return n instanceof ze&&"="!==n.operator||(n instanceof ke&&n.expression===this||(n instanceof Ne&&n.condition===this||(n instanceof $e||(n instanceof Se&&n.expression===this||void 0))))}),r(Se,function(e){var n=e.parent();if(n instanceof Ce&&n.expression===this){var t=!1;return this.walk(new qn(function(e){return!!(t||e instanceof Y)||(e instanceof ke?(t=!0,!0):void 0)})),t}}),r(ke,function(e){var n,t=e.parent();return!!(t instanceof Ce&&t.expression===this||t instanceof Ae&&t.is_default&&this.expression instanceof Z)||this.expression instanceof Z&&t instanceof Se&&t.expression===this&&(n=e.parent(1))instanceof je&&n.left===t}),r(Ce,function(e){var n=e.parent();if(!d(this,e)&&(n instanceof Se||n instanceof ke&&n.expression===this))return!0}),r(En,function(e){var n=e.parent();if(n instanceof Se&&n.expression===this){var t=this.getValue();if(t<0||/^0/.test(h(t)))return!0}}),r([je,Ne],function(e){var n=e.parent();return n instanceof $e||(n instanceof ze&&!(n instanceof je)||(n instanceof ke&&n.expression===this||(n instanceof Ne&&n.condition===this||(n instanceof Se&&n.expression===this||(this instanceof je&&this.left instanceof ee&&!1===this.left.is_array||void 0)))))}),e(B,function(e,n){n.print_string(e.value,e.quote),n.semicolon()}),e(G,function(e,n){n.print("..."),e.expression.print(n)}),e(ee,function(e,n){n.print(e.is_array?"[":"{");var t=e.names.length;e.names.forEach(function(e,i){i>0&&n.comma(),e.print(n),i==t-1&&e instanceof Cn&&n.comma()}),n.print(e.is_array?"]":"}")}),e(C,function(e,n){n.print("debugger"),n.semicolon()}),z.DEFMETHOD("_do_print_body",function(e){p(this.body,e)}),e(k,function(e,n){e.body.print(n),n.semicolon()}),e(W,function(e,n){o(e.body,!0,n,!0),n.print("")}),e(N,function(e,n){e.label.print(n),n.colon(),e.body.print(n)}),e(S,function(e,n){e.body.print(n),n.semicolon()}),e(M,function(e,n){s(e,n)}),e(q,function(e,n){n.semicolon()}),e(H,function(e,n){n.print("do"),n.space(),m(e.body,n),n.space(),n.print("while"),n.space(),n.with_parens(function(){e.condition.print(n)}),n.semicolon()}),e(R,function(e,n){n.print("while"),n.space(),n.with_parens(function(){e.condition.print(n)}),n.space(),e._do_print_body(n)}),e(P,function(e,n){n.print("for"),n.space(),n.with_parens(function(){e.init?(e.init instanceof De?e.init.print(n):f(e.init,n,!0),n.print(";"),n.space()):n.print(";"),e.condition?(e.condition.print(n),n.print(";"),n.space()):n.print(";"),e.step&&e.step.print(n)}),n.space(),e._do_print_body(n)}),e(U,function(e,n){n.print("for"),e.await&&(n.space(),n.print("await")),n.space(),n.with_parens(function(){e.init.print(n),n.space(),n.print(e instanceof L?"of":"in"),n.space(),e.object.print(n)}),n.space(),e._do_print_body(n)}),e(V,function(e,n){n.print("with"),n.space(),n.with_parens(function(){e.expression.print(n)}),n.space(),e._do_print_body(n)}),X.DEFMETHOD("_do_print",function(e,n){var t=this;n||(t.async&&(e.print("async"),e.space()),e.print("function"),t.is_generator&&e.star(),t.name&&e.space()),t.name instanceof Je?t.name.print(e):n&&t.name instanceof F&&e.with_square(function(){t.name.print(e)}),e.with_parens(function(){t.argnames.forEach(function(n,t){t&&e.comma(),n.print(e)})}),e.space(),s(t,e,!0)}),e(X,function(e,n){e._do_print(n)}),e(ne,function(e,n){var t=e.prefix,i=t instanceof K||t instanceof ze||t instanceof Ne||t instanceof Be||t instanceof $e;i&&n.print("("),e.prefix.print(n),i&&n.print(")"),e.template_string.print(n)}),e(te,function(e,n){var t=n.parent()instanceof ne;n.print("`");for(var i=0;i"),e.space(),n.body instanceof F?n.body.print(e):s(n,e),i&&e.print(")")}),oe.DEFMETHOD("_do_print",function(e,n){e.print(n),this.value&&(e.space(),this.value.print(e)),e.semicolon()}),e(ae,function(e,n){e._do_print(n,"return")}),e(se,function(e,n){e._do_print(n,"throw")}),e(Mn,function(e,n){var t=e.is_star?"*":"";n.print("yield"+t),e.expression&&(n.space(),e.expression.print(n))}),e($n,function(e,n){n.print("await"),n.space();var t=e.expression,i=!(t instanceof ke||t instanceof hn||t instanceof Se||t instanceof $e||t instanceof yn);i&&n.print("("),e.expression.print(n),i&&n.print(")")}),ue.DEFMETHOD("_do_print",function(e,n){e.print(n),this.label&&(e.space(),this.label.print(e)),e.semicolon()}),e(ce,function(e,n){e._do_print(n,"break")}),e(fe,function(e,n){e._do_print(n,"continue")}),e(le,function(e,n){n.print("if"),n.space(),n.with_parens(function(){e.condition.print(n)}),n.space(),e.alternative?(!function(e,n){var t=e.body;if(n.option("braces")||n.option("ie8")&&t instanceof H)return m(t,n);if(!t)return n.force_semicolon();for(;;)if(t instanceof le){if(!t.alternative)return void m(e.body,n);t=t.alternative}else{if(!(t instanceof z))break;t=t.body}p(e.body,n)}(e,n),n.space(),n.print("else"),n.space(),e.alternative instanceof le?e.alternative.print(n):p(e.alternative,n)):e._do_print_body(n)}),e(pe,function(e,n){n.print("switch"),n.space(),n.with_parens(function(){e.expression.print(n)}),n.space();var t=e.body.length-1;t<0?a(e,n):n.with_block(function(){e.body.forEach(function(e,i){n.indent(!0),e.print(n),i0&&n.newline()})})}),de.DEFMETHOD("_do_print_body",function(e){e.newline(),this.body.forEach(function(n){e.indent(),n.print(e),e.newline()})}),e(he,function(e,n){n.print("default:"),e._do_print_body(n)}),e(me,function(e,n){n.print("case"),n.space(),e.expression.print(n),n.print(":"),e._do_print_body(n)}),e(_e,function(e,n){n.print("try"),n.space(),s(e,n),e.bcatch&&(n.space(),e.bcatch.print(n)),e.bfinally&&(n.space(),e.bfinally.print(n))}),e(ve,function(e,n){n.print("catch"),e.argname&&(n.space(),n.with_parens(function(){e.argname.print(n)})),n.space(),s(e,n)}),e(ge,function(e,n){n.print("finally"),n.space(),s(e,n)}),De.DEFMETHOD("_do_print",function(e,n){e.print(n),e.space(),this.definitions.forEach(function(n,t){t&&e.comma(),n.print(e)});var t=e.parent();(!(t instanceof P||t instanceof U)||t&&t.init!==this)&&e.semicolon()}),e(be,function(e,n){e._do_print(n,"let")}),e(ye,function(e,n){e._do_print(n,"var")}),e(Ee,function(e,n){e._do_print(n,"const")}),e(xe,function(e,n){n.print("import"),n.space(),e.imported_name&&e.imported_name.print(n),e.imported_name&&e.imported_names&&(n.print(","),n.space()),e.imported_names&&(1===e.imported_names.length&&"*"===e.imported_names[0].foreign_name.name?e.imported_names[0].print(n):(n.print("{"),e.imported_names.forEach(function(t,i){n.space(),t.print(n),i0&&(e.comma(),e.should_break()&&(e.newline(),e.indent())),n.print(e)})}),e(Be,function(e,n){e._do_print(n)}),e(Te,function(e,n){var t=e.expression;t.print(n);var i=e.property;n.option("ie8")&&jn(i)?(n.print("["),n.add_mapping(e.end),n.print_string(i),n.print("]")):(t instanceof En&&t.getValue()>=0&&(/[xa-f.)]/i.test(n.last())||n.print(".")),n.print("."),n.add_mapping(e.end),n.print_name(i))}),e(Oe,function(e,n){e.expression.print(n),n.print("["),e.property.print(n),n.print("]")}),e(Me,function(e,n){var t=e.operator;n.print(t),(/^[a-z]/i.test(t)||/[+-]$/.test(t)&&e.expression instanceof Me&&/^[+-]/.test(e.expression.operator))&&n.space(),e.expression.print(n)}),e(qe,function(e,n){e.expression.print(n),n.print(e.operator)}),e(ze,function(e,n){var t=e.operator;e.left.print(n),">"==t[0]&&e.left instanceof qe&&"--"==e.left.operator?n.print(" "):n.space(),n.print(t),("<"==t||"<<"==t)&&e.right instanceof Me&&"!"==e.right.operator&&e.right.expression instanceof Me&&"--"==e.right.expression.operator?n.print(" "):n.space(),e.right.print(n)}),e(Ne,function(e,n){e.condition.print(n),n.space(),n.print("?"),n.space(),e.consequent.print(n),n.space(),n.colon(),e.alternative.print(n)}),e(He,function(e,n){n.with_square(function(){var t=e.elements,i=t.length;i>0&&n.space(),t.forEach(function(e,t){t&&n.comma(),e.print(n),t===i-1&&e instanceof Cn&&n.comma()}),i>0&&n.space()})}),e(Re,function(e,n){e.properties.length>0?n.with_block(function(){e.properties.forEach(function(e,t){t&&(n.print(","),n.newline()),n.indent(),e.print(n)}),n.newline()}):a(e,n)}),e(We,function(e,n){if(n.print("class"),n.space(),e.name&&(e.name.print(n),n.space()),e.extends){var t=!(e.extends instanceof hn||e.extends instanceof Se||e.extends instanceof Xe||e.extends instanceof Z);n.print("extends"),t?n.print("("):n.space(),e.extends.print(n),t?n.print(")"):n.space()}e.properties.length>0?n.with_block(function(){e.properties.forEach(function(e,t){t&&n.newline(),n.indent(),e.print(n)}),n.newline()}):n.print("{}")}),e(Ze,function(e,n){n.print("new.target")}),e(Ue,function(e,n){function t(e){var n=e.definition();return n?n.mangled_name||n.name:e.name}var i=n.option("shorthand");i&&e.value instanceof Je&&st(e.key)&&t(e.value)===e.key&&rt(e.key)?l(e.key,e.quote,n):i&&e.value instanceof Ie&&e.value.left instanceof Je&&st(e.key)&&t(e.value.left)===e.key?(l(e.key,e.quote,n),n.space(),n.print("="),n.space(),e.value.right.print(n)):(e.key instanceof F?n.with_square(function(){e.key.print(n)}):l(e.key,e.quote,n),n.colon(),e.value.print(n))}),Pe.DEFMETHOD("_print_getter_setter",function(e,n){var t=this;t.static&&(n.print("static"),n.space()),e&&(n.print(e),n.space()),t.key instanceof an?l(t.key.name,t.quote,n):n.with_square(function(){t.key.print(n)}),t.value._do_print(n,!0)}),e(Le,function(e,n){e._print_getter_setter("set",n)}),e(Ve,function(e,n){e._print_getter_setter("get",n)}),e(Ye,function(e,n){var t;e.is_generator&&e.async?t="async*":e.is_generator?t="*":e.async&&(t="async"),e._print_getter_setter(t,n)}),Je.DEFMETHOD("_do_print",function(e){var n=this.definition();e.print_name(n?n.mangled_name||n.name:this.name)}),e(Je,function(e,n){e._do_print(n)}),e(Cn,u),e(gn,function(e,n){n.print("this")}),e(Dn,function(e,n){n.print("super")}),e(yn,function(e,n){n.print(e.getValue())}),e(bn,function(e,t){t.print_string(e.getValue(),e.quote,n)}),e(En,function(e,n){i&&e.start&&null!=e.start.raw?n.print(e.start.raw):n.print(h(e.getValue()))}),e(wn,function(e,n){var t=e.getValue().toString();t=n.to_utf8(t),n.print(t);var i=n.parent();i instanceof ze&&/^in/.test(i.operator)&&i.left===e&&n.print(" ")}),_([F,N,W],u),_([He,M,ve,We,yn,C,De,B,ge,re,X,Ce,Re,z,Je,pe,de,_e],function(e){e.add_mapping(this.start)}),_([Ve,Le],function(e){e.add_mapping(this.start,this.key.name)}),_([Pe],function(e){e.add_mapping(this.start,this.key)})}(),Ft.prototype=new Dt,s(Ft.prototype,{option:function(e){return this.options[e]},exposed:function(e){if(e.export)return!0;if(e.global)for(var n=0,t=e.orig.length;n0||this.option("reduce_vars"))&&e.reset_opt_flags(this),e=e.transform(this),n>1){var a=0;if(e.walk(new qn(function(){a++})),this.info("pass "+o+": last_count: "+t+", count: "+a),a=0;){if(!(r[o]instanceof Ue))return;t||r[o].key!==n||(t=r[o].value)}}return t instanceof hn&&t.fixed_value()||t}}function r(e,t,i,o,a,s){var u=t.parent(a),c=In(i,u);if(c)return c;if(!s&&u instanceof ke&&u.expression===i&&!(o instanceof K)&&!(o instanceof We)&&!u.is_expr_pure(e)&&(!(o instanceof Z)||!(u instanceof Ce)&&o.contains_this()))return!0;if(u instanceof He)return r(e,t,u,u,a+1);if(u instanceof Ue&&i===u.value){var f=t.parent(a+1);return r(e,t,f,f,a+2)}if(u instanceof Se&&u.expression===i){var l=n(o,u.property);return!s&&r(e,t,u,l,a+1)}}function o(e){return e instanceof K||e instanceof Z}function a(e){if(e instanceof gn)return!0;if(e instanceof hn)return e.definition().orig[0]instanceof sn;if(e instanceof Se){if((e=e.expression)instanceof hn){if(e.is_immutable())return!1;e=e.fixed_value()}return!e||!(e instanceof wn)&&(e instanceof yn||a(e))}return!1}function s(e,n){if(!(e instanceof hn))return!1;for(var t=e.definition().orig,i=t.length;--i>=0;)if(t[i]instanceof n)return!0}function h(e,n){for(var t,i=0;(t=e.parent(i++))&&!(t instanceof Y);)if(t instanceof ve&&t.argname){t=t.argname.definition().scope;break}return t.find_variable(n)}function v(e,n,t){return t||(t={}),n&&(t.start||(t.start=n.start),t.end||(t.end=n.end)),new e(t)}function x(e,n){return 1==n.length?n[0]:v(Be,e,{expressions:n.reduce(z,[])})}function A(e,n){switch(typeof e){case"string":return v(bn,n,{value:e});case"number":return isNaN(e)?v(Fn,n):isFinite(e)?1/e<0?v(Me,n,{operator:"-",expression:v(En,n,{value:-e})}):v(En,n,{value:e}):e<0?v(Me,n,{operator:"-",expression:v(Bn,n)}):v(Bn,n);case"boolean":return v(e?On:Tn,n);case"undefined":return v(kn,n);default:if(null===e)return v(An,n,{value:null});if(e instanceof RegExp)return v(wn,n,{value:e});throw new Error(m("Can't handle constant of type: {type}",{type:typeof e}))}}function O(e,n,t){return e instanceof Me&&"delete"==e.operator||e instanceof ke&&e.expression===n&&(t instanceof Se||t instanceof hn&&"eval"==t.name)?x(n,[v(En,n,{value:0}),t]):t}function z(e,n){return n instanceof Be?e.push.apply(e,n.expressions):e.push(n),e}function L(e){if(null===e)return[];if(e instanceof M)return e.body;if(e instanceof q)return[];if(e instanceof k)return[e];throw new Error("Can't convert thing to statement array")}function se(e){return null===e||(e instanceof q||e instanceof M&&0==e.body.length)}function we(e){return!(e instanceof Ge||e instanceof Q||e instanceof be||e instanceof Ee||e instanceof Ae||e instanceof xe)}function Le(e){return e instanceof j&&e.body instanceof M?e.body:e}function Ze(e){return"Call"==e.TYPE&&(e.expression instanceof Z||Ze(e.expression))}function tn(e){return e instanceof hn&&e.definition().undeclared}e(F,function(e,n){return e}),W.DEFMETHOD("drop_console",function(){return this.transform(new Dt(function(e){if("Call"==e.TYPE){var n=e.expression;if(n instanceof Se){for(var t=n.expression;t.expression;)t=t.expression;if(tn(t)&&"console"==t.name)return v(kn,e)}}}))}),F.DEFMETHOD("equivalent_to",function(e){return this.TYPE==e.TYPE&&this.print_to_string()==e.print_to_string()}),Y.DEFMETHOD("process_expression",function(e,n){var t=this,i=new Dt(function(r){if(e&&r instanceof S)return v(ae,r,{value:r.body});if(!e&&r instanceof ae){if(n){var o=r.value&&r.value.drop_side_effect_free(n,!0);return o?v(S,r,{body:o}):v(q,r)}return v(S,r,{body:r.value||v(Me,r,{operator:"void",expression:v(En,r,{value:0})})})}if(r instanceof We||r instanceof X&&r!==t)return r;if(r instanceof $){var a=r.body.length-1;a>=0&&(r.body[a]=r.body[a].transform(i))}else r instanceof le?(r.body=r.body.transform(i),r.alternative&&(r.alternative=r.alternative.transform(i))):r instanceof V&&(r.body=r.body.transform(i));return r});t.transform(i)}),function(e){function t(e,n){n.assignments=0,n.chained=!1,n.direct_access=!1,n.escaped=!1,n.scope.pinned()?n.fixed=!1:n.orig[0]instanceof nn||!e.exposed(n)?n.fixed=n.init:n.fixed=!1,n.recursive_refs=0,n.references=[],n.should_replace=void 0,n.single_use=void 0}function i(e,n,i){i.variables.each(function(i){t(n,i),null===i.fixed?(i.safe_ids=e.safe_ids,c(e,i,!0)):i.fixed&&(e.loop_ids[i.id]=e.in_loop,c(e,i,!0))})}function o(e,n){n.block_scope&&n.block_scope.variables.each(function(n){t(e,n)})}function a(e){e.safe_ids=Object.create(e.safe_ids)}function s(e){e.safe_ids=Object.getPrototypeOf(e.safe_ids)}function c(e,n,t){e.safe_ids[n.id]=t}function f(e,n){if("m"==n.single_use)return!1;if(e.safe_ids[n.id]){if(null==n.fixed){var t=n.orig[0];if(t instanceof rn||"arguments"==t.name)return!1;n.fixed=v(kn,t)}return!0}return n.fixed instanceof Q}function l(e,n,t){return void 0===n.fixed||(null===n.fixed&&n.safe_ids?(n.safe_ids[n.id]=!1,delete n.safe_ids,!0):!!b(e.safe_ids,n.id)&&(!!f(e,n)&&(!1!==n.fixed&&(!(null!=n.fixed&&(!t||n.references.length>n.assignments))&&D(n.orig,function(e){return!(e instanceof nn||e instanceof on||e instanceof sn)})))))}function p(e,t,i,r,o,a,s){var u=e.parent(a);if(o){if(o.is_constant())return;if(o instanceof Xe)return}if(u instanceof je&&"="==u.operator&&r===u.right||u instanceof ke&&(r!==u.expression||u instanceof Ce)||u instanceof oe&&r===u.value&&r.scope!==t.scope||u instanceof Fe&&r===u.value||u instanceof Mn&&r===u.value&&r.scope!==t.scope)return!(s>1)||o&&o.is_constant_expression(i)||(s=1),void((!t.escaped||t.escaped>s)&&(t.escaped=s));if(u instanceof He||u instanceof $n||u instanceof ze&&Nn(u.operator)||u instanceof Ne&&r!==u.condition||u instanceof G||u instanceof Be&&r===u.tail_node())p(e,t,i,u,u,a+1,s);else if(u instanceof Ue&&r===u.value){var c=e.parent(a+1);p(e,t,i,c,c,a+2,s)}else if(u instanceof Se&&r===u.expression&&(p(e,t,i,u,o=n(o,u.property),a+1,s+1),o))return;a>0||u instanceof Be&&r!==u.tail_node()||u instanceof S||(t.direct_access=!0)}e(F,u);var d=new qn(function(e){if(e instanceof Je){var n=e.definition();n&&(e instanceof hn&&n.references.push(e),n.fixed=!1)}});function h(e,n,t){this.inlined=!1;var r=e.safe_ids;return e.safe_ids=Object.create(null),i(e,t,this),n(),e.safe_ids=r,!0}function m(e,n,t){var r,o=this;return o.inlined=!1,a(e),i(e,t,o),!o.name&&(r=e.parent())instanceof ke&&r.expression===o&&o.argnames.forEach(function(n,t){if(n.definition){var i=n.definition();void 0!==i.fixed||o.uses_arguments&&!e.has_directive("use strict")?i.fixed=!1:(i.fixed=function(){return r.args[t]||v(kn,r)},e.loop_ids[i.id]=e.in_loop,c(e,i,!0))}}),n(),s(e),!0}e(J,function(e,n,t){return a(e),i(e,t,this),n(),s(e),!0}),e(K,m),e(je,function(e,n,t){var i=this;if(i.left instanceof ee)i.left.walk(d);else{var o=i.left;if(o instanceof hn){var a=o.definition(),s=l(e,a,o.scope,i.right);if(a.assignments++,s){var u=a.fixed;if(u||"="==i.operator){var f="="==i.operator,h=f?i.right:i;if(!r(t,e,i,h,0))return a.references.push(o),f||(a.chained=!0),a.fixed=f?function(){return i.right}:function(){return v(ze,i,{operator:i.operator.slice(0,-1),left:u instanceof F?u:u(),right:i.right})},c(e,a,!1),i.right.walk(e),c(e,a,!0),p(e,a,o.scope,i,h,0,1),!0}}}}}),e(ze,function(e){if(Nn(this.operator))return this.left.walk(e),a(e),this.right.walk(e),s(e),!0}),e($,function(e,n,t){o(t,this)}),e(me,function(e){return a(e),this.expression.walk(e),s(e),a(e),T(this,e),s(e),!0}),e(Xe,function(e,n){return this.inlined=!1,a(e),n(),s(e),!0}),e(Ne,function(e){return this.condition.walk(e),a(e),this.consequent.walk(e),s(e),a(e),this.alternative.walk(e),s(e),!0}),e(he,function(e,n){return a(e),n(),s(e),!0}),e(Ge,h),e(Q,h),e(H,function(e,n,t){o(t,this);var i=e.in_loop;return e.in_loop=this,a(e),this.body.walk(e),Jn(this)&&(s(e),a(e)),this.condition.walk(e),s(e),e.in_loop=i,!0}),e(P,function(e,n,t){o(t,this),this.init&&this.init.walk(e);var i=e.in_loop;return e.in_loop=this,a(e),this.condition&&this.condition.walk(e),this.body.walk(e),this.step&&(Jn(this)&&(s(e),a(e)),this.step.walk(e)),s(e),e.in_loop=i,!0}),e(U,function(e,n,t){o(t,this),this.init.walk(d),this.object.walk(e);var i=e.in_loop;return e.in_loop=this,a(e),this.body.walk(e),s(e),e.in_loop=i,!0}),e(Z,m),e(le,function(e){return this.condition.walk(e),a(e),this.body.walk(e),s(e),this.alternative&&(a(e),this.alternative.walk(e),s(e)),!0}),e(N,function(e){return a(e),this.body.walk(e),s(e),!0}),e(fn,function(){this.definition().fixed=!1}),e(hn,function(e,n,t){var i,o=this.definition();o.references.push(this),1==o.references.length&&!o.fixed&&o.orig[0]instanceof on&&(e.loop_ids[o.id]=e.in_loop),void 0!==o.fixed&&f(e,o)?o.fixed&&((i=this.fixed_value())instanceof X&&Kn(e,o)?o.recursive_refs++:i&&!t.exposed(o)&&function(e,n,t){return n.option("unused")&&!t.scope.pinned()&&t.references.length-t.recursive_refs==1&&e.loop_ids[t.id]===e.in_loop}(e,t,o)?o.single_use=i instanceof X&&!i.pinned()||i instanceof We||o.scope===this.scope&&i.is_constant_expression():o.single_use=!1,r(t,e,this,i,0,function(e){return!!e&&(e.is_constant()||e instanceof X||e instanceof gn)}(i))&&(o.single_use?o.single_use="m":o.fixed=!1)):o.fixed=!1,p(e,o,this.scope,this,i,0,1)}),e(W,function(e,n,r){this.globals.each(function(e){t(r,e)}),i(e,r,this)}),e(_e,function(e,n,t){return o(t,this),a(e),T(this,e),s(e),this.bcatch&&(a(e),this.bcatch.walk(e),s(e)),this.bfinally&&this.bfinally.walk(e),!0}),e($e,function(e,n){var t=this;if("++"==t.operator||"--"==t.operator){var i=t.expression;if(i instanceof hn){var r=i.definition(),o=l(e,r,!0);if(r.assignments++,o){var a=r.fixed;if(a)return r.references.push(i),r.chained=!0,r.fixed=function(){return v(ze,t,{operator:t.operator.slice(0,-1),left:v(Me,t,{operator:"+",expression:a instanceof F?a:a()}),right:v(En,t,{value:1})})},c(e,r,!0),!0}}}}),e(Fe,function(e,n){var t=this;if(t.name instanceof ee)t.name.walk(d);else{var i=t.name.definition();if(t.value){if(l(e,i,t.value))return i.fixed=function(){return t.value},e.loop_ids[i.id]=e.in_loop,c(e,i,!1),n(),c(e,i,!0),!0;i.fixed=!1}}}),e(R,function(e,n,t){o(t,this);var i=e.in_loop;return e.in_loop=this,a(e),n(),s(e),e.in_loop=i,!0})}(function(e,n){e.DEFMETHOD("reduce_vars",n)}),W.DEFMETHOD("reset_opt_flags",function(e){var n=e.option("reduce_vars"),t=new qn(function(i,r){if(i._squeezed=!1,i._optimized=!1,n)return i.reduce_vars(t,r,e)});t.safe_ids=Object.create(null),t.in_loop=null,t.loop_ids=Object.create(null),this.walk(t)}),Je.DEFMETHOD("fixed_value",function(){var e=this.definition().fixed;return!e||e instanceof F?e:e()}),hn.DEFMETHOD("is_immutable",function(){var e=this.definition().orig;return 1==e.length&&e[0]instanceof sn});var un=g("Array Boolean clearInterval clearTimeout console Date decodeURI decodeURIComponent encodeURI encodeURIComponent Error escape eval EvalError Function isFinite isNaN JSON Math Number parseFloat parseInt RangeError ReferenceError RegExp Object setInterval setTimeout String SyntaxError TypeError unescape URIError");hn.DEFMETHOD("is_declared",function(e){return!this.definition().undeclared||e.option("unsafe")&&un(this.name)});var cn,ln,pn,dn=g("Infinity NaN undefined");function _n(e){return e instanceof Bn||e instanceof Fn||e instanceof kn}function vn(e,n){var i,u,c=n.find_parent(Y).get_defun_scope();!function(){var e=n.self(),t=0;do{if(e instanceof ve||e instanceof ge)t++;else if(e instanceof j)i=!0;else{if(e instanceof Y){c=e;break}e instanceof _e&&(u=!0)}}while(e=n.parent(t++))}();var f,l=10;do{f=!1,h(e),n.option("dead_code")&&g(e,n),n.option("if_return")&&m(e,n),n.sequences_limit>0&&(b(e,n),w(e,n)),n.option("join_vars")&&k(e),n.option("collapse_vars")&&p(e,n)}while(f&&l-- >0);function p(e,n){if(c.pinned())return e;for(var l,p=[],h=e.length,m=new Dt(function(e,t){if(N)return e;if(!z)return e!==g[y]?e:++y=0;){0==h&&n.option("unused")&&ne();var g=[];for(te(e[h]);p.length>0;){g=p.pop();var y=0,b=g[g.length-1],E=null,w=null,x=null,A=ie(b);if(A&&!a(A)&&!A.has_side_effects(n)){var F=ae(b),k=ce(A);A instanceof hn&&(F[A.name]=!1);var B=fe(b),T=de(),M=b.may_throw(n),q=b.name instanceof rn,z=q,N=!1,H=0,R=!l||!z;if(!R){for(var L=n.self().argnames.lastIndexOf(b.name)+1;!N&&LH)H=!1;else{N=!1,y=0,z=q;for(W=h;!N&&W=0;){var c=i.argnames[u],f=e.args[u];if(l.unshift(v(Fe,c,{name:c,value:f})),!(c.name in s))if(s[c.name]=!0,c instanceof G){var d=e.args.slice(u);D(d,function(e){return!Q(i,e,r)})&&p.unshift([v(Fe,c,{name:c.expression,value:v(He,e,{elements:d})})])}else f?(f instanceof X&&f.pinned()||Q(i,f,r))&&(f=null):f=v(kn,c).transform(n),f&&p.unshift([v(Fe,c,{name:c,value:f})])}}}function te(e){if(g.push(e),e instanceof je)e.left.has_side_effects(n)||p.push(g.slice()),te(e.right);else if(e instanceof ze)te(e.left),te(e.right);else if(e instanceof ke)te(e.expression),e.args.forEach(te);else if(e instanceof me)te(e.expression);else if(e instanceof Ne)te(e.condition),te(e.consequent),te(e.alternative);else if(!(e instanceof De)||!n.option("unused")&&e instanceof Ee)e instanceof I?(te(e.condition),e.body instanceof $||te(e.body)):e instanceof oe?e.value&&te(e.value):e instanceof P?(e.init&&te(e.init),e.condition&&te(e.condition),e.step&&te(e.step),e.body instanceof $||te(e.body)):e instanceof U?(te(e.object),e.body instanceof $||te(e.body)):e instanceof le?(te(e.condition),e.body instanceof $||te(e.body),!e.alternative||e.alternative instanceof $||te(e.alternative)):e instanceof Be?e.expressions.forEach(te):e instanceof S?te(e.body):e instanceof pe?(te(e.expression),e.body.forEach(te)):e instanceof $e?"++"!=e.operator&&"--"!=e.operator||p.push(g.slice()):e instanceof Fe&&e.value&&(p.push(g.slice()),te(e.value));else{var t=e.definitions.length,i=t-200;for(i<0&&(i=0);i1&&!(e.name instanceof rn)||(o>1?function(e){var n=e.value;if(n instanceof hn&&"arguments"!=n.name){var t=n.definition();if(!t.undeclared)return E=t}}(e):!n.exposed(r))?v(hn,e.name,e.name):void 0}}function re(e){return e[e instanceof je?"right":"value"]}function ae(e){var t=Object.create(null);if(e instanceof $e)return t;var i=new qn(function(e,o){for(var a=e;a instanceof Se;)a=a.expression;(a instanceof hn||a instanceof gn)&&(t[a.name]=t[a.name]||r(n,i,e,e,0))});return re(e).walk(i),t}function se(t){if(t.name instanceof rn){var i=n.parent(),r=n.self().argnames,o=r.indexOf(t.name);if(o<0)i.args.length=Math.min(i.args.length,r.length-1);else{var a=i.args;a[o]&&(a[o]=v(En,a[o],{value:0}))}return!0}var s=!1;return e[h].transform(new Dt(function(e,n,i){return s?e:e===t||e.body===t?(s=!0,e instanceof Fe?(e.value=null,e):i?d.skip:null):void 0},function(e){if(e instanceof Be)switch(e.expressions.length){case 0:return null;case 1:return e.expressions[0]}}))}function ce(e){for(;e instanceof Se;)e=e.expression;return e instanceof hn&&e.definition().scope===c&&!(i&&(e.name in F||b instanceof $e||b instanceof je&&"="!=b.operator))}function fe(e){return!(e instanceof $e)&&re(e).has_side_effects(n)}function de(){if(B)return!1;if(E)return!0;if(A instanceof hn){var e=A.definition();if(e.references.length-e.replaced==(b instanceof Fe?1:2))return!0}return!1}function ve(e){if(!e.definition)return!0;var n=e.definition();return!(1==n.orig.length&&n.orig[0]instanceof on)&&(n.scope.get_defun_scope()!==c||!D(n.references,function(e){var n=e.scope.get_defun_scope();return"Scope"==n.TYPE&&(n=n.parent_scope),n===c}))}}function h(e){for(var n=[],t=0;t=0;){var i=e[t];if(i instanceof le&&i.body instanceof ae&&++n>1)return!0}return!1}(e),r=t instanceof X,o=e.length;--o>=0;){var a=e[o],s=D(o),u=e[s];if(r&&!u&&a instanceof ae){if(!a.value){f=!0,e.splice(o,1);continue}if(a.value instanceof Me&&"void"==a.value.operator){f=!0,e[o]=v(S,a,{body:a.value.expression});continue}}if(a instanceof le){var c;if(h(c=Wn(a.body))){c.label&&_(c.label.thedef.references,c),f=!0,(a=a.clone()).condition=a.condition.negate(n);var l=g(a.body,c);a.body=v(M,a,{body:L(a.alternative).concat(m())}),a.alternative=v(M,a,{body:l}),e[o]=a.transform(n);continue}if(h(c=Wn(a.alternative))){c.label&&_(c.label.thedef.references,c),f=!0,(a=a.clone()).body=v(M,a.body,{body:L(a.body).concat(m())});l=g(a.alternative,c);a.alternative=v(M,a.alternative,{body:l}),e[o]=a.transform(n);continue}}if(a instanceof le&&a.body instanceof ae){var p=a.body.value;if(!p&&!a.alternative&&(r&&!u||u instanceof ae&&!u.value)){f=!0,e[o]=v(S,a.condition,{body:a.condition});continue}if(p&&!a.alternative&&u instanceof ae&&u.value){f=!0,(a=a.clone()).alternative=u,e.splice(o,1,a.transform(n)),e.splice(s,1);continue}if(p&&!a.alternative&&(!u&&r&&i||u instanceof ae)){f=!0,(a=a.clone()).alternative=u||v(ae,a,{value:null}),e.splice(o,1,a.transform(n)),u&&e.splice(s,1);continue}var d=e[b(o)];if(n.option("sequences")&&r&&!a.alternative&&d instanceof le&&d.body instanceof ae&&D(s)==e.length&&u instanceof S){f=!0,(a=a.clone()).alternative=v(M,u,{body:[u,v(ae,u,{value:null})]}),e.splice(o,1,a.transform(n)),e.splice(s,1);continue}}}function h(i){if(!i)return!1;for(var a=o+1,s=e.length;a=0;){var i=e[t];if(!(i instanceof ye&&y(i)))break}return t}}function g(e,n){for(var t,i=n.self(),r=0,o=0,a=e.length;r=n.sequences_limit&&u();var s=a.body;t.length>0&&(s=s.drop_side_effect_free(n)),s&&z(t,s)}else a instanceof De&&y(a)||a instanceof Q?e[i++]=a:(u(),e[i++]=a)}u(),e.length=i,i!=o&&(f=!0)}function u(){if(t.length){var n=x(t[0],t);e[i++]=v(S,n,{body:n}),t=[]}}}function E(e,n){if(!(e instanceof M))return e;for(var t=null,i=0,r=e.body.length;i0){var p=u.length;u.push(v(le,a,{condition:a.condition,body:c||v(q,a.body),alternative:l})),u.unshift(r,1),[].splice.apply(e,u),o+=p,r+=p+1,i=null,f=!0;continue}}e[r++]=a,i=a instanceof S?a:null}e.length=r}function A(e,t){if(e instanceof De){var i,r=e.definitions[e.definitions.length-1];if(r.value instanceof Re)if(t instanceof je?i=[t]:t instanceof Be&&(i=t.expressions.slice()),i){var o=!1;do{var a=i[0];if(!(a instanceof je))break;if("="!=a.operator)break;if(!(a.left instanceof Se))break;var s=a.left.expression;if(!(s instanceof hn))break;if(r.name.name!=s.name)break;if(!a.right.is_constant_expression(c))break;var u=a.left.property;if(u instanceof F&&(u=u.evaluate(n)),u instanceof F)break;u=""+u;var f=n.option("ecma")<6&&n.has_directive("use strict")?function(e){return e.key!=u&&e.key.name!=u}:function(e){return e.key.name!=u};if(!D(r.value.properties,f))break;r.value.properties.push(v(Ue,a,{key:u,value:a.right})),i.shift(),o=!0}while(i.length);return o&&i}}}function k(e){for(var n,t=0,i=-1,r=e.length;t=0;)if(this.properties[t]._dot_throw(e))return!0;return!1}),e(Pe,c),e(Ve,f),e(G,function(e){return this.expression._dot_throw(e)}),e(Z,c),e(K,c),e(qe,c),e(Me,function(){return"void"==this.operator}),e(ze,function(e){return("&&"==this.operator||"||"==this.operator)&&(this.left._dot_throw(e)||this.right._dot_throw(e))}),e(je,function(e){return"="==this.operator&&this.right._dot_throw(e)}),e(Ne,function(e){return this.consequent._dot_throw(e)||this.alternative._dot_throw(e)}),e(Te,function(e){return!!n(e)&&!(this.expression instanceof Z&&"prototype"==this.property)}),e(Be,function(e){return this.tail_node()._dot_throw(e)}),e(hn,function(e){if(this.is_undefined)return!0;if(!n(e))return!1;if(tn(this)&&this.is_declared(e))return!1;if(this.is_immutable())return!1;var t=this.fixed_value();return!t||t._dot_throw(e)})}(function(e,n){e.DEFMETHOD("_dot_throw",n)}),ln=["!","delete"],pn=["in","instanceof","==","!=","===","!==","<","<=",">=",">"],(cn=function(e,n){e.DEFMETHOD("is_boolean",n)})(F,c),cn(Me,function(){return t(this.operator,ln)}),cn(ze,function(){return t(this.operator,pn)||Nn(this.operator)&&this.left.is_boolean()&&this.right.is_boolean()}),cn(Ne,function(){return this.consequent.is_boolean()&&this.alternative.is_boolean()}),cn(je,function(){return"="==this.operator&&this.right.is_boolean()}),cn(Be,function(){return this.tail_node().is_boolean()}),cn(On,f),cn(Tn,f),function(e){e(F,c),e(En,f);var n=g("+ - ~ ++ --");e($e,function(){return n(this.operator)});var t=g("- * / % & | ^ << >> >>>");e(ze,function(e){return t(this.operator)||"+"==this.operator&&this.left.is_number(e)&&this.right.is_number(e)}),e(je,function(e){return t(this.operator.slice(0,-1))||"="==this.operator&&this.right.is_number(e)}),e(Be,function(e){return this.tail_node().is_number(e)}),e(Ne,function(e){return this.consequent.is_number(e)&&this.alternative.is_number(e)})}(function(e,n){e.DEFMETHOD("is_number",n)}),function(e){e(F,c),e(bn,f),e(te,function(){return 1===this.segments.length}),e(Me,function(){return"typeof"==this.operator}),e(ze,function(e){return"+"==this.operator&&(this.left.is_string(e)||this.right.is_string(e))}),e(je,function(e){return("="==this.operator||"+="==this.operator)&&this.right.is_string(e)}),e(Be,function(e){return this.tail_node().is_string(e)}),e(Ne,function(e){return this.consequent.is_string(e)&&this.alternative.is_string(e)})}(function(e,n){e.DEFMETHOD("is_string",n)});var Nn=g("&& ||"),jn=g("delete ++ --");function In(e,n){return n instanceof $e&&jn(n.operator)?n.expression:n instanceof je&&n.left===e?e:void 0}function Hn(e,n){return e.print_to_string().length>n.print_to_string().length?n:e}function Rn(e,n,t){return(E(e)?function(e,n){return Hn(v(S,e,{body:e}),v(S,n,{body:n})).body}:Hn)(n,t)}function Pn(e){for(var n in e)e[n]=g(e[n])}!function(e){function n(e,n){e.warn("global_defs "+n.print_to_string()+" redefined [{file}:{line},{col}]",n.start)}W.DEFMETHOD("resolve_defines",function(e){return e.option("global_defs")?(this.figure_out_scope({ie8:e.option("ie8")}),this.transform(new Dt(function(t){var i=t._find_defs(e,"");if(i){for(var r,o=0,a=t;(r=this.parent(o++))&&r instanceof Se&&r.expression===a;)a=r;if(!In(a,r))return i;n(e,t)}}))):this}),e(F,u),e(Te,function(e,n){return this.expression._find_defs(e,"."+this.property+n)}),e(Ke,function(e){this.global()&&b(e.option("global_defs"),this.name)&&n(e,this)}),e(hn,function(e,n){if(this.global()){var t=e.option("global_defs"),i=this.name+n;return b(t,i)?function e(n,t){if(n instanceof F)return v(n.CTOR,t,n);if(Array.isArray(n))return v(He,t,{elements:n.map(function(n){return e(n,t)})});if(n&&"object"==typeof n){var i=[];for(var r in n)b(n,r)&&i.push(v(Ue,t,{key:r,value:e(n[r],t)}));return v(Re,t,{properties:i})}return A(n,t)}(t[i],this):void 0}})}(function(e,n){e.DEFMETHOD("_find_defs",n)});var Un=["constructor","toString","valueOf"],Ln={Array:["indexOf","join","lastIndexOf","slice"].concat(Un),Boolean:Un,Function:Un,Number:["toExponential","toFixed","toPrecision"].concat(Un),Object:Un,RegExp:["test"].concat(Un),String:["charAt","charCodeAt","concat","indexOf","italics","lastIndexOf","match","replace","search","slice","split","substr","substring","toLowerCase","toUpperCase","trim"].concat(Un)};Pn(Ln);var Vn={Array:["isArray"],Math:["abs","acos","asin","atan","ceil","cos","exp","floor","log","round","sin","sqrt","tan","atan2","pow","max","min"],Number:["isFinite","isNaN"],Object:["create","getOwnPropertyDescriptor","getOwnPropertyNames","getPrototypeOf","isExtensible","isFrozen","isSealed","keys"],String:["fromCharCode"]};Pn(Vn),function(e){F.DEFMETHOD("evaluate",function(e){if(!e.option("evaluate"))return this;var n=this._eval(e,1);return!n||n instanceof RegExp?n:"function"==typeof n||"object"==typeof n?this:n});var n=g("! ~ - + void");F.DEFMETHOD("is_constant",function(){return this instanceof yn?!(this instanceof wn):this instanceof Me&&this.expression instanceof yn&&n(this.operator)}),e(k,function(){throw new Error(m("Cannot evaluate a statement [{file}:{line},{col}]",this.start))}),e(X,l),e(We,l),e(F,l),e(yn,function(){return this.getValue()}),e(te,function(){return 1!==this.segments.length?this:this.segments[0].value}),e(Z,function(e){if(e.option("unsafe")){var n=function(){};return n.node=this,n.toString=function(){return this.node.print_to_string()},n}return this}),e(He,function(e,n){if(e.option("unsafe")){for(var t=[],i=0,r=this.elements.length;i>":r=t>>o;break;case">>>":r=t>>>o;break;case"==":r=t==o;break;case"===":r=t===o;break;case"!=":r=t!=o;break;case"!==":r=t!==o;break;case"<":r=t":r=t>o;break;case">=":r=t>=o;break;default:return this}return isNaN(r)&&e.find_parent(V)?this:r}),e(Ne,function(e,n){var t=this.condition._eval(e,n);if(t===this.condition)return this;var i=t?this.consequent:this.alternative,r=i._eval(e,n);return r===i?this:r}),e(hn,function(e,n){var t,i=this.fixed_value();if(!i)return this;if(b(i,"_eval"))t=i._eval();else{if(this._eval=l,t=i._eval(e,n),delete this._eval,t===i)return this;i._eval=function(){return t}}if(t&&"object"==typeof t){var r=this.definition().escaped;if(r&&n>r)return this}return t});var r={Array:Array,Math:Math,Number:Number,Object:Object,String:String},o={Math:["E","LN10","LN2","LOG2E","LOG10E","PI","SQRT1_2","SQRT2"],Number:["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"]};Pn(o),e(Se,function(e,n){if(e.option("unsafe")){var t=this.property;if(t instanceof F&&(t=t._eval(e,n))===this.property)return this;var i,a=this.expression;if(tn(a)){if(!(o[a.name]||c)(t))return this;i=r[a.name]}else{if(!(i=a._eval(e,n+1))||i===a||!b(i,t))return this;if("function"==typeof i)switch(t){case"name":return i.node.name?i.node.name.name:"";case"length":return i.node.argnames.length;default:return this}}return i[t]}return this}),e(ke,function(e,n){var t=this.expression;if(e.option("unsafe")&&t instanceof Se){var i,o=t.property;if(o instanceof F&&(o=o._eval(e,n))===t.property)return this;var a=t.expression;if(tn(a)){if(!(Vn[a.name]||c)(o))return this;i=r[a.name]}else if((i=a._eval(e,n+1))===a||!(i&&Ln[i.constructor.name]||c)(o))return this;for(var s=[],u=0,f=this.args.length;u=":return r.operator="<",r;case">":return r.operator="<=",r}switch(o){case"==":return r.operator="!=",r;case"!=":return r.operator="==",r;case"===":return r.operator="!==",r;case"!==":return r.operator="===",r;case"&&":return r.operator="||",r.left=r.left.negate(e,i),r.right=r.right.negate(e),t(this,r,i);case"||":return r.operator="&&",r.left=r.left.negate(e,i),r.right=r.right.negate(e),t(this,r,i)}return n(this)})}(function(e,n){e.DEFMETHOD("negate",function(e,t){return n.call(this,e,t)})});var Yn=g("Boolean decodeURI decodeURIComponent Date encodeURI encodeURIComponent Error escape EvalError isFinite isNaN Number Object parseFloat parseInt RangeError ReferenceError String SyntaxError TypeError unescape URIError");function Wn(e){return e&&e.aborts()}ke.DEFMETHOD("is_expr_pure",function(e){if(e.option("unsafe")){var n=this.expression;if(tn(n)&&Yn(n.name))return!0;if(n instanceof Te&&tn(n.expression)&&(Vn[n.expression.name]||c)(n.property))return!0}return this.pure||!e.pure_funcs(this)}),F.DEFMETHOD("is_call_pure",c),Te.DEFMETHOD("is_call_pure",function(e){if(e.option("unsafe")){var n=this.expression,t=c;return n instanceof He?t=Ln.Array:n.is_boolean()?t=Ln.Boolean:n.is_number(e)?t=Ln.Number:n instanceof wn?t=Ln.RegExp:n.is_string(e)?t=Ln.String:this.may_throw_on_access(e)||(t=Ln.Object),t(this.property)}}),function(e){function n(e,n){for(var t=e.length;--t>=0;)if(e[t].has_side_effects(n))return!0;return!1}e(F,f),e(q,c),e(yn,c),e(gn,c),e($,function(e){return n(this.body,e)}),e(ke,function(e){return!(this.is_expr_pure(e)||this.expression.is_call_pure(e)&&!this.expression.has_side_effects(e))||n(this.args,e)}),e(pe,function(e){return this.expression.has_side_effects(e)||n(this.body,e)}),e(me,function(e){return this.expression.has_side_effects(e)||n(this.body,e)}),e(_e,function(e){return n(this.body,e)||this.bcatch&&this.bcatch.has_side_effects(e)||this.bfinally&&this.bfinally.has_side_effects(e)}),e(le,function(e){return this.condition.has_side_effects(e)||this.body&&this.body.has_side_effects(e)||this.alternative&&this.alternative.has_side_effects(e)}),e(N,function(e){return this.body.has_side_effects(e)}),e(S,function(e){return this.body.has_side_effects(e)}),e(X,c),e(We,c),e(Ge,f),e(ze,function(e){return this.left.has_side_effects(e)||this.right.has_side_effects(e)}),e(je,f),e(Ne,function(e){return this.condition.has_side_effects(e)||this.consequent.has_side_effects(e)||this.alternative.has_side_effects(e)}),e($e,function(e){return jn(this.operator)||this.expression.has_side_effects(e)}),e(hn,function(e){return!this.is_declared(e)}),e(Ke,c),e(Re,function(e){return n(this.properties,e)}),e(Pe,function(e){return!!(this.key instanceof Ue&&this.key.has_side_effects(e))||this.value.has_side_effects(e)}),e(He,function(e){return n(this.elements,e)}),e(Te,function(e){return this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)}),e(Oe,function(e){return this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)||this.property.has_side_effects(e)}),e(Be,function(e){return n(this.expressions,e)}),e(De,function(e){return n(this.definitions,e)}),e(Fe,function(e){return this.value}),e(ie,c),e(te,function(e){return n(this.segments,e)})}(function(e,n){e.DEFMETHOD("has_side_effects",n)}),function(e){function n(e,n){for(var t=e.length;--t>=0;)if(e[t].may_throw(n))return!0;return!1}e(F,f),e(We,c),e(yn,c),e(q,c),e(X,c),e(Ke,c),e(gn,c),e(He,function(e){return n(this.elements,e)}),e(je,function(e){return!!this.right.may_throw(e)||!(!e.has_directive("use strict")&&"="==this.operator&&this.left instanceof hn)&&this.left.may_throw(e)}),e(ze,function(e){return this.left.may_throw(e)||this.right.may_throw(e)}),e($,function(e){return n(this.body,e)}),e(ke,function(e){return!!n(this.args,e)||!this.is_expr_pure(e)&&(!!this.expression.may_throw(e)||(!(this.expression instanceof X)||n(this.expression.body,e)))}),e(me,function(e){return this.expression.may_throw(e)||n(this.body,e)}),e(Ne,function(e){return this.condition.may_throw(e)||this.consequent.may_throw(e)||this.alternative.may_throw(e)}),e(De,function(e){return n(this.definitions,e)}),e(Te,function(e){return this.expression.may_throw_on_access(e)||this.expression.may_throw(e)}),e(le,function(e){return this.condition.may_throw(e)||this.body&&this.body.may_throw(e)||this.alternative&&this.alternative.may_throw(e)}),e(N,function(e){return this.body.may_throw(e)}),e(Re,function(e){return n(this.properties,e)}),e(Pe,function(e){return this.value.may_throw(e)}),e(ae,function(e){return this.value&&this.value.may_throw(e)}),e(Be,function(e){return n(this.expressions,e)}),e(S,function(e){return this.body.may_throw(e)}),e(Oe,function(e){return this.expression.may_throw_on_access(e)||this.expression.may_throw(e)||this.property.may_throw(e)}),e(pe,function(e){return this.expression.may_throw(e)||n(this.body,e)}),e(hn,function(e){return!this.is_declared(e)}),e(_e,function(e){return this.bcatch?this.bcatch.may_throw(e):n(this.body,e)||this.bfinally&&this.bfinally.may_throw(e)}),e($e,function(e){return!("typeof"==this.operator&&this.expression instanceof hn)&&this.expression.may_throw(e)}),e(Fe,function(e){return!!this.value&&this.value.may_throw(e)})}(function(e,n){e.DEFMETHOD("may_throw",n)}),function(e){function n(e){for(var n=e.length;--n>=0;)if(!e[n].is_constant_expression())return!1;return!0}function i(e){var n=this,i=!0;return n.walk(new qn(function(r){if(!i)return!0;if(r instanceof hn){if(n.inlined)return i=!1,!0;var o=r.definition();if(t(o,n.enclosed)&&!n.variables.has(o.name)){if(e){var a=e.find_variable(r);if(o.undeclared?!a:a===o)return i="f",!0}i=!1}return!0}return r instanceof gn&&n instanceof K?(i=!1,!0):void 0})),i}e(F,c),e(yn,f),e(We,function(e){return!(this.extends&&!this.extends.is_constant_expression(e))&&i.call(this,e)}),e(X,i),e($e,function(){return this.expression.is_constant_expression()}),e(ze,function(){return this.left.is_constant_expression()&&this.right.is_constant_expression()}),e(He,function(){return n(this.elements)}),e(Re,function(){return n(this.properties)}),e(Pe,function(){return!(this.key instanceof F)&&this.value.is_constant_expression()})}(function(e,n){e.DEFMETHOD("is_constant_expression",n)}),function(e){function n(){for(var e=0;e1)||(o.name=null)),o instanceof X&&!(o instanceof J))for(var g=!e.option("keep_fargs"),y=o.argnames,b=y.length;--b>=0;){var A;(A=y[b])instanceof G&&(A=A.expression),A instanceof Ie&&(A=A.left),A instanceof ee||A.definition().id in a?g=!1:(A.__unused=!0,g&&(y.pop(),e[A.unreferenced()?"warn":"info"]("Dropping unused function argument {name} [{file}:{line},{col}]",j(A))))}if((o instanceof Q||o instanceof Ge)&&o!==n)if(!((m=o.name.definition()).id in a||!t&&m.global))return e[o.name.unreferenced()?"warn":"info"]("Dropping unused function {name} [{file}:{line},{col}]",j(o.name)),m.eliminated++,v(q,o);if(o instanceof De&&!(l instanceof U&&l.init===o)){var F=!(l instanceof W||o instanceof ye),k=[],C=[],B=[],T=[];switch(o.definitions.forEach(function(n){n.value&&(n.value=n.value.transform(E));var t=n.name instanceof ee,r=t?new yt(null,{name:""}):n.name.definition();if(F&&r.global)return B.push(n);if(!i&&!F||t&&(n.name.names.length||n.name.is_array||1!=e.option("pure_getters"))||r.id in a){if(n.value&&r.id in u&&u[r.id]!==n&&(n.value=n.value.drop_side_effect_free(e)),n.name instanceof Qe){var s=f.get(r.id);if(s.length>1&&(!n.value||r.orig.indexOf(n.name)>r.eliminated)){if(e.warn("Dropping duplicated definition of variable {name} [{file}:{line},{col}]",j(n.name)),n.value){var c=v(hn,n.name,n.name);r.references.push(c);var l=v(je,n,{operator:"=",left:c,right:n.value});u[r.id]===n&&(u[r.id]=l),T.push(l.transform(E))}return _(s,n),void r.eliminated++}}n.value?(T.length>0&&(B.length>0?(T.push(n.value),n.value=x(n.value,T)):k.push(v(S,o,{body:x(o,T)})),T=[]),B.push(n)):C.push(n)}else if(r.orig[0]instanceof fn){(p=n.value&&n.value.drop_side_effect_free(e))&&T.push(p),n.value=null,C.push(n)}else{var p;(p=n.value&&n.value.drop_side_effect_free(e))?(t||e.warn("Side effects in initialization of unused variable {name} [{file}:{line},{col}]",j(n.name)),T.push(p)):t||e[n.name.unreferenced()?"warn":"info"]("Dropping unused variable {name} [{file}:{line},{col}]",j(n.name)),r.eliminated++}}),(C.length>0||B.length>0)&&(o.definitions=C.concat(B),k.push(o)),T.length>0&&k.push(v(S,o,{body:x(o,T)})),k.length){case 0:return c?d.skip:v(q,o);case 1:return k[0];default:return c?d.splice(k):v(M,o,{body:k})}}if(o instanceof P)return s(o,this),o.init instanceof M&&($=o.init,o.init=$.body.pop(),$.body.push(o)),o.init instanceof S?o.init=o.init.body:se(o.init)&&(o.init=null),$?c?d.splice($.body):$:o;if(o instanceof N&&o.body instanceof P){if(s(o,this),o.body instanceof M){var $=o.body;return o.body=$.body.pop(),$.body.push(o),c?d.splice($.body):$}return o}if(o instanceof M)return s(o,this),c&&D(o.body,we)?d.splice(o.body):o;if(o instanceof Y){var z=h;return h=o,s(o,this),h=z,o}}function j(e){return{name:e.name,file:e.start.file,line:e.start.line,col:e.start.col}}});n.transform(E)}}function A(e,t){var i,c=r(e);if(c instanceof hn&&!s(e.left,en)&&n.variables.get(c.name)===(i=c.definition()))return e instanceof je&&(e.right.walk(m),i.chained||e.left.fixed_value()!==e.right||(u[i.id]=e)),!0;if(e instanceof hn)return(i=e.definition()).id in a||(a[i.id]=!0,o.push(i),(i=i.redefined())&&(a[i.id]=!0,o.push(i))),!0;if(e instanceof Y){var f=h;return h=e,t(),h=f,!0}}}),Y.DEFMETHOD("hoist_declarations",function(e){var n=this;if(e.has_directive("use asm"))return n;if(!Array.isArray(n.body))return n;var t=e.option("hoist_funs"),r=e.option("hoist_vars");if(t||r){var o=[],a=[],s=new y,u=0,c=0;n.walk(new qn(function(e){return e instanceof Y&&e!==n||(e instanceof ye?(++c,!0):void 0)})),r=r&&c>1;var f=new Dt(function(i){if(i!==n){if(i instanceof B)return o.push(i),v(q,i);if(t&&i instanceof Q&&!(f.parent()instanceof Ae)&&f.parent()===n)return a.push(i),v(q,i);if(r&&i instanceof ye){i.definitions.forEach(function(e){e.name instanceof ee||(s.set(e.name.name,e),++u)});var c=i.to_assignments(e),l=f.parent();if(l instanceof U&&l.init===i){if(null==c){var p=i.definitions[0].name;return v(hn,p,p)}return c}return l instanceof P&&l.init===i?c:c?v(S,i,{body:c}):v(q,i)}if(i instanceof Y)return i}});if(n=n.transform(f),u>0){var l=[];if(s.each(function(e,t){n instanceof X&&i(function(n){return n.name==e.name.name},n.args_as_names())?s.del(t):((e=e.clone()).value=null,l.push(e),s.set(t,e))}),l.length>0){for(var p=0;p0&&(u[0].body=s.concat(u[0].body)),e.body=u;t=u[u.length-1];){var d=t.body[t.body.length-1];if(d instanceof ce&&n.loopcontrol_target(d)===e&&t.body.pop(),t.body.length||t instanceof me&&(o||t.expression.has_side_effects(n)))break;u.pop()===o&&(o=null)}if(0==u.length)return v(M,e,{body:s.concat(v(S,e.expression,{body:e.expression}))}).optimize(n);if(1==u.length&&(u[0]===a||u[0]===o)){var h=!1,m=new qn(function(n){if(h||n instanceof X||n instanceof S)return!0;n instanceof ce&&m.loopcontrol_target(n)===e&&(h=!0)});if(e.walk(m),!h){var _,g=u[0].body.slice();return(_=u[0].expression)&&g.unshift(v(S,_,{body:_})),g.unshift(v(S,e.expression,{body:e.expression})),v(M,e,{body:g}).optimize(n)}}return e;function D(e,t){t&&!Wn(t)?t.body=t.body.concat(e.body):Dn(n,e,s)}}),e(_e,function(e,n){if(vn(e.body,n),e.bcatch&&e.bfinally&&D(e.bfinally.body,se)&&(e.bfinally=null),n.option("dead_code")&&D(e.body,se)){var t=[];return e.bcatch&&(Dn(n,e.bcatch,t),t.forEach(function(e){e instanceof De&&e.definitions.forEach(function(e){var n=e.name.definition().redefined();n&&(e.name=e.name.clone(),e.name.thedef=n)})})),e.bfinally&&(t=t.concat(e.bfinally.body)),v(M,e,{body:t}).optimize(n)}return e}),De.DEFMETHOD("remove_initializers",function(){var e=[];this.definitions.forEach(function(n){n.name instanceof Ke?(n.value=null,e.push(n)):n.name.walk(new qn(function(t){t instanceof Ke&&e.push(v(Fe,n,{name:t,value:null}))}))}),this.definitions=e}),De.DEFMETHOD("to_assignments",function(e){var n=e.option("reduce_vars"),t=this.definitions.reduce(function(e,t){if(!t.value||t.name instanceof ee){if(t.value){var i=v(Fe,t,{name:t.name,value:t.value}),r=v(ye,t,{definitions:[i]});e.push(r)}}else{var o=v(hn,t.name,t.name);e.push(v(je,t,{operator:"=",left:o,right:t.value})),n&&(o.definition().fixed=!1)}return(t=t.name.definition()).eliminated++,t.replaced--,e},[]);return 0==t.length?null:x(this,t)}),e(De,function(e,n){return 0==e.definitions.length?v(q,e):e}),e(xe,function(e,n){return e}),e(ke,function(e,n){var t=e.expression,i=t,r=D(e.args,function(e){return!(e instanceof G)});n.option("reduce_vars")&&i instanceof hn&&(i=i.fixed_value());var a=i instanceof X;if(n.option("unused")&&r&&a&&!i.uses_arguments&&!i.pinned()){for(var s=0,u=0,c=0,f=e.args.length;c=i.argnames.length;if(l||i.argnames[c].__unused){if(y=e.args[c].drop_side_effect_free(n))e.args[s++]=y;else if(!l){e.args[s++]=v(En,e.args[c],{value:0});continue}}else e.args[s++]=e.args[c];u=s}e.args.length=u}if(n.option("unsafe"))if(tn(t))switch(t.name){case"Array":if(1!=e.args.length)return v(He,e,{elements:e.args}).optimize(n);break;case"Object":if(0==e.args.length)return v(Re,e,{properties:[]});break;case"String":if(0==e.args.length)return v(bn,e,{value:""});if(e.args.length<=1)return v(ze,e,{left:e.args[0],operator:"+",right:v(bn,e,{value:""})}).optimize(n);break;case"Number":if(0==e.args.length)return v(En,e,{value:0});if(1==e.args.length)return v(Me,e,{expression:e.args[0],operator:"+"}).optimize(n);case"Boolean":if(0==e.args.length)return v(Tn,e);if(1==e.args.length)return v(Me,e,{expression:v(Me,e,{expression:e.args[0],operator:"!"}),operator:"!"}).optimize(n);break;case"RegExp":var p=[];if(D(e.args,function(e){var t=e.evaluate(n);return p.unshift(t),e!==t}))try{return Rn(n,e,v(wn,e,{value:RegExp.apply(RegExp,p)}))}catch(t){n.warn("Error converting {expr} [{file}:{line},{col}]",{expr:e.print_to_string(),file:e.start.file,line:e.start.line,col:e.start.col})}}else if(t instanceof Te)switch(t.property){case"toString":if(0==e.args.length&&!t.expression.may_throw_on_access(n))return v(ze,e,{left:v(bn,e,{value:""}),operator:"+",right:t.expression}).optimize(n);break;case"join":if(t.expression instanceof He)e:{var d;if(!(e.args.length>0&&(d=e.args[0].evaluate(n))===e.args[0])){var h,m=[],_=[];for(c=0,f=t.expression.elements.length;c0&&(m.push(v(bn,e,{value:_.join(d)})),_.length=0),m.push(g))}return _.length>0&&m.push(v(bn,e,{value:_.join(d)})),0==m.length?v(bn,e,{value:""}):1==m.length?m[0].is_string(n)?m[0]:v(ze,m[0],{operator:"+",left:v(bn,e,{value:""}),right:m[0]}):""==d?(h=m[0].is_string(n)||m[1].is_string(n)?m.shift():v(bn,e,{value:""}),m.reduce(function(e,n){return v(ze,n,{operator:"+",left:e,right:n})},h).optimize(n)):((y=e.clone()).expression=y.expression.clone(),y.expression.expression=y.expression.expression.clone(),y.expression.expression.elements=m,Rn(n,e,y));var y}}break;case"charAt":if(t.expression.is_string(n)){var b=e.args[0],E=b?b.evaluate(n):0;if(E!==b)return v(Oe,t,{expression:t.expression,property:A(0|E,b||t)}).optimize(n)}break;case"apply":if(2==e.args.length&&e.args[1]instanceof He)return(N=e.args[1].elements.slice()).unshift(e.args[0]),v(ke,e,{expression:v(Te,t,{expression:t.expression,property:"call"}),args:N}).optimize(n);break;case"call":var w=t.expression;if(w instanceof hn&&(w=w.fixed_value()),w instanceof X&&!w.contains_this())return(e.args.length?x(this,[e.args[0],v(ke,e,{expression:t.expression,args:e.args.slice(1)})]):v(ke,e,{expression:t.expression,args:[]})).optimize(n)}if(n.option("unsafe_Function")&&tn(t)&&"Function"==t.name){if(0==e.args.length)return v(Z,e,{argnames:[],body:[]}).optimize(n);if(D(e.args,function(e){return e instanceof bn}))try{var k=gt(O="n(function("+e.args.slice(0,-1).map(function(e){return e.value}).join(",")+"){"+e.args[e.args.length-1].value+"})"),C={ie8:n.option("ie8")};k.figure_out_scope(C);var B,T=new Ft(n.options);(k=k.transform(T)).figure_out_scope(C),Et.reset(),k.compute_char_frequency(C),k.mangle_names(C),k.walk(new qn(function(e){return!!B||(o(e)?(B=e,!0):void 0)})),B.body instanceof F&&(B.body=[v(ae,B.body,{value:B.body})]);var O=At();return M.prototype._codegen.call(B,B,O),e.args=[v(bn,e,{value:B.argnames.map(function(e){return e.print_to_string()}).join(",")}),v(bn,e.args[e.args.length-1],{value:O.get().replace(/^\{|\}$/g,"")})],e}catch(t){if(!(t instanceof ut))throw t;n.warn("Error parsing code passed to new Function [{file}:{line},{col}]",e.args[e.args.length-1].start),n.warn(t.toString())}}var $=a&&i.body;$ instanceof F?$=v(ae,$,{value:$}):$&&($=$[0]);var q=a&&!i.is_generator&&!i.async,z=n.option("inline")&&!e.is_expr_pure(n);if(z&&$ instanceof ae&&q&&(!(H=$.value)||H.is_constant_expression())){H=H?H.clone(!0):v(kn,e);var N=e.args.concat(H);return x(e,N).optimize(n)}if(q){var I,H,R,P,U=-1;if(z&&r&&!i.uses_arguments&&!i.pinned()&&!(n.parent()instanceof We)&&!(i.name&&i instanceof Z)&&(!(n.find_parent(X)instanceof K)||0==i.argnames.length&&(i.body instanceof F||1==i.body.length))&&(H=function(e){var t=i.body instanceof F?[i.body]:i.body,r=t.length;if(n.option("inline")<3)return 1==r&&V(e);e=null;for(var o=0;o=0;){var s=o.definitions[a].name;if(s instanceof ee||e[s.name]||dn(s.name)||R.var_names()[s.name])return!1;P&&P.push(s.definition())}}}return!0}(e,r>=3&&t)||!function(e,n){for(var t=0,r=i.argnames.length;t=2&&t)||P&&0!=P.length&&et(i,P))}())return i._squeezed=!0,x(e,function(){var t=[],r=[];(function(n,t){for(var r=i.argnames.length,o=e.args.length;--o>=r;)t.push(e.args[o]);for(o=r;--o>=0;){var a=i.argnames[o],s=e.args[o];if(a.__unused||!a.name||R.var_names()[a.name])s&&t.push(s);else{var u=v(Qe,a,a);a.definition().orig.push(u),!s&&P&&(s=v(kn,e)),J(n,t,u,s)}}n.reverse(),t.reverse()})(t,r),function(e,n){for(var t=n.length,r=0,o=i.body.length;r0&&zn(r[o],n);)o--;o0)return(t=this.clone()).right=x(this.right,n.slice(o)),(n=n.slice(0,o)).push(t),x(this,n).optimize(e)}}return this});var Zn=g("== === != !== * & | ^");function Kn(e,n){for(var t,i=0;t=e.parent(i);i++)if(t instanceof X){var r=t.name;if(r&&r.definition()===n)break}return t}function Qn(e,n){return e instanceof hn||e.TYPE===n.TYPE}function et(e,n){var i=!1,r=new qn(function(e){return!!i||(e instanceof hn&&t(e.definition(),n)?i=!0:void 0)}),o=new qn(function(n){if(i)return!0;if(n instanceof Y&&n!==e){var t=o.parent();if(t instanceof ke&&t.expression===n)return;return n.walk(r),!0}});return e.walk(o),i}e(ze,function(e,n){function t(){return e.left.is_constant()||e.right.is_constant()||!e.left.has_side_effects(n)&&!e.right.has_side_effects(n)}function i(n){if(t()){n&&(e.operator=n);var i=e.left;e.left=e.right,e.right=i}}if(Zn(e.operator)&&e.right.is_constant()&&!e.left.is_constant()&&(e.left instanceof ze&&_t[e.left.operator]>=_t[e.operator]||i()),e=e.lift_sequences(n),n.option("comparisons"))switch(e.operator){case"===":case"!==":var r=!0;(e.left.is_string(n)&&e.right.is_string(n)||e.left.is_number(n)&&e.right.is_number(n)||e.left.is_boolean()&&e.right.is_boolean()||e.left.equivalent_to(e.right))&&(e.operator=e.operator.substr(0,2));case"==":case"!=":if(!r&&zn(e.left,n))e.left=v(An,e.left);else if(n.option("typeofs")&&e.left instanceof bn&&"undefined"==e.left.value&&e.right instanceof Me&&"typeof"==e.right.operator){var o=e.right.expression;(o instanceof hn?!o.is_declared(n):o instanceof Se&&n.option("ie8"))||(e.right=o,e.left=v(kn,e.left).optimize(n),2==e.operator.length&&(e.operator+="="))}else if(e.left instanceof hn&&e.right instanceof hn&&e.left.definition()===e.right.definition()&&((u=e.left.fixed_value())instanceof He||u instanceof X||u instanceof Re||u instanceof We))return v("="==e.operator[0]?On:Tn,e);break;case"&&":case"||":var a=e.left;if(a.operator==e.operator&&(a=a.right),a instanceof ze&&a.operator==("&&"==e.operator?"!==":"===")&&e.right instanceof ze&&a.operator==e.right.operator&&(zn(a.left,n)&&e.right.left instanceof An||a.left instanceof An&&zn(e.right.left,n))&&!a.right.has_side_effects(n)&&a.right.equivalent_to(e.right.right)){var s=v(ze,e,{operator:a.operator.slice(0,-1),left:v(An,e),right:a.right});return a!==e.left&&(s=v(ze,e,{operator:e.operator,left:e.left.left,right:s})),s}}var u;if("+"==e.operator&&n.in_boolean_context()){var c=e.left.evaluate(n),f=e.right.evaluate(n);if(c&&"string"==typeof c)return n.warn("+ in boolean context always true [{file}:{line},{col}]",e.start),x(e,[e.right,v(On,e)]).optimize(n);if(f&&"string"==typeof f)return n.warn("+ in boolean context always true [{file}:{line},{col}]",e.start),x(e,[e.left,v(On,e)]).optimize(n)}if(n.option("comparisons")&&e.is_boolean()){if(!(n.parent()instanceof ze)||n.parent()instanceof je){var l=v(Me,e,{operator:"!",expression:e.negate(n,E(n))});e=Rn(n,e,l)}if(n.option("unsafe_comps"))switch(e.operator){case"<":i(">");break;case"<=":i(">=")}}if("+"==e.operator){if(e.right instanceof bn&&""==e.right.getValue()&&e.left.is_string(n))return e.left;if(e.left instanceof bn&&""==e.left.getValue()&&e.right.is_string(n))return e.right;if(e.left instanceof ze&&"+"==e.left.operator&&e.left.left instanceof bn&&""==e.left.left.getValue()&&e.right.is_string(n))return e.left=e.left.right,e.transform(n)}if(n.option("evaluate")){switch(e.operator){case"&&":if(!(c=!!e.left.truthy||!e.left.falsy&&e.left.evaluate(n)))return n.warn("Condition left of && always false [{file}:{line},{col}]",e.start),O(n.parent(),n.self(),e.left).optimize(n);if(!(c instanceof F))return n.warn("Condition left of && always true [{file}:{line},{col}]",e.start),x(e,[e.left,e.right]).optimize(n);if(f=e.right.evaluate(n)){if(!(f instanceof F)){if("&&"==(p=n.parent()).operator&&p.left===n.self()||n.in_boolean_context())return n.warn("Dropping side-effect-free && [{file}:{line},{col}]",e.start),e.left.optimize(n)}}else{if(n.in_boolean_context())return n.warn("Boolean && always false [{file}:{line},{col}]",e.start),x(e,[e.left,v(Tn,e)]).optimize(n);e.falsy=!0}if("||"==e.left.operator)if(!(d=e.left.right.evaluate(n)))return v(Ne,e,{condition:e.left.left,consequent:e.right,alternative:e.left.right}).optimize(n);break;case"||":var p,d;if(!(c=!!e.left.truthy||!e.left.falsy&&e.left.evaluate(n)))return n.warn("Condition left of || always false [{file}:{line},{col}]",e.start),x(e,[e.left,e.right]).optimize(n);if(!(c instanceof F))return n.warn("Condition left of || always true [{file}:{line},{col}]",e.start),O(n.parent(),n.self(),e.left).optimize(n);if(f=e.right.evaluate(n)){if(!(f instanceof F)){if(n.in_boolean_context())return n.warn("Boolean || always true [{file}:{line},{col}]",e.start),x(e,[e.left,v(On,e)]).optimize(n);e.truthy=!0}}else if("||"==(p=n.parent()).operator&&p.left===n.self()||n.in_boolean_context())return n.warn("Dropping side-effect-free || [{file}:{line},{col}]",e.start),e.left.optimize(n);if("&&"==e.left.operator)if((d=e.left.right.evaluate(n))&&!(d instanceof F))return v(Ne,e,{condition:e.left.left,consequent:e.left.right,alternative:e.right}).optimize(n)}var h=!0;switch(e.operator){case"+":if(e.left instanceof yn&&e.right instanceof ze&&"+"==e.right.operator&&e.right.left instanceof yn&&e.right.is_string(n)&&(e=v(ze,e,{operator:"+",left:v(bn,e.left,{value:""+e.left.getValue()+e.right.left.getValue(),start:e.left.start,end:e.right.left.end}),right:e.right.right})),e.right instanceof yn&&e.left instanceof ze&&"+"==e.left.operator&&e.left.right instanceof yn&&e.left.is_string(n)&&(e=v(ze,e,{operator:"+",left:e.left.left,right:v(bn,e.right,{value:""+e.left.right.getValue()+e.right.getValue(),start:e.left.right.start,end:e.right.end})})),e.left instanceof ze&&"+"==e.left.operator&&e.left.is_string(n)&&e.left.right instanceof yn&&e.right instanceof ze&&"+"==e.right.operator&&e.right.left instanceof yn&&e.right.is_string(n)&&(e=v(ze,e,{operator:"+",left:v(ze,e.left,{operator:"+",left:e.left.left,right:v(bn,e.left.right,{value:""+e.left.right.getValue()+e.right.left.getValue(),start:e.left.right.start,end:e.right.left.end})}),right:e.right.right})),e.right instanceof Me&&"-"==e.right.operator&&e.left.is_number(n)){e=v(ze,e,{operator:"-",left:e.left,right:e.right.expression});break}if(e.left instanceof Me&&"-"==e.left.operator&&t()&&e.right.is_number(n)){e=v(ze,e,{operator:"-",left:e.right,right:e.left.expression});break}case"*":h=n.option("unsafe_math");case"&":case"|":case"^":if(e.left.is_number(n)&&e.right.is_number(n)&&t()&&!(e.left instanceof ze&&e.left.operator!=e.operator&&_t[e.left.operator]>=_t[e.operator])){var m=v(ze,e,{operator:e.operator,left:e.right,right:e.left});e=e.right instanceof yn&&!(e.left instanceof yn)?Rn(n,m,e):Rn(n,e,m)}h&&e.is_number(n)&&(e.right instanceof ze&&e.right.operator==e.operator&&(e=v(ze,e,{operator:e.operator,left:v(ze,e.left,{operator:e.operator,left:e.left,right:e.right.left,start:e.left.start,end:e.right.left.end}),right:e.right.right})),e.right instanceof yn&&e.left instanceof ze&&e.left.operator==e.operator&&(e.left.left instanceof yn?e=v(ze,e,{operator:e.operator,left:v(ze,e.left,{operator:e.operator,left:e.left.left,right:e.right,start:e.left.left.start,end:e.right.end}),right:e.left.right}):e.left.right instanceof yn&&(e=v(ze,e,{operator:e.operator,left:v(ze,e.left,{operator:e.operator,left:e.left.right,right:e.right,start:e.left.right.start,end:e.right.end}),right:e.left.left}))),e.left instanceof ze&&e.left.operator==e.operator&&e.left.right instanceof yn&&e.right instanceof ze&&e.right.operator==e.operator&&e.right.left instanceof yn&&(e=v(ze,e,{operator:e.operator,left:v(ze,e.left,{operator:e.operator,left:v(ze,e.left.left,{operator:e.operator,left:e.left.right,right:e.right.left,start:e.left.right.start,end:e.right.left.end}),right:e.left.left}),right:e.right.right})))}}if(e.right instanceof ze&&e.right.operator==e.operator&&(Nn(e.operator)||"+"==e.operator&&(e.right.left.is_string(n)||e.left.is_string(n)&&e.right.right.is_string(n))))return e.left=v(ze,e.left,{operator:e.operator,left:e.left,right:e.right.left}),e.right=e.right.right,e.transform(n);var _=e.evaluate(n);return _!==e?(_=A(_,e).optimize(n),Rn(n,_,e)):e}),e(mn,function(e,n){return e}),e(hn,function(e,n){if(!n.option("ie8")&&tn(e)&&(!e.scope.uses_with||!n.find_parent(V)))switch(e.name){case"undefined":return v(kn,e).optimize(n);case"NaN":return v(Fn,e).optimize(n);case"Infinity":return v(Bn,e).optimize(n)}var t=n.parent();if(n.option("reduce_vars")&&In(e,t)!==e){var i=e.definition(),r=e.fixed_value(),a=i.single_use&&!(t instanceof ke&&t.is_expr_pure(n));if(a&&(r instanceof X||r instanceof We))if(i.scope!==e.scope&&(!n.option("reduce_funcs")&&r instanceof X||1==i.escaped||r.inlined))a=!1;else if(Kn(n,i))a=!1;else if((i.scope!==e.scope||i.orig[0]instanceof rn)&&"f"==(a=r.is_constant_expression(e.scope))){var s=e.scope;do{(s instanceof Q||o(s))&&(s.inlined=!0)}while(s=s.parent_scope)}if(a&&r){var u;if(r instanceof Ge&&(r=v(Xe,r,r)),r instanceof Q&&(r._squeezed=!0,r=v(Z,r,r)),i.recursive_refs>0&&r.name instanceof on){var c=(u=r.clone(!0)).name.definition(),f=u.variables.get(u.name.name),l=f&&f.orig[0];l instanceof sn||((l=v(sn,u.name,u.name)).scope=u,u.name=l,f=u.def_function(l)),u.walk(new qn(function(e){e instanceof hn&&e.definition()===c&&(e.thedef=f,f.references.push(e))}))}else(u=r.optimize(n))===r&&(u=r.clone(!0));return u}if(r&&void 0===i.should_replace){var p;if(r instanceof gn)i.orig[0]instanceof rn||!D(i.references,function(e){return i.scope===e.scope})||(p=r);else{var d=r.evaluate(n);d===r||!n.option("unsafe_regexp")&&d instanceof RegExp||(p=A(d,r))}if(p){var h,m=p.optimize(n).print_to_string().length;!function(e){var n;return e.walk(new qn(function(e){if(e instanceof hn&&(n=!0),n)return!0})),n}(r)?(m=Math.min(m,r.print_to_string().length),h=function(){var e=Hn(p.optimize(n),r);return e===p||e===r?e.clone(!0):e}):h=function(){var e=p.optimize(n);return e===p?e.clone(!0):e};var _=i.name.length,g=0;n.option("unused")&&!n.exposed(i)&&(g=(_+2+m)/(i.references.length-i.assignments)),i.should_replace=m<=_+g&&h}else i.should_replace=!1}if(i.should_replace)return i.should_replace()}return e}),e(kn,function(e,n){if(n.option("unsafe_undefined")){var t=h(n,"undefined");if(t){var i=v(hn,e,{name:"undefined",scope:t.scope,thedef:t});return i.is_undefined=!0,i}}var r=In(n.self(),n.parent());return r&&Qn(r,e)?e:v(Me,e,{operator:"void",expression:v(En,e,{value:0})})}),e(Bn,function(e,n){var t=In(n.self(),n.parent());return t&&Qn(t,e)?e:!n.option("keep_infinity")||t&&!Qn(t,e)||h(n,"Infinity")?v(ze,e,{operator:"/",left:v(En,e,{value:1}),right:v(En,e,{value:0})}):e}),e(Fn,function(e,n){var t=In(n.self(),n.parent());return t&&!Qn(t,e)||h(n,"NaN")?v(ze,e,{operator:"/",left:v(En,e,{value:0}),right:v(En,e,{value:0})}):e});var nt=["+","-","/","*","%",">>","<<",">>>","|","^","&"],tt=["*","|","^","&"];function it(e,n){return e instanceof hn&&(e=e.fixed_value()),!!e&&(!(e instanceof X||e instanceof We)||n.parent()instanceof Ce||!e.contains_this())}function rt(e,n){return n.in_boolean_context()?Rn(n,e,x(e,[e,v(On,e)]).optimize(n)):e}function ot(e,n){if(!n.option("computed_props"))return e;if(!(e.key instanceof yn))return e;if(e.key instanceof bn||e.key instanceof En){if("constructor"==e.key.value&&n.parent()instanceof We)return e;e.key=e instanceof Ue?e.key.value:v(an,e.key,{name:e.key.value})}return e}e(je,function(e,n){var i;if(n.option("dead_code")&&e.left instanceof hn&&(i=e.left.definition()).scope===n.find_parent(X)){var r,o=0,a=e;do{if(r=a,(a=n.parent(o++))instanceof oe){if(s(o,a))break;if(et(i.scope,[i]))break;return"="==e.operator?e.right:(i.fixed=!1,v(ze,e,{operator:e.operator.slice(0,-1),left:e.left,right:e.right}).optimize(n))}}while(a instanceof ze&&a.right===r||a instanceof Be&&a.tail_node()===r)}return"="==(e=e.lift_sequences(n)).operator&&e.left instanceof hn&&e.right instanceof ze&&(e.right.left instanceof hn&&e.right.left.name==e.left.name&&t(e.right.operator,nt)?(e.operator=e.right.operator+"=",e.right=e.right.right):e.right.right instanceof hn&&e.right.right.name==e.left.name&&t(e.right.operator,tt)&&!e.right.left.has_side_effects(n)&&(e.operator=e.right.operator+"=",e.right=e.right.left)),e;function s(t,i){var r=e.right;e.right=v(An,r);var o=i.may_throw(n);e.right=r;for(var a,s=e.left.definition().scope;(a=n.parent(t++))!==s;)if(a instanceof _e){if(a.bfinally)return!0;if(o&&a.bcatch)return!0}}}),e(Ie,function(e,n){if(!n.option("evaluate"))return e;var t=e.right.evaluate(n);return void 0===t?e=e.left:t!==e.right&&(t=A(t,e.right),e.right=Hn(t,e.right)),e}),e(Ne,function(e,n){if(!n.option("conditionals"))return e;if(e.condition instanceof Be){var t=e.condition.expressions.slice();return e.condition=t.pop(),t.push(e),x(e,t)}var i=e.condition.evaluate(n);if(i!==e.condition)return i?(n.warn("Condition always true [{file}:{line},{col}]",e.start),O(n.parent(),n.self(),e.consequent)):(n.warn("Condition always false [{file}:{line},{col}]",e.start),O(n.parent(),n.self(),e.alternative));var r=i.negate(n,E(n));Rn(n,i,r)===r&&(e=v(Ne,e,{condition:r,consequent:e.alternative,alternative:e.consequent}));var o,a=e.condition,s=e.consequent,u=e.alternative;if(a instanceof hn&&s instanceof hn&&a.definition()===s.definition())return v(ze,e,{operator:"||",left:a,right:u});if(s instanceof je&&u instanceof je&&s.operator==u.operator&&s.left.equivalent_to(u.left)&&(!e.condition.has_side_effects(n)||"="==s.operator&&!s.left.has_side_effects(n)))return v(je,e,{operator:s.operator,left:s.left,right:v(Ne,e,{condition:e.condition,consequent:s.right,alternative:u.right})});if(s instanceof ke&&u.TYPE===s.TYPE&&s.args.length>0&&s.args.length==u.args.length&&s.expression.equivalent_to(u.expression)&&!e.condition.has_side_effects(n)&&!s.expression.has_side_effects(n)&&"number"==typeof(o=function(){for(var e=s.args,n=u.args,t=0,i=e.length;t1)&&(p=null)}else if(!p&&!n.option("keep_fargs")&&s=t.argnames.length;)p=v(rn,t,{name:t.make_var_name("argument_"+t.argnames.length),scope:t}),t.argnames.push(p),t.enclosed.push(t.def_variable(p));if(p){var h=v(hn,e,p);return h.reference({}),delete p.__unused,h}}if(In(e,n.parent()))return e;if(o!==r){var m=e.flatten_object(a,n);m&&(i=e.expression=m.expression,r=e.property=m.property)}if(n.option("properties")&&n.option("side_effects")&&r instanceof En&&i instanceof He){s=r.getValue();var _=i.elements,g=_[s];e:if(it(g,n)){for(var D=!0,y=[],b=_.length;--b>s;){(E=_[b].drop_side_effect_free(n))&&(y.unshift(E),D&&E.has_side_effects(n)&&(D=!1))}if(g instanceof G)break e;for(g=g instanceof Cn?v(kn,g):g,D||y.unshift(g);--b>=0;){var E;if((E=_[b])instanceof G)break e;(E=E.drop_side_effect_free(n))?y.unshift(E):s--}return D?(y.push(g),x(e,y).optimize(n)):v(Oe,e,{expression:v(He,i,{elements:y}),property:v(En,r,{value:s})})}}var w=e.evaluate(n);return w!==e?Rn(n,w=A(w,e).optimize(n),e):e}),X.DEFMETHOD("contains_this",function(){var e,n=this;return n.walk(new qn(function(t){return!!e||(t instanceof gn?e=!0:t!==n&&t instanceof Y&&!(t instanceof K)||void 0)})),e}),Se.DEFMETHOD("flatten_object",function(e,n){if(n.option("properties")){var t=n.option("unsafe_arrows")&&n.option("ecma")>=6,i=this.expression;if(i instanceof Re)for(var r=i.properties,o=r.length;--o>=0;){var a=r[o];if(""+(a instanceof Ye?a.key.name:a.key)==e){if(!D(r,function(e){return e instanceof Ue||t&&e instanceof Ye&&!e.is_generator}))break;if(!it(a.value,n))break;return v(Oe,this,{expression:v(He,i,{elements:r.map(function(e){var n=e.value;n instanceof J&&(n=v(Z,n,n));var t=e.key;return t instanceof F&&!(t instanceof an)?x(e,[t,n]):n})}),property:v(En,this,{value:o})})}}}}),e(Te,function(e,n){if("arguments"!=e.property&&"caller"!=e.property||n.warn("Function.protoype.{prop} not supported [{file}:{line},{col}]",{prop:e.property,file:e.start.file,line:e.start.line,col:e.start.col}),In(e,n.parent()))return e;if(n.option("unsafe_proto")&&e.expression instanceof Te&&"prototype"==e.expression.property){var t=e.expression.expression;if(tn(t))switch(t.name){case"Array":e.expression=v(He,e.expression,{elements:[]});break;case"Function":e.expression=v(Z,e.expression,{argnames:[],body:[]});break;case"Number":e.expression=v(En,e.expression,{value:0});break;case"Object":e.expression=v(Re,e.expression,{properties:[]});break;case"RegExp":e.expression=v(wn,e.expression,{value:/t/});break;case"String":e.expression=v(bn,e.expression,{value:""})}}var i=e.flatten_object(e.property,n);if(i)return i.optimize(n);var r=e.evaluate(n);return r!==e?Rn(n,r=A(r,e).optimize(n),e):e}),e(He,rt),e(Re,rt),e(wn,rt),e(ae,function(e,n){return e.value&&zn(e.value,n)&&(e.value=null),e}),e(K,function(e,n){if(e.body instanceof F||(e=Xn(e,n)),n.option("arrows")&&1==e.body.length&&e.body[0]instanceof ae){var t=e.body[0].value;e.body=t||[]}return e}),e(Z,function(e,n){if(e=Xn(e,n),n.option("unsafe_arrows")&&n.option("ecma")>=6&&!e.name&&!e.is_generator&&!e.uses_arguments&&!e.pinned()){var t=!1;if(e.walk(new qn(function(e){return!!t||(e instanceof gn?(t=!0,!0):void 0)})),!t)return v(K,e,e).optimize(n)}return e}),e(We,function(e,n){return e}),e(Mn,function(e,n){return e.expression&&!e.is_star&&zn(e.expression,n)&&(e.expression=null),e}),e(te,function(e,n){if(!n.option("evaluate")||n.parent()instanceof ne)return e;for(var t=[],i=0;i=6&&(!(t instanceof RegExp)||t.test(e.key+""))){var i=e.key,r=e.value;if((r instanceof K&&Array.isArray(r.body)&&!r.contains_this()||r instanceof Z)&&!r.name)return v(Ye,e,{async:r.async,is_generator:r.is_generator,key:i instanceof F?i:v(an,e,{name:i}),value:v(J,r,r),quote:e.quote})}return e}),e(ee,function(e,n){if(1==n.option("pure_getters")&&n.option("unused")&&!e.is_array&&Array.isArray(e.names)&&!function(e){for(var n=[/^VarDef$/,/^(Const|Let|Var)$/,/^Export$/],t=0,i=0,r=n.length;t|%)([a-z0-9$_]+)/i.exec(e);if(!n)throw new Error("Can't understand property map: "+e);var t=n[1],i=n[2],r=n[3];switch(s+=",\n"+r+": ",f+=",\n"+t+": ",i){case"@":s+="M."+t+".map(from_moz)",f+="M."+r+".map(to_moz)";break;case">":s+="from_moz(M."+t+")",f+="to_moz(M."+r+")";break;case"=":s+="M."+t,f+="M."+r;break;case"%":s+="from_moz(M."+t+").body",f+="to_moz_block(M)";break;default:throw new Error("Can't understand operator in propmap: "+e)}}),s+="\n})\n}",f+="\n}\n}",s=new Function("U2","my_start_token","my_end_token","from_moz","return("+s+")")(e,r,o,u),f=new Function("to_moz","to_moz_block","to_moz_scope","return("+f+")")(l,d,h),t[n]=s,c(i,f)}t.UpdateExpression=t.UnaryExpression=function(e){return new(("prefix"in e?e.prefix:"UnaryExpression"==e.type)?Me:qe)({start:r(e),end:o(e),operator:e.operator,expression:u(e.argument)})},t.ClassDeclaration=t.ClassExpression=function(e){return new("ClassDeclaration"===e.type?Ge:Xe)({start:r(e),end:o(e),name:u(e.id),extends:u(e.superClass),properties:e.body.body.map(u)})},a("EmptyStatement",q),a("BlockStatement",M,"body@body"),a("IfStatement",le,"test>condition, consequent>body, alternate>alternative"),a("LabeledStatement",N,"label>label, body>body"),a("BreakStatement",ce,"label>label"),a("ContinueStatement",fe,"label>label"),a("WithStatement",V,"object>expression, body>body"),a("SwitchStatement",pe,"discriminant>expression, cases@body"),a("ReturnStatement",ae,"argument>value"),a("ThrowStatement",se,"argument>value"),a("WhileStatement",R,"test>condition, body>body"),a("DoWhileStatement",H,"test>condition, body>body"),a("ForStatement",P,"init>init, test>condition, update>step, body>body"),a("ForInStatement",U,"left>init, right>object, body>body"),a("ForOfStatement",L,"left>init, right>object, body>body, await=await"),a("AwaitExpression",$n,"argument>expression"),a("YieldExpression",Mn,"argument>expression, delegate=is_star"),a("DebuggerStatement",C),a("VariableDeclarator",Fe,"id>name, init>value"),a("CatchClause",ve,"param>argname, body%body"),a("ThisExpression",gn),a("Super",Dn),a("BinaryExpression",ze,"operator=operator, left>left, right>right"),a("LogicalExpression",ze,"operator=operator, left>left, right>right"),a("AssignmentExpression",je,"operator=operator, left>left, right>right"),a("ConditionalExpression",Ne,"test>condition, consequent>consequent, alternate>alternative"),a("NewExpression",Ce,"callee>expression, arguments@args"),a("CallExpression",ke,"callee>expression, arguments@args"),c(W,function(e){return h("Program",e)}),c(G,function(e,n){return{type:p()?"RestElement":"SpreadElement",argument:l(e.expression)}}),c(ne,function(e){return{type:"TaggedTemplateExpression",tag:l(e.prefix),quasi:l(e.template_string)}}),c(te,function(e){for(var n=[],t=[],i=0;i1)throw new Error("inline source map only works with singular input");n.sourceMap.content=(t=e[f],i=void 0,(i=/\n\/\/# sourceMappingURL=data:application\/json(;.*?)?;base64,(.*)/.exec(t))?St(i[2]):(F.warn("inline source map not found"),null))}u=n.parse.toplevel}o&&kt(u,o),n.wrap&&(u=u.wrap_commonjs(n.wrap)),n.enclose&&(u=u.wrap_enclose(n.enclose)),s&&(s.rename=Date.now()),s&&(s.compress=Date.now()),n.compress&&(u=new Ft(n.compress).compress(u)),s&&(s.scope=Date.now()),n.mangle&&u.figure_out_scope(n.mangle),s&&(s.mangle=Date.now()),n.mangle&&(Et.reset(),u.compute_char_frequency(n.mangle),u.mangle_names(n.mangle)),s&&(s.properties=Date.now()),n.mangle&&n.mangle.properties&&(u=Bt(u,n.mangle.properties)),s&&(s.output=Date.now());var l={};if(n.output.ast&&(l.ast=u),!b(n.output,"code")||n.output.code){if(n.sourceMap&&("string"==typeof n.sourceMap.content&&(n.sourceMap.content=JSON.parse(n.sourceMap.content)),n.output.source_map=function(e){e=a(e,{file:null,root:null,orig:null,orig_line_diff:0,dest_line_diff:0});var n=new(require("source-map").SourceMapGenerator)({file:e.file,sourceRoot:e.root}),t=e.orig&&new(require("source-map").SourceMapConsumer)(e.orig);return t&&Array.isArray(e.orig.sources)&&t._sources.toArray().forEach(function(e){var i=t.sourceContentFor(e,!0);i&&n.setSourceContent(e,i)}),{add:function(i,r,o,a,s,u){if(t){var c=t.originalPositionFor({line:a,column:s});if(null===c.source)return;i=c.source,a=c.line,s=c.column,u=c.name||u}n.addMapping({generated:{line:r+e.dest_line_diff,column:o},original:{line:a+e.orig_line_diff,column:s},source:i,name:u})},get:function(){return n},toString:function(){return JSON.stringify(n.toJSON())}}}({file:n.sourceMap.filename,orig:n.sourceMap.content,root:n.sourceMap.root}),n.sourceMap.includeSources)){if(e instanceof W)throw new Error("original source content unavailable");for(var f in e)b(e,f)&&n.output.source_map.get().setSourceContent(f,e[f])}delete n.output.ast,delete n.output.code;var p=At(n.output);u.print(p),l.code=p.get(),n.sourceMap&&(l.map=n.output.source_map.toString(),"inline"==n.sourceMap.url?l.code+="\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,"+Tt(l.map):n.sourceMap.url&&(l.code+="\n//# sourceMappingURL="+n.sourceMap.url))}return n.nameCache&&n.mangle&&(n.mangle.cache&&(n.nameCache.vars=Mt(n.mangle.cache)),n.mangle.properties&&n.mangle.properties.cache&&(n.nameCache.props=Mt(n.mangle.properties.cache))),s&&(s.end=Date.now(),l.timings={parse:.001*(s.rename-s.parse),rename:.001*(s.compress-s.rename),compress:.001*(s.scope-s.compress),scope:.001*(s.mangle-s.scope),mangle:.001*(s.properties-s.mangle),properties:.001*(s.output-s.properties),output:.001*(s.end-s.output),total:.001*(s.end-s.start)}),c.length&&(l.warnings=c),l}catch(e){return{error:e}}finally{F.warn_function=r}},e.parse=gt,e.push_uniq=h,e.OutputStream=At,e.TreeTransformer=Dt,e.TreeWalker=qn,e.string_template=m,e.Compressor=Ft,e.defaults=a,e.base54=Et,e.mangle_properties=Bt,e.reserve_quoted_keys=kt,e.to_ascii=St}("undefined"!=typeof module?module.exports:Terser={}); //# sourceMappingURL=bundle.js.map