Version 3.5.11
authoralexlamsl <alexlamsl@gmail.com>
Wed, 14 Mar 2018 18:48:12 +0000 (02:48 +0800)
committeralexlamsl <alexlamsl@gmail.com>
Wed, 14 Mar 2018 18:48:12 +0000 (02:48 +0800)
README.md
dist/htmlminifier.js
dist/htmlminifier.min.js
index.html
package.json

index 77ef6ce..2418d8d 100644 (file)
--- a/README.md
+++ b/README.md
@@ -22,18 +22,18 @@ How does HTMLMinifier compare to other solutions — [HTML Minifier from Will Pe
 
 | Site                                                                         | Original size *(KB)* | HTMLMinifier | minimize | Will Peavy | htmlcompressor.com |
 | ---------------------------------------------------------------------------- |:--------------------:| ------------:| --------:| ----------:| ------------------:|
-| [Google](https://www.google.com/)                                            | 45                   | **42**       | 46       | 47         | 46                 |
-| [Twitter](https://twitter.com/)                                              | 118                  | **87**       | 110      | 127        | 111                |
-| [HTMLMinifier](https://github.com/kangax/html-minifier)                      | 136                  | **105**      | 113      | 118        | 113                |
-| [New York Times](https://www.nytimes.com/)                                   | 226                  | **157**      | 177      | 173        | 161                |
-| [Stack Overflow](https://stackoverflow.com/)                                 | 250                  | **196**      | 205      | 214        | 203                |
-| [BBC](https://www.bbc.co.uk/)                                                | 262                  | **211**      | 254      | 257        | 242                |
+| [Google](https://www.google.com/)                                            | 46                   | **42**       | 46       | 47         | 46                 |
+| [HTMLMinifier](https://github.com/kangax/html-minifier)                      | 137                  | **107**      | 115      | 120        | 115                |
+| [Twitter](https://twitter.com/)                                              | 141                  | **103**      | 133      | 155        | 133                |
+| [New York Times](https://www.nytimes.com/)                                   | 234                  | **162**      | 183      | 179        | 167                |
+| [Stack Overflow](https://stackoverflow.com/)                                 | 254                  | **199**      | 209      | 218        | 206                |
+| [BBC](https://www.bbc.co.uk/)                                                | 271                  | **220**      | 264      | 267        | 252                |
 | [Bootstrap CSS](https://getbootstrap.com/docs/3.3/css/)                      | 272                  | **260**      | 269      | 229        | 269                |
-| [Amazon](https://www.amazon.co.uk/)                                          | 389                  | **334**      | 375      | 387        | n/a                |
-| [Wikipedia](https://en.wikipedia.org/wiki/President_of_the_United_States)    | 475                  | **444**      | 460      | 475        | 459                |
+| [Amazon](https://www.amazon.co.uk/)                                          | 374                  | **320**      | 360      | 372        | n/a                |
+| [Wikipedia](https://en.wikipedia.org/wiki/President_of_the_United_States)    | 473                  | **441**      | 457      | 472        | 456                |
 | [NBC](https://www.nbc.com/)                                                  | 684                  | **645**      | 680      | 683        | n/a                |
 | [Eloquent Javascript](https://eloquentjavascript.net/1st_edition/print.html) | 870                  | **815**      | 840      | 864        | n/a                |
-| [ES6 table](https://kangax.github.io/compat-table/es6/)                      | 4844                 | **4125**     | 4581     | n/a        | n/a                |
+| [ES6 table](https://kangax.github.io/compat-table/es6/)                      | 4799                 | **4087**     | 4539     | n/a        | n/a                |
 | [ES6 draft](https://tc39.github.io/ecma262/)                                 | 6098                 | **5434**     | 5596     | n/a        | n/a                |
 
 ## Options Quick Reference
index 9df5887..5ba8dc5 100644 (file)
@@ -1,5 +1,5 @@
 /*!
- * HTMLMinifier v3.5.10 (http://kangax.github.io/html-minifier/)
+ * HTMLMinifier v3.5.11 (http://kangax.github.io/html-minifier/)
  * Copyright 2010-2018 Juriy "kangax" Zaytsev
  * Licensed under the MIT license
  */
@@ -25239,6 +25239,6 @@ exports.minify = function(value, options) {
 
 },{"./htmlparser":167,"./tokenchain":168,"./utils":169,"clean-css":6,"he":103,"relateurl":129,"uglify-js":"uglify-js"}],"uglify-js":[function(require,module,exports){
 (function (Buffer){
-(function(exports){"use strict";function characters(str){return str.split("")}function member(name,array){return array.indexOf(name)>=0}function find_if(func,array){for(var i=0,n=array.length;i<n;++i){if(func(array[i]))return array[i]}}function repeat_string(str,i){if(i<=0)return"";if(i==1)return str;var d=repeat_string(str,i>>1);d+=d;if(i&1)d+=str;return d}function configure_error_stack(fn){Object.defineProperty(fn.prototype,"stack",{get:function(){var err=new Error(this.message);err.name=this.name;try{throw err}catch(e){return e.stack}}})}function DefaultsError(msg,defs){this.message=msg;this.defs=defs}DefaultsError.prototype=Object.create(Error.prototype);DefaultsError.prototype.constructor=DefaultsError;DefaultsError.prototype.name="DefaultsError";configure_error_stack(DefaultsError);DefaultsError.croak=function(msg,defs){throw new DefaultsError(msg,defs)};function defaults(args,defs,croak){if(args===true)args={};var ret=args||{};if(croak)for(var i in ret)if(HOP(ret,i)&&!HOP(defs,i))DefaultsError.croak("`"+i+"` is not a supported option",defs);for(var i in defs)if(HOP(defs,i)){ret[i]=args&&HOP(args,i)?args[i]:defs[i]}return ret}function merge(obj,ext){var count=0;for(var i in ext)if(HOP(ext,i)){obj[i]=ext[i];count++}return count}function noop(){}function return_false(){return false}function return_true(){return true}function return_this(){return this}function return_null(){return null}var MAP=function(){function MAP(a,f,backwards){var ret=[],top=[],i;function doit(){var val=f(a[i],i);var is_last=val instanceof Last;if(is_last)val=val.v;if(val instanceof AtTop){val=val.v;if(val instanceof Splice){top.push.apply(top,backwards?val.v.slice().reverse():val.v)}else{top.push(val)}}else if(val!==skip){if(val instanceof Splice){ret.push.apply(ret,backwards?val.v.slice().reverse():val.v)}else{ret.push(val)}}return is_last}if(a instanceof Array){if(backwards){for(i=a.length;--i>=0;)if(doit())break;ret.reverse();top.reverse()}else{for(i=0;i<a.length;++i)if(doit())break}}else{for(i in a)if(HOP(a,i))if(doit())break}return top.concat(ret)}MAP.at_top=function(val){return new AtTop(val)};MAP.splice=function(val){return new Splice(val)};MAP.last=function(val){return new Last(val)};var skip=MAP.skip={};function AtTop(val){this.v=val}function Splice(val){this.v=val}function Last(val){this.v=val}return MAP}();function push_uniq(array,el){if(array.indexOf(el)<0)array.push(el)}function string_template(text,props){return text.replace(/\{(.+?)\}/g,function(str,p){return props&&props[p]})}function remove(array,el){for(var i=array.length;--i>=0;){if(array[i]===el)array.splice(i,1)}}function mergeSort(array,cmp){if(array.length<2)return array.slice();function merge(a,b){var r=[],ai=0,bi=0,i=0;while(ai<a.length&&bi<b.length){cmp(a[ai],b[bi])<=0?r[i++]=a[ai++]:r[i++]=b[bi++]}if(ai<a.length)r.push.apply(r,a.slice(ai));if(bi<b.length)r.push.apply(r,b.slice(bi));return r}function _ms(a){if(a.length<=1)return a;var m=Math.floor(a.length/2),left=a.slice(0,m),right=a.slice(m);left=_ms(left);right=_ms(right);return merge(left,right)}return _ms(array)}function makePredicate(words){if(!(words instanceof Array))words=words.split(" ");var f="",cats=[];out:for(var i=0;i<words.length;++i){for(var j=0;j<cats.length;++j)if(cats[j][0].length==words[i].length){cats[j].push(words[i]);continue out}cats.push([words[i]])}function quote(word){return JSON.stringify(word).replace(/[\u2028\u2029]/g,function(s){switch(s){case"\u2028":return"\\u2028";case"\u2029":return"\\u2029"}return s})}function compareTo(arr){if(arr.length==1)return f+="return str === "+quote(arr[0])+";";f+="switch(str){";for(var i=0;i<arr.length;++i)f+="case "+quote(arr[i])+":";f+="return true}return false;"}if(cats.length>3){cats.sort(function(a,b){return b.length-a.length});f+="switch(str.length){";for(var i=0;i<cats.length;++i){var cat=cats[i];f+="case "+cat[0].length+":";compareTo(cat)}f+="}"}else{compareTo(words)}return new Function("str",f)}function all(array,predicate){for(var i=array.length;--i>=0;)if(!predicate(array[i]))return false;return true}function Dictionary(){this._values=Object.create(null);this._size=0}Dictionary.prototype={set:function(key,val){if(!this.has(key))++this._size;this._values["$"+key]=val;return this},add:function(key,val){if(this.has(key)){this.get(key).push(val)}else{this.set(key,[val])}return this},get:function(key){return this._values["$"+key]},del:function(key){if(this.has(key)){--this._size;delete this._values["$"+key]}return this},has:function(key){return"$"+key in this._values},each:function(f){for(var i in this._values)f(this._values[i],i.substr(1))},size:function(){return this._size},map:function(f){var ret=[];for(var i in this._values)ret.push(f(this._values[i],i.substr(1)));return ret},clone:function(){var ret=new Dictionary;for(var i in this._values)ret._values[i]=this._values[i];ret._size=this._size;return ret},toObject:function(){return this._values}};Dictionary.fromObject=function(obj){var dict=new Dictionary;dict._size=merge(dict._values,obj);return dict};function HOP(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)}function first_in_statement(stack){var node=stack.parent(-1);for(var i=0,p;p=stack.parent(i);i++){if(p instanceof AST_Statement&&p.body===node)return true;if(p instanceof AST_Sequence&&p.expressions[0]===node||p.TYPE=="Call"&&p.expression===node||p instanceof AST_Dot&&p.expression===node||p instanceof AST_Sub&&p.expression===node||p instanceof AST_Conditional&&p.condition===node||p instanceof AST_Binary&&p.left===node||p instanceof AST_UnaryPostfix&&p.expression===node){node=p}else{return false}}}"use strict";function DEFNODE(type,props,methods,base){if(arguments.length<4)base=AST_Node;if(!props)props=[];else props=props.split(/\s+/);var self_props=props;if(base&&base.PROPS)props=props.concat(base.PROPS);var code="return function AST_"+type+"(props){ if (props) { ";for(var i=props.length;--i>=0;){code+="this."+props[i]+" = props."+props[i]+";"}var proto=base&&new base;if(proto&&proto.initialize||methods&&methods.initialize)code+="this.initialize();";code+="}}";var ctor=new Function(code)();if(proto){ctor.prototype=proto;ctor.BASE=base}if(base)base.SUBCLASSES.push(ctor);ctor.prototype.CTOR=ctor;ctor.PROPS=props||null;ctor.SELF_PROPS=self_props;ctor.SUBCLASSES=[];if(type){ctor.prototype.TYPE=ctor.TYPE=type}if(methods)for(i in methods)if(HOP(methods,i)){if(/^\$/.test(i)){ctor[i.substr(1)]=methods[i]}else{ctor.prototype[i]=methods[i]}}ctor.DEFMETHOD=function(name,method){this.prototype[name]=method};if(typeof exports!=="undefined"){exports["AST_"+type]=ctor}return ctor}var AST_Token=DEFNODE("Token","type value line col pos endline endcol endpos nlb comments_before comments_after file raw",{},null);var AST_Node=DEFNODE("Node","start end",{_clone:function(deep){if(deep){var self=this.clone();return self.transform(new TreeTransformer(function(node){if(node!==self){return node.clone(true)}}))}return new this.CTOR(this)},clone:function(deep){return this._clone(deep)},$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(visitor){return visitor._visit(this)},walk:function(visitor){return this._walk(visitor)}},null);AST_Node.warn_function=null;AST_Node.warn=function(txt,props){if(AST_Node.warn_function)AST_Node.warn_function(string_template(txt,props))};var AST_Statement=DEFNODE("Statement",null,{$documentation:"Base class of all statements"});var AST_Debugger=DEFNODE("Debugger",null,{$documentation:"Represents a debugger statement"},AST_Statement);var AST_Directive=DEFNODE("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"}},AST_Statement);var AST_SimpleStatement=DEFNODE("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(visitor){return visitor._visit(this,function(){this.body._walk(visitor)})}},AST_Statement);function walk_body(node,visitor){var body=node.body;if(body instanceof AST_Statement){body._walk(visitor)}else for(var i=0,len=body.length;i<len;i++){body[i]._walk(visitor)}}var AST_Block=DEFNODE("Block","body",{$documentation:"A body of statements (usually bracketed)",$propdoc:{body:"[AST_Statement*] an array of statements"},_walk:function(visitor){return visitor._visit(this,function(){walk_body(this,visitor)})}},AST_Statement);var AST_BlockStatement=DEFNODE("BlockStatement",null,{$documentation:"A block statement"},AST_Block);var AST_EmptyStatement=DEFNODE("EmptyStatement",null,{$documentation:"The empty statement (empty block or simply a semicolon)"},AST_Statement);var AST_StatementWithBody=DEFNODE("StatementWithBody","body",{$documentation:"Base class for all statements that contain one nested body: `For`, `ForIn`, `Do`, `While`, `With`",$propdoc:{body:"[AST_Statement] the body; this should always be present, even if it's an AST_EmptyStatement"}},AST_Statement);var AST_LabeledStatement=DEFNODE("LabeledStatement","label",{$documentation:"Statement with a label",$propdoc:{label:"[AST_Label] a label definition"},_walk:function(visitor){return visitor._visit(this,function(){this.label._walk(visitor);this.body._walk(visitor)})},clone:function(deep){var node=this._clone(deep);if(deep){var label=node.label;var def=this.label;node.walk(new TreeWalker(function(node){if(node instanceof AST_LoopControl&&node.label&&node.label.thedef===def){node.label.thedef=label;label.references.push(node)}}))}return node}},AST_StatementWithBody);var AST_IterationStatement=DEFNODE("IterationStatement",null,{$documentation:"Internal class.  All loops inherit from it."},AST_StatementWithBody);var AST_DWLoop=DEFNODE("DWLoop","condition",{$documentation:"Base class for do/while statements",$propdoc:{condition:"[AST_Node] the loop condition.  Should not be instanceof AST_Statement"}},AST_IterationStatement);var AST_Do=DEFNODE("Do",null,{$documentation:"A `do` statement",_walk:function(visitor){return visitor._visit(this,function(){this.body._walk(visitor);this.condition._walk(visitor)})}},AST_DWLoop);var AST_While=DEFNODE("While",null,{$documentation:"A `while` statement",_walk:function(visitor){return visitor._visit(this,function(){this.condition._walk(visitor);this.body._walk(visitor)})}},AST_DWLoop);var AST_For=DEFNODE("For","init condition step",{$documentation:"A `for` statement",$propdoc:{init:"[AST_Node?] the `for` initialization code, or null if empty",condition:"[AST_Node?] the `for` termination clause, or null if empty",step:"[AST_Node?] the `for` update clause, or null if empty"},_walk:function(visitor){return visitor._visit(this,function(){if(this.init)this.init._walk(visitor);if(this.condition)this.condition._walk(visitor);if(this.step)this.step._walk(visitor);this.body._walk(visitor)})}},AST_IterationStatement);var AST_ForIn=DEFNODE("ForIn","init object",{$documentation:"A `for ... in` statement",$propdoc:{init:"[AST_Node] the `for/in` initialization code",object:"[AST_Node] the object that we're looping through"},_walk:function(visitor){return visitor._visit(this,function(){this.init._walk(visitor);this.object._walk(visitor);this.body._walk(visitor)})}},AST_IterationStatement);var AST_With=DEFNODE("With","expression",{$documentation:"A `with` statement",$propdoc:{expression:"[AST_Node] the `with` expression"},_walk:function(visitor){return visitor._visit(this,function(){this.expression._walk(visitor);this.body._walk(visitor)})}},AST_StatementWithBody);var AST_Scope=DEFNODE("Scope","variables functions uses_with uses_eval parent_scope enclosed cname",{$documentation:"Base class for all statements introducing a lexical scope",$propdoc:{variables:"[Object/S] a map of name -> 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)"},clone:function(deep){var node=this._clone(deep);if(this.variables)node.variables=this.variables.clone();if(this.functions)node.functions=this.functions.clone();if(this.enclosed)node.enclosed=this.enclosed.slice();return node}},AST_Block);var AST_Toplevel=DEFNODE("Toplevel","globals",{$documentation:"The toplevel scope",$propdoc:{globals:"[Object/S] a map of name -> SymbolDef for all undeclared names"},wrap_commonjs:function(name){var body=this.body;var wrapped_tl="(function(exports){'$ORIG';})(typeof "+name+"=='undefined'?("+name+"={}):"+name+");";wrapped_tl=parse(wrapped_tl);wrapped_tl=wrapped_tl.transform(new TreeTransformer(function before(node){if(node instanceof AST_Directive&&node.value=="$ORIG"){return MAP.splice(body)}}));return wrapped_tl}},AST_Scope);var AST_Lambda=DEFNODE("Lambda","name argnames uses_arguments",{$documentation:"Base class for functions",$propdoc:{name:"[AST_SymbolDeclaration?] the name of this function",argnames:"[AST_SymbolFunarg*] array of function arguments",uses_arguments:"[boolean/S] tells whether this function accesses the arguments array"},_walk:function(visitor){return visitor._visit(this,function(){if(this.name)this.name._walk(visitor);var argnames=this.argnames;for(var i=0,len=argnames.length;i<len;i++){argnames[i]._walk(visitor)}walk_body(this,visitor)})}},AST_Scope);var AST_Accessor=DEFNODE("Accessor",null,{$documentation:"A setter/getter function.  The `name` property is always null."},AST_Lambda);var AST_Function=DEFNODE("Function","inlined",{$documentation:"A function expression"},AST_Lambda);var AST_Defun=DEFNODE("Defun","inlined",{$documentation:"A function definition"},AST_Lambda);var AST_Jump=DEFNODE("Jump",null,{$documentation:"Base class for “jumps” (for now that's `return`, `throw`, `break` and `continue`)"},AST_Statement);var AST_Exit=DEFNODE("Exit","value",{$documentation:"Base class for “exits” (`return` and `throw`)",$propdoc:{value:"[AST_Node?] the value returned or thrown by this statement; could be null for AST_Return"},_walk:function(visitor){return visitor._visit(this,this.value&&function(){this.value._walk(visitor)})}},AST_Jump);var AST_Return=DEFNODE("Return",null,{$documentation:"A `return` statement"},AST_Exit);var AST_Throw=DEFNODE("Throw",null,{$documentation:"A `throw` statement"},AST_Exit);var AST_LoopControl=DEFNODE("LoopControl","label",{$documentation:"Base class for loop control statements (`break` and `continue`)",$propdoc:{label:"[AST_LabelRef?] the label, or null if none"},_walk:function(visitor){return visitor._visit(this,this.label&&function(){this.label._walk(visitor)})}},AST_Jump);var AST_Break=DEFNODE("Break",null,{$documentation:"A `break` statement"},AST_LoopControl);var AST_Continue=DEFNODE("Continue",null,{$documentation:"A `continue` statement"},AST_LoopControl);var AST_If=DEFNODE("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(visitor){return visitor._visit(this,function(){this.condition._walk(visitor);this.body._walk(visitor);if(this.alternative)this.alternative._walk(visitor)})}},AST_StatementWithBody);var AST_Switch=DEFNODE("Switch","expression",{$documentation:"A `switch` statement",$propdoc:{expression:"[AST_Node] the `switch` “discriminant”"},_walk:function(visitor){return visitor._visit(this,function(){this.expression._walk(visitor);walk_body(this,visitor)})}},AST_Block);var AST_SwitchBranch=DEFNODE("SwitchBranch",null,{$documentation:"Base class for `switch` branches"},AST_Block);var AST_Default=DEFNODE("Default",null,{$documentation:"A `default` switch branch"},AST_SwitchBranch);var AST_Case=DEFNODE("Case","expression",{$documentation:"A `case` switch branch",$propdoc:{expression:"[AST_Node] the `case` expression"},_walk:function(visitor){return visitor._visit(this,function(){this.expression._walk(visitor);walk_body(this,visitor)})}},AST_SwitchBranch);var AST_Try=DEFNODE("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(visitor){return visitor._visit(this,function(){walk_body(this,visitor);if(this.bcatch)this.bcatch._walk(visitor);if(this.bfinally)this.bfinally._walk(visitor)})}},AST_Block);var AST_Catch=DEFNODE("Catch","argname",{$documentation:"A `catch` node; only makes sense as part of a `try` statement",$propdoc:{argname:"[AST_SymbolCatch] symbol for the exception"},_walk:function(visitor){return visitor._visit(this,function(){this.argname._walk(visitor);walk_body(this,visitor)})}},AST_Block);var AST_Finally=DEFNODE("Finally",null,{$documentation:"A `finally` node; only makes sense as part of a `try` statement"},AST_Block);var AST_Definitions=DEFNODE("Definitions","definitions",{$documentation:"Base class for `var` nodes (variable declarations/initializations)",$propdoc:{definitions:"[AST_VarDef*] array of variable definitions"},_walk:function(visitor){return visitor._visit(this,function(){var definitions=this.definitions;for(var i=0,len=definitions.length;i<len;i++){definitions[i]._walk(visitor)}})}},AST_Statement);var AST_Var=DEFNODE("Var",null,{$documentation:"A `var` statement"},AST_Definitions);var AST_VarDef=DEFNODE("VarDef","name value",{$documentation:"A variable declaration; only appears in a AST_Definitions node",$propdoc:{name:"[AST_SymbolVar] name of the variable",value:"[AST_Node?] initializer, or null of there's no initializer"},_walk:function(visitor){return visitor._visit(this,function(){this.name._walk(visitor);if(this.value)this.value._walk(visitor)})}});var AST_Call=DEFNODE("Call","expression args",{$documentation:"A function call expression",$propdoc:{expression:"[AST_Node] expression to invoke as function",args:"[AST_Node*] array of arguments"},_walk:function(visitor){return visitor._visit(this,function(){var args=this.args;for(var i=0,len=args.length;i<len;i++){args[i]._walk(visitor)}this.expression._walk(visitor)})}});var AST_New=DEFNODE("New",null,{$documentation:"An object instantiation.  Derives from a function call since it has exactly the same properties"},AST_Call);var AST_Sequence=DEFNODE("Sequence","expressions",{$documentation:"A sequence expression (comma-separated expressions)",$propdoc:{expressions:"[AST_Node*] array of expressions (at least two)"},_walk:function(visitor){return visitor._visit(this,function(){this.expressions.forEach(function(node){node._walk(visitor)})})}});var AST_PropAccess=DEFNODE("PropAccess","expression property",{$documentation:'Base class for property access expressions, i.e. `a.foo` or `a["foo"]`',$propdoc:{expression:"[AST_Node] the “container” expression",property:"[AST_Node|string] the property to access.  For AST_Dot this is always a plain string, while for AST_Sub it's an arbitrary AST_Node"}});var AST_Dot=DEFNODE("Dot",null,{$documentation:"A dotted property access expression",_walk:function(visitor){return visitor._visit(this,function(){this.expression._walk(visitor)})}},AST_PropAccess);var AST_Sub=DEFNODE("Sub",null,{$documentation:'Index-style property access, i.e. `a["foo"]`',_walk:function(visitor){return visitor._visit(this,function(){this.expression._walk(visitor);this.property._walk(visitor)})}},AST_PropAccess);var AST_Unary=DEFNODE("Unary","operator expression",{$documentation:"Base class for unary expressions",$propdoc:{operator:"[string] the operator",expression:"[AST_Node] expression that this unary operator applies to"},_walk:function(visitor){return visitor._visit(this,function(){this.expression._walk(visitor)})}});var AST_UnaryPrefix=DEFNODE("UnaryPrefix",null,{$documentation:"Unary prefix expression, i.e. `typeof i` or `++i`"},AST_Unary);var AST_UnaryPostfix=DEFNODE("UnaryPostfix",null,{$documentation:"Unary postfix expression, i.e. `i++`"},AST_Unary);var AST_Binary=DEFNODE("Binary","operator left right",{$documentation:"Binary expression, i.e. `a + b`",$propdoc:{left:"[AST_Node] left-hand side expression",operator:"[string] the operator",right:"[AST_Node] right-hand side expression"},_walk:function(visitor){return visitor._visit(this,function(){this.left._walk(visitor);this.right._walk(visitor)})}});var AST_Conditional=DEFNODE("Conditional","condition consequent alternative",{$documentation:"Conditional expression using the ternary operator, i.e. `a ? b : c`",$propdoc:{condition:"[AST_Node]",consequent:"[AST_Node]",alternative:"[AST_Node]"},_walk:function(visitor){return visitor._visit(this,function(){this.condition._walk(visitor);this.consequent._walk(visitor);this.alternative._walk(visitor)})}});var AST_Assign=DEFNODE("Assign",null,{$documentation:"An assignment expression — `a = b + 5`"},AST_Binary);var AST_Array=DEFNODE("Array","elements",{$documentation:"An array literal",$propdoc:{elements:"[AST_Node*] array of elements"},_walk:function(visitor){return visitor._visit(this,function(){var elements=this.elements;for(var i=0,len=elements.length;i<len;i++){elements[i]._walk(visitor)}})}});var AST_Object=DEFNODE("Object","properties",{$documentation:"An object literal",$propdoc:{properties:"[AST_ObjectProperty*] array of properties"},_walk:function(visitor){return visitor._visit(this,function(){var properties=this.properties;for(var i=0,len=properties.length;i<len;i++){properties[i]._walk(visitor)}})}});var AST_ObjectProperty=DEFNODE("ObjectProperty","key value",{$documentation:"Base class for literal object properties",$propdoc:{key:"[string|AST_SymbolAccessor] property name. For ObjectKeyVal this is a string. For getters and setters this is an AST_SymbolAccessor.",value:"[AST_Node] property value.  For getters and setters this is an AST_Accessor."},_walk:function(visitor){return visitor._visit(this,function(){this.value._walk(visitor)})}});var AST_ObjectKeyVal=DEFNODE("ObjectKeyVal","quote",{$documentation:"A key: value object property",$propdoc:{quote:"[string] the original quote character"}},AST_ObjectProperty);var AST_ObjectSetter=DEFNODE("ObjectSetter",null,{$documentation:"An object setter property"},AST_ObjectProperty);var AST_ObjectGetter=DEFNODE("ObjectGetter",null,{$documentation:"An object getter property"},AST_ObjectProperty);var AST_Symbol=DEFNODE("Symbol","scope name thedef",{$propdoc:{name:"[string] name of this symbol",scope:"[AST_Scope/S] the current scope (not necessarily the definition scope)",thedef:"[SymbolDef/S] the definition of this symbol"},$documentation:"Base class for all symbols"});var AST_SymbolAccessor=DEFNODE("SymbolAccessor",null,{$documentation:"The name of a property accessor (setter/getter function)"},AST_Symbol);var AST_SymbolDeclaration=DEFNODE("SymbolDeclaration","init",{$documentation:"A declaration symbol (symbol in var, function name or argument, symbol in catch)"},AST_Symbol);var AST_SymbolVar=DEFNODE("SymbolVar",null,{$documentation:"Symbol defining a variable"},AST_SymbolDeclaration);var AST_SymbolFunarg=DEFNODE("SymbolFunarg",null,{$documentation:"Symbol naming a function argument"},AST_SymbolVar);var AST_SymbolDefun=DEFNODE("SymbolDefun",null,{$documentation:"Symbol defining a function"},AST_SymbolDeclaration);var AST_SymbolLambda=DEFNODE("SymbolLambda",null,{$documentation:"Symbol naming a function expression"},AST_SymbolDeclaration);var AST_SymbolCatch=DEFNODE("SymbolCatch",null,{$documentation:"Symbol naming the exception in catch"},AST_SymbolDeclaration);var AST_Label=DEFNODE("Label","references",{$documentation:"Symbol naming a label (declaration)",$propdoc:{references:"[AST_LoopControl*] a list of nodes referring to this label"},initialize:function(){this.references=[];this.thedef=this}},AST_Symbol);var AST_SymbolRef=DEFNODE("SymbolRef",null,{$documentation:"Reference to some symbol (not definition/declaration)"},AST_Symbol);var AST_LabelRef=DEFNODE("LabelRef",null,{$documentation:"Reference to a label symbol"},AST_Symbol);var AST_This=DEFNODE("This",null,{$documentation:"The `this` symbol"},AST_Symbol);var AST_Constant=DEFNODE("Constant",null,{$documentation:"Base class for all constants",getValue:function(){return this.value}});var AST_String=DEFNODE("String","value quote",{$documentation:"A string literal",$propdoc:{value:"[string] the contents of this string",quote:"[string] the original quote character"}},AST_Constant);var AST_Number=DEFNODE("Number","value literal",{$documentation:"A number literal",$propdoc:{value:"[number] the numeric value",literal:"[string] numeric value as string (optional)"}},AST_Constant);var AST_RegExp=DEFNODE("RegExp","value",{$documentation:"A regexp literal",$propdoc:{value:"[RegExp] the actual regexp"}},AST_Constant);var AST_Atom=DEFNODE("Atom",null,{$documentation:"Base class for atoms"},AST_Constant);var AST_Null=DEFNODE("Null",null,{$documentation:"The `null` atom",value:null},AST_Atom);var AST_NaN=DEFNODE("NaN",null,{$documentation:"The impossible value",value:0/0},AST_Atom);var AST_Undefined=DEFNODE("Undefined",null,{$documentation:"The `undefined` value",value:function(){}()},AST_Atom);var AST_Hole=DEFNODE("Hole",null,{$documentation:"A hole in an array",value:function(){}()},AST_Atom);var AST_Infinity=DEFNODE("Infinity",null,{$documentation:"The `Infinity` value",value:1/0},AST_Atom);var AST_Boolean=DEFNODE("Boolean",null,{$documentation:"Base class for booleans"},AST_Atom);var AST_False=DEFNODE("False",null,{$documentation:"The `false` atom",value:false},AST_Boolean);var AST_True=DEFNODE("True",null,{$documentation:"The `true` atom",value:true},AST_Boolean);function TreeWalker(callback){this.visit=callback;this.stack=[];this.directives=Object.create(null)}TreeWalker.prototype={_visit:function(node,descend){this.push(node);var ret=this.visit(node,descend?function(){descend.call(node)}:noop);if(!ret&&descend){descend.call(node)}this.pop();return ret},parent:function(n){return this.stack[this.stack.length-2-(n||0)]},push:function(node){if(node instanceof AST_Lambda){this.directives=Object.create(this.directives)}else if(node instanceof AST_Directive&&!this.directives[node.value]){this.directives[node.value]=node}this.stack.push(node)},pop:function(){if(this.stack.pop()instanceof AST_Lambda){this.directives=Object.getPrototypeOf(this.directives)}},self:function(){return this.stack[this.stack.length-1]},find_parent:function(type){var stack=this.stack;for(var i=stack.length;--i>=0;){var x=stack[i];if(x instanceof type)return x}},has_directive:function(type){var dir=this.directives[type];if(dir)return dir;var node=this.stack[this.stack.length-1];if(node instanceof AST_Scope){for(var i=0;i<node.body.length;++i){var st=node.body[i];if(!(st instanceof AST_Directive))break;if(st.value==type)return st}}},loopcontrol_target:function(node){var stack=this.stack;if(node.label)for(var i=stack.length;--i>=0;){var x=stack[i];if(x instanceof AST_LabeledStatement&&x.label.name==node.label.name)return x.body}else for(var i=stack.length;--i>=0;){var x=stack[i];if(x instanceof AST_IterationStatement||node instanceof AST_Break&&x instanceof AST_Switch)return x}}};"use strict";var KEYWORDS="break case catch const continue debugger default delete do else finally for function if in instanceof new return switch throw try typeof var void while with";var KEYWORDS_ATOM="false null true";var RESERVED_WORDS="abstract boolean byte char class double enum export extends final float goto implements import int interface let long native package private protected public short static super synchronized this throws transient volatile yield"+" "+KEYWORDS_ATOM+" "+KEYWORDS;var KEYWORDS_BEFORE_EXPRESSION="return new delete throw else case";KEYWORDS=makePredicate(KEYWORDS);RESERVED_WORDS=makePredicate(RESERVED_WORDS);KEYWORDS_BEFORE_EXPRESSION=makePredicate(KEYWORDS_BEFORE_EXPRESSION);KEYWORDS_ATOM=makePredicate(KEYWORDS_ATOM);var OPERATOR_CHARS=makePredicate(characters("+-*&%=<>!?|~^"));var RE_HEX_NUMBER=/^0x[0-9a-f]+$/i;var RE_OCT_NUMBER=/^0[0-7]+$/;var OPERATORS=makePredicate(["in","instanceof","typeof","new","void","delete","++","--","+","-","!","~","&","|","^","*","/","%",">>","<<",">>>","<",">","<=",">=","==","===","!=","!==","?","=","+=","-=","/=","*=","%=",">>=","<<=",">>>=","|=","^=","&=","&&","||"]);var WHITESPACE_CHARS=makePredicate(characters("  \n\r\t\f\v​           \u2028\u2029   \ufeff"));var NEWLINE_CHARS=makePredicate(characters("\n\r\u2028\u2029"));var PUNC_BEFORE_EXPRESSION=makePredicate(characters("[{(,;:"));var PUNC_CHARS=makePredicate(characters("[]{}(),;:"));var UNICODE={letter:new RegExp("[\\u0041-\\u005A\\u0061-\\u007A\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"),digit:new RegExp("[\\u0030-\\u0039\\u0660-\\u0669\\u06F0-\\u06F9\\u07C0-\\u07C9\\u0966-\\u096F\\u09E6-\\u09EF\\u0A66-\\u0A6F\\u0AE6-\\u0AEF\\u0B66-\\u0B6F\\u0BE6-\\u0BEF\\u0C66-\\u0C6F\\u0CE6-\\u0CEF\\u0D66-\\u0D6F\\u0DE6-\\u0DEF\\u0E50-\\u0E59\\u0ED0-\\u0ED9\\u0F20-\\u0F29\\u1040-\\u1049\\u1090-\\u1099\\u17E0-\\u17E9\\u1810-\\u1819\\u1946-\\u194F\\u19D0-\\u19D9\\u1A80-\\u1A89\\u1A90-\\u1A99\\u1B50-\\u1B59\\u1BB0-\\u1BB9\\u1C40-\\u1C49\\u1C50-\\u1C59\\uA620-\\uA629\\uA8D0-\\uA8D9\\uA900-\\uA909\\uA9D0-\\uA9D9\\uA9F0-\\uA9F9\\uAA50-\\uAA59\\uABF0-\\uABF9\\uFF10-\\uFF19]"),non_spacing_mark:new RegExp("[\\u0300-\\u036F\\u0483-\\u0487\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0610-\\u061A\\u064B-\\u065E\\u0670\\u06D6-\\u06DC\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0900-\\u0902\\u093C\\u0941-\\u0948\\u094D\\u0951-\\u0955\\u0962\\u0963\\u0981\\u09BC\\u09C1-\\u09C4\\u09CD\\u09E2\\u09E3\\u0A01\\u0A02\\u0A3C\\u0A41\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70\\u0A71\\u0A75\\u0A81\\u0A82\\u0ABC\\u0AC1-\\u0AC5\\u0AC7\\u0AC8\\u0ACD\\u0AE2\\u0AE3\\u0B01\\u0B3C\\u0B3F\\u0B41-\\u0B44\\u0B4D\\u0B56\\u0B62\\u0B63\\u0B82\\u0BC0\\u0BCD\\u0C3E-\\u0C40\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0CBC\\u0CBF\\u0CC6\\u0CCC\\u0CCD\\u0CE2\\u0CE3\\u0D41-\\u0D44\\u0D4D\\u0D62\\u0D63\\u0DCA\\u0DD2-\\u0DD4\\u0DD6\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB4-\\u0EB9\\u0EBB\\u0EBC\\u0EC8-\\u0ECD\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F71-\\u0F7E\\u0F80-\\u0F84\\u0F86\\u0F87\\u0F90-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102D-\\u1030\\u1032-\\u1037\\u1039\\u103A\\u103D\\u103E\\u1058\\u1059\\u105E-\\u1060\\u1071-\\u1074\\u1082\\u1085\\u1086\\u108D\\u109D\\u135F\\u1712-\\u1714\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B7-\\u17BD\\u17C6\\u17C9-\\u17D3\\u17DD\\u180B-\\u180D\\u18A9\\u1920-\\u1922\\u1927\\u1928\\u1932\\u1939-\\u193B\\u1A17\\u1A18\\u1A56\\u1A58-\\u1A5E\\u1A60\\u1A62\\u1A65-\\u1A6C\\u1A73-\\u1A7C\\u1A7F\\u1B00-\\u1B03\\u1B34\\u1B36-\\u1B3A\\u1B3C\\u1B42\\u1B6B-\\u1B73\\u1B80\\u1B81\\u1BA2-\\u1BA5\\u1BA8\\u1BA9\\u1C2C-\\u1C33\\u1C36\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE0\\u1CE2-\\u1CE8\\u1CED\\u1DC0-\\u1DE6\\u1DFD-\\u1DFF\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2CEF-\\u2CF1\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\uA66F\\uA67C\\uA67D\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA825\\uA826\\uA8C4\\uA8E0-\\uA8F1\\uA926-\\uA92D\\uA947-\\uA951\\uA980-\\uA982\\uA9B3\\uA9B6-\\uA9B9\\uA9BC\\uAA29-\\uAA2E\\uAA31\\uAA32\\uAA35\\uAA36\\uAA43\\uAA4C\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uABE5\\uABE8\\uABED\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE26]"),space_combining_mark:new RegExp("[\\u0903\\u093E-\\u0940\\u0949-\\u094C\\u094E\\u0982\\u0983\\u09BE-\\u09C0\\u09C7\\u09C8\\u09CB\\u09CC\\u09D7\\u0A03\\u0A3E-\\u0A40\\u0A83\\u0ABE-\\u0AC0\\u0AC9\\u0ACB\\u0ACC\\u0B02\\u0B03\\u0B3E\\u0B40\\u0B47\\u0B48\\u0B4B\\u0B4C\\u0B57\\u0BBE\\u0BBF\\u0BC1\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCC\\u0BD7\\u0C01-\\u0C03\\u0C41-\\u0C44\\u0C82\\u0C83\\u0CBE\\u0CC0-\\u0CC4\\u0CC7\\u0CC8\\u0CCA\\u0CCB\\u0CD5\\u0CD6\\u0D02\\u0D03\\u0D3E-\\u0D40\\u0D46-\\u0D48\\u0D4A-\\u0D4C\\u0D57\\u0D82\\u0D83\\u0DCF-\\u0DD1\\u0DD8-\\u0DDF\\u0DF2\\u0DF3\\u0F3E\\u0F3F\\u0F7F\\u102B\\u102C\\u1031\\u1038\\u103B\\u103C\\u1056\\u1057\\u1062-\\u1064\\u1067-\\u106D\\u1083\\u1084\\u1087-\\u108C\\u108F\\u109A-\\u109C\\u17B6\\u17BE-\\u17C5\\u17C7\\u17C8\\u1923-\\u1926\\u1929-\\u192B\\u1930\\u1931\\u1933-\\u1938\\u19B0-\\u19C0\\u19C8\\u19C9\\u1A19-\\u1A1B\\u1A55\\u1A57\\u1A61\\u1A63\\u1A64\\u1A6D-\\u1A72\\u1B04\\u1B35\\u1B3B\\u1B3D-\\u1B41\\u1B43\\u1B44\\u1B82\\u1BA1\\u1BA6\\u1BA7\\u1BAA\\u1C24-\\u1C2B\\u1C34\\u1C35\\u1CE1\\u1CF2\\uA823\\uA824\\uA827\\uA880\\uA881\\uA8B4-\\uA8C3\\uA952\\uA953\\uA983\\uA9B4\\uA9B5\\uA9BA\\uA9BB\\uA9BD-\\uA9C0\\uAA2F\\uAA30\\uAA33\\uAA34\\uAA4D\\uAA7B\\uABE3\\uABE4\\uABE6\\uABE7\\uABE9\\uABEA\\uABEC]"),connector_punctuation:new RegExp("[\\u005F\\u203F\\u2040\\u2054\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFF3F]")};function is_letter(code){return code>=97&&code<=122||code>=65&&code<=90||code>=170&&UNICODE.letter.test(String.fromCharCode(code))}function is_surrogate_pair_head(code){if(typeof code=="string")code=code.charCodeAt(0);return code>=55296&&code<=56319}function is_surrogate_pair_tail(code){if(typeof code=="string")code=code.charCodeAt(0);return code>=56320&&code<=57343}function is_digit(code){return code>=48&&code<=57}function is_alphanumeric_char(code){return is_digit(code)||is_letter(code)}function is_unicode_digit(code){return UNICODE.digit.test(String.fromCharCode(code))}function is_unicode_combining_mark(ch){return UNICODE.non_spacing_mark.test(ch)||UNICODE.space_combining_mark.test(ch)}function is_unicode_connector_punctuation(ch){return UNICODE.connector_punctuation.test(ch)}function is_identifier(name){return!RESERVED_WORDS(name)&&/^[a-z_$][a-z0-9_$]*$/i.test(name)}function is_identifier_start(code){return code==36||code==95||is_letter(code)}function is_identifier_char(ch){var code=ch.charCodeAt(0);return is_identifier_start(code)||is_digit(code)||code==8204||code==8205||is_unicode_combining_mark(ch)||is_unicode_connector_punctuation(ch)||is_unicode_digit(code)}function is_identifier_string(str){return/^[a-z_$][a-z0-9_$]*$/i.test(str)}function parse_js_number(num){if(RE_HEX_NUMBER.test(num)){return parseInt(num.substr(2),16)}else if(RE_OCT_NUMBER.test(num)){return parseInt(num.substr(1),8)}else{var val=parseFloat(num);if(val==num)return val}}function JS_Parse_Error(message,filename,line,col,pos){this.message=message;this.filename=filename;this.line=line;this.col=col;this.pos=pos}JS_Parse_Error.prototype=Object.create(Error.prototype);JS_Parse_Error.prototype.constructor=JS_Parse_Error;JS_Parse_Error.prototype.name="SyntaxError";configure_error_stack(JS_Parse_Error);function js_error(message,filename,line,col,pos){throw new JS_Parse_Error(message,filename,line,col,pos)}function is_token(token,type,val){return token.type==type&&(val==null||token.value==val)}var EX_EOF={};function tokenizer($TEXT,filename,html5_comments,shebang){var S={text:$TEXT,filename:filename,pos:0,tokpos:0,line:1,tokline:0,col:0,tokcol:0,newline_before:false,regex_allowed:false,comments_before:[],directives:{},directive_stack:[]};function peek(){return S.text.charAt(S.pos)}function next(signal_eof,in_string){var ch=S.text.charAt(S.pos++);if(signal_eof&&!ch)throw EX_EOF;if(NEWLINE_CHARS(ch)){S.newline_before=S.newline_before||!in_string;++S.line;S.col=0;if(!in_string&&ch=="\r"&&peek()=="\n"){++S.pos;ch="\n"}}else{++S.col}return ch}function forward(i){while(i-- >0)next()}function looking_at(str){return S.text.substr(S.pos,str.length)==str}function find_eol(){var text=S.text;for(var i=S.pos,n=S.text.length;i<n;++i){var ch=text[i];if(NEWLINE_CHARS(ch))return i}return-1}function find(what,signal_eof){var pos=S.text.indexOf(what,S.pos);if(signal_eof&&pos==-1)throw EX_EOF;return pos}function start_token(){S.tokline=S.line;S.tokcol=S.col;S.tokpos=S.pos}var prev_was_dot=false;function token(type,value,is_comment){S.regex_allowed=type=="operator"&&!UNARY_POSTFIX(value)||type=="keyword"&&KEYWORDS_BEFORE_EXPRESSION(value)||type=="punc"&&PUNC_BEFORE_EXPRESSION(value);if(type=="punc"&&value=="."){prev_was_dot=true}else if(!is_comment){prev_was_dot=false}var ret={type:type,value:value,line:S.tokline,col:S.tokcol,pos:S.tokpos,endline:S.line,endcol:S.col,endpos:S.pos,nlb:S.newline_before,file:filename};if(/^(?:num|string|regexp)$/i.test(type)){ret.raw=$TEXT.substring(ret.pos,ret.endpos)}if(!is_comment){ret.comments_before=S.comments_before;ret.comments_after=S.comments_before=[]}S.newline_before=false;return new AST_Token(ret)}function skip_whitespace(){while(WHITESPACE_CHARS(peek()))next()}function read_while(pred){var ret="",ch,i=0;while((ch=peek())&&pred(ch,i++))ret+=next();return ret}function parse_error(err){js_error(err,filename,S.tokline,S.tokcol,S.tokpos)}function read_num(prefix){var has_e=false,after_e=false,has_x=false,has_dot=prefix==".";var num=read_while(function(ch,i){var code=ch.charCodeAt(0);switch(code){case 120:case 88:return has_x?false:has_x=true;case 101:case 69:return has_x?true:has_e?false:has_e=after_e=true;case 45:return after_e||i==0&&!prefix;case 43:return after_e;case after_e=false,46:return!has_dot&&!has_x&&!has_e?has_dot=true:false}return is_alphanumeric_char(code)});if(prefix)num=prefix+num;if(RE_OCT_NUMBER.test(num)&&next_token.has_directive("use strict")){parse_error("Legacy octal literals are not allowed in strict mode")}var valid=parse_js_number(num);if(!isNaN(valid)){return token("num",valid)}else{parse_error("Invalid syntax: "+num)}}function read_escaped_char(in_string){var ch=next(true,in_string);switch(ch.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(hex_bytes(2));case 117:return String.fromCharCode(hex_bytes(4));case 10:return"";case 13:if(peek()=="\n"){next(true,in_string);return""}}if(ch>="0"&&ch<="7")return read_octal_escape_sequence(ch);return ch}function read_octal_escape_sequence(ch){var p=peek();if(p>="0"&&p<="7"){ch+=next(true);if(ch[0]<="3"&&(p=peek())>="0"&&p<="7")ch+=next(true)}if(ch==="0")return"\0";if(ch.length>0&&next_token.has_directive("use strict"))parse_error("Legacy octal escape sequences are not allowed in strict mode");return String.fromCharCode(parseInt(ch,8))}function hex_bytes(n){var num=0;for(;n>0;--n){var digit=parseInt(next(true),16);if(isNaN(digit))parse_error("Invalid hex-character pattern in string");num=num<<4|digit}return num}var read_string=with_eof_error("Unterminated string constant",function(quote_char){var quote=next(),ret="";for(;;){var ch=next(true,true);if(ch=="\\")ch=read_escaped_char(true);else if(NEWLINE_CHARS(ch))parse_error("Unterminated string constant");else if(ch==quote)break;ret+=ch}var tok=token("string",ret);tok.quote=quote_char;return tok});function skip_line_comment(type){var regex_allowed=S.regex_allowed;var i=find_eol(),ret;if(i==-1){ret=S.text.substr(S.pos);S.pos=S.text.length}else{ret=S.text.substring(S.pos,i);S.pos=i}S.col=S.tokcol+(S.pos-S.tokpos);S.comments_before.push(token(type,ret,true));S.regex_allowed=regex_allowed;return next_token}var skip_multiline_comment=with_eof_error("Unterminated multiline comment",function(){var regex_allowed=S.regex_allowed;var i=find("*/",true);var text=S.text.substring(S.pos,i).replace(/\r\n|\r|\u2028|\u2029/g,"\n");forward(text.length+2);S.comments_before.push(token("comment2",text,true));S.regex_allowed=regex_allowed;return next_token});function read_name(){var backslash=false,name="",ch,escaped=false,hex;while((ch=peek())!=null){if(!backslash){if(ch=="\\")escaped=backslash=true,next();else if(is_identifier_char(ch))name+=next();else break}else{if(ch!="u")parse_error("Expecting UnicodeEscapeSequence -- uXXXX");ch=read_escaped_char();if(!is_identifier_char(ch))parse_error("Unicode char: "+ch.charCodeAt(0)+" is not valid in identifier");name+=ch;backslash=false}}if(KEYWORDS(name)&&escaped){hex=name.charCodeAt(0).toString(16).toUpperCase();name="\\u"+"0000".substr(hex.length)+hex+name.slice(1)}return name}var read_regexp=with_eof_error("Unterminated regular expression",function(source){var prev_backslash=false,ch,in_class=false;while(ch=next(true))if(NEWLINE_CHARS(ch)){parse_error("Unexpected line terminator")}else if(prev_backslash){source+="\\"+ch;prev_backslash=false}else if(ch=="["){in_class=true;source+=ch}else if(ch=="]"&&in_class){in_class=false;source+=ch}else if(ch=="/"&&!in_class){break}else if(ch=="\\"){prev_backslash=true}else{source+=ch}var mods=read_name();try{var regexp=new RegExp(source,mods);regexp.raw_source=source;return token("regexp",regexp)}catch(e){parse_error(e.message)}});function read_operator(prefix){function grow(op){if(!peek())return op;var bigger=op+peek();if(OPERATORS(bigger)){next();return grow(bigger)}else{return op}}return token("operator",grow(prefix||next()))}function handle_slash(){next();switch(peek()){case"/":next();return skip_line_comment("comment1");case"*":next();return skip_multiline_comment()}return S.regex_allowed?read_regexp(""):read_operator("/")}function handle_dot(){next();return is_digit(peek().charCodeAt(0))?read_num("."):token("punc",".")}function read_word(){var word=read_name();if(prev_was_dot)return token("name",word);return KEYWORDS_ATOM(word)?token("atom",word):!KEYWORDS(word)?token("name",word):OPERATORS(word)?token("operator",word):token("keyword",word)}function with_eof_error(eof_error,cont){return function(x){try{return cont(x)}catch(ex){if(ex===EX_EOF)parse_error(eof_error);else throw ex}}}function next_token(force_regexp){if(force_regexp!=null)return read_regexp(force_regexp);if(shebang&&S.pos==0&&looking_at("#!")){start_token();forward(2);skip_line_comment("comment5")}for(;;){skip_whitespace();start_token();if(html5_comments){if(looking_at("\x3c!--")){forward(4);skip_line_comment("comment3");continue}if(looking_at("--\x3e")&&S.newline_before){forward(3);skip_line_comment("comment4");continue}}var ch=peek();if(!ch)return token("eof");var code=ch.charCodeAt(0);switch(code){case 34:case 39:return read_string(ch);case 46:return handle_dot();case 47:{var tok=handle_slash();if(tok===next_token)continue;return tok}}if(is_digit(code))return read_num();if(PUNC_CHARS(ch))return token("punc",next());if(OPERATOR_CHARS(ch))return read_operator();if(code==92||is_identifier_start(code))return read_word();break}parse_error("Unexpected character '"+ch+"'")}next_token.context=function(nc){if(nc)S=nc;return S};next_token.add_directive=function(directive){S.directive_stack[S.directive_stack.length-1].push(directive);if(S.directives[directive]===undefined){S.directives[directive]=1}else{S.directives[directive]++}};next_token.push_directives_stack=function(){S.directive_stack.push([])};next_token.pop_directives_stack=function(){var directives=S.directive_stack[S.directive_stack.length-1];for(var i=0;i<directives.length;i++){S.directives[directives[i]]--}S.directive_stack.pop()};next_token.has_directive=function(directive){return S.directives[directive]>0};return next_token}var UNARY_PREFIX=makePredicate(["typeof","void","delete","--","++","!","~","-","+"]);var UNARY_POSTFIX=makePredicate(["--","++"]);var ASSIGNMENT=makePredicate(["=","+=","-=","/=","*=","%=",">>=","<<=",">>>=","|=","^=","&="]);var PRECEDENCE=function(a,ret){for(var i=0;i<a.length;++i){var b=a[i];for(var j=0;j<b.length;++j){ret[b[j]]=i+1}}return ret}([["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]],{});var ATOMIC_START_TOKEN=makePredicate(["atom","num","string","regexp","name"]);function parse($TEXT,options){options=defaults(options,{bare_returns:false,expression:false,filename:null,html5_comments:true,shebang:true,strict:false,toplevel:null},true);var S={input:typeof $TEXT=="string"?tokenizer($TEXT,options.filename,options.html5_comments,options.shebang):$TEXT,token:null,prev:null,peeked:null,in_function:0,in_directives:true,in_loop:0,labels:[]};S.token=next();function is(type,value){return is_token(S.token,type,value)}function peek(){return S.peeked||(S.peeked=S.input())}function next(){S.prev=S.token;if(S.peeked){S.token=S.peeked;S.peeked=null}else{S.token=S.input()}S.in_directives=S.in_directives&&(S.token.type=="string"||is("punc",";"));return S.token}function prev(){return S.prev}function croak(msg,line,col,pos){var ctx=S.input.context();js_error(msg,ctx.filename,line!=null?line:ctx.tokline,col!=null?col:ctx.tokcol,pos!=null?pos:ctx.tokpos)}function token_error(token,msg){croak(msg,token.line,token.col)}function unexpected(token){if(token==null)token=S.token;token_error(token,"Unexpected token: "+token.type+" ("+token.value+")")}function expect_token(type,val){if(is(type,val)){return next()}token_error(S.token,"Unexpected token "+S.token.type+" «"+S.token.value+"»"+", expected "+type+" «"+val+"»")}function expect(punc){return expect_token("punc",punc)}function has_newline_before(token){return token.nlb||!all(token.comments_before,function(comment){return!comment.nlb})}function can_insert_semicolon(){return!options.strict&&(is("eof")||is("punc","}")||has_newline_before(S.token))}function semicolon(optional){if(is("punc",";"))next();else if(!optional&&!can_insert_semicolon())unexpected()}function parenthesised(){expect("(");var exp=expression(true);expect(")");return exp}function embed_tokens(parser){return function(){var start=S.token;var expr=parser.apply(null,arguments);var end=prev();expr.start=start;expr.end=end;return expr}}function handle_regexp(){if(is("operator","/")||is("operator","/=")){S.peeked=null;S.token=S.input(S.token.value.substr(1))}}var statement=embed_tokens(function(strict_defun){handle_regexp();switch(S.token.type){case"string":if(S.in_directives){var token=peek();if(S.token.raw.indexOf("\\")==-1&&(is_token(token,"punc",";")||is_token(token,"punc","}")||has_newline_before(token)||is_token(token,"eof"))){S.input.add_directive(S.token.value)}else{S.in_directives=false}}var dir=S.in_directives,stat=simple_statement();return dir?new AST_Directive(stat.body):stat;case"num":case"regexp":case"operator":case"atom":return simple_statement();case"name":return is_token(peek(),"punc",":")?labeled_statement():simple_statement();case"punc":switch(S.token.value){case"{":return new AST_BlockStatement({start:S.token,body:block_(),end:prev()});case"[":case"(":return simple_statement();case";":S.in_directives=false;next();return new AST_EmptyStatement;default:unexpected()}case"keyword":switch(S.token.value){case"break":next();return break_cont(AST_Break);case"continue":next();return break_cont(AST_Continue);case"debugger":next();semicolon();return new AST_Debugger;case"do":next();var body=in_loop(statement);expect_token("keyword","while");var condition=parenthesised();semicolon(true);return new AST_Do({body:body,condition:condition});case"while":next();return new AST_While({condition:parenthesised(),body:in_loop(statement)});case"for":next();return for_();case"function":if(!strict_defun&&S.input.has_directive("use strict")){croak("In strict mode code, functions can only be declared at top level or immediately within another function.")}next();return function_(AST_Defun);case"if":next();return if_();case"return":if(S.in_function==0&&!options.bare_returns)croak("'return' outside of function");next();var value=null;if(is("punc",";")){next()}else if(!can_insert_semicolon()){value=expression(true);semicolon()}return new AST_Return({value:value});case"switch":next();return new AST_Switch({expression:parenthesised(),body:in_loop(switch_body_)});case"throw":next();if(has_newline_before(S.token))croak("Illegal newline after 'throw'");var value=expression(true);semicolon();return new AST_Throw({value:value});case"try":next();return try_();case"var":next();var node=var_();semicolon();return node;case"with":if(S.input.has_directive("use strict")){croak("Strict mode may not include a with statement")}next();return new AST_With({expression:parenthesised(),body:statement()})}}unexpected()});function labeled_statement(){var label=as_symbol(AST_Label);if(find_if(function(l){return l.name==label.name},S.labels)){croak("Label "+label.name+" defined twice")}expect(":");S.labels.push(label);var stat=statement();S.labels.pop();if(!(stat instanceof AST_IterationStatement)){label.references.forEach(function(ref){if(ref instanceof AST_Continue){ref=ref.label.start;croak("Continue label `"+label.name+"` refers to non-IterationStatement.",ref.line,ref.col,ref.pos)}})}return new AST_LabeledStatement({body:stat,label:label})}function simple_statement(tmp){return new AST_SimpleStatement({body:(tmp=expression(true),semicolon(),tmp)})}function break_cont(type){var label=null,ldef;if(!can_insert_semicolon()){label=as_symbol(AST_LabelRef,true)}if(label!=null){ldef=find_if(function(l){return l.name==label.name},S.labels);if(!ldef)croak("Undefined label "+label.name);label.thedef=ldef}else if(S.in_loop==0)croak(type.TYPE+" not inside a loop or switch");semicolon();var stat=new type({label:label});if(ldef)ldef.references.push(stat);return stat}function for_(){expect("(");var init=null;if(!is("punc",";")){init=is("keyword","var")?(next(),var_(true)):expression(true,true);if(is("operator","in")){if(init instanceof AST_Var){if(init.definitions.length>1)croak("Only one variable declaration allowed in for..in loop",init.start.line,init.start.col,init.start.pos)}else if(!is_assignable(init)){croak("Invalid left-hand side in for..in loop",init.start.line,init.start.col,init.start.pos)}next();return for_in(init)}}return regular_for(init)}function regular_for(init){expect(";");var test=is("punc",";")?null:expression(true);expect(";");var step=is("punc",")")?null:expression(true);expect(")");return new AST_For({init:init,condition:test,step:step,body:in_loop(statement)})}function for_in(init){var obj=expression(true);expect(")");return new AST_ForIn({init:init,object:obj,body:in_loop(statement)})}var function_=function(ctor){var in_statement=ctor===AST_Defun;var name=is("name")?as_symbol(in_statement?AST_SymbolDefun:AST_SymbolLambda):null;if(in_statement&&!name)unexpected();if(name&&ctor!==AST_Accessor&&!(name instanceof AST_SymbolDeclaration))unexpected(prev());expect("(");var argnames=[];for(var first=true;!is("punc",")");){if(first)first=false;else expect(",");argnames.push(as_symbol(AST_SymbolFunarg))}next();var loop=S.in_loop;var labels=S.labels;++S.in_function;S.in_directives=true;S.input.push_directives_stack();S.in_loop=0;S.labels=[];var body=block_(true);if(S.input.has_directive("use strict")){if(name)strict_verify_symbol(name);argnames.forEach(strict_verify_symbol)}S.input.pop_directives_stack();--S.in_function;S.in_loop=loop;S.labels=labels;return new ctor({name:name,argnames:argnames,body:body})};function if_(){var cond=parenthesised(),body=statement(),belse=null;if(is("keyword","else")){next();belse=statement()}return new AST_If({condition:cond,body:body,alternative:belse})}function block_(strict_defun){expect("{");var a=[];while(!is("punc","}")){if(is("eof"))unexpected();a.push(statement(strict_defun))}next();return a}function switch_body_(){expect("{");var a=[],cur=null,branch=null,tmp;while(!is("punc","}")){if(is("eof"))unexpected();if(is("keyword","case")){if(branch)branch.end=prev();cur=[];branch=new AST_Case({start:(tmp=S.token,next(),tmp),expression:expression(true),body:cur});a.push(branch);expect(":")}else if(is("keyword","default")){if(branch)branch.end=prev();cur=[];branch=new AST_Default({start:(tmp=S.token,next(),expect(":"),tmp),body:cur});a.push(branch)}else{if(!cur)unexpected();cur.push(statement())}}if(branch)branch.end=prev();next();return a}function try_(){var body=block_(),bcatch=null,bfinally=null;if(is("keyword","catch")){var start=S.token;next();expect("(");var name=as_symbol(AST_SymbolCatch);expect(")");bcatch=new AST_Catch({start:start,argname:name,body:block_(),end:prev()})}if(is("keyword","finally")){var start=S.token;next();bfinally=new AST_Finally({start:start,body:block_(),end:prev()})}if(!bcatch&&!bfinally)croak("Missing catch/finally blocks");return new AST_Try({body:body,bcatch:bcatch,bfinally:bfinally})}function vardefs(no_in){var a=[];for(;;){a.push(new AST_VarDef({start:S.token,name:as_symbol(AST_SymbolVar),value:is("operator","=")?(next(),expression(false,no_in)):null,end:prev()}));if(!is("punc",","))break;next()}return a}var var_=function(no_in){return new AST_Var({start:prev(),definitions:vardefs(no_in),end:prev()})};var new_=function(allow_calls){var start=S.token;expect_token("operator","new");var newexp=expr_atom(false),args;if(is("punc","(")){next();args=expr_list(")")}else{args=[]}var call=new AST_New({start:start,expression:newexp,args:args,end:prev()});mark_pure(call);return subscripts(call,allow_calls)};function as_atom_node(){var tok=S.token,ret;switch(tok.type){case"name":ret=_make_symbol(AST_SymbolRef);break;case"num":ret=new AST_Number({start:tok,end:tok,value:tok.value});break;case"string":ret=new AST_String({start:tok,end:tok,value:tok.value,quote:tok.quote});break;case"regexp":ret=new AST_RegExp({start:tok,end:tok,value:tok.value});break;case"atom":switch(tok.value){case"false":ret=new AST_False({start:tok,end:tok});break;case"true":ret=new AST_True({start:tok,end:tok});break;case"null":ret=new AST_Null({start:tok,end:tok});break}break}next();return ret}var expr_atom=function(allow_calls){if(is("operator","new")){return new_(allow_calls)}var start=S.token;if(is("punc")){switch(start.value){case"(":next();var ex=expression(true);var len=start.comments_before.length;[].unshift.apply(ex.start.comments_before,start.comments_before);start.comments_before=ex.start.comments_before;start.comments_before_length=len;if(len==0&&start.comments_before.length>0){var comment=start.comments_before[0];if(!comment.nlb){comment.nlb=start.nlb;start.nlb=false}}start.comments_after=ex.start.comments_after;ex.start=start;expect(")");var end=prev();end.comments_before=ex.end.comments_before;[].push.apply(ex.end.comments_after,end.comments_after);end.comments_after=ex.end.comments_after;ex.end=end;if(ex instanceof AST_Call)mark_pure(ex);return subscripts(ex,allow_calls);case"[":return subscripts(array_(),allow_calls);case"{":return subscripts(object_(),allow_calls)}unexpected()}if(is("keyword","function")){next();var func=function_(AST_Function);func.start=start;func.end=prev();return subscripts(func,allow_calls)}if(ATOMIC_START_TOKEN(S.token.type)){return subscripts(as_atom_node(),allow_calls)}unexpected()};function expr_list(closing,allow_trailing_comma,allow_empty){var first=true,a=[];while(!is("punc",closing)){if(first)first=false;else expect(",");if(allow_trailing_comma&&is("punc",closing))break;if(is("punc",",")&&allow_empty){a.push(new AST_Hole({start:S.token,end:S.token}))}else{a.push(expression(false))}}next();return a}var array_=embed_tokens(function(){expect("[");return new AST_Array({elements:expr_list("]",!options.strict,true)})});var create_accessor=embed_tokens(function(){return function_(AST_Accessor)});var object_=embed_tokens(function(){expect("{");var first=true,a=[];while(!is("punc","}")){if(first)first=false;else expect(",");if(!options.strict&&is("punc","}"))break;var start=S.token;var type=start.type;var name=as_property_name();if(type=="name"&&!is("punc",":")){var key=new AST_SymbolAccessor({start:S.token,name:""+as_property_name(),end:prev()});if(name=="get"){a.push(new AST_ObjectGetter({start:start,key:key,value:create_accessor(),end:prev()}));continue}if(name=="set"){a.push(new AST_ObjectSetter({start:start,key:key,value:create_accessor(),end:prev()}));continue}}expect(":");a.push(new AST_ObjectKeyVal({start:start,quote:start.quote,key:""+name,value:expression(false),end:prev()}))}next();return new AST_Object({properties:a})});function as_property_name(){var tmp=S.token;switch(tmp.type){case"operator":if(!KEYWORDS(tmp.value))unexpected();case"num":case"string":case"name":case"keyword":case"atom":next();return tmp.value;default:unexpected()}}function as_name(){var tmp=S.token;if(tmp.type!="name")unexpected();next();return tmp.value}function _make_symbol(type){var name=S.token.value;return new(name=="this"?AST_This:type)({name:String(name),start:S.token,end:S.token})}function strict_verify_symbol(sym){if(sym.name=="arguments"||sym.name=="eval")croak("Unexpected "+sym.name+" in strict mode",sym.start.line,sym.start.col,sym.start.pos)}function as_symbol(type,noerror){if(!is("name")){if(!noerror)croak("Name expected");return null}var sym=_make_symbol(type);if(S.input.has_directive("use strict")&&sym instanceof AST_SymbolDeclaration){strict_verify_symbol(sym)}next();return sym}function mark_pure(call){var start=call.start;var comments=start.comments_before;var i=HOP(start,"comments_before_length")?start.comments_before_length:comments.length;while(--i>=0){var comment=comments[i];if(/[@#]__PURE__/.test(comment.value)){call.pure=comment;break}}}var subscripts=function(expr,allow_calls){var start=expr.start;if(is("punc",".")){next();return subscripts(new AST_Dot({start:start,expression:expr,property:as_name(),end:prev()}),allow_calls)}if(is("punc","[")){next();var prop=expression(true);expect("]");return subscripts(new AST_Sub({start:start,expression:expr,property:prop,end:prev()}),allow_calls)}if(allow_calls&&is("punc","(")){next();var call=new AST_Call({start:start,expression:expr,args:expr_list(")"),end:prev()});mark_pure(call);return subscripts(call,true)}return expr};var maybe_unary=function(allow_calls){var start=S.token;if(is("operator")&&UNARY_PREFIX(start.value)){next();handle_regexp();var ex=make_unary(AST_UnaryPrefix,start,maybe_unary(allow_calls));ex.start=start;ex.end=prev();return ex}var val=expr_atom(allow_calls);while(is("operator")&&UNARY_POSTFIX(S.token.value)&&!has_newline_before(S.token)){val=make_unary(AST_UnaryPostfix,S.token,val);val.start=start;val.end=S.token;next()}return val};function make_unary(ctor,token,expr){var op=token.value;switch(op){case"++":case"--":if(!is_assignable(expr))croak("Invalid use of "+op+" operator",token.line,token.col,token.pos);break;case"delete":if(expr instanceof AST_SymbolRef&&S.input.has_directive("use strict"))croak("Calling delete on expression not allowed in strict mode",expr.start.line,expr.start.col,expr.start.pos);break}return new ctor({operator:op,expression:expr})}var expr_op=function(left,min_prec,no_in){var op=is("operator")?S.token.value:null;if(op=="in"&&no_in)op=null;var prec=op!=null?PRECEDENCE[op]:null;if(prec!=null&&prec>min_prec){next();var right=expr_op(maybe_unary(true),prec,no_in);return expr_op(new AST_Binary({start:left.start,left:left,operator:op,right:right,end:right.end}),min_prec,no_in)}return left};function expr_ops(no_in){return expr_op(maybe_unary(true),0,no_in)}var maybe_conditional=function(no_in){var start=S.token;var expr=expr_ops(no_in);if(is("operator","?")){next();var yes=expression(false);expect(":");return new AST_Conditional({start:start,condition:expr,consequent:yes,alternative:expression(false,no_in),end:prev()})}return expr};function is_assignable(expr){return expr instanceof AST_PropAccess||expr instanceof AST_SymbolRef}var maybe_assign=function(no_in){var start=S.token;var left=maybe_conditional(no_in),val=S.token.value;if(is("operator")&&ASSIGNMENT(val)){if(is_assignable(left)){next();return new AST_Assign({start:start,left:left,operator:val,right:maybe_assign(no_in),end:prev()})}croak("Invalid assignment")}return left};var expression=function(commas,no_in){var start=S.token;var exprs=[];while(true){exprs.push(maybe_assign(no_in));if(!commas||!is("punc",","))break;next();commas=true}return exprs.length==1?exprs[0]:new AST_Sequence({start:start,expressions:exprs,end:peek()})};function in_loop(cont){++S.in_loop;var ret=cont();--S.in_loop;return ret}if(options.expression){return expression(true)}return function(){var start=S.token;var body=[];S.input.push_directives_stack();while(!is("eof"))body.push(statement(true));S.input.pop_directives_stack();var end=prev();var toplevel=options.toplevel;if(toplevel){toplevel.body=toplevel.body.concat(body);toplevel.end=end}else{toplevel=new AST_Toplevel({start:start,body:body,end:end})}return toplevel}()}"use strict";function TreeTransformer(before,after){TreeWalker.call(this);this.before=before;this.after=after}TreeTransformer.prototype=new TreeWalker;(function(undefined){function _(node,descend){node.DEFMETHOD("transform",function(tw,in_list){var x,y;tw.push(this);if(tw.before)x=tw.before(this,descend,in_list);if(x===undefined){x=this;descend(x,tw);if(tw.after){y=tw.after(x,in_list);if(y!==undefined)x=y}}tw.pop();return x})}function do_list(list,tw){return MAP(list,function(node){return node.transform(tw,true)})}_(AST_Node,noop);_(AST_LabeledStatement,function(self,tw){self.label=self.label.transform(tw);self.body=self.body.transform(tw)});_(AST_SimpleStatement,function(self,tw){self.body=self.body.transform(tw)});_(AST_Block,function(self,tw){self.body=do_list(self.body,tw)});_(AST_DWLoop,function(self,tw){self.condition=self.condition.transform(tw);self.body=self.body.transform(tw)});_(AST_For,function(self,tw){if(self.init)self.init=self.init.transform(tw);if(self.condition)self.condition=self.condition.transform(tw);if(self.step)self.step=self.step.transform(tw);self.body=self.body.transform(tw)});_(AST_ForIn,function(self,tw){self.init=self.init.transform(tw);self.object=self.object.transform(tw);self.body=self.body.transform(tw)});_(AST_With,function(self,tw){self.expression=self.expression.transform(tw);self.body=self.body.transform(tw)});_(AST_Exit,function(self,tw){if(self.value)self.value=self.value.transform(tw)});_(AST_LoopControl,function(self,tw){if(self.label)self.label=self.label.transform(tw)});_(AST_If,function(self,tw){self.condition=self.condition.transform(tw);self.body=self.body.transform(tw);if(self.alternative)self.alternative=self.alternative.transform(tw)});_(AST_Switch,function(self,tw){self.expression=self.expression.transform(tw);self.body=do_list(self.body,tw)});_(AST_Case,function(self,tw){self.expression=self.expression.transform(tw);self.body=do_list(self.body,tw)});_(AST_Try,function(self,tw){self.body=do_list(self.body,tw);if(self.bcatch)self.bcatch=self.bcatch.transform(tw);if(self.bfinally)self.bfinally=self.bfinally.transform(tw)});_(AST_Catch,function(self,tw){self.argname=self.argname.transform(tw);self.body=do_list(self.body,tw)});_(AST_Definitions,function(self,tw){self.definitions=do_list(self.definitions,tw)});_(AST_VarDef,function(self,tw){self.name=self.name.transform(tw);if(self.value)self.value=self.value.transform(tw)});_(AST_Lambda,function(self,tw){if(self.name)self.name=self.name.transform(tw);self.argnames=do_list(self.argnames,tw);self.body=do_list(self.body,tw)});_(AST_Call,function(self,tw){self.expression=self.expression.transform(tw);self.args=do_list(self.args,tw)});_(AST_Sequence,function(self,tw){self.expressions=do_list(self.expressions,tw)});_(AST_Dot,function(self,tw){self.expression=self.expression.transform(tw)});_(AST_Sub,function(self,tw){self.expression=self.expression.transform(tw);self.property=self.property.transform(tw)});_(AST_Unary,function(self,tw){self.expression=self.expression.transform(tw)});_(AST_Binary,function(self,tw){self.left=self.left.transform(tw);self.right=self.right.transform(tw)});_(AST_Conditional,function(self,tw){self.condition=self.condition.transform(tw);self.consequent=self.consequent.transform(tw);self.alternative=self.alternative.transform(tw)});_(AST_Array,function(self,tw){self.elements=do_list(self.elements,tw)});_(AST_Object,function(self,tw){self.properties=do_list(self.properties,tw)});_(AST_ObjectProperty,function(self,tw){self.value=self.value.transform(tw)})})();"use strict";function SymbolDef(scope,orig,init){this.name=orig.name;this.orig=[orig];this.init=init;this.eliminated=0;this.scope=scope;this.references=[];this.replaced=0;this.global=false;this.mangled_name=null;this.undeclared=false;this.id=SymbolDef.next_id++}SymbolDef.next_id=1;SymbolDef.prototype={unmangleable:function(options){if(!options)options={};return this.global&&!options.toplevel||this.undeclared||!options.eval&&(this.scope.uses_eval||this.scope.uses_with)||options.keep_fnames&&(this.orig[0]instanceof AST_SymbolLambda||this.orig[0]instanceof AST_SymbolDefun)},mangle:function(options){var cache=options.cache&&options.cache.props;if(this.global&&cache&&cache.has(this.name)){this.mangled_name=cache.get(this.name)}else if(!this.mangled_name&&!this.unmangleable(options)){var s=this.scope;var sym=this.orig[0];if(options.ie8&&sym instanceof AST_SymbolLambda)s=s.parent_scope;var def;if(def=this.redefined()){this.mangled_name=def.mangled_name||def.name}else{this.mangled_name=next_mangled_name(s,options,this)}if(this.global&&cache){cache.set(this.name,this.mangled_name)}}},redefined:function(){return this.defun&&this.defun.variables.get(this.name)}};AST_Toplevel.DEFMETHOD("figure_out_scope",function(options){options=defaults(options,{cache:null,ie8:false});var self=this;var scope=self.parent_scope=null;var labels=new Dictionary;var defun=null;var tw=new TreeWalker(function(node,descend){if(node instanceof AST_Catch){var save_scope=scope;scope=new AST_Scope(node);scope.init_scope_vars(save_scope);descend();scope=save_scope;return true}if(node instanceof AST_Scope){node.init_scope_vars(scope);var save_scope=scope;var save_defun=defun;var save_labels=labels;defun=scope=node;labels=new Dictionary;descend();scope=save_scope;defun=save_defun;labels=save_labels;return true}if(node instanceof AST_LabeledStatement){var l=node.label;if(labels.has(l.name)){throw new Error(string_template("Label {name} defined twice",l))}labels.set(l.name,l);descend();labels.del(l.name);return true}if(node instanceof AST_With){for(var s=scope;s;s=s.parent_scope)s.uses_with=true;return}if(node instanceof AST_Symbol){node.scope=scope}if(node instanceof AST_Label){node.thedef=node;node.references=[]}if(node instanceof AST_SymbolLambda){defun.def_function(node,node.name=="arguments"?undefined:defun)}else if(node instanceof AST_SymbolDefun){(node.scope=defun.parent_scope).def_function(node,defun)}else if(node instanceof AST_SymbolVar){defun.def_variable(node,node.TYPE=="SymbolVar"?null:undefined);if(defun!==scope){node.mark_enclosed(options);var def=scope.find_variable(node);if(node.thedef!==def){node.thedef=def}node.reference(options)}}else if(node instanceof AST_SymbolCatch){scope.def_variable(node).defun=defun}else if(node instanceof AST_LabelRef){var sym=labels.get(node.name);if(!sym)throw new Error(string_template("Undefined label {name} [{line},{col}]",{name:node.name,line:node.start.line,col:node.start.col}));node.thedef=sym}});self.walk(tw);self.globals=new Dictionary;var tw=new TreeWalker(function(node,descend){if(node instanceof AST_LoopControl&&node.label){node.label.thedef.references.push(node);return true}if(node instanceof AST_SymbolRef){var name=node.name;if(name=="eval"&&tw.parent()instanceof AST_Call){for(var s=node.scope;s&&!s.uses_eval;s=s.parent_scope){s.uses_eval=true}}var sym=node.scope.find_variable(name);if(!sym){sym=self.def_global(node)}else if(sym.scope instanceof AST_Lambda&&name=="arguments"){sym.scope.uses_arguments=true}node.thedef=sym;node.reference(options);return true}var def;if(node instanceof AST_SymbolCatch&&(def=node.definition().redefined())){var s=node.scope;while(s){push_uniq(s.enclosed,def);if(s===def.scope)break;s=s.parent_scope}}});self.walk(tw);if(options.ie8){self.walk(new TreeWalker(function(node,descend){if(node instanceof AST_SymbolCatch){var name=node.name;var refs=node.thedef.references;var scope=node.thedef.defun;var def=scope.find_variable(name)||self.globals.get(name)||scope.def_variable(node);refs.forEach(function(ref){ref.thedef=def;ref.reference(options)});node.thedef=def;node.reference(options);return true}}))}});AST_Toplevel.DEFMETHOD("def_global",function(node){var globals=this.globals,name=node.name;if(globals.has(name)){return globals.get(name)}else{var g=new SymbolDef(this,node);g.undeclared=true;g.global=true;globals.set(name,g);return g}});AST_Scope.DEFMETHOD("init_scope_vars",function(parent_scope){this.variables=new Dictionary;this.functions=new Dictionary;this.uses_with=false;this.uses_eval=false;this.parent_scope=parent_scope;this.enclosed=[];this.cname=-1});AST_Lambda.DEFMETHOD("init_scope_vars",function(){AST_Scope.prototype.init_scope_vars.apply(this,arguments);this.uses_arguments=false;this.def_variable(new AST_SymbolFunarg({name:"arguments",start:this.start,end:this.end}))});AST_Symbol.DEFMETHOD("mark_enclosed",function(options){var def=this.definition();var s=this.scope;while(s){push_uniq(s.enclosed,def);if(options.keep_fnames){s.functions.each(function(d){push_uniq(def.scope.enclosed,d)})}if(s===def.scope)break;s=s.parent_scope}});AST_Symbol.DEFMETHOD("reference",function(options){this.definition().references.push(this);this.mark_enclosed(options)});AST_Scope.DEFMETHOD("find_variable",function(name){if(name instanceof AST_Symbol)name=name.name;return this.variables.get(name)||this.parent_scope&&this.parent_scope.find_variable(name)});AST_Scope.DEFMETHOD("def_function",function(symbol,init){var def=this.def_variable(symbol,init);if(!def.init||def.init instanceof AST_Defun)def.init=init;this.functions.set(symbol.name,def);return def});AST_Scope.DEFMETHOD("def_variable",function(symbol,init){var def=this.variables.get(symbol.name);if(def){def.orig.push(symbol);if(def.init&&(def.scope!==symbol.scope||def.init instanceof AST_Function)){def.init=init}}else{def=new SymbolDef(this,symbol,init);this.variables.set(symbol.name,def);def.global=!this.parent_scope}return symbol.thedef=def});function names_in_use(scope,options){var names=scope.names_in_use;if(!names){scope.names_in_use=names=Object.create(scope.mangled_names||null);scope.cname_holes=[];scope.enclosed.forEach(function(def){if(def.unmangleable(options))names[def.name]=true})}return names}function next_mangled_name(scope,options,def){var in_use=names_in_use(scope,options);var holes=scope.cname_holes;var names=Object.create(null);if(scope instanceof AST_Function&&scope.name&&def.orig[0]instanceof AST_SymbolFunarg){var tricky_def=scope.name.definition();names[tricky_def.mangled_name||tricky_def.name]=true}var scopes=[scope];def.references.forEach(function(sym){var scope=sym.scope;do{if(scopes.indexOf(scope)<0){for(var name in names_in_use(scope,options)){names[name]=true}scopes.push(scope)}else break}while(scope=scope.parent_scope)});var name;for(var i=0,len=holes.length;i<len;i++){name=base54(holes[i]);if(names[name])continue;holes.splice(i,1);scope.names_in_use[name]=true;return name}while(true){name=base54(++scope.cname);if(in_use[name]||!is_identifier(name)||member(name,options.reserved))continue;if(!names[name])break;holes.push(scope.cname)}scope.names_in_use[name]=true;return name}AST_Symbol.DEFMETHOD("unmangleable",function(options){var def=this.definition();return!def||def.unmangleable(options)});AST_Label.DEFMETHOD("unmangleable",return_false);AST_Symbol.DEFMETHOD("unreferenced",function(){return this.definition().references.length==0&&!(this.scope.uses_eval||this.scope.uses_with)});AST_Symbol.DEFMETHOD("definition",function(){return this.thedef});AST_Symbol.DEFMETHOD("global",function(){return this.definition().global});function _default_mangler_options(options){options=defaults(options,{eval:false,ie8:false,keep_fnames:false,reserved:[],toplevel:false});if(!Array.isArray(options.reserved))options.reserved=[];push_uniq(options.reserved,"arguments");return options}AST_Toplevel.DEFMETHOD("mangle_names",function(options){options=_default_mangler_options(options);var lname=-1;if(options.cache&&options.cache.props){var mangled_names=this.mangled_names=Object.create(null);options.cache.props.each(function(mangled_name){mangled_names[mangled_name]=true})}var redefined=[];var tw=new TreeWalker(function(node,descend){if(node instanceof AST_LabeledStatement){var save_nesting=lname;descend();lname=save_nesting;return true}if(node instanceof AST_Scope){descend();if(options.cache&&node instanceof AST_Toplevel){node.globals.each(mangle)}node.variables.each(mangle);return true}if(node instanceof AST_Label){var name;do{name=base54(++lname)}while(!is_identifier(name));node.mangled_name=name;return true}if(!options.ie8&&node instanceof AST_Catch){var def=node.argname.definition();var redef=def.redefined();if(redef){redefined.push(def);def.references.forEach(function(ref){ref.thedef=redef;ref.reference(options);ref.thedef=def})}descend();if(!redef)mangle(def);return true}});this.walk(tw);redefined.forEach(mangle);function mangle(def){if(!member(def.name,options.reserved)){def.mangle(options)}}});AST_Toplevel.DEFMETHOD("find_colliding_names",function(options){var cache=options.cache&&options.cache.props;var avoid=Object.create(null);options.reserved.forEach(to_avoid);this.globals.each(add_def);this.walk(new TreeWalker(function(node){if(node instanceof AST_Scope)node.variables.each(add_def);if(node instanceof AST_SymbolCatch)add_def(node.definition())}));return avoid;function to_avoid(name){avoid[name]=true}function add_def(def){var name=def.name;if(def.global&&cache&&cache.has(name))name=cache.get(name);else if(!def.unmangleable(options))return;to_avoid(name)}});AST_Toplevel.DEFMETHOD("expand_names",function(options){base54.reset();base54.sort();options=_default_mangler_options(options);var avoid=this.find_colliding_names(options);var cname=0;this.globals.each(rename);this.walk(new TreeWalker(function(node){if(node instanceof AST_Scope)node.variables.each(rename);if(node instanceof AST_SymbolCatch)rename(node.definition())}));function next_name(){var name;do{name=base54(cname++)}while(avoid[name]||!is_identifier(name));return name}function rename(def){if(def.global&&options.cache)return;if(def.unmangleable(options))return;if(member(def.name,options.reserved))return;var d=def.redefined();def.name=d?d.name:next_name();def.orig.forEach(function(sym){sym.name=def.name});def.references.forEach(function(sym){sym.name=def.name})}});AST_Node.DEFMETHOD("tail_node",return_this);AST_Sequence.DEFMETHOD("tail_node",function(){return this.expressions[this.expressions.length-1]});AST_Toplevel.DEFMETHOD("compute_char_frequency",function(options){options=_default_mangler_options(options);base54.reset();try{AST_Node.prototype.print=function(stream,force_parens){this._print(stream,force_parens);if(this instanceof AST_Symbol&&!this.unmangleable(options)){base54.consider(this.name,-1)}else if(options.properties){if(this instanceof AST_Dot){base54.consider(this.property,-1)}else if(this instanceof AST_Sub){skip_string(this.property)}}};base54.consider(this.print_to_string(),1)}finally{AST_Node.prototype.print=AST_Node.prototype._print}base54.sort();function skip_string(node){if(node instanceof AST_String){base54.consider(node.value,-1)}else if(node instanceof AST_Conditional){skip_string(node.consequent);skip_string(node.alternative)}else if(node instanceof AST_Sequence){skip_string(node.tail_node())}}});var base54=function(){var leading="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_".split("");var digits="0123456789".split("");var chars,frequency;function reset(){frequency=Object.create(null);leading.forEach(function(ch){frequency[ch]=0});digits.forEach(function(ch){frequency[ch]=0})}base54.consider=function(str,delta){for(var i=str.length;--i>=0;){frequency[str[i]]+=delta}};function compare(a,b){return frequency[b]-frequency[a]}base54.sort=function(){chars=mergeSort(leading,compare).concat(mergeSort(digits,compare))};base54.reset=reset;reset();function base54(num){var ret="",base=54;num++;do{num--;ret+=chars[num%base];num=Math.floor(num/base);base=64}while(num>0);return ret}return base54}();"use strict";var EXPECT_DIRECTIVE=/^$|[;{][\s\n]*$/;function is_some_comments(comment){return comment.type=="comment2"&&/@preserve|@license|@cc_on/i.test(comment.value)}function OutputStream(options){var readonly=!options;options=defaults(options,{ascii_only:false,beautify:false,bracketize:false,comments:false,ie8:false,indent_level:4,indent_start:0,inline_script:true,keep_quoted_props:false,max_line_len:false,preamble:null,preserve_line:false,quote_keys:false,quote_style:0,semicolons:true,shebang:true,source_map:null,webkit:false,width:80,wrap_iife:false},true);var comment_filter=return_false;if(options.comments){var comments=options.comments;if(typeof options.comments==="string"&&/^\/.*\/[a-zA-Z]*$/.test(options.comments)){var regex_pos=options.comments.lastIndexOf("/");comments=new RegExp(options.comments.substr(1,regex_pos-1),options.comments.substr(regex_pos+1))}if(comments instanceof RegExp){comment_filter=function(comment){return comment.type!="comment5"&&comments.test(comment.value)}}else if(typeof comments==="function"){comment_filter=function(comment){return comment.type!="comment5"&&comments(this,comment)}}else if(comments==="some"){comment_filter=is_some_comments}else{comment_filter=return_true}}var indentation=0;var current_col=0;var current_line=1;var current_pos=0;var OUTPUT="";var to_utf8=options.ascii_only?function(str,identifier){return str.replace(/[\u0000-\u001f\u007f-\uffff]/g,function(ch){var code=ch.charCodeAt(0).toString(16);if(code.length<=2&&!identifier){while(code.length<2)code="0"+code;return"\\x"+code}else{while(code.length<4)code="0"+code;return"\\u"+code}})}:function(str){var s="";for(var i=0,len=str.length;i<len;i++){if(is_surrogate_pair_head(str[i])&&!is_surrogate_pair_tail(str[i+1])||is_surrogate_pair_tail(str[i])&&!is_surrogate_pair_head(str[i-1])){s+="\\u"+str.charCodeAt(i).toString(16)}else{s+=str[i]}}return s};function make_string(str,quote){var dq=0,sq=0;str=str.replace(/[\\\b\f\n\r\v\t\x22\x27\u2028\u2029\0\ufeff]/g,function(s,i){switch(s){case'"':++dq;return'"';case"'":++sq;return"'";case"\\":return"\\\\";case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\v":return options.ie8?"\\x0B":"\\v";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";case"\ufeff":return"\\ufeff";case"\0":return/[0-9]/.test(str.charAt(i+1))?"\\x00":"\\0"}return s});function quote_single(){return"'"+str.replace(/\x27/g,"\\'")+"'"}function quote_double(){return'"'+str.replace(/\x22/g,'\\"')+'"'}str=to_utf8(str);switch(options.quote_style){case 1:return quote_single();case 2:return quote_double();case 3:return quote=="'"?quote_single():quote_double();default:return dq>sq?quote_single():quote_double()}}function encode_string(str,quote){var ret=make_string(str,quote);if(options.inline_script){ret=ret.replace(/<\x2fscript([>\/\t\n\f\r ])/gi,"<\\/script$1");ret=ret.replace(/\x3c!--/g,"\\x3c!--");ret=ret.replace(/--\x3e/g,"--\\x3e")}return ret}function make_name(name){name=name.toString();name=to_utf8(name,true);return name}function make_indent(back){return repeat_string(" ",options.indent_start+indentation-back*options.indent_level)}var might_need_space=false;var might_need_semicolon=false;var might_add_newline=0;var need_newline_indented=false;var need_space=false;var newline_insert=-1;var last="";var mapping_token,mapping_name,mappings=options.source_map&&[];var do_add_mapping=mappings?function(){mappings.forEach(function(mapping){try{options.source_map.add(mapping.token.file,mapping.line,mapping.col,mapping.token.line,mapping.token.col,!mapping.name&&mapping.token.type=="name"?mapping.token.value:mapping.name)}catch(ex){AST_Node.warn("Couldn't figure out mapping for {file}:{line},{col} → {cline},{ccol} [{name}]",{file:mapping.token.file,line:mapping.token.line,col:mapping.token.col,cline:mapping.line,ccol:mapping.col,name:mapping.name||""})}});mappings=[]}:noop;var ensure_line_len=options.max_line_len?function(){if(current_col>options.max_line_len){if(might_add_newline){var left=OUTPUT.slice(0,might_add_newline);var right=OUTPUT.slice(might_add_newline);if(mappings){var delta=right.length-current_col;mappings.forEach(function(mapping){mapping.line++;mapping.col+=delta})}OUTPUT=left+"\n"+right;current_line++;current_pos++;current_col=right.length}if(current_col>options.max_line_len){AST_Node.warn("Output exceeds {max_line_len} characters",options)}}if(might_add_newline){might_add_newline=0;do_add_mapping()}}:noop;var requireSemicolonChars=makePredicate("( [ + * / - , .");function print(str){str=String(str);var ch=str.charAt(0);if(need_newline_indented&&ch){need_newline_indented=false;if(ch!="\n"){print("\n");indent()}}if(need_space&&ch){need_space=false;if(!/[\s;})]/.test(ch)){space()}}newline_insert=-1;var prev=last.charAt(last.length-1);if(might_need_semicolon){might_need_semicolon=false;if(prev==":"&&ch=="}"||(!ch||";}".indexOf(ch)<0)&&prev!=";"){if(options.semicolons||requireSemicolonChars(ch)){OUTPUT+=";";current_col++;current_pos++}else{ensure_line_len();OUTPUT+="\n";current_pos++;current_line++;current_col=0;if(/^\s+$/.test(str)){might_need_semicolon=true}}if(!options.beautify)might_need_space=false}}if(!options.beautify&&options.preserve_line&&stack[stack.length-1]){var target_line=stack[stack.length-1].start.line;while(current_line<target_line){ensure_line_len();OUTPUT+="\n";current_pos++;current_line++;current_col=0;might_need_space=false}}if(might_need_space){if(is_identifier_char(prev)&&(is_identifier_char(ch)||ch=="\\")||ch=="/"&&ch==prev||(ch=="+"||ch=="-")&&ch==last){OUTPUT+=" ";current_col++;current_pos++}might_need_space=false}if(mapping_token){mappings.push({token:mapping_token,name:mapping_name,line:current_line,col:current_col});mapping_token=false;if(!might_add_newline)do_add_mapping()}OUTPUT+=str;current_pos+=str.length;var a=str.split(/\r?\n/),n=a.length-1;current_line+=n;current_col+=a[0].length;if(n>0){ensure_line_len();current_col=a[n].length}last=str}var space=options.beautify?function(){print(" ")}:function(){might_need_space=true};var indent=options.beautify?function(half){if(options.beautify){print(make_indent(half?.5:0))}}:noop;var with_indent=options.beautify?function(col,cont){if(col===true)col=next_indent();var save_indentation=indentation;indentation=col;var ret=cont();indentation=save_indentation;return ret}:function(col,cont){return cont()};var newline=options.beautify?function(){if(newline_insert<0)return print("\n");if(OUTPUT[newline_insert]!="\n"){OUTPUT=OUTPUT.slice(0,newline_insert)+"\n"+OUTPUT.slice(newline_insert);current_pos++;current_line++}newline_insert++}:options.max_line_len?function(){ensure_line_len();might_add_newline=OUTPUT.length}:noop;var semicolon=options.beautify?function(){print(";")}:function(){might_need_semicolon=true};function force_semicolon(){might_need_semicolon=false;print(";")}function next_indent(){return indentation+options.indent_level}function with_block(cont){var ret;print("{");newline();with_indent(next_indent(),function(){ret=cont()});indent();print("}");return ret}function with_parens(cont){print("(");var ret=cont();print(")");return ret}function with_square(cont){print("[");var ret=cont();print("]");return ret}function comma(){print(",");space()}function colon(){print(":");space()}var add_mapping=mappings?function(token,name){mapping_token=token;mapping_name=name}:noop;function get(){if(might_add_newline){ensure_line_len()}return OUTPUT}function has_nlb(){var index=OUTPUT.lastIndexOf("\n");return/^ *$/.test(OUTPUT.slice(index+1))}function prepend_comments(node){var self=this;var start=node.start;if(!start)return;if(start.comments_before&&start.comments_before._dumped===self)return;var comments=start.comments_before;if(!comments){comments=start.comments_before=[]}comments._dumped=self;if(node instanceof AST_Exit&&node.value){var tw=new TreeWalker(function(node){var parent=tw.parent();if(parent instanceof AST_Exit||parent instanceof AST_Binary&&parent.left===node||parent.TYPE=="Call"&&parent.expression===node||parent instanceof AST_Conditional&&parent.condition===node||parent instanceof AST_Dot&&parent.expression===node||parent instanceof AST_Sequence&&parent.expressions[0]===node||parent instanceof AST_Sub&&parent.expression===node||parent instanceof AST_UnaryPostfix){var text=node.start.comments_before;if(text&&text._dumped!==self){text._dumped=self;comments=comments.concat(text)}}else{return true}});tw.push(node);node.value.walk(tw)}if(current_pos==0){if(comments.length>0&&options.shebang&&comments[0].type=="comment5"){print("#!"+comments.shift().value+"\n");indent()}var preamble=options.preamble;if(preamble){print(preamble.replace(/\r\n?|[\n\u2028\u2029]|\s*$/g,"\n"))}}comments=comments.filter(comment_filter,node);if(comments.length==0)return;var last_nlb=has_nlb();comments.forEach(function(c,i){if(!last_nlb){if(c.nlb){print("\n");indent();last_nlb=true}else if(i>0){space()}}if(/comment[134]/.test(c.type)){print("//"+c.value.replace(/[@#]__PURE__/g," ")+"\n");indent();last_nlb=true}else if(c.type=="comment2"){print("/*"+c.value.replace(/[@#]__PURE__/g," ")+"*/");last_nlb=false}});if(!last_nlb){if(start.nlb){print("\n");indent()}else{space()}}}function append_comments(node,tail){var self=this;var token=node.end;if(!token)return;var comments=token[tail?"comments_before":"comments_after"];if(!comments||comments._dumped===self)return;if(!(node instanceof AST_Statement||all(comments,function(c){return!/comment[134]/.test(c.type)})))return;comments._dumped=self;var insert=OUTPUT.length;comments.filter(comment_filter,node).forEach(function(c,i){need_space=false;if(need_newline_indented){print("\n");indent();need_newline_indented=false}else if(c.nlb&&(i>0||!has_nlb())){print("\n");indent()}else if(i>0||!tail){space()}if(/comment[134]/.test(c.type)){print("//"+c.value.replace(/[@#]__PURE__/g," "));need_newline_indented=true}else if(c.type=="comment2"){print("/*"+c.value.replace(/[@#]__PURE__/g," ")+"*/");need_space=true}});if(OUTPUT.length>insert)newline_insert=insert}var stack=[];return{get:get,toString:get,indent:indent,indentation:function(){return indentation},current_width:function(){return current_col-indentation},should_break:function(){return options.width&&this.current_width()>=options.width},has_parens:function(){return OUTPUT.slice(-1)=="("},newline:newline,print:print,space:space,comma:comma,colon:colon,last:function(){return last},semicolon:semicolon,force_semicolon:force_semicolon,to_utf8:to_utf8,print_name:function(name){print(make_name(name))},print_string:function(str,quote,escape_directive){var encoded=encode_string(str,quote);if(escape_directive===true&&encoded.indexOf("\\")===-1){if(!EXPECT_DIRECTIVE.test(OUTPUT)){force_semicolon()}force_semicolon()}print(encoded)},encode_string:encode_string,next_indent:next_indent,with_indent:with_indent,with_block:with_block,with_parens:with_parens,with_square:with_square,add_mapping:add_mapping,option:function(opt){return options[opt]},prepend_comments:readonly?noop:prepend_comments,append_comments:readonly||comment_filter===return_false?noop:append_comments,line:function(){return current_line},col:function(){return current_col},pos:function(){return current_pos},push_node:function(node){stack.push(node)},pop_node:function(){return stack.pop()},parent:function(n){return stack[stack.length-2-(n||0)]}}}(function(){function DEFPRINT(nodetype,generator){nodetype.DEFMETHOD("_codegen",generator)}var in_directive=false;var active_scope=null;var use_asm=null;AST_Node.DEFMETHOD("print",function(stream,force_parens){var self=this,generator=self._codegen;if(self instanceof AST_Scope){active_scope=self}else if(!use_asm&&self instanceof AST_Directive&&self.value=="use asm"){use_asm=active_scope}function doit(){stream.prepend_comments(self);self.add_source_map(stream);generator(self,stream);stream.append_comments(self)}stream.push_node(self);if(force_parens||self.needs_parens(stream)){stream.with_parens(doit)}else{doit()}stream.pop_node();if(self===use_asm){use_asm=null}});AST_Node.DEFMETHOD("_print",AST_Node.prototype.print);AST_Node.DEFMETHOD("print_to_string",function(options){var s=OutputStream(options);this.print(s);return s.get()});function PARENS(nodetype,func){if(Array.isArray(nodetype)){nodetype.forEach(function(nodetype){PARENS(nodetype,func)})}else{nodetype.DEFMETHOD("needs_parens",func)}}PARENS(AST_Node,return_false);PARENS(AST_Function,function(output){if(!output.has_parens()&&first_in_statement(output)){return true}if(output.option("webkit")){var p=output.parent();if(p instanceof AST_PropAccess&&p.expression===this){return true}}if(output.option("wrap_iife")){var p=output.parent();return p instanceof AST_Call&&p.expression===this}return false});PARENS(AST_Object,function(output){return!output.has_parens()&&first_in_statement(output)});PARENS(AST_Unary,function(output){var p=output.parent();return p instanceof AST_PropAccess&&p.expression===this||p instanceof AST_Call&&p.expression===this});PARENS(AST_Sequence,function(output){var p=output.parent();return p instanceof AST_Call||p instanceof AST_Unary||p instanceof AST_Binary||p instanceof AST_VarDef||p instanceof AST_PropAccess||p instanceof AST_Array||p instanceof AST_ObjectProperty||p instanceof AST_Conditional});PARENS(AST_Binary,function(output){var p=output.parent();if(p instanceof AST_Call&&p.expression===this)return true;if(p instanceof AST_Unary)return true;if(p instanceof AST_PropAccess&&p.expression===this)return true;if(p instanceof AST_Binary){var po=p.operator,pp=PRECEDENCE[po];var so=this.operator,sp=PRECEDENCE[so];if(pp>sp||pp==sp&&this===p.right){return true}}});PARENS(AST_PropAccess,function(output){var p=output.parent();if(p instanceof AST_New&&p.expression===this){var parens=false;this.walk(new TreeWalker(function(node){if(parens||node instanceof AST_Scope)return true;if(node instanceof AST_Call){parens=true;return true}}));return parens}});PARENS(AST_Call,function(output){var p=output.parent(),p1;if(p instanceof AST_New&&p.expression===this)return true;return this.expression instanceof AST_Function&&p instanceof AST_PropAccess&&p.expression===this&&(p1=output.parent(1))instanceof AST_Assign&&p1.left===p});PARENS(AST_New,function(output){var p=output.parent();if(!need_constructor_parens(this,output)&&(p instanceof AST_PropAccess||p instanceof AST_Call&&p.expression===this))return true});PARENS(AST_Number,function(output){var p=output.parent();if(p instanceof AST_PropAccess&&p.expression===this){var value=this.getValue();if(value<0||/^0/.test(make_num(value))){return true}}});PARENS([AST_Assign,AST_Conditional],function(output){var p=output.parent();if(p instanceof AST_Unary)return true;if(p instanceof AST_Binary&&!(p instanceof AST_Assign))return true;if(p instanceof AST_Call&&p.expression===this)return true;if(p instanceof AST_Conditional&&p.condition===this)return true;if(p instanceof AST_PropAccess&&p.expression===this)return true});DEFPRINT(AST_Directive,function(self,output){output.print_string(self.value,self.quote);output.semicolon()});DEFPRINT(AST_Debugger,function(self,output){output.print("debugger");output.semicolon()});function display_body(body,is_toplevel,output,allow_directives){var last=body.length-1;in_directive=allow_directives;body.forEach(function(stmt,i){if(in_directive===true&&!(stmt instanceof AST_Directive||stmt instanceof AST_EmptyStatement||stmt instanceof AST_SimpleStatement&&stmt.body instanceof AST_String)){in_directive=false}if(!(stmt instanceof AST_EmptyStatement)){output.indent();stmt.print(output);if(!(i==last&&is_toplevel)){output.newline();if(is_toplevel)output.newline()}}if(in_directive===true&&stmt instanceof AST_SimpleStatement&&stmt.body instanceof AST_String){in_directive=false}});in_directive=false}AST_StatementWithBody.DEFMETHOD("_do_print_body",function(output){force_statement(this.body,output)});DEFPRINT(AST_Statement,function(self,output){self.body.print(output);output.semicolon()});DEFPRINT(AST_Toplevel,function(self,output){display_body(self.body,true,output,true);output.print("")});DEFPRINT(AST_LabeledStatement,function(self,output){self.label.print(output);output.colon();self.body.print(output)});DEFPRINT(AST_SimpleStatement,function(self,output){self.body.print(output);output.semicolon()});function print_bracketed(self,output,allow_directives){if(self.body.length>0){output.with_block(function(){display_body(self.body,false,output,allow_directives)})}else{output.print("{");output.with_indent(output.next_indent(),function(){output.append_comments(self,true)});output.print("}")}}DEFPRINT(AST_BlockStatement,function(self,output){print_bracketed(self,output)});DEFPRINT(AST_EmptyStatement,function(self,output){output.semicolon()});DEFPRINT(AST_Do,function(self,output){output.print("do");output.space();make_block(self.body,output);output.space();output.print("while");output.space();output.with_parens(function(){self.condition.print(output)});output.semicolon()});DEFPRINT(AST_While,function(self,output){output.print("while");output.space();output.with_parens(function(){self.condition.print(output)});output.space();self._do_print_body(output)});DEFPRINT(AST_For,function(self,output){output.print("for");output.space();output.with_parens(function(){if(self.init){if(self.init instanceof AST_Definitions){self.init.print(output)}else{parenthesize_for_noin(self.init,output,true)}output.print(";");output.space()}else{output.print(";")}if(self.condition){self.condition.print(output);output.print(";");output.space()}else{output.print(";")}if(self.step){self.step.print(output)}});output.space();self._do_print_body(output)});DEFPRINT(AST_ForIn,function(self,output){output.print("for");output.space();output.with_parens(function(){self.init.print(output);output.space();output.print("in");output.space();self.object.print(output)});output.space();self._do_print_body(output)});DEFPRINT(AST_With,function(self,output){output.print("with");output.space();output.with_parens(function(){self.expression.print(output)});output.space();self._do_print_body(output)});AST_Lambda.DEFMETHOD("_do_print",function(output,nokeyword){var self=this;if(!nokeyword){output.print("function")}if(self.name){output.space();self.name.print(output)}output.with_parens(function(){self.argnames.forEach(function(arg,i){if(i)output.comma();arg.print(output)})});output.space();print_bracketed(self,output,true)});DEFPRINT(AST_Lambda,function(self,output){self._do_print(output)});AST_Exit.DEFMETHOD("_do_print",function(output,kind){output.print(kind);if(this.value){output.space();this.value.print(output)}output.semicolon()});DEFPRINT(AST_Return,function(self,output){self._do_print(output,"return")});DEFPRINT(AST_Throw,function(self,output){self._do_print(output,"throw")});AST_LoopControl.DEFMETHOD("_do_print",function(output,kind){output.print(kind);if(this.label){output.space();this.label.print(output)}output.semicolon()});DEFPRINT(AST_Break,function(self,output){self._do_print(output,"break")});DEFPRINT(AST_Continue,function(self,output){self._do_print(output,"continue")});function make_then(self,output){var b=self.body;if(output.option("bracketize")||output.option("ie8")&&b instanceof AST_Do)return make_block(b,output);if(!b)return output.force_semicolon();while(true){if(b instanceof AST_If){if(!b.alternative){make_block(self.body,output);return}b=b.alternative}else if(b instanceof AST_StatementWithBody){b=b.body}else break}force_statement(self.body,output)}DEFPRINT(AST_If,function(self,output){output.print("if");output.space();output.with_parens(function(){self.condition.print(output)});output.space();if(self.alternative){make_then(self,output);output.space();output.print("else");output.space();if(self.alternative instanceof AST_If)self.alternative.print(output);else force_statement(self.alternative,output)}else{self._do_print_body(output)}});DEFPRINT(AST_Switch,function(self,output){output.print("switch");output.space();output.with_parens(function(){self.expression.print(output)});output.space();var last=self.body.length-1;if(last<0)output.print("{}");else output.with_block(function(){self.body.forEach(function(branch,i){output.indent(true);branch.print(output);if(i<last&&branch.body.length>0)output.newline()})})});AST_SwitchBranch.DEFMETHOD("_do_print_body",function(output){output.newline();this.body.forEach(function(stmt){output.indent();stmt.print(output);output.newline()})});DEFPRINT(AST_Default,function(self,output){output.print("default:");self._do_print_body(output)});DEFPRINT(AST_Case,function(self,output){output.print("case");output.space();self.expression.print(output);output.print(":");self._do_print_body(output)});DEFPRINT(AST_Try,function(self,output){output.print("try");output.space();print_bracketed(self,output);if(self.bcatch){output.space();self.bcatch.print(output)}if(self.bfinally){output.space();self.bfinally.print(output)}});DEFPRINT(AST_Catch,function(self,output){output.print("catch");output.space();output.with_parens(function(){self.argname.print(output)});output.space();print_bracketed(self,output)});DEFPRINT(AST_Finally,function(self,output){output.print("finally");output.space();print_bracketed(self,output)});AST_Definitions.DEFMETHOD("_do_print",function(output,kind){output.print(kind);output.space();this.definitions.forEach(function(def,i){if(i)output.comma();def.print(output)});var p=output.parent();var in_for=p instanceof AST_For||p instanceof AST_ForIn;var avoid_semicolon=in_for&&p.init===this;if(!avoid_semicolon)output.semicolon()});DEFPRINT(AST_Var,function(self,output){self._do_print(output,"var")});function parenthesize_for_noin(node,output,noin){var parens=false;if(noin)node.walk(new TreeWalker(function(node){if(parens||node instanceof AST_Scope)return true;if(node instanceof AST_Binary&&node.operator=="in"){parens=true;return true}}));node.print(output,parens)}DEFPRINT(AST_VarDef,function(self,output){self.name.print(output);if(self.value){output.space();output.print("=");output.space();var p=output.parent(1);var noin=p instanceof AST_For||p instanceof AST_ForIn;parenthesize_for_noin(self.value,output,noin)}});DEFPRINT(AST_Call,function(self,output){self.expression.print(output);if(self instanceof AST_New&&!need_constructor_parens(self,output))return;if(self.expression instanceof AST_Call||self.expression instanceof AST_Lambda){output.add_mapping(self.start)}output.with_parens(function(){self.args.forEach(function(expr,i){if(i)output.comma();expr.print(output)})})});DEFPRINT(AST_New,function(self,output){output.print("new");output.space();AST_Call.prototype._codegen(self,output)});AST_Sequence.DEFMETHOD("_do_print",function(output){this.expressions.forEach(function(node,index){if(index>0){output.comma();if(output.should_break()){output.newline();output.indent()}}node.print(output)})});DEFPRINT(AST_Sequence,function(self,output){self._do_print(output)});DEFPRINT(AST_Dot,function(self,output){var expr=self.expression;expr.print(output);var prop=self.property;if(output.option("ie8")&&RESERVED_WORDS(prop)){output.print("[");output.add_mapping(self.end);output.print_string(prop);output.print("]")}else{if(expr instanceof AST_Number&&expr.getValue()>=0){if(!/[xa-f.)]/i.test(output.last())){output.print(".")}}output.print(".");output.add_mapping(self.end);output.print_name(prop)}});DEFPRINT(AST_Sub,function(self,output){self.expression.print(output);output.print("[");self.property.print(output);output.print("]")});DEFPRINT(AST_UnaryPrefix,function(self,output){var op=self.operator;output.print(op);if(/^[a-z]/i.test(op)||/[+-]$/.test(op)&&self.expression instanceof AST_UnaryPrefix&&/^[+-]/.test(self.expression.operator)){output.space()}self.expression.print(output)});DEFPRINT(AST_UnaryPostfix,function(self,output){self.expression.print(output);output.print(self.operator)});DEFPRINT(AST_Binary,function(self,output){var op=self.operator;self.left.print(output);if(op[0]==">"&&self.left instanceof AST_UnaryPostfix&&self.left.operator=="--"){output.print(" ")}else{output.space()}output.print(op);if((op=="<"||op=="<<")&&self.right instanceof AST_UnaryPrefix&&self.right.operator=="!"&&self.right.expression instanceof AST_UnaryPrefix&&self.right.expression.operator=="--"){output.print(" ")}else{output.space()}self.right.print(output)});DEFPRINT(AST_Conditional,function(self,output){self.condition.print(output);output.space();output.print("?");output.space();self.consequent.print(output);output.space();output.colon();self.alternative.print(output)});DEFPRINT(AST_Array,function(self,output){output.with_square(function(){var a=self.elements,len=a.length;if(len>0)output.space();a.forEach(function(exp,i){if(i)output.comma();exp.print(output);if(i===len-1&&exp instanceof AST_Hole)output.comma()});if(len>0)output.space()})});DEFPRINT(AST_Object,function(self,output){if(self.properties.length>0)output.with_block(function(){self.properties.forEach(function(prop,i){if(i){output.print(",");output.newline()}output.indent();prop.print(output)});output.newline()});else output.print("{}")});function print_property_name(key,quote,output){if(output.option("quote_keys")){output.print_string(key)}else if(""+ +key==key&&key>=0){output.print(make_num(key))}else if(RESERVED_WORDS(key)?!output.option("ie8"):is_identifier_string(key)){if(quote&&output.option("keep_quoted_props")){output.print_string(key,quote)}else{output.print_name(key)}}else{output.print_string(key,quote)}}DEFPRINT(AST_ObjectKeyVal,function(self,output){print_property_name(self.key,self.quote,output);output.colon();self.value.print(output)});AST_ObjectProperty.DEFMETHOD("_print_getter_setter",function(type,output){output.print(type);output.space();print_property_name(this.key.name,this.quote,output);this.value._do_print(output,true)});DEFPRINT(AST_ObjectSetter,function(self,output){self._print_getter_setter("set",output)});DEFPRINT(AST_ObjectGetter,function(self,output){self._print_getter_setter("get",output)});DEFPRINT(AST_Symbol,function(self,output){var def=self.definition();output.print_name(def?def.mangled_name||def.name:self.name)});DEFPRINT(AST_Hole,noop);DEFPRINT(AST_This,function(self,output){output.print("this")});DEFPRINT(AST_Constant,function(self,output){output.print(self.getValue())});DEFPRINT(AST_String,function(self,output){output.print_string(self.getValue(),self.quote,in_directive)});DEFPRINT(AST_Number,function(self,output){if(use_asm&&self.start&&self.start.raw!=null){output.print(self.start.raw)}else{output.print(make_num(self.getValue()))}});DEFPRINT(AST_RegExp,function(self,output){var regexp=self.getValue();var str=regexp.toString();if(regexp.raw_source){str="/"+regexp.raw_source+str.slice(str.lastIndexOf("/"))}str=output.to_utf8(str);output.print(str);var p=output.parent();if(p instanceof AST_Binary&&/^in/.test(p.operator)&&p.left===self)output.print(" ")});function force_statement(stat,output){if(output.option("bracketize")){make_block(stat,output)}else{if(!stat||stat instanceof AST_EmptyStatement)output.force_semicolon();else stat.print(output)}}function need_constructor_parens(self,output){if(self.args.length>0)return true;return output.option("beautify")}function best_of(a){var best=a[0],len=best.length;for(var i=1;i<a.length;++i){if(a[i].length<len){best=a[i];len=best.length}}return best}function make_num(num){var str=num.toString(10),a=[str.replace(/^0\./,".").replace("e+","e")],m;if(Math.floor(num)===num){if(num>=0){a.push("0x"+num.toString(16).toLowerCase(),"0"+num.toString(8))}else{a.push("-0x"+(-num).toString(16).toLowerCase(),"-0"+(-num).toString(8))}if(m=/^(.*?)(0+)$/.exec(num)){a.push(m[1]+"e"+m[2].length)}}else if(m=/^0?\.(0+)(.*)$/.exec(num)){a.push(m[2]+"e-"+(m[1].length+m[2].length),str.substr(str.indexOf(".")))}return best_of(a)}function make_block(stmt,output){if(!stmt||stmt instanceof AST_EmptyStatement)output.print("{}");else if(stmt instanceof AST_BlockStatement)stmt.print(output);else output.with_block(function(){output.indent();stmt.print(output);output.newline()})}function DEFMAP(nodetype,generator){nodetype.DEFMETHOD("add_source_map",function(stream){generator(this,stream)})}DEFMAP(AST_Node,noop);function basic_sourcemap_gen(self,output){output.add_mapping(self.start)}DEFMAP(AST_Directive,basic_sourcemap_gen);DEFMAP(AST_Debugger,basic_sourcemap_gen);DEFMAP(AST_Symbol,basic_sourcemap_gen);DEFMAP(AST_Jump,basic_sourcemap_gen);DEFMAP(AST_StatementWithBody,basic_sourcemap_gen);DEFMAP(AST_LabeledStatement,noop);DEFMAP(AST_Lambda,basic_sourcemap_gen);DEFMAP(AST_Switch,basic_sourcemap_gen);DEFMAP(AST_SwitchBranch,basic_sourcemap_gen);DEFMAP(AST_BlockStatement,basic_sourcemap_gen);DEFMAP(AST_Toplevel,noop);DEFMAP(AST_New,basic_sourcemap_gen);DEFMAP(AST_Try,basic_sourcemap_gen);DEFMAP(AST_Catch,basic_sourcemap_gen);DEFMAP(AST_Finally,basic_sourcemap_gen);DEFMAP(AST_Definitions,basic_sourcemap_gen);DEFMAP(AST_Constant,basic_sourcemap_gen);DEFMAP(AST_ObjectSetter,function(self,output){output.add_mapping(self.start,self.key.name)});DEFMAP(AST_ObjectGetter,function(self,output){output.add_mapping(self.start,self.key.name)});DEFMAP(AST_ObjectProperty,function(self,output){output.add_mapping(self.start,self.key)})})();"use strict";function Compressor(options,false_by_default){if(!(this instanceof Compressor))return new Compressor(options,false_by_default);TreeTransformer.call(this,this.before,this.after);this.options=defaults(options,{arguments:!false_by_default,booleans:!false_by_default,collapse_vars:!false_by_default,comparisons:!false_by_default,conditionals:!false_by_default,dead_code:!false_by_default,drop_console:false,drop_debugger:!false_by_default,evaluate:!false_by_default,expression:false,global_defs:{},hoist_funs:false,hoist_props:!false_by_default,hoist_vars:false,ie8:false,if_return:!false_by_default,inline:!false_by_default,join_vars:!false_by_default,keep_fargs:true,keep_fnames:false,keep_infinity:false,loops:!false_by_default,negate_iife:!false_by_default,passes:1,properties:!false_by_default,pure_getters:!false_by_default&&"strict",pure_funcs:null,reduce_funcs:!false_by_default,reduce_vars:!false_by_default,sequences:!false_by_default,side_effects:!false_by_default,switches:!false_by_default,top_retain:null,toplevel:!!(options&&options["top_retain"]),typeofs:!false_by_default,unsafe:false,unsafe_comps:false,unsafe_Function:false,unsafe_math:false,unsafe_proto:false,unsafe_regexp:false,unsafe_undefined:false,unused:!false_by_default,warnings:false},true);var global_defs=this.options["global_defs"];if(typeof global_defs=="object")for(var key in global_defs){if(/^@/.test(key)&&HOP(global_defs,key)){global_defs[key.slice(1)]=parse(global_defs[key],{expression:true})}}if(this.options["inline"]===true)this.options["inline"]=3;var pure_funcs=this.options["pure_funcs"];if(typeof pure_funcs=="function"){this.pure_funcs=pure_funcs}else{this.pure_funcs=pure_funcs?function(node){return pure_funcs.indexOf(node.expression.print_to_string())<0}:return_true}var top_retain=this.options["top_retain"];if(top_retain instanceof RegExp){this.top_retain=function(def){return top_retain.test(def.name)}}else if(typeof top_retain=="function"){this.top_retain=top_retain}else if(top_retain){if(typeof top_retain=="string"){top_retain=top_retain.split(/,/)}this.top_retain=function(def){return top_retain.indexOf(def.name)>=0}}var toplevel=this.options["toplevel"];this.toplevel=typeof toplevel=="string"?{funcs:/funcs/.test(toplevel),vars:/vars/.test(toplevel)}:{funcs:toplevel,vars:toplevel};var sequences=this.options["sequences"];this.sequences_limit=sequences==1?800:sequences|0;this.warnings_produced={}}Compressor.prototype=new TreeTransformer;merge(Compressor.prototype,{option:function(key){return this.options[key]},exposed:function(def){if(def.global)for(var i=0,len=def.orig.length;i<len;i++)if(!this.toplevel[def.orig[i]instanceof AST_SymbolDefun?"funcs":"vars"])return true;return false},in_boolean_context:function(){if(!this.option("booleans"))return false;var self=this.self();for(var i=0,p;p=this.parent(i);i++){if(p instanceof AST_SimpleStatement||p instanceof AST_Conditional&&p.condition===self||p instanceof AST_DWLoop&&p.condition===self||p instanceof AST_For&&p.condition===self||p instanceof AST_If&&p.condition===self||p instanceof AST_UnaryPrefix&&p.operator=="!"&&p.expression===self){return true}if(p instanceof AST_Binary&&(p.operator=="&&"||p.operator=="||")||p instanceof AST_Conditional||p.tail_node()===self){self=p}else{return false}}},compress:function(node){if(this.option("expression")){node.process_expression(true)}var passes=+this.options.passes||1;var min_count=1/0;var stopping=false;var mangle={ie8:this.option("ie8")};for(var pass=0;pass<passes;pass++){node.figure_out_scope(mangle);if(pass>0||this.option("reduce_vars"))node.reset_opt_flags(this);node=node.transform(this);if(passes>1){var count=0;node.walk(new TreeWalker(function(){count++}));this.info("pass "+pass+": last_count: "+min_count+", count: "+count);if(count<min_count){min_count=count;stopping=false}else if(stopping){break}else{stopping=true}}}if(this.option("expression")){node.process_expression(false)}return node},info:function(){if(this.options.warnings=="verbose"){AST_Node.warn.apply(AST_Node,arguments)}},warn:function(text,props){if(this.options.warnings){var message=string_template(text,props);if(!(message in this.warnings_produced)){this.warnings_produced[message]=true;AST_Node.warn.apply(AST_Node,arguments)}}},clear_warnings:function(){this.warnings_produced={}},before:function(node,descend,in_list){if(node._squeezed)return node;var was_scope=false;if(node instanceof AST_Scope){node=node.hoist_properties(this);node=node.hoist_declarations(this);was_scope=true}descend(node,this);descend(node,this);var opt=node.optimize(this);if(was_scope&&opt instanceof AST_Scope){opt.drop_unused(this);descend(opt,this)}if(opt===node)opt._squeezed=true;return opt}});(function(){function OPT(node,optimizer){node.DEFMETHOD("optimize",function(compressor){var self=this;if(self._optimized)return self;if(compressor.has_directive("use asm"))return self;var opt=optimizer(self,compressor);opt._optimized=true;return opt})}OPT(AST_Node,function(self,compressor){return self});AST_Node.DEFMETHOD("equivalent_to",function(node){return this.TYPE==node.TYPE&&this.print_to_string()==node.print_to_string()});AST_Scope.DEFMETHOD("process_expression",function(insert,compressor){var self=this;var tt=new TreeTransformer(function(node){if(insert&&node instanceof AST_SimpleStatement){return make_node(AST_Return,node,{value:node.body})}if(!insert&&node instanceof AST_Return){if(compressor){var value=node.value&&node.value.drop_side_effect_free(compressor,true);return value?make_node(AST_SimpleStatement,node,{body:value}):make_node(AST_EmptyStatement,node)}return make_node(AST_SimpleStatement,node,{body:node.value||make_node(AST_UnaryPrefix,node,{operator:"void",expression:make_node(AST_Number,node,{value:0})})})}if(node instanceof AST_Lambda&&node!==self){return node}if(node instanceof AST_Block){var index=node.body.length-1;if(index>=0){node.body[index]=node.body[index].transform(tt)}}else if(node instanceof AST_If){node.body=node.body.transform(tt);if(node.alternative){node.alternative=node.alternative.transform(tt)}}else if(node instanceof AST_With){node.body=node.body.transform(tt)}return node});self.transform(tt)});(function(def){def(AST_Node,noop);function reset_def(compressor,def){def.assignments=0;def.chained=false;def.direct_access=false;def.escaped=false;if(def.scope.uses_eval||def.scope.uses_with){def.fixed=false}else if(!compressor.exposed(def)){def.fixed=def.init}else{def.fixed=false}def.recursive_refs=0;def.references=[];def.should_replace=undefined;def.single_use=undefined}function reset_variables(tw,compressor,node){node.variables.each(function(def){reset_def(compressor,def);if(def.fixed===null){def.safe_ids=tw.safe_ids;mark(tw,def,true)}else if(def.fixed){tw.loop_ids[def.id]=tw.in_loop;mark(tw,def,true)}})}function push(tw){tw.safe_ids=Object.create(tw.safe_ids)}function pop(tw){tw.safe_ids=Object.getPrototypeOf(tw.safe_ids)}function mark(tw,def,safe){tw.safe_ids[def.id]=safe}function safe_to_read(tw,def){if(tw.safe_ids[def.id]){if(def.fixed==null){var orig=def.orig[0];if(orig instanceof AST_SymbolFunarg||orig.name=="arguments")return false;def.fixed=make_node(AST_Undefined,orig)}return true}return def.fixed instanceof AST_Defun}function safe_to_assign(tw,def,value){if(def.fixed===undefined)return true;if(def.fixed===null&&def.safe_ids){def.safe_ids[def.id]=false;delete def.safe_ids;return true}if(!HOP(tw.safe_ids,def.id))return false;if(!safe_to_read(tw,def))return false;if(def.fixed===false)return false;if(def.fixed!=null&&(!value||def.references.length>def.assignments))return false;return all(def.orig,function(sym){return!(sym instanceof AST_SymbolDefun||sym instanceof AST_SymbolLambda)})}function ref_once(tw,compressor,def){return compressor.option("unused")&&!def.scope.uses_eval&&!def.scope.uses_with&&def.references.length-def.recursive_refs==1&&tw.loop_ids[def.id]===tw.in_loop}function is_immutable(value){if(!value)return false;return value.is_constant()||value instanceof AST_Lambda||value instanceof AST_This}function read_property(obj,key){key=get_value(key);if(key instanceof AST_Node)return;var value;if(obj instanceof AST_Array){var elements=obj.elements;if(key=="length")return make_node_from_constant(elements.length,obj);if(typeof key=="number"&&key in elements)value=elements[key]}else if(obj instanceof AST_Object){key=""+key;var props=obj.properties;for(var i=props.length;--i>=0;){var prop=props[i];if(!(prop instanceof AST_ObjectKeyVal))return;if(!value&&props[i].key===key)value=props[i].value}}return value instanceof AST_SymbolRef&&value.fixed_value()||value}function is_modified(tw,node,value,level,immutable){var parent=tw.parent(level);if(is_lhs(node,parent)||!immutable&&parent instanceof AST_Call&&parent.expression===node&&(!(value instanceof AST_Function)||!(parent instanceof AST_New)&&value.contains_this())){return true}else if(parent instanceof AST_Array){return is_modified(tw,parent,parent,level+1)}else if(parent instanceof AST_ObjectKeyVal&&node===parent.value){var obj=tw.parent(level+1);return is_modified(tw,obj,obj,level+2)}else if(parent instanceof AST_PropAccess&&parent.expression===node){return!immutable&&is_modified(tw,parent,read_property(value,parent.property),level+1)}}function mark_escaped(tw,d,scope,node,value,level,depth){var parent=tw.parent(level);if(value&&value.is_constant())return;if(parent instanceof AST_Assign&&parent.operator=="="&&node===parent.right||parent instanceof AST_Call&&node!==parent.expression||parent instanceof AST_Exit&&node===parent.value&&node.scope!==d.scope||parent instanceof AST_VarDef&&node===parent.value){if(depth>1&&!(value&&value.is_constant_expression(scope)))depth=1;if(!d.escaped||d.escaped>depth)d.escaped=depth;return}else if(parent instanceof AST_Array||parent instanceof AST_Binary&&lazy_op(parent.operator)||parent instanceof AST_Conditional&&node!==parent.condition||parent instanceof AST_Sequence&&node===parent.tail_node()){mark_escaped(tw,d,scope,parent,parent,level+1,depth)}else if(parent instanceof AST_ObjectKeyVal&&node===parent.value){var obj=tw.parent(level+1);mark_escaped(tw,d,scope,obj,obj,level+2,depth)}else if(parent instanceof AST_PropAccess&&node===parent.expression){value=read_property(value,parent.property);mark_escaped(tw,d,scope,parent,value,level+1,depth+1);if(value)return}if(level==0)d.direct_access=true}var suppressor=new TreeWalker(function(node){if(!(node instanceof AST_Symbol))return;var d=node.definition();if(!d)return;if(node instanceof AST_SymbolRef)d.references.push(node);d.fixed=false});def(AST_Accessor,function(tw,descend,compressor){push(tw);reset_variables(tw,compressor,this);descend();pop(tw);return true});def(AST_Assign,function(tw){var node=this;if(!(node.left instanceof AST_SymbolRef))return;var d=node.left.definition();var fixed=d.fixed;if(!fixed&&node.operator!="=")return;if(!safe_to_assign(tw,d,node.right))return;d.references.push(node.left);d.assignments++;if(node.operator!="=")d.chained=true;d.fixed=node.operator=="="?function(){return node.right}:function(){return make_node(AST_Binary,node,{operator:node.operator.slice(0,-1),left:fixed instanceof AST_Node?fixed:fixed(),right:node.right})};mark(tw,d,false);node.right.walk(tw);mark(tw,d,true);return true});def(AST_Binary,function(tw){if(!lazy_op(this.operator))return;this.left.walk(tw);push(tw);this.right.walk(tw);pop(tw);return true});def(AST_Conditional,function(tw){this.condition.walk(tw);push(tw);this.consequent.walk(tw);pop(tw);push(tw);this.alternative.walk(tw);pop(tw);return true});def(AST_Defun,function(tw,descend,compressor){this.inlined=false;var save_ids=tw.safe_ids;tw.safe_ids=Object.create(null);reset_variables(tw,compressor,this);descend();tw.safe_ids=save_ids;return true});def(AST_Do,function(tw){var saved_loop=tw.in_loop;tw.in_loop=this;push(tw);this.body.walk(tw);this.condition.walk(tw);pop(tw);tw.in_loop=saved_loop;return true});def(AST_For,function(tw){if(this.init)this.init.walk(tw);var saved_loop=tw.in_loop;tw.in_loop=this;if(this.condition){push(tw);this.condition.walk(tw);pop(tw)}push(tw);this.body.walk(tw);pop(tw);if(this.step){push(tw);this.step.walk(tw);pop(tw)}tw.in_loop=saved_loop;return true});def(AST_ForIn,function(tw){this.init.walk(suppressor);this.object.walk(tw);var saved_loop=tw.in_loop;tw.in_loop=this;push(tw);this.body.walk(tw);pop(tw);tw.in_loop=saved_loop;return true});def(AST_Function,function(tw,descend,compressor){var node=this;node.inlined=false;push(tw);reset_variables(tw,compressor,node);var iife;if(!node.name&&(iife=tw.parent())instanceof AST_Call&&iife.expression===node){node.argnames.forEach(function(arg,i){var d=arg.definition();if(!node.uses_arguments&&d.fixed===undefined){d.fixed=function(){return iife.args[i]||make_node(AST_Undefined,iife)};tw.loop_ids[d.id]=tw.in_loop;mark(tw,d,true)}else{d.fixed=false}})}descend();pop(tw);return true});def(AST_If,function(tw){this.condition.walk(tw);push(tw);this.body.walk(tw);pop(tw);if(this.alternative){push(tw);this.alternative.walk(tw);pop(tw)}return true});def(AST_LabeledStatement,function(tw){push(tw);this.body.walk(tw);pop(tw);return true});def(AST_SwitchBranch,function(tw,descend){push(tw);descend();pop(tw);return true});def(AST_SymbolCatch,function(){this.definition().fixed=false});def(AST_SymbolRef,function(tw,descend,compressor){var d=this.definition();d.references.push(this);if(d.references.length==1&&!d.fixed&&d.orig[0]instanceof AST_SymbolDefun){tw.loop_ids[d.id]=tw.in_loop}var value;if(d.fixed===undefined||!safe_to_read(tw,d)||d.single_use=="m"){d.fixed=false}else if(d.fixed){value=this.fixed_value();if(value instanceof AST_Lambda&&recursive_ref(tw,d)){d.recursive_refs++}else if(value&&ref_once(tw,compressor,d)){d.single_use=value instanceof AST_Lambda||d.scope===this.scope&&value.is_constant_expression()}else{d.single_use=false}if(is_modified(tw,this,value,0,is_immutable(value))){if(d.single_use){d.single_use="m"}else{d.fixed=false}}}mark_escaped(tw,d,this.scope,this,value,0,1)});def(AST_Toplevel,function(tw,descend,compressor){this.globals.each(function(def){reset_def(compressor,def)});reset_variables(tw,compressor,this)});def(AST_Try,function(tw){push(tw);walk_body(this,tw);pop(tw);if(this.bcatch){push(tw);this.bcatch.walk(tw);pop(tw)}if(this.bfinally)this.bfinally.walk(tw);return true});def(AST_Unary,function(tw,descend){var node=this;if(node.operator!="++"&&node.operator!="--")return;if(!(node.expression instanceof AST_SymbolRef))return;var d=node.expression.definition();var fixed=d.fixed;if(!fixed)return;if(!safe_to_assign(tw,d,true))return;d.references.push(node.expression);d.assignments++;d.chained=true;d.fixed=function(){return make_node(AST_Binary,node,{operator:node.operator.slice(0,-1),left:make_node(AST_UnaryPrefix,node,{operator:"+",expression:fixed instanceof AST_Node?fixed:fixed()}),right:make_node(AST_Number,node,{value:1})})};mark(tw,d,true);return true});def(AST_VarDef,function(tw,descend){var node=this;var d=node.name.definition();if(node.value){if(safe_to_assign(tw,d,node.value)){d.fixed=function(){return node.value};tw.loop_ids[d.id]=tw.in_loop;mark(tw,d,false);descend();mark(tw,d,true);return true}else{d.fixed=false}}});def(AST_While,function(tw){var saved_loop=tw.in_loop;tw.in_loop=this;push(tw);this.condition.walk(tw);this.body.walk(tw);pop(tw);tw.in_loop=saved_loop;return true})})(function(node,func){node.DEFMETHOD("reduce_vars",func)});AST_Toplevel.DEFMETHOD("reset_opt_flags",function(compressor){var reduce_vars=compressor.option("reduce_vars");var tw=new TreeWalker(function(node,descend){node._squeezed=false;node._optimized=false;if(reduce_vars)return node.reduce_vars(tw,descend,compressor)});tw.safe_ids=Object.create(null);tw.in_loop=null;tw.loop_ids=Object.create(null);this.walk(tw)});AST_Symbol.DEFMETHOD("fixed_value",function(){var fixed=this.definition().fixed;if(!fixed||fixed instanceof AST_Node)return fixed;return fixed()});AST_SymbolRef.DEFMETHOD("is_immutable",function(){var orig=this.definition().orig;return orig.length==1&&orig[0]instanceof AST_SymbolLambda});function is_lhs_read_only(lhs){if(lhs instanceof AST_This)return true;if(lhs instanceof AST_SymbolRef)return lhs.definition().orig[0]instanceof AST_SymbolLambda;if(lhs instanceof AST_PropAccess){lhs=lhs.expression;if(lhs instanceof AST_SymbolRef){if(lhs.is_immutable())return false;lhs=lhs.fixed_value()}if(!lhs)return true;if(lhs instanceof AST_RegExp)return false;if(lhs instanceof AST_Constant)return true;return is_lhs_read_only(lhs)}return false}function find_variable(compressor,name){var scope,i=0;while(scope=compressor.parent(i++)){if(scope instanceof AST_Scope)break;if(scope instanceof AST_Catch){scope=scope.argname.definition().scope;break}}return scope.find_variable(name)}function make_node(ctor,orig,props){if(!props)props={};if(orig){if(!props.start)props.start=orig.start;if(!props.end)props.end=orig.end}return new ctor(props)}function make_sequence(orig,expressions){if(expressions.length==1)return expressions[0];return make_node(AST_Sequence,orig,{expressions:expressions.reduce(merge_sequence,[])})}function make_node_from_constant(val,orig){switch(typeof val){case"string":return make_node(AST_String,orig,{value:val});case"number":if(isNaN(val))return make_node(AST_NaN,orig);if(isFinite(val)){return 1/val<0?make_node(AST_UnaryPrefix,orig,{operator:"-",expression:make_node(AST_Number,orig,{value:-val})}):make_node(AST_Number,orig,{value:val})}return val<0?make_node(AST_UnaryPrefix,orig,{operator:"-",expression:make_node(AST_Infinity,orig)}):make_node(AST_Infinity,orig);case"boolean":return make_node(val?AST_True:AST_False,orig);case"undefined":return make_node(AST_Undefined,orig);default:if(val===null){return make_node(AST_Null,orig,{value:null})}if(val instanceof RegExp){return make_node(AST_RegExp,orig,{value:val})}throw new Error(string_template("Can't handle constant of type: {type}",{type:typeof val}))}}function maintain_this_binding(parent,orig,val){if(parent instanceof AST_UnaryPrefix&&parent.operator=="delete"||parent instanceof AST_Call&&parent.expression===orig&&(val instanceof AST_PropAccess||val instanceof AST_SymbolRef&&val.name=="eval")){return make_sequence(orig,[make_node(AST_Number,orig,{value:0}),val])}return val}function merge_sequence(array,node){if(node instanceof AST_Sequence){array.push.apply(array,node.expressions)}else{array.push(node)}return array}function as_statement_array(thing){if(thing===null)return[];if(thing instanceof AST_BlockStatement)return thing.body;if(thing instanceof AST_EmptyStatement)return[];if(thing instanceof AST_Statement)return[thing];throw new Error("Can't convert thing to statement array")}function is_empty(thing){if(thing===null)return true;if(thing instanceof AST_EmptyStatement)return true;if(thing instanceof AST_BlockStatement)return thing.body.length==0;return false}function loop_body(x){if(x instanceof AST_IterationStatement){return x.body instanceof AST_BlockStatement?x.body:x}return x}function root_expr(prop){while(prop instanceof AST_PropAccess)prop=prop.expression;return prop}function is_iife_call(node){if(node.TYPE!="Call")return false;return node.expression instanceof AST_Function||is_iife_call(node.expression)}function is_undeclared_ref(node){return node instanceof AST_SymbolRef&&node.definition().undeclared}var global_names=makePredicate("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");AST_SymbolRef.DEFMETHOD("is_declared",function(compressor){return!this.definition().undeclared||compressor.option("unsafe")&&global_names(this.name)});var identifier_atom=makePredicate("Infinity NaN undefined");function is_identifier_atom(node){return node instanceof AST_Infinity||node instanceof AST_NaN||node instanceof AST_Undefined}function tighten_body(statements,compressor){var in_loop,in_try,scope;find_loop_scope_try();var CHANGED,max_iter=10;do{CHANGED=false;eliminate_spurious_blocks(statements);if(compressor.option("dead_code")){eliminate_dead_code(statements,compressor)}if(compressor.option("if_return")){handle_if_return(statements,compressor)}if(compressor.sequences_limit>0){sequencesize(statements,compressor);sequencesize_2(statements,compressor)}if(compressor.option("join_vars")){join_consecutive_vars(statements)}if(compressor.option("collapse_vars")){collapse(statements,compressor)}}while(CHANGED&&max_iter-- >0);function find_loop_scope_try(){var node=compressor.self(),level=0;do{if(node instanceof AST_Catch||node instanceof AST_Finally){level++}else if(node instanceof AST_IterationStatement){in_loop=true}else if(node instanceof AST_Scope){scope=node;break}else if(node instanceof AST_Try){in_try=true}}while(node=compressor.parent(level++))}function collapse(statements,compressor){if(scope.uses_eval||scope.uses_with)return statements;var args;var candidates=[];var stat_index=statements.length;var scanner=new TreeTransformer(function(node,descend){if(abort)return node;if(!hit){if(node!==hit_stack[hit_index])return node;hit_index++;if(hit_index<hit_stack.length)return handle_custom_scan_order(node);hit=true;stop_after=find_stop(node,0);if(stop_after===node)abort=true;return node}var parent=scanner.parent();if(node instanceof AST_Assign&&node.operator!="="&&lhs.equivalent_to(node.left)||node instanceof AST_Call&&lhs instanceof AST_PropAccess&&lhs.equivalent_to(node.expression)||node instanceof AST_Debugger||node instanceof AST_IterationStatement&&!(node instanceof AST_For)||node instanceof AST_LoopControl||node instanceof AST_Try||node instanceof AST_With||parent instanceof AST_For&&node!==parent.init||!replace_all&&(node instanceof AST_SymbolRef&&!node.is_declared(compressor))){abort=true;return node}if(!stop_if_hit&&(parent instanceof AST_Binary&&lazy_op(parent.operator)&&parent.left!==node||parent instanceof AST_Conditional&&parent.condition!==node||parent instanceof AST_If&&parent.condition!==node)){stop_if_hit=parent}var hit_lhs,hit_rhs;if(can_replace&&!(node instanceof AST_SymbolDeclaration)&&(scan_lhs&&(hit_lhs=lhs.equivalent_to(node))||scan_rhs&&(hit_rhs=rhs.equivalent_to(node)))){if(stop_if_hit&&(hit_rhs||!lhs_local||!replace_all)){abort=true;return node}if(is_lhs(node,parent)){if(value_def)replaced++;return node}CHANGED=abort=true;replaced++;compressor.info("Collapsing {name} [{file}:{line},{col}]",{name:node.print_to_string(),file:node.start.file,line:node.start.line,col:node.start.col});if(candidate instanceof AST_UnaryPostfix){return make_node(AST_UnaryPrefix,candidate,candidate)}if(candidate instanceof AST_VarDef){if(value_def){abort=false;return node}var def=candidate.name.definition();var value=candidate.value;if(def.references.length-def.replaced==1&&!compressor.exposed(def)){def.replaced++;if(funarg&&is_identifier_atom(value)){return value.transform(compressor)}else{return maintain_this_binding(parent,node,value)}}return make_node(AST_Assign,candidate,{operator:"=",left:make_node(AST_SymbolRef,candidate.name,candidate.name),right:value})}candidate.write_only=false;return candidate}var sym;if(node instanceof AST_Call||node instanceof AST_Exit&&(side_effects||lhs instanceof AST_PropAccess||may_modify(lhs))||node instanceof AST_PropAccess&&(side_effects||node.expression.may_throw_on_access(compressor))||node instanceof AST_SymbolRef&&(symbol_in_lvalues(node)||side_effects&&may_modify(node))||node instanceof AST_VarDef&&node.value&&(node.name.name in lvalues||side_effects&&may_modify(node.name))||(sym=is_lhs(node.left,node))&&(sym instanceof AST_PropAccess||sym.name in lvalues)||may_throw&&(in_try?node.has_side_effects(compressor):side_effects_external(node))){stop_after=node;if(node instanceof AST_Scope)abort=true}return handle_custom_scan_order(node)},function(node){if(abort)return;if(stop_after===node)abort=true;if(stop_if_hit===node)stop_if_hit=null});var multi_replacer=new TreeTransformer(function(node){if(abort)return node;if(!hit){if(node!==hit_stack[hit_index])return node;hit_index++;if(hit_index<hit_stack.length)return;hit=true;return node}if(node instanceof AST_SymbolRef&&node.name==def.name){if(!--replaced)abort=true;if(is_lhs(node,multi_replacer.parent()))return node;def.replaced++;value_def.replaced--;return candidate.value}if(node instanceof AST_Default||node instanceof AST_Scope)return node});while(--stat_index>=0){if(stat_index==0&&compressor.option("unused"))extract_args();var hit_stack=[];extract_candidates(statements[stat_index]);while(candidates.length>0){hit_stack=candidates.pop();var hit_index=0;var candidate=hit_stack[hit_stack.length-1];var value_def=null;var stop_after=null;var stop_if_hit=null;var lhs=get_lhs(candidate);var rhs=get_rhs(candidate);var side_effects=lhs&&lhs.has_side_effects(compressor);var scan_lhs=lhs&&!side_effects&&!is_lhs_read_only(lhs);var scan_rhs=rhs&&foldable(rhs);if(!scan_lhs&&!scan_rhs)continue;var lvalues=get_lvalues(candidate);var lhs_local=is_lhs_local(lhs);if(!side_effects)side_effects=value_has_side_effects(candidate);var replace_all=replace_all_symbols();var may_throw=candidate.may_throw(compressor);var funarg=candidate.name instanceof AST_SymbolFunarg;var hit=funarg;var abort=false,replaced=0,can_replace=!args||!hit;if(!can_replace){for(var j=compressor.self().argnames.lastIndexOf(candidate.name)+1;!abort&&j<args.length;j++){args[j].transform(scanner)}can_replace=true}for(var i=stat_index;!abort&&i<statements.length;i++){statements[i].transform(scanner)}if(value_def){var def=candidate.name.definition();if(abort&&def.references.length-def.replaced>replaced)replaced=false;else{abort=false;hit_index=0;hit=funarg;for(var i=stat_index;!abort&&i<statements.length;i++){statements[i].transform(multi_replacer)}value_def.single_use=false}}if(replaced&&!remove_candidate(candidate))statements.splice(stat_index,1)}}function handle_custom_scan_order(node){if(node instanceof AST_Scope)return node;if(node instanceof AST_Switch){node.expression=node.expression.transform(scanner);for(var i=0,len=node.body.length;!abort&&i<len;i++){var branch=node.body[i];if(branch instanceof AST_Case){if(!hit){if(branch!==hit_stack[hit_index])continue;hit_index++}branch.expression=branch.expression.transform(scanner);if(!replace_all)break}}abort=true;return node}}function extract_args(){var iife,fn=compressor.self();if(fn instanceof AST_Function&&!fn.name&&!fn.uses_arguments&&!fn.uses_eval&&(iife=compressor.parent())instanceof AST_Call&&iife.expression===fn){var fn_strict=compressor.has_directive("use strict");if(fn_strict&&!member(fn_strict,fn.body))fn_strict=false;var len=fn.argnames.length;args=iife.args.slice(len);var names=Object.create(null);for(var i=len;--i>=0;){var sym=fn.argnames[i];var arg=iife.args[i];args.unshift(make_node(AST_VarDef,sym,{name:sym,value:arg}));if(sym.name in names)continue;names[sym.name]=true;if(!arg)arg=make_node(AST_Undefined,sym).transform(compressor);else{var tw=new TreeWalker(function(node){if(!arg)return true;if(node instanceof AST_SymbolRef&&fn.variables.has(node.name)){var s=node.definition().scope;if(s!==scope)while(s=s.parent_scope){if(s===scope)return true}arg=null}if(node instanceof AST_This&&(fn_strict||!tw.find_parent(AST_Scope))){arg=null;return true}});arg.walk(tw)}if(arg)candidates.unshift([make_node(AST_VarDef,sym,{name:sym,value:arg})])}}}function extract_candidates(expr){hit_stack.push(expr);if(expr instanceof AST_Assign){candidates.push(hit_stack.slice());extract_candidates(expr.right)}else if(expr instanceof AST_Binary){extract_candidates(expr.left);extract_candidates(expr.right)}else if(expr instanceof AST_Call){extract_candidates(expr.expression);expr.args.forEach(extract_candidates)}else if(expr instanceof AST_Case){extract_candidates(expr.expression)}else if(expr instanceof AST_Conditional){extract_candidates(expr.condition);extract_candidates(expr.consequent);extract_candidates(expr.alternative)}else if(expr instanceof AST_Definitions){expr.definitions.forEach(extract_candidates)}else if(expr instanceof AST_DWLoop){extract_candidates(expr.condition);if(!(expr.body instanceof AST_Block)){extract_candidates(expr.body)}}else if(expr instanceof AST_Exit){if(expr.value)extract_candidates(expr.value)}else if(expr instanceof AST_For){if(expr.init)extract_candidates(expr.init);if(expr.condition)extract_candidates(expr.condition);if(expr.step)extract_candidates(expr.step);if(!(expr.body instanceof AST_Block)){extract_candidates(expr.body)}}else if(expr instanceof AST_ForIn){extract_candidates(expr.object);if(!(expr.body instanceof AST_Block)){extract_candidates(expr.body)}}else if(expr instanceof AST_If){extract_candidates(expr.condition);if(!(expr.body instanceof AST_Block)){extract_candidates(expr.body)}if(expr.alternative&&!(expr.alternative instanceof AST_Block)){extract_candidates(expr.alternative)}}else if(expr instanceof AST_Sequence){expr.expressions.forEach(extract_candidates)}else if(expr instanceof AST_SimpleStatement){extract_candidates(expr.body)}else if(expr instanceof AST_Switch){extract_candidates(expr.expression);expr.body.forEach(extract_candidates)}else if(expr instanceof AST_Unary){if(expr.operator=="++"||expr.operator=="--"){candidates.push(hit_stack.slice())}else{extract_candidates(expr.expression)}}else if(expr instanceof AST_VarDef){if(expr.value){candidates.push(hit_stack.slice());extract_candidates(expr.value)}}hit_stack.pop()}function find_stop(node,level,write_only){var parent=scanner.parent(level);if(parent instanceof AST_Assign){if(write_only&&!(parent.left instanceof AST_PropAccess||parent.left.name in lvalues)){return find_stop(parent,level+1,write_only)}return node}if(parent instanceof AST_Binary){if(write_only&&(!lazy_op(parent.operator)||parent.left===node)){return find_stop(parent,level+1,write_only)}return node}if(parent instanceof AST_Call)return node;if(parent instanceof AST_Case)return node;if(parent instanceof AST_Conditional){if(write_only&&parent.condition===node){return find_stop(parent,level+1,write_only)}return node}if(parent instanceof AST_Definitions){return find_stop(parent,level+1,true)}if(parent instanceof AST_Exit){return write_only?find_stop(parent,level+1,write_only):node}if(parent instanceof AST_If){if(write_only&&parent.condition===node){return find_stop(parent,level+1,write_only)}return node}if(parent instanceof AST_IterationStatement)return node;if(parent instanceof AST_Sequence){return find_stop(parent,level+1,parent.tail_node()!==node)}if(parent instanceof AST_SimpleStatement){return find_stop(parent,level+1,true)}if(parent instanceof AST_Switch)return node;if(parent instanceof AST_Unary)return node;if(parent instanceof AST_VarDef)return node;return null}function mangleable_var(var_def){var value=var_def.value;if(!(value instanceof AST_SymbolRef))return;if(value.name=="arguments")return;var def=value.definition();if(def.undeclared)return;return value_def=def}function get_lhs(expr){if(expr instanceof AST_VarDef){var def=expr.name.definition();if(!member(expr.name,def.orig))return;var declared=def.orig.length-def.eliminated;var referenced=def.references.length-def.replaced;if(declared>1&&!(expr.name instanceof AST_SymbolFunarg)||(referenced>1?mangleable_var(expr):!compressor.exposed(def))){return make_node(AST_SymbolRef,expr.name,expr.name)}}else{return expr[expr instanceof AST_Assign?"left":"expression"]}}function get_rhs(expr){if(!(candidate instanceof AST_Assign&&candidate.operator=="="))return;return candidate.right}function get_rvalue(expr){return expr[expr instanceof AST_Assign?"right":"value"]}function foldable(expr){if(expr.is_constant())return true;if(expr instanceof AST_Array)return false;if(expr instanceof AST_Function)return false;if(expr instanceof AST_Object)return false;if(expr instanceof AST_RegExp)return false;if(expr instanceof AST_Symbol)return true;if(!(lhs instanceof AST_SymbolRef))return false;if(expr.has_side_effects(compressor))return false;var circular;var def=lhs.definition();expr.walk(new TreeWalker(function(node){if(circular)return true;if(node instanceof AST_SymbolRef&&node.definition()===def){circular=true}}));return!circular}function get_lvalues(expr){var lvalues=Object.create(null);if(candidate instanceof AST_VarDef){lvalues[candidate.name.name]=lhs}var tw=new TreeWalker(function(node){var sym=root_expr(node);if(sym instanceof AST_SymbolRef||sym instanceof AST_This){lvalues[sym.name]=lvalues[sym.name]||is_lhs(node,tw.parent())}});expr.walk(tw);return lvalues}function remove_candidate(expr){if(expr.name instanceof AST_SymbolFunarg){var index=compressor.self().argnames.indexOf(expr.name);var args=compressor.parent().args;if(args[index])args[index]=make_node(AST_Number,args[index],{value:0});return true}var found=false;return statements[stat_index].transform(new TreeTransformer(function(node,descend,in_list){if(found)return node;if(node===expr||node.body===expr){found=true;if(node instanceof AST_VarDef){node.value=null;return node}return in_list?MAP.skip:null}},function(node){if(node instanceof AST_Sequence)switch(node.expressions.length){case 0:return null;case 1:return node.expressions[0]}}))}function is_lhs_local(lhs){var sym=root_expr(lhs);return sym instanceof AST_SymbolRef&&sym.definition().scope===scope&&!(in_loop&&(sym.name in lvalues&&lvalues[sym.name]!==lhs||candidate instanceof AST_Unary||candidate instanceof AST_Assign&&candidate.operator!="="))}function value_has_side_effects(expr){if(expr instanceof AST_Unary)return false;return get_rvalue(expr).has_side_effects(compressor)}function replace_all_symbols(){if(side_effects)return false;if(value_def)return true;if(lhs instanceof AST_SymbolRef){var def=lhs.definition();if(def.references.length-def.replaced==(candidate instanceof AST_VarDef?1:2)){return true}}return false}function symbol_in_lvalues(sym){var lvalue=lvalues[sym.name];if(!lvalue)return;if(lvalue!==lhs)return true;scan_rhs=false}function may_modify(sym){var def=sym.definition();if(def.orig.length==1&&def.orig[0]instanceof AST_SymbolDefun)return false;if(def.scope!==scope)return true;return!all(def.references,function(ref){var s=ref.scope;if(s.TYPE=="Scope")s=s.parent_scope;return s===scope})}function side_effects_external(node,lhs){if(node instanceof AST_Assign)return side_effects_external(node.left,true);if(node instanceof AST_Unary)return side_effects_external(node.expression,true);if(node instanceof AST_VarDef)return node.value&&side_effects_external(node.value);if(lhs){if(node instanceof AST_Dot)return side_effects_external(node.expression,true);if(node instanceof AST_Sub)return side_effects_external(node.expression,true);if(node instanceof AST_SymbolRef)return node.definition().scope!==scope}return false}}function eliminate_spurious_blocks(statements){var seen_dirs=[];for(var i=0;i<statements.length;){var stat=statements[i];if(stat instanceof AST_BlockStatement){CHANGED=true;eliminate_spurious_blocks(stat.body);[].splice.apply(statements,[i,1].concat(stat.body));i+=stat.body.length}else if(stat instanceof AST_EmptyStatement){CHANGED=true;statements.splice(i,1)}else if(stat instanceof AST_Directive){if(seen_dirs.indexOf(stat.value)<0){i++;seen_dirs.push(stat.value)}else{CHANGED=true;statements.splice(i,1)}}else i++}}function handle_if_return(statements,compressor){var self=compressor.self();var multiple_if_returns=has_multiple_if_returns(statements);var in_lambda=self instanceof AST_Lambda;for(var i=statements.length;--i>=0;){var stat=statements[i];var j=next_index(i);var next=statements[j];if(in_lambda&&!next&&stat instanceof AST_Return){if(!stat.value){CHANGED=true;statements.splice(i,1);continue}if(stat.value instanceof AST_UnaryPrefix&&stat.value.operator=="void"){CHANGED=true;statements[i]=make_node(AST_SimpleStatement,stat,{body:stat.value.expression});continue}}if(stat instanceof AST_If){var ab=aborts(stat.body);if(can_merge_flow(ab)){if(ab.label){remove(ab.label.thedef.references,ab)}CHANGED=true;stat=stat.clone();stat.condition=stat.condition.negate(compressor);var body=as_statement_array_with_return(stat.body,ab);stat.body=make_node(AST_BlockStatement,stat,{body:as_statement_array(stat.alternative).concat(extract_functions())});stat.alternative=make_node(AST_BlockStatement,stat,{body:body});statements[i]=stat.transform(compressor);continue}var ab=aborts(stat.alternative);if(can_merge_flow(ab)){if(ab.label){remove(ab.label.thedef.references,ab)}CHANGED=true;stat=stat.clone();stat.body=make_node(AST_BlockStatement,stat.body,{body:as_statement_array(stat.body).concat(extract_functions())});var body=as_statement_array_with_return(stat.alternative,ab);stat.alternative=make_node(AST_BlockStatement,stat.alternative,{body:body});statements[i]=stat.transform(compressor);continue}}if(stat instanceof AST_If&&stat.body instanceof AST_Return){var value=stat.body.value;if(!value&&!stat.alternative&&(in_lambda&&!next||next instanceof AST_Return&&!next.value)){CHANGED=true;statements[i]=make_node(AST_SimpleStatement,stat.condition,{body:stat.condition});continue}if(value&&!stat.alternative&&next instanceof AST_Return&&next.value){CHANGED=true;stat=stat.clone();stat.alternative=next;statements.splice(i,1,stat.transform(compressor));statements.splice(j,1);continue}if(value&&!stat.alternative&&(!next&&in_lambda&&multiple_if_returns||next instanceof AST_Return)){CHANGED=true;stat=stat.clone();stat.alternative=next||make_node(AST_Return,stat,{value:null});statements.splice(i,1,stat.transform(compressor));if(next)statements.splice(j,1);continue}var prev=statements[prev_index(i)];if(compressor.option("sequences")&&in_lambda&&!stat.alternative&&prev instanceof AST_If&&prev.body instanceof AST_Return&&next_index(j)==statements.length&&next instanceof AST_SimpleStatement){CHANGED=true;stat=stat.clone();stat.alternative=make_node(AST_BlockStatement,next,{body:[next,make_node(AST_Return,next,{value:null})]});statements.splice(i,1,stat.transform(compressor));statements.splice(j,1);continue}}}function has_multiple_if_returns(statements){var n=0;for(var i=statements.length;--i>=0;){var stat=statements[i];if(stat instanceof AST_If&&stat.body instanceof AST_Return){if(++n>1)return true}}return false}function is_return_void(value){return!value||value instanceof AST_UnaryPrefix&&value.operator=="void"}function can_merge_flow(ab){if(!ab)return false;var lct=ab instanceof AST_LoopControl?compressor.loopcontrol_target(ab):null;return ab instanceof AST_Return&&in_lambda&&is_return_void(ab.value)||ab instanceof AST_Continue&&self===loop_body(lct)||ab instanceof AST_Break&&lct instanceof AST_BlockStatement&&self===lct}function extract_functions(){var tail=statements.slice(i+1);statements.length=i+1;return tail.filter(function(stat){if(stat instanceof AST_Defun){statements.push(stat);return false}return true})}function as_statement_array_with_return(node,ab){var body=as_statement_array(node).slice(0,-1);if(ab.value){body.push(make_node(AST_SimpleStatement,ab.value,{body:ab.value.expression}))}return body}function next_index(i){for(var j=i+1,len=statements.length;j<len;j++){var stat=statements[j];if(!(stat instanceof AST_Var&&declarations_only(stat))){break}}return j}function prev_index(i){for(var j=i;--j>=0;){var stat=statements[j];if(!(stat instanceof AST_Var&&declarations_only(stat))){break}}return j}}function eliminate_dead_code(statements,compressor){var has_quit;var self=compressor.self();for(var i=0,n=0,len=statements.length;i<len;i++){var stat=statements[i];if(stat instanceof AST_LoopControl){var lct=compressor.loopcontrol_target(stat);if(stat instanceof AST_Break&&!(lct instanceof AST_IterationStatement)&&loop_body(lct)===self||stat instanceof AST_Continue&&loop_body(lct)===self){if(stat.label){remove(stat.label.thedef.references,stat)}}else{statements[n++]=stat}}else{statements[n++]=stat}if(aborts(stat)){has_quit=statements.slice(i+1);break}}statements.length=n;CHANGED=n!=len;if(has_quit)has_quit.forEach(function(stat){extract_declarations_from_unreachable_code(compressor,stat,statements)})}function declarations_only(node){return all(node.definitions,function(var_def){return!var_def.value})}function sequencesize(statements,compressor){if(statements.length<2)return;var seq=[],n=0;function push_seq(){if(!seq.length)return;var body=make_sequence(seq[0],seq);statements[n++]=make_node(AST_SimpleStatement,body,{body:body});seq=[]}for(var i=0,len=statements.length;i<len;i++){var stat=statements[i];if(stat instanceof AST_SimpleStatement){if(seq.length>=compressor.sequences_limit)push_seq();var body=stat.body;if(seq.length>0)body=body.drop_side_effect_free(compressor);if(body)merge_sequence(seq,body)}else if(stat instanceof AST_Definitions&&declarations_only(stat)||stat instanceof AST_Defun){statements[n++]=stat}else{push_seq();statements[n++]=stat}}push_seq();statements.length=n;if(n!=len)CHANGED=true}function to_simple_statement(block,decls){if(!(block instanceof AST_BlockStatement))return block;var stat=null;for(var i=0,len=block.body.length;i<len;i++){var line=block.body[i];if(line instanceof AST_Var&&declarations_only(line)){decls.push(line)}else if(stat){return false}else{stat=line}}return stat}function sequencesize_2(statements,compressor){function cons_seq(right){n--;CHANGED=true;var left=prev.body;return make_sequence(left,[left,right]).transform(compressor)}var n=0,prev;for(var i=0;i<statements.length;i++){var stat=statements[i];if(prev){if(stat instanceof AST_Exit){stat.value=cons_seq(stat.value||make_node(AST_Undefined,stat).transform(compressor))}else if(stat instanceof AST_For){if(!(stat.init instanceof AST_Definitions)){var abort=false;prev.body.walk(new TreeWalker(function(node){if(abort||node instanceof AST_Scope)return true;if(node instanceof AST_Binary&&node.operator=="in"){abort=true;return true}}));if(!abort){if(stat.init)stat.init=cons_seq(stat.init);else{stat.init=prev.body;n--;CHANGED=true}}}}else if(stat instanceof AST_ForIn){stat.object=cons_seq(stat.object)}else if(stat instanceof AST_If){stat.condition=cons_seq(stat.condition)}else if(stat instanceof AST_Switch){stat.expression=cons_seq(stat.expression)}else if(stat instanceof AST_With){stat.expression=cons_seq(stat.expression)}}if(compressor.option("conditionals")&&stat instanceof AST_If){var decls=[];var body=to_simple_statement(stat.body,decls);var alt=to_simple_statement(stat.alternative,decls);if(body!==false&&alt!==false&&decls.length>0){var len=decls.length;decls.push(make_node(AST_If,stat,{condition:stat.condition,body:body||make_node(AST_EmptyStatement,stat.body),alternative:alt}));decls.unshift(n,1);[].splice.apply(statements,decls);i+=len;n+=len+1;prev=null;CHANGED=true;continue}}statements[n++]=stat;prev=stat instanceof AST_SimpleStatement?stat:null}statements.length=n}function join_object_assignments(defn,body){if(!(defn instanceof AST_Definitions))return;var def=defn.definitions[defn.definitions.length-1];if(!(def.value instanceof AST_Object))return;var exprs;if(body instanceof AST_Assign){exprs=[body]}else if(body instanceof AST_Sequence){exprs=body.expressions.slice()}if(!exprs)return;var trimmed=false;do{var node=exprs[0];if(!(node instanceof AST_Assign))break;if(node.operator!="=")break;if(!(node.left instanceof AST_PropAccess))break;var sym=node.left.expression;if(!(sym instanceof AST_SymbolRef))break;if(def.name.name!=sym.name)break;if(!node.right.is_constant_expression(scope))break;var prop=node.left.property;if(prop instanceof AST_Node){prop=prop.evaluate(compressor)}if(prop instanceof AST_Node)break;prop=""+prop;var diff=compressor.has_directive("use strict")?function(node){return node.key!=prop&&node.key.name!=prop}:function(node){return node.key.name!=prop};if(!all(def.value.properties,diff))break;def.value.properties.push(make_node(AST_ObjectKeyVal,node,{key:prop,value:node.right}));exprs.shift();trimmed=true}while(exprs.length);return trimmed&&exprs}function join_consecutive_vars(statements){var defs;for(var i=0,j=-1,len=statements.length;i<len;i++){var stat=statements[i];var prev=statements[j];if(stat instanceof AST_Definitions){if(prev&&prev.TYPE==stat.TYPE){prev.definitions=prev.definitions.concat(stat.definitions);CHANGED=true}else if(defs&&defs.TYPE==stat.TYPE&&declarations_only(stat)){defs.definitions=defs.definitions.concat(stat.definitions);CHANGED=true}else{statements[++j]=stat;defs=stat}}else if(stat instanceof AST_Exit){stat.value=extract_object_assignments(stat.value)}else if(stat instanceof AST_For){var exprs=join_object_assignments(prev,stat.init);if(exprs){CHANGED=true;stat.init=exprs.length?make_sequence(stat.init,exprs):null;statements[++j]=stat}else if(prev instanceof AST_Var&&(!stat.init||stat.init.TYPE==prev.TYPE)){if(stat.init){prev.definitions=prev.definitions.concat(stat.init.definitions)}stat.init=prev;statements[j]=stat;CHANGED=true}else if(defs&&stat.init&&defs.TYPE==stat.init.TYPE&&declarations_only(stat.init)){defs.definitions=defs.definitions.concat(stat.init.definitions);stat.init=null;statements[++j]=stat;CHANGED=true}else{statements[++j]=stat}}else if(stat instanceof AST_ForIn){stat.object=extract_object_assignments(stat.object)}else if(stat instanceof AST_If){stat.condition=extract_object_assignments(stat.condition)}else if(stat instanceof AST_SimpleStatement){var exprs=join_object_assignments(prev,stat.body);if(exprs){CHANGED=true;if(!exprs.length)continue;stat.body=make_sequence(stat.body,exprs)}statements[++j]=stat}else if(stat instanceof AST_Switch){stat.expression=extract_object_assignments(stat.expression)}else if(stat instanceof AST_With){stat.expression=extract_object_assignments(stat.expression)}else{statements[++j]=stat}}statements.length=j+1;function extract_object_assignments(value){statements[++j]=stat;var exprs=join_object_assignments(prev,value);if(exprs){CHANGED=true;if(exprs.length){return make_sequence(value,exprs)}else if(value instanceof AST_Sequence){return value.tail_node().left}else{return value.left}}return value}}}function extract_declarations_from_unreachable_code(compressor,stat,target){if(!(stat instanceof AST_Defun)){compressor.warn("Dropping unreachable code [{file}:{line},{col}]",stat.start)}stat.walk(new TreeWalker(function(node){if(node instanceof AST_Definitions){compressor.warn("Declarations in unreachable code! [{file}:{line},{col}]",node.start);node.remove_initializers();target.push(node);return true}if(node instanceof AST_Defun){target.push(node);return true}if(node instanceof AST_Scope){return true}}))}function get_value(key){if(key instanceof AST_Constant){return key.getValue()}if(key instanceof AST_UnaryPrefix&&key.operator=="void"&&key.expression instanceof AST_Constant){return}return key}function is_undefined(node,compressor){return node.is_undefined||node instanceof AST_Undefined||node instanceof AST_UnaryPrefix&&node.operator=="void"&&!node.expression.has_side_effects(compressor)}(function(def){AST_Node.DEFMETHOD("may_throw_on_access",function(compressor){return!compressor.option("pure_getters")||this._dot_throw(compressor)});function is_strict(compressor){return/strict/.test(compressor.option("pure_getters"))}def(AST_Node,is_strict);def(AST_Null,return_true);def(AST_Undefined,return_true);def(AST_Constant,return_false);def(AST_Array,return_false);def(AST_Object,function(compressor){if(!is_strict(compressor))return false;for(var i=this.properties.length;--i>=0;)if(this.properties[i].value instanceof AST_Accessor)return true;return false});def(AST_Lambda,return_false);def(AST_UnaryPostfix,return_false);def(AST_UnaryPrefix,function(){return this.operator=="void"});def(AST_Binary,function(compressor){return(this.operator=="&&"||this.operator=="||")&&(this.left._dot_throw(compressor)||this.right._dot_throw(compressor))});def(AST_Assign,function(compressor){return this.operator=="="&&this.right._dot_throw(compressor)});def(AST_Conditional,function(compressor){return this.consequent._dot_throw(compressor)||this.alternative._dot_throw(compressor)});def(AST_Dot,function(compressor){if(!is_strict(compressor))return false;var exp=this.expression;if(exp instanceof AST_SymbolRef)exp=exp.fixed_value();return!(exp instanceof AST_Lambda&&this.property=="prototype")});def(AST_Sequence,function(compressor){return this.tail_node()._dot_throw(compressor)});def(AST_SymbolRef,function(compressor){if(this.is_undefined)return true;if(!is_strict(compressor))return false;if(is_undeclared_ref(this)&&this.is_declared(compressor))return false;if(this.is_immutable())return false;var fixed=this.fixed_value();return!fixed||fixed._dot_throw(compressor)})})(function(node,func){node.DEFMETHOD("_dot_throw",func)});(function(def){var unary_bool=["!","delete"];var binary_bool=["in","instanceof","==","!=","===","!==","<","<=",">=",">"];def(AST_Node,return_false);def(AST_UnaryPrefix,function(){return member(this.operator,unary_bool)});def(AST_Binary,function(){return member(this.operator,binary_bool)||lazy_op(this.operator)&&this.left.is_boolean()&&this.right.is_boolean()});def(AST_Conditional,function(){return this.consequent.is_boolean()&&this.alternative.is_boolean()});def(AST_Assign,function(){return this.operator=="="&&this.right.is_boolean()});def(AST_Sequence,function(){return this.tail_node().is_boolean()});def(AST_True,return_true);def(AST_False,return_true)})(function(node,func){node.DEFMETHOD("is_boolean",func)});(function(def){def(AST_Node,return_false);def(AST_Number,return_true);var unary=makePredicate("+ - ~ ++ --");def(AST_Unary,function(){return unary(this.operator)});var binary=makePredicate("- * / % & | ^ << >> >>>");def(AST_Binary,function(compressor){return binary(this.operator)||this.operator=="+"&&this.left.is_number(compressor)&&this.right.is_number(compressor)});def(AST_Assign,function(compressor){return binary(this.operator.slice(0,-1))||this.operator=="="&&this.right.is_number(compressor)});def(AST_Sequence,function(compressor){return this.tail_node().is_number(compressor)});def(AST_Conditional,function(compressor){return this.consequent.is_number(compressor)&&this.alternative.is_number(compressor)})})(function(node,func){node.DEFMETHOD("is_number",func)});(function(def){def(AST_Node,return_false);def(AST_String,return_true);def(AST_UnaryPrefix,function(){return this.operator=="typeof"});def(AST_Binary,function(compressor){return this.operator=="+"&&(this.left.is_string(compressor)||this.right.is_string(compressor))});def(AST_Assign,function(compressor){return(this.operator=="="||this.operator=="+=")&&this.right.is_string(compressor)});def(AST_Sequence,function(compressor){return this.tail_node().is_string(compressor)});def(AST_Conditional,function(compressor){return this.consequent.is_string(compressor)&&this.alternative.is_string(compressor)})})(function(node,func){node.DEFMETHOD("is_string",func)});var lazy_op=makePredicate("&& ||");var unary_side_effects=makePredicate("delete ++ --");function is_lhs(node,parent){if(parent instanceof AST_Unary&&unary_side_effects(parent.operator))return parent.expression;if(parent instanceof AST_Assign&&parent.left===node)return node}(function(def){AST_Node.DEFMETHOD("resolve_defines",function(compressor){if(!compressor.option("global_defs"))return;var def=this._find_defs(compressor,"");if(def){var node,parent=this,level=0;do{node=parent;parent=compressor.parent(level++)}while(parent instanceof AST_PropAccess&&parent.expression===node);if(is_lhs(node,parent)){compressor.warn("global_defs "+this.print_to_string()+" redefined [{file}:{line},{col}]",this.start)}else{return def}}});function to_node(value,orig){if(value instanceof AST_Node)return make_node(value.CTOR,orig,value);if(Array.isArray(value))return make_node(AST_Array,orig,{elements:value.map(function(value){return to_node(value,orig)})});if(value&&typeof value=="object"){var props=[];for(var key in value)if(HOP(value,key)){props.push(make_node(AST_ObjectKeyVal,orig,{key:key,value:to_node(value[key],orig)}))}return make_node(AST_Object,orig,{properties:props})}return make_node_from_constant(value,orig)}def(AST_Node,noop);def(AST_Dot,function(compressor,suffix){return this.expression._find_defs(compressor,"."+this.property+suffix)});def(AST_SymbolRef,function(compressor,suffix){if(!this.global())return;var name;var defines=compressor.option("global_defs");if(defines&&HOP(defines,name=this.name+suffix)){var node=to_node(defines[name],this);var top=compressor.find_parent(AST_Toplevel);node.walk(new TreeWalker(function(node){if(node instanceof AST_SymbolRef){node.scope=top;node.thedef=top.def_global(node)}}));return node}})})(function(node,func){node.DEFMETHOD("_find_defs",func)});function best_of_expression(ast1,ast2){return ast1.print_to_string().length>ast2.print_to_string().length?ast2:ast1}function best_of_statement(ast1,ast2){return best_of_expression(make_node(AST_SimpleStatement,ast1,{body:ast1}),make_node(AST_SimpleStatement,ast2,{body:ast2})).body}function best_of(compressor,ast1,ast2){return(first_in_statement(compressor)?best_of_statement:best_of_expression)(ast1,ast2)}function convert_to_predicate(obj){for(var key in obj){obj[key]=makePredicate(obj[key])}}var object_fns=["constructor","toString","valueOf"];var native_fns={Array:["indexOf","join","lastIndexOf","slice"].concat(object_fns),Boolean:object_fns,Function:object_fns,Number:["toExponential","toFixed","toPrecision"].concat(object_fns),Object:object_fns,RegExp:["test"].concat(object_fns),String:["charAt","charCodeAt","concat","indexOf","italics","lastIndexOf","match","replace","search","slice","split","substr","substring","toLowerCase","toUpperCase","trim"].concat(object_fns)};convert_to_predicate(native_fns);var static_fns={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"]};convert_to_predicate(static_fns);(function(def){AST_Node.DEFMETHOD("evaluate",function(compressor){if(!compressor.option("evaluate"))return this;var cached=[];var val=this._eval(compressor,cached,1);cached.forEach(function(node){delete node._eval});if(!val||val instanceof RegExp)return val;if(typeof val=="function"||typeof val=="object")return this;return val});var unaryPrefix=makePredicate("! ~ - + void");AST_Node.DEFMETHOD("is_constant",function(){if(this instanceof AST_Constant){return!(this instanceof AST_RegExp)}else{return this instanceof AST_UnaryPrefix&&this.expression instanceof AST_Constant&&unaryPrefix(this.operator)}});def(AST_Statement,function(){throw new Error(string_template("Cannot evaluate a statement [{file}:{line},{col}]",this.start))});def(AST_Lambda,return_this);def(AST_Node,return_this);def(AST_Constant,function(){return this.getValue()});def(AST_Function,function(compressor){if(compressor.option("unsafe")){var fn=function(){};fn.node=this;fn.toString=function(){return"function(){}"};return fn}return this});def(AST_Array,function(compressor,cached,depth){if(compressor.option("unsafe")){var elements=[];for(var i=0,len=this.elements.length;i<len;i++){var element=this.elements[i];var value=element._eval(compressor,cached,depth);if(element===value)return this;elements.push(value)}return elements}return this});def(AST_Object,function(compressor,cached,depth){if(compressor.option("unsafe")){var val={};for(var i=0,len=this.properties.length;i<len;i++){var prop=this.properties[i];var key=prop.key;if(key instanceof AST_Symbol){key=key.name}else if(key instanceof AST_Node){key=key._eval(compressor,cached,depth);if(key===prop.key)return this}if(typeof Object.prototype[key]==="function"){return this}if(prop.value instanceof AST_Function)continue;val[key]=prop.value._eval(compressor,cached,depth);if(val[key]===prop.value)return this}return val}return this});var non_converting_unary=makePredicate("! typeof void");def(AST_UnaryPrefix,function(compressor,cached,depth){var e=this.expression;if(compressor.option("typeofs")&&this.operator=="typeof"&&(e instanceof AST_Lambda||e instanceof AST_SymbolRef&&e.fixed_value()instanceof AST_Lambda)){return typeof function(){}}if(!non_converting_unary(this.operator))depth++;e=e._eval(compressor,cached,depth);if(e===this.expression)return this;switch(this.operator){case"!":return!e;case"typeof":if(e instanceof RegExp)return this;return typeof e;case"void":return void e;case"~":return~e;case"-":return-e;case"+":return+e}return this});var non_converting_binary=makePredicate("&& || === !==");def(AST_Binary,function(compressor,cached,depth){if(!non_converting_binary(this.operator))depth++;var left=this.left._eval(compressor,cached,depth);if(left===this.left)return this;var right=this.right._eval(compressor,cached,depth);if(right===this.right)return this;var result;switch(this.operator){case"&&":result=left&&right;break;case"||":result=left||right;break;case"|":result=left|right;break;case"&":result=left&right;break;case"^":result=left^right;break;case"+":result=left+right;break;case"*":result=left*right;break;case"/":result=left/right;break;case"%":result=left%right;break;case"-":result=left-right;break;case"<<":result=left<<right;break;case">>":result=left>>right;break;case">>>":result=left>>>right;break;case"==":result=left==right;break;case"===":result=left===right;break;case"!=":result=left!=right;break;case"!==":result=left!==right;break;case"<":result=left<right;break;case"<=":result=left<=right;break;case">":result=left>right;break;case">=":result=left>=right;break;default:return this}if(isNaN(result)&&compressor.find_parent(AST_With)){return this}return result});def(AST_Conditional,function(compressor,cached,depth){var condition=this.condition._eval(compressor,cached,depth);if(condition===this.condition)return this;var node=condition?this.consequent:this.alternative;var value=node._eval(compressor,cached,depth);return value===node?this:value});def(AST_SymbolRef,function(compressor,cached,depth){var fixed=this.fixed_value();if(!fixed)return this;var value;if(cached.indexOf(fixed)>=0){value=fixed._eval()}else{this._eval=return_this;value=fixed._eval(compressor,cached,depth);delete this._eval;if(value===fixed)return this;fixed._eval=function(){return value};cached.push(fixed)}if(value&&typeof value=="object"){var escaped=this.definition().escaped;if(escaped&&depth>escaped)return this}return value});var global_objs={Array:Array,Math:Math,Number:Number,Object:Object,String:String};var static_values={Math:["E","LN10","LN2","LOG2E","LOG10E","PI","SQRT1_2","SQRT2"],Number:["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"]};convert_to_predicate(static_values);def(AST_PropAccess,function(compressor,cached,depth){if(compressor.option("unsafe")){var key=this.property;if(key instanceof AST_Node){key=key._eval(compressor,cached,depth);if(key===this.property)return this}var exp=this.expression;var val;if(is_undeclared_ref(exp)){if(!(static_values[exp.name]||return_false)(key))return this;val=global_objs[exp.name]}else{val=exp._eval(compressor,cached,depth+1);if(!val||val===exp||!HOP(val,key))return this;if(typeof val=="function")switch(key){case"name":return val.node.name?val.node.name.name:"";case"length":return val.node.argnames.length;default:return this}}return val[key]}return this});def(AST_Call,function(compressor,cached,depth){var exp=this.expression;if(compressor.option("unsafe")&&exp instanceof AST_PropAccess){var key=exp.property;if(key instanceof AST_Node){key=key._eval(compressor,cached,depth);if(key===exp.property)return this}var val;var e=exp.expression;if(is_undeclared_ref(e)){if(!(static_fns[e.name]||return_false)(key))return this;val=global_objs[e.name]}else{val=e._eval(compressor,cached,depth+1);if(val===e||!(val&&native_fns[val.constructor.name]||return_false)(key))return this}var args=[];for(var i=0,len=this.args.length;i<len;i++){var arg=this.args[i];var value=arg._eval(compressor,cached,depth);if(arg===value)return this;args.push(value)}try{return val[key].apply(val,args)}catch(ex){compressor.warn("Error evaluating {code} [{file}:{line},{col}]",{code:this.print_to_string(),file:this.start.file,line:this.start.line,col:this.start.col})}}return this});def(AST_New,return_this)})(function(node,func){node.DEFMETHOD("_eval",func)});(function(def){function basic_negation(exp){return make_node(AST_UnaryPrefix,exp,{operator:"!",expression:exp})}function best(orig,alt,first_in_statement){var negated=basic_negation(orig);if(first_in_statement){var stat=make_node(AST_SimpleStatement,alt,{body:alt});return best_of_expression(negated,stat)===stat?alt:negated}return best_of_expression(negated,alt)}def(AST_Node,function(){return basic_negation(this)});def(AST_Statement,function(){throw new Error("Cannot negate a statement")});def(AST_Function,function(){return basic_negation(this)});def(AST_UnaryPrefix,function(){if(this.operator=="!")return this.expression;return basic_negation(this)});def(AST_Sequence,function(compressor){var expressions=this.expressions.slice();expressions.push(expressions.pop().negate(compressor));return make_sequence(this,expressions)});def(AST_Conditional,function(compressor,first_in_statement){var self=this.clone();self.consequent=self.consequent.negate(compressor);self.alternative=self.alternative.negate(compressor);return best(this,self,first_in_statement)});def(AST_Binary,function(compressor,first_in_statement){var self=this.clone(),op=this.operator;if(compressor.option("unsafe_comps")){switch(op){case"<=":self.operator=">";return self;case"<":self.operator=">=";return self;case">=":self.operator="<";return self;case">":self.operator="<=";return self}}switch(op){case"==":self.operator="!=";return self;case"!=":self.operator="==";return self;case"===":self.operator="!==";return self;case"!==":self.operator="===";return self;case"&&":self.operator="||";self.left=self.left.negate(compressor,first_in_statement);self.right=self.right.negate(compressor);return best(this,self,first_in_statement);case"||":self.operator="&&";self.left=self.left.negate(compressor,first_in_statement);self.right=self.right.negate(compressor);return best(this,self,first_in_statement)}return basic_negation(this)})})(function(node,func){node.DEFMETHOD("negate",function(compressor,first_in_statement){return func.call(this,compressor,first_in_statement)})});var global_pure_fns=makePredicate("Boolean decodeURI decodeURIComponent Date encodeURI encodeURIComponent Error escape EvalError isFinite isNaN Number Object parseFloat parseInt RangeError ReferenceError String SyntaxError TypeError unescape URIError");AST_Call.DEFMETHOD("is_expr_pure",function(compressor){if(compressor.option("unsafe")){var expr=this.expression;if(is_undeclared_ref(expr)&&global_pure_fns(expr.name))return true;if(expr instanceof AST_Dot&&is_undeclared_ref(expr.expression)&&(static_fns[expr.expression.name]||return_false)(expr.property)){return true}}return this.pure||!compressor.pure_funcs(this)});AST_Node.DEFMETHOD("is_call_pure",return_false);AST_Dot.DEFMETHOD("is_call_pure",function(compressor){if(!compressor.option("unsafe"))return;var expr=this.expression;var fns=return_false;if(expr instanceof AST_Array){fns=native_fns.Array}else if(expr.is_boolean()){fns=native_fns.Boolean}else if(expr.is_number(compressor)){fns=native_fns.Number}else if(expr instanceof AST_RegExp){fns=native_fns.RegExp}else if(expr.is_string(compressor)){fns=native_fns.String}else if(!this.may_throw_on_access(compressor)){fns=native_fns.Object}return fns(this.property)});(function(def){def(AST_Node,return_true);def(AST_EmptyStatement,return_false);def(AST_Constant,return_false);def(AST_This,return_false);function any(list,compressor){for(var i=list.length;--i>=0;)if(list[i].has_side_effects(compressor))return true;return false}def(AST_Block,function(compressor){return any(this.body,compressor)});def(AST_Call,function(compressor){if(!this.is_expr_pure(compressor)&&(!this.expression.is_call_pure(compressor)||this.expression.has_side_effects(compressor))){return true}return any(this.args,compressor)});def(AST_Switch,function(compressor){return this.expression.has_side_effects(compressor)||any(this.body,compressor)});def(AST_Case,function(compressor){return this.expression.has_side_effects(compressor)||any(this.body,compressor)});def(AST_Try,function(compressor){return any(this.body,compressor)||this.bcatch&&this.bcatch.has_side_effects(compressor)||this.bfinally&&this.bfinally.has_side_effects(compressor)});def(AST_If,function(compressor){return this.condition.has_side_effects(compressor)||this.body&&this.body.has_side_effects(compressor)||this.alternative&&this.alternative.has_side_effects(compressor)});def(AST_LabeledStatement,function(compressor){return this.body.has_side_effects(compressor)});def(AST_SimpleStatement,function(compressor){return this.body.has_side_effects(compressor)});def(AST_Lambda,return_false);def(AST_Binary,function(compressor){return this.left.has_side_effects(compressor)||this.right.has_side_effects(compressor)});def(AST_Assign,return_true);def(AST_Conditional,function(compressor){return this.condition.has_side_effects(compressor)||this.consequent.has_side_effects(compressor)||this.alternative.has_side_effects(compressor)});def(AST_Unary,function(compressor){return unary_side_effects(this.operator)||this.expression.has_side_effects(compressor)});def(AST_SymbolRef,function(compressor){return!this.is_declared(compressor)});def(AST_SymbolDeclaration,return_false);def(AST_Object,function(compressor){return any(this.properties,compressor)});def(AST_ObjectProperty,function(compressor){return this.value.has_side_effects(compressor)});def(AST_Array,function(compressor){return any(this.elements,compressor)});def(AST_Dot,function(compressor){return this.expression.may_throw_on_access(compressor)||this.expression.has_side_effects(compressor)});def(AST_Sub,function(compressor){return this.expression.may_throw_on_access(compressor)||this.expression.has_side_effects(compressor)||this.property.has_side_effects(compressor)});def(AST_Sequence,function(compressor){return any(this.expressions,compressor)});def(AST_Definitions,function(compressor){return any(this.definitions,compressor)});def(AST_VarDef,function(compressor){return this.value})})(function(node,func){node.DEFMETHOD("has_side_effects",func)});(function(def){def(AST_Node,return_true);def(AST_Constant,return_false);def(AST_EmptyStatement,return_false);def(AST_Lambda,return_false);def(AST_SymbolDeclaration,return_false);def(AST_This,return_false);function any(list,compressor){for(var i=list.length;--i>=0;)if(list[i].may_throw(compressor))return true;return false}def(AST_Array,function(compressor){return any(this.elements,compressor)});def(AST_Assign,function(compressor){if(this.right.may_throw(compressor))return true;if(!compressor.has_directive("use strict")&&this.operator=="="&&this.left instanceof AST_SymbolRef){return false}return this.left.may_throw(compressor)});def(AST_Binary,function(compressor){return this.left.may_throw(compressor)||this.right.may_throw(compressor)});def(AST_Block,function(compressor){return any(this.body,compressor)});def(AST_Call,function(compressor){if(any(this.args,compressor))return true;if(this.is_expr_pure(compressor))return false;if(this.expression.may_throw(compressor))return true;return!(this.expression instanceof AST_Lambda)||any(this.expression.body,compressor)});def(AST_Case,function(compressor){return this.expression.may_throw(compressor)||any(this.body,compressor)});def(AST_Conditional,function(compressor){return this.condition.may_throw(compressor)||this.consequent.may_throw(compressor)||this.alternative.may_throw(compressor)});def(AST_Definitions,function(compressor){return any(this.definitions,compressor)});def(AST_Dot,function(compressor){return this.expression.may_throw_on_access(compressor)||this.expression.may_throw(compressor)});def(AST_If,function(compressor){return this.condition.may_throw(compressor)||this.body&&this.body.may_throw(compressor)||this.alternative&&this.alternative.may_throw(compressor)});def(AST_LabeledStatement,function(compressor){return this.body.may_throw(compressor)});def(AST_Object,function(compressor){return any(this.properties,compressor)});def(AST_ObjectProperty,function(compressor){return this.value.may_throw(compressor)});def(AST_Return,function(compressor){return this.value&&this.value.may_throw(compressor)});def(AST_Sequence,function(compressor){return any(this.expressions,compressor)});def(AST_SimpleStatement,function(compressor){return this.body.may_throw(compressor)});def(AST_Sub,function(compressor){return this.expression.may_throw_on_access(compressor)||this.expression.may_throw(compressor)||this.property.may_throw(compressor)});def(AST_Switch,function(compressor){return this.expression.may_throw(compressor)||any(this.body,compressor)});def(AST_SymbolRef,function(compressor){return!this.is_declared(compressor)});def(AST_Try,function(compressor){return this.bcatch?this.bcatch.may_throw(compressor):any(this.body,compressor)||this.bfinally&&this.bfinally.may_throw(compressor)});def(AST_Unary,function(compressor){if(this.operator=="typeof"&&this.expression instanceof AST_SymbolRef)return false;return this.expression.may_throw(compressor)});def(AST_VarDef,function(compressor){if(!this.value)return false;return this.value.may_throw(compressor)})})(function(node,func){node.DEFMETHOD("may_throw",func)});(function(def){function all(list){for(var i=list.length;--i>=0;)if(!list[i].is_constant_expression())return false;return true}def(AST_Node,return_false);def(AST_Constant,return_true);def(AST_Lambda,function(scope){var self=this;var result=true;self.walk(new TreeWalker(function(node){if(!result)return true;if(node instanceof AST_SymbolRef){if(self.inlined){result=false;return true}var def=node.definition();if(member(def,self.enclosed)&&!self.variables.has(def.name)){if(scope){var scope_def=scope.find_variable(node);if(def.undeclared?!scope_def:scope_def===def){result="f";return true}}result=false}return true}}));return result});def(AST_Unary,function(){return this.expression.is_constant_expression()});def(AST_Binary,function(){return this.left.is_constant_expression()&&this.right.is_constant_expression()});def(AST_Array,function(){return all(this.elements)});def(AST_Object,function(){return all(this.properties)});def(AST_ObjectProperty,function(){return this.value.is_constant_expression()})})(function(node,func){node.DEFMETHOD("is_constant_expression",func)});function aborts(thing){return thing&&thing.aborts()}(function(def){def(AST_Statement,return_null);def(AST_Jump,return_this);function block_aborts(){var n=this.body.length;return n>0&&aborts(this.body[n-1])}def(AST_BlockStatement,block_aborts);def(AST_SwitchBranch,block_aborts);def(AST_If,function(){return this.alternative&&aborts(this.body)&&aborts(this.alternative)&&this})})(function(node,func){node.DEFMETHOD("aborts",func)});OPT(AST_Directive,function(self,compressor){if(compressor.has_directive(self.value)!==self){return make_node(AST_EmptyStatement,self)}return self});OPT(AST_Debugger,function(self,compressor){if(compressor.option("drop_debugger"))return make_node(AST_EmptyStatement,self);return self});OPT(AST_LabeledStatement,function(self,compressor){if(self.body instanceof AST_Break&&compressor.loopcontrol_target(self.body)===self.body){return make_node(AST_EmptyStatement,self)}return self.label.references.length==0?self.body:self});OPT(AST_Block,function(self,compressor){tighten_body(self.body,compressor);return self});OPT(AST_BlockStatement,function(self,compressor){tighten_body(self.body,compressor);switch(self.body.length){case 1:return self.body[0];case 0:return make_node(AST_EmptyStatement,self)}return self});OPT(AST_Lambda,function(self,compressor){tighten_body(self.body,compressor);if(compressor.option("side_effects")&&self.body.length==1&&self.body[0]===compressor.has_directive("use strict")){self.body.length=0}return self});AST_Scope.DEFMETHOD("drop_unused",function(compressor){if(!compressor.option("unused"))return;if(compressor.has_directive("use asm"))return;var self=this;if(self.uses_eval||self.uses_with)return;var drop_funcs=!(self instanceof AST_Toplevel)||compressor.toplevel.funcs;var drop_vars=!(self instanceof AST_Toplevel)||compressor.toplevel.vars;var assign_as_unused=/keep_assign/.test(compressor.option("unused"))?return_false:function(node,props){var sym;if(node instanceof AST_Assign&&(node.write_only||node.operator=="=")){sym=node.left}else if(node instanceof AST_Unary&&node.write_only){sym=node.expression}if(/strict/.test(compressor.option("pure_getters"))){while(sym instanceof AST_PropAccess&&!sym.expression.may_throw_on_access(compressor)){if(sym instanceof AST_Sub)props.unshift(sym.property);sym=sym.expression}}return sym};var in_use=[];var in_use_ids=Object.create(null);var fixed_ids=Object.create(null);if(self instanceof AST_Toplevel&&compressor.top_retain){self.variables.each(function(def){if(compressor.top_retain(def)&&!(def.id in in_use_ids)){in_use_ids[def.id]=true;in_use.push(def)}})}var var_defs_by_id=new Dictionary;var initializations=new Dictionary;var scope=this;var tw=new TreeWalker(function(node,descend){if(node===self)return;if(node instanceof AST_Defun){var node_def=node.name.definition();if(!drop_funcs&&scope===self){if(!(node_def.id in in_use_ids)){in_use_ids[node_def.id]=true;in_use.push(node_def)}}initializations.add(node_def.id,node);return true}if(node instanceof AST_SymbolFunarg&&scope===self){var_defs_by_id.add(node.definition().id,node)}if(node instanceof AST_Definitions&&scope===self){node.definitions.forEach(function(def){var node_def=def.name.definition();if(def.name instanceof AST_SymbolVar){var_defs_by_id.add(node_def.id,def)}if(!drop_vars){if(!(node_def.id in in_use_ids)){in_use_ids[node_def.id]=true;in_use.push(node_def)}}if(def.value){initializations.add(node_def.id,def.value);if(def.value.has_side_effects(compressor)){def.value.walk(tw)}if(!node_def.chained&&def.name.fixed_value()===def.value){fixed_ids[node_def.id]=def}}});return true}return scan_ref_scoped(node,descend)});self.walk(tw);tw=new TreeWalker(scan_ref_scoped);for(var i=0;i<in_use.length;i++){var init=initializations.get(in_use[i].id);if(init)init.forEach(function(init){init.walk(tw)})}var tt=new TreeTransformer(function before(node,descend,in_list){var parent=tt.parent();if(drop_vars){var props=[],sym=assign_as_unused(node,props);if(sym instanceof AST_SymbolRef){var def=sym.definition();var in_use=def.id in in_use_ids;var value=null;if(node instanceof AST_Assign){if(!in_use||node.left===sym&&def.id in fixed_ids&&fixed_ids[def.id]!==node){value=node.right}}else if(!in_use){value=make_node(AST_Number,node,{value:0})}if(value){props.push(value);return maintain_this_binding(parent,node,make_sequence(node,props.map(function(prop){return prop.transform(tt)})))}}}if(scope!==self)return;if(node instanceof AST_Function&&node.name&&!compressor.option("keep_fnames")){var def=node.name.definition();if(!(def.id in in_use_ids)||def.orig.length>1)node.name=null}if(node instanceof AST_Lambda&&!(node instanceof AST_Accessor)){var trim=!compressor.option("keep_fargs");for(var a=node.argnames,i=a.length;--i>=0;){var sym=a[i];if(!(sym.definition().id in in_use_ids)){sym.__unused=true;if(trim){a.pop();compressor[sym.unreferenced()?"warn":"info"]("Dropping unused function argument {name} [{file}:{line},{col}]",template(sym))}}else{trim=false}}}if(drop_funcs&&node instanceof AST_Defun&&node!==self){var def=node.name.definition();if(!(def.id in in_use_ids)){compressor[node.name.unreferenced()?"warn":"info"]("Dropping unused function {name} [{file}:{line},{col}]",template(node.name));def.eliminated++;return make_node(AST_EmptyStatement,node)}}if(node instanceof AST_Definitions&&!(parent instanceof AST_ForIn&&parent.init===node)){var body=[],head=[],tail=[];var side_effects=[];node.definitions.forEach(function(def){if(def.value)def.value=def.value.transform(tt);var sym=def.name.definition();if(!drop_vars||sym.id in in_use_ids){if(def.value&&sym.id in fixed_ids&&fixed_ids[sym.id]!==def){def.value=def.value.drop_side_effect_free(compressor)}if(def.name instanceof AST_SymbolVar){var var_defs=var_defs_by_id.get(sym.id);if(var_defs.length>1&&(!def.value||sym.orig.indexOf(def.name)>sym.eliminated)){compressor.warn("Dropping duplicated definition of variable {name} [{file}:{line},{col}]",template(def.name));if(def.value){var ref=make_node(AST_SymbolRef,def.name,def.name);sym.references.push(ref);var assign=make_node(AST_Assign,def,{operator:"=",left:ref,right:def.value});if(fixed_ids[sym.id]===def){fixed_ids[sym.id]=assign}side_effects.push(assign.transform(tt))}remove(var_defs,def);sym.eliminated++;return}}if(def.value){if(side_effects.length>0){if(tail.length>0){side_effects.push(def.value);def.value=make_sequence(def.value,side_effects)}else{body.push(make_node(AST_SimpleStatement,node,{body:make_sequence(node,side_effects)}))}side_effects=[]}tail.push(def)}else{head.push(def)}}else if(sym.orig[0]instanceof AST_SymbolCatch){var value=def.value&&def.value.drop_side_effect_free(compressor);if(value)side_effects.push(value);def.value=null;head.push(def)}else{var value=def.value&&def.value.drop_side_effect_free(compressor);if(value){compressor.warn("Side effects in initialization of unused variable {name} [{file}:{line},{col}]",template(def.name));side_effects.push(value)}else{compressor[def.name.unreferenced()?"warn":"info"]("Dropping unused variable {name} [{file}:{line},{col}]",template(def.name))}sym.eliminated++}});if(head.length>0||tail.length>0){node.definitions=head.concat(tail);body.push(node)}if(side_effects.length>0){body.push(make_node(AST_SimpleStatement,node,{body:make_sequence(node,side_effects)}))}switch(body.length){case 0:return in_list?MAP.skip:make_node(AST_EmptyStatement,node);case 1:return body[0];default:return in_list?MAP.splice(body):make_node(AST_BlockStatement,node,{body:body})}}if(node instanceof AST_For){descend(node,this);var block;if(node.init instanceof AST_BlockStatement){block=node.init;node.init=block.body.pop();block.body.push(node)}if(node.init instanceof AST_SimpleStatement){node.init=node.init.body}else if(is_empty(node.init)){node.init=null}return!block?node:in_list?MAP.splice(block.body):block}if(node instanceof AST_LabeledStatement&&node.body instanceof AST_For){descend(node,this);if(node.body instanceof AST_BlockStatement){var block=node.body;node.body=block.body.pop();block.body.push(node);return in_list?MAP.splice(block.body):block}return node}if(node instanceof AST_Scope){var save_scope=scope;scope=node;descend(node,this);scope=save_scope;return node}function template(sym){return{name:sym.name,file:sym.start.file,line:sym.start.line,col:sym.start.col}}});self.transform(tt);function scan_ref_scoped(node,descend){var node_def,props=[],sym=assign_as_unused(node,props);if(sym instanceof AST_SymbolRef&&self.variables.get(sym.name)===(node_def=sym.definition())){props.forEach(function(prop){prop.walk(tw)});if(node instanceof AST_Assign){node.right.walk(tw);if(node.left===sym&&!node_def.chained&&sym.fixed_value()===node.right){fixed_ids[node_def.id]=node}}return true}if(node instanceof AST_SymbolRef){node_def=node.definition();if(!(node_def.id in in_use_ids)){in_use_ids[node_def.id]=true;in_use.push(node_def)}return true}if(node instanceof AST_Scope){var save_scope=scope;scope=node;descend();scope=save_scope;return true}}});AST_Scope.DEFMETHOD("hoist_declarations",function(compressor){var self=this;if(compressor.has_directive("use asm"))return self;var hoist_funs=compressor.option("hoist_funs");var hoist_vars=compressor.option("hoist_vars");if(hoist_funs||hoist_vars){var dirs=[];var hoisted=[];var vars=new Dictionary,vars_found=0,var_decl=0;self.walk(new TreeWalker(function(node){if(node instanceof AST_Scope&&node!==self)return true;if(node instanceof AST_Var){++var_decl;return true}}));hoist_vars=hoist_vars&&var_decl>1;var tt=new TreeTransformer(function before(node){if(node!==self){if(node instanceof AST_Directive){dirs.push(node);return make_node(AST_EmptyStatement,node)}if(hoist_funs&&node instanceof AST_Defun&&(tt.parent()===self||!compressor.has_directive("use strict"))){hoisted.push(node);return make_node(AST_EmptyStatement,node)}if(hoist_vars&&node instanceof AST_Var){node.definitions.forEach(function(def){vars.set(def.name.name,def);++vars_found});var seq=node.to_assignments(compressor);var p=tt.parent();if(p instanceof AST_ForIn&&p.init===node){if(seq==null){var def=node.definitions[0].name;return make_node(AST_SymbolRef,def,def)}return seq}if(p instanceof AST_For&&p.init===node){return seq}if(!seq)return make_node(AST_EmptyStatement,node);return make_node(AST_SimpleStatement,node,{body:seq})}if(node instanceof AST_Scope)return node}});self=self.transform(tt);if(vars_found>0){var defs=[];vars.each(function(def,name){if(self instanceof AST_Lambda&&find_if(function(x){return x.name==def.name.name},self.argnames)){vars.del(name)}else{def=def.clone();def.value=null;defs.push(def);vars.set(name,def)}});if(defs.length>0){for(var i=0;i<self.body.length;){if(self.body[i]instanceof AST_SimpleStatement){var expr=self.body[i].body,sym,assign;if(expr instanceof AST_Assign&&expr.operator=="="&&(sym=expr.left)instanceof AST_Symbol&&vars.has(sym.name)){var def=vars.get(sym.name);if(def.value)break;def.value=expr.right;remove(defs,def);defs.push(def);self.body.splice(i,1);continue}if(expr instanceof AST_Sequence&&(assign=expr.expressions[0])instanceof AST_Assign&&assign.operator=="="&&(sym=assign.left)instanceof AST_Symbol&&vars.has(sym.name)){var def=vars.get(sym.name);if(def.value)break;def.value=assign.right;remove(defs,def);defs.push(def);self.body[i].body=make_sequence(expr,expr.expressions.slice(1));continue}}if(self.body[i]instanceof AST_EmptyStatement){self.body.splice(i,1);continue}if(self.body[i]instanceof AST_BlockStatement){var tmp=[i,1].concat(self.body[i].body);self.body.splice.apply(self.body,tmp);continue}break}defs=make_node(AST_Var,self,{definitions:defs});hoisted.push(defs)}}self.body=dirs.concat(hoisted,self.body)}return self});AST_Scope.DEFMETHOD("var_names",function(){var var_names=this._var_names;if(!var_names){this._var_names=var_names=Object.create(null);this.enclosed.forEach(function(def){var_names[def.name]=true});this.variables.each(function(def,name){var_names[name]=true})}return var_names});AST_Scope.DEFMETHOD("make_var_name",function(prefix){var var_names=this.var_names();prefix=prefix.replace(/(?:^[^a-z_$]|[^a-z0-9_$])/gi,"_");var name=prefix;for(var i=0;var_names[name];i++)name=prefix+"$"+i;var_names[name]=true;return name});AST_Scope.DEFMETHOD("hoist_properties",function(compressor){var self=this;if(!compressor.option("hoist_props")||compressor.has_directive("use asm"))return self;var top_retain=self instanceof AST_Toplevel&&compressor.top_retain||return_false;var defs_by_id=Object.create(null);return self.transform(new TreeTransformer(function(node,descend){if(node instanceof AST_VarDef){var sym=node.name,def,value;if(sym.scope===self&&(def=sym.definition()).escaped!=1&&!def.single_use&&!def.direct_access&&!top_retain(def)&&(value=sym.fixed_value())===node.value&&value instanceof AST_Object){descend(node,this);var defs=new Dictionary;var assignments=[];value.properties.forEach(function(prop){assignments.push(make_node(AST_VarDef,node,{name:make_sym(prop.key),value:prop.value}))});defs_by_id[def.id]=defs;return MAP.splice(assignments)}}if(node instanceof AST_PropAccess&&node.expression instanceof AST_SymbolRef){var defs=defs_by_id[node.expression.definition().id];if(defs){var def=defs.get(get_value(node.property));var sym=make_node(AST_SymbolRef,node,{name:def.name,scope:node.expression.scope,thedef:def});sym.reference({});return sym}}function make_sym(key){var new_var=make_node(sym.CTOR,sym,{name:self.make_var_name(sym.name+"_"+key),scope:self});var def=self.def_variable(new_var);defs.set(key,def);self.enclosed.push(def);return new_var}}))});(function(def){function trim(nodes,compressor,first_in_statement){var len=nodes.length;if(!len)return null;var ret=[],changed=false;for(var i=0;i<len;i++){var node=nodes[i].drop_side_effect_free(compressor,first_in_statement);changed|=node!==nodes[i];if(node){ret.push(node);first_in_statement=false}}return changed?ret.length?ret:null:nodes}def(AST_Node,return_this);def(AST_Constant,return_null);def(AST_This,return_null);def(AST_Call,function(compressor,first_in_statement){if(!this.is_expr_pure(compressor)){if(this.expression.is_call_pure(compressor)){var exprs=this.args.slice();exprs.unshift(this.expression.expression);exprs=trim(exprs,compressor,first_in_statement);return exprs&&make_sequence(this,exprs)}if(this.expression instanceof AST_Function&&(!this.expression.name||!this.expression.name.definition().references.length)){var node=this.clone();var exp=node.expression;exp.process_expression(false,compressor);exp.walk(new TreeWalker(function(node){if(node instanceof AST_Return&&node.value){node.value=node.value.drop_side_effect_free(compressor);return true}if(node instanceof AST_Scope&&node!==exp)return true}));return node}return this}if(this.pure){compressor.warn("Dropping __PURE__ call [{file}:{line},{col}]",this.start)}var args=trim(this.args,compressor,first_in_statement);return args&&make_sequence(this,args)});def(AST_Accessor,return_null);def(AST_Function,return_null);def(AST_Binary,function(compressor,first_in_statement){var right=this.right.drop_side_effect_free(compressor);if(!right)return this.left.drop_side_effect_free(compressor,first_in_statement);if(lazy_op(this.operator)){if(right===this.right)return this;var node=this.clone();node.right=right;return node}else{var left=this.left.drop_side_effect_free(compressor,first_in_statement);if(!left)return this.right.drop_side_effect_free(compressor,first_in_statement);return make_sequence(this,[left,right])}});def(AST_Assign,function(compressor){var left=this.left;if(left.has_side_effects(compressor)||compressor.has_directive("use strict")&&left instanceof AST_PropAccess&&left.expression.is_constant()){return this}this.write_only=true;if(root_expr(left).is_constant_expression(compressor.find_parent(AST_Scope))){return this.right.drop_side_effect_free(compressor)}return this});def(AST_Conditional,function(compressor){var consequent=this.consequent.drop_side_effect_free(compressor);var alternative=this.alternative.drop_side_effect_free(compressor);if(consequent===this.consequent&&alternative===this.alternative)return this;if(!consequent)return alternative?make_node(AST_Binary,this,{operator:"||",left:this.condition,right:alternative}):this.condition.drop_side_effect_free(compressor);if(!alternative)return make_node(AST_Binary,this,{operator:"&&",left:this.condition,right:consequent});var node=this.clone();node.consequent=consequent;node.alternative=alternative;return node});def(AST_Unary,function(compressor,first_in_statement){if(unary_side_effects(this.operator)){this.write_only=!this.expression.has_side_effects(compressor);return this}if(this.operator=="typeof"&&this.expression instanceof AST_SymbolRef)return null;var expression=this.expression.drop_side_effect_free(compressor,first_in_statement);if(first_in_statement&&expression&&is_iife_call(expression)){if(expression===this.expression&&this.operator=="!")return this;return expression.negate(compressor,first_in_statement)}return expression});def(AST_SymbolRef,function(compressor){return this.is_declared(compressor)?null:this});def(AST_Object,function(compressor,first_in_statement){var values=trim(this.properties,compressor,first_in_statement);return values&&make_sequence(this,values)});def(AST_ObjectProperty,function(compressor,first_in_statement){return this.value.drop_side_effect_free(compressor,first_in_statement)});def(AST_Array,function(compressor,first_in_statement){var values=trim(this.elements,compressor,first_in_statement);return values&&make_sequence(this,values)});def(AST_Dot,function(compressor,first_in_statement){if(this.expression.may_throw_on_access(compressor))return this;return this.expression.drop_side_effect_free(compressor,first_in_statement)});def(AST_Sub,function(compressor,first_in_statement){if(this.expression.may_throw_on_access(compressor))return this;var expression=this.expression.drop_side_effect_free(compressor,first_in_statement);if(!expression)return this.property.drop_side_effect_free(compressor,first_in_statement);var property=this.property.drop_side_effect_free(compressor);if(!property)return expression;return make_sequence(this,[expression,property])});def(AST_Sequence,function(compressor){var last=this.tail_node();var expr=last.drop_side_effect_free(compressor);if(expr===last)return this;var expressions=this.expressions.slice(0,-1);if(expr)expressions.push(expr);return make_sequence(this,expressions)})})(function(node,func){node.DEFMETHOD("drop_side_effect_free",func)});OPT(AST_SimpleStatement,function(self,compressor){if(compressor.option("side_effects")){var body=self.body;var node=body.drop_side_effect_free(compressor,true);if(!node){compressor.warn("Dropping side-effect-free statement [{file}:{line},{col}]",self.start);return make_node(AST_EmptyStatement,self)}if(node!==body){return make_node(AST_SimpleStatement,self,{body:node})}}return self});OPT(AST_While,function(self,compressor){return compressor.option("loops")?make_node(AST_For,self,self).optimize(compressor):self});OPT(AST_Do,function(self,compressor){if(!compressor.option("loops"))return self;var cond=self.condition.tail_node().evaluate(compressor);if(!(cond instanceof AST_Node)){if(cond)return make_node(AST_For,self,{body:make_node(AST_BlockStatement,self.body,{body:[self.body,make_node(AST_SimpleStatement,self.condition,{body:self.condition})]})}).optimize(compressor);var has_loop_control=false;var tw=new TreeWalker(function(node){if(node instanceof AST_Scope||has_loop_control)return true;if(node instanceof AST_LoopControl&&tw.loopcontrol_target(node)===self)return has_loop_control=true});var parent=compressor.parent();(parent instanceof AST_LabeledStatement?parent:self).walk(tw);if(!has_loop_control)return make_node(AST_BlockStatement,self.body,{body:[self.body,make_node(AST_SimpleStatement,self.condition,{body:self.condition})]}).optimize(compressor)}if(self.body instanceof AST_SimpleStatement)return make_node(AST_For,self,{condition:make_sequence(self.condition,[self.body.body,self.condition]),body:make_node(AST_EmptyStatement,self)}).optimize(compressor);return self});function if_break_in_loop(self,compressor){var first=self.body instanceof AST_BlockStatement?self.body.body[0]:self.body;if(compressor.option("dead_code")&&is_break(first)){var body=[];if(self.init instanceof AST_Statement){body.push(self.init)}else if(self.init){body.push(make_node(AST_SimpleStatement,self.init,{body:self.init}))}if(self.condition){body.push(make_node(AST_SimpleStatement,self.condition,{body:self.condition}))}extract_declarations_from_unreachable_code(compressor,self.body,body);return make_node(AST_BlockStatement,self,{body:body})}if(first instanceof AST_If){if(is_break(first.body)){if(self.condition){self.condition=make_node(AST_Binary,self.condition,{left:self.condition,operator:"&&",right:first.condition.negate(compressor)})}else{self.condition=first.condition.negate(compressor)}drop_it(first.alternative)}else if(is_break(first.alternative)){if(self.condition){self.condition=make_node(AST_Binary,self.condition,{left:self.condition,operator:"&&",right:first.condition})}else{self.condition=first.condition}drop_it(first.body)}}return self;function is_break(node){return node instanceof AST_Break&&compressor.loopcontrol_target(node)===compressor.self()}function drop_it(rest){rest=as_statement_array(rest);if(self.body instanceof AST_BlockStatement){self.body=self.body.clone();self.body.body=rest.concat(self.body.body.slice(1));self.body=self.body.transform(compressor)}else{self.body=make_node(AST_BlockStatement,self.body,{body:rest}).transform(compressor)}self=if_break_in_loop(self,compressor)}}OPT(AST_For,function(self,compressor){if(!compressor.option("loops"))return self;if(compressor.option("side_effects")&&self.init){self.init=self.init.drop_side_effect_free(compressor)}if(self.condition){var cond=self.condition.evaluate(compressor);if(!(cond instanceof AST_Node)){if(cond)self.condition=null;else if(!compressor.option("dead_code")){var orig=self.condition;self.condition=make_node_from_constant(cond,self.condition);self.condition=best_of_expression(self.condition.transform(compressor),orig)}}if(compressor.option("dead_code")){if(cond instanceof AST_Node)cond=self.condition.tail_node().evaluate(compressor);if(!cond){var body=[];extract_declarations_from_unreachable_code(compressor,self.body,body);if(self.init instanceof AST_Statement){body.push(self.init)}else if(self.init){body.push(make_node(AST_SimpleStatement,self.init,{body:self.init}))}body.push(make_node(AST_SimpleStatement,self.condition,{body:self.condition}));return make_node(AST_BlockStatement,self,{body:body}).optimize(compressor)}}}return if_break_in_loop(self,compressor)});OPT(AST_If,function(self,compressor){if(is_empty(self.alternative))self.alternative=null;if(!compressor.option("conditionals"))return self;var cond=self.condition.evaluate(compressor);if(!compressor.option("dead_code")&&!(cond instanceof AST_Node)){var orig=self.condition;self.condition=make_node_from_constant(cond,orig);self.condition=best_of_expression(self.condition.transform(compressor),orig)}if(compressor.option("dead_code")){if(cond instanceof AST_Node)cond=self.condition.tail_node().evaluate(compressor);if(!cond){compressor.warn("Condition always false [{file}:{line},{col}]",self.condition.start);var body=[];extract_declarations_from_unreachable_code(compressor,self.body,body);body.push(make_node(AST_SimpleStatement,self.condition,{body:self.condition}));if(self.alternative)body.push(self.alternative);return make_node(AST_BlockStatement,self,{body:body}).optimize(compressor)}else if(!(cond instanceof AST_Node)){compressor.warn("Condition always true [{file}:{line},{col}]",self.condition.start);var body=[];if(self.alternative){extract_declarations_from_unreachable_code(compressor,self.alternative,body)}body.push(make_node(AST_SimpleStatement,self.condition,{body:self.condition}));body.push(self.body);return make_node(AST_BlockStatement,self,{body:body}).optimize(compressor)}}var negated=self.condition.negate(compressor);var self_condition_length=self.condition.print_to_string().length;var negated_length=negated.print_to_string().length;var negated_is_best=negated_length<self_condition_length;if(self.alternative&&negated_is_best){negated_is_best=false;self.condition=negated;var tmp=self.body;self.body=self.alternative||make_node(AST_EmptyStatement,self);self.alternative=tmp}if(is_empty(self.body)&&is_empty(self.alternative)){return make_node(AST_SimpleStatement,self.condition,{body:self.condition.clone()}).optimize(compressor)}if(self.body instanceof AST_SimpleStatement&&self.alternative instanceof AST_SimpleStatement){return make_node(AST_SimpleStatement,self,{body:make_node(AST_Conditional,self,{condition:self.condition,consequent:self.body.body,alternative:self.alternative.body})}).optimize(compressor)}if(is_empty(self.alternative)&&self.body instanceof AST_SimpleStatement){if(self_condition_length===negated_length&&!negated_is_best&&self.condition instanceof AST_Binary&&self.condition.operator=="||"){negated_is_best=true}if(negated_is_best)return make_node(AST_SimpleStatement,self,{body:make_node(AST_Binary,self,{operator:"||",left:negated,right:self.body.body})}).optimize(compressor);return make_node(AST_SimpleStatement,self,{body:make_node(AST_Binary,self,{operator:"&&",left:self.condition,right:self.body.body})}).optimize(compressor)}if(self.body instanceof AST_EmptyStatement&&self.alternative instanceof AST_SimpleStatement){return make_node(AST_SimpleStatement,self,{body:make_node(AST_Binary,self,{operator:"||",left:self.condition,right:self.alternative.body})}).optimize(compressor)}if(self.body instanceof AST_Exit&&self.alternative instanceof AST_Exit&&self.body.TYPE==self.alternative.TYPE){return make_node(self.body.CTOR,self,{value:make_node(AST_Conditional,self,{condition:self.condition,consequent:self.body.value||make_node(AST_Undefined,self.body),alternative:self.alternative.value||make_node(AST_Undefined,self.alternative)}).transform(compressor)}).optimize(compressor)}if(self.body instanceof AST_If&&!self.body.alternative&&!self.alternative){self=make_node(AST_If,self,{condition:make_node(AST_Binary,self.condition,{operator:"&&",left:self.condition,right:self.body.condition}),body:self.body.body,alternative:null})}if(aborts(self.body)){if(self.alternative){var alt=self.alternative;self.alternative=null;return make_node(AST_BlockStatement,self,{body:[self,alt]}).optimize(compressor)}}if(aborts(self.alternative)){var body=self.body;self.body=self.alternative;self.condition=negated_is_best?negated:self.condition.negate(compressor);self.alternative=null;return make_node(AST_BlockStatement,self,{body:[self,body]}).optimize(compressor)}return self});OPT(AST_Switch,function(self,compressor){if(!compressor.option("switches"))return self;var branch;var value=self.expression.evaluate(compressor);if(!(value instanceof AST_Node)){var orig=self.expression;self.expression=make_node_from_constant(value,orig);self.expression=best_of_expression(self.expression.transform(compressor),orig)}if(!compressor.option("dead_code"))return self;if(value instanceof AST_Node){value=self.expression.tail_node().evaluate(compressor)}var decl=[];var body=[];var default_branch;var exact_match;for(var i=0,len=self.body.length;i<len&&!exact_match;i++){branch=self.body[i];if(branch instanceof AST_Default){if(!default_branch){default_branch=branch}else{eliminate_branch(branch,body[body.length-1])}}else if(!(value instanceof AST_Node)){var exp=branch.expression.evaluate(compressor);if(!(exp instanceof AST_Node)&&exp!==value){eliminate_branch(branch,body[body.length-1]);continue}if(exp instanceof AST_Node)exp=branch.expression.tail_node().evaluate(compressor);if(exp===value){exact_match=branch;if(default_branch){var default_index=body.indexOf(default_branch);body.splice(default_index,1);eliminate_branch(default_branch,body[default_index-1]);default_branch=null}}}if(aborts(branch)){var prev=body[body.length-1];if(aborts(prev)&&prev.body.length==branch.body.length&&make_node(AST_BlockStatement,prev,prev).equivalent_to(make_node(AST_BlockStatement,branch,branch))){prev.body=[]}}body.push(branch)}while(i<len)eliminate_branch(self.body[i++],body[body.length-1]);if(body.length>0){body[0].body=decl.concat(body[0].body)}self.body=body;while(branch=body[body.length-1]){var stat=branch.body[branch.body.length-1];if(stat instanceof AST_Break&&compressor.loopcontrol_target(stat)===self)branch.body.pop();if(branch.body.length||branch instanceof AST_Case&&(default_branch||branch.expression.has_side_effects(compressor)))break;if(body.pop()===default_branch)default_branch=null}if(body.length==0){return make_node(AST_BlockStatement,self,{body:decl.concat(make_node(AST_SimpleStatement,self.expression,{body:self.expression}))}).optimize(compressor)}if(body.length==1&&(body[0]===exact_match||body[0]===default_branch)){var has_break=false;var tw=new TreeWalker(function(node){if(has_break||node instanceof AST_Lambda||node instanceof AST_SimpleStatement)return true;if(node instanceof AST_Break&&tw.loopcontrol_target(node)===self)has_break=true});self.walk(tw);if(!has_break){var statements=body[0].body.slice();var exp=body[0].expression;if(exp)statements.unshift(make_node(AST_SimpleStatement,exp,{body:exp}));statements.unshift(make_node(AST_SimpleStatement,self.expression,{body:self.expression}));return make_node(AST_BlockStatement,self,{body:statements}).optimize(compressor)}}return self;function eliminate_branch(branch,prev){if(prev&&!aborts(prev)){prev.body=prev.body.concat(branch.body)}else{extract_declarations_from_unreachable_code(compressor,branch,decl)}}});OPT(AST_Try,function(self,compressor){tighten_body(self.body,compressor);if(self.bcatch&&self.bfinally&&all(self.bfinally.body,is_empty))self.bfinally=null;if(compressor.option("dead_code")&&all(self.body,is_empty)){var body=[];if(self.bcatch){extract_declarations_from_unreachable_code(compressor,self.bcatch,body);body.forEach(function(stat){if(!(stat instanceof AST_Definitions))return;stat.definitions.forEach(function(var_def){var def=var_def.name.definition().redefined();if(!def)return;var_def.name=var_def.name.clone();var_def.name.thedef=def})})}if(self.bfinally)body=body.concat(self.bfinally.body);return make_node(AST_BlockStatement,self,{body:body}).optimize(compressor)}return self});AST_Definitions.DEFMETHOD("remove_initializers",function(){this.definitions.forEach(function(def){def.value=null})});AST_Definitions.DEFMETHOD("to_assignments",function(compressor){var reduce_vars=compressor.option("reduce_vars");var assignments=this.definitions.reduce(function(a,def){if(def.value){var name=make_node(AST_SymbolRef,def.name,def.name);a.push(make_node(AST_Assign,def,{operator:"=",left:name,right:def.value}));if(reduce_vars)name.definition().fixed=false}def=def.name.definition();def.eliminated++;def.replaced--;return a},[]);if(assignments.length==0)return null;return make_sequence(this,assignments)});OPT(AST_Definitions,function(self,compressor){if(self.definitions.length==0)return make_node(AST_EmptyStatement,self);return self});OPT(AST_Call,function(self,compressor){var exp=self.expression;var fn=exp;if(compressor.option("reduce_vars")&&fn instanceof AST_SymbolRef){fn=fn.fixed_value()}var is_func=fn instanceof AST_Lambda;if(compressor.option("unused")&&is_func&&!fn.uses_arguments&&!fn.uses_eval){var pos=0,last=0;for(var i=0,len=self.args.length;i<len;i++){var trim=i>=fn.argnames.length;if(trim||fn.argnames[i].__unused){var node=self.args[i].drop_side_effect_free(compressor);if(node){self.args[pos++]=node}else if(!trim){self.args[pos++]=make_node(AST_Number,self.args[i],{value:0});continue}}else{self.args[pos++]=self.args[i]}last=pos}self.args.length=last}if(compressor.option("unsafe")){if(is_undeclared_ref(exp))switch(exp.name){case"Array":if(self.args.length!=1){return make_node(AST_Array,self,{elements:self.args}).optimize(compressor)}break;case"Object":if(self.args.length==0){return make_node(AST_Object,self,{properties:[]})}break;case"String":if(self.args.length==0)return make_node(AST_String,self,{value:""});if(self.args.length<=1)return make_node(AST_Binary,self,{left:self.args[0],operator:"+",right:make_node(AST_String,self,{value:""})}).optimize(compressor);break;case"Number":if(self.args.length==0)return make_node(AST_Number,self,{value:0});if(self.args.length==1)return make_node(AST_UnaryPrefix,self,{expression:self.args[0],operator:"+"}).optimize(compressor);case"Boolean":if(self.args.length==0)return make_node(AST_False,self);if(self.args.length==1)return make_node(AST_UnaryPrefix,self,{expression:make_node(AST_UnaryPrefix,self,{expression:self.args[0],operator:"!"}),operator:"!"}).optimize(compressor);break;case"RegExp":var params=[];if(all(self.args,function(arg){var value=arg.evaluate(compressor);params.unshift(value);return arg!==value})){try{return best_of(compressor,self,make_node(AST_RegExp,self,{value:RegExp.apply(RegExp,params)}))}catch(ex){compressor.warn("Error converting {expr} [{file}:{line},{col}]",{expr:self.print_to_string(),file:self.start.file,line:self.start.line,col:self.start.col})}}break}else if(exp instanceof AST_Dot)switch(exp.property){case"toString":if(self.args.length==0&&!exp.expression.may_throw_on_access(compressor)){return make_node(AST_Binary,self,{left:make_node(AST_String,self,{value:""}),operator:"+",right:exp.expression}).optimize(compressor)}break;case"join":if(exp.expression instanceof AST_Array)EXIT:{var separator;if(self.args.length>0){separator=self.args[0].evaluate(compressor);if(separator===self.args[0])break EXIT}var elements=[];var consts=[];exp.expression.elements.forEach(function(el){var value=el.evaluate(compressor);if(value!==el){consts.push(value)}else{if(consts.length>0){elements.push(make_node(AST_String,self,{value:consts.join(separator)}));consts.length=0}elements.push(el)}});if(consts.length>0){elements.push(make_node(AST_String,self,{value:consts.join(separator)}))}if(elements.length==0)return make_node(AST_String,self,{value:""});if(elements.length==1){if(elements[0].is_string(compressor)){return elements[0]}return make_node(AST_Binary,elements[0],{operator:"+",left:make_node(AST_String,self,{value:""}),right:elements[0]})}if(separator==""){var first;if(elements[0].is_string(compressor)||elements[1].is_string(compressor)){first=elements.shift()}else{first=make_node(AST_String,self,{value:""})}return elements.reduce(function(prev,el){return make_node(AST_Binary,el,{operator:"+",left:prev,right:el})},first).optimize(compressor)}var node=self.clone();node.expression=node.expression.clone();node.expression.expression=node.expression.expression.clone();node.expression.expression.elements=elements;return best_of(compressor,self,node)}break;case"charAt":if(exp.expression.is_string(compressor)){var arg=self.args[0];var index=arg?arg.evaluate(compressor):0;if(index!==arg){return make_node(AST_Sub,exp,{expression:exp.expression,property:make_node_from_constant(index|0,arg||exp)}).optimize(compressor)}}break;case"apply":if(self.args.length==2&&self.args[1]instanceof AST_Array){var args=self.args[1].elements.slice();args.unshift(self.args[0]);return make_node(AST_Call,self,{expression:make_node(AST_Dot,exp,{expression:exp.expression,property:"call"}),args:args}).optimize(compressor)}break;case"call":var func=exp.expression;if(func instanceof AST_SymbolRef){func=func.fixed_value()}if(func instanceof AST_Lambda&&!func.contains_this()){return make_sequence(this,[self.args[0],make_node(AST_Call,self,{expression:exp.expression,args:self.args.slice(1)})]).optimize(compressor)}break}}if(compressor.option("unsafe_Function")&&is_undeclared_ref(exp)&&exp.name=="Function"){if(self.args.length==0)return make_node(AST_Function,self,{argnames:[],body:[]});if(all(self.args,function(x){return x instanceof AST_String})){try{var code="n(function("+self.args.slice(0,-1).map(function(arg){return arg.value}).join(",")+"){"+self.args[self.args.length-1].value+"})";var ast=parse(code);var mangle={ie8:compressor.option("ie8")};ast.figure_out_scope(mangle);var comp=new Compressor(compressor.options);ast=ast.transform(comp);ast.figure_out_scope(mangle);ast.compute_char_frequency(mangle);ast.mangle_names(mangle);var fun;ast.walk(new TreeWalker(function(node){if(fun)return true;if(node instanceof AST_Lambda){fun=node;return true}}));var code=OutputStream();AST_BlockStatement.prototype._codegen.call(fun,fun,code);self.args=[make_node(AST_String,self,{value:fun.argnames.map(function(arg){return arg.print_to_string()}).join(",")}),make_node(AST_String,self.args[self.args.length-1],{value:code.get().replace(/^\{|\}$/g,"")})];return self}catch(ex){if(ex instanceof JS_Parse_Error){compressor.warn("Error parsing code passed to new Function [{file}:{line},{col}]",self.args[self.args.length-1].start);compressor.warn(ex.toString())}else{throw ex}}}}var stat=is_func&&fn.body[0];if(compressor.option("inline")&&stat instanceof AST_Return){var value=stat.value;if(!value||value.is_constant_expression()){var args=self.args.concat(value||make_node(AST_Undefined,self));return make_sequence(self,args).optimize(compressor)}}if(is_func){var def,value,scope,in_loop,level=-1;if(compressor.option("inline")&&!fn.uses_arguments&&!fn.uses_eval&&!(fn.name&&fn instanceof AST_Function)&&(value=can_flatten_body(stat))&&(exp===fn||compressor.option("unused")&&(def=exp.definition()).references.length==1&&!recursive_ref(compressor,def)&&fn.is_constant_expression(exp.scope))&&!self.pure&&!fn.contains_this()&&can_inject_symbols()){fn._squeezed=true;return make_sequence(self,flatten_fn()).optimize(compressor)}if(compressor.option("side_effects")&&all(fn.body,is_empty)){var args=self.args.concat(make_node(AST_Undefined,self));return make_sequence(self,args).optimize(compressor)}}if(compressor.option("drop_console")){if(exp instanceof AST_PropAccess){var name=exp.expression;while(name.expression){name=name.expression}if(is_undeclared_ref(name)&&name.name=="console"){return make_node(AST_Undefined,self).optimize(compressor)}}}if(compressor.option("negate_iife")&&compressor.parent()instanceof AST_SimpleStatement&&is_iife_call(self)){return self.negate(compressor,true)}var ev=self.evaluate(compressor);if(ev!==self){ev=make_node_from_constant(ev,self).optimize(compressor);return best_of(compressor,ev,self)}return self;function return_value(stat){if(!stat)return make_node(AST_Undefined,self);if(stat instanceof AST_Return){if(!stat.value)return make_node(AST_Undefined,self);return stat.value.clone(true)}if(stat instanceof AST_SimpleStatement){return make_node(AST_UnaryPrefix,stat,{operator:"void",expression:stat.body.clone(true)})}}function can_flatten_body(stat){var len=fn.body.length;if(compressor.option("inline")<3){return len==1&&return_value(stat)}stat=null;for(var i=0;i<len;i++){var line=fn.body[i];if(line instanceof AST_Var){if(stat&&!all(line.definitions,function(var_def){return!var_def.value})){return false}}else if(line instanceof AST_EmptyStatement){continue}else if(stat){return false}else{stat=line}}return return_value(stat)}function can_inject_args(catches,safe_to_inject){for(var i=0,len=fn.argnames.length;i<len;i++){var arg=fn.argnames[i];if(arg.__unused)continue;if(!safe_to_inject||catches[arg.name]||identifier_atom(arg.name)||scope.var_names()[arg.name]){return false}if(in_loop)in_loop.push(arg.definition())}return true}function can_inject_vars(catches,safe_to_inject){var len=fn.body.length;for(var i=0;i<len;i++){var stat=fn.body[i];if(!(stat instanceof AST_Var))continue;if(!safe_to_inject)return false;for(var j=stat.definitions.length;--j>=0;){var name=stat.definitions[j].name;if(catches[name.name]||identifier_atom(name.name)||scope.var_names()[name.name]){return false}if(in_loop)in_loop.push(name.definition())}}return true}function can_inject_symbols(){var catches=Object.create(null);do{scope=compressor.parent(++level);if(scope instanceof AST_Catch){catches[scope.argname.name]=true}else if(scope instanceof AST_IterationStatement){in_loop=[]}else if(scope instanceof AST_SymbolRef){if(scope.fixed_value()instanceof AST_Scope)return false}}while(!(scope instanceof AST_Scope));var safe_to_inject=!(scope instanceof AST_Toplevel)||compressor.toplevel.vars;var inline=compressor.option("inline");if(!can_inject_vars(catches,inline>=3&&safe_to_inject))return false;if(!can_inject_args(catches,inline>=2&&safe_to_inject))return false;return!in_loop||in_loop.length==0||!is_reachable(fn,in_loop)}function append_var(decls,expressions,name,value){var def=name.definition();scope.variables.set(name.name,def);scope.enclosed.push(def);if(!scope.var_names()[name.name]){scope.var_names()[name.name]=true;decls.push(make_node(AST_VarDef,name,{name:name,value:null}))}var sym=make_node(AST_SymbolRef,name,name);def.references.push(sym);if(value)expressions.push(make_node(AST_Assign,self,{operator:"=",left:sym,right:value}))}function flatten_args(decls,expressions){var len=fn.argnames.length;for(var i=self.args.length;--i>=len;){expressions.push(self.args[i])}for(i=len;--i>=0;){var name=fn.argnames[i];var value=self.args[i];if(name.__unused||scope.var_names()[name.name]){if(value)expressions.push(value)}else{var symbol=make_node(AST_SymbolVar,name,name);name.definition().orig.push(symbol);if(!value&&in_loop)value=make_node(AST_Undefined,self);append_var(decls,expressions,symbol,value)}}decls.reverse();expressions.reverse()}function flatten_vars(decls,expressions){var pos=expressions.length;for(var i=0,lines=fn.body.length;i<lines;i++){var stat=fn.body[i];if(!(stat instanceof AST_Var))continue;for(var j=0,defs=stat.definitions.length;j<defs;j++){var var_def=stat.definitions[j];var name=var_def.name;append_var(decls,expressions,name,var_def.value);if(in_loop){var def=name.definition();var sym=make_node(AST_SymbolRef,name,name);def.references.push(sym);expressions.splice(pos++,0,make_node(AST_Assign,var_def,{operator:"=",left:sym,right:make_node(AST_Undefined,name)}))}}}}function flatten_fn(){var decls=[];var expressions=[];flatten_args(decls,expressions);flatten_vars(decls,expressions);expressions.push(value);if(decls.length){i=scope.body.indexOf(compressor.parent(level-1))+1;scope.body.splice(i,0,make_node(AST_Var,fn,{definitions:decls}))}return expressions}});OPT(AST_New,function(self,compressor){if(compressor.option("unsafe")){var exp=self.expression;if(is_undeclared_ref(exp)){switch(exp.name){case"Object":case"RegExp":case"Function":case"Error":case"Array":return make_node(AST_Call,self,self).transform(compressor)}}}return self});OPT(AST_Sequence,function(self,compressor){if(!compressor.option("side_effects"))return self;var expressions=[];filter_for_side_effects();var end=expressions.length-1;trim_right_for_undefined();if(end==0){self=maintain_this_binding(compressor.parent(),compressor.self(),expressions[0]);if(!(self instanceof AST_Sequence))self=self.optimize(compressor);return self}self.expressions=expressions;return self;function filter_for_side_effects(){var first=first_in_statement(compressor);var last=self.expressions.length-1;self.expressions.forEach(function(expr,index){if(index<last)expr=expr.drop_side_effect_free(compressor,first);if(expr){merge_sequence(expressions,expr);first=false}})}function trim_right_for_undefined(){while(end>0&&is_undefined(expressions[end],compressor))end--;if(end<expressions.length-1){expressions[end]=make_node(AST_UnaryPrefix,self,{operator:"void",expression:expressions[end]});expressions.length=end+1}}});AST_Unary.DEFMETHOD("lift_sequences",function(compressor){if(compressor.option("sequences")){if(this.expression instanceof AST_Sequence){var x=this.expression.expressions.slice();var e=this.clone();e.expression=x.pop();x.push(e);return make_sequence(this,x).optimize(compressor)}}return this});OPT(AST_UnaryPostfix,function(self,compressor){return self.lift_sequences(compressor)});OPT(AST_UnaryPrefix,function(self,compressor){var e=self.expression;if(self.operator=="delete"&&!(e instanceof AST_SymbolRef||e instanceof AST_PropAccess||is_identifier_atom(e))){if(e instanceof AST_Sequence){e=e.expressions.slice();e.push(make_node(AST_True,self));return make_sequence(self,e).optimize(compressor)}return make_sequence(self,[e,make_node(AST_True,self)]).optimize(compressor)}var seq=self.lift_sequences(compressor);if(seq!==self){return seq}if(compressor.option("side_effects")&&self.operator=="void"){e=e.drop_side_effect_free(compressor);if(e){self.expression=e;return self}else{return make_node(AST_Undefined,self).optimize(compressor)}}if(compressor.in_boolean_context()){switch(self.operator){case"!":if(e instanceof AST_UnaryPrefix&&e.operator=="!"){return e.expression}if(e instanceof AST_Binary){self=best_of(compressor,self,e.negate(compressor,first_in_statement(compressor)))}break;case"typeof":compressor.warn("Boolean expression always true [{file}:{line},{col}]",self.start);return(e instanceof AST_SymbolRef?make_node(AST_True,self):make_sequence(self,[e,make_node(AST_True,self)])).optimize(compressor)}}if(self.operator=="-"&&e instanceof AST_Infinity){e=e.transform(compressor)}if(e instanceof AST_Binary&&(self.operator=="+"||self.operator=="-")&&(e.operator=="*"||e.operator=="/"||e.operator=="%")){return make_node(AST_Binary,self,{operator:e.operator,left:make_node(AST_UnaryPrefix,e.left,{operator:self.operator,expression:e.left}),right:e.right})}if(self.operator!="-"||!(e instanceof AST_Number||e instanceof AST_Infinity)){var ev=self.evaluate(compressor);if(ev!==self){ev=make_node_from_constant(ev,self).optimize(compressor);return best_of(compressor,ev,self)}}return self});AST_Binary.DEFMETHOD("lift_sequences",function(compressor){if(compressor.option("sequences")){if(this.left instanceof AST_Sequence){var x=this.left.expressions.slice();var e=this.clone();e.left=x.pop();x.push(e);return make_sequence(this,x).optimize(compressor)}if(this.right instanceof AST_Sequence&&!this.left.has_side_effects(compressor)){var assign=this.operator=="="&&this.left instanceof AST_SymbolRef;var x=this.right.expressions;var last=x.length-1;for(var i=0;i<last;i++){if(!assign&&x[i].has_side_effects(compressor))break}if(i==last){x=x.slice();var e=this.clone();e.right=x.pop();x.push(e);return make_sequence(this,x).optimize(compressor)}else if(i>0){var e=this.clone();e.right=make_sequence(this.right,x.slice(i));x=x.slice(0,i);x.push(e);return make_sequence(this,x).optimize(compressor)}}}return this});var commutativeOperators=makePredicate("== === != !== * & | ^");function is_object(node){return node instanceof AST_Array||node instanceof AST_Lambda||node instanceof AST_Object}OPT(AST_Binary,function(self,compressor){function reversible(){return self.left.is_constant()||self.right.is_constant()||!self.left.has_side_effects(compressor)&&!self.right.has_side_effects(compressor)}function reverse(op){if(reversible()){if(op)self.operator=op;var tmp=self.left;self.left=self.right;self.right=tmp}}if(commutativeOperators(self.operator)){if(self.right.is_constant()&&!self.left.is_constant()){if(!(self.left instanceof AST_Binary&&PRECEDENCE[self.left.operator]>=PRECEDENCE[self.operator])){reverse()}}}self=self.lift_sequences(compressor);if(compressor.option("comparisons"))switch(self.operator){case"===":case"!==":var is_strict_comparison=true;if(self.left.is_string(compressor)&&self.right.is_string(compressor)||self.left.is_number(compressor)&&self.right.is_number(compressor)||self.left.is_boolean()&&self.right.is_boolean()||self.left.equivalent_to(self.right)){self.operator=self.operator.substr(0,2)}case"==":case"!=":if(!is_strict_comparison&&is_undefined(self.left,compressor)){self.left=make_node(AST_Null,self.left)}else if(compressor.option("typeofs")&&self.left instanceof AST_String&&self.left.value=="undefined"&&self.right instanceof AST_UnaryPrefix&&self.right.operator=="typeof"){var expr=self.right.expression;if(expr instanceof AST_SymbolRef?expr.is_declared(compressor):!(expr instanceof AST_PropAccess&&compressor.option("ie8"))){self.right=expr;self.left=make_node(AST_Undefined,self.left).optimize(compressor);if(self.operator.length==2)self.operator+="="}}else if(self.left instanceof AST_SymbolRef&&self.right instanceof AST_SymbolRef&&self.left.definition()===self.right.definition()&&is_object(self.left.fixed_value())){return make_node(self.operator[0]=="="?AST_True:AST_False,self)}break;case"&&":case"||":var lhs=self.left;if(lhs.operator==self.operator){lhs=lhs.right}if(lhs instanceof AST_Binary&&lhs.operator==(self.operator=="&&"?"!==":"===")&&self.right instanceof AST_Binary&&lhs.operator==self.right.operator&&(is_undefined(lhs.left,compressor)&&self.right.left instanceof AST_Null||lhs.left instanceof AST_Null&&is_undefined(self.right.left,compressor))&&!lhs.right.has_side_effects(compressor)&&lhs.right.equivalent_to(self.right.right)){var combined=make_node(AST_Binary,self,{operator:lhs.operator.slice(0,-1),left:make_node(AST_Null,self),right:lhs.right});if(lhs!==self.left){combined=make_node(AST_Binary,self,{operator:self.operator,left:self.left.left,right:combined})}return combined}break}if(self.operator=="+"&&compressor.in_boolean_context()){var ll=self.left.evaluate(compressor);var rr=self.right.evaluate(compressor);if(ll&&typeof ll=="string"){compressor.warn("+ in boolean context always true [{file}:{line},{col}]",self.start);return make_sequence(self,[self.right,make_node(AST_True,self)]).optimize(compressor)}if(rr&&typeof rr=="string"){compressor.warn("+ in boolean context always true [{file}:{line},{col}]",self.start);return make_sequence(self,[self.left,make_node(AST_True,self)]).optimize(compressor)}}if(compressor.option("comparisons")&&self.is_boolean()){if(!(compressor.parent()instanceof AST_Binary)||compressor.parent()instanceof AST_Assign){var negated=make_node(AST_UnaryPrefix,self,{operator:"!",expression:self.negate(compressor,first_in_statement(compressor))});self=best_of(compressor,self,negated)}switch(self.operator){case">":reverse("<");break;case">=":reverse("<=");break}}if(self.operator=="+"){if(self.right instanceof AST_String&&self.right.getValue()==""&&self.left.is_string(compressor)){return self.left}if(self.left instanceof AST_String&&self.left.getValue()==""&&self.right.is_string(compressor)){return self.right}if(self.left instanceof AST_Binary&&self.left.operator=="+"&&self.left.left instanceof AST_String&&self.left.left.getValue()==""&&self.right.is_string(compressor)){self.left=self.left.right;return self.transform(compressor)}}if(compressor.option("evaluate")){switch(self.operator){case"&&":var ll=self.left.truthy?true:self.left.falsy?false:self.left.evaluate(compressor);if(!ll){compressor.warn("Condition left of && always false [{file}:{line},{col}]",self.start);return maintain_this_binding(compressor.parent(),compressor.self(),self.left).optimize(compressor)}else if(!(ll instanceof AST_Node)){compressor.warn("Condition left of && always true [{file}:{line},{col}]",self.start);return make_sequence(self,[self.left,self.right]).optimize(compressor)}var rr=self.right.evaluate(compressor);if(!rr){if(compressor.in_boolean_context()){compressor.warn("Boolean && always false [{file}:{line},{col}]",self.start);return make_sequence(self,[self.left,make_node(AST_False,self)]).optimize(compressor)}else self.falsy=true}else if(!(rr instanceof AST_Node)){var parent=compressor.parent();if(parent.operator=="&&"&&parent.left===compressor.self()||compressor.in_boolean_context()){compressor.warn("Dropping side-effect-free && [{file}:{line},{col}]",self.start);return self.left.optimize(compressor)}}if(self.left.operator=="||"){var lr=self.left.right.evaluate(compressor);if(!lr)return make_node(AST_Conditional,self,{condition:self.left.left,consequent:self.right,alternative:self.left.right}).optimize(compressor)}break;case"||":var ll=self.left.truthy?true:self.left.falsy?false:self.left.evaluate(compressor);if(!ll){compressor.warn("Condition left of || always false [{file}:{line},{col}]",self.start);return make_sequence(self,[self.left,self.right]).optimize(compressor)}else if(!(ll instanceof AST_Node)){compressor.warn("Condition left of || always true [{file}:{line},{col}]",self.start);return maintain_this_binding(compressor.parent(),compressor.self(),self.left).optimize(compressor)}var rr=self.right.evaluate(compressor);if(!rr){var parent=compressor.parent();if(parent.operator=="||"&&parent.left===compressor.self()||compressor.in_boolean_context()){compressor.warn("Dropping side-effect-free || [{file}:{line},{col}]",self.start);return self.left.optimize(compressor)}}else if(!(rr instanceof AST_Node)){if(compressor.in_boolean_context()){compressor.warn("Boolean || always true [{file}:{line},{col}]",self.start);return make_sequence(self,[self.left,make_node(AST_True,self)]).optimize(compressor)}else self.truthy=true}if(self.left.operator=="&&"){var lr=self.left.right.evaluate(compressor);if(lr&&!(lr instanceof AST_Node))return make_node(AST_Conditional,self,{condition:self.left.left,consequent:self.left.right,alternative:self.right}).optimize(compressor)}break}var associative=true;switch(self.operator){case"+":if(self.left instanceof AST_Constant&&self.right instanceof AST_Binary&&self.right.operator=="+"&&self.right.left instanceof AST_Constant&&self.right.is_string(compressor)){self=make_node(AST_Binary,self,{operator:"+",left:make_node(AST_String,self.left,{value:""+self.left.getValue()+self.right.left.getValue(),start:self.left.start,end:self.right.left.end}),right:self.right.right})}if(self.right instanceof AST_Constant&&self.left instanceof AST_Binary&&self.left.operator=="+"&&self.left.right instanceof AST_Constant&&self.left.is_string(compressor)){self=make_node(AST_Binary,self,{operator:"+",left:self.left.left,right:make_node(AST_String,self.right,{value:""+self.left.right.getValue()+self.right.getValue(),start:self.left.right.start,end:self.right.end})})}if(self.left instanceof AST_Binary&&self.left.operator=="+"&&self.left.is_string(compressor)&&self.left.right instanceof AST_Constant&&self.right instanceof AST_Binary&&self.right.operator=="+"&&self.right.left instanceof AST_Constant&&self.right.is_string(compressor)){self=make_node(AST_Binary,self,{operator:"+",left:make_node(AST_Binary,self.left,{operator:"+",left:self.left.left,right:make_node(AST_String,self.left.right,{value:""+self.left.right.getValue()+self.right.left.getValue(),start:self.left.right.start,end:self.right.left.end})}),right:self.right.right})}if(self.right instanceof AST_UnaryPrefix&&self.right.operator=="-"&&self.left.is_number(compressor)){self=make_node(AST_Binary,self,{operator:"-",left:self.left,right:self.right.expression});break}if(self.left instanceof AST_UnaryPrefix&&self.left.operator=="-"&&reversible()&&self.right.is_number(compressor)){self=make_node(AST_Binary,self,{operator:"-",left:self.right,right:self.left.expression});break}case"*":associative=compressor.option("unsafe_math");case"&":case"|":case"^":if(self.left.is_number(compressor)&&self.right.is_number(compressor)&&reversible()&&!(self.left instanceof AST_Binary&&self.left.operator!=self.operator&&PRECEDENCE[self.left.operator]>=PRECEDENCE[self.operator])){var reversed=make_node(AST_Binary,self,{operator:self.operator,left:self.right,right:self.left});if(self.right instanceof AST_Constant&&!(self.left instanceof AST_Constant)){self=best_of(compressor,reversed,self)}else{self=best_of(compressor,self,reversed)}}if(associative&&self.is_number(compressor)){if(self.right instanceof AST_Binary&&self.right.operator==self.operator){self=make_node(AST_Binary,self,{operator:self.operator,left:make_node(AST_Binary,self.left,{operator:self.operator,left:self.left,right:self.right.left,start:self.left.start,end:self.right.left.end}),right:self.right.right})}if(self.right instanceof AST_Constant&&self.left instanceof AST_Binary&&self.left.operator==self.operator){if(self.left.left instanceof AST_Constant){self=make_node(AST_Binary,self,{operator:self.operator,left:make_node(AST_Binary,self.left,{operator:self.operator,left:self.left.left,right:self.right,start:self.left.left.start,end:self.right.end}),right:self.left.right})}else if(self.left.right instanceof AST_Constant){self=make_node(AST_Binary,self,{operator:self.operator,left:make_node(AST_Binary,self.left,{operator:self.operator,left:self.left.right,right:self.right,start:self.left.right.start,end:self.right.end}),right:self.left.left})}}if(self.left instanceof AST_Binary&&self.left.operator==self.operator&&self.left.right instanceof AST_Constant&&self.right instanceof AST_Binary&&self.right.operator==self.operator&&self.right.left instanceof AST_Constant){self=make_node(AST_Binary,self,{operator:self.operator,left:make_node(AST_Binary,self.left,{operator:self.operator,left:make_node(AST_Binary,self.left.left,{operator:self.operator,left:self.left.right,right:self.right.left,start:self.left.right.start,end:self.right.left.end}),right:self.left.left}),right:self.right.right})}}}}if(self.right instanceof AST_Binary&&self.right.operator==self.operator&&(lazy_op(self.operator)||self.operator=="+"&&(self.right.left.is_string(compressor)||self.left.is_string(compressor)&&self.right.right.is_string(compressor)))){self.left=make_node(AST_Binary,self.left,{operator:self.operator,left:self.left,right:self.right.left});self.right=self.right.right;return self.transform(compressor)}var ev=self.evaluate(compressor);if(ev!==self){ev=make_node_from_constant(ev,self).optimize(compressor);return best_of(compressor,ev,self)}return self});function recursive_ref(compressor,def){var node;for(var i=0;node=compressor.parent(i);i++){if(node instanceof AST_Lambda){var name=node.name;if(name&&name.definition()===def)break}}return node}OPT(AST_SymbolRef,function(self,compressor){var def=self.resolve_defines(compressor);if(def){return def.optimize(compressor)}if(!compressor.option("ie8")&&is_undeclared_ref(self)&&(!self.scope.uses_with||!compressor.find_parent(AST_With))){switch(self.name){case"undefined":return make_node(AST_Undefined,self).optimize(compressor);case"NaN":return make_node(AST_NaN,self).optimize(compressor);case"Infinity":return make_node(AST_Infinity,self).optimize(compressor)}}if(compressor.option("reduce_vars")&&is_lhs(self,compressor.parent())!==self){var d=self.definition();var fixed=self.fixed_value();var single_use=d.single_use;if(single_use&&fixed instanceof AST_Lambda){if(d.scope!==self.scope&&(!compressor.option("reduce_funcs")||d.escaped==1||fixed.inlined)){single_use=false}else if(recursive_ref(compressor,d)){single_use=false}else if(d.scope!==self.scope||d.orig[0]instanceof AST_SymbolFunarg){single_use=fixed.is_constant_expression(self.scope);if(single_use=="f"){var scope=self.scope;do{if(scope instanceof AST_Defun||scope instanceof AST_Function){scope.inlined=true}}while(scope=scope.parent_scope)}}}if(single_use&&fixed){if(fixed instanceof AST_Defun){fixed._squeezed=true;fixed=make_node(AST_Function,fixed,fixed)}var value;if(d.recursive_refs>0&&fixed.name instanceof AST_SymbolDefun){value=fixed.clone(true);var defun_def=value.name.definition();var lambda_def=value.variables.get(value.name.name);var name=lambda_def&&lambda_def.orig[0];if(!(name instanceof AST_SymbolLambda)){name=make_node(AST_SymbolLambda,value.name,value.name);name.scope=value;value.name=name;lambda_def=value.def_function(name)}value.walk(new TreeWalker(function(node){if(node instanceof AST_SymbolRef&&node.definition()===defun_def){node.thedef=lambda_def;lambda_def.references.push(node)}}))}else{value=fixed.optimize(compressor);if(value===fixed)value=fixed.clone(true)}return value}if(fixed&&d.should_replace===undefined){var init;if(fixed instanceof AST_This){if(!(d.orig[0]instanceof AST_SymbolFunarg)&&all(d.references,function(ref){return d.scope===ref.scope})){init=fixed}}else{var ev=fixed.evaluate(compressor);if(ev!==fixed&&(compressor.option("unsafe_regexp")||!(ev instanceof RegExp))){init=make_node_from_constant(ev,fixed)}}if(init){var value_length=init.optimize(compressor).print_to_string().length;var fn;if(has_symbol_ref(fixed)){fn=function(){var result=init.optimize(compressor);return result===init?result.clone(true):result}}else{value_length=Math.min(value_length,fixed.print_to_string().length);fn=function(){var result=best_of_expression(init.optimize(compressor),fixed);return result===init||result===fixed?result.clone(true):result}}var name_length=d.name.length;var overhead=0;if(compressor.option("unused")&&!compressor.exposed(d)){overhead=(name_length+2+value_length)/(d.references.length-d.assignments)}d.should_replace=value_length<=name_length+overhead?fn:false}else{d.should_replace=false}}if(d.should_replace){return d.should_replace()}}return self;function has_symbol_ref(value){var found;value.walk(new TreeWalker(function(node){if(node instanceof AST_SymbolRef)found=true;if(found)return true}));return found}});function is_atomic(lhs,self){return lhs instanceof AST_SymbolRef||lhs.TYPE===self.TYPE}OPT(AST_Undefined,function(self,compressor){if(compressor.option("unsafe_undefined")){var undef=find_variable(compressor,"undefined");if(undef){var ref=make_node(AST_SymbolRef,self,{name:"undefined",scope:undef.scope,thedef:undef});ref.is_undefined=true;return ref}}var lhs=is_lhs(compressor.self(),compressor.parent());if(lhs&&is_atomic(lhs,self))return self;return make_node(AST_UnaryPrefix,self,{operator:"void",expression:make_node(AST_Number,self,{value:0})})});OPT(AST_Infinity,function(self,compressor){var lhs=is_lhs(compressor.self(),compressor.parent());if(lhs&&is_atomic(lhs,self))return self;if(compressor.option("keep_infinity")&&!(lhs&&!is_atomic(lhs,self))&&!find_variable(compressor,"Infinity"))return self;return make_node(AST_Binary,self,{operator:"/",left:make_node(AST_Number,self,{value:1}),right:make_node(AST_Number,self,{value:0})})});OPT(AST_NaN,function(self,compressor){var lhs=is_lhs(compressor.self(),compressor.parent());if(lhs&&!is_atomic(lhs,self)||find_variable(compressor,"NaN")){return make_node(AST_Binary,self,{operator:"/",left:make_node(AST_Number,self,{value:0}),right:make_node(AST_Number,self,{value:0})})}return self});function is_reachable(self,defs){var reachable=false;var find_ref=new TreeWalker(function(node){if(reachable)return true;if(node instanceof AST_SymbolRef&&member(node.definition(),defs)){return reachable=true}});var scan_scope=new TreeWalker(function(node){if(reachable)return true;if(node instanceof AST_Scope&&node!==self){var parent=scan_scope.parent();if(parent instanceof AST_Call&&parent.expression===node)return;node.walk(find_ref);return true}});self.walk(scan_scope);return reachable}var ASSIGN_OPS=["+","-","/","*","%",">>","<<",">>>","|","^","&"];var ASSIGN_OPS_COMMUTATIVE=["*","|","^","&"];OPT(AST_Assign,function(self,compressor){var def;if(compressor.option("dead_code")&&self.left instanceof AST_SymbolRef&&(def=self.left.definition()).scope===compressor.find_parent(AST_Lambda)){var level=0,node,parent=self;do{node=parent;parent=compressor.parent(level++);if(parent instanceof AST_Exit){if(in_try(level,parent))break;if(is_reachable(def.scope,[def]))break;if(self.operator=="=")return self.right;def.fixed=false;return make_node(AST_Binary,self,{operator:self.operator.slice(0,-1),left:self.left,right:self.right}).optimize(compressor)}}while(parent instanceof AST_Binary&&parent.right===node||parent instanceof AST_Sequence&&parent.tail_node()===node)}self=self.lift_sequences(compressor);if(self.operator=="="&&self.left instanceof AST_SymbolRef&&self.right instanceof AST_Binary){if(self.right.left instanceof AST_SymbolRef&&self.right.left.name==self.left.name&&member(self.right.operator,ASSIGN_OPS)){self.operator=self.right.operator+"=";self.right=self.right.right}else if(self.right.right instanceof AST_SymbolRef&&self.right.right.name==self.left.name&&member(self.right.operator,ASSIGN_OPS_COMMUTATIVE)&&!self.right.left.has_side_effects(compressor)){self.operator=self.right.operator+"=";self.right=self.right.left}}return self;function in_try(level,node){var right=self.right;self.right=make_node(AST_Null,right);var may_throw=node.may_throw(compressor);self.right=right;var scope=self.left.definition().scope;var parent;while((parent=compressor.parent(level++))!==scope){if(parent instanceof AST_Try){if(parent.bfinally)return true;if(may_throw&&parent.bcatch)return true}}}});OPT(AST_Conditional,function(self,compressor){if(!compressor.option("conditionals"))return self;if(self.condition instanceof AST_Sequence){var expressions=self.condition.expressions.slice();self.condition=expressions.pop();expressions.push(self);return make_sequence(self,expressions)}var cond=self.condition.evaluate(compressor);if(cond!==self.condition){if(cond){compressor.warn("Condition always true [{file}:{line},{col}]",self.start);return maintain_this_binding(compressor.parent(),compressor.self(),self.consequent)}else{compressor.warn("Condition always false [{file}:{line},{col}]",self.start);return maintain_this_binding(compressor.parent(),compressor.self(),self.alternative)}}var negated=cond.negate(compressor,first_in_statement(compressor));if(best_of(compressor,cond,negated)===negated){self=make_node(AST_Conditional,self,{condition:negated,consequent:self.alternative,alternative:self.consequent})}var condition=self.condition;var consequent=self.consequent;var alternative=self.alternative;if(condition instanceof AST_SymbolRef&&consequent instanceof AST_SymbolRef&&condition.definition()===consequent.definition()){return make_node(AST_Binary,self,{operator:"||",left:condition,right:alternative})}if(consequent instanceof AST_Assign&&alternative instanceof AST_Assign&&consequent.operator==alternative.operator&&consequent.left.equivalent_to(alternative.left)&&(!self.condition.has_side_effects(compressor)||consequent.operator=="="&&!consequent.left.has_side_effects(compressor))){return make_node(AST_Assign,self,{operator:consequent.operator,left:consequent.left,right:make_node(AST_Conditional,self,{condition:self.condition,consequent:consequent.right,alternative:alternative.right})})}var arg_index;if(consequent instanceof AST_Call&&alternative.TYPE===consequent.TYPE&&consequent.args.length>0&&consequent.args.length==alternative.args.length&&consequent.expression.equivalent_to(alternative.expression)&&!self.condition.has_side_effects(compressor)&&!consequent.expression.has_side_effects(compressor)&&typeof(arg_index=single_arg_diff())=="number"){var node=consequent.clone();node.args[arg_index]=make_node(AST_Conditional,self,{condition:self.condition,consequent:consequent.args[arg_index],alternative:alternative.args[arg_index]});return node}if(consequent instanceof AST_Conditional&&consequent.alternative.equivalent_to(alternative)){return make_node(AST_Conditional,self,{condition:make_node(AST_Binary,self,{left:self.condition,operator:"&&",right:consequent.condition}),consequent:consequent.consequent,alternative:alternative})}if(consequent.equivalent_to(alternative)){return make_sequence(self,[self.condition,consequent]).optimize(compressor)}if((consequent instanceof AST_Sequence||alternative instanceof AST_Sequence)&&consequent.tail_node().equivalent_to(alternative.tail_node())){return make_sequence(self,[make_node(AST_Conditional,self,{condition:self.condition,consequent:pop_seq(consequent),alternative:pop_seq(alternative)}),consequent.tail_node()]).optimize(compressor)}if(consequent instanceof AST_Binary&&consequent.operator=="||"&&consequent.right.equivalent_to(alternative)){return make_node(AST_Binary,self,{operator:"||",left:make_node(AST_Binary,self,{operator:"&&",left:self.condition,right:consequent.left}),right:alternative}).optimize(compressor)}var in_bool=compressor.in_boolean_context();if(is_true(self.consequent)){if(is_false(self.alternative)){return booleanize(self.condition)}return make_node(AST_Binary,self,{operator:"||",left:booleanize(self.condition),right:self.alternative})}if(is_false(self.consequent)){if(is_true(self.alternative)){return booleanize(self.condition.negate(compressor))}return make_node(AST_Binary,self,{operator:"&&",left:booleanize(self.condition.negate(compressor)),right:self.alternative})}if(is_true(self.alternative)){return make_node(AST_Binary,self,{operator:"||",left:booleanize(self.condition.negate(compressor)),right:self.consequent})}if(is_false(self.alternative)){return make_node(AST_Binary,self,{operator:"&&",left:booleanize(self.condition),right:self.consequent})}return self;function booleanize(node){if(node.is_boolean())return node;return make_node(AST_UnaryPrefix,node,{operator:"!",expression:node.negate(compressor)})}function is_true(node){return node instanceof AST_True||in_bool&&node instanceof AST_Constant&&node.getValue()||node instanceof AST_UnaryPrefix&&node.operator=="!"&&node.expression instanceof AST_Constant&&!node.expression.getValue()}function is_false(node){return node instanceof AST_False||in_bool&&node instanceof AST_Constant&&!node.getValue()||node instanceof AST_UnaryPrefix&&node.operator=="!"&&node.expression instanceof AST_Constant&&node.expression.getValue()}function single_arg_diff(){var a=consequent.args;var b=alternative.args;for(var i=0,len=a.length;i<len;i++){if(!a[i].equivalent_to(b[i])){for(var j=i+1;j<len;j++){if(!a[j].equivalent_to(b[j]))return}return i}}}function pop_seq(node){if(!(node instanceof AST_Sequence))return make_node(AST_Number,node,{value:0});return make_sequence(node,node.expressions.slice(0,-1))}});OPT(AST_Boolean,function(self,compressor){if(compressor.in_boolean_context())return make_node(AST_Number,self,{value:+self.value});if(compressor.option("booleans")){var p=compressor.parent();if(p instanceof AST_Binary&&(p.operator=="=="||p.operator=="!=")){compressor.warn("Non-strict equality against boolean: {operator} {value} [{file}:{line},{col}]",{operator:p.operator,value:self.value,file:p.start.file,line:p.start.line,col:p.start.col});return make_node(AST_Number,self,{value:+self.value})}return make_node(AST_UnaryPrefix,self,{operator:"!",expression:make_node(AST_Number,self,{value:1-self.value})})}return self});OPT(AST_Sub,function(self,compressor){var expr=self.expression;var prop=self.property;if(compressor.option("properties")){var key=prop.evaluate(compressor);if(key!==prop){if(typeof key=="string"){if(key=="undefined"){key=undefined}else{var value=parseFloat(key);if(value.toString()==key){key=value}}}prop=self.property=best_of_expression(prop,make_node_from_constant(key,prop).transform(compressor));var property=""+key;if(is_identifier_string(property)&&property.length<=prop.print_to_string().length+1){return make_node(AST_Dot,self,{expression:expr,property:property}).optimize(compressor)}}}if(is_lhs(self,compressor.parent()))return self;if(key!==prop){var sub=self.flatten_object(property,compressor);if(sub){expr=self.expression=sub.expression;prop=self.property=sub.property}}if(compressor.option("properties")&&compressor.option("side_effects")&&prop instanceof AST_Number&&expr instanceof AST_Array){var index=prop.getValue();var elements=expr.elements;if(index in elements){var flatten=true;var values=[];for(var i=elements.length;--i>index;){var value=elements[i].drop_side_effect_free(compressor);if(value){values.unshift(value);if(flatten&&value.has_side_effects(compressor))flatten=false}}var retValue=elements[index];retValue=retValue instanceof AST_Hole?make_node(AST_Undefined,retValue):retValue;if(!flatten)values.unshift(retValue);while(--i>=0){var value=elements[i].drop_side_effect_free(compressor);if(value)values.unshift(value);else index--}if(flatten){values.push(retValue);return make_sequence(self,values).optimize(compressor)}else return make_node(AST_Sub,self,{expression:make_node(AST_Array,expr,{elements:values}),property:make_node(AST_Number,prop,{value:index})})}}var fn;if(compressor.option("arguments")&&expr instanceof AST_SymbolRef&&expr.name=="arguments"&&expr.definition().orig.length==1&&(fn=expr.scope)instanceof AST_Lambda&&prop instanceof AST_Number){var index=prop.getValue();var argname=fn.argnames[index];if(!argname&&!compressor.option("keep_fargs")){while(index>=fn.argnames.length){argname=make_node(AST_SymbolFunarg,fn,{name:fn.make_var_name("argument_"+fn.argnames.length),scope:fn});fn.argnames.push(argname);fn.enclosed.push(fn.def_variable(argname))}}if(argname){var sym=make_node(AST_SymbolRef,self,argname);sym.reference({});return sym}}var ev=self.evaluate(compressor);if(ev!==self){ev=make_node_from_constant(ev,self).optimize(compressor);return best_of(compressor,ev,self)}return self});AST_Lambda.DEFMETHOD("contains_this",function(){var result;var self=this;self.walk(new TreeWalker(function(node){if(result)return true;if(node instanceof AST_This)return result=true;if(node!==self&&node instanceof AST_Scope)return true}));return result});AST_PropAccess.DEFMETHOD("flatten_object",function(key,compressor){if(!compressor.option("properties"))return;var expr=this.expression;if(expr instanceof AST_Object){var props=expr.properties;for(var i=props.length;--i>=0;){var prop=props[i];if(""+prop.key==key){if(!all(props,function(prop){return prop instanceof AST_ObjectKeyVal}))break;var value=prop.value;if(value instanceof AST_Function&&!(compressor.parent()instanceof AST_New)&&value.contains_this())break;return make_node(AST_Sub,this,{expression:make_node(AST_Array,expr,{elements:props.map(function(prop){return prop.value})}),property:make_node(AST_Number,this,{value:i})})}}}});OPT(AST_Dot,function(self,compressor){if(self.property=="arguments"||self.property=="caller"){compressor.warn("Function.protoype.{prop} not supported [{file}:{line},{col}]",{prop:self.property,file:self.start.file,line:self.start.line,col:self.start.col})}var def=self.resolve_defines(compressor);if(def){return def.optimize(compressor)}if(is_lhs(self,compressor.parent()))return self;if(compressor.option("unsafe_proto")&&self.expression instanceof AST_Dot&&self.expression.property=="prototype"){var exp=self.expression.expression;if(is_undeclared_ref(exp))switch(exp.name){case"Array":self.expression=make_node(AST_Array,self.expression,{elements:[]});break;case"Function":self.expression=make_node(AST_Function,self.expression,{argnames:[],body:[]});break;case"Number":self.expression=make_node(AST_Number,self.expression,{value:0});break;case"Object":self.expression=make_node(AST_Object,self.expression,{properties:[]});break;case"RegExp":self.expression=make_node(AST_RegExp,self.expression,{value:/t/});break;case"String":self.expression=make_node(AST_String,self.expression,{value:""});break}}var sub=self.flatten_object(self.property,compressor);if(sub)return sub.optimize(compressor);var ev=self.evaluate(compressor);if(ev!==self){ev=make_node_from_constant(ev,self).optimize(compressor);return best_of(compressor,ev,self)}return self});function literals_in_boolean_context(self,compressor){if(compressor.in_boolean_context()){return best_of(compressor,self,make_sequence(self,[self,make_node(AST_True,self)]).optimize(compressor))}return self}OPT(AST_Array,literals_in_boolean_context);OPT(AST_Object,literals_in_boolean_context);OPT(AST_RegExp,literals_in_boolean_context);OPT(AST_Return,function(self,compressor){if(self.value&&is_undefined(self.value,compressor)){self.value=null}return self});OPT(AST_VarDef,function(self,compressor){var defines=compressor.option("global_defs");if(defines&&HOP(defines,self.name.name)){compressor.warn("global_defs "+self.name.name+" redefined [{file}:{line},{col}]",self.start)}return self})})();"use strict";function SourceMap(options){options=defaults(options,{file:null,root:null,orig:null,orig_line_diff:0,dest_line_diff:0});var generator=new MOZ_SourceMap.SourceMapGenerator({file:options.file,sourceRoot:options.root});var orig_map=options.orig&&new MOZ_SourceMap.SourceMapConsumer(options.orig);if(orig_map&&Array.isArray(options.orig.sources)){orig_map._sources.toArray().forEach(function(source){var sourceContent=orig_map.sourceContentFor(source,true);if(sourceContent){generator.setSourceContent(source,sourceContent)}})}function add(source,gen_line,gen_col,orig_line,orig_col,name){if(orig_map){var info=orig_map.originalPositionFor({line:orig_line,column:orig_col});if(info.source===null){return}source=info.source;orig_line=info.line;orig_col=info.column;name=info.name||name}generator.addMapping({generated:{line:gen_line+options.dest_line_diff,column:gen_col},original:{line:orig_line+options.orig_line_diff,column:orig_col},source:source,name:name})}return{add:add,get:function(){return generator},toString:function(){return JSON.stringify(generator.toJSON())}}}"use strict";(function(){var normalize_directives=function(body){var in_directive=true;for(var i=0;i<body.length;i++){if(in_directive&&body[i]instanceof AST_Statement&&body[i].body instanceof AST_String){body[i]=new AST_Directive({start:body[i].start,end:body[i].end,value:body[i].body.value})}else if(in_directive&&!(body[i]instanceof AST_Statement&&body[i].body instanceof AST_String)){in_directive=false}}return body};var MOZ_TO_ME={Program:function(M){return new AST_Toplevel({start:my_start_token(M),end:my_end_token(M),body:normalize_directives(M.body.map(from_moz))})},FunctionDeclaration:function(M){return new AST_Defun({start:my_start_token(M),end:my_end_token(M),name:from_moz(M.id),argnames:M.params.map(from_moz),body:normalize_directives(from_moz(M.body).body)})},FunctionExpression:function(M){return new AST_Function({start:my_start_token(M),end:my_end_token(M),name:from_moz(M.id),argnames:M.params.map(from_moz),body:normalize_directives(from_moz(M.body).body)})},ExpressionStatement:function(M){return new AST_SimpleStatement({start:my_start_token(M),end:my_end_token(M),body:from_moz(M.expression)})},TryStatement:function(M){var handlers=M.handlers||[M.handler];if(handlers.length>1||M.guardedHandlers&&M.guardedHandlers.length){throw new Error("Multiple catch clauses are not supported.")}return new AST_Try({start:my_start_token(M),end:my_end_token(M),body:from_moz(M.block).body,bcatch:from_moz(handlers[0]),bfinally:M.finalizer?new AST_Finally(from_moz(M.finalizer)):null})},Property:function(M){var key=M.key;var args={start:my_start_token(key),end:my_end_token(M.value),key:key.type=="Identifier"?key.name:key.value,value:from_moz(M.value)};if(M.kind=="init")return new AST_ObjectKeyVal(args);args.key=new AST_SymbolAccessor({name:args.key});args.value=new AST_Accessor(args.value);if(M.kind=="get")return new AST_ObjectGetter(args);if(M.kind=="set")return new AST_ObjectSetter(args)},ArrayExpression:function(M){return new AST_Array({start:my_start_token(M),end:my_end_token(M),elements:M.elements.map(function(elem){return elem===null?new AST_Hole:from_moz(elem)})})},ObjectExpression:function(M){return new AST_Object({start:my_start_token(M),end:my_end_token(M),properties:M.properties.map(function(prop){prop.type="Property";return from_moz(prop)})})},SequenceExpression:function(M){return new AST_Sequence({start:my_start_token(M),end:my_end_token(M),expressions:M.expressions.map(from_moz)})},MemberExpression:function(M){return new(M.computed?AST_Sub:AST_Dot)({start:my_start_token(M),end:my_end_token(M),property:M.computed?from_moz(M.property):M.property.name,expression:from_moz(M.object)})},SwitchCase:function(M){return new(M.test?AST_Case:AST_Default)({start:my_start_token(M),end:my_end_token(M),expression:from_moz(M.test),body:M.consequent.map(from_moz)})},VariableDeclaration:function(M){return new AST_Var({start:my_start_token(M),end:my_end_token(M),definitions:M.declarations.map(from_moz)})},Literal:function(M){var val=M.value,args={start:my_start_token(M),end:my_end_token(M)};if(val===null)return new AST_Null(args);switch(typeof val){case"string":args.value=val;return new AST_String(args);case"number":args.value=val;return new AST_Number(args);case"boolean":return new(val?AST_True:AST_False)(args);default:var rx=M.regex;if(rx&&rx.pattern){args.value=new RegExp(rx.pattern,rx.flags).toString()}else{args.value=M.regex&&M.raw?M.raw:val}return new AST_RegExp(args)}},Identifier:function(M){var p=FROM_MOZ_STACK[FROM_MOZ_STACK.length-2];return new(p.type=="LabeledStatement"?AST_Label:p.type=="VariableDeclarator"&&p.id===M?AST_SymbolVar:p.type=="FunctionExpression"?p.id===M?AST_SymbolLambda:AST_SymbolFunarg:p.type=="FunctionDeclaration"?p.id===M?AST_SymbolDefun:AST_SymbolFunarg:p.type=="CatchClause"?AST_SymbolCatch:p.type=="BreakStatement"||p.type=="ContinueStatement"?AST_LabelRef:AST_SymbolRef)({start:my_start_token(M),end:my_end_token(M),name:M.name})}};MOZ_TO_ME.UpdateExpression=MOZ_TO_ME.UnaryExpression=function To_Moz_Unary(M){var prefix="prefix"in M?M.prefix:M.type=="UnaryExpression"?true:false;return new(prefix?AST_UnaryPrefix:AST_UnaryPostfix)({start:my_start_token(M),end:my_end_token(M),operator:M.operator,expression:from_moz(M.argument)})};map("EmptyStatement",AST_EmptyStatement);map("BlockStatement",AST_BlockStatement,"body@body");map("IfStatement",AST_If,"test>condition, consequent>body, alternate>alternative");map("LabeledStatement",AST_LabeledStatement,"label>label, body>body");map("BreakStatement",AST_Break,"label>label");map("ContinueStatement",AST_Continue,"label>label");map("WithStatement",AST_With,"object>expression, body>body");map("SwitchStatement",AST_Switch,"discriminant>expression, cases@body");map("ReturnStatement",AST_Return,"argument>value");map("ThrowStatement",AST_Throw,"argument>value");map("WhileStatement",AST_While,"test>condition, body>body");map("DoWhileStatement",AST_Do,"test>condition, body>body");map("ForStatement",AST_For,"init>init, test>condition, update>step, body>body");map("ForInStatement",AST_ForIn,"left>init, right>object, body>body");map("DebuggerStatement",AST_Debugger);map("VariableDeclarator",AST_VarDef,"id>name, init>value");map("CatchClause",AST_Catch,"param>argname, body%body");map("ThisExpression",AST_This);map("BinaryExpression",AST_Binary,"operator=operator, left>left, right>right");map("LogicalExpression",AST_Binary,"operator=operator, left>left, right>right");map("AssignmentExpression",AST_Assign,"operator=operator, left>left, right>right");map("ConditionalExpression",AST_Conditional,"test>condition, consequent>consequent, alternate>alternative");map("NewExpression",AST_New,"callee>expression, arguments@args");map("CallExpression",AST_Call,"callee>expression, arguments@args");def_to_moz(AST_Toplevel,function To_Moz_Program(M){return to_moz_scope("Program",M)});def_to_moz(AST_Defun,function To_Moz_FunctionDeclaration(M){return{type:"FunctionDeclaration",id:to_moz(M.name),params:M.argnames.map(to_moz),body:to_moz_scope("BlockStatement",M)}});def_to_moz(AST_Function,function To_Moz_FunctionExpression(M){return{type:"FunctionExpression",id:to_moz(M.name),params:M.argnames.map(to_moz),body:to_moz_scope("BlockStatement",M)}});def_to_moz(AST_Directive,function To_Moz_Directive(M){return{type:"ExpressionStatement",expression:{type:"Literal",value:M.value}}});def_to_moz(AST_SimpleStatement,function To_Moz_ExpressionStatement(M){return{type:"ExpressionStatement",expression:to_moz(M.body)}});def_to_moz(AST_SwitchBranch,function To_Moz_SwitchCase(M){return{type:"SwitchCase",test:to_moz(M.expression),consequent:M.body.map(to_moz)}});def_to_moz(AST_Try,function To_Moz_TryStatement(M){return{type:"TryStatement",block:to_moz_block(M),handler:to_moz(M.bcatch),guardedHandlers:[],finalizer:to_moz(M.bfinally)}});def_to_moz(AST_Catch,function To_Moz_CatchClause(M){return{type:"CatchClause",param:to_moz(M.argname),guard:null,body:to_moz_block(M)}});def_to_moz(AST_Definitions,function To_Moz_VariableDeclaration(M){return{type:"VariableDeclaration",kind:"var",declarations:M.definitions.map(to_moz)}});def_to_moz(AST_Sequence,function To_Moz_SequenceExpression(M){return{type:"SequenceExpression",expressions:M.expressions.map(to_moz)}});def_to_moz(AST_PropAccess,function To_Moz_MemberExpression(M){var isComputed=M instanceof AST_Sub;return{type:"MemberExpression",object:to_moz(M.expression),computed:isComputed,property:isComputed?to_moz(M.property):{type:"Identifier",name:M.property}}});def_to_moz(AST_Unary,function To_Moz_Unary(M){return{type:M.operator=="++"||M.operator=="--"?"UpdateExpression":"UnaryExpression",operator:M.operator,prefix:M instanceof AST_UnaryPrefix,argument:to_moz(M.expression)}});def_to_moz(AST_Binary,function To_Moz_BinaryExpression(M){return{type:M.operator=="&&"||M.operator=="||"?"LogicalExpression":"BinaryExpression",left:to_moz(M.left),operator:M.operator,right:to_moz(M.right)}});def_to_moz(AST_Array,function To_Moz_ArrayExpression(M){return{type:"ArrayExpression",elements:M.elements.map(to_moz)}});def_to_moz(AST_Object,function To_Moz_ObjectExpression(M){return{type:"ObjectExpression",properties:M.properties.map(to_moz)}});def_to_moz(AST_ObjectProperty,function To_Moz_Property(M){var key={type:"Literal",value:M.key instanceof AST_SymbolAccessor?M.key.name:M.key};var kind;if(M instanceof AST_ObjectKeyVal){kind="init"}else if(M instanceof AST_ObjectGetter){kind="get"}else if(M instanceof AST_ObjectSetter){kind="set"}return{type:"Property",kind:kind,key:key,value:to_moz(M.value)}});def_to_moz(AST_Symbol,function To_Moz_Identifier(M){var def=M.definition();return{type:"Identifier",name:def?def.mangled_name||def.name:M.name}});def_to_moz(AST_RegExp,function To_Moz_RegExpLiteral(M){var value=M.value;return{type:"Literal",value:value,raw:value.toString(),regex:{pattern:value.source,flags:value.toString().match(/[gimuy]*$/)[0]}}});def_to_moz(AST_Constant,function To_Moz_Literal(M){var value=M.value;if(typeof value==="number"&&(value<0||value===0&&1/value<0)){return{type:"UnaryExpression",operator:"-",prefix:true,argument:{type:"Literal",value:-value,raw:M.start.raw}}}return{type:"Literal",value:value,raw:M.start.raw}});def_to_moz(AST_Atom,function To_Moz_Atom(M){return{type:"Identifier",name:String(M.value)}});AST_Boolean.DEFMETHOD("to_mozilla_ast",AST_Constant.prototype.to_mozilla_ast);AST_Null.DEFMETHOD("to_mozilla_ast",AST_Constant.prototype.to_mozilla_ast);AST_Hole.DEFMETHOD("to_mozilla_ast",function To_Moz_ArrayHole(){return null});AST_Block.DEFMETHOD("to_mozilla_ast",AST_BlockStatement.prototype.to_mozilla_ast);AST_Lambda.DEFMETHOD("to_mozilla_ast",AST_Function.prototype.to_mozilla_ast);function raw_token(moznode){if(moznode.type=="Literal"){return moznode.raw!=null?moznode.raw:moznode.value+""}}function my_start_token(moznode){var loc=moznode.loc,start=loc&&loc.start;var range=moznode.range;return new AST_Token({file:loc&&loc.source,line:start&&start.line,col:start&&start.column,pos:range?range[0]:moznode.start,endline:start&&start.line,endcol:start&&start.column,endpos:range?range[0]:moznode.start,raw:raw_token(moznode)})}function my_end_token(moznode){var loc=moznode.loc,end=loc&&loc.end;var range=moznode.range;return new AST_Token({file:loc&&loc.source,line:end&&end.line,col:end&&end.column,pos:range?range[1]:moznode.end,endline:end&&end.line,endcol:end&&end.column,endpos:range?range[1]:moznode.end,raw:raw_token(moznode)})}function map(moztype,mytype,propmap){var moz_to_me="function From_Moz_"+moztype+"(M){\n";moz_to_me+="return new U2."+mytype.name+"({\n"+"start: my_start_token(M),\n"+"end: my_end_token(M)";var me_to_moz="function To_Moz_"+moztype+"(M){\n";me_to_moz+="return {\n"+"type: "+JSON.stringify(moztype);if(propmap)propmap.split(/\s*,\s*/).forEach(function(prop){var m=/([a-z0-9$_]+)(=|@|>|%)([a-z0-9$_]+)/i.exec(prop);if(!m)throw new Error("Can't understand property map: "+prop);var moz=m[1],how=m[2],my=m[3];moz_to_me+=",\n"+my+": ";me_to_moz+=",\n"+moz+": ";switch(how){case"@":moz_to_me+="M."+moz+".map(from_moz)";me_to_moz+="M."+my+".map(to_moz)";break;case">":moz_to_me+="from_moz(M."+moz+")";me_to_moz+="to_moz(M."+my+")";break;case"=":moz_to_me+="M."+moz;me_to_moz+="M."+my;break;case"%":moz_to_me+="from_moz(M."+moz+").body";me_to_moz+="to_moz_block(M)";break;default:throw new Error("Can't understand operator in propmap: "+prop)}});moz_to_me+="\n})\n}";me_to_moz+="\n}\n}";moz_to_me=new Function("U2","my_start_token","my_end_token","from_moz","return("+moz_to_me+")")(exports,my_start_token,my_end_token,from_moz);me_to_moz=new Function("to_moz","to_moz_block","to_moz_scope","return("+me_to_moz+")")(to_moz,to_moz_block,to_moz_scope);MOZ_TO_ME[moztype]=moz_to_me;def_to_moz(mytype,me_to_moz)}var FROM_MOZ_STACK=null;function from_moz(node){FROM_MOZ_STACK.push(node);var ret=node!=null?MOZ_TO_ME[node.type](node):null;FROM_MOZ_STACK.pop();return ret}AST_Node.from_mozilla_ast=function(node){var save_stack=FROM_MOZ_STACK;FROM_MOZ_STACK=[];var ast=from_moz(node);FROM_MOZ_STACK=save_stack;return ast};function set_moz_loc(mynode,moznode,myparent){var start=mynode.start;var end=mynode.end;if(start.pos!=null&&end.endpos!=null){moznode.range=[start.pos,end.endpos]}if(start.line){moznode.loc={start:{line:start.line,column:start.col},end:end.endline?{line:end.endline,column:end.endcol}:null};if(start.file){moznode.loc.source=start.file}}return moznode}function def_to_moz(mytype,handler){mytype.DEFMETHOD("to_mozilla_ast",function(){return set_moz_loc(this,handler(this))})}function to_moz(node){return node!=null?node.to_mozilla_ast():null}function to_moz_block(node){return{type:"BlockStatement",body:node.body.map(to_moz)}}function to_moz_scope(type,node){var body=node.body.map(to_moz);if(node.body[0]instanceof AST_SimpleStatement&&node.body[0].body instanceof AST_String){body.unshift(to_moz(new AST_EmptyStatement(node.body[0])))}return{type:type,body:body}}})();"use strict";function find_builtins(reserved){["null","true","false","Infinity","-Infinity","undefined"].forEach(add);[Object,Array,Function,Number,String,Boolean,Error,Math,Date,RegExp].forEach(function(ctor){Object.getOwnPropertyNames(ctor).map(add);if(ctor.prototype){Object.getOwnPropertyNames(ctor.prototype).map(add)}});function add(name){push_uniq(reserved,name)}}function reserve_quoted_keys(ast,reserved){function add(name){push_uniq(reserved,name)}ast.walk(new TreeWalker(function(node){if(node instanceof AST_ObjectKeyVal&&node.quote){add(node.key)}else if(node instanceof AST_Sub){addStrings(node.property,add)}}))}function addStrings(node,add){node.walk(new TreeWalker(function(node){if(node instanceof AST_Sequence){addStrings(node.tail_node(),add)}else if(node instanceof AST_String){add(node.value)}else if(node instanceof AST_Conditional){addStrings(node.consequent,add);addStrings(node.alternative,add)}return true}))}function mangle_properties(ast,options){options=defaults(options,{builtins:false,cache:null,debug:false,keep_quoted:false,only_cache:false,regex:null,reserved:null},true);var reserved=options.reserved;if(!Array.isArray(reserved))reserved=[];if(!options.builtins)find_builtins(reserved);var cname=-1;var cache;if(options.cache){cache=options.cache.props;cache.each(function(mangled_name){push_uniq(reserved,mangled_name)})}else{cache=new Dictionary}var regex=options.regex;var debug=options.debug!==false;var debug_name_suffix;if(debug){debug_name_suffix=options.debug===true?"":options.debug}var names_to_mangle=[];var unmangleable=[];ast.walk(new TreeWalker(function(node){if(node instanceof AST_ObjectKeyVal){add(node.key)}else if(node instanceof AST_ObjectProperty){add(node.key.name)}else if(node instanceof AST_Dot){add(node.property)}else if(node instanceof AST_Sub){addStrings(node.property,add)}}));return ast.transform(new TreeTransformer(function(node){if(node instanceof AST_ObjectKeyVal){node.key=mangle(node.key)}else if(node instanceof AST_ObjectProperty){node.key.name=mangle(node.key.name)}else if(node instanceof AST_Dot){node.property=mangle(node.property)}else if(!options.keep_quoted&&node instanceof AST_Sub){node.property=mangleStrings(node.property)}}));function can_mangle(name){if(unmangleable.indexOf(name)>=0)return false;if(reserved.indexOf(name)>=0)return false;if(options.only_cache){return cache.has(name)}if(/^-?[0-9]+(\.[0-9]+)?(e[+-][0-9]+)?$/.test(name))return false;return true}function should_mangle(name){if(regex&&!regex.test(name))return false;if(reserved.indexOf(name)>=0)return false;return cache.has(name)||names_to_mangle.indexOf(name)>=0}function add(name){if(can_mangle(name))push_uniq(names_to_mangle,name);if(!should_mangle(name)){push_uniq(unmangleable,name)}}function mangle(name){if(!should_mangle(name)){return name}var mangled=cache.get(name);if(!mangled){if(debug){var debug_mangled="_$"+name+"$"+debug_name_suffix+"_";if(can_mangle(debug_mangled)){mangled=debug_mangled}}if(!mangled){do{mangled=base54(++cname)}while(!can_mangle(mangled))}cache.set(name,mangled)}return mangled}function mangleStrings(node){return node.transform(new TreeTransformer(function(node){if(node instanceof AST_Sequence){var last=node.expressions.length-1;node.expressions[last]=mangleStrings(node.expressions[last])}else if(node instanceof AST_String){node.value=mangle(node.value)}else if(node instanceof AST_Conditional){node.consequent=mangleStrings(node.consequent);node.alternative=mangleStrings(node.alternative)}return node}))}}"use strict";var to_ascii=typeof atob=="undefined"?function(b64){return new Buffer(b64,"base64").toString()}:atob;var to_base64=typeof btoa=="undefined"?function(str){return new Buffer(str).toString("base64")}:btoa;function read_source_map(code){var match=/\n\/\/# sourceMappingURL=data:application\/json(;.*?)?;base64,(.*)/.exec(code);if(!match){AST_Node.warn("inline source map not found");return null}return to_ascii(match[2])}function set_shorthand(name,options,keys){if(options[name]){keys.forEach(function(key){if(options[key]){if(typeof options[key]!="object")options[key]={};if(!(name in options[key]))options[key][name]=options[name]}})}}function init_cache(cache){if(!cache)return;if(!("props"in cache)){cache.props=new Dictionary}else if(!(cache.props instanceof Dictionary)){cache.props=Dictionary.fromObject(cache.props)}}function to_json(cache){return{props:cache.props.toObject()}}function minify(files,options){var warn_function=AST_Node.warn_function;try{options=defaults(options,{compress:{},ie8:false,keep_fnames:false,mangle:{},nameCache:null,output:{},parse:{},rename:undefined,sourceMap:false,timings:false,toplevel:false,warnings:false,wrap:false},true);var timings=options.timings&&{start:Date.now()};if(options.rename===undefined){options.rename=options.compress&&options.mangle}set_shorthand("ie8",options,["compress","mangle","output"]);set_shorthand("keep_fnames",options,["compress","mangle"]);set_shorthand("toplevel",options,["compress","mangle"]);set_shorthand("warnings",options,["compress"]);var quoted_props;if(options.mangle){options.mangle=defaults(options.mangle,{cache:options.nameCache&&(options.nameCache.vars||{}),eval:false,ie8:false,keep_fnames:false,properties:false,reserved:[],toplevel:false},true);if(options.mangle.properties){if(typeof options.mangle.properties!="object"){options.mangle.properties={}}if(options.mangle.properties.keep_quoted){quoted_props=options.mangle.properties.reserved;if(!Array.isArray(quoted_props))quoted_props=[];options.mangle.properties.reserved=quoted_props}if(options.nameCache&&!("cache"in options.mangle.properties)){options.mangle.properties.cache=options.nameCache.props||{}}}init_cache(options.mangle.cache);init_cache(options.mangle.properties.cache)}if(options.sourceMap){options.sourceMap=defaults(options.sourceMap,{content:null,filename:null,includeSources:false,root:null,url:null},true)}var warnings=[];if(options.warnings&&!AST_Node.warn_function){AST_Node.warn_function=function(warning){warnings.push(warning)}}if(timings)timings.parse=Date.now();var toplevel;if(files instanceof AST_Toplevel){toplevel=files}else{if(typeof files=="string"){files=[files]}options.parse=options.parse||{};options.parse.toplevel=null;for(var name in files)if(HOP(files,name)){options.parse.filename=name;options.parse.toplevel=parse(files[name],options.parse);if(options.sourceMap&&options.sourceMap.content=="inline"){if(Object.keys(files).length>1)throw new Error("inline source map only works with singular input");options.sourceMap.content=read_source_map(files[name])}}toplevel=options.parse.toplevel}if(quoted_props){reserve_quoted_keys(toplevel,quoted_props)}if(options.wrap){toplevel=toplevel.wrap_commonjs(options.wrap)}if(timings)timings.rename=Date.now();if(options.rename){toplevel.figure_out_scope(options.mangle);toplevel.expand_names(options.mangle)}if(timings)timings.compress=Date.now();if(options.compress)toplevel=new Compressor(options.compress).compress(toplevel);if(timings)timings.scope=Date.now();if(options.mangle)toplevel.figure_out_scope(options.mangle);if(timings)timings.mangle=Date.now();if(options.mangle){toplevel.compute_char_frequency(options.mangle);toplevel.mangle_names(options.mangle)}if(timings)timings.properties=Date.now();if(options.mangle&&options.mangle.properties){toplevel=mangle_properties(toplevel,options.mangle.properties)}if(timings)timings.output=Date.now();var result={};if(options.output.ast){result.ast=toplevel}if(!HOP(options.output,"code")||options.output.code){if(options.sourceMap){if(typeof options.sourceMap.content=="string"){options.sourceMap.content=JSON.parse(options.sourceMap.content)}options.output.source_map=SourceMap({file:options.sourceMap.filename,orig:options.sourceMap.content,root:options.sourceMap.root});if(options.sourceMap.includeSources){if(files instanceof AST_Toplevel){throw new Error("original source content unavailable")}else for(var name in files)if(HOP(files,name)){options.output.source_map.get().setSourceContent(name,files[name])}}}delete options.output.ast;delete options.output.code;var stream=OutputStream(options.output);toplevel.print(stream);result.code=stream.get();if(options.sourceMap){result.map=options.output.source_map.toString();if(options.sourceMap.url=="inline"){result.code+="\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,"+to_base64(result.map)}else if(options.sourceMap.url){result.code+="\n//# sourceMappingURL="+options.sourceMap.url}}}if(options.nameCache&&options.mangle){if(options.mangle.cache)options.nameCache.vars=to_json(options.mangle.cache);if(options.mangle.properties&&options.mangle.properties.cache){options.nameCache.props=to_json(options.mangle.properties.cache)}}if(timings){timings.end=Date.now();result.timings={parse:.001*(timings.rename-timings.parse),rename:.001*(timings.compress-timings.rename),compress:.001*(timings.scope-timings.compress),scope:.001*(timings.mangle-timings.scope),mangle:.001*(timings.properties-timings.mangle),properties:.001*(timings.output-timings.properties),output:.001*(timings.end-timings.output),total:.001*(timings.end-timings.start)}}if(warnings.length){result.warnings=warnings}return result}catch(ex){return{error:ex}}finally{AST_Node.warn_function=warn_function}}exports["Dictionary"]=Dictionary;exports["TreeWalker"]=TreeWalker;exports["TreeTransformer"]=TreeTransformer;exports["minify"]=minify;exports["parse"]=parse;exports["_push_uniq"]=push_uniq})(typeof exports=="undefined"?exports={}:exports);
+(function(exports){"use strict";function characters(str){return str.split("")}function member(name,array){return array.indexOf(name)>=0}function find_if(func,array){for(var i=0,n=array.length;i<n;++i){if(func(array[i]))return array[i]}}function repeat_string(str,i){if(i<=0)return"";if(i==1)return str;var d=repeat_string(str,i>>1);d+=d;if(i&1)d+=str;return d}function configure_error_stack(fn){Object.defineProperty(fn.prototype,"stack",{get:function(){var err=new Error(this.message);err.name=this.name;try{throw err}catch(e){return e.stack}}})}function DefaultsError(msg,defs){this.message=msg;this.defs=defs}DefaultsError.prototype=Object.create(Error.prototype);DefaultsError.prototype.constructor=DefaultsError;DefaultsError.prototype.name="DefaultsError";configure_error_stack(DefaultsError);DefaultsError.croak=function(msg,defs){throw new DefaultsError(msg,defs)};function defaults(args,defs,croak){if(args===true)args={};var ret=args||{};if(croak)for(var i in ret)if(HOP(ret,i)&&!HOP(defs,i))DefaultsError.croak("`"+i+"` is not a supported option",defs);for(var i in defs)if(HOP(defs,i)){ret[i]=args&&HOP(args,i)?args[i]:defs[i]}return ret}function merge(obj,ext){var count=0;for(var i in ext)if(HOP(ext,i)){obj[i]=ext[i];count++}return count}function noop(){}function return_false(){return false}function return_true(){return true}function return_this(){return this}function return_null(){return null}var MAP=function(){function MAP(a,f,backwards){var ret=[],top=[],i;function doit(){var val=f(a[i],i);var is_last=val instanceof Last;if(is_last)val=val.v;if(val instanceof AtTop){val=val.v;if(val instanceof Splice){top.push.apply(top,backwards?val.v.slice().reverse():val.v)}else{top.push(val)}}else if(val!==skip){if(val instanceof Splice){ret.push.apply(ret,backwards?val.v.slice().reverse():val.v)}else{ret.push(val)}}return is_last}if(a instanceof Array){if(backwards){for(i=a.length;--i>=0;)if(doit())break;ret.reverse();top.reverse()}else{for(i=0;i<a.length;++i)if(doit())break}}else{for(i in a)if(HOP(a,i))if(doit())break}return top.concat(ret)}MAP.at_top=function(val){return new AtTop(val)};MAP.splice=function(val){return new Splice(val)};MAP.last=function(val){return new Last(val)};var skip=MAP.skip={};function AtTop(val){this.v=val}function Splice(val){this.v=val}function Last(val){this.v=val}return MAP}();function push_uniq(array,el){if(array.indexOf(el)<0)array.push(el)}function string_template(text,props){return text.replace(/\{(.+?)\}/g,function(str,p){return props&&props[p]})}function remove(array,el){for(var i=array.length;--i>=0;){if(array[i]===el)array.splice(i,1)}}function mergeSort(array,cmp){if(array.length<2)return array.slice();function merge(a,b){var r=[],ai=0,bi=0,i=0;while(ai<a.length&&bi<b.length){cmp(a[ai],b[bi])<=0?r[i++]=a[ai++]:r[i++]=b[bi++]}if(ai<a.length)r.push.apply(r,a.slice(ai));if(bi<b.length)r.push.apply(r,b.slice(bi));return r}function _ms(a){if(a.length<=1)return a;var m=Math.floor(a.length/2),left=a.slice(0,m),right=a.slice(m);left=_ms(left);right=_ms(right);return merge(left,right)}return _ms(array)}function makePredicate(words){if(!(words instanceof Array))words=words.split(" ");var f="",cats=[];out:for(var i=0;i<words.length;++i){for(var j=0;j<cats.length;++j)if(cats[j][0].length==words[i].length){cats[j].push(words[i]);continue out}cats.push([words[i]])}function quote(word){return JSON.stringify(word).replace(/[\u2028\u2029]/g,function(s){switch(s){case"\u2028":return"\\u2028";case"\u2029":return"\\u2029"}return s})}function compareTo(arr){if(arr.length==1)return f+="return str === "+quote(arr[0])+";";f+="switch(str){";for(var i=0;i<arr.length;++i)f+="case "+quote(arr[i])+":";f+="return true}return false;"}if(cats.length>3){cats.sort(function(a,b){return b.length-a.length});f+="switch(str.length){";for(var i=0;i<cats.length;++i){var cat=cats[i];f+="case "+cat[0].length+":";compareTo(cat)}f+="}"}else{compareTo(words)}return new Function("str",f)}function all(array,predicate){for(var i=array.length;--i>=0;)if(!predicate(array[i]))return false;return true}function Dictionary(){this._values=Object.create(null);this._size=0}Dictionary.prototype={set:function(key,val){if(!this.has(key))++this._size;this._values["$"+key]=val;return this},add:function(key,val){if(this.has(key)){this.get(key).push(val)}else{this.set(key,[val])}return this},get:function(key){return this._values["$"+key]},del:function(key){if(this.has(key)){--this._size;delete this._values["$"+key]}return this},has:function(key){return"$"+key in this._values},each:function(f){for(var i in this._values)f(this._values[i],i.substr(1))},size:function(){return this._size},map:function(f){var ret=[];for(var i in this._values)ret.push(f(this._values[i],i.substr(1)));return ret},clone:function(){var ret=new Dictionary;for(var i in this._values)ret._values[i]=this._values[i];ret._size=this._size;return ret},toObject:function(){return this._values}};Dictionary.fromObject=function(obj){var dict=new Dictionary;dict._size=merge(dict._values,obj);return dict};function HOP(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)}function first_in_statement(stack){var node=stack.parent(-1);for(var i=0,p;p=stack.parent(i);i++){if(p instanceof AST_Statement&&p.body===node)return true;if(p instanceof AST_Sequence&&p.expressions[0]===node||p.TYPE=="Call"&&p.expression===node||p instanceof AST_Dot&&p.expression===node||p instanceof AST_Sub&&p.expression===node||p instanceof AST_Conditional&&p.condition===node||p instanceof AST_Binary&&p.left===node||p instanceof AST_UnaryPostfix&&p.expression===node){node=p}else{return false}}}"use strict";function DEFNODE(type,props,methods,base){if(arguments.length<4)base=AST_Node;if(!props)props=[];else props=props.split(/\s+/);var self_props=props;if(base&&base.PROPS)props=props.concat(base.PROPS);var code="return function AST_"+type+"(props){ if (props) { ";for(var i=props.length;--i>=0;){code+="this."+props[i]+" = props."+props[i]+";"}var proto=base&&new base;if(proto&&proto.initialize||methods&&methods.initialize)code+="this.initialize();";code+="}}";var ctor=new Function(code)();if(proto){ctor.prototype=proto;ctor.BASE=base}if(base)base.SUBCLASSES.push(ctor);ctor.prototype.CTOR=ctor;ctor.PROPS=props||null;ctor.SELF_PROPS=self_props;ctor.SUBCLASSES=[];if(type){ctor.prototype.TYPE=ctor.TYPE=type}if(methods)for(i in methods)if(HOP(methods,i)){if(/^\$/.test(i)){ctor[i.substr(1)]=methods[i]}else{ctor.prototype[i]=methods[i]}}ctor.DEFMETHOD=function(name,method){this.prototype[name]=method};if(typeof exports!=="undefined"){exports["AST_"+type]=ctor}return ctor}var AST_Token=DEFNODE("Token","type value line col pos endline endcol endpos nlb comments_before comments_after file raw",{},null);var AST_Node=DEFNODE("Node","start end",{_clone:function(deep){if(deep){var self=this.clone();return self.transform(new TreeTransformer(function(node){if(node!==self){return node.clone(true)}}))}return new this.CTOR(this)},clone:function(deep){return this._clone(deep)},$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(visitor){return visitor._visit(this)},walk:function(visitor){return this._walk(visitor)}},null);AST_Node.warn_function=null;AST_Node.warn=function(txt,props){if(AST_Node.warn_function)AST_Node.warn_function(string_template(txt,props))};var AST_Statement=DEFNODE("Statement",null,{$documentation:"Base class of all statements"});var AST_Debugger=DEFNODE("Debugger",null,{$documentation:"Represents a debugger statement"},AST_Statement);var AST_Directive=DEFNODE("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"}},AST_Statement);var AST_SimpleStatement=DEFNODE("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(visitor){return visitor._visit(this,function(){this.body._walk(visitor)})}},AST_Statement);function walk_body(node,visitor){var body=node.body;if(body instanceof AST_Statement){body._walk(visitor)}else for(var i=0,len=body.length;i<len;i++){body[i]._walk(visitor)}}var AST_Block=DEFNODE("Block","body",{$documentation:"A body of statements (usually bracketed)",$propdoc:{body:"[AST_Statement*] an array of statements"},_walk:function(visitor){return visitor._visit(this,function(){walk_body(this,visitor)})}},AST_Statement);var AST_BlockStatement=DEFNODE("BlockStatement",null,{$documentation:"A block statement"},AST_Block);var AST_EmptyStatement=DEFNODE("EmptyStatement",null,{$documentation:"The empty statement (empty block or simply a semicolon)"},AST_Statement);var AST_StatementWithBody=DEFNODE("StatementWithBody","body",{$documentation:"Base class for all statements that contain one nested body: `For`, `ForIn`, `Do`, `While`, `With`",$propdoc:{body:"[AST_Statement] the body; this should always be present, even if it's an AST_EmptyStatement"}},AST_Statement);var AST_LabeledStatement=DEFNODE("LabeledStatement","label",{$documentation:"Statement with a label",$propdoc:{label:"[AST_Label] a label definition"},_walk:function(visitor){return visitor._visit(this,function(){this.label._walk(visitor);this.body._walk(visitor)})},clone:function(deep){var node=this._clone(deep);if(deep){var label=node.label;var def=this.label;node.walk(new TreeWalker(function(node){if(node instanceof AST_LoopControl&&node.label&&node.label.thedef===def){node.label.thedef=label;label.references.push(node)}}))}return node}},AST_StatementWithBody);var AST_IterationStatement=DEFNODE("IterationStatement",null,{$documentation:"Internal class.  All loops inherit from it."},AST_StatementWithBody);var AST_DWLoop=DEFNODE("DWLoop","condition",{$documentation:"Base class for do/while statements",$propdoc:{condition:"[AST_Node] the loop condition.  Should not be instanceof AST_Statement"}},AST_IterationStatement);var AST_Do=DEFNODE("Do",null,{$documentation:"A `do` statement",_walk:function(visitor){return visitor._visit(this,function(){this.body._walk(visitor);this.condition._walk(visitor)})}},AST_DWLoop);var AST_While=DEFNODE("While",null,{$documentation:"A `while` statement",_walk:function(visitor){return visitor._visit(this,function(){this.condition._walk(visitor);this.body._walk(visitor)})}},AST_DWLoop);var AST_For=DEFNODE("For","init condition step",{$documentation:"A `for` statement",$propdoc:{init:"[AST_Node?] the `for` initialization code, or null if empty",condition:"[AST_Node?] the `for` termination clause, or null if empty",step:"[AST_Node?] the `for` update clause, or null if empty"},_walk:function(visitor){return visitor._visit(this,function(){if(this.init)this.init._walk(visitor);if(this.condition)this.condition._walk(visitor);if(this.step)this.step._walk(visitor);this.body._walk(visitor)})}},AST_IterationStatement);var AST_ForIn=DEFNODE("ForIn","init object",{$documentation:"A `for ... in` statement",$propdoc:{init:"[AST_Node] the `for/in` initialization code",object:"[AST_Node] the object that we're looping through"},_walk:function(visitor){return visitor._visit(this,function(){this.init._walk(visitor);this.object._walk(visitor);this.body._walk(visitor)})}},AST_IterationStatement);var AST_With=DEFNODE("With","expression",{$documentation:"A `with` statement",$propdoc:{expression:"[AST_Node] the `with` expression"},_walk:function(visitor){return visitor._visit(this,function(){this.expression._walk(visitor);this.body._walk(visitor)})}},AST_StatementWithBody);var AST_Scope=DEFNODE("Scope","variables functions uses_with uses_eval parent_scope enclosed cname",{$documentation:"Base class for all statements introducing a lexical scope",$propdoc:{variables:"[Object/S] a map of name -> 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)"},clone:function(deep){var node=this._clone(deep);if(this.variables)node.variables=this.variables.clone();if(this.functions)node.functions=this.functions.clone();if(this.enclosed)node.enclosed=this.enclosed.slice();return node}},AST_Block);var AST_Toplevel=DEFNODE("Toplevel","globals",{$documentation:"The toplevel scope",$propdoc:{globals:"[Object/S] a map of name -> SymbolDef for all undeclared names"},wrap_commonjs:function(name){var body=this.body;var wrapped_tl="(function(exports){'$ORIG';})(typeof "+name+"=='undefined'?("+name+"={}):"+name+");";wrapped_tl=parse(wrapped_tl);wrapped_tl=wrapped_tl.transform(new TreeTransformer(function before(node){if(node instanceof AST_Directive&&node.value=="$ORIG"){return MAP.splice(body)}}));return wrapped_tl}},AST_Scope);var AST_Lambda=DEFNODE("Lambda","name argnames uses_arguments",{$documentation:"Base class for functions",$propdoc:{name:"[AST_SymbolDeclaration?] the name of this function",argnames:"[AST_SymbolFunarg*] array of function arguments",uses_arguments:"[boolean/S] tells whether this function accesses the arguments array"},_walk:function(visitor){return visitor._visit(this,function(){if(this.name)this.name._walk(visitor);var argnames=this.argnames;for(var i=0,len=argnames.length;i<len;i++){argnames[i]._walk(visitor)}walk_body(this,visitor)})}},AST_Scope);var AST_Accessor=DEFNODE("Accessor",null,{$documentation:"A setter/getter function.  The `name` property is always null."},AST_Lambda);var AST_Function=DEFNODE("Function","inlined",{$documentation:"A function expression"},AST_Lambda);var AST_Defun=DEFNODE("Defun","inlined",{$documentation:"A function definition"},AST_Lambda);var AST_Jump=DEFNODE("Jump",null,{$documentation:"Base class for “jumps” (for now that's `return`, `throw`, `break` and `continue`)"},AST_Statement);var AST_Exit=DEFNODE("Exit","value",{$documentation:"Base class for “exits” (`return` and `throw`)",$propdoc:{value:"[AST_Node?] the value returned or thrown by this statement; could be null for AST_Return"},_walk:function(visitor){return visitor._visit(this,this.value&&function(){this.value._walk(visitor)})}},AST_Jump);var AST_Return=DEFNODE("Return",null,{$documentation:"A `return` statement"},AST_Exit);var AST_Throw=DEFNODE("Throw",null,{$documentation:"A `throw` statement"},AST_Exit);var AST_LoopControl=DEFNODE("LoopControl","label",{$documentation:"Base class for loop control statements (`break` and `continue`)",$propdoc:{label:"[AST_LabelRef?] the label, or null if none"},_walk:function(visitor){return visitor._visit(this,this.label&&function(){this.label._walk(visitor)})}},AST_Jump);var AST_Break=DEFNODE("Break",null,{$documentation:"A `break` statement"},AST_LoopControl);var AST_Continue=DEFNODE("Continue",null,{$documentation:"A `continue` statement"},AST_LoopControl);var AST_If=DEFNODE("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(visitor){return visitor._visit(this,function(){this.condition._walk(visitor);this.body._walk(visitor);if(this.alternative)this.alternative._walk(visitor)})}},AST_StatementWithBody);var AST_Switch=DEFNODE("Switch","expression",{$documentation:"A `switch` statement",$propdoc:{expression:"[AST_Node] the `switch` “discriminant”"},_walk:function(visitor){return visitor._visit(this,function(){this.expression._walk(visitor);walk_body(this,visitor)})}},AST_Block);var AST_SwitchBranch=DEFNODE("SwitchBranch",null,{$documentation:"Base class for `switch` branches"},AST_Block);var AST_Default=DEFNODE("Default",null,{$documentation:"A `default` switch branch"},AST_SwitchBranch);var AST_Case=DEFNODE("Case","expression",{$documentation:"A `case` switch branch",$propdoc:{expression:"[AST_Node] the `case` expression"},_walk:function(visitor){return visitor._visit(this,function(){this.expression._walk(visitor);walk_body(this,visitor)})}},AST_SwitchBranch);var AST_Try=DEFNODE("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(visitor){return visitor._visit(this,function(){walk_body(this,visitor);if(this.bcatch)this.bcatch._walk(visitor);if(this.bfinally)this.bfinally._walk(visitor)})}},AST_Block);var AST_Catch=DEFNODE("Catch","argname",{$documentation:"A `catch` node; only makes sense as part of a `try` statement",$propdoc:{argname:"[AST_SymbolCatch] symbol for the exception"},_walk:function(visitor){return visitor._visit(this,function(){this.argname._walk(visitor);walk_body(this,visitor)})}},AST_Block);var AST_Finally=DEFNODE("Finally",null,{$documentation:"A `finally` node; only makes sense as part of a `try` statement"},AST_Block);var AST_Definitions=DEFNODE("Definitions","definitions",{$documentation:"Base class for `var` nodes (variable declarations/initializations)",$propdoc:{definitions:"[AST_VarDef*] array of variable definitions"},_walk:function(visitor){return visitor._visit(this,function(){var definitions=this.definitions;for(var i=0,len=definitions.length;i<len;i++){definitions[i]._walk(visitor)}})}},AST_Statement);var AST_Var=DEFNODE("Var",null,{$documentation:"A `var` statement"},AST_Definitions);var AST_VarDef=DEFNODE("VarDef","name value",{$documentation:"A variable declaration; only appears in a AST_Definitions node",$propdoc:{name:"[AST_SymbolVar] name of the variable",value:"[AST_Node?] initializer, or null of there's no initializer"},_walk:function(visitor){return visitor._visit(this,function(){this.name._walk(visitor);if(this.value)this.value._walk(visitor)})}});var AST_Call=DEFNODE("Call","expression args",{$documentation:"A function call expression",$propdoc:{expression:"[AST_Node] expression to invoke as function",args:"[AST_Node*] array of arguments"},_walk:function(visitor){return visitor._visit(this,function(){var args=this.args;for(var i=0,len=args.length;i<len;i++){args[i]._walk(visitor)}this.expression._walk(visitor)})}});var AST_New=DEFNODE("New",null,{$documentation:"An object instantiation.  Derives from a function call since it has exactly the same properties"},AST_Call);var AST_Sequence=DEFNODE("Sequence","expressions",{$documentation:"A sequence expression (comma-separated expressions)",$propdoc:{expressions:"[AST_Node*] array of expressions (at least two)"},_walk:function(visitor){return visitor._visit(this,function(){this.expressions.forEach(function(node){node._walk(visitor)})})}});var AST_PropAccess=DEFNODE("PropAccess","expression property",{$documentation:'Base class for property access expressions, i.e. `a.foo` or `a["foo"]`',$propdoc:{expression:"[AST_Node] the “container” expression",property:"[AST_Node|string] the property to access.  For AST_Dot this is always a plain string, while for AST_Sub it's an arbitrary AST_Node"}});var AST_Dot=DEFNODE("Dot",null,{$documentation:"A dotted property access expression",_walk:function(visitor){return visitor._visit(this,function(){this.expression._walk(visitor)})}},AST_PropAccess);var AST_Sub=DEFNODE("Sub",null,{$documentation:'Index-style property access, i.e. `a["foo"]`',_walk:function(visitor){return visitor._visit(this,function(){this.expression._walk(visitor);this.property._walk(visitor)})}},AST_PropAccess);var AST_Unary=DEFNODE("Unary","operator expression",{$documentation:"Base class for unary expressions",$propdoc:{operator:"[string] the operator",expression:"[AST_Node] expression that this unary operator applies to"},_walk:function(visitor){return visitor._visit(this,function(){this.expression._walk(visitor)})}});var AST_UnaryPrefix=DEFNODE("UnaryPrefix",null,{$documentation:"Unary prefix expression, i.e. `typeof i` or `++i`"},AST_Unary);var AST_UnaryPostfix=DEFNODE("UnaryPostfix",null,{$documentation:"Unary postfix expression, i.e. `i++`"},AST_Unary);var AST_Binary=DEFNODE("Binary","operator left right",{$documentation:"Binary expression, i.e. `a + b`",$propdoc:{left:"[AST_Node] left-hand side expression",operator:"[string] the operator",right:"[AST_Node] right-hand side expression"},_walk:function(visitor){return visitor._visit(this,function(){this.left._walk(visitor);this.right._walk(visitor)})}});var AST_Conditional=DEFNODE("Conditional","condition consequent alternative",{$documentation:"Conditional expression using the ternary operator, i.e. `a ? b : c`",$propdoc:{condition:"[AST_Node]",consequent:"[AST_Node]",alternative:"[AST_Node]"},_walk:function(visitor){return visitor._visit(this,function(){this.condition._walk(visitor);this.consequent._walk(visitor);this.alternative._walk(visitor)})}});var AST_Assign=DEFNODE("Assign",null,{$documentation:"An assignment expression — `a = b + 5`"},AST_Binary);var AST_Array=DEFNODE("Array","elements",{$documentation:"An array literal",$propdoc:{elements:"[AST_Node*] array of elements"},_walk:function(visitor){return visitor._visit(this,function(){var elements=this.elements;for(var i=0,len=elements.length;i<len;i++){elements[i]._walk(visitor)}})}});var AST_Object=DEFNODE("Object","properties",{$documentation:"An object literal",$propdoc:{properties:"[AST_ObjectProperty*] array of properties"},_walk:function(visitor){return visitor._visit(this,function(){var properties=this.properties;for(var i=0,len=properties.length;i<len;i++){properties[i]._walk(visitor)}})}});var AST_ObjectProperty=DEFNODE("ObjectProperty","key value",{$documentation:"Base class for literal object properties",$propdoc:{key:"[string|AST_SymbolAccessor] property name. For ObjectKeyVal this is a string. For getters and setters this is an AST_SymbolAccessor.",value:"[AST_Node] property value.  For getters and setters this is an AST_Accessor."},_walk:function(visitor){return visitor._visit(this,function(){this.value._walk(visitor)})}});var AST_ObjectKeyVal=DEFNODE("ObjectKeyVal","quote",{$documentation:"A key: value object property",$propdoc:{quote:"[string] the original quote character"}},AST_ObjectProperty);var AST_ObjectSetter=DEFNODE("ObjectSetter",null,{$documentation:"An object setter property"},AST_ObjectProperty);var AST_ObjectGetter=DEFNODE("ObjectGetter",null,{$documentation:"An object getter property"},AST_ObjectProperty);var AST_Symbol=DEFNODE("Symbol","scope name thedef",{$propdoc:{name:"[string] name of this symbol",scope:"[AST_Scope/S] the current scope (not necessarily the definition scope)",thedef:"[SymbolDef/S] the definition of this symbol"},$documentation:"Base class for all symbols"});var AST_SymbolAccessor=DEFNODE("SymbolAccessor",null,{$documentation:"The name of a property accessor (setter/getter function)"},AST_Symbol);var AST_SymbolDeclaration=DEFNODE("SymbolDeclaration","init",{$documentation:"A declaration symbol (symbol in var, function name or argument, symbol in catch)"},AST_Symbol);var AST_SymbolVar=DEFNODE("SymbolVar",null,{$documentation:"Symbol defining a variable"},AST_SymbolDeclaration);var AST_SymbolFunarg=DEFNODE("SymbolFunarg",null,{$documentation:"Symbol naming a function argument"},AST_SymbolVar);var AST_SymbolDefun=DEFNODE("SymbolDefun",null,{$documentation:"Symbol defining a function"},AST_SymbolDeclaration);var AST_SymbolLambda=DEFNODE("SymbolLambda",null,{$documentation:"Symbol naming a function expression"},AST_SymbolDeclaration);var AST_SymbolCatch=DEFNODE("SymbolCatch",null,{$documentation:"Symbol naming the exception in catch"},AST_SymbolDeclaration);var AST_Label=DEFNODE("Label","references",{$documentation:"Symbol naming a label (declaration)",$propdoc:{references:"[AST_LoopControl*] a list of nodes referring to this label"},initialize:function(){this.references=[];this.thedef=this}},AST_Symbol);var AST_SymbolRef=DEFNODE("SymbolRef",null,{$documentation:"Reference to some symbol (not definition/declaration)"},AST_Symbol);var AST_LabelRef=DEFNODE("LabelRef",null,{$documentation:"Reference to a label symbol"},AST_Symbol);var AST_This=DEFNODE("This",null,{$documentation:"The `this` symbol"},AST_Symbol);var AST_Constant=DEFNODE("Constant",null,{$documentation:"Base class for all constants",getValue:function(){return this.value}});var AST_String=DEFNODE("String","value quote",{$documentation:"A string literal",$propdoc:{value:"[string] the contents of this string",quote:"[string] the original quote character"}},AST_Constant);var AST_Number=DEFNODE("Number","value literal",{$documentation:"A number literal",$propdoc:{value:"[number] the numeric value",literal:"[string] numeric value as string (optional)"}},AST_Constant);var AST_RegExp=DEFNODE("RegExp","value",{$documentation:"A regexp literal",$propdoc:{value:"[RegExp] the actual regexp"}},AST_Constant);var AST_Atom=DEFNODE("Atom",null,{$documentation:"Base class for atoms"},AST_Constant);var AST_Null=DEFNODE("Null",null,{$documentation:"The `null` atom",value:null},AST_Atom);var AST_NaN=DEFNODE("NaN",null,{$documentation:"The impossible value",value:0/0},AST_Atom);var AST_Undefined=DEFNODE("Undefined",null,{$documentation:"The `undefined` value",value:function(){}()},AST_Atom);var AST_Hole=DEFNODE("Hole",null,{$documentation:"A hole in an array",value:function(){}()},AST_Atom);var AST_Infinity=DEFNODE("Infinity",null,{$documentation:"The `Infinity` value",value:1/0},AST_Atom);var AST_Boolean=DEFNODE("Boolean",null,{$documentation:"Base class for booleans"},AST_Atom);var AST_False=DEFNODE("False",null,{$documentation:"The `false` atom",value:false},AST_Boolean);var AST_True=DEFNODE("True",null,{$documentation:"The `true` atom",value:true},AST_Boolean);function TreeWalker(callback){this.visit=callback;this.stack=[];this.directives=Object.create(null)}TreeWalker.prototype={_visit:function(node,descend){this.push(node);var ret=this.visit(node,descend?function(){descend.call(node)}:noop);if(!ret&&descend){descend.call(node)}this.pop();return ret},parent:function(n){return this.stack[this.stack.length-2-(n||0)]},push:function(node){if(node instanceof AST_Lambda){this.directives=Object.create(this.directives)}else if(node instanceof AST_Directive&&!this.directives[node.value]){this.directives[node.value]=node}this.stack.push(node)},pop:function(){if(this.stack.pop()instanceof AST_Lambda){this.directives=Object.getPrototypeOf(this.directives)}},self:function(){return this.stack[this.stack.length-1]},find_parent:function(type){var stack=this.stack;for(var i=stack.length;--i>=0;){var x=stack[i];if(x instanceof type)return x}},has_directive:function(type){var dir=this.directives[type];if(dir)return dir;var node=this.stack[this.stack.length-1];if(node instanceof AST_Scope){for(var i=0;i<node.body.length;++i){var st=node.body[i];if(!(st instanceof AST_Directive))break;if(st.value==type)return st}}},loopcontrol_target:function(node){var stack=this.stack;if(node.label)for(var i=stack.length;--i>=0;){var x=stack[i];if(x instanceof AST_LabeledStatement&&x.label.name==node.label.name)return x.body}else for(var i=stack.length;--i>=0;){var x=stack[i];if(x instanceof AST_IterationStatement||node instanceof AST_Break&&x instanceof AST_Switch)return x}}};"use strict";var KEYWORDS="break case catch const continue debugger default delete do else finally for function if in instanceof new return switch throw try typeof var void while with";var KEYWORDS_ATOM="false null true";var RESERVED_WORDS="abstract boolean byte char class double enum export extends final float goto implements import int interface let long native package private protected public short static super synchronized this throws transient volatile yield"+" "+KEYWORDS_ATOM+" "+KEYWORDS;var KEYWORDS_BEFORE_EXPRESSION="return new delete throw else case";KEYWORDS=makePredicate(KEYWORDS);RESERVED_WORDS=makePredicate(RESERVED_WORDS);KEYWORDS_BEFORE_EXPRESSION=makePredicate(KEYWORDS_BEFORE_EXPRESSION);KEYWORDS_ATOM=makePredicate(KEYWORDS_ATOM);var OPERATOR_CHARS=makePredicate(characters("+-*&%=<>!?|~^"));var RE_HEX_NUMBER=/^0x[0-9a-f]+$/i;var RE_OCT_NUMBER=/^0[0-7]+$/;var OPERATORS=makePredicate(["in","instanceof","typeof","new","void","delete","++","--","+","-","!","~","&","|","^","*","/","%",">>","<<",">>>","<",">","<=",">=","==","===","!=","!==","?","=","+=","-=","/=","*=","%=",">>=","<<=",">>>=","|=","^=","&=","&&","||"]);var WHITESPACE_CHARS=makePredicate(characters("  \n\r\t\f\v​           \u2028\u2029   \ufeff"));var NEWLINE_CHARS=makePredicate(characters("\n\r\u2028\u2029"));var PUNC_BEFORE_EXPRESSION=makePredicate(characters("[{(,;:"));var PUNC_CHARS=makePredicate(characters("[]{}(),;:"));var UNICODE={letter:new RegExp("[\\u0041-\\u005A\\u0061-\\u007A\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"),digit:new RegExp("[\\u0030-\\u0039\\u0660-\\u0669\\u06F0-\\u06F9\\u07C0-\\u07C9\\u0966-\\u096F\\u09E6-\\u09EF\\u0A66-\\u0A6F\\u0AE6-\\u0AEF\\u0B66-\\u0B6F\\u0BE6-\\u0BEF\\u0C66-\\u0C6F\\u0CE6-\\u0CEF\\u0D66-\\u0D6F\\u0DE6-\\u0DEF\\u0E50-\\u0E59\\u0ED0-\\u0ED9\\u0F20-\\u0F29\\u1040-\\u1049\\u1090-\\u1099\\u17E0-\\u17E9\\u1810-\\u1819\\u1946-\\u194F\\u19D0-\\u19D9\\u1A80-\\u1A89\\u1A90-\\u1A99\\u1B50-\\u1B59\\u1BB0-\\u1BB9\\u1C40-\\u1C49\\u1C50-\\u1C59\\uA620-\\uA629\\uA8D0-\\uA8D9\\uA900-\\uA909\\uA9D0-\\uA9D9\\uA9F0-\\uA9F9\\uAA50-\\uAA59\\uABF0-\\uABF9\\uFF10-\\uFF19]"),non_spacing_mark:new RegExp("[\\u0300-\\u036F\\u0483-\\u0487\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0610-\\u061A\\u064B-\\u065E\\u0670\\u06D6-\\u06DC\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0900-\\u0902\\u093C\\u0941-\\u0948\\u094D\\u0951-\\u0955\\u0962\\u0963\\u0981\\u09BC\\u09C1-\\u09C4\\u09CD\\u09E2\\u09E3\\u0A01\\u0A02\\u0A3C\\u0A41\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70\\u0A71\\u0A75\\u0A81\\u0A82\\u0ABC\\u0AC1-\\u0AC5\\u0AC7\\u0AC8\\u0ACD\\u0AE2\\u0AE3\\u0B01\\u0B3C\\u0B3F\\u0B41-\\u0B44\\u0B4D\\u0B56\\u0B62\\u0B63\\u0B82\\u0BC0\\u0BCD\\u0C3E-\\u0C40\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0CBC\\u0CBF\\u0CC6\\u0CCC\\u0CCD\\u0CE2\\u0CE3\\u0D41-\\u0D44\\u0D4D\\u0D62\\u0D63\\u0DCA\\u0DD2-\\u0DD4\\u0DD6\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB4-\\u0EB9\\u0EBB\\u0EBC\\u0EC8-\\u0ECD\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F71-\\u0F7E\\u0F80-\\u0F84\\u0F86\\u0F87\\u0F90-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102D-\\u1030\\u1032-\\u1037\\u1039\\u103A\\u103D\\u103E\\u1058\\u1059\\u105E-\\u1060\\u1071-\\u1074\\u1082\\u1085\\u1086\\u108D\\u109D\\u135F\\u1712-\\u1714\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B7-\\u17BD\\u17C6\\u17C9-\\u17D3\\u17DD\\u180B-\\u180D\\u18A9\\u1920-\\u1922\\u1927\\u1928\\u1932\\u1939-\\u193B\\u1A17\\u1A18\\u1A56\\u1A58-\\u1A5E\\u1A60\\u1A62\\u1A65-\\u1A6C\\u1A73-\\u1A7C\\u1A7F\\u1B00-\\u1B03\\u1B34\\u1B36-\\u1B3A\\u1B3C\\u1B42\\u1B6B-\\u1B73\\u1B80\\u1B81\\u1BA2-\\u1BA5\\u1BA8\\u1BA9\\u1C2C-\\u1C33\\u1C36\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE0\\u1CE2-\\u1CE8\\u1CED\\u1DC0-\\u1DE6\\u1DFD-\\u1DFF\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2CEF-\\u2CF1\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\uA66F\\uA67C\\uA67D\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA825\\uA826\\uA8C4\\uA8E0-\\uA8F1\\uA926-\\uA92D\\uA947-\\uA951\\uA980-\\uA982\\uA9B3\\uA9B6-\\uA9B9\\uA9BC\\uAA29-\\uAA2E\\uAA31\\uAA32\\uAA35\\uAA36\\uAA43\\uAA4C\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uABE5\\uABE8\\uABED\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE26]"),space_combining_mark:new RegExp("[\\u0903\\u093E-\\u0940\\u0949-\\u094C\\u094E\\u0982\\u0983\\u09BE-\\u09C0\\u09C7\\u09C8\\u09CB\\u09CC\\u09D7\\u0A03\\u0A3E-\\u0A40\\u0A83\\u0ABE-\\u0AC0\\u0AC9\\u0ACB\\u0ACC\\u0B02\\u0B03\\u0B3E\\u0B40\\u0B47\\u0B48\\u0B4B\\u0B4C\\u0B57\\u0BBE\\u0BBF\\u0BC1\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCC\\u0BD7\\u0C01-\\u0C03\\u0C41-\\u0C44\\u0C82\\u0C83\\u0CBE\\u0CC0-\\u0CC4\\u0CC7\\u0CC8\\u0CCA\\u0CCB\\u0CD5\\u0CD6\\u0D02\\u0D03\\u0D3E-\\u0D40\\u0D46-\\u0D48\\u0D4A-\\u0D4C\\u0D57\\u0D82\\u0D83\\u0DCF-\\u0DD1\\u0DD8-\\u0DDF\\u0DF2\\u0DF3\\u0F3E\\u0F3F\\u0F7F\\u102B\\u102C\\u1031\\u1038\\u103B\\u103C\\u1056\\u1057\\u1062-\\u1064\\u1067-\\u106D\\u1083\\u1084\\u1087-\\u108C\\u108F\\u109A-\\u109C\\u17B6\\u17BE-\\u17C5\\u17C7\\u17C8\\u1923-\\u1926\\u1929-\\u192B\\u1930\\u1931\\u1933-\\u1938\\u19B0-\\u19C0\\u19C8\\u19C9\\u1A19-\\u1A1B\\u1A55\\u1A57\\u1A61\\u1A63\\u1A64\\u1A6D-\\u1A72\\u1B04\\u1B35\\u1B3B\\u1B3D-\\u1B41\\u1B43\\u1B44\\u1B82\\u1BA1\\u1BA6\\u1BA7\\u1BAA\\u1C24-\\u1C2B\\u1C34\\u1C35\\u1CE1\\u1CF2\\uA823\\uA824\\uA827\\uA880\\uA881\\uA8B4-\\uA8C3\\uA952\\uA953\\uA983\\uA9B4\\uA9B5\\uA9BA\\uA9BB\\uA9BD-\\uA9C0\\uAA2F\\uAA30\\uAA33\\uAA34\\uAA4D\\uAA7B\\uABE3\\uABE4\\uABE6\\uABE7\\uABE9\\uABEA\\uABEC]"),connector_punctuation:new RegExp("[\\u005F\\u203F\\u2040\\u2054\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFF3F]")};function is_letter(code){return code>=97&&code<=122||code>=65&&code<=90||code>=170&&UNICODE.letter.test(String.fromCharCode(code))}function is_surrogate_pair_head(code){if(typeof code=="string")code=code.charCodeAt(0);return code>=55296&&code<=56319}function is_surrogate_pair_tail(code){if(typeof code=="string")code=code.charCodeAt(0);return code>=56320&&code<=57343}function is_digit(code){return code>=48&&code<=57}function is_alphanumeric_char(code){return is_digit(code)||is_letter(code)}function is_unicode_digit(code){return UNICODE.digit.test(String.fromCharCode(code))}function is_unicode_combining_mark(ch){return UNICODE.non_spacing_mark.test(ch)||UNICODE.space_combining_mark.test(ch)}function is_unicode_connector_punctuation(ch){return UNICODE.connector_punctuation.test(ch)}function is_identifier(name){return!RESERVED_WORDS(name)&&/^[a-z_$][a-z0-9_$]*$/i.test(name)}function is_identifier_start(code){return code==36||code==95||is_letter(code)}function is_identifier_char(ch){var code=ch.charCodeAt(0);return is_identifier_start(code)||is_digit(code)||code==8204||code==8205||is_unicode_combining_mark(ch)||is_unicode_connector_punctuation(ch)||is_unicode_digit(code)}function is_identifier_string(str){return/^[a-z_$][a-z0-9_$]*$/i.test(str)}function parse_js_number(num){if(RE_HEX_NUMBER.test(num)){return parseInt(num.substr(2),16)}else if(RE_OCT_NUMBER.test(num)){return parseInt(num.substr(1),8)}else{var val=parseFloat(num);if(val==num)return val}}function JS_Parse_Error(message,filename,line,col,pos){this.message=message;this.filename=filename;this.line=line;this.col=col;this.pos=pos}JS_Parse_Error.prototype=Object.create(Error.prototype);JS_Parse_Error.prototype.constructor=JS_Parse_Error;JS_Parse_Error.prototype.name="SyntaxError";configure_error_stack(JS_Parse_Error);function js_error(message,filename,line,col,pos){throw new JS_Parse_Error(message,filename,line,col,pos)}function is_token(token,type,val){return token.type==type&&(val==null||token.value==val)}var EX_EOF={};function tokenizer($TEXT,filename,html5_comments,shebang){var S={text:$TEXT,filename:filename,pos:0,tokpos:0,line:1,tokline:0,col:0,tokcol:0,newline_before:false,regex_allowed:false,comments_before:[],directives:{},directive_stack:[]};function peek(){return S.text.charAt(S.pos)}function next(signal_eof,in_string){var ch=S.text.charAt(S.pos++);if(signal_eof&&!ch)throw EX_EOF;if(NEWLINE_CHARS(ch)){S.newline_before=S.newline_before||!in_string;++S.line;S.col=0;if(!in_string&&ch=="\r"&&peek()=="\n"){++S.pos;ch="\n"}}else{++S.col}return ch}function forward(i){while(i-- >0)next()}function looking_at(str){return S.text.substr(S.pos,str.length)==str}function find_eol(){var text=S.text;for(var i=S.pos,n=S.text.length;i<n;++i){var ch=text[i];if(NEWLINE_CHARS(ch))return i}return-1}function find(what,signal_eof){var pos=S.text.indexOf(what,S.pos);if(signal_eof&&pos==-1)throw EX_EOF;return pos}function start_token(){S.tokline=S.line;S.tokcol=S.col;S.tokpos=S.pos}var prev_was_dot=false;function token(type,value,is_comment){S.regex_allowed=type=="operator"&&!UNARY_POSTFIX(value)||type=="keyword"&&KEYWORDS_BEFORE_EXPRESSION(value)||type=="punc"&&PUNC_BEFORE_EXPRESSION(value);if(type=="punc"&&value=="."){prev_was_dot=true}else if(!is_comment){prev_was_dot=false}var ret={type:type,value:value,line:S.tokline,col:S.tokcol,pos:S.tokpos,endline:S.line,endcol:S.col,endpos:S.pos,nlb:S.newline_before,file:filename};if(/^(?:num|string|regexp)$/i.test(type)){ret.raw=$TEXT.substring(ret.pos,ret.endpos)}if(!is_comment){ret.comments_before=S.comments_before;ret.comments_after=S.comments_before=[]}S.newline_before=false;return new AST_Token(ret)}function skip_whitespace(){while(WHITESPACE_CHARS(peek()))next()}function read_while(pred){var ret="",ch,i=0;while((ch=peek())&&pred(ch,i++))ret+=next();return ret}function parse_error(err){js_error(err,filename,S.tokline,S.tokcol,S.tokpos)}function read_num(prefix){var has_e=false,after_e=false,has_x=false,has_dot=prefix==".";var num=read_while(function(ch,i){var code=ch.charCodeAt(0);switch(code){case 120:case 88:return has_x?false:has_x=true;case 101:case 69:return has_x?true:has_e?false:has_e=after_e=true;case 45:return after_e||i==0&&!prefix;case 43:return after_e;case after_e=false,46:return!has_dot&&!has_x&&!has_e?has_dot=true:false}return is_alphanumeric_char(code)});if(prefix)num=prefix+num;if(RE_OCT_NUMBER.test(num)&&next_token.has_directive("use strict")){parse_error("Legacy octal literals are not allowed in strict mode")}var valid=parse_js_number(num);if(!isNaN(valid)){return token("num",valid)}else{parse_error("Invalid syntax: "+num)}}function read_escaped_char(in_string){var ch=next(true,in_string);switch(ch.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(hex_bytes(2));case 117:return String.fromCharCode(hex_bytes(4));case 10:return"";case 13:if(peek()=="\n"){next(true,in_string);return""}}if(ch>="0"&&ch<="7")return read_octal_escape_sequence(ch);return ch}function read_octal_escape_sequence(ch){var p=peek();if(p>="0"&&p<="7"){ch+=next(true);if(ch[0]<="3"&&(p=peek())>="0"&&p<="7")ch+=next(true)}if(ch==="0")return"\0";if(ch.length>0&&next_token.has_directive("use strict"))parse_error("Legacy octal escape sequences are not allowed in strict mode");return String.fromCharCode(parseInt(ch,8))}function hex_bytes(n){var num=0;for(;n>0;--n){var digit=parseInt(next(true),16);if(isNaN(digit))parse_error("Invalid hex-character pattern in string");num=num<<4|digit}return num}var read_string=with_eof_error("Unterminated string constant",function(quote_char){var quote=next(),ret="";for(;;){var ch=next(true,true);if(ch=="\\")ch=read_escaped_char(true);else if(NEWLINE_CHARS(ch))parse_error("Unterminated string constant");else if(ch==quote)break;ret+=ch}var tok=token("string",ret);tok.quote=quote_char;return tok});function skip_line_comment(type){var regex_allowed=S.regex_allowed;var i=find_eol(),ret;if(i==-1){ret=S.text.substr(S.pos);S.pos=S.text.length}else{ret=S.text.substring(S.pos,i);S.pos=i}S.col=S.tokcol+(S.pos-S.tokpos);S.comments_before.push(token(type,ret,true));S.regex_allowed=regex_allowed;return next_token}var skip_multiline_comment=with_eof_error("Unterminated multiline comment",function(){var regex_allowed=S.regex_allowed;var i=find("*/",true);var text=S.text.substring(S.pos,i).replace(/\r\n|\r|\u2028|\u2029/g,"\n");forward(text.length+2);S.comments_before.push(token("comment2",text,true));S.regex_allowed=regex_allowed;return next_token});function read_name(){var backslash=false,name="",ch,escaped=false,hex;while((ch=peek())!=null){if(!backslash){if(ch=="\\")escaped=backslash=true,next();else if(is_identifier_char(ch))name+=next();else break}else{if(ch!="u")parse_error("Expecting UnicodeEscapeSequence -- uXXXX");ch=read_escaped_char();if(!is_identifier_char(ch))parse_error("Unicode char: "+ch.charCodeAt(0)+" is not valid in identifier");name+=ch;backslash=false}}if(KEYWORDS(name)&&escaped){hex=name.charCodeAt(0).toString(16).toUpperCase();name="\\u"+"0000".substr(hex.length)+hex+name.slice(1)}return name}var read_regexp=with_eof_error("Unterminated regular expression",function(source){var prev_backslash=false,ch,in_class=false;while(ch=next(true))if(NEWLINE_CHARS(ch)){parse_error("Unexpected line terminator")}else if(prev_backslash){source+="\\"+ch;prev_backslash=false}else if(ch=="["){in_class=true;source+=ch}else if(ch=="]"&&in_class){in_class=false;source+=ch}else if(ch=="/"&&!in_class){break}else if(ch=="\\"){prev_backslash=true}else{source+=ch}var mods=read_name();try{var regexp=new RegExp(source,mods);regexp.raw_source=source;return token("regexp",regexp)}catch(e){parse_error(e.message)}});function read_operator(prefix){function grow(op){if(!peek())return op;var bigger=op+peek();if(OPERATORS(bigger)){next();return grow(bigger)}else{return op}}return token("operator",grow(prefix||next()))}function handle_slash(){next();switch(peek()){case"/":next();return skip_line_comment("comment1");case"*":next();return skip_multiline_comment()}return S.regex_allowed?read_regexp(""):read_operator("/")}function handle_dot(){next();return is_digit(peek().charCodeAt(0))?read_num("."):token("punc",".")}function read_word(){var word=read_name();if(prev_was_dot)return token("name",word);return KEYWORDS_ATOM(word)?token("atom",word):!KEYWORDS(word)?token("name",word):OPERATORS(word)?token("operator",word):token("keyword",word)}function with_eof_error(eof_error,cont){return function(x){try{return cont(x)}catch(ex){if(ex===EX_EOF)parse_error(eof_error);else throw ex}}}function next_token(force_regexp){if(force_regexp!=null)return read_regexp(force_regexp);if(shebang&&S.pos==0&&looking_at("#!")){start_token();forward(2);skip_line_comment("comment5")}for(;;){skip_whitespace();start_token();if(html5_comments){if(looking_at("\x3c!--")){forward(4);skip_line_comment("comment3");continue}if(looking_at("--\x3e")&&S.newline_before){forward(3);skip_line_comment("comment4");continue}}var ch=peek();if(!ch)return token("eof");var code=ch.charCodeAt(0);switch(code){case 34:case 39:return read_string(ch);case 46:return handle_dot();case 47:{var tok=handle_slash();if(tok===next_token)continue;return tok}}if(is_digit(code))return read_num();if(PUNC_CHARS(ch))return token("punc",next());if(OPERATOR_CHARS(ch))return read_operator();if(code==92||is_identifier_start(code))return read_word();break}parse_error("Unexpected character '"+ch+"'")}next_token.context=function(nc){if(nc)S=nc;return S};next_token.add_directive=function(directive){S.directive_stack[S.directive_stack.length-1].push(directive);if(S.directives[directive]===undefined){S.directives[directive]=1}else{S.directives[directive]++}};next_token.push_directives_stack=function(){S.directive_stack.push([])};next_token.pop_directives_stack=function(){var directives=S.directive_stack[S.directive_stack.length-1];for(var i=0;i<directives.length;i++){S.directives[directives[i]]--}S.directive_stack.pop()};next_token.has_directive=function(directive){return S.directives[directive]>0};return next_token}var UNARY_PREFIX=makePredicate(["typeof","void","delete","--","++","!","~","-","+"]);var UNARY_POSTFIX=makePredicate(["--","++"]);var ASSIGNMENT=makePredicate(["=","+=","-=","/=","*=","%=",">>=","<<=",">>>=","|=","^=","&="]);var PRECEDENCE=function(a,ret){for(var i=0;i<a.length;++i){var b=a[i];for(var j=0;j<b.length;++j){ret[b[j]]=i+1}}return ret}([["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]],{});var ATOMIC_START_TOKEN=makePredicate(["atom","num","string","regexp","name"]);function parse($TEXT,options){options=defaults(options,{bare_returns:false,expression:false,filename:null,html5_comments:true,shebang:true,strict:false,toplevel:null},true);var S={input:typeof $TEXT=="string"?tokenizer($TEXT,options.filename,options.html5_comments,options.shebang):$TEXT,token:null,prev:null,peeked:null,in_function:0,in_directives:true,in_loop:0,labels:[]};S.token=next();function is(type,value){return is_token(S.token,type,value)}function peek(){return S.peeked||(S.peeked=S.input())}function next(){S.prev=S.token;if(S.peeked){S.token=S.peeked;S.peeked=null}else{S.token=S.input()}S.in_directives=S.in_directives&&(S.token.type=="string"||is("punc",";"));return S.token}function prev(){return S.prev}function croak(msg,line,col,pos){var ctx=S.input.context();js_error(msg,ctx.filename,line!=null?line:ctx.tokline,col!=null?col:ctx.tokcol,pos!=null?pos:ctx.tokpos)}function token_error(token,msg){croak(msg,token.line,token.col)}function unexpected(token){if(token==null)token=S.token;token_error(token,"Unexpected token: "+token.type+" ("+token.value+")")}function expect_token(type,val){if(is(type,val)){return next()}token_error(S.token,"Unexpected token "+S.token.type+" «"+S.token.value+"»"+", expected "+type+" «"+val+"»")}function expect(punc){return expect_token("punc",punc)}function has_newline_before(token){return token.nlb||!all(token.comments_before,function(comment){return!comment.nlb})}function can_insert_semicolon(){return!options.strict&&(is("eof")||is("punc","}")||has_newline_before(S.token))}function semicolon(optional){if(is("punc",";"))next();else if(!optional&&!can_insert_semicolon())unexpected()}function parenthesised(){expect("(");var exp=expression(true);expect(")");return exp}function embed_tokens(parser){return function(){var start=S.token;var expr=parser.apply(null,arguments);var end=prev();expr.start=start;expr.end=end;return expr}}function handle_regexp(){if(is("operator","/")||is("operator","/=")){S.peeked=null;S.token=S.input(S.token.value.substr(1))}}var statement=embed_tokens(function(strict_defun){handle_regexp();switch(S.token.type){case"string":if(S.in_directives){var token=peek();if(S.token.raw.indexOf("\\")==-1&&(is_token(token,"punc",";")||is_token(token,"punc","}")||has_newline_before(token)||is_token(token,"eof"))){S.input.add_directive(S.token.value)}else{S.in_directives=false}}var dir=S.in_directives,stat=simple_statement();return dir?new AST_Directive(stat.body):stat;case"num":case"regexp":case"operator":case"atom":return simple_statement();case"name":return is_token(peek(),"punc",":")?labeled_statement():simple_statement();case"punc":switch(S.token.value){case"{":return new AST_BlockStatement({start:S.token,body:block_(),end:prev()});case"[":case"(":return simple_statement();case";":S.in_directives=false;next();return new AST_EmptyStatement;default:unexpected()}case"keyword":switch(S.token.value){case"break":next();return break_cont(AST_Break);case"continue":next();return break_cont(AST_Continue);case"debugger":next();semicolon();return new AST_Debugger;case"do":next();var body=in_loop(statement);expect_token("keyword","while");var condition=parenthesised();semicolon(true);return new AST_Do({body:body,condition:condition});case"while":next();return new AST_While({condition:parenthesised(),body:in_loop(statement)});case"for":next();return for_();case"function":if(!strict_defun&&S.input.has_directive("use strict")){croak("In strict mode code, functions can only be declared at top level or immediately within another function.")}next();return function_(AST_Defun);case"if":next();return if_();case"return":if(S.in_function==0&&!options.bare_returns)croak("'return' outside of function");next();var value=null;if(is("punc",";")){next()}else if(!can_insert_semicolon()){value=expression(true);semicolon()}return new AST_Return({value:value});case"switch":next();return new AST_Switch({expression:parenthesised(),body:in_loop(switch_body_)});case"throw":next();if(has_newline_before(S.token))croak("Illegal newline after 'throw'");var value=expression(true);semicolon();return new AST_Throw({value:value});case"try":next();return try_();case"var":next();var node=var_();semicolon();return node;case"with":if(S.input.has_directive("use strict")){croak("Strict mode may not include a with statement")}next();return new AST_With({expression:parenthesised(),body:statement()})}}unexpected()});function labeled_statement(){var label=as_symbol(AST_Label);if(find_if(function(l){return l.name==label.name},S.labels)){croak("Label "+label.name+" defined twice")}expect(":");S.labels.push(label);var stat=statement();S.labels.pop();if(!(stat instanceof AST_IterationStatement)){label.references.forEach(function(ref){if(ref instanceof AST_Continue){ref=ref.label.start;croak("Continue label `"+label.name+"` refers to non-IterationStatement.",ref.line,ref.col,ref.pos)}})}return new AST_LabeledStatement({body:stat,label:label})}function simple_statement(tmp){return new AST_SimpleStatement({body:(tmp=expression(true),semicolon(),tmp)})}function break_cont(type){var label=null,ldef;if(!can_insert_semicolon()){label=as_symbol(AST_LabelRef,true)}if(label!=null){ldef=find_if(function(l){return l.name==label.name},S.labels);if(!ldef)croak("Undefined label "+label.name);label.thedef=ldef}else if(S.in_loop==0)croak(type.TYPE+" not inside a loop or switch");semicolon();var stat=new type({label:label});if(ldef)ldef.references.push(stat);return stat}function for_(){expect("(");var init=null;if(!is("punc",";")){init=is("keyword","var")?(next(),var_(true)):expression(true,true);if(is("operator","in")){if(init instanceof AST_Var){if(init.definitions.length>1)croak("Only one variable declaration allowed in for..in loop",init.start.line,init.start.col,init.start.pos)}else if(!is_assignable(init)){croak("Invalid left-hand side in for..in loop",init.start.line,init.start.col,init.start.pos)}next();return for_in(init)}}return regular_for(init)}function regular_for(init){expect(";");var test=is("punc",";")?null:expression(true);expect(";");var step=is("punc",")")?null:expression(true);expect(")");return new AST_For({init:init,condition:test,step:step,body:in_loop(statement)})}function for_in(init){var obj=expression(true);expect(")");return new AST_ForIn({init:init,object:obj,body:in_loop(statement)})}var function_=function(ctor){var in_statement=ctor===AST_Defun;var name=is("name")?as_symbol(in_statement?AST_SymbolDefun:AST_SymbolLambda):null;if(in_statement&&!name)unexpected();if(name&&ctor!==AST_Accessor&&!(name instanceof AST_SymbolDeclaration))unexpected(prev());expect("(");var argnames=[];for(var first=true;!is("punc",")");){if(first)first=false;else expect(",");argnames.push(as_symbol(AST_SymbolFunarg))}next();var loop=S.in_loop;var labels=S.labels;++S.in_function;S.in_directives=true;S.input.push_directives_stack();S.in_loop=0;S.labels=[];var body=block_(true);if(S.input.has_directive("use strict")){if(name)strict_verify_symbol(name);argnames.forEach(strict_verify_symbol)}S.input.pop_directives_stack();--S.in_function;S.in_loop=loop;S.labels=labels;return new ctor({name:name,argnames:argnames,body:body})};function if_(){var cond=parenthesised(),body=statement(),belse=null;if(is("keyword","else")){next();belse=statement()}return new AST_If({condition:cond,body:body,alternative:belse})}function block_(strict_defun){expect("{");var a=[];while(!is("punc","}")){if(is("eof"))unexpected();a.push(statement(strict_defun))}next();return a}function switch_body_(){expect("{");var a=[],cur=null,branch=null,tmp;while(!is("punc","}")){if(is("eof"))unexpected();if(is("keyword","case")){if(branch)branch.end=prev();cur=[];branch=new AST_Case({start:(tmp=S.token,next(),tmp),expression:expression(true),body:cur});a.push(branch);expect(":")}else if(is("keyword","default")){if(branch)branch.end=prev();cur=[];branch=new AST_Default({start:(tmp=S.token,next(),expect(":"),tmp),body:cur});a.push(branch)}else{if(!cur)unexpected();cur.push(statement())}}if(branch)branch.end=prev();next();return a}function try_(){var body=block_(),bcatch=null,bfinally=null;if(is("keyword","catch")){var start=S.token;next();expect("(");var name=as_symbol(AST_SymbolCatch);expect(")");bcatch=new AST_Catch({start:start,argname:name,body:block_(),end:prev()})}if(is("keyword","finally")){var start=S.token;next();bfinally=new AST_Finally({start:start,body:block_(),end:prev()})}if(!bcatch&&!bfinally)croak("Missing catch/finally blocks");return new AST_Try({body:body,bcatch:bcatch,bfinally:bfinally})}function vardefs(no_in){var a=[];for(;;){a.push(new AST_VarDef({start:S.token,name:as_symbol(AST_SymbolVar),value:is("operator","=")?(next(),expression(false,no_in)):null,end:prev()}));if(!is("punc",","))break;next()}return a}var var_=function(no_in){return new AST_Var({start:prev(),definitions:vardefs(no_in),end:prev()})};var new_=function(allow_calls){var start=S.token;expect_token("operator","new");var newexp=expr_atom(false),args;if(is("punc","(")){next();args=expr_list(")")}else{args=[]}var call=new AST_New({start:start,expression:newexp,args:args,end:prev()});mark_pure(call);return subscripts(call,allow_calls)};function as_atom_node(){var tok=S.token,ret;switch(tok.type){case"name":ret=_make_symbol(AST_SymbolRef);break;case"num":ret=new AST_Number({start:tok,end:tok,value:tok.value});break;case"string":ret=new AST_String({start:tok,end:tok,value:tok.value,quote:tok.quote});break;case"regexp":ret=new AST_RegExp({start:tok,end:tok,value:tok.value});break;case"atom":switch(tok.value){case"false":ret=new AST_False({start:tok,end:tok});break;case"true":ret=new AST_True({start:tok,end:tok});break;case"null":ret=new AST_Null({start:tok,end:tok});break}break}next();return ret}var expr_atom=function(allow_calls){if(is("operator","new")){return new_(allow_calls)}var start=S.token;if(is("punc")){switch(start.value){case"(":next();var ex=expression(true);var len=start.comments_before.length;[].unshift.apply(ex.start.comments_before,start.comments_before);start.comments_before=ex.start.comments_before;start.comments_before_length=len;if(len==0&&start.comments_before.length>0){var comment=start.comments_before[0];if(!comment.nlb){comment.nlb=start.nlb;start.nlb=false}}start.comments_after=ex.start.comments_after;ex.start=start;expect(")");var end=prev();end.comments_before=ex.end.comments_before;[].push.apply(ex.end.comments_after,end.comments_after);end.comments_after=ex.end.comments_after;ex.end=end;if(ex instanceof AST_Call)mark_pure(ex);return subscripts(ex,allow_calls);case"[":return subscripts(array_(),allow_calls);case"{":return subscripts(object_(),allow_calls)}unexpected()}if(is("keyword","function")){next();var func=function_(AST_Function);func.start=start;func.end=prev();return subscripts(func,allow_calls)}if(ATOMIC_START_TOKEN(S.token.type)){return subscripts(as_atom_node(),allow_calls)}unexpected()};function expr_list(closing,allow_trailing_comma,allow_empty){var first=true,a=[];while(!is("punc",closing)){if(first)first=false;else expect(",");if(allow_trailing_comma&&is("punc",closing))break;if(is("punc",",")&&allow_empty){a.push(new AST_Hole({start:S.token,end:S.token}))}else{a.push(expression(false))}}next();return a}var array_=embed_tokens(function(){expect("[");return new AST_Array({elements:expr_list("]",!options.strict,true)})});var create_accessor=embed_tokens(function(){return function_(AST_Accessor)});var object_=embed_tokens(function(){expect("{");var first=true,a=[];while(!is("punc","}")){if(first)first=false;else expect(",");if(!options.strict&&is("punc","}"))break;var start=S.token;var type=start.type;var name=as_property_name();if(type=="name"&&!is("punc",":")){var key=new AST_SymbolAccessor({start:S.token,name:""+as_property_name(),end:prev()});if(name=="get"){a.push(new AST_ObjectGetter({start:start,key:key,value:create_accessor(),end:prev()}));continue}if(name=="set"){a.push(new AST_ObjectSetter({start:start,key:key,value:create_accessor(),end:prev()}));continue}}expect(":");a.push(new AST_ObjectKeyVal({start:start,quote:start.quote,key:""+name,value:expression(false),end:prev()}))}next();return new AST_Object({properties:a})});function as_property_name(){var tmp=S.token;switch(tmp.type){case"operator":if(!KEYWORDS(tmp.value))unexpected();case"num":case"string":case"name":case"keyword":case"atom":next();return tmp.value;default:unexpected()}}function as_name(){var tmp=S.token;if(tmp.type!="name")unexpected();next();return tmp.value}function _make_symbol(type){var name=S.token.value;return new(name=="this"?AST_This:type)({name:String(name),start:S.token,end:S.token})}function strict_verify_symbol(sym){if(sym.name=="arguments"||sym.name=="eval")croak("Unexpected "+sym.name+" in strict mode",sym.start.line,sym.start.col,sym.start.pos)}function as_symbol(type,noerror){if(!is("name")){if(!noerror)croak("Name expected");return null}var sym=_make_symbol(type);if(S.input.has_directive("use strict")&&sym instanceof AST_SymbolDeclaration){strict_verify_symbol(sym)}next();return sym}function mark_pure(call){var start=call.start;var comments=start.comments_before;var i=HOP(start,"comments_before_length")?start.comments_before_length:comments.length;while(--i>=0){var comment=comments[i];if(/[@#]__PURE__/.test(comment.value)){call.pure=comment;break}}}var subscripts=function(expr,allow_calls){var start=expr.start;if(is("punc",".")){next();return subscripts(new AST_Dot({start:start,expression:expr,property:as_name(),end:prev()}),allow_calls)}if(is("punc","[")){next();var prop=expression(true);expect("]");return subscripts(new AST_Sub({start:start,expression:expr,property:prop,end:prev()}),allow_calls)}if(allow_calls&&is("punc","(")){next();var call=new AST_Call({start:start,expression:expr,args:expr_list(")"),end:prev()});mark_pure(call);return subscripts(call,true)}return expr};var maybe_unary=function(allow_calls){var start=S.token;if(is("operator")&&UNARY_PREFIX(start.value)){next();handle_regexp();var ex=make_unary(AST_UnaryPrefix,start,maybe_unary(allow_calls));ex.start=start;ex.end=prev();return ex}var val=expr_atom(allow_calls);while(is("operator")&&UNARY_POSTFIX(S.token.value)&&!has_newline_before(S.token)){val=make_unary(AST_UnaryPostfix,S.token,val);val.start=start;val.end=S.token;next()}return val};function make_unary(ctor,token,expr){var op=token.value;switch(op){case"++":case"--":if(!is_assignable(expr))croak("Invalid use of "+op+" operator",token.line,token.col,token.pos);break;case"delete":if(expr instanceof AST_SymbolRef&&S.input.has_directive("use strict"))croak("Calling delete on expression not allowed in strict mode",expr.start.line,expr.start.col,expr.start.pos);break}return new ctor({operator:op,expression:expr})}var expr_op=function(left,min_prec,no_in){var op=is("operator")?S.token.value:null;if(op=="in"&&no_in)op=null;var prec=op!=null?PRECEDENCE[op]:null;if(prec!=null&&prec>min_prec){next();var right=expr_op(maybe_unary(true),prec,no_in);return expr_op(new AST_Binary({start:left.start,left:left,operator:op,right:right,end:right.end}),min_prec,no_in)}return left};function expr_ops(no_in){return expr_op(maybe_unary(true),0,no_in)}var maybe_conditional=function(no_in){var start=S.token;var expr=expr_ops(no_in);if(is("operator","?")){next();var yes=expression(false);expect(":");return new AST_Conditional({start:start,condition:expr,consequent:yes,alternative:expression(false,no_in),end:prev()})}return expr};function is_assignable(expr){return expr instanceof AST_PropAccess||expr instanceof AST_SymbolRef}var maybe_assign=function(no_in){var start=S.token;var left=maybe_conditional(no_in),val=S.token.value;if(is("operator")&&ASSIGNMENT(val)){if(is_assignable(left)){next();return new AST_Assign({start:start,left:left,operator:val,right:maybe_assign(no_in),end:prev()})}croak("Invalid assignment")}return left};var expression=function(commas,no_in){var start=S.token;var exprs=[];while(true){exprs.push(maybe_assign(no_in));if(!commas||!is("punc",","))break;next();commas=true}return exprs.length==1?exprs[0]:new AST_Sequence({start:start,expressions:exprs,end:peek()})};function in_loop(cont){++S.in_loop;var ret=cont();--S.in_loop;return ret}if(options.expression){return expression(true)}return function(){var start=S.token;var body=[];S.input.push_directives_stack();while(!is("eof"))body.push(statement(true));S.input.pop_directives_stack();var end=prev();var toplevel=options.toplevel;if(toplevel){toplevel.body=toplevel.body.concat(body);toplevel.end=end}else{toplevel=new AST_Toplevel({start:start,body:body,end:end})}return toplevel}()}"use strict";function TreeTransformer(before,after){TreeWalker.call(this);this.before=before;this.after=after}TreeTransformer.prototype=new TreeWalker;(function(undefined){function _(node,descend){node.DEFMETHOD("transform",function(tw,in_list){var x,y;tw.push(this);if(tw.before)x=tw.before(this,descend,in_list);if(x===undefined){x=this;descend(x,tw);if(tw.after){y=tw.after(x,in_list);if(y!==undefined)x=y}}tw.pop();return x})}function do_list(list,tw){return MAP(list,function(node){return node.transform(tw,true)})}_(AST_Node,noop);_(AST_LabeledStatement,function(self,tw){self.label=self.label.transform(tw);self.body=self.body.transform(tw)});_(AST_SimpleStatement,function(self,tw){self.body=self.body.transform(tw)});_(AST_Block,function(self,tw){self.body=do_list(self.body,tw)});_(AST_DWLoop,function(self,tw){self.condition=self.condition.transform(tw);self.body=self.body.transform(tw)});_(AST_For,function(self,tw){if(self.init)self.init=self.init.transform(tw);if(self.condition)self.condition=self.condition.transform(tw);if(self.step)self.step=self.step.transform(tw);self.body=self.body.transform(tw)});_(AST_ForIn,function(self,tw){self.init=self.init.transform(tw);self.object=self.object.transform(tw);self.body=self.body.transform(tw)});_(AST_With,function(self,tw){self.expression=self.expression.transform(tw);self.body=self.body.transform(tw)});_(AST_Exit,function(self,tw){if(self.value)self.value=self.value.transform(tw)});_(AST_LoopControl,function(self,tw){if(self.label)self.label=self.label.transform(tw)});_(AST_If,function(self,tw){self.condition=self.condition.transform(tw);self.body=self.body.transform(tw);if(self.alternative)self.alternative=self.alternative.transform(tw)});_(AST_Switch,function(self,tw){self.expression=self.expression.transform(tw);self.body=do_list(self.body,tw)});_(AST_Case,function(self,tw){self.expression=self.expression.transform(tw);self.body=do_list(self.body,tw)});_(AST_Try,function(self,tw){self.body=do_list(self.body,tw);if(self.bcatch)self.bcatch=self.bcatch.transform(tw);if(self.bfinally)self.bfinally=self.bfinally.transform(tw)});_(AST_Catch,function(self,tw){self.argname=self.argname.transform(tw);self.body=do_list(self.body,tw)});_(AST_Definitions,function(self,tw){self.definitions=do_list(self.definitions,tw)});_(AST_VarDef,function(self,tw){self.name=self.name.transform(tw);if(self.value)self.value=self.value.transform(tw)});_(AST_Lambda,function(self,tw){if(self.name)self.name=self.name.transform(tw);self.argnames=do_list(self.argnames,tw);self.body=do_list(self.body,tw)});_(AST_Call,function(self,tw){self.expression=self.expression.transform(tw);self.args=do_list(self.args,tw)});_(AST_Sequence,function(self,tw){self.expressions=do_list(self.expressions,tw)});_(AST_Dot,function(self,tw){self.expression=self.expression.transform(tw)});_(AST_Sub,function(self,tw){self.expression=self.expression.transform(tw);self.property=self.property.transform(tw)});_(AST_Unary,function(self,tw){self.expression=self.expression.transform(tw)});_(AST_Binary,function(self,tw){self.left=self.left.transform(tw);self.right=self.right.transform(tw)});_(AST_Conditional,function(self,tw){self.condition=self.condition.transform(tw);self.consequent=self.consequent.transform(tw);self.alternative=self.alternative.transform(tw)});_(AST_Array,function(self,tw){self.elements=do_list(self.elements,tw)});_(AST_Object,function(self,tw){self.properties=do_list(self.properties,tw)});_(AST_ObjectProperty,function(self,tw){self.value=self.value.transform(tw)})})();"use strict";function SymbolDef(scope,orig,init){this.name=orig.name;this.orig=[orig];this.init=init;this.eliminated=0;this.scope=scope;this.references=[];this.replaced=0;this.global=false;this.mangled_name=null;this.undeclared=false;this.id=SymbolDef.next_id++}SymbolDef.next_id=1;SymbolDef.prototype={unmangleable:function(options){if(!options)options={};return this.global&&!options.toplevel||this.undeclared||!options.eval&&(this.scope.uses_eval||this.scope.uses_with)||options.keep_fnames&&(this.orig[0]instanceof AST_SymbolLambda||this.orig[0]instanceof AST_SymbolDefun)},mangle:function(options){var cache=options.cache&&options.cache.props;if(this.global&&cache&&cache.has(this.name)){this.mangled_name=cache.get(this.name)}else if(!this.mangled_name&&!this.unmangleable(options)){var def;if(def=this.redefined()){this.mangled_name=def.mangled_name||def.name}else{this.mangled_name=next_mangled_name(this.scope,options,this)}if(this.global&&cache){cache.set(this.name,this.mangled_name)}}},redefined:function(){return this.defun&&this.defun.variables.get(this.name)}};AST_Toplevel.DEFMETHOD("figure_out_scope",function(options){options=defaults(options,{cache:null,ie8:false});var self=this;var scope=self.parent_scope=null;var labels=new Dictionary;var defun=null;var tw=new TreeWalker(function(node,descend){if(node instanceof AST_Catch){var save_scope=scope;scope=new AST_Scope(node);scope.init_scope_vars(save_scope);descend();scope=save_scope;return true}if(node instanceof AST_Scope){node.init_scope_vars(scope);var save_scope=scope;var save_defun=defun;var save_labels=labels;defun=scope=node;labels=new Dictionary;descend();scope=save_scope;defun=save_defun;labels=save_labels;return true}if(node instanceof AST_LabeledStatement){var l=node.label;if(labels.has(l.name)){throw new Error(string_template("Label {name} defined twice",l))}labels.set(l.name,l);descend();labels.del(l.name);return true}if(node instanceof AST_With){for(var s=scope;s;s=s.parent_scope)s.uses_with=true;return}if(node instanceof AST_Symbol){node.scope=scope}if(node instanceof AST_Label){node.thedef=node;node.references=[]}if(node instanceof AST_SymbolLambda){defun.def_function(node,node.name=="arguments"?undefined:defun)}else if(node instanceof AST_SymbolDefun){(node.scope=defun.parent_scope).def_function(node,defun)}else if(node instanceof AST_SymbolVar){defun.def_variable(node,node.TYPE=="SymbolVar"?null:undefined);if(defun!==scope){node.mark_enclosed(options);var def=scope.find_variable(node);if(node.thedef!==def){node.thedef=def}node.reference(options)}}else if(node instanceof AST_SymbolCatch){scope.def_variable(node).defun=defun}else if(node instanceof AST_LabelRef){var sym=labels.get(node.name);if(!sym)throw new Error(string_template("Undefined label {name} [{line},{col}]",{name:node.name,line:node.start.line,col:node.start.col}));node.thedef=sym}});self.walk(tw);self.globals=new Dictionary;var tw=new TreeWalker(function(node,descend){if(node instanceof AST_LoopControl&&node.label){node.label.thedef.references.push(node);return true}if(node instanceof AST_SymbolRef){var name=node.name;if(name=="eval"&&tw.parent()instanceof AST_Call){for(var s=node.scope;s&&!s.uses_eval;s=s.parent_scope){s.uses_eval=true}}var sym=node.scope.find_variable(name);if(!sym){sym=self.def_global(node)}else if(sym.scope instanceof AST_Lambda&&name=="arguments"){sym.scope.uses_arguments=true}node.thedef=sym;node.reference(options);return true}var def;if(node instanceof AST_SymbolCatch&&(def=node.definition().redefined())){var s=node.scope;while(s){push_uniq(s.enclosed,def);if(s===def.scope)break;s=s.parent_scope}}});self.walk(tw);if(options.ie8){self.walk(new TreeWalker(function(node,descend){if(node instanceof AST_SymbolCatch){var name=node.name;var refs=node.thedef.references;var scope=node.thedef.defun;var def=scope.find_variable(name)||self.globals.get(name)||scope.def_variable(node);refs.forEach(function(ref){ref.thedef=def;ref.reference(options)});node.thedef=def;node.reference(options);return true}}))}});AST_Toplevel.DEFMETHOD("def_global",function(node){var globals=this.globals,name=node.name;if(globals.has(name)){return globals.get(name)}else{var g=new SymbolDef(this,node);g.undeclared=true;g.global=true;globals.set(name,g);return g}});AST_Scope.DEFMETHOD("init_scope_vars",function(parent_scope){this.variables=new Dictionary;this.functions=new Dictionary;this.uses_with=false;this.uses_eval=false;this.parent_scope=parent_scope;this.enclosed=[];this.cname=-1});AST_Lambda.DEFMETHOD("init_scope_vars",function(){AST_Scope.prototype.init_scope_vars.apply(this,arguments);this.uses_arguments=false;this.def_variable(new AST_SymbolFunarg({name:"arguments",start:this.start,end:this.end}))});AST_Symbol.DEFMETHOD("mark_enclosed",function(options){var def=this.definition();var s=this.scope;while(s){push_uniq(s.enclosed,def);if(options.keep_fnames){s.functions.each(function(d){push_uniq(def.scope.enclosed,d)})}if(s===def.scope)break;s=s.parent_scope}});AST_Symbol.DEFMETHOD("reference",function(options){this.definition().references.push(this);this.mark_enclosed(options)});AST_Scope.DEFMETHOD("find_variable",function(name){if(name instanceof AST_Symbol)name=name.name;return this.variables.get(name)||this.parent_scope&&this.parent_scope.find_variable(name)});AST_Scope.DEFMETHOD("def_function",function(symbol,init){var def=this.def_variable(symbol,init);if(!def.init||def.init instanceof AST_Defun)def.init=init;this.functions.set(symbol.name,def);return def});AST_Scope.DEFMETHOD("def_variable",function(symbol,init){var def=this.variables.get(symbol.name);if(def){def.orig.push(symbol);if(def.init&&(def.scope!==symbol.scope||def.init instanceof AST_Function)){def.init=init}}else{def=new SymbolDef(this,symbol,init);this.variables.set(symbol.name,def);def.global=!this.parent_scope}return symbol.thedef=def});function names_in_use(scope,options){var names=scope.names_in_use;if(!names){scope.names_in_use=names=Object.create(scope.mangled_names||null);scope.cname_holes=[];scope.enclosed.forEach(function(def){if(def.unmangleable(options))names[def.name]=true})}return names}function next_mangled_name(scope,options,def){var in_use=names_in_use(scope,options);var holes=scope.cname_holes;var names=Object.create(null);if(scope instanceof AST_Function&&scope.name&&def.orig[0]instanceof AST_SymbolFunarg){var tricky_def=scope.name.definition();names[tricky_def.mangled_name||tricky_def.name]=true}var scopes=[scope];def.references.forEach(function(sym){var scope=sym.scope;do{if(scopes.indexOf(scope)<0){for(var name in names_in_use(scope,options)){names[name]=true}scopes.push(scope)}else break}while(scope=scope.parent_scope)});var name;for(var i=0,len=holes.length;i<len;i++){name=base54(holes[i]);if(names[name])continue;holes.splice(i,1);scope.names_in_use[name]=true;return name}while(true){name=base54(++scope.cname);if(in_use[name]||!is_identifier(name)||member(name,options.reserved))continue;if(!names[name])break;holes.push(scope.cname)}scope.names_in_use[name]=true;if(options.ie8&&def.orig[0]instanceof AST_SymbolLambda){names_in_use(scope.parent_scope,options)[name]=true}return name}AST_Symbol.DEFMETHOD("unmangleable",function(options){var def=this.definition();return!def||def.unmangleable(options)});AST_Label.DEFMETHOD("unmangleable",return_false);AST_Symbol.DEFMETHOD("unreferenced",function(){return this.definition().references.length==0&&!(this.scope.uses_eval||this.scope.uses_with)});AST_Symbol.DEFMETHOD("definition",function(){return this.thedef});AST_Symbol.DEFMETHOD("global",function(){return this.definition().global});function _default_mangler_options(options){options=defaults(options,{eval:false,ie8:false,keep_fnames:false,reserved:[],toplevel:false});if(!Array.isArray(options.reserved))options.reserved=[];push_uniq(options.reserved,"arguments");return options}AST_Toplevel.DEFMETHOD("mangle_names",function(options){options=_default_mangler_options(options);var lname=-1;if(options.cache&&options.cache.props){var mangled_names=this.mangled_names=Object.create(null);options.cache.props.each(function(mangled_name){mangled_names[mangled_name]=true})}var redefined=[];var tw=new TreeWalker(function(node,descend){if(node instanceof AST_LabeledStatement){var save_nesting=lname;descend();lname=save_nesting;return true}if(node instanceof AST_Scope){descend();if(options.cache&&node instanceof AST_Toplevel){node.globals.each(mangle)}node.variables.each(mangle);return true}if(node instanceof AST_Label){var name;do{name=base54(++lname)}while(!is_identifier(name));node.mangled_name=name;return true}if(!options.ie8&&node instanceof AST_Catch){var def=node.argname.definition();var redef=def.redefined();if(redef){redefined.push(def);def.references.forEach(function(ref){ref.thedef=redef;ref.reference(options);ref.thedef=def})}descend();if(!redef)mangle(def);return true}});this.walk(tw);redefined.forEach(mangle);function mangle(def){if(!member(def.name,options.reserved)){def.mangle(options)}}});AST_Toplevel.DEFMETHOD("find_colliding_names",function(options){var cache=options.cache&&options.cache.props;var avoid=Object.create(null);options.reserved.forEach(to_avoid);this.globals.each(add_def);this.walk(new TreeWalker(function(node){if(node instanceof AST_Scope)node.variables.each(add_def);if(node instanceof AST_SymbolCatch)add_def(node.definition())}));return avoid;function to_avoid(name){avoid[name]=true}function add_def(def){var name=def.name;if(def.global&&cache&&cache.has(name))name=cache.get(name);else if(!def.unmangleable(options))return;to_avoid(name)}});AST_Toplevel.DEFMETHOD("expand_names",function(options){base54.reset();base54.sort();options=_default_mangler_options(options);var avoid=this.find_colliding_names(options);var cname=0;this.globals.each(rename);this.walk(new TreeWalker(function(node){if(node instanceof AST_Scope)node.variables.each(rename);if(node instanceof AST_SymbolCatch)rename(node.definition())}));function next_name(){var name;do{name=base54(cname++)}while(avoid[name]||!is_identifier(name));return name}function rename(def){if(def.global&&options.cache)return;if(def.unmangleable(options))return;if(member(def.name,options.reserved))return;var d=def.redefined();def.name=d?d.name:next_name();def.orig.forEach(function(sym){sym.name=def.name});def.references.forEach(function(sym){sym.name=def.name})}});AST_Node.DEFMETHOD("tail_node",return_this);AST_Sequence.DEFMETHOD("tail_node",function(){return this.expressions[this.expressions.length-1]});AST_Toplevel.DEFMETHOD("compute_char_frequency",function(options){options=_default_mangler_options(options);base54.reset();try{AST_Node.prototype.print=function(stream,force_parens){this._print(stream,force_parens);if(this instanceof AST_Symbol&&!this.unmangleable(options)){base54.consider(this.name,-1)}else if(options.properties){if(this instanceof AST_Dot){base54.consider(this.property,-1)}else if(this instanceof AST_Sub){skip_string(this.property)}}};base54.consider(this.print_to_string(),1)}finally{AST_Node.prototype.print=AST_Node.prototype._print}base54.sort();function skip_string(node){if(node instanceof AST_String){base54.consider(node.value,-1)}else if(node instanceof AST_Conditional){skip_string(node.consequent);skip_string(node.alternative)}else if(node instanceof AST_Sequence){skip_string(node.tail_node())}}});var base54=function(){var leading="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_".split("");var digits="0123456789".split("");var chars,frequency;function reset(){frequency=Object.create(null);leading.forEach(function(ch){frequency[ch]=0});digits.forEach(function(ch){frequency[ch]=0})}base54.consider=function(str,delta){for(var i=str.length;--i>=0;){frequency[str[i]]+=delta}};function compare(a,b){return frequency[b]-frequency[a]}base54.sort=function(){chars=mergeSort(leading,compare).concat(mergeSort(digits,compare))};base54.reset=reset;reset();function base54(num){var ret="",base=54;num++;do{num--;ret+=chars[num%base];num=Math.floor(num/base);base=64}while(num>0);return ret}return base54}();"use strict";var EXPECT_DIRECTIVE=/^$|[;{][\s\n]*$/;function is_some_comments(comment){return comment.type=="comment2"&&/@preserve|@license|@cc_on/i.test(comment.value)}function OutputStream(options){var readonly=!options;options=defaults(options,{ascii_only:false,beautify:false,bracketize:false,comments:false,ie8:false,indent_level:4,indent_start:0,inline_script:true,keep_quoted_props:false,max_line_len:false,preamble:null,preserve_line:false,quote_keys:false,quote_style:0,semicolons:true,shebang:true,source_map:null,webkit:false,width:80,wrap_iife:false},true);var comment_filter=return_false;if(options.comments){var comments=options.comments;if(typeof options.comments==="string"&&/^\/.*\/[a-zA-Z]*$/.test(options.comments)){var regex_pos=options.comments.lastIndexOf("/");comments=new RegExp(options.comments.substr(1,regex_pos-1),options.comments.substr(regex_pos+1))}if(comments instanceof RegExp){comment_filter=function(comment){return comment.type!="comment5"&&comments.test(comment.value)}}else if(typeof comments==="function"){comment_filter=function(comment){return comment.type!="comment5"&&comments(this,comment)}}else if(comments==="some"){comment_filter=is_some_comments}else{comment_filter=return_true}}var indentation=0;var current_col=0;var current_line=1;var current_pos=0;var OUTPUT="";var to_utf8=options.ascii_only?function(str,identifier){return str.replace(/[\u0000-\u001f\u007f-\uffff]/g,function(ch){var code=ch.charCodeAt(0).toString(16);if(code.length<=2&&!identifier){while(code.length<2)code="0"+code;return"\\x"+code}else{while(code.length<4)code="0"+code;return"\\u"+code}})}:function(str){var s="";for(var i=0,len=str.length;i<len;i++){if(is_surrogate_pair_head(str[i])&&!is_surrogate_pair_tail(str[i+1])||is_surrogate_pair_tail(str[i])&&!is_surrogate_pair_head(str[i-1])){s+="\\u"+str.charCodeAt(i).toString(16)}else{s+=str[i]}}return s};function make_string(str,quote){var dq=0,sq=0;str=str.replace(/[\\\b\f\n\r\v\t\x22\x27\u2028\u2029\0\ufeff]/g,function(s,i){switch(s){case'"':++dq;return'"';case"'":++sq;return"'";case"\\":return"\\\\";case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\v":return options.ie8?"\\x0B":"\\v";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";case"\ufeff":return"\\ufeff";case"\0":return/[0-9]/.test(str.charAt(i+1))?"\\x00":"\\0"}return s});function quote_single(){return"'"+str.replace(/\x27/g,"\\'")+"'"}function quote_double(){return'"'+str.replace(/\x22/g,'\\"')+'"'}str=to_utf8(str);switch(options.quote_style){case 1:return quote_single();case 2:return quote_double();case 3:return quote=="'"?quote_single():quote_double();default:return dq>sq?quote_single():quote_double()}}function encode_string(str,quote){var ret=make_string(str,quote);if(options.inline_script){ret=ret.replace(/<\x2f(script)([>\/\t\n\f\r ])/gi,"<\\/$1$2");ret=ret.replace(/\x3c!--/g,"\\x3c!--");ret=ret.replace(/--\x3e/g,"--\\x3e")}return ret}function make_name(name){name=name.toString();name=to_utf8(name,true);return name}function make_indent(back){return repeat_string(" ",options.indent_start+indentation-back*options.indent_level)}var might_need_space=false;var might_need_semicolon=false;var might_add_newline=0;var need_newline_indented=false;var need_space=false;var newline_insert=-1;var last="";var mapping_token,mapping_name,mappings=options.source_map&&[];var do_add_mapping=mappings?function(){mappings.forEach(function(mapping){try{options.source_map.add(mapping.token.file,mapping.line,mapping.col,mapping.token.line,mapping.token.col,!mapping.name&&mapping.token.type=="name"?mapping.token.value:mapping.name)}catch(ex){AST_Node.warn("Couldn't figure out mapping for {file}:{line},{col} → {cline},{ccol} [{name}]",{file:mapping.token.file,line:mapping.token.line,col:mapping.token.col,cline:mapping.line,ccol:mapping.col,name:mapping.name||""})}});mappings=[]}:noop;var ensure_line_len=options.max_line_len?function(){if(current_col>options.max_line_len){if(might_add_newline){var left=OUTPUT.slice(0,might_add_newline);var right=OUTPUT.slice(might_add_newline);if(mappings){var delta=right.length-current_col;mappings.forEach(function(mapping){mapping.line++;mapping.col+=delta})}OUTPUT=left+"\n"+right;current_line++;current_pos++;current_col=right.length}if(current_col>options.max_line_len){AST_Node.warn("Output exceeds {max_line_len} characters",options)}}if(might_add_newline){might_add_newline=0;do_add_mapping()}}:noop;var requireSemicolonChars=makePredicate("( [ + * / - , .");function print(str){str=String(str);var ch=str.charAt(0);if(need_newline_indented&&ch){need_newline_indented=false;if(ch!="\n"){print("\n");indent()}}if(need_space&&ch){need_space=false;if(!/[\s;})]/.test(ch)){space()}}newline_insert=-1;var prev=last.charAt(last.length-1);if(might_need_semicolon){might_need_semicolon=false;if(prev==":"&&ch=="}"||(!ch||";}".indexOf(ch)<0)&&prev!=";"){if(options.semicolons||requireSemicolonChars(ch)){OUTPUT+=";";current_col++;current_pos++}else{ensure_line_len();OUTPUT+="\n";current_pos++;current_line++;current_col=0;if(/^\s+$/.test(str)){might_need_semicolon=true}}if(!options.beautify)might_need_space=false}}if(!options.beautify&&options.preserve_line&&stack[stack.length-1]){var target_line=stack[stack.length-1].start.line;while(current_line<target_line){ensure_line_len();OUTPUT+="\n";current_pos++;current_line++;current_col=0;might_need_space=false}}if(might_need_space){if(is_identifier_char(prev)&&(is_identifier_char(ch)||ch=="\\")||ch=="/"&&ch==prev||(ch=="+"||ch=="-")&&ch==last){OUTPUT+=" ";current_col++;current_pos++}might_need_space=false}if(mapping_token){mappings.push({token:mapping_token,name:mapping_name,line:current_line,col:current_col});mapping_token=false;if(!might_add_newline)do_add_mapping()}OUTPUT+=str;current_pos+=str.length;var a=str.split(/\r?\n/),n=a.length-1;current_line+=n;current_col+=a[0].length;if(n>0){ensure_line_len();current_col=a[n].length}last=str}var space=options.beautify?function(){print(" ")}:function(){might_need_space=true};var indent=options.beautify?function(half){if(options.beautify){print(make_indent(half?.5:0))}}:noop;var with_indent=options.beautify?function(col,cont){if(col===true)col=next_indent();var save_indentation=indentation;indentation=col;var ret=cont();indentation=save_indentation;return ret}:function(col,cont){return cont()};var newline=options.beautify?function(){if(newline_insert<0)return print("\n");if(OUTPUT[newline_insert]!="\n"){OUTPUT=OUTPUT.slice(0,newline_insert)+"\n"+OUTPUT.slice(newline_insert);current_pos++;current_line++}newline_insert++}:options.max_line_len?function(){ensure_line_len();might_add_newline=OUTPUT.length}:noop;var semicolon=options.beautify?function(){print(";")}:function(){might_need_semicolon=true};function force_semicolon(){might_need_semicolon=false;print(";")}function next_indent(){return indentation+options.indent_level}function with_block(cont){var ret;print("{");newline();with_indent(next_indent(),function(){ret=cont()});indent();print("}");return ret}function with_parens(cont){print("(");var ret=cont();print(")");return ret}function with_square(cont){print("[");var ret=cont();print("]");return ret}function comma(){print(",");space()}function colon(){print(":");space()}var add_mapping=mappings?function(token,name){mapping_token=token;mapping_name=name}:noop;function get(){if(might_add_newline){ensure_line_len()}return OUTPUT}function has_nlb(){var index=OUTPUT.lastIndexOf("\n");return/^ *$/.test(OUTPUT.slice(index+1))}function prepend_comments(node){var self=this;var start=node.start;if(!start)return;if(start.comments_before&&start.comments_before._dumped===self)return;var comments=start.comments_before;if(!comments){comments=start.comments_before=[]}comments._dumped=self;if(node instanceof AST_Exit&&node.value){var tw=new TreeWalker(function(node){var parent=tw.parent();if(parent instanceof AST_Exit||parent instanceof AST_Binary&&parent.left===node||parent.TYPE=="Call"&&parent.expression===node||parent instanceof AST_Conditional&&parent.condition===node||parent instanceof AST_Dot&&parent.expression===node||parent instanceof AST_Sequence&&parent.expressions[0]===node||parent instanceof AST_Sub&&parent.expression===node||parent instanceof AST_UnaryPostfix){var text=node.start.comments_before;if(text&&text._dumped!==self){text._dumped=self;comments=comments.concat(text)}}else{return true}});tw.push(node);node.value.walk(tw)}if(current_pos==0){if(comments.length>0&&options.shebang&&comments[0].type=="comment5"){print("#!"+comments.shift().value+"\n");indent()}var preamble=options.preamble;if(preamble){print(preamble.replace(/\r\n?|[\n\u2028\u2029]|\s*$/g,"\n"))}}comments=comments.filter(comment_filter,node);if(comments.length==0)return;var last_nlb=has_nlb();comments.forEach(function(c,i){if(!last_nlb){if(c.nlb){print("\n");indent();last_nlb=true}else if(i>0){space()}}if(/comment[134]/.test(c.type)){print("//"+c.value.replace(/[@#]__PURE__/g," ")+"\n");indent();last_nlb=true}else if(c.type=="comment2"){print("/*"+c.value.replace(/[@#]__PURE__/g," ")+"*/");last_nlb=false}});if(!last_nlb){if(start.nlb){print("\n");indent()}else{space()}}}function append_comments(node,tail){var self=this;var token=node.end;if(!token)return;var comments=token[tail?"comments_before":"comments_after"];if(!comments||comments._dumped===self)return;if(!(node instanceof AST_Statement||all(comments,function(c){return!/comment[134]/.test(c.type)})))return;comments._dumped=self;var insert=OUTPUT.length;comments.filter(comment_filter,node).forEach(function(c,i){need_space=false;if(need_newline_indented){print("\n");indent();need_newline_indented=false}else if(c.nlb&&(i>0||!has_nlb())){print("\n");indent()}else if(i>0||!tail){space()}if(/comment[134]/.test(c.type)){print("//"+c.value.replace(/[@#]__PURE__/g," "));need_newline_indented=true}else if(c.type=="comment2"){print("/*"+c.value.replace(/[@#]__PURE__/g," ")+"*/");need_space=true}});if(OUTPUT.length>insert)newline_insert=insert}var stack=[];return{get:get,toString:get,indent:indent,indentation:function(){return indentation},current_width:function(){return current_col-indentation},should_break:function(){return options.width&&this.current_width()>=options.width},has_parens:function(){return OUTPUT.slice(-1)=="("},newline:newline,print:print,space:space,comma:comma,colon:colon,last:function(){return last},semicolon:semicolon,force_semicolon:force_semicolon,to_utf8:to_utf8,print_name:function(name){print(make_name(name))},print_string:function(str,quote,escape_directive){var encoded=encode_string(str,quote);if(escape_directive===true&&encoded.indexOf("\\")===-1){if(!EXPECT_DIRECTIVE.test(OUTPUT)){force_semicolon()}force_semicolon()}print(encoded)},encode_string:encode_string,next_indent:next_indent,with_indent:with_indent,with_block:with_block,with_parens:with_parens,with_square:with_square,add_mapping:add_mapping,option:function(opt){return options[opt]},prepend_comments:readonly?noop:prepend_comments,append_comments:readonly||comment_filter===return_false?noop:append_comments,line:function(){return current_line},col:function(){return current_col},pos:function(){return current_pos},push_node:function(node){stack.push(node)},pop_node:function(){return stack.pop()},parent:function(n){return stack[stack.length-2-(n||0)]}}}(function(){function DEFPRINT(nodetype,generator){nodetype.DEFMETHOD("_codegen",generator)}var in_directive=false;var active_scope=null;var use_asm=null;AST_Node.DEFMETHOD("print",function(stream,force_parens){var self=this,generator=self._codegen;if(self instanceof AST_Scope){active_scope=self}else if(!use_asm&&self instanceof AST_Directive&&self.value=="use asm"){use_asm=active_scope}function doit(){stream.prepend_comments(self);self.add_source_map(stream);generator(self,stream);stream.append_comments(self)}stream.push_node(self);if(force_parens||self.needs_parens(stream)){stream.with_parens(doit)}else{doit()}stream.pop_node();if(self===use_asm){use_asm=null}});AST_Node.DEFMETHOD("_print",AST_Node.prototype.print);AST_Node.DEFMETHOD("print_to_string",function(options){var s=OutputStream(options);this.print(s);return s.get()});function PARENS(nodetype,func){if(Array.isArray(nodetype)){nodetype.forEach(function(nodetype){PARENS(nodetype,func)})}else{nodetype.DEFMETHOD("needs_parens",func)}}PARENS(AST_Node,return_false);PARENS(AST_Function,function(output){if(!output.has_parens()&&first_in_statement(output)){return true}if(output.option("webkit")){var p=output.parent();if(p instanceof AST_PropAccess&&p.expression===this){return true}}if(output.option("wrap_iife")){var p=output.parent();return p instanceof AST_Call&&p.expression===this}return false});PARENS(AST_Object,function(output){return!output.has_parens()&&first_in_statement(output)});PARENS(AST_Unary,function(output){var p=output.parent();return p instanceof AST_PropAccess&&p.expression===this||p instanceof AST_Call&&p.expression===this});PARENS(AST_Sequence,function(output){var p=output.parent();return p instanceof AST_Call||p instanceof AST_Unary||p instanceof AST_Binary||p instanceof AST_VarDef||p instanceof AST_PropAccess||p instanceof AST_Array||p instanceof AST_ObjectProperty||p instanceof AST_Conditional});PARENS(AST_Binary,function(output){var p=output.parent();if(p instanceof AST_Call&&p.expression===this)return true;if(p instanceof AST_Unary)return true;if(p instanceof AST_PropAccess&&p.expression===this)return true;if(p instanceof AST_Binary){var po=p.operator,pp=PRECEDENCE[po];var so=this.operator,sp=PRECEDENCE[so];if(pp>sp||pp==sp&&this===p.right){return true}}});PARENS(AST_PropAccess,function(output){var p=output.parent();if(p instanceof AST_New&&p.expression===this){var parens=false;this.walk(new TreeWalker(function(node){if(parens||node instanceof AST_Scope)return true;if(node instanceof AST_Call){parens=true;return true}}));return parens}});PARENS(AST_Call,function(output){var p=output.parent(),p1;if(p instanceof AST_New&&p.expression===this)return true;return this.expression instanceof AST_Function&&p instanceof AST_PropAccess&&p.expression===this&&(p1=output.parent(1))instanceof AST_Assign&&p1.left===p});PARENS(AST_New,function(output){var p=output.parent();if(!need_constructor_parens(this,output)&&(p instanceof AST_PropAccess||p instanceof AST_Call&&p.expression===this))return true});PARENS(AST_Number,function(output){var p=output.parent();if(p instanceof AST_PropAccess&&p.expression===this){var value=this.getValue();if(value<0||/^0/.test(make_num(value))){return true}}});PARENS([AST_Assign,AST_Conditional],function(output){var p=output.parent();if(p instanceof AST_Unary)return true;if(p instanceof AST_Binary&&!(p instanceof AST_Assign))return true;if(p instanceof AST_Call&&p.expression===this)return true;if(p instanceof AST_Conditional&&p.condition===this)return true;if(p instanceof AST_PropAccess&&p.expression===this)return true});DEFPRINT(AST_Directive,function(self,output){output.print_string(self.value,self.quote);output.semicolon()});DEFPRINT(AST_Debugger,function(self,output){output.print("debugger");output.semicolon()});function display_body(body,is_toplevel,output,allow_directives){var last=body.length-1;in_directive=allow_directives;body.forEach(function(stmt,i){if(in_directive===true&&!(stmt instanceof AST_Directive||stmt instanceof AST_EmptyStatement||stmt instanceof AST_SimpleStatement&&stmt.body instanceof AST_String)){in_directive=false}if(!(stmt instanceof AST_EmptyStatement)){output.indent();stmt.print(output);if(!(i==last&&is_toplevel)){output.newline();if(is_toplevel)output.newline()}}if(in_directive===true&&stmt instanceof AST_SimpleStatement&&stmt.body instanceof AST_String){in_directive=false}});in_directive=false}AST_StatementWithBody.DEFMETHOD("_do_print_body",function(output){force_statement(this.body,output)});DEFPRINT(AST_Statement,function(self,output){self.body.print(output);output.semicolon()});DEFPRINT(AST_Toplevel,function(self,output){display_body(self.body,true,output,true);output.print("")});DEFPRINT(AST_LabeledStatement,function(self,output){self.label.print(output);output.colon();self.body.print(output)});DEFPRINT(AST_SimpleStatement,function(self,output){self.body.print(output);output.semicolon()});function print_bracketed_empty(self,output){output.print("{");output.with_indent(output.next_indent(),function(){output.append_comments(self,true)});output.print("}")}function print_bracketed(self,output,allow_directives){if(self.body.length>0){output.with_block(function(){display_body(self.body,false,output,allow_directives)})}else print_bracketed_empty(self,output)}DEFPRINT(AST_BlockStatement,function(self,output){print_bracketed(self,output)});DEFPRINT(AST_EmptyStatement,function(self,output){output.semicolon()});DEFPRINT(AST_Do,function(self,output){output.print("do");output.space();make_block(self.body,output);output.space();output.print("while");output.space();output.with_parens(function(){self.condition.print(output)});output.semicolon()});DEFPRINT(AST_While,function(self,output){output.print("while");output.space();output.with_parens(function(){self.condition.print(output)});output.space();self._do_print_body(output)});DEFPRINT(AST_For,function(self,output){output.print("for");output.space();output.with_parens(function(){if(self.init){if(self.init instanceof AST_Definitions){self.init.print(output)}else{parenthesize_for_noin(self.init,output,true)}output.print(";");output.space()}else{output.print(";")}if(self.condition){self.condition.print(output);output.print(";");output.space()}else{output.print(";")}if(self.step){self.step.print(output)}});output.space();self._do_print_body(output)});DEFPRINT(AST_ForIn,function(self,output){output.print("for");output.space();output.with_parens(function(){self.init.print(output);output.space();output.print("in");output.space();self.object.print(output)});output.space();self._do_print_body(output)});DEFPRINT(AST_With,function(self,output){output.print("with");output.space();output.with_parens(function(){self.expression.print(output)});output.space();self._do_print_body(output)});AST_Lambda.DEFMETHOD("_do_print",function(output,nokeyword){var self=this;if(!nokeyword){output.print("function")}if(self.name){output.space();self.name.print(output)}output.with_parens(function(){self.argnames.forEach(function(arg,i){if(i)output.comma();arg.print(output)})});output.space();print_bracketed(self,output,true)});DEFPRINT(AST_Lambda,function(self,output){self._do_print(output)});AST_Exit.DEFMETHOD("_do_print",function(output,kind){output.print(kind);if(this.value){output.space();this.value.print(output)}output.semicolon()});DEFPRINT(AST_Return,function(self,output){self._do_print(output,"return")});DEFPRINT(AST_Throw,function(self,output){self._do_print(output,"throw")});AST_LoopControl.DEFMETHOD("_do_print",function(output,kind){output.print(kind);if(this.label){output.space();this.label.print(output)}output.semicolon()});DEFPRINT(AST_Break,function(self,output){self._do_print(output,"break")});DEFPRINT(AST_Continue,function(self,output){self._do_print(output,"continue")});function make_then(self,output){var b=self.body;if(output.option("bracketize")||output.option("ie8")&&b instanceof AST_Do)return make_block(b,output);if(!b)return output.force_semicolon();while(true){if(b instanceof AST_If){if(!b.alternative){make_block(self.body,output);return}b=b.alternative}else if(b instanceof AST_StatementWithBody){b=b.body}else break}force_statement(self.body,output)}DEFPRINT(AST_If,function(self,output){output.print("if");output.space();output.with_parens(function(){self.condition.print(output)});output.space();if(self.alternative){make_then(self,output);output.space();output.print("else");output.space();if(self.alternative instanceof AST_If)self.alternative.print(output);else force_statement(self.alternative,output)}else{self._do_print_body(output)}});DEFPRINT(AST_Switch,function(self,output){output.print("switch");output.space();output.with_parens(function(){self.expression.print(output)});output.space();var last=self.body.length-1;if(last<0)print_bracketed_empty(self,output);else output.with_block(function(){self.body.forEach(function(branch,i){output.indent(true);branch.print(output);if(i<last&&branch.body.length>0)output.newline()})})});AST_SwitchBranch.DEFMETHOD("_do_print_body",function(output){output.newline();this.body.forEach(function(stmt){output.indent();stmt.print(output);output.newline()})});DEFPRINT(AST_Default,function(self,output){output.print("default:");self._do_print_body(output)});DEFPRINT(AST_Case,function(self,output){output.print("case");output.space();self.expression.print(output);output.print(":");self._do_print_body(output)});DEFPRINT(AST_Try,function(self,output){output.print("try");output.space();print_bracketed(self,output);if(self.bcatch){output.space();self.bcatch.print(output)}if(self.bfinally){output.space();self.bfinally.print(output)}});DEFPRINT(AST_Catch,function(self,output){output.print("catch");output.space();output.with_parens(function(){self.argname.print(output)});output.space();print_bracketed(self,output)});DEFPRINT(AST_Finally,function(self,output){output.print("finally");output.space();print_bracketed(self,output)});AST_Definitions.DEFMETHOD("_do_print",function(output,kind){output.print(kind);output.space();this.definitions.forEach(function(def,i){if(i)output.comma();def.print(output)});var p=output.parent();var in_for=p instanceof AST_For||p instanceof AST_ForIn;var avoid_semicolon=in_for&&p.init===this;if(!avoid_semicolon)output.semicolon()});DEFPRINT(AST_Var,function(self,output){self._do_print(output,"var")});function parenthesize_for_noin(node,output,noin){var parens=false;if(noin)node.walk(new TreeWalker(function(node){if(parens||node instanceof AST_Scope)return true;if(node instanceof AST_Binary&&node.operator=="in"){parens=true;return true}}));node.print(output,parens)}DEFPRINT(AST_VarDef,function(self,output){self.name.print(output);if(self.value){output.space();output.print("=");output.space();var p=output.parent(1);var noin=p instanceof AST_For||p instanceof AST_ForIn;parenthesize_for_noin(self.value,output,noin)}});DEFPRINT(AST_Call,function(self,output){self.expression.print(output);if(self instanceof AST_New&&!need_constructor_parens(self,output))return;if(self.expression instanceof AST_Call||self.expression instanceof AST_Lambda){output.add_mapping(self.start)}output.with_parens(function(){self.args.forEach(function(expr,i){if(i)output.comma();expr.print(output)})})});DEFPRINT(AST_New,function(self,output){output.print("new");output.space();AST_Call.prototype._codegen(self,output)});AST_Sequence.DEFMETHOD("_do_print",function(output){this.expressions.forEach(function(node,index){if(index>0){output.comma();if(output.should_break()){output.newline();output.indent()}}node.print(output)})});DEFPRINT(AST_Sequence,function(self,output){self._do_print(output)});DEFPRINT(AST_Dot,function(self,output){var expr=self.expression;expr.print(output);var prop=self.property;if(output.option("ie8")&&RESERVED_WORDS(prop)){output.print("[");output.add_mapping(self.end);output.print_string(prop);output.print("]")}else{if(expr instanceof AST_Number&&expr.getValue()>=0){if(!/[xa-f.)]/i.test(output.last())){output.print(".")}}output.print(".");output.add_mapping(self.end);output.print_name(prop)}});DEFPRINT(AST_Sub,function(self,output){self.expression.print(output);output.print("[");self.property.print(output);output.print("]")});DEFPRINT(AST_UnaryPrefix,function(self,output){var op=self.operator;output.print(op);if(/^[a-z]/i.test(op)||/[+-]$/.test(op)&&self.expression instanceof AST_UnaryPrefix&&/^[+-]/.test(self.expression.operator)){output.space()}self.expression.print(output)});DEFPRINT(AST_UnaryPostfix,function(self,output){self.expression.print(output);output.print(self.operator)});DEFPRINT(AST_Binary,function(self,output){var op=self.operator;self.left.print(output);if(op[0]==">"&&self.left instanceof AST_UnaryPostfix&&self.left.operator=="--"){output.print(" ")}else{output.space()}output.print(op);if((op=="<"||op=="<<")&&self.right instanceof AST_UnaryPrefix&&self.right.operator=="!"&&self.right.expression instanceof AST_UnaryPrefix&&self.right.expression.operator=="--"){output.print(" ")}else{output.space()}self.right.print(output)});DEFPRINT(AST_Conditional,function(self,output){self.condition.print(output);output.space();output.print("?");output.space();self.consequent.print(output);output.space();output.colon();self.alternative.print(output)});DEFPRINT(AST_Array,function(self,output){output.with_square(function(){var a=self.elements,len=a.length;if(len>0)output.space();a.forEach(function(exp,i){if(i)output.comma();exp.print(output);if(i===len-1&&exp instanceof AST_Hole)output.comma()});if(len>0)output.space()})});DEFPRINT(AST_Object,function(self,output){if(self.properties.length>0)output.with_block(function(){self.properties.forEach(function(prop,i){if(i){output.print(",");output.newline()}output.indent();prop.print(output)});output.newline()});else print_bracketed_empty(self,output)});function print_property_name(key,quote,output){if(output.option("quote_keys")){output.print_string(key)}else if(""+ +key==key&&key>=0){output.print(make_num(key))}else if(RESERVED_WORDS(key)?!output.option("ie8"):is_identifier_string(key)){if(quote&&output.option("keep_quoted_props")){output.print_string(key,quote)}else{output.print_name(key)}}else{output.print_string(key,quote)}}DEFPRINT(AST_ObjectKeyVal,function(self,output){print_property_name(self.key,self.quote,output);output.colon();self.value.print(output)});AST_ObjectProperty.DEFMETHOD("_print_getter_setter",function(type,output){output.print(type);output.space();print_property_name(this.key.name,this.quote,output);this.value._do_print(output,true)});DEFPRINT(AST_ObjectSetter,function(self,output){self._print_getter_setter("set",output)});DEFPRINT(AST_ObjectGetter,function(self,output){self._print_getter_setter("get",output)});DEFPRINT(AST_Symbol,function(self,output){var def=self.definition();output.print_name(def?def.mangled_name||def.name:self.name)});DEFPRINT(AST_Hole,noop);DEFPRINT(AST_This,function(self,output){output.print("this")});DEFPRINT(AST_Constant,function(self,output){output.print(self.getValue())});DEFPRINT(AST_String,function(self,output){output.print_string(self.getValue(),self.quote,in_directive)});DEFPRINT(AST_Number,function(self,output){if(use_asm&&self.start&&self.start.raw!=null){output.print(self.start.raw)}else{output.print(make_num(self.getValue()))}});DEFPRINT(AST_RegExp,function(self,output){var regexp=self.getValue();var str=regexp.toString();if(regexp.raw_source){str="/"+regexp.raw_source+str.slice(str.lastIndexOf("/"))}str=output.to_utf8(str);output.print(str);var p=output.parent();if(p instanceof AST_Binary&&/^in/.test(p.operator)&&p.left===self)output.print(" ")});function force_statement(stat,output){if(output.option("bracketize")){make_block(stat,output)}else{if(!stat||stat instanceof AST_EmptyStatement)output.force_semicolon();else stat.print(output)}}function need_constructor_parens(self,output){if(self.args.length>0)return true;return output.option("beautify")}function best_of(a){var best=a[0],len=best.length;for(var i=1;i<a.length;++i){if(a[i].length<len){best=a[i];len=best.length}}return best}function make_num(num){var str=num.toString(10),a=[str.replace(/^0\./,".").replace("e+","e")],m;if(Math.floor(num)===num){if(num>=0){a.push("0x"+num.toString(16).toLowerCase(),"0"+num.toString(8))}else{a.push("-0x"+(-num).toString(16).toLowerCase(),"-0"+(-num).toString(8))}if(m=/^(.*?)(0+)$/.exec(num)){a.push(m[1]+"e"+m[2].length)}}else if(m=/^0?\.(0+)(.*)$/.exec(num)){a.push(m[2]+"e-"+(m[1].length+m[2].length),str.substr(str.indexOf(".")))}return best_of(a)}function make_block(stmt,output){if(!stmt||stmt instanceof AST_EmptyStatement)output.print("{}");else if(stmt instanceof AST_BlockStatement)stmt.print(output);else output.with_block(function(){output.indent();stmt.print(output);output.newline()})}function DEFMAP(nodetype,generator){nodetype.DEFMETHOD("add_source_map",function(stream){generator(this,stream)})}DEFMAP(AST_Node,noop);function basic_sourcemap_gen(self,output){output.add_mapping(self.start)}DEFMAP(AST_Directive,basic_sourcemap_gen);DEFMAP(AST_Debugger,basic_sourcemap_gen);DEFMAP(AST_Symbol,basic_sourcemap_gen);DEFMAP(AST_Jump,basic_sourcemap_gen);DEFMAP(AST_StatementWithBody,basic_sourcemap_gen);DEFMAP(AST_LabeledStatement,noop);DEFMAP(AST_Lambda,basic_sourcemap_gen);DEFMAP(AST_Switch,basic_sourcemap_gen);DEFMAP(AST_SwitchBranch,basic_sourcemap_gen);DEFMAP(AST_BlockStatement,basic_sourcemap_gen);DEFMAP(AST_Toplevel,noop);DEFMAP(AST_New,basic_sourcemap_gen);DEFMAP(AST_Try,basic_sourcemap_gen);DEFMAP(AST_Catch,basic_sourcemap_gen);DEFMAP(AST_Finally,basic_sourcemap_gen);DEFMAP(AST_Definitions,basic_sourcemap_gen);DEFMAP(AST_Constant,basic_sourcemap_gen);DEFMAP(AST_ObjectSetter,function(self,output){output.add_mapping(self.start,self.key.name)});DEFMAP(AST_ObjectGetter,function(self,output){output.add_mapping(self.start,self.key.name)});DEFMAP(AST_ObjectProperty,function(self,output){output.add_mapping(self.start,self.key)})})();"use strict";function Compressor(options,false_by_default){if(!(this instanceof Compressor))return new Compressor(options,false_by_default);TreeTransformer.call(this,this.before,this.after);this.options=defaults(options,{arguments:!false_by_default,booleans:!false_by_default,collapse_vars:!false_by_default,comparisons:!false_by_default,conditionals:!false_by_default,dead_code:!false_by_default,drop_console:false,drop_debugger:!false_by_default,evaluate:!false_by_default,expression:false,global_defs:{},hoist_funs:false,hoist_props:!false_by_default,hoist_vars:false,ie8:false,if_return:!false_by_default,inline:!false_by_default,join_vars:!false_by_default,keep_fargs:true,keep_fnames:false,keep_infinity:false,loops:!false_by_default,negate_iife:!false_by_default,passes:1,properties:!false_by_default,pure_getters:!false_by_default&&"strict",pure_funcs:null,reduce_funcs:!false_by_default,reduce_vars:!false_by_default,sequences:!false_by_default,side_effects:!false_by_default,switches:!false_by_default,top_retain:null,toplevel:!!(options&&options["top_retain"]),typeofs:!false_by_default,unsafe:false,unsafe_comps:false,unsafe_Function:false,unsafe_math:false,unsafe_proto:false,unsafe_regexp:false,unsafe_undefined:false,unused:!false_by_default,warnings:false},true);var global_defs=this.options["global_defs"];if(typeof global_defs=="object")for(var key in global_defs){if(/^@/.test(key)&&HOP(global_defs,key)){global_defs[key.slice(1)]=parse(global_defs[key],{expression:true})}}if(this.options["inline"]===true)this.options["inline"]=3;var pure_funcs=this.options["pure_funcs"];if(typeof pure_funcs=="function"){this.pure_funcs=pure_funcs}else{this.pure_funcs=pure_funcs?function(node){return pure_funcs.indexOf(node.expression.print_to_string())<0}:return_true}var top_retain=this.options["top_retain"];if(top_retain instanceof RegExp){this.top_retain=function(def){return top_retain.test(def.name)}}else if(typeof top_retain=="function"){this.top_retain=top_retain}else if(top_retain){if(typeof top_retain=="string"){top_retain=top_retain.split(/,/)}this.top_retain=function(def){return top_retain.indexOf(def.name)>=0}}var toplevel=this.options["toplevel"];this.toplevel=typeof toplevel=="string"?{funcs:/funcs/.test(toplevel),vars:/vars/.test(toplevel)}:{funcs:toplevel,vars:toplevel};var sequences=this.options["sequences"];this.sequences_limit=sequences==1?800:sequences|0;this.warnings_produced={}}Compressor.prototype=new TreeTransformer;merge(Compressor.prototype,{option:function(key){return this.options[key]},exposed:function(def){if(def.global)for(var i=0,len=def.orig.length;i<len;i++)if(!this.toplevel[def.orig[i]instanceof AST_SymbolDefun?"funcs":"vars"])return true;return false},in_boolean_context:function(){if(!this.option("booleans"))return false;var self=this.self();for(var i=0,p;p=this.parent(i);i++){if(p instanceof AST_SimpleStatement||p instanceof AST_Conditional&&p.condition===self||p instanceof AST_DWLoop&&p.condition===self||p instanceof AST_For&&p.condition===self||p instanceof AST_If&&p.condition===self||p instanceof AST_UnaryPrefix&&p.operator=="!"&&p.expression===self){return true}if(p instanceof AST_Binary&&(p.operator=="&&"||p.operator=="||")||p instanceof AST_Conditional||p.tail_node()===self){self=p}else{return false}}},compress:function(node){if(this.option("expression")){node.process_expression(true)}var passes=+this.options.passes||1;var min_count=1/0;var stopping=false;var mangle={ie8:this.option("ie8")};for(var pass=0;pass<passes;pass++){node.figure_out_scope(mangle);if(pass>0||this.option("reduce_vars"))node.reset_opt_flags(this);node=node.transform(this);if(passes>1){var count=0;node.walk(new TreeWalker(function(){count++}));this.info("pass "+pass+": last_count: "+min_count+", count: "+count);if(count<min_count){min_count=count;stopping=false}else if(stopping){break}else{stopping=true}}}if(this.option("expression")){node.process_expression(false)}return node},info:function(){if(this.options.warnings=="verbose"){AST_Node.warn.apply(AST_Node,arguments)}},warn:function(text,props){if(this.options.warnings){var message=string_template(text,props);if(!(message in this.warnings_produced)){this.warnings_produced[message]=true;AST_Node.warn.apply(AST_Node,arguments)}}},clear_warnings:function(){this.warnings_produced={}},before:function(node,descend,in_list){if(node._squeezed)return node;var was_scope=false;if(node instanceof AST_Scope){node=node.hoist_properties(this);node=node.hoist_declarations(this);was_scope=true}descend(node,this);descend(node,this);var opt=node.optimize(this);if(was_scope&&opt instanceof AST_Scope){opt.drop_unused(this);descend(opt,this)}if(opt===node)opt._squeezed=true;return opt}});(function(){function OPT(node,optimizer){node.DEFMETHOD("optimize",function(compressor){var self=this;if(self._optimized)return self;if(compressor.has_directive("use asm"))return self;var opt=optimizer(self,compressor);opt._optimized=true;return opt})}OPT(AST_Node,function(self,compressor){return self});AST_Node.DEFMETHOD("equivalent_to",function(node){return this.TYPE==node.TYPE&&this.print_to_string()==node.print_to_string()});AST_Scope.DEFMETHOD("process_expression",function(insert,compressor){var self=this;var tt=new TreeTransformer(function(node){if(insert&&node instanceof AST_SimpleStatement){return make_node(AST_Return,node,{value:node.body})}if(!insert&&node instanceof AST_Return){if(compressor){var value=node.value&&node.value.drop_side_effect_free(compressor,true);return value?make_node(AST_SimpleStatement,node,{body:value}):make_node(AST_EmptyStatement,node)}return make_node(AST_SimpleStatement,node,{body:node.value||make_node(AST_UnaryPrefix,node,{operator:"void",expression:make_node(AST_Number,node,{value:0})})})}if(node instanceof AST_Lambda&&node!==self){return node}if(node instanceof AST_Block){var index=node.body.length-1;if(index>=0){node.body[index]=node.body[index].transform(tt)}}else if(node instanceof AST_If){node.body=node.body.transform(tt);if(node.alternative){node.alternative=node.alternative.transform(tt)}}else if(node instanceof AST_With){node.body=node.body.transform(tt)}return node});self.transform(tt)});(function(def){def(AST_Node,noop);function reset_def(compressor,def){def.assignments=0;def.chained=false;def.direct_access=false;def.escaped=false;if(def.scope.uses_eval||def.scope.uses_with){def.fixed=false}else if(!compressor.exposed(def)){def.fixed=def.init}else{def.fixed=false}def.recursive_refs=0;def.references=[];def.should_replace=undefined;def.single_use=undefined}function reset_variables(tw,compressor,node){node.variables.each(function(def){reset_def(compressor,def);if(def.fixed===null){def.safe_ids=tw.safe_ids;mark(tw,def,true)}else if(def.fixed){tw.loop_ids[def.id]=tw.in_loop;mark(tw,def,true)}})}function push(tw){tw.safe_ids=Object.create(tw.safe_ids)}function pop(tw){tw.safe_ids=Object.getPrototypeOf(tw.safe_ids)}function mark(tw,def,safe){tw.safe_ids[def.id]=safe}function safe_to_read(tw,def){if(tw.safe_ids[def.id]){if(def.fixed==null){var orig=def.orig[0];if(orig instanceof AST_SymbolFunarg||orig.name=="arguments")return false;def.fixed=make_node(AST_Undefined,orig)}return true}return def.fixed instanceof AST_Defun}function safe_to_assign(tw,def,value){if(def.fixed===undefined)return true;if(def.fixed===null&&def.safe_ids){def.safe_ids[def.id]=false;delete def.safe_ids;return true}if(!HOP(tw.safe_ids,def.id))return false;if(!safe_to_read(tw,def))return false;if(def.fixed===false)return false;if(def.fixed!=null&&(!value||def.references.length>def.assignments))return false;return all(def.orig,function(sym){return!(sym instanceof AST_SymbolDefun||sym instanceof AST_SymbolLambda)})}function ref_once(tw,compressor,def){return compressor.option("unused")&&!def.scope.uses_eval&&!def.scope.uses_with&&def.references.length-def.recursive_refs==1&&tw.loop_ids[def.id]===tw.in_loop}function is_immutable(value){if(!value)return false;return value.is_constant()||value instanceof AST_Lambda||value instanceof AST_This}function read_property(obj,key){key=get_value(key);if(key instanceof AST_Node)return;var value;if(obj instanceof AST_Array){var elements=obj.elements;if(key=="length")return make_node_from_constant(elements.length,obj);if(typeof key=="number"&&key in elements)value=elements[key]}else if(obj instanceof AST_Object){key=""+key;var props=obj.properties;for(var i=props.length;--i>=0;){var prop=props[i];if(!(prop instanceof AST_ObjectKeyVal))return;if(!value&&props[i].key===key)value=props[i].value}}return value instanceof AST_SymbolRef&&value.fixed_value()||value}function is_modified(tw,node,value,level,immutable){var parent=tw.parent(level);if(is_lhs(node,parent)||!immutable&&parent instanceof AST_Call&&parent.expression===node&&(!(value instanceof AST_Function)||!(parent instanceof AST_New)&&value.contains_this())){return true}else if(parent instanceof AST_Array){return is_modified(tw,parent,parent,level+1)}else if(parent instanceof AST_ObjectKeyVal&&node===parent.value){var obj=tw.parent(level+1);return is_modified(tw,obj,obj,level+2)}else if(parent instanceof AST_PropAccess&&parent.expression===node){return!immutable&&is_modified(tw,parent,read_property(value,parent.property),level+1)}}function mark_escaped(tw,d,scope,node,value,level,depth){var parent=tw.parent(level);if(value&&value.is_constant())return;if(parent instanceof AST_Assign&&parent.operator=="="&&node===parent.right||parent instanceof AST_Call&&node!==parent.expression||parent instanceof AST_Exit&&node===parent.value&&node.scope!==d.scope||parent instanceof AST_VarDef&&node===parent.value){if(depth>1&&!(value&&value.is_constant_expression(scope)))depth=1;if(!d.escaped||d.escaped>depth)d.escaped=depth;return}else if(parent instanceof AST_Array||parent instanceof AST_Binary&&lazy_op(parent.operator)||parent instanceof AST_Conditional&&node!==parent.condition||parent instanceof AST_Sequence&&node===parent.tail_node()){mark_escaped(tw,d,scope,parent,parent,level+1,depth)}else if(parent instanceof AST_ObjectKeyVal&&node===parent.value){var obj=tw.parent(level+1);mark_escaped(tw,d,scope,obj,obj,level+2,depth)}else if(parent instanceof AST_PropAccess&&node===parent.expression){value=read_property(value,parent.property);mark_escaped(tw,d,scope,parent,value,level+1,depth+1);if(value)return}if(level==0)d.direct_access=true}var suppressor=new TreeWalker(function(node){if(!(node instanceof AST_Symbol))return;var d=node.definition();if(!d)return;if(node instanceof AST_SymbolRef)d.references.push(node);d.fixed=false});def(AST_Accessor,function(tw,descend,compressor){push(tw);reset_variables(tw,compressor,this);descend();pop(tw);return true});def(AST_Assign,function(tw){var node=this;if(!(node.left instanceof AST_SymbolRef))return;var d=node.left.definition();var fixed=d.fixed;if(!fixed&&node.operator!="=")return;if(!safe_to_assign(tw,d,node.right))return;d.references.push(node.left);d.assignments++;if(node.operator!="=")d.chained=true;d.fixed=node.operator=="="?function(){return node.right}:function(){return make_node(AST_Binary,node,{operator:node.operator.slice(0,-1),left:fixed instanceof AST_Node?fixed:fixed(),right:node.right})};mark(tw,d,false);node.right.walk(tw);mark(tw,d,true);return true});def(AST_Binary,function(tw){if(!lazy_op(this.operator))return;this.left.walk(tw);push(tw);this.right.walk(tw);pop(tw);return true});def(AST_Case,function(tw){push(tw);this.expression.walk(tw);pop(tw);push(tw);walk_body(this,tw);pop(tw);return true});def(AST_Conditional,function(tw){this.condition.walk(tw);push(tw);this.consequent.walk(tw);pop(tw);push(tw);this.alternative.walk(tw);pop(tw);return true});def(AST_Default,function(tw,descend){push(tw);descend();pop(tw);return true});def(AST_Defun,function(tw,descend,compressor){this.inlined=false;var save_ids=tw.safe_ids;tw.safe_ids=Object.create(null);reset_variables(tw,compressor,this);descend();tw.safe_ids=save_ids;return true});def(AST_Do,function(tw){var saved_loop=tw.in_loop;tw.in_loop=this;push(tw);this.body.walk(tw);this.condition.walk(tw);pop(tw);tw.in_loop=saved_loop;return true});def(AST_For,function(tw){if(this.init)this.init.walk(tw);var saved_loop=tw.in_loop;tw.in_loop=this;if(this.condition){push(tw);this.condition.walk(tw);pop(tw)}push(tw);this.body.walk(tw);pop(tw);if(this.step){push(tw);this.step.walk(tw);pop(tw)}tw.in_loop=saved_loop;return true});def(AST_ForIn,function(tw){this.init.walk(suppressor);this.object.walk(tw);var saved_loop=tw.in_loop;tw.in_loop=this;push(tw);this.body.walk(tw);pop(tw);tw.in_loop=saved_loop;return true});def(AST_Function,function(tw,descend,compressor){var node=this;node.inlined=false;push(tw);reset_variables(tw,compressor,node);var iife;if(!node.name&&(iife=tw.parent())instanceof AST_Call&&iife.expression===node){node.argnames.forEach(function(arg,i){var d=arg.definition();if(!node.uses_arguments&&d.fixed===undefined){d.fixed=function(){return iife.args[i]||make_node(AST_Undefined,iife)};tw.loop_ids[d.id]=tw.in_loop;mark(tw,d,true)}else{d.fixed=false}})}descend();pop(tw);return true});def(AST_If,function(tw){this.condition.walk(tw);push(tw);this.body.walk(tw);pop(tw);if(this.alternative){push(tw);this.alternative.walk(tw);pop(tw)}return true});def(AST_LabeledStatement,function(tw){push(tw);this.body.walk(tw);pop(tw);return true});def(AST_SymbolCatch,function(){this.definition().fixed=false});def(AST_SymbolRef,function(tw,descend,compressor){var d=this.definition();d.references.push(this);if(d.references.length==1&&!d.fixed&&d.orig[0]instanceof AST_SymbolDefun){tw.loop_ids[d.id]=tw.in_loop}var value;if(d.fixed===undefined||!safe_to_read(tw,d)||d.single_use=="m"){d.fixed=false}else if(d.fixed){value=this.fixed_value();if(value instanceof AST_Lambda&&recursive_ref(tw,d)){d.recursive_refs++}else if(value&&ref_once(tw,compressor,d)){d.single_use=value instanceof AST_Lambda||d.scope===this.scope&&value.is_constant_expression()}else{d.single_use=false}if(is_modified(tw,this,value,0,is_immutable(value))){if(d.single_use){d.single_use="m"}else{d.fixed=false}}}mark_escaped(tw,d,this.scope,this,value,0,1)});def(AST_Toplevel,function(tw,descend,compressor){this.globals.each(function(def){reset_def(compressor,def)});reset_variables(tw,compressor,this)});def(AST_Try,function(tw){push(tw);walk_body(this,tw);pop(tw);if(this.bcatch){push(tw);this.bcatch.walk(tw);pop(tw)}if(this.bfinally)this.bfinally.walk(tw);return true});def(AST_Unary,function(tw,descend){var node=this;if(node.operator!="++"&&node.operator!="--")return;if(!(node.expression instanceof AST_SymbolRef))return;var d=node.expression.definition();var fixed=d.fixed;if(!fixed)return;if(!safe_to_assign(tw,d,true))return;d.references.push(node.expression);d.assignments++;d.chained=true;d.fixed=function(){return make_node(AST_Binary,node,{operator:node.operator.slice(0,-1),left:make_node(AST_UnaryPrefix,node,{operator:"+",expression:fixed instanceof AST_Node?fixed:fixed()}),right:make_node(AST_Number,node,{value:1})})};mark(tw,d,true);return true});def(AST_VarDef,function(tw,descend){var node=this;var d=node.name.definition();if(node.value){if(safe_to_assign(tw,d,node.value)){d.fixed=function(){return node.value};tw.loop_ids[d.id]=tw.in_loop;mark(tw,d,false);descend();mark(tw,d,true);return true}else{d.fixed=false}}});def(AST_While,function(tw){var saved_loop=tw.in_loop;tw.in_loop=this;push(tw);this.condition.walk(tw);this.body.walk(tw);pop(tw);tw.in_loop=saved_loop;return true})})(function(node,func){node.DEFMETHOD("reduce_vars",func)});AST_Toplevel.DEFMETHOD("reset_opt_flags",function(compressor){var reduce_vars=compressor.option("reduce_vars");var tw=new TreeWalker(function(node,descend){node._squeezed=false;node._optimized=false;if(reduce_vars)return node.reduce_vars(tw,descend,compressor)});tw.safe_ids=Object.create(null);tw.in_loop=null;tw.loop_ids=Object.create(null);this.walk(tw)});AST_Symbol.DEFMETHOD("fixed_value",function(){var fixed=this.definition().fixed;if(!fixed||fixed instanceof AST_Node)return fixed;return fixed()});AST_SymbolRef.DEFMETHOD("is_immutable",function(){var orig=this.definition().orig;return orig.length==1&&orig[0]instanceof AST_SymbolLambda});function is_lhs_read_only(lhs){if(lhs instanceof AST_This)return true;if(lhs instanceof AST_SymbolRef)return lhs.definition().orig[0]instanceof AST_SymbolLambda;if(lhs instanceof AST_PropAccess){lhs=lhs.expression;if(lhs instanceof AST_SymbolRef){if(lhs.is_immutable())return false;lhs=lhs.fixed_value()}if(!lhs)return true;if(lhs.is_constant())return true;return is_lhs_read_only(lhs)}return false}function find_variable(compressor,name){var scope,i=0;while(scope=compressor.parent(i++)){if(scope instanceof AST_Scope)break;if(scope instanceof AST_Catch){scope=scope.argname.definition().scope;break}}return scope.find_variable(name)}function make_node(ctor,orig,props){if(!props)props={};if(orig){if(!props.start)props.start=orig.start;if(!props.end)props.end=orig.end}return new ctor(props)}function make_sequence(orig,expressions){if(expressions.length==1)return expressions[0];return make_node(AST_Sequence,orig,{expressions:expressions.reduce(merge_sequence,[])})}function make_node_from_constant(val,orig){switch(typeof val){case"string":return make_node(AST_String,orig,{value:val});case"number":if(isNaN(val))return make_node(AST_NaN,orig);if(isFinite(val)){return 1/val<0?make_node(AST_UnaryPrefix,orig,{operator:"-",expression:make_node(AST_Number,orig,{value:-val})}):make_node(AST_Number,orig,{value:val})}return val<0?make_node(AST_UnaryPrefix,orig,{operator:"-",expression:make_node(AST_Infinity,orig)}):make_node(AST_Infinity,orig);case"boolean":return make_node(val?AST_True:AST_False,orig);case"undefined":return make_node(AST_Undefined,orig);default:if(val===null){return make_node(AST_Null,orig,{value:null})}if(val instanceof RegExp){return make_node(AST_RegExp,orig,{value:val})}throw new Error(string_template("Can't handle constant of type: {type}",{type:typeof val}))}}function maintain_this_binding(parent,orig,val){if(parent instanceof AST_UnaryPrefix&&parent.operator=="delete"||parent instanceof AST_Call&&parent.expression===orig&&(val instanceof AST_PropAccess||val instanceof AST_SymbolRef&&val.name=="eval")){return make_sequence(orig,[make_node(AST_Number,orig,{value:0}),val])}return val}function merge_sequence(array,node){if(node instanceof AST_Sequence){array.push.apply(array,node.expressions)}else{array.push(node)}return array}function as_statement_array(thing){if(thing===null)return[];if(thing instanceof AST_BlockStatement)return thing.body;if(thing instanceof AST_EmptyStatement)return[];if(thing instanceof AST_Statement)return[thing];throw new Error("Can't convert thing to statement array")}function is_empty(thing){if(thing===null)return true;if(thing instanceof AST_EmptyStatement)return true;if(thing instanceof AST_BlockStatement)return thing.body.length==0;return false}function loop_body(x){if(x instanceof AST_IterationStatement){return x.body instanceof AST_BlockStatement?x.body:x}return x}function root_expr(prop){while(prop instanceof AST_PropAccess)prop=prop.expression;return prop}function is_iife_call(node){if(node.TYPE!="Call")return false;return node.expression instanceof AST_Function||is_iife_call(node.expression)}function is_undeclared_ref(node){return node instanceof AST_SymbolRef&&node.definition().undeclared}var global_names=makePredicate("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");AST_SymbolRef.DEFMETHOD("is_declared",function(compressor){return!this.definition().undeclared||compressor.option("unsafe")&&global_names(this.name)});var identifier_atom=makePredicate("Infinity NaN undefined");function is_identifier_atom(node){return node instanceof AST_Infinity||node instanceof AST_NaN||node instanceof AST_Undefined}function tighten_body(statements,compressor){var in_loop,in_try,scope;find_loop_scope_try();var CHANGED,max_iter=10;do{CHANGED=false;eliminate_spurious_blocks(statements);if(compressor.option("dead_code")){eliminate_dead_code(statements,compressor)}if(compressor.option("if_return")){handle_if_return(statements,compressor)}if(compressor.sequences_limit>0){sequencesize(statements,compressor);sequencesize_2(statements,compressor)}if(compressor.option("join_vars")){join_consecutive_vars(statements)}if(compressor.option("collapse_vars")){collapse(statements,compressor)}}while(CHANGED&&max_iter-- >0);function find_loop_scope_try(){var node=compressor.self(),level=0;do{if(node instanceof AST_Catch||node instanceof AST_Finally){level++}else if(node instanceof AST_IterationStatement){in_loop=true}else if(node instanceof AST_Scope){scope=node;break}else if(node instanceof AST_Try){in_try=true}}while(node=compressor.parent(level++))}function collapse(statements,compressor){if(scope.uses_eval||scope.uses_with)return statements;var args;var candidates=[];var stat_index=statements.length;var scanner=new TreeTransformer(function(node,descend){if(abort)return node;if(!hit){if(node!==hit_stack[hit_index])return node;hit_index++;if(hit_index<hit_stack.length)return handle_custom_scan_order(node);hit=true;stop_after=find_stop(node,0);if(stop_after===node)abort=true;return node}var parent=scanner.parent();if(node instanceof AST_Assign&&node.operator!="="&&lhs.equivalent_to(node.left)||node instanceof AST_Call&&lhs instanceof AST_PropAccess&&lhs.equivalent_to(node.expression)||node instanceof AST_Debugger||node instanceof AST_IterationStatement&&!(node instanceof AST_For)||node instanceof AST_LoopControl||node instanceof AST_Try||node instanceof AST_With||parent instanceof AST_For&&node!==parent.init||!replace_all&&(node instanceof AST_SymbolRef&&!node.is_declared(compressor))){abort=true;return node}if(!stop_if_hit&&(parent instanceof AST_Binary&&lazy_op(parent.operator)&&parent.left!==node||parent instanceof AST_Conditional&&parent.condition!==node||parent instanceof AST_If&&parent.condition!==node)){stop_if_hit=parent}var hit_lhs,hit_rhs;if(can_replace&&!(node instanceof AST_SymbolDeclaration)&&(scan_lhs&&(hit_lhs=lhs.equivalent_to(node))||scan_rhs&&(hit_rhs=rhs.equivalent_to(node)))){if(stop_if_hit&&(hit_rhs||!lhs_local||!replace_all)){abort=true;return node}if(is_lhs(node,parent)){if(value_def)replaced++;return node}CHANGED=abort=true;replaced++;compressor.info("Collapsing {name} [{file}:{line},{col}]",{name:node.print_to_string(),file:node.start.file,line:node.start.line,col:node.start.col});if(candidate instanceof AST_UnaryPostfix){return make_node(AST_UnaryPrefix,candidate,candidate)}if(candidate instanceof AST_VarDef){if(value_def){abort=false;return node}var def=candidate.name.definition();var value=candidate.value;if(def.references.length-def.replaced==1&&!compressor.exposed(def)){def.replaced++;if(funarg&&is_identifier_atom(value)){return value.transform(compressor)}else{return maintain_this_binding(parent,node,value)}}return make_node(AST_Assign,candidate,{operator:"=",left:make_node(AST_SymbolRef,candidate.name,candidate.name),right:value})}candidate.write_only=false;return candidate}var sym;if(node instanceof AST_Call||node instanceof AST_Exit&&(side_effects||lhs instanceof AST_PropAccess||may_modify(lhs))||node instanceof AST_PropAccess&&(side_effects||node.expression.may_throw_on_access(compressor))||node instanceof AST_SymbolRef&&(symbol_in_lvalues(node)||side_effects&&may_modify(node))||node instanceof AST_VarDef&&node.value&&(node.name.name in lvalues||side_effects&&may_modify(node.name))||(sym=is_lhs(node.left,node))&&(sym instanceof AST_PropAccess||sym.name in lvalues)||may_throw&&(in_try?node.has_side_effects(compressor):side_effects_external(node))){stop_after=node;if(node instanceof AST_Scope)abort=true}return handle_custom_scan_order(node)},function(node){if(abort)return;if(stop_after===node)abort=true;if(stop_if_hit===node)stop_if_hit=null});var multi_replacer=new TreeTransformer(function(node){if(abort)return node;if(!hit){if(node!==hit_stack[hit_index])return node;hit_index++;if(hit_index<hit_stack.length)return;hit=true;return node}if(node instanceof AST_SymbolRef&&node.name==def.name){if(!--replaced)abort=true;if(is_lhs(node,multi_replacer.parent()))return node;def.replaced++;value_def.replaced--;return candidate.value}if(node instanceof AST_Default||node instanceof AST_Scope)return node});while(--stat_index>=0){if(stat_index==0&&compressor.option("unused"))extract_args();var hit_stack=[];extract_candidates(statements[stat_index]);while(candidates.length>0){hit_stack=candidates.pop();var hit_index=0;var candidate=hit_stack[hit_stack.length-1];var value_def=null;var stop_after=null;var stop_if_hit=null;var lhs=get_lhs(candidate);var rhs=get_rhs(candidate);var side_effects=lhs&&lhs.has_side_effects(compressor);var scan_lhs=lhs&&!side_effects&&!is_lhs_read_only(lhs);var scan_rhs=rhs&&foldable(rhs);if(!scan_lhs&&!scan_rhs)continue;var lvalues=get_lvalues(candidate);var lhs_local=is_lhs_local(lhs);if(!side_effects)side_effects=value_has_side_effects(candidate);var replace_all=replace_all_symbols();var may_throw=candidate.may_throw(compressor);var funarg=candidate.name instanceof AST_SymbolFunarg;var hit=funarg;var abort=false,replaced=0,can_replace=!args||!hit;if(!can_replace){for(var j=compressor.self().argnames.lastIndexOf(candidate.name)+1;!abort&&j<args.length;j++){args[j].transform(scanner)}can_replace=true}for(var i=stat_index;!abort&&i<statements.length;i++){statements[i].transform(scanner)}if(value_def){var def=candidate.name.definition();if(abort&&def.references.length-def.replaced>replaced)replaced=false;else{abort=false;hit_index=0;hit=funarg;for(var i=stat_index;!abort&&i<statements.length;i++){statements[i].transform(multi_replacer)}value_def.single_use=false}}if(replaced&&!remove_candidate(candidate))statements.splice(stat_index,1)}}function handle_custom_scan_order(node){if(node instanceof AST_Scope)return node;if(node instanceof AST_Switch){node.expression=node.expression.transform(scanner);for(var i=0,len=node.body.length;!abort&&i<len;i++){var branch=node.body[i];if(branch instanceof AST_Case){if(!hit){if(branch!==hit_stack[hit_index])continue;hit_index++}branch.expression=branch.expression.transform(scanner);if(!replace_all)break}}abort=true;return node}}function extract_args(){var iife,fn=compressor.self();if(fn instanceof AST_Function&&!fn.name&&!fn.uses_arguments&&!fn.uses_eval&&(iife=compressor.parent())instanceof AST_Call&&iife.expression===fn){var fn_strict=compressor.has_directive("use strict");if(fn_strict&&!member(fn_strict,fn.body))fn_strict=false;var len=fn.argnames.length;args=iife.args.slice(len);var names=Object.create(null);for(var i=len;--i>=0;){var sym=fn.argnames[i];var arg=iife.args[i];args.unshift(make_node(AST_VarDef,sym,{name:sym,value:arg}));if(sym.name in names)continue;names[sym.name]=true;if(!arg)arg=make_node(AST_Undefined,sym).transform(compressor);else{var tw=new TreeWalker(function(node){if(!arg)return true;if(node instanceof AST_SymbolRef&&fn.variables.has(node.name)){var s=node.definition().scope;if(s!==scope)while(s=s.parent_scope){if(s===scope)return true}arg=null}if(node instanceof AST_This&&(fn_strict||!tw.find_parent(AST_Scope))){arg=null;return true}});arg.walk(tw)}if(arg)candidates.unshift([make_node(AST_VarDef,sym,{name:sym,value:arg})])}}}function extract_candidates(expr){hit_stack.push(expr);if(expr instanceof AST_Assign){candidates.push(hit_stack.slice());extract_candidates(expr.right)}else if(expr instanceof AST_Binary){extract_candidates(expr.left);extract_candidates(expr.right)}else if(expr instanceof AST_Call){extract_candidates(expr.expression);expr.args.forEach(extract_candidates)}else if(expr instanceof AST_Case){extract_candidates(expr.expression)}else if(expr instanceof AST_Conditional){extract_candidates(expr.condition);extract_candidates(expr.consequent);extract_candidates(expr.alternative)}else if(expr instanceof AST_Definitions){expr.definitions.forEach(extract_candidates)}else if(expr instanceof AST_DWLoop){extract_candidates(expr.condition);if(!(expr.body instanceof AST_Block)){extract_candidates(expr.body)}}else if(expr instanceof AST_Exit){if(expr.value)extract_candidates(expr.value)}else if(expr instanceof AST_For){if(expr.init)extract_candidates(expr.init);if(expr.condition)extract_candidates(expr.condition);if(expr.step)extract_candidates(expr.step);if(!(expr.body instanceof AST_Block)){extract_candidates(expr.body)}}else if(expr instanceof AST_ForIn){extract_candidates(expr.object);if(!(expr.body instanceof AST_Block)){extract_candidates(expr.body)}}else if(expr instanceof AST_If){extract_candidates(expr.condition);if(!(expr.body instanceof AST_Block)){extract_candidates(expr.body)}if(expr.alternative&&!(expr.alternative instanceof AST_Block)){extract_candidates(expr.alternative)}}else if(expr instanceof AST_Sequence){expr.expressions.forEach(extract_candidates)}else if(expr instanceof AST_SimpleStatement){extract_candidates(expr.body)}else if(expr instanceof AST_Switch){extract_candidates(expr.expression);expr.body.forEach(extract_candidates)}else if(expr instanceof AST_Unary){if(expr.operator=="++"||expr.operator=="--"){candidates.push(hit_stack.slice())}else{extract_candidates(expr.expression)}}else if(expr instanceof AST_VarDef){if(expr.value){candidates.push(hit_stack.slice());extract_candidates(expr.value)}}hit_stack.pop()}function find_stop(node,level,write_only){var parent=scanner.parent(level);if(parent instanceof AST_Assign){if(write_only&&!(parent.left instanceof AST_PropAccess||parent.left.name in lvalues)){return find_stop(parent,level+1,write_only)}return node}if(parent instanceof AST_Binary){if(write_only&&(!lazy_op(parent.operator)||parent.left===node)){return find_stop(parent,level+1,write_only)}return node}if(parent instanceof AST_Call)return node;if(parent instanceof AST_Case)return node;if(parent instanceof AST_Conditional){if(write_only&&parent.condition===node){return find_stop(parent,level+1,write_only)}return node}if(parent instanceof AST_Definitions){return find_stop(parent,level+1,true)}if(parent instanceof AST_Exit){return write_only?find_stop(parent,level+1,write_only):node}if(parent instanceof AST_If){if(write_only&&parent.condition===node){return find_stop(parent,level+1,write_only)}return node}if(parent instanceof AST_IterationStatement)return node;if(parent instanceof AST_Sequence){return find_stop(parent,level+1,parent.tail_node()!==node)}if(parent instanceof AST_SimpleStatement){return find_stop(parent,level+1,true)}if(parent instanceof AST_Switch)return node;if(parent instanceof AST_Unary)return node;if(parent instanceof AST_VarDef)return node;return null}function mangleable_var(var_def){var value=var_def.value;if(!(value instanceof AST_SymbolRef))return;if(value.name=="arguments")return;var def=value.definition();if(def.undeclared)return;return value_def=def}function get_lhs(expr){if(expr instanceof AST_VarDef){var def=expr.name.definition();if(!member(expr.name,def.orig))return;var declared=def.orig.length-def.eliminated;var referenced=def.references.length-def.replaced;if(declared>1&&!(expr.name instanceof AST_SymbolFunarg)||(referenced>1?mangleable_var(expr):!compressor.exposed(def))){return make_node(AST_SymbolRef,expr.name,expr.name)}}else{return expr[expr instanceof AST_Assign?"left":"expression"]}}function get_rhs(expr){if(!(candidate instanceof AST_Assign&&candidate.operator=="="))return;return candidate.right}function get_rvalue(expr){return expr[expr instanceof AST_Assign?"right":"value"]}function foldable(expr){if(expr.is_constant())return true;if(expr instanceof AST_Array)return false;if(expr instanceof AST_Function)return false;if(expr instanceof AST_Object)return false;if(expr instanceof AST_RegExp)return false;if(expr instanceof AST_Symbol)return true;if(!(lhs instanceof AST_SymbolRef))return false;if(expr.has_side_effects(compressor))return false;var circular;var def=lhs.definition();expr.walk(new TreeWalker(function(node){if(circular)return true;if(node instanceof AST_SymbolRef&&node.definition()===def){circular=true}}));return!circular}function get_lvalues(expr){var lvalues=Object.create(null);if(candidate instanceof AST_VarDef){lvalues[candidate.name.name]=lhs}var tw=new TreeWalker(function(node){var sym=root_expr(node);if(sym instanceof AST_SymbolRef||sym instanceof AST_This){lvalues[sym.name]=lvalues[sym.name]||is_lhs(node,tw.parent())}});expr.walk(tw);return lvalues}function remove_candidate(expr){if(expr.name instanceof AST_SymbolFunarg){var index=compressor.self().argnames.indexOf(expr.name);var args=compressor.parent().args;if(args[index])args[index]=make_node(AST_Number,args[index],{value:0});return true}var found=false;return statements[stat_index].transform(new TreeTransformer(function(node,descend,in_list){if(found)return node;if(node===expr||node.body===expr){found=true;if(node instanceof AST_VarDef){node.value=null;return node}return in_list?MAP.skip:null}},function(node){if(node instanceof AST_Sequence)switch(node.expressions.length){case 0:return null;case 1:return node.expressions[0]}}))}function is_lhs_local(lhs){var sym=root_expr(lhs);return sym instanceof AST_SymbolRef&&sym.definition().scope===scope&&!(in_loop&&(sym.name in lvalues&&lvalues[sym.name]!==lhs||candidate instanceof AST_Unary||candidate instanceof AST_Assign&&candidate.operator!="="))}function value_has_side_effects(expr){if(expr instanceof AST_Unary)return false;return get_rvalue(expr).has_side_effects(compressor)}function replace_all_symbols(){if(side_effects)return false;if(value_def)return true;if(lhs instanceof AST_SymbolRef){var def=lhs.definition();if(def.references.length-def.replaced==(candidate instanceof AST_VarDef?1:2)){return true}}return false}function symbol_in_lvalues(sym){var lvalue=lvalues[sym.name];if(!lvalue)return;if(lvalue!==lhs)return true;scan_rhs=false}function may_modify(sym){var def=sym.definition();if(def.orig.length==1&&def.orig[0]instanceof AST_SymbolDefun)return false;if(def.scope!==scope)return true;return!all(def.references,function(ref){var s=ref.scope;if(s.TYPE=="Scope")s=s.parent_scope;return s===scope})}function side_effects_external(node,lhs){if(node instanceof AST_Assign)return side_effects_external(node.left,true);if(node instanceof AST_Unary)return side_effects_external(node.expression,true);if(node instanceof AST_VarDef)return node.value&&side_effects_external(node.value);if(lhs){if(node instanceof AST_Dot)return side_effects_external(node.expression,true);if(node instanceof AST_Sub)return side_effects_external(node.expression,true);if(node instanceof AST_SymbolRef)return node.definition().scope!==scope}return false}}function eliminate_spurious_blocks(statements){var seen_dirs=[];for(var i=0;i<statements.length;){var stat=statements[i];if(stat instanceof AST_BlockStatement){CHANGED=true;eliminate_spurious_blocks(stat.body);[].splice.apply(statements,[i,1].concat(stat.body));i+=stat.body.length}else if(stat instanceof AST_EmptyStatement){CHANGED=true;statements.splice(i,1)}else if(stat instanceof AST_Directive){if(seen_dirs.indexOf(stat.value)<0){i++;seen_dirs.push(stat.value)}else{CHANGED=true;statements.splice(i,1)}}else i++}}function handle_if_return(statements,compressor){var self=compressor.self();var multiple_if_returns=has_multiple_if_returns(statements);var in_lambda=self instanceof AST_Lambda;for(var i=statements.length;--i>=0;){var stat=statements[i];var j=next_index(i);var next=statements[j];if(in_lambda&&!next&&stat instanceof AST_Return){if(!stat.value){CHANGED=true;statements.splice(i,1);continue}if(stat.value instanceof AST_UnaryPrefix&&stat.value.operator=="void"){CHANGED=true;statements[i]=make_node(AST_SimpleStatement,stat,{body:stat.value.expression});continue}}if(stat instanceof AST_If){var ab=aborts(stat.body);if(can_merge_flow(ab)){if(ab.label){remove(ab.label.thedef.references,ab)}CHANGED=true;stat=stat.clone();stat.condition=stat.condition.negate(compressor);var body=as_statement_array_with_return(stat.body,ab);stat.body=make_node(AST_BlockStatement,stat,{body:as_statement_array(stat.alternative).concat(extract_functions())});stat.alternative=make_node(AST_BlockStatement,stat,{body:body});statements[i]=stat.transform(compressor);continue}var ab=aborts(stat.alternative);if(can_merge_flow(ab)){if(ab.label){remove(ab.label.thedef.references,ab)}CHANGED=true;stat=stat.clone();stat.body=make_node(AST_BlockStatement,stat.body,{body:as_statement_array(stat.body).concat(extract_functions())});var body=as_statement_array_with_return(stat.alternative,ab);stat.alternative=make_node(AST_BlockStatement,stat.alternative,{body:body});statements[i]=stat.transform(compressor);continue}}if(stat instanceof AST_If&&stat.body instanceof AST_Return){var value=stat.body.value;if(!value&&!stat.alternative&&(in_lambda&&!next||next instanceof AST_Return&&!next.value)){CHANGED=true;statements[i]=make_node(AST_SimpleStatement,stat.condition,{body:stat.condition});continue}if(value&&!stat.alternative&&next instanceof AST_Return&&next.value){CHANGED=true;stat=stat.clone();stat.alternative=next;statements.splice(i,1,stat.transform(compressor));statements.splice(j,1);continue}if(value&&!stat.alternative&&(!next&&in_lambda&&multiple_if_returns||next instanceof AST_Return)){CHANGED=true;stat=stat.clone();stat.alternative=next||make_node(AST_Return,stat,{value:null});statements.splice(i,1,stat.transform(compressor));if(next)statements.splice(j,1);continue}var prev=statements[prev_index(i)];if(compressor.option("sequences")&&in_lambda&&!stat.alternative&&prev instanceof AST_If&&prev.body instanceof AST_Return&&next_index(j)==statements.length&&next instanceof AST_SimpleStatement){CHANGED=true;stat=stat.clone();stat.alternative=make_node(AST_BlockStatement,next,{body:[next,make_node(AST_Return,next,{value:null})]});statements.splice(i,1,stat.transform(compressor));statements.splice(j,1);continue}}}function has_multiple_if_returns(statements){var n=0;for(var i=statements.length;--i>=0;){var stat=statements[i];if(stat instanceof AST_If&&stat.body instanceof AST_Return){if(++n>1)return true}}return false}function is_return_void(value){return!value||value instanceof AST_UnaryPrefix&&value.operator=="void"}function can_merge_flow(ab){if(!ab)return false;var lct=ab instanceof AST_LoopControl?compressor.loopcontrol_target(ab):null;return ab instanceof AST_Return&&in_lambda&&is_return_void(ab.value)||ab instanceof AST_Continue&&self===loop_body(lct)||ab instanceof AST_Break&&lct instanceof AST_BlockStatement&&self===lct}function extract_functions(){var tail=statements.slice(i+1);statements.length=i+1;return tail.filter(function(stat){if(stat instanceof AST_Defun){statements.push(stat);return false}return true})}function as_statement_array_with_return(node,ab){var body=as_statement_array(node).slice(0,-1);if(ab.value){body.push(make_node(AST_SimpleStatement,ab.value,{body:ab.value.expression}))}return body}function next_index(i){for(var j=i+1,len=statements.length;j<len;j++){var stat=statements[j];if(!(stat instanceof AST_Var&&declarations_only(stat))){break}}return j}function prev_index(i){for(var j=i;--j>=0;){var stat=statements[j];if(!(stat instanceof AST_Var&&declarations_only(stat))){break}}return j}}function eliminate_dead_code(statements,compressor){var has_quit;var self=compressor.self();for(var i=0,n=0,len=statements.length;i<len;i++){var stat=statements[i];if(stat instanceof AST_LoopControl){var lct=compressor.loopcontrol_target(stat);if(stat instanceof AST_Break&&!(lct instanceof AST_IterationStatement)&&loop_body(lct)===self||stat instanceof AST_Continue&&loop_body(lct)===self){if(stat.label){remove(stat.label.thedef.references,stat)}}else{statements[n++]=stat}}else{statements[n++]=stat}if(aborts(stat)){has_quit=statements.slice(i+1);break}}statements.length=n;CHANGED=n!=len;if(has_quit)has_quit.forEach(function(stat){extract_declarations_from_unreachable_code(compressor,stat,statements)})}function declarations_only(node){return all(node.definitions,function(var_def){return!var_def.value})}function sequencesize(statements,compressor){if(statements.length<2)return;var seq=[],n=0;function push_seq(){if(!seq.length)return;var body=make_sequence(seq[0],seq);statements[n++]=make_node(AST_SimpleStatement,body,{body:body});seq=[]}for(var i=0,len=statements.length;i<len;i++){var stat=statements[i];if(stat instanceof AST_SimpleStatement){if(seq.length>=compressor.sequences_limit)push_seq();var body=stat.body;if(seq.length>0)body=body.drop_side_effect_free(compressor);if(body)merge_sequence(seq,body)}else if(stat instanceof AST_Definitions&&declarations_only(stat)||stat instanceof AST_Defun){statements[n++]=stat}else{push_seq();statements[n++]=stat}}push_seq();statements.length=n;if(n!=len)CHANGED=true}function to_simple_statement(block,decls){if(!(block instanceof AST_BlockStatement))return block;var stat=null;for(var i=0,len=block.body.length;i<len;i++){var line=block.body[i];if(line instanceof AST_Var&&declarations_only(line)){decls.push(line)}else if(stat){return false}else{stat=line}}return stat}function sequencesize_2(statements,compressor){function cons_seq(right){n--;CHANGED=true;var left=prev.body;return make_sequence(left,[left,right]).transform(compressor)}var n=0,prev;for(var i=0;i<statements.length;i++){var stat=statements[i];if(prev){if(stat instanceof AST_Exit){stat.value=cons_seq(stat.value||make_node(AST_Undefined,stat).transform(compressor))}else if(stat instanceof AST_For){if(!(stat.init instanceof AST_Definitions)){var abort=false;prev.body.walk(new TreeWalker(function(node){if(abort||node instanceof AST_Scope)return true;if(node instanceof AST_Binary&&node.operator=="in"){abort=true;return true}}));if(!abort){if(stat.init)stat.init=cons_seq(stat.init);else{stat.init=prev.body;n--;CHANGED=true}}}}else if(stat instanceof AST_ForIn){stat.object=cons_seq(stat.object)}else if(stat instanceof AST_If){stat.condition=cons_seq(stat.condition)}else if(stat instanceof AST_Switch){stat.expression=cons_seq(stat.expression)}else if(stat instanceof AST_With){stat.expression=cons_seq(stat.expression)}}if(compressor.option("conditionals")&&stat instanceof AST_If){var decls=[];var body=to_simple_statement(stat.body,decls);var alt=to_simple_statement(stat.alternative,decls);if(body!==false&&alt!==false&&decls.length>0){var len=decls.length;decls.push(make_node(AST_If,stat,{condition:stat.condition,body:body||make_node(AST_EmptyStatement,stat.body),alternative:alt}));decls.unshift(n,1);[].splice.apply(statements,decls);i+=len;n+=len+1;prev=null;CHANGED=true;continue}}statements[n++]=stat;prev=stat instanceof AST_SimpleStatement?stat:null}statements.length=n}function join_object_assignments(defn,body){if(!(defn instanceof AST_Definitions))return;var def=defn.definitions[defn.definitions.length-1];if(!(def.value instanceof AST_Object))return;var exprs;if(body instanceof AST_Assign){exprs=[body]}else if(body instanceof AST_Sequence){exprs=body.expressions.slice()}if(!exprs)return;var trimmed=false;do{var node=exprs[0];if(!(node instanceof AST_Assign))break;if(node.operator!="=")break;if(!(node.left instanceof AST_PropAccess))break;var sym=node.left.expression;if(!(sym instanceof AST_SymbolRef))break;if(def.name.name!=sym.name)break;if(!node.right.is_constant_expression(scope))break;var prop=node.left.property;if(prop instanceof AST_Node){prop=prop.evaluate(compressor)}if(prop instanceof AST_Node)break;prop=""+prop;var diff=compressor.has_directive("use strict")?function(node){return node.key!=prop&&node.key.name!=prop}:function(node){return node.key.name!=prop};if(!all(def.value.properties,diff))break;def.value.properties.push(make_node(AST_ObjectKeyVal,node,{key:prop,value:node.right}));exprs.shift();trimmed=true}while(exprs.length);return trimmed&&exprs}function join_consecutive_vars(statements){var defs;for(var i=0,j=-1,len=statements.length;i<len;i++){var stat=statements[i];var prev=statements[j];if(stat instanceof AST_Definitions){if(prev&&prev.TYPE==stat.TYPE){prev.definitions=prev.definitions.concat(stat.definitions);CHANGED=true}else if(defs&&defs.TYPE==stat.TYPE&&declarations_only(stat)){defs.definitions=defs.definitions.concat(stat.definitions);CHANGED=true}else{statements[++j]=stat;defs=stat}}else if(stat instanceof AST_Exit){stat.value=extract_object_assignments(stat.value)}else if(stat instanceof AST_For){var exprs=join_object_assignments(prev,stat.init);if(exprs){CHANGED=true;stat.init=exprs.length?make_sequence(stat.init,exprs):null;statements[++j]=stat}else if(prev instanceof AST_Var&&(!stat.init||stat.init.TYPE==prev.TYPE)){if(stat.init){prev.definitions=prev.definitions.concat(stat.init.definitions)}stat.init=prev;statements[j]=stat;CHANGED=true}else if(defs&&stat.init&&defs.TYPE==stat.init.TYPE&&declarations_only(stat.init)){defs.definitions=defs.definitions.concat(stat.init.definitions);stat.init=null;statements[++j]=stat;CHANGED=true}else{statements[++j]=stat}}else if(stat instanceof AST_ForIn){stat.object=extract_object_assignments(stat.object)}else if(stat instanceof AST_If){stat.condition=extract_object_assignments(stat.condition)}else if(stat instanceof AST_SimpleStatement){var exprs=join_object_assignments(prev,stat.body);if(exprs){CHANGED=true;if(!exprs.length)continue;stat.body=make_sequence(stat.body,exprs)}statements[++j]=stat}else if(stat instanceof AST_Switch){stat.expression=extract_object_assignments(stat.expression)}else if(stat instanceof AST_With){stat.expression=extract_object_assignments(stat.expression)}else{statements[++j]=stat}}statements.length=j+1;function extract_object_assignments(value){statements[++j]=stat;var exprs=join_object_assignments(prev,value);if(exprs){CHANGED=true;if(exprs.length){return make_sequence(value,exprs)}else if(value instanceof AST_Sequence){return value.tail_node().left}else{return value.left}}return value}}}function extract_declarations_from_unreachable_code(compressor,stat,target){if(!(stat instanceof AST_Defun)){compressor.warn("Dropping unreachable code [{file}:{line},{col}]",stat.start)}stat.walk(new TreeWalker(function(node){if(node instanceof AST_Definitions){compressor.warn("Declarations in unreachable code! [{file}:{line},{col}]",node.start);node.remove_initializers();target.push(node);return true}if(node instanceof AST_Defun){target.push(node);return true}if(node instanceof AST_Scope){return true}}))}function get_value(key){if(key instanceof AST_Constant){return key.getValue()}if(key instanceof AST_UnaryPrefix&&key.operator=="void"&&key.expression instanceof AST_Constant){return}return key}function is_undefined(node,compressor){return node.is_undefined||node instanceof AST_Undefined||node instanceof AST_UnaryPrefix&&node.operator=="void"&&!node.expression.has_side_effects(compressor)}(function(def){AST_Node.DEFMETHOD("may_throw_on_access",function(compressor){return!compressor.option("pure_getters")||this._dot_throw(compressor)});function is_strict(compressor){return/strict/.test(compressor.option("pure_getters"))}def(AST_Node,is_strict);def(AST_Null,return_true);def(AST_Undefined,return_true);def(AST_Constant,return_false);def(AST_Array,return_false);def(AST_Object,function(compressor){if(!is_strict(compressor))return false;for(var i=this.properties.length;--i>=0;)if(this.properties[i].value instanceof AST_Accessor)return true;return false});def(AST_Lambda,return_false);def(AST_UnaryPostfix,return_false);def(AST_UnaryPrefix,function(){return this.operator=="void"});def(AST_Binary,function(compressor){return(this.operator=="&&"||this.operator=="||")&&(this.left._dot_throw(compressor)||this.right._dot_throw(compressor))});def(AST_Assign,function(compressor){return this.operator=="="&&this.right._dot_throw(compressor)});def(AST_Conditional,function(compressor){return this.consequent._dot_throw(compressor)||this.alternative._dot_throw(compressor)});def(AST_Dot,function(compressor){if(!is_strict(compressor))return false;var exp=this.expression;if(exp instanceof AST_SymbolRef)exp=exp.fixed_value();return!(exp instanceof AST_Lambda&&this.property=="prototype")});def(AST_Sequence,function(compressor){return this.tail_node()._dot_throw(compressor)});def(AST_SymbolRef,function(compressor){if(this.is_undefined)return true;if(!is_strict(compressor))return false;if(is_undeclared_ref(this)&&this.is_declared(compressor))return false;if(this.is_immutable())return false;var fixed=this.fixed_value();return!fixed||fixed._dot_throw(compressor)})})(function(node,func){node.DEFMETHOD("_dot_throw",func)});(function(def){var unary_bool=["!","delete"];var binary_bool=["in","instanceof","==","!=","===","!==","<","<=",">=",">"];def(AST_Node,return_false);def(AST_UnaryPrefix,function(){return member(this.operator,unary_bool)});def(AST_Binary,function(){return member(this.operator,binary_bool)||lazy_op(this.operator)&&this.left.is_boolean()&&this.right.is_boolean()});def(AST_Conditional,function(){return this.consequent.is_boolean()&&this.alternative.is_boolean()});def(AST_Assign,function(){return this.operator=="="&&this.right.is_boolean()});def(AST_Sequence,function(){return this.tail_node().is_boolean()});def(AST_True,return_true);def(AST_False,return_true)})(function(node,func){node.DEFMETHOD("is_boolean",func)});(function(def){def(AST_Node,return_false);def(AST_Number,return_true);var unary=makePredicate("+ - ~ ++ --");def(AST_Unary,function(){return unary(this.operator)});var binary=makePredicate("- * / % & | ^ << >> >>>");def(AST_Binary,function(compressor){return binary(this.operator)||this.operator=="+"&&this.left.is_number(compressor)&&this.right.is_number(compressor)});def(AST_Assign,function(compressor){return binary(this.operator.slice(0,-1))||this.operator=="="&&this.right.is_number(compressor)});def(AST_Sequence,function(compressor){return this.tail_node().is_number(compressor)});def(AST_Conditional,function(compressor){return this.consequent.is_number(compressor)&&this.alternative.is_number(compressor)})})(function(node,func){node.DEFMETHOD("is_number",func)});(function(def){def(AST_Node,return_false);def(AST_String,return_true);def(AST_UnaryPrefix,function(){return this.operator=="typeof"});def(AST_Binary,function(compressor){return this.operator=="+"&&(this.left.is_string(compressor)||this.right.is_string(compressor))});def(AST_Assign,function(compressor){return(this.operator=="="||this.operator=="+=")&&this.right.is_string(compressor)});def(AST_Sequence,function(compressor){return this.tail_node().is_string(compressor)});def(AST_Conditional,function(compressor){return this.consequent.is_string(compressor)&&this.alternative.is_string(compressor)})})(function(node,func){node.DEFMETHOD("is_string",func)});var lazy_op=makePredicate("&& ||");var unary_side_effects=makePredicate("delete ++ --");function is_lhs(node,parent){if(parent instanceof AST_Unary&&unary_side_effects(parent.operator))return parent.expression;if(parent instanceof AST_Assign&&parent.left===node)return node}(function(def){AST_Node.DEFMETHOD("resolve_defines",function(compressor){if(!compressor.option("global_defs"))return;var def=this._find_defs(compressor,"");if(def){var node,parent=this,level=0;do{node=parent;parent=compressor.parent(level++)}while(parent instanceof AST_PropAccess&&parent.expression===node);if(is_lhs(node,parent)){compressor.warn("global_defs "+this.print_to_string()+" redefined [{file}:{line},{col}]",this.start)}else{return def}}});function to_node(value,orig){if(value instanceof AST_Node)return make_node(value.CTOR,orig,value);if(Array.isArray(value))return make_node(AST_Array,orig,{elements:value.map(function(value){return to_node(value,orig)})});if(value&&typeof value=="object"){var props=[];for(var key in value)if(HOP(value,key)){props.push(make_node(AST_ObjectKeyVal,orig,{key:key,value:to_node(value[key],orig)}))}return make_node(AST_Object,orig,{properties:props})}return make_node_from_constant(value,orig)}def(AST_Node,noop);def(AST_Dot,function(compressor,suffix){return this.expression._find_defs(compressor,"."+this.property+suffix)});def(AST_SymbolRef,function(compressor,suffix){if(!this.global())return;var name;var defines=compressor.option("global_defs");if(defines&&HOP(defines,name=this.name+suffix)){var node=to_node(defines[name],this);var top=compressor.find_parent(AST_Toplevel);node.walk(new TreeWalker(function(node){if(node instanceof AST_SymbolRef){node.scope=top;node.thedef=top.def_global(node)}}));return node}})})(function(node,func){node.DEFMETHOD("_find_defs",func)});function best_of_expression(ast1,ast2){return ast1.print_to_string().length>ast2.print_to_string().length?ast2:ast1}function best_of_statement(ast1,ast2){return best_of_expression(make_node(AST_SimpleStatement,ast1,{body:ast1}),make_node(AST_SimpleStatement,ast2,{body:ast2})).body}function best_of(compressor,ast1,ast2){return(first_in_statement(compressor)?best_of_statement:best_of_expression)(ast1,ast2)}function convert_to_predicate(obj){for(var key in obj){obj[key]=makePredicate(obj[key])}}var object_fns=["constructor","toString","valueOf"];var native_fns={Array:["indexOf","join","lastIndexOf","slice"].concat(object_fns),Boolean:object_fns,Function:object_fns,Number:["toExponential","toFixed","toPrecision"].concat(object_fns),Object:object_fns,RegExp:["test"].concat(object_fns),String:["charAt","charCodeAt","concat","indexOf","italics","lastIndexOf","match","replace","search","slice","split","substr","substring","toLowerCase","toUpperCase","trim"].concat(object_fns)};convert_to_predicate(native_fns);var static_fns={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"]};convert_to_predicate(static_fns);(function(def){AST_Node.DEFMETHOD("evaluate",function(compressor){if(!compressor.option("evaluate"))return this;var cached=[];var val=this._eval(compressor,cached,1);cached.forEach(function(node){delete node._eval});if(!val||val instanceof RegExp)return val;if(typeof val=="function"||typeof val=="object")return this;return val});var unaryPrefix=makePredicate("! ~ - + void");AST_Node.DEFMETHOD("is_constant",function(){if(this instanceof AST_Constant){return!(this instanceof AST_RegExp)}else{return this instanceof AST_UnaryPrefix&&this.expression instanceof AST_Constant&&unaryPrefix(this.operator)}});def(AST_Statement,function(){throw new Error(string_template("Cannot evaluate a statement [{file}:{line},{col}]",this.start))});def(AST_Lambda,return_this);def(AST_Node,return_this);def(AST_Constant,function(){return this.getValue()});def(AST_Function,function(compressor){if(compressor.option("unsafe")){var fn=function(){};fn.node=this;fn.toString=function(){return"function(){}"};return fn}return this});def(AST_Array,function(compressor,cached,depth){if(compressor.option("unsafe")){var elements=[];for(var i=0,len=this.elements.length;i<len;i++){var element=this.elements[i];var value=element._eval(compressor,cached,depth);if(element===value)return this;elements.push(value)}return elements}return this});def(AST_Object,function(compressor,cached,depth){if(compressor.option("unsafe")){var val={};for(var i=0,len=this.properties.length;i<len;i++){var prop=this.properties[i];var key=prop.key;if(key instanceof AST_Symbol){key=key.name}else if(key instanceof AST_Node){key=key._eval(compressor,cached,depth);if(key===prop.key)return this}if(typeof Object.prototype[key]==="function"){return this}if(prop.value instanceof AST_Function)continue;val[key]=prop.value._eval(compressor,cached,depth);if(val[key]===prop.value)return this}return val}return this});var non_converting_unary=makePredicate("! typeof void");def(AST_UnaryPrefix,function(compressor,cached,depth){var e=this.expression;if(compressor.option("typeofs")&&this.operator=="typeof"&&(e instanceof AST_Lambda||e instanceof AST_SymbolRef&&e.fixed_value()instanceof AST_Lambda)){return typeof function(){}}if(!non_converting_unary(this.operator))depth++;e=e._eval(compressor,cached,depth);if(e===this.expression)return this;switch(this.operator){case"!":return!e;case"typeof":if(e instanceof RegExp)return this;return typeof e;case"void":return void e;case"~":return~e;case"-":return-e;case"+":return+e}return this});var non_converting_binary=makePredicate("&& || === !==");def(AST_Binary,function(compressor,cached,depth){if(!non_converting_binary(this.operator))depth++;var left=this.left._eval(compressor,cached,depth);if(left===this.left)return this;var right=this.right._eval(compressor,cached,depth);if(right===this.right)return this;var result;switch(this.operator){case"&&":result=left&&right;break;case"||":result=left||right;break;case"|":result=left|right;break;case"&":result=left&right;break;case"^":result=left^right;break;case"+":result=left+right;break;case"*":result=left*right;break;case"/":result=left/right;break;case"%":result=left%right;break;case"-":result=left-right;break;case"<<":result=left<<right;break;case">>":result=left>>right;break;case">>>":result=left>>>right;break;case"==":result=left==right;break;case"===":result=left===right;break;case"!=":result=left!=right;break;case"!==":result=left!==right;break;case"<":result=left<right;break;case"<=":result=left<=right;break;case">":result=left>right;break;case">=":result=left>=right;break;default:return this}if(isNaN(result)&&compressor.find_parent(AST_With)){return this}return result});def(AST_Conditional,function(compressor,cached,depth){var condition=this.condition._eval(compressor,cached,depth);if(condition===this.condition)return this;var node=condition?this.consequent:this.alternative;var value=node._eval(compressor,cached,depth);return value===node?this:value});def(AST_SymbolRef,function(compressor,cached,depth){var fixed=this.fixed_value();if(!fixed)return this;var value;if(cached.indexOf(fixed)>=0){value=fixed._eval()}else{this._eval=return_this;value=fixed._eval(compressor,cached,depth);delete this._eval;if(value===fixed)return this;fixed._eval=function(){return value};cached.push(fixed)}if(value&&typeof value=="object"){var escaped=this.definition().escaped;if(escaped&&depth>escaped)return this}return value});var global_objs={Array:Array,Math:Math,Number:Number,Object:Object,String:String};var static_values={Math:["E","LN10","LN2","LOG2E","LOG10E","PI","SQRT1_2","SQRT2"],Number:["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"]};convert_to_predicate(static_values);def(AST_PropAccess,function(compressor,cached,depth){if(compressor.option("unsafe")){var key=this.property;if(key instanceof AST_Node){key=key._eval(compressor,cached,depth);if(key===this.property)return this}var exp=this.expression;var val;if(is_undeclared_ref(exp)){if(!(static_values[exp.name]||return_false)(key))return this;val=global_objs[exp.name]}else{val=exp._eval(compressor,cached,depth+1);if(!val||val===exp||!HOP(val,key))return this;if(typeof val=="function")switch(key){case"name":return val.node.name?val.node.name.name:"";case"length":return val.node.argnames.length;default:return this}}return val[key]}return this});def(AST_Call,function(compressor,cached,depth){var exp=this.expression;if(compressor.option("unsafe")&&exp instanceof AST_PropAccess){var key=exp.property;if(key instanceof AST_Node){key=key._eval(compressor,cached,depth);if(key===exp.property)return this}var val;var e=exp.expression;if(is_undeclared_ref(e)){if(!(static_fns[e.name]||return_false)(key))return this;val=global_objs[e.name]}else{val=e._eval(compressor,cached,depth+1);if(val===e||!(val&&native_fns[val.constructor.name]||return_false)(key))return this}var args=[];for(var i=0,len=this.args.length;i<len;i++){var arg=this.args[i];var value=arg._eval(compressor,cached,depth);if(arg===value)return this;args.push(value)}try{return val[key].apply(val,args)}catch(ex){compressor.warn("Error evaluating {code} [{file}:{line},{col}]",{code:this.print_to_string(),file:this.start.file,line:this.start.line,col:this.start.col})}}return this});def(AST_New,return_this)})(function(node,func){node.DEFMETHOD("_eval",func)});(function(def){function basic_negation(exp){return make_node(AST_UnaryPrefix,exp,{operator:"!",expression:exp})}function best(orig,alt,first_in_statement){var negated=basic_negation(orig);if(first_in_statement){var stat=make_node(AST_SimpleStatement,alt,{body:alt});return best_of_expression(negated,stat)===stat?alt:negated}return best_of_expression(negated,alt)}def(AST_Node,function(){return basic_negation(this)});def(AST_Statement,function(){throw new Error("Cannot negate a statement")});def(AST_Function,function(){return basic_negation(this)});def(AST_UnaryPrefix,function(){if(this.operator=="!")return this.expression;return basic_negation(this)});def(AST_Sequence,function(compressor){var expressions=this.expressions.slice();expressions.push(expressions.pop().negate(compressor));return make_sequence(this,expressions)});def(AST_Conditional,function(compressor,first_in_statement){var self=this.clone();self.consequent=self.consequent.negate(compressor);self.alternative=self.alternative.negate(compressor);return best(this,self,first_in_statement)});def(AST_Binary,function(compressor,first_in_statement){var self=this.clone(),op=this.operator;if(compressor.option("unsafe_comps")){switch(op){case"<=":self.operator=">";return self;case"<":self.operator=">=";return self;case">=":self.operator="<";return self;case">":self.operator="<=";return self}}switch(op){case"==":self.operator="!=";return self;case"!=":self.operator="==";return self;case"===":self.operator="!==";return self;case"!==":self.operator="===";return self;case"&&":self.operator="||";self.left=self.left.negate(compressor,first_in_statement);self.right=self.right.negate(compressor);return best(this,self,first_in_statement);case"||":self.operator="&&";self.left=self.left.negate(compressor,first_in_statement);self.right=self.right.negate(compressor);return best(this,self,first_in_statement)}return basic_negation(this)})})(function(node,func){node.DEFMETHOD("negate",function(compressor,first_in_statement){return func.call(this,compressor,first_in_statement)})});var global_pure_fns=makePredicate("Boolean decodeURI decodeURIComponent Date encodeURI encodeURIComponent Error escape EvalError isFinite isNaN Number Object parseFloat parseInt RangeError ReferenceError String SyntaxError TypeError unescape URIError");AST_Call.DEFMETHOD("is_expr_pure",function(compressor){if(compressor.option("unsafe")){var expr=this.expression;if(is_undeclared_ref(expr)&&global_pure_fns(expr.name))return true;if(expr instanceof AST_Dot&&is_undeclared_ref(expr.expression)&&(static_fns[expr.expression.name]||return_false)(expr.property)){return true}}return this.pure||!compressor.pure_funcs(this)});AST_Node.DEFMETHOD("is_call_pure",return_false);AST_Dot.DEFMETHOD("is_call_pure",function(compressor){if(!compressor.option("unsafe"))return;var expr=this.expression;var fns=return_false;if(expr instanceof AST_Array){fns=native_fns.Array}else if(expr.is_boolean()){fns=native_fns.Boolean}else if(expr.is_number(compressor)){fns=native_fns.Number}else if(expr instanceof AST_RegExp){fns=native_fns.RegExp}else if(expr.is_string(compressor)){fns=native_fns.String}else if(!this.may_throw_on_access(compressor)){fns=native_fns.Object}return fns(this.property)});(function(def){def(AST_Node,return_true);def(AST_EmptyStatement,return_false);def(AST_Constant,return_false);def(AST_This,return_false);function any(list,compressor){for(var i=list.length;--i>=0;)if(list[i].has_side_effects(compressor))return true;return false}def(AST_Block,function(compressor){return any(this.body,compressor)});def(AST_Call,function(compressor){if(!this.is_expr_pure(compressor)&&(!this.expression.is_call_pure(compressor)||this.expression.has_side_effects(compressor))){return true}return any(this.args,compressor)});def(AST_Switch,function(compressor){return this.expression.has_side_effects(compressor)||any(this.body,compressor)});def(AST_Case,function(compressor){return this.expression.has_side_effects(compressor)||any(this.body,compressor)});def(AST_Try,function(compressor){return any(this.body,compressor)||this.bcatch&&this.bcatch.has_side_effects(compressor)||this.bfinally&&this.bfinally.has_side_effects(compressor)});def(AST_If,function(compressor){return this.condition.has_side_effects(compressor)||this.body&&this.body.has_side_effects(compressor)||this.alternative&&this.alternative.has_side_effects(compressor)});def(AST_LabeledStatement,function(compressor){return this.body.has_side_effects(compressor)});def(AST_SimpleStatement,function(compressor){return this.body.has_side_effects(compressor)});def(AST_Lambda,return_false);def(AST_Binary,function(compressor){return this.left.has_side_effects(compressor)||this.right.has_side_effects(compressor)});def(AST_Assign,return_true);def(AST_Conditional,function(compressor){return this.condition.has_side_effects(compressor)||this.consequent.has_side_effects(compressor)||this.alternative.has_side_effects(compressor)});def(AST_Unary,function(compressor){return unary_side_effects(this.operator)||this.expression.has_side_effects(compressor)});def(AST_SymbolRef,function(compressor){return!this.is_declared(compressor)});def(AST_SymbolDeclaration,return_false);def(AST_Object,function(compressor){return any(this.properties,compressor)});def(AST_ObjectProperty,function(compressor){return this.value.has_side_effects(compressor)});def(AST_Array,function(compressor){return any(this.elements,compressor)});def(AST_Dot,function(compressor){return this.expression.may_throw_on_access(compressor)||this.expression.has_side_effects(compressor)});def(AST_Sub,function(compressor){return this.expression.may_throw_on_access(compressor)||this.expression.has_side_effects(compressor)||this.property.has_side_effects(compressor)});def(AST_Sequence,function(compressor){return any(this.expressions,compressor)});def(AST_Definitions,function(compressor){return any(this.definitions,compressor)});def(AST_VarDef,function(compressor){return this.value})})(function(node,func){node.DEFMETHOD("has_side_effects",func)});(function(def){def(AST_Node,return_true);def(AST_Constant,return_false);def(AST_EmptyStatement,return_false);def(AST_Lambda,return_false);def(AST_SymbolDeclaration,return_false);def(AST_This,return_false);function any(list,compressor){for(var i=list.length;--i>=0;)if(list[i].may_throw(compressor))return true;return false}def(AST_Array,function(compressor){return any(this.elements,compressor)});def(AST_Assign,function(compressor){if(this.right.may_throw(compressor))return true;if(!compressor.has_directive("use strict")&&this.operator=="="&&this.left instanceof AST_SymbolRef){return false}return this.left.may_throw(compressor)});def(AST_Binary,function(compressor){return this.left.may_throw(compressor)||this.right.may_throw(compressor)});def(AST_Block,function(compressor){return any(this.body,compressor)});def(AST_Call,function(compressor){if(any(this.args,compressor))return true;if(this.is_expr_pure(compressor))return false;if(this.expression.may_throw(compressor))return true;return!(this.expression instanceof AST_Lambda)||any(this.expression.body,compressor)});def(AST_Case,function(compressor){return this.expression.may_throw(compressor)||any(this.body,compressor)});def(AST_Conditional,function(compressor){return this.condition.may_throw(compressor)||this.consequent.may_throw(compressor)||this.alternative.may_throw(compressor)});def(AST_Definitions,function(compressor){return any(this.definitions,compressor)});def(AST_Dot,function(compressor){return this.expression.may_throw_on_access(compressor)||this.expression.may_throw(compressor)});def(AST_If,function(compressor){return this.condition.may_throw(compressor)||this.body&&this.body.may_throw(compressor)||this.alternative&&this.alternative.may_throw(compressor)});def(AST_LabeledStatement,function(compressor){return this.body.may_throw(compressor)});def(AST_Object,function(compressor){return any(this.properties,compressor)});def(AST_ObjectProperty,function(compressor){return this.value.may_throw(compressor)});def(AST_Return,function(compressor){return this.value&&this.value.may_throw(compressor)});def(AST_Sequence,function(compressor){return any(this.expressions,compressor)});def(AST_SimpleStatement,function(compressor){return this.body.may_throw(compressor)});def(AST_Sub,function(compressor){return this.expression.may_throw_on_access(compressor)||this.expression.may_throw(compressor)||this.property.may_throw(compressor)});def(AST_Switch,function(compressor){return this.expression.may_throw(compressor)||any(this.body,compressor)});def(AST_SymbolRef,function(compressor){return!this.is_declared(compressor)});def(AST_Try,function(compressor){return this.bcatch?this.bcatch.may_throw(compressor):any(this.body,compressor)||this.bfinally&&this.bfinally.may_throw(compressor)});def(AST_Unary,function(compressor){if(this.operator=="typeof"&&this.expression instanceof AST_SymbolRef)return false;return this.expression.may_throw(compressor)});def(AST_VarDef,function(compressor){if(!this.value)return false;return this.value.may_throw(compressor)})})(function(node,func){node.DEFMETHOD("may_throw",func)});(function(def){function all(list){for(var i=list.length;--i>=0;)if(!list[i].is_constant_expression())return false;return true}def(AST_Node,return_false);def(AST_Constant,return_true);def(AST_Lambda,function(scope){var self=this;var result=true;self.walk(new TreeWalker(function(node){if(!result)return true;if(node instanceof AST_SymbolRef){if(self.inlined){result=false;return true}var def=node.definition();if(member(def,self.enclosed)&&!self.variables.has(def.name)){if(scope){var scope_def=scope.find_variable(node);if(def.undeclared?!scope_def:scope_def===def){result="f";return true}}result=false}return true}}));return result});def(AST_Unary,function(){return this.expression.is_constant_expression()});def(AST_Binary,function(){return this.left.is_constant_expression()&&this.right.is_constant_expression()});def(AST_Array,function(){return all(this.elements)});def(AST_Object,function(){return all(this.properties)});def(AST_ObjectProperty,function(){return this.value.is_constant_expression()})})(function(node,func){node.DEFMETHOD("is_constant_expression",func)});function aborts(thing){return thing&&thing.aborts()}(function(def){def(AST_Statement,return_null);def(AST_Jump,return_this);function block_aborts(){var n=this.body.length;return n>0&&aborts(this.body[n-1])}def(AST_BlockStatement,block_aborts);def(AST_SwitchBranch,block_aborts);def(AST_If,function(){return this.alternative&&aborts(this.body)&&aborts(this.alternative)&&this})})(function(node,func){node.DEFMETHOD("aborts",func)});OPT(AST_Directive,function(self,compressor){if(compressor.has_directive(self.value)!==self){return make_node(AST_EmptyStatement,self)}return self});OPT(AST_Debugger,function(self,compressor){if(compressor.option("drop_debugger"))return make_node(AST_EmptyStatement,self);return self});OPT(AST_LabeledStatement,function(self,compressor){if(self.body instanceof AST_Break&&compressor.loopcontrol_target(self.body)===self.body){return make_node(AST_EmptyStatement,self)}return self.label.references.length==0?self.body:self});OPT(AST_Block,function(self,compressor){tighten_body(self.body,compressor);return self});OPT(AST_BlockStatement,function(self,compressor){tighten_body(self.body,compressor);switch(self.body.length){case 1:return self.body[0];case 0:return make_node(AST_EmptyStatement,self)}return self});OPT(AST_Lambda,function(self,compressor){tighten_body(self.body,compressor);if(compressor.option("side_effects")&&self.body.length==1&&self.body[0]===compressor.has_directive("use strict")){self.body.length=0}return self});AST_Scope.DEFMETHOD("drop_unused",function(compressor){if(!compressor.option("unused"))return;if(compressor.has_directive("use asm"))return;var self=this;if(self.uses_eval||self.uses_with)return;var drop_funcs=!(self instanceof AST_Toplevel)||compressor.toplevel.funcs;var drop_vars=!(self instanceof AST_Toplevel)||compressor.toplevel.vars;var assign_as_unused=/keep_assign/.test(compressor.option("unused"))?return_false:function(node,props){var sym;if(node instanceof AST_Assign&&(node.write_only||node.operator=="=")){sym=node.left}else if(node instanceof AST_Unary&&node.write_only){sym=node.expression}if(/strict/.test(compressor.option("pure_getters"))){while(sym instanceof AST_PropAccess&&!sym.expression.may_throw_on_access(compressor)){if(sym instanceof AST_Sub)props.unshift(sym.property);sym=sym.expression}}return sym};var in_use=[];var in_use_ids=Object.create(null);var fixed_ids=Object.create(null);var value_read=Object.create(null);var value_modified=Object.create(null);if(self instanceof AST_Toplevel&&compressor.top_retain){self.variables.each(function(def){if(compressor.top_retain(def)&&!(def.id in in_use_ids)){in_use_ids[def.id]=true;in_use.push(def)}})}var var_defs_by_id=new Dictionary;var initializations=new Dictionary;var scope=this;var tw=new TreeWalker(function(node,descend){if(node===self)return;if(node instanceof AST_Defun){var node_def=node.name.definition();if(!drop_funcs&&scope===self){if(!(node_def.id in in_use_ids)){in_use_ids[node_def.id]=true;in_use.push(node_def)}}initializations.add(node_def.id,node);return true}if(node instanceof AST_SymbolFunarg&&scope===self){var_defs_by_id.add(node.definition().id,node)}if(node instanceof AST_Definitions&&scope===self){node.definitions.forEach(function(def){var node_def=def.name.definition();if(def.name instanceof AST_SymbolVar){var_defs_by_id.add(node_def.id,def)}if(!drop_vars){if(!(node_def.id in in_use_ids)){in_use_ids[node_def.id]=true;in_use.push(node_def)}}if(def.value){initializations.add(node_def.id,def.value);if(def.value.has_side_effects(compressor)){def.value.walk(tw)}if(!node_def.chained&&def.name.fixed_value()===def.value){fixed_ids[node_def.id]=def}}});return true}return scan_ref_scoped(node,descend)});self.walk(tw);tw=new TreeWalker(scan_ref_scoped);for(var i=0;i<in_use.length;i++){var init=initializations.get(in_use[i].id);if(init)init.forEach(function(init){init.walk(tw)})}var tt=new TreeTransformer(function before(node,descend,in_list){var parent=tt.parent();if(drop_vars){var props=[],sym=assign_as_unused(node,props);if(sym instanceof AST_SymbolRef){var def=sym.definition();var in_use=def.id in in_use_ids;var value=null;if(node instanceof AST_Assign){if(!in_use||node.left===sym&&def.id in fixed_ids&&fixed_ids[def.id]!==node){value=node.right}}else if(!in_use){value=make_node(AST_Number,node,{value:0})}if(value){props.push(value);return maintain_this_binding(parent,node,make_sequence(node,props.map(function(prop){return prop.transform(tt)})))}}}if(scope!==self)return;if(node instanceof AST_Function&&node.name&&!compressor.option("keep_fnames")){var def=node.name.definition();if(!(def.id in in_use_ids)||def.orig.length>1)node.name=null}if(node instanceof AST_Lambda&&!(node instanceof AST_Accessor)){var trim=!compressor.option("keep_fargs");for(var a=node.argnames,i=a.length;--i>=0;){var sym=a[i];if(!(sym.definition().id in in_use_ids)){sym.__unused=true;if(trim){a.pop();compressor[sym.unreferenced()?"warn":"info"]("Dropping unused function argument {name} [{file}:{line},{col}]",template(sym))}}else{trim=false}}}if(drop_funcs&&node instanceof AST_Defun&&node!==self){var def=node.name.definition();if(!(def.id in in_use_ids)){compressor[node.name.unreferenced()?"warn":"info"]("Dropping unused function {name} [{file}:{line},{col}]",template(node.name));def.eliminated++;return make_node(AST_EmptyStatement,node)}}if(node instanceof AST_Definitions&&!(parent instanceof AST_ForIn&&parent.init===node)){var body=[],head=[],tail=[];var side_effects=[];node.definitions.forEach(function(def){if(def.value)def.value=def.value.transform(tt);var sym=def.name.definition();if(!drop_vars||sym.id in in_use_ids){if(def.value&&sym.id in fixed_ids&&fixed_ids[sym.id]!==def){def.value=def.value.drop_side_effect_free(compressor)}if(def.name instanceof AST_SymbolVar){var var_defs=var_defs_by_id.get(sym.id);if(var_defs.length>1&&(!def.value||sym.orig.indexOf(def.name)>sym.eliminated)){compressor.warn("Dropping duplicated definition of variable {name} [{file}:{line},{col}]",template(def.name));if(def.value){var ref=make_node(AST_SymbolRef,def.name,def.name);sym.references.push(ref);var assign=make_node(AST_Assign,def,{operator:"=",left:ref,right:def.value});if(fixed_ids[sym.id]===def){fixed_ids[sym.id]=assign}side_effects.push(assign.transform(tt))}remove(var_defs,def);sym.eliminated++;return}}if(def.value){if(side_effects.length>0){if(tail.length>0){side_effects.push(def.value);def.value=make_sequence(def.value,side_effects)}else{body.push(make_node(AST_SimpleStatement,node,{body:make_sequence(node,side_effects)}))}side_effects=[]}tail.push(def)}else{head.push(def)}}else if(sym.orig[0]instanceof AST_SymbolCatch){var value=def.value&&def.value.drop_side_effect_free(compressor);if(value)side_effects.push(value);def.value=null;head.push(def)}else{var value=def.value&&def.value.drop_side_effect_free(compressor);if(value){compressor.warn("Side effects in initialization of unused variable {name} [{file}:{line},{col}]",template(def.name));side_effects.push(value)}else{compressor[def.name.unreferenced()?"warn":"info"]("Dropping unused variable {name} [{file}:{line},{col}]",template(def.name))}sym.eliminated++}});if(head.length>0||tail.length>0){node.definitions=head.concat(tail);body.push(node)}if(side_effects.length>0){body.push(make_node(AST_SimpleStatement,node,{body:make_sequence(node,side_effects)}))}switch(body.length){case 0:return in_list?MAP.skip:make_node(AST_EmptyStatement,node);case 1:return body[0];default:return in_list?MAP.splice(body):make_node(AST_BlockStatement,node,{body:body})}}if(node instanceof AST_For){descend(node,this);var block;if(node.init instanceof AST_BlockStatement){block=node.init;node.init=block.body.pop();block.body.push(node)}if(node.init instanceof AST_SimpleStatement){node.init=node.init.body}else if(is_empty(node.init)){node.init=null}return!block?node:in_list?MAP.splice(block.body):block}if(node instanceof AST_LabeledStatement&&node.body instanceof AST_For){descend(node,this);if(node.body instanceof AST_BlockStatement){var block=node.body;node.body=block.body.pop();block.body.push(node);return in_list?MAP.splice(block.body):block}return node}if(node instanceof AST_Scope){var save_scope=scope;scope=node;descend(node,this);scope=save_scope;return node}function template(sym){return{name:sym.name,file:sym.start.file,line:sym.start.line,col:sym.start.col}}});self.transform(tt);function verify_safe_usage(def,read,modified){if(def.id in in_use_ids)return;if(read&&modified){in_use_ids[def.id]=true;in_use.push(def)}else{value_read[def.id]=read;value_modified[def.id]=modified}}function scan_ref_scoped(node,descend){var node_def,props=[],sym=assign_as_unused(node,props);if(sym instanceof AST_SymbolRef&&self.variables.get(sym.name)===(node_def=sym.definition())){props.forEach(function(prop){prop.walk(tw)});if(node instanceof AST_Assign){node.right.walk(tw);if(node.left===sym){if(!node_def.chained&&sym.fixed_value()===node.right){fixed_ids[node_def.id]=node}if(!node.write_only){verify_safe_usage(node_def,true,value_modified[node_def.id])}}else{var fixed=sym.fixed_value();if(!fixed||!fixed.is_constant()){verify_safe_usage(node_def,value_read[node_def.id],true)}}}return true}if(node instanceof AST_SymbolRef){node_def=node.definition();if(!(node_def.id in in_use_ids)){in_use_ids[node_def.id]=true;in_use.push(node_def)}return true}if(node instanceof AST_Scope){var save_scope=scope;scope=node;descend();scope=save_scope;return true}}});AST_Scope.DEFMETHOD("hoist_declarations",function(compressor){var self=this;if(compressor.has_directive("use asm"))return self;var hoist_funs=compressor.option("hoist_funs");var hoist_vars=compressor.option("hoist_vars");if(hoist_funs||hoist_vars){var dirs=[];var hoisted=[];var vars=new Dictionary,vars_found=0,var_decl=0;self.walk(new TreeWalker(function(node){if(node instanceof AST_Scope&&node!==self)return true;if(node instanceof AST_Var){++var_decl;return true}}));hoist_vars=hoist_vars&&var_decl>1;var tt=new TreeTransformer(function before(node){if(node!==self){if(node instanceof AST_Directive){dirs.push(node);return make_node(AST_EmptyStatement,node)}if(hoist_funs&&node instanceof AST_Defun&&(tt.parent()===self||!compressor.has_directive("use strict"))){hoisted.push(node);return make_node(AST_EmptyStatement,node)}if(hoist_vars&&node instanceof AST_Var){node.definitions.forEach(function(def){vars.set(def.name.name,def);++vars_found});var seq=node.to_assignments(compressor);var p=tt.parent();if(p instanceof AST_ForIn&&p.init===node){if(seq==null){var def=node.definitions[0].name;return make_node(AST_SymbolRef,def,def)}return seq}if(p instanceof AST_For&&p.init===node){return seq}if(!seq)return make_node(AST_EmptyStatement,node);return make_node(AST_SimpleStatement,node,{body:seq})}if(node instanceof AST_Scope)return node}});self=self.transform(tt);if(vars_found>0){var defs=[];vars.each(function(def,name){if(self instanceof AST_Lambda&&find_if(function(x){return x.name==def.name.name},self.argnames)){vars.del(name)}else{def=def.clone();def.value=null;defs.push(def);vars.set(name,def)}});if(defs.length>0){for(var i=0;i<self.body.length;){if(self.body[i]instanceof AST_SimpleStatement){var expr=self.body[i].body,sym,assign;if(expr instanceof AST_Assign&&expr.operator=="="&&(sym=expr.left)instanceof AST_Symbol&&vars.has(sym.name)){var def=vars.get(sym.name);if(def.value)break;def.value=expr.right;remove(defs,def);defs.push(def);self.body.splice(i,1);continue}if(expr instanceof AST_Sequence&&(assign=expr.expressions[0])instanceof AST_Assign&&assign.operator=="="&&(sym=assign.left)instanceof AST_Symbol&&vars.has(sym.name)){var def=vars.get(sym.name);if(def.value)break;def.value=assign.right;remove(defs,def);defs.push(def);self.body[i].body=make_sequence(expr,expr.expressions.slice(1));continue}}if(self.body[i]instanceof AST_EmptyStatement){self.body.splice(i,1);continue}if(self.body[i]instanceof AST_BlockStatement){var tmp=[i,1].concat(self.body[i].body);self.body.splice.apply(self.body,tmp);continue}break}defs=make_node(AST_Var,self,{definitions:defs});hoisted.push(defs)}}self.body=dirs.concat(hoisted,self.body)}return self});AST_Scope.DEFMETHOD("var_names",function(){var var_names=this._var_names;if(!var_names){this._var_names=var_names=Object.create(null);this.enclosed.forEach(function(def){var_names[def.name]=true});this.variables.each(function(def,name){var_names[name]=true})}return var_names});AST_Scope.DEFMETHOD("make_var_name",function(prefix){var var_names=this.var_names();prefix=prefix.replace(/(?:^[^a-z_$]|[^a-z0-9_$])/gi,"_");var name=prefix;for(var i=0;var_names[name];i++)name=prefix+"$"+i;var_names[name]=true;return name});AST_Scope.DEFMETHOD("hoist_properties",function(compressor){var self=this;if(!compressor.option("hoist_props")||compressor.has_directive("use asm"))return self;var top_retain=self instanceof AST_Toplevel&&compressor.top_retain||return_false;var defs_by_id=Object.create(null);return self.transform(new TreeTransformer(function(node,descend){if(node instanceof AST_VarDef){var sym=node.name,def,value;if(sym.scope===self&&(def=sym.definition()).escaped!=1&&!def.single_use&&!def.direct_access&&!top_retain(def)&&(value=sym.fixed_value())===node.value&&value instanceof AST_Object){descend(node,this);var defs=new Dictionary;var assignments=[];value.properties.forEach(function(prop){assignments.push(make_node(AST_VarDef,node,{name:make_sym(prop.key),value:prop.value}))});defs_by_id[def.id]=defs;return MAP.splice(assignments)}}if(node instanceof AST_PropAccess&&node.expression instanceof AST_SymbolRef){var defs=defs_by_id[node.expression.definition().id];if(defs){var def=defs.get(get_value(node.property));var sym=make_node(AST_SymbolRef,node,{name:def.name,scope:node.expression.scope,thedef:def});sym.reference({});return sym}}function make_sym(key){var new_var=make_node(sym.CTOR,sym,{name:self.make_var_name(sym.name+"_"+key),scope:self});var def=self.def_variable(new_var);defs.set(key,def);self.enclosed.push(def);return new_var}}))});(function(def){function trim(nodes,compressor,first_in_statement){var len=nodes.length;if(!len)return null;var ret=[],changed=false;for(var i=0;i<len;i++){var node=nodes[i].drop_side_effect_free(compressor,first_in_statement);changed|=node!==nodes[i];if(node){ret.push(node);first_in_statement=false}}return changed?ret.length?ret:null:nodes}def(AST_Node,return_this);def(AST_Constant,return_null);def(AST_This,return_null);def(AST_Call,function(compressor,first_in_statement){if(!this.is_expr_pure(compressor)){if(this.expression.is_call_pure(compressor)){var exprs=this.args.slice();exprs.unshift(this.expression.expression);exprs=trim(exprs,compressor,first_in_statement);return exprs&&make_sequence(this,exprs)}if(this.expression instanceof AST_Function&&(!this.expression.name||!this.expression.name.definition().references.length)){var node=this.clone();var exp=node.expression;exp.process_expression(false,compressor);exp.walk(new TreeWalker(function(node){if(node instanceof AST_Return&&node.value){node.value=node.value.drop_side_effect_free(compressor);return true}if(node instanceof AST_Scope&&node!==exp)return true}));return node}return this}if(this.pure){compressor.warn("Dropping __PURE__ call [{file}:{line},{col}]",this.start)}var args=trim(this.args,compressor,first_in_statement);return args&&make_sequence(this,args)});def(AST_Accessor,return_null);def(AST_Function,return_null);def(AST_Binary,function(compressor,first_in_statement){var right=this.right.drop_side_effect_free(compressor);if(!right)return this.left.drop_side_effect_free(compressor,first_in_statement);if(lazy_op(this.operator)){if(right===this.right)return this;var node=this.clone();node.right=right;return node}else{var left=this.left.drop_side_effect_free(compressor,first_in_statement);if(!left)return this.right.drop_side_effect_free(compressor,first_in_statement);return make_sequence(this,[left,right])}});def(AST_Assign,function(compressor){var left=this.left;if(left.has_side_effects(compressor)||compressor.has_directive("use strict")&&left instanceof AST_PropAccess&&left.expression.is_constant()){return this}this.write_only=true;if(root_expr(left).is_constant_expression(compressor.find_parent(AST_Scope))){return this.right.drop_side_effect_free(compressor)}return this});def(AST_Conditional,function(compressor){var consequent=this.consequent.drop_side_effect_free(compressor);var alternative=this.alternative.drop_side_effect_free(compressor);if(consequent===this.consequent&&alternative===this.alternative)return this;if(!consequent)return alternative?make_node(AST_Binary,this,{operator:"||",left:this.condition,right:alternative}):this.condition.drop_side_effect_free(compressor);if(!alternative)return make_node(AST_Binary,this,{operator:"&&",left:this.condition,right:consequent});var node=this.clone();node.consequent=consequent;node.alternative=alternative;return node});def(AST_Unary,function(compressor,first_in_statement){if(unary_side_effects(this.operator)){this.write_only=!this.expression.has_side_effects(compressor);return this}if(this.operator=="typeof"&&this.expression instanceof AST_SymbolRef)return null;var expression=this.expression.drop_side_effect_free(compressor,first_in_statement);if(first_in_statement&&expression&&is_iife_call(expression)){if(expression===this.expression&&this.operator=="!")return this;return expression.negate(compressor,first_in_statement)}return expression});def(AST_SymbolRef,function(compressor){return this.is_declared(compressor)?null:this});def(AST_Object,function(compressor,first_in_statement){var values=trim(this.properties,compressor,first_in_statement);return values&&make_sequence(this,values)});def(AST_ObjectProperty,function(compressor,first_in_statement){return this.value.drop_side_effect_free(compressor,first_in_statement)});def(AST_Array,function(compressor,first_in_statement){var values=trim(this.elements,compressor,first_in_statement);return values&&make_sequence(this,values)});def(AST_Dot,function(compressor,first_in_statement){if(this.expression.may_throw_on_access(compressor))return this;return this.expression.drop_side_effect_free(compressor,first_in_statement)});def(AST_Sub,function(compressor,first_in_statement){if(this.expression.may_throw_on_access(compressor))return this;var expression=this.expression.drop_side_effect_free(compressor,first_in_statement);if(!expression)return this.property.drop_side_effect_free(compressor,first_in_statement);var property=this.property.drop_side_effect_free(compressor);if(!property)return expression;return make_sequence(this,[expression,property])});def(AST_Sequence,function(compressor){var last=this.tail_node();var expr=last.drop_side_effect_free(compressor);if(expr===last)return this;var expressions=this.expressions.slice(0,-1);if(expr)expressions.push(expr);return make_sequence(this,expressions)})})(function(node,func){node.DEFMETHOD("drop_side_effect_free",func)});OPT(AST_SimpleStatement,function(self,compressor){if(compressor.option("side_effects")){var body=self.body;var node=body.drop_side_effect_free(compressor,true);if(!node){compressor.warn("Dropping side-effect-free statement [{file}:{line},{col}]",self.start);return make_node(AST_EmptyStatement,self)}if(node!==body){return make_node(AST_SimpleStatement,self,{body:node})}}return self});OPT(AST_While,function(self,compressor){return compressor.option("loops")?make_node(AST_For,self,self).optimize(compressor):self});OPT(AST_Do,function(self,compressor){if(!compressor.option("loops"))return self;var cond=self.condition.tail_node().evaluate(compressor);if(!(cond instanceof AST_Node)){if(cond)return make_node(AST_For,self,{body:make_node(AST_BlockStatement,self.body,{body:[self.body,make_node(AST_SimpleStatement,self.condition,{body:self.condition})]})}).optimize(compressor);var has_loop_control=false;var tw=new TreeWalker(function(node){if(node instanceof AST_Scope||has_loop_control)return true;if(node instanceof AST_LoopControl&&tw.loopcontrol_target(node)===self)return has_loop_control=true});var parent=compressor.parent();(parent instanceof AST_LabeledStatement?parent:self).walk(tw);if(!has_loop_control)return make_node(AST_BlockStatement,self.body,{body:[self.body,make_node(AST_SimpleStatement,self.condition,{body:self.condition})]}).optimize(compressor)}if(self.body instanceof AST_SimpleStatement)return make_node(AST_For,self,{condition:make_sequence(self.condition,[self.body.body,self.condition]),body:make_node(AST_EmptyStatement,self)}).optimize(compressor);return self});function if_break_in_loop(self,compressor){var first=self.body instanceof AST_BlockStatement?self.body.body[0]:self.body;if(compressor.option("dead_code")&&is_break(first)){var body=[];if(self.init instanceof AST_Statement){body.push(self.init)}else if(self.init){body.push(make_node(AST_SimpleStatement,self.init,{body:self.init}))}if(self.condition){body.push(make_node(AST_SimpleStatement,self.condition,{body:self.condition}))}extract_declarations_from_unreachable_code(compressor,self.body,body);return make_node(AST_BlockStatement,self,{body:body})}if(first instanceof AST_If){if(is_break(first.body)){if(self.condition){self.condition=make_node(AST_Binary,self.condition,{left:self.condition,operator:"&&",right:first.condition.negate(compressor)})}else{self.condition=first.condition.negate(compressor)}drop_it(first.alternative)}else if(is_break(first.alternative)){if(self.condition){self.condition=make_node(AST_Binary,self.condition,{left:self.condition,operator:"&&",right:first.condition})}else{self.condition=first.condition}drop_it(first.body)}}return self;function is_break(node){return node instanceof AST_Break&&compressor.loopcontrol_target(node)===compressor.self()}function drop_it(rest){rest=as_statement_array(rest);if(self.body instanceof AST_BlockStatement){self.body=self.body.clone();self.body.body=rest.concat(self.body.body.slice(1));self.body=self.body.transform(compressor)}else{self.body=make_node(AST_BlockStatement,self.body,{body:rest}).transform(compressor)}self=if_break_in_loop(self,compressor)}}OPT(AST_For,function(self,compressor){if(!compressor.option("loops"))return self;if(compressor.option("side_effects")&&self.init){self.init=self.init.drop_side_effect_free(compressor)}if(self.condition){var cond=self.condition.evaluate(compressor);if(!(cond instanceof AST_Node)){if(cond)self.condition=null;else if(!compressor.option("dead_code")){var orig=self.condition;self.condition=make_node_from_constant(cond,self.condition);self.condition=best_of_expression(self.condition.transform(compressor),orig)}}if(compressor.option("dead_code")){if(cond instanceof AST_Node)cond=self.condition.tail_node().evaluate(compressor);if(!cond){var body=[];extract_declarations_from_unreachable_code(compressor,self.body,body);if(self.init instanceof AST_Statement){body.push(self.init)}else if(self.init){body.push(make_node(AST_SimpleStatement,self.init,{body:self.init}))}body.push(make_node(AST_SimpleStatement,self.condition,{body:self.condition}));return make_node(AST_BlockStatement,self,{body:body}).optimize(compressor)}}}return if_break_in_loop(self,compressor)});OPT(AST_If,function(self,compressor){if(is_empty(self.alternative))self.alternative=null;if(!compressor.option("conditionals"))return self;var cond=self.condition.evaluate(compressor);if(!compressor.option("dead_code")&&!(cond instanceof AST_Node)){var orig=self.condition;self.condition=make_node_from_constant(cond,orig);self.condition=best_of_expression(self.condition.transform(compressor),orig)}if(compressor.option("dead_code")){if(cond instanceof AST_Node)cond=self.condition.tail_node().evaluate(compressor);if(!cond){compressor.warn("Condition always false [{file}:{line},{col}]",self.condition.start);var body=[];extract_declarations_from_unreachable_code(compressor,self.body,body);body.push(make_node(AST_SimpleStatement,self.condition,{body:self.condition}));if(self.alternative)body.push(self.alternative);return make_node(AST_BlockStatement,self,{body:body}).optimize(compressor)}else if(!(cond instanceof AST_Node)){compressor.warn("Condition always true [{file}:{line},{col}]",self.condition.start);var body=[];if(self.alternative){extract_declarations_from_unreachable_code(compressor,self.alternative,body)}body.push(make_node(AST_SimpleStatement,self.condition,{body:self.condition}));body.push(self.body);return make_node(AST_BlockStatement,self,{body:body}).optimize(compressor)}}var negated=self.condition.negate(compressor);var self_condition_length=self.condition.print_to_string().length;var negated_length=negated.print_to_string().length;var negated_is_best=negated_length<self_condition_length;if(self.alternative&&negated_is_best){negated_is_best=false;self.condition=negated;var tmp=self.body;self.body=self.alternative||make_node(AST_EmptyStatement,self);self.alternative=tmp}if(is_empty(self.body)&&is_empty(self.alternative)){return make_node(AST_SimpleStatement,self.condition,{body:self.condition.clone()}).optimize(compressor)}if(self.body instanceof AST_SimpleStatement&&self.alternative instanceof AST_SimpleStatement){return make_node(AST_SimpleStatement,self,{body:make_node(AST_Conditional,self,{condition:self.condition,consequent:self.body.body,alternative:self.alternative.body})}).optimize(compressor)}if(is_empty(self.alternative)&&self.body instanceof AST_SimpleStatement){if(self_condition_length===negated_length&&!negated_is_best&&self.condition instanceof AST_Binary&&self.condition.operator=="||"){negated_is_best=true}if(negated_is_best)return make_node(AST_SimpleStatement,self,{body:make_node(AST_Binary,self,{operator:"||",left:negated,right:self.body.body})}).optimize(compressor);return make_node(AST_SimpleStatement,self,{body:make_node(AST_Binary,self,{operator:"&&",left:self.condition,right:self.body.body})}).optimize(compressor)}if(self.body instanceof AST_EmptyStatement&&self.alternative instanceof AST_SimpleStatement){return make_node(AST_SimpleStatement,self,{body:make_node(AST_Binary,self,{operator:"||",left:self.condition,right:self.alternative.body})}).optimize(compressor)}if(self.body instanceof AST_Exit&&self.alternative instanceof AST_Exit&&self.body.TYPE==self.alternative.TYPE){return make_node(self.body.CTOR,self,{value:make_node(AST_Conditional,self,{condition:self.condition,consequent:self.body.value||make_node(AST_Undefined,self.body),alternative:self.alternative.value||make_node(AST_Undefined,self.alternative)}).transform(compressor)}).optimize(compressor)}if(self.body instanceof AST_If&&!self.body.alternative&&!self.alternative){self=make_node(AST_If,self,{condition:make_node(AST_Binary,self.condition,{operator:"&&",left:self.condition,right:self.body.condition}),body:self.body.body,alternative:null})}if(aborts(self.body)){if(self.alternative){var alt=self.alternative;self.alternative=null;return make_node(AST_BlockStatement,self,{body:[self,alt]}).optimize(compressor)}}if(aborts(self.alternative)){var body=self.body;self.body=self.alternative;self.condition=negated_is_best?negated:self.condition.negate(compressor);self.alternative=null;return make_node(AST_BlockStatement,self,{body:[self,body]}).optimize(compressor)}return self});OPT(AST_Switch,function(self,compressor){if(!compressor.option("switches"))return self;var branch;var value=self.expression.evaluate(compressor);if(!(value instanceof AST_Node)){var orig=self.expression;self.expression=make_node_from_constant(value,orig);self.expression=best_of_expression(self.expression.transform(compressor),orig)}if(!compressor.option("dead_code"))return self;if(value instanceof AST_Node){value=self.expression.tail_node().evaluate(compressor)}var decl=[];var body=[];var default_branch;var exact_match;for(var i=0,len=self.body.length;i<len&&!exact_match;i++){branch=self.body[i];if(branch instanceof AST_Default){if(!default_branch){default_branch=branch}else{eliminate_branch(branch,body[body.length-1])}}else if(!(value instanceof AST_Node)){var exp=branch.expression.evaluate(compressor);if(!(exp instanceof AST_Node)&&exp!==value){eliminate_branch(branch,body[body.length-1]);continue}if(exp instanceof AST_Node)exp=branch.expression.tail_node().evaluate(compressor);if(exp===value){exact_match=branch;if(default_branch){var default_index=body.indexOf(default_branch);body.splice(default_index,1);eliminate_branch(default_branch,body[default_index-1]);default_branch=null}}}if(aborts(branch)){var prev=body[body.length-1];if(aborts(prev)&&prev.body.length==branch.body.length&&make_node(AST_BlockStatement,prev,prev).equivalent_to(make_node(AST_BlockStatement,branch,branch))){prev.body=[]}}body.push(branch)}while(i<len)eliminate_branch(self.body[i++],body[body.length-1]);if(body.length>0){body[0].body=decl.concat(body[0].body)}self.body=body;while(branch=body[body.length-1]){var stat=branch.body[branch.body.length-1];if(stat instanceof AST_Break&&compressor.loopcontrol_target(stat)===self)branch.body.pop();if(branch.body.length||branch instanceof AST_Case&&(default_branch||branch.expression.has_side_effects(compressor)))break;if(body.pop()===default_branch)default_branch=null}if(body.length==0){return make_node(AST_BlockStatement,self,{body:decl.concat(make_node(AST_SimpleStatement,self.expression,{body:self.expression}))}).optimize(compressor)}if(body.length==1&&(body[0]===exact_match||body[0]===default_branch)){var has_break=false;var tw=new TreeWalker(function(node){if(has_break||node instanceof AST_Lambda||node instanceof AST_SimpleStatement)return true;if(node instanceof AST_Break&&tw.loopcontrol_target(node)===self)has_break=true});self.walk(tw);if(!has_break){var statements=body[0].body.slice();var exp=body[0].expression;if(exp)statements.unshift(make_node(AST_SimpleStatement,exp,{body:exp}));statements.unshift(make_node(AST_SimpleStatement,self.expression,{body:self.expression}));return make_node(AST_BlockStatement,self,{body:statements}).optimize(compressor)}}return self;function eliminate_branch(branch,prev){if(prev&&!aborts(prev)){prev.body=prev.body.concat(branch.body)}else{extract_declarations_from_unreachable_code(compressor,branch,decl)}}});OPT(AST_Try,function(self,compressor){tighten_body(self.body,compressor);if(self.bcatch&&self.bfinally&&all(self.bfinally.body,is_empty))self.bfinally=null;if(compressor.option("dead_code")&&all(self.body,is_empty)){var body=[];if(self.bcatch){extract_declarations_from_unreachable_code(compressor,self.bcatch,body);body.forEach(function(stat){if(!(stat instanceof AST_Definitions))return;stat.definitions.forEach(function(var_def){var def=var_def.name.definition().redefined();if(!def)return;var_def.name=var_def.name.clone();var_def.name.thedef=def})})}if(self.bfinally)body=body.concat(self.bfinally.body);return make_node(AST_BlockStatement,self,{body:body}).optimize(compressor)}return self});AST_Definitions.DEFMETHOD("remove_initializers",function(){this.definitions.forEach(function(def){def.value=null})});AST_Definitions.DEFMETHOD("to_assignments",function(compressor){var reduce_vars=compressor.option("reduce_vars");var assignments=this.definitions.reduce(function(a,def){if(def.value){var name=make_node(AST_SymbolRef,def.name,def.name);a.push(make_node(AST_Assign,def,{operator:"=",left:name,right:def.value}));if(reduce_vars)name.definition().fixed=false}def=def.name.definition();def.eliminated++;def.replaced--;return a},[]);if(assignments.length==0)return null;return make_sequence(this,assignments)});OPT(AST_Definitions,function(self,compressor){if(self.definitions.length==0)return make_node(AST_EmptyStatement,self);return self});OPT(AST_Call,function(self,compressor){var exp=self.expression;var fn=exp;if(compressor.option("reduce_vars")&&fn instanceof AST_SymbolRef){fn=fn.fixed_value()}var is_func=fn instanceof AST_Lambda;if(compressor.option("unused")&&is_func&&!fn.uses_arguments&&!fn.uses_eval){var pos=0,last=0;for(var i=0,len=self.args.length;i<len;i++){var trim=i>=fn.argnames.length;if(trim||fn.argnames[i].__unused){var node=self.args[i].drop_side_effect_free(compressor);if(node){self.args[pos++]=node}else if(!trim){self.args[pos++]=make_node(AST_Number,self.args[i],{value:0});continue}}else{self.args[pos++]=self.args[i]}last=pos}self.args.length=last}if(compressor.option("unsafe")){if(is_undeclared_ref(exp))switch(exp.name){case"Array":if(self.args.length!=1){return make_node(AST_Array,self,{elements:self.args}).optimize(compressor)}break;case"Object":if(self.args.length==0){return make_node(AST_Object,self,{properties:[]})}break;case"String":if(self.args.length==0)return make_node(AST_String,self,{value:""});if(self.args.length<=1)return make_node(AST_Binary,self,{left:self.args[0],operator:"+",right:make_node(AST_String,self,{value:""})}).optimize(compressor);break;case"Number":if(self.args.length==0)return make_node(AST_Number,self,{value:0});if(self.args.length==1)return make_node(AST_UnaryPrefix,self,{expression:self.args[0],operator:"+"}).optimize(compressor);case"Boolean":if(self.args.length==0)return make_node(AST_False,self);if(self.args.length==1)return make_node(AST_UnaryPrefix,self,{expression:make_node(AST_UnaryPrefix,self,{expression:self.args[0],operator:"!"}),operator:"!"}).optimize(compressor);break;case"RegExp":var params=[];if(all(self.args,function(arg){var value=arg.evaluate(compressor);params.unshift(value);return arg!==value})){try{return best_of(compressor,self,make_node(AST_RegExp,self,{value:RegExp.apply(RegExp,params)}))}catch(ex){compressor.warn("Error converting {expr} [{file}:{line},{col}]",{expr:self.print_to_string(),file:self.start.file,line:self.start.line,col:self.start.col})}}break}else if(exp instanceof AST_Dot)switch(exp.property){case"toString":if(self.args.length==0&&!exp.expression.may_throw_on_access(compressor)){return make_node(AST_Binary,self,{left:make_node(AST_String,self,{value:""}),operator:"+",right:exp.expression}).optimize(compressor)}break;case"join":if(exp.expression instanceof AST_Array)EXIT:{var separator;if(self.args.length>0){separator=self.args[0].evaluate(compressor);if(separator===self.args[0])break EXIT}var elements=[];var consts=[];exp.expression.elements.forEach(function(el){var value=el.evaluate(compressor);if(value!==el){consts.push(value)}else{if(consts.length>0){elements.push(make_node(AST_String,self,{value:consts.join(separator)}));consts.length=0}elements.push(el)}});if(consts.length>0){elements.push(make_node(AST_String,self,{value:consts.join(separator)}))}if(elements.length==0)return make_node(AST_String,self,{value:""});if(elements.length==1){if(elements[0].is_string(compressor)){return elements[0]}return make_node(AST_Binary,elements[0],{operator:"+",left:make_node(AST_String,self,{value:""}),right:elements[0]})}if(separator==""){var first;if(elements[0].is_string(compressor)||elements[1].is_string(compressor)){first=elements.shift()}else{first=make_node(AST_String,self,{value:""})}return elements.reduce(function(prev,el){return make_node(AST_Binary,el,{operator:"+",left:prev,right:el})},first).optimize(compressor)}var node=self.clone();node.expression=node.expression.clone();node.expression.expression=node.expression.expression.clone();node.expression.expression.elements=elements;return best_of(compressor,self,node)}break;case"charAt":if(exp.expression.is_string(compressor)){var arg=self.args[0];var index=arg?arg.evaluate(compressor):0;if(index!==arg){return make_node(AST_Sub,exp,{expression:exp.expression,property:make_node_from_constant(index|0,arg||exp)}).optimize(compressor)}}break;case"apply":if(self.args.length==2&&self.args[1]instanceof AST_Array){var args=self.args[1].elements.slice();args.unshift(self.args[0]);return make_node(AST_Call,self,{expression:make_node(AST_Dot,exp,{expression:exp.expression,property:"call"}),args:args}).optimize(compressor)}break;case"call":var func=exp.expression;if(func instanceof AST_SymbolRef){func=func.fixed_value()}if(func instanceof AST_Lambda&&!func.contains_this()){return make_sequence(this,[self.args[0],make_node(AST_Call,self,{expression:exp.expression,args:self.args.slice(1)})]).optimize(compressor)}break}}if(compressor.option("unsafe_Function")&&is_undeclared_ref(exp)&&exp.name=="Function"){if(self.args.length==0)return make_node(AST_Function,self,{argnames:[],body:[]});if(all(self.args,function(x){return x instanceof AST_String})){try{var code="n(function("+self.args.slice(0,-1).map(function(arg){return arg.value}).join(",")+"){"+self.args[self.args.length-1].value+"})";var ast=parse(code);var mangle={ie8:compressor.option("ie8")};ast.figure_out_scope(mangle);var comp=new Compressor(compressor.options);ast=ast.transform(comp);ast.figure_out_scope(mangle);ast.compute_char_frequency(mangle);ast.mangle_names(mangle);var fun;ast.walk(new TreeWalker(function(node){if(fun)return true;if(node instanceof AST_Lambda){fun=node;return true}}));var code=OutputStream();AST_BlockStatement.prototype._codegen.call(fun,fun,code);self.args=[make_node(AST_String,self,{value:fun.argnames.map(function(arg){return arg.print_to_string()}).join(",")}),make_node(AST_String,self.args[self.args.length-1],{value:code.get().replace(/^\{|\}$/g,"")})];return self}catch(ex){if(ex instanceof JS_Parse_Error){compressor.warn("Error parsing code passed to new Function [{file}:{line},{col}]",self.args[self.args.length-1].start);compressor.warn(ex.toString())}else{throw ex}}}}var stat=is_func&&fn.body[0];if(compressor.option("inline")&&stat instanceof AST_Return){var value=stat.value;if(!value||value.is_constant_expression()){var args=self.args.concat(value||make_node(AST_Undefined,self));return make_sequence(self,args).optimize(compressor)}}if(is_func){var def,value,scope,in_loop,level=-1;if(compressor.option("inline")&&!fn.uses_arguments&&!fn.uses_eval&&!(fn.name&&fn instanceof AST_Function)&&(value=can_flatten_body(stat))&&(exp===fn||compressor.option("unused")&&(def=exp.definition()).references.length==1&&!recursive_ref(compressor,def)&&fn.is_constant_expression(exp.scope))&&!self.pure&&!fn.contains_this()&&can_inject_symbols()){fn._squeezed=true;return make_sequence(self,flatten_fn()).optimize(compressor)}if(compressor.option("side_effects")&&all(fn.body,is_empty)){var args=self.args.concat(make_node(AST_Undefined,self));return make_sequence(self,args).optimize(compressor)}}if(compressor.option("drop_console")){if(exp instanceof AST_PropAccess){var name=exp.expression;while(name.expression){name=name.expression}if(is_undeclared_ref(name)&&name.name=="console"){return make_node(AST_Undefined,self).optimize(compressor)}}}if(compressor.option("negate_iife")&&compressor.parent()instanceof AST_SimpleStatement&&is_iife_call(self)){return self.negate(compressor,true)}var ev=self.evaluate(compressor);if(ev!==self){ev=make_node_from_constant(ev,self).optimize(compressor);return best_of(compressor,ev,self)}return self;function return_value(stat){if(!stat)return make_node(AST_Undefined,self);if(stat instanceof AST_Return){if(!stat.value)return make_node(AST_Undefined,self);return stat.value.clone(true)}if(stat instanceof AST_SimpleStatement){return make_node(AST_UnaryPrefix,stat,{operator:"void",expression:stat.body.clone(true)})}}function can_flatten_body(stat){var len=fn.body.length;if(compressor.option("inline")<3){return len==1&&return_value(stat)}stat=null;for(var i=0;i<len;i++){var line=fn.body[i];if(line instanceof AST_Var){if(stat&&!all(line.definitions,function(var_def){return!var_def.value})){return false}}else if(line instanceof AST_EmptyStatement){continue}else if(stat){return false}else{stat=line}}return return_value(stat)}function can_inject_args(catches,safe_to_inject){for(var i=0,len=fn.argnames.length;i<len;i++){var arg=fn.argnames[i];if(arg.__unused)continue;if(!safe_to_inject||catches[arg.name]||identifier_atom(arg.name)||scope.var_names()[arg.name]){return false}if(in_loop)in_loop.push(arg.definition())}return true}function can_inject_vars(catches,safe_to_inject){var len=fn.body.length;for(var i=0;i<len;i++){var stat=fn.body[i];if(!(stat instanceof AST_Var))continue;if(!safe_to_inject)return false;for(var j=stat.definitions.length;--j>=0;){var name=stat.definitions[j].name;if(catches[name.name]||identifier_atom(name.name)||scope.var_names()[name.name]){return false}if(in_loop)in_loop.push(name.definition())}}return true}function can_inject_symbols(){var catches=Object.create(null);do{scope=compressor.parent(++level);if(scope instanceof AST_Catch){catches[scope.argname.name]=true}else if(scope instanceof AST_IterationStatement){in_loop=[]}else if(scope instanceof AST_SymbolRef){if(scope.fixed_value()instanceof AST_Scope)return false}}while(!(scope instanceof AST_Scope));var safe_to_inject=!(scope instanceof AST_Toplevel)||compressor.toplevel.vars;var inline=compressor.option("inline");if(!can_inject_vars(catches,inline>=3&&safe_to_inject))return false;if(!can_inject_args(catches,inline>=2&&safe_to_inject))return false;return!in_loop||in_loop.length==0||!is_reachable(fn,in_loop)}function append_var(decls,expressions,name,value){var def=name.definition();scope.variables.set(name.name,def);scope.enclosed.push(def);if(!scope.var_names()[name.name]){scope.var_names()[name.name]=true;decls.push(make_node(AST_VarDef,name,{name:name,value:null}))}var sym=make_node(AST_SymbolRef,name,name);def.references.push(sym);if(value)expressions.push(make_node(AST_Assign,self,{operator:"=",left:sym,right:value}))}function flatten_args(decls,expressions){var len=fn.argnames.length;for(var i=self.args.length;--i>=len;){expressions.push(self.args[i])}for(i=len;--i>=0;){var name=fn.argnames[i];var value=self.args[i];if(name.__unused||scope.var_names()[name.name]){if(value)expressions.push(value)}else{var symbol=make_node(AST_SymbolVar,name,name);name.definition().orig.push(symbol);if(!value&&in_loop)value=make_node(AST_Undefined,self);append_var(decls,expressions,symbol,value)}}decls.reverse();expressions.reverse()}function flatten_vars(decls,expressions){var pos=expressions.length;for(var i=0,lines=fn.body.length;i<lines;i++){var stat=fn.body[i];if(!(stat instanceof AST_Var))continue;for(var j=0,defs=stat.definitions.length;j<defs;j++){var var_def=stat.definitions[j];var name=var_def.name;append_var(decls,expressions,name,var_def.value);if(in_loop){var def=name.definition();var sym=make_node(AST_SymbolRef,name,name);def.references.push(sym);expressions.splice(pos++,0,make_node(AST_Assign,var_def,{operator:"=",left:sym,right:make_node(AST_Undefined,name)}))}}}}function flatten_fn(){var decls=[];var expressions=[];flatten_args(decls,expressions);flatten_vars(decls,expressions);expressions.push(value);if(decls.length){i=scope.body.indexOf(compressor.parent(level-1))+1;scope.body.splice(i,0,make_node(AST_Var,fn,{definitions:decls}))}return expressions}});OPT(AST_New,function(self,compressor){if(compressor.option("unsafe")){var exp=self.expression;if(is_undeclared_ref(exp)){switch(exp.name){case"Object":case"RegExp":case"Function":case"Error":case"Array":return make_node(AST_Call,self,self).transform(compressor)}}}return self});OPT(AST_Sequence,function(self,compressor){if(!compressor.option("side_effects"))return self;var expressions=[];filter_for_side_effects();var end=expressions.length-1;trim_right_for_undefined();if(end==0){self=maintain_this_binding(compressor.parent(),compressor.self(),expressions[0]);if(!(self instanceof AST_Sequence))self=self.optimize(compressor);return self}self.expressions=expressions;return self;function filter_for_side_effects(){var first=first_in_statement(compressor);var last=self.expressions.length-1;self.expressions.forEach(function(expr,index){if(index<last)expr=expr.drop_side_effect_free(compressor,first);if(expr){merge_sequence(expressions,expr);first=false}})}function trim_right_for_undefined(){while(end>0&&is_undefined(expressions[end],compressor))end--;if(end<expressions.length-1){expressions[end]=make_node(AST_UnaryPrefix,self,{operator:"void",expression:expressions[end]});expressions.length=end+1}}});AST_Unary.DEFMETHOD("lift_sequences",function(compressor){if(compressor.option("sequences")){if(this.expression instanceof AST_Sequence){var x=this.expression.expressions.slice();var e=this.clone();e.expression=x.pop();x.push(e);return make_sequence(this,x).optimize(compressor)}}return this});OPT(AST_UnaryPostfix,function(self,compressor){return self.lift_sequences(compressor)});OPT(AST_UnaryPrefix,function(self,compressor){var e=self.expression;if(self.operator=="delete"&&!(e instanceof AST_SymbolRef||e instanceof AST_PropAccess||is_identifier_atom(e))){if(e instanceof AST_Sequence){e=e.expressions.slice();e.push(make_node(AST_True,self));return make_sequence(self,e).optimize(compressor)}return make_sequence(self,[e,make_node(AST_True,self)]).optimize(compressor)}var seq=self.lift_sequences(compressor);if(seq!==self){return seq}if(compressor.option("side_effects")&&self.operator=="void"){e=e.drop_side_effect_free(compressor);if(e){self.expression=e;return self}else{return make_node(AST_Undefined,self).optimize(compressor)}}if(compressor.in_boolean_context()){switch(self.operator){case"!":if(e instanceof AST_UnaryPrefix&&e.operator=="!"){return e.expression}if(e instanceof AST_Binary){self=best_of(compressor,self,e.negate(compressor,first_in_statement(compressor)))}break;case"typeof":compressor.warn("Boolean expression always true [{file}:{line},{col}]",self.start);return(e instanceof AST_SymbolRef?make_node(AST_True,self):make_sequence(self,[e,make_node(AST_True,self)])).optimize(compressor)}}if(self.operator=="-"&&e instanceof AST_Infinity){e=e.transform(compressor)}if(e instanceof AST_Binary&&(self.operator=="+"||self.operator=="-")&&(e.operator=="*"||e.operator=="/"||e.operator=="%")){return make_node(AST_Binary,self,{operator:e.operator,left:make_node(AST_UnaryPrefix,e.left,{operator:self.operator,expression:e.left}),right:e.right})}if(self.operator!="-"||!(e instanceof AST_Number||e instanceof AST_Infinity)){var ev=self.evaluate(compressor);if(ev!==self){ev=make_node_from_constant(ev,self).optimize(compressor);return best_of(compressor,ev,self)}}return self});AST_Binary.DEFMETHOD("lift_sequences",function(compressor){if(compressor.option("sequences")){if(this.left instanceof AST_Sequence){var x=this.left.expressions.slice();var e=this.clone();e.left=x.pop();x.push(e);return make_sequence(this,x).optimize(compressor)}if(this.right instanceof AST_Sequence&&!this.left.has_side_effects(compressor)){var assign=this.operator=="="&&this.left instanceof AST_SymbolRef;var x=this.right.expressions;var last=x.length-1;for(var i=0;i<last;i++){if(!assign&&x[i].has_side_effects(compressor))break}if(i==last){x=x.slice();var e=this.clone();e.right=x.pop();x.push(e);return make_sequence(this,x).optimize(compressor)}else if(i>0){var e=this.clone();e.right=make_sequence(this.right,x.slice(i));x=x.slice(0,i);x.push(e);return make_sequence(this,x).optimize(compressor)}}}return this});var commutativeOperators=makePredicate("== === != !== * & | ^");function is_object(node){return node instanceof AST_Array||node instanceof AST_Lambda||node instanceof AST_Object}OPT(AST_Binary,function(self,compressor){function reversible(){return self.left.is_constant()||self.right.is_constant()||!self.left.has_side_effects(compressor)&&!self.right.has_side_effects(compressor)}function reverse(op){if(reversible()){if(op)self.operator=op;var tmp=self.left;self.left=self.right;self.right=tmp}}if(commutativeOperators(self.operator)){if(self.right.is_constant()&&!self.left.is_constant()){if(!(self.left instanceof AST_Binary&&PRECEDENCE[self.left.operator]>=PRECEDENCE[self.operator])){reverse()}}}self=self.lift_sequences(compressor);if(compressor.option("comparisons"))switch(self.operator){case"===":case"!==":var is_strict_comparison=true;if(self.left.is_string(compressor)&&self.right.is_string(compressor)||self.left.is_number(compressor)&&self.right.is_number(compressor)||self.left.is_boolean()&&self.right.is_boolean()||self.left.equivalent_to(self.right)){self.operator=self.operator.substr(0,2)}case"==":case"!=":if(!is_strict_comparison&&is_undefined(self.left,compressor)){self.left=make_node(AST_Null,self.left)}else if(compressor.option("typeofs")&&self.left instanceof AST_String&&self.left.value=="undefined"&&self.right instanceof AST_UnaryPrefix&&self.right.operator=="typeof"){var expr=self.right.expression;if(expr instanceof AST_SymbolRef?expr.is_declared(compressor):!(expr instanceof AST_PropAccess&&compressor.option("ie8"))){self.right=expr;self.left=make_node(AST_Undefined,self.left).optimize(compressor);if(self.operator.length==2)self.operator+="="}}else if(self.left instanceof AST_SymbolRef&&self.right instanceof AST_SymbolRef&&self.left.definition()===self.right.definition()&&is_object(self.left.fixed_value())){return make_node(self.operator[0]=="="?AST_True:AST_False,self)}break;case"&&":case"||":var lhs=self.left;if(lhs.operator==self.operator){lhs=lhs.right}if(lhs instanceof AST_Binary&&lhs.operator==(self.operator=="&&"?"!==":"===")&&self.right instanceof AST_Binary&&lhs.operator==self.right.operator&&(is_undefined(lhs.left,compressor)&&self.right.left instanceof AST_Null||lhs.left instanceof AST_Null&&is_undefined(self.right.left,compressor))&&!lhs.right.has_side_effects(compressor)&&lhs.right.equivalent_to(self.right.right)){var combined=make_node(AST_Binary,self,{operator:lhs.operator.slice(0,-1),left:make_node(AST_Null,self),right:lhs.right});if(lhs!==self.left){combined=make_node(AST_Binary,self,{operator:self.operator,left:self.left.left,right:combined})}return combined}break}if(self.operator=="+"&&compressor.in_boolean_context()){var ll=self.left.evaluate(compressor);var rr=self.right.evaluate(compressor);if(ll&&typeof ll=="string"){compressor.warn("+ in boolean context always true [{file}:{line},{col}]",self.start);return make_sequence(self,[self.right,make_node(AST_True,self)]).optimize(compressor)}if(rr&&typeof rr=="string"){compressor.warn("+ in boolean context always true [{file}:{line},{col}]",self.start);return make_sequence(self,[self.left,make_node(AST_True,self)]).optimize(compressor)}}if(compressor.option("comparisons")&&self.is_boolean()){if(!(compressor.parent()instanceof AST_Binary)||compressor.parent()instanceof AST_Assign){var negated=make_node(AST_UnaryPrefix,self,{operator:"!",expression:self.negate(compressor,first_in_statement(compressor))});self=best_of(compressor,self,negated)}switch(self.operator){case">":reverse("<");break;case">=":reverse("<=");break}}if(self.operator=="+"){if(self.right instanceof AST_String&&self.right.getValue()==""&&self.left.is_string(compressor)){return self.left}if(self.left instanceof AST_String&&self.left.getValue()==""&&self.right.is_string(compressor)){return self.right}if(self.left instanceof AST_Binary&&self.left.operator=="+"&&self.left.left instanceof AST_String&&self.left.left.getValue()==""&&self.right.is_string(compressor)){self.left=self.left.right;return self.transform(compressor)}}if(compressor.option("evaluate")){switch(self.operator){case"&&":var ll=self.left.truthy?true:self.left.falsy?false:self.left.evaluate(compressor);if(!ll){compressor.warn("Condition left of && always false [{file}:{line},{col}]",self.start);return maintain_this_binding(compressor.parent(),compressor.self(),self.left).optimize(compressor)}else if(!(ll instanceof AST_Node)){compressor.warn("Condition left of && always true [{file}:{line},{col}]",self.start);return make_sequence(self,[self.left,self.right]).optimize(compressor)}var rr=self.right.evaluate(compressor);if(!rr){if(compressor.in_boolean_context()){compressor.warn("Boolean && always false [{file}:{line},{col}]",self.start);return make_sequence(self,[self.left,make_node(AST_False,self)]).optimize(compressor)}else self.falsy=true}else if(!(rr instanceof AST_Node)){var parent=compressor.parent();if(parent.operator=="&&"&&parent.left===compressor.self()||compressor.in_boolean_context()){compressor.warn("Dropping side-effect-free && [{file}:{line},{col}]",self.start);return self.left.optimize(compressor)}}if(self.left.operator=="||"){var lr=self.left.right.evaluate(compressor);if(!lr)return make_node(AST_Conditional,self,{condition:self.left.left,consequent:self.right,alternative:self.left.right}).optimize(compressor)}break;case"||":var ll=self.left.truthy?true:self.left.falsy?false:self.left.evaluate(compressor);if(!ll){compressor.warn("Condition left of || always false [{file}:{line},{col}]",self.start);return make_sequence(self,[self.left,self.right]).optimize(compressor)}else if(!(ll instanceof AST_Node)){compressor.warn("Condition left of || always true [{file}:{line},{col}]",self.start);return maintain_this_binding(compressor.parent(),compressor.self(),self.left).optimize(compressor)}var rr=self.right.evaluate(compressor);if(!rr){var parent=compressor.parent();if(parent.operator=="||"&&parent.left===compressor.self()||compressor.in_boolean_context()){compressor.warn("Dropping side-effect-free || [{file}:{line},{col}]",self.start);return self.left.optimize(compressor)}}else if(!(rr instanceof AST_Node)){if(compressor.in_boolean_context()){compressor.warn("Boolean || always true [{file}:{line},{col}]",self.start);return make_sequence(self,[self.left,make_node(AST_True,self)]).optimize(compressor)}else self.truthy=true}if(self.left.operator=="&&"){var lr=self.left.right.evaluate(compressor);if(lr&&!(lr instanceof AST_Node))return make_node(AST_Conditional,self,{condition:self.left.left,consequent:self.left.right,alternative:self.right}).optimize(compressor)}break}var associative=true;switch(self.operator){case"+":if(self.left instanceof AST_Constant&&self.right instanceof AST_Binary&&self.right.operator=="+"&&self.right.left instanceof AST_Constant&&self.right.is_string(compressor)){self=make_node(AST_Binary,self,{operator:"+",left:make_node(AST_String,self.left,{value:""+self.left.getValue()+self.right.left.getValue(),start:self.left.start,end:self.right.left.end}),right:self.right.right})}if(self.right instanceof AST_Constant&&self.left instanceof AST_Binary&&self.left.operator=="+"&&self.left.right instanceof AST_Constant&&self.left.is_string(compressor)){self=make_node(AST_Binary,self,{operator:"+",left:self.left.left,right:make_node(AST_String,self.right,{value:""+self.left.right.getValue()+self.right.getValue(),start:self.left.right.start,end:self.right.end})})}if(self.left instanceof AST_Binary&&self.left.operator=="+"&&self.left.is_string(compressor)&&self.left.right instanceof AST_Constant&&self.right instanceof AST_Binary&&self.right.operator=="+"&&self.right.left instanceof AST_Constant&&self.right.is_string(compressor)){self=make_node(AST_Binary,self,{operator:"+",left:make_node(AST_Binary,self.left,{operator:"+",left:self.left.left,right:make_node(AST_String,self.left.right,{value:""+self.left.right.getValue()+self.right.left.getValue(),start:self.left.right.start,end:self.right.left.end})}),right:self.right.right})}if(self.right instanceof AST_UnaryPrefix&&self.right.operator=="-"&&self.left.is_number(compressor)){self=make_node(AST_Binary,self,{operator:"-",left:self.left,right:self.right.expression});break}if(self.left instanceof AST_UnaryPrefix&&self.left.operator=="-"&&reversible()&&self.right.is_number(compressor)){self=make_node(AST_Binary,self,{operator:"-",left:self.right,right:self.left.expression});break}case"*":associative=compressor.option("unsafe_math");case"&":case"|":case"^":if(self.left.is_number(compressor)&&self.right.is_number(compressor)&&reversible()&&!(self.left instanceof AST_Binary&&self.left.operator!=self.operator&&PRECEDENCE[self.left.operator]>=PRECEDENCE[self.operator])){var reversed=make_node(AST_Binary,self,{operator:self.operator,left:self.right,right:self.left});if(self.right instanceof AST_Constant&&!(self.left instanceof AST_Constant)){self=best_of(compressor,reversed,self)}else{self=best_of(compressor,self,reversed)}}if(associative&&self.is_number(compressor)){if(self.right instanceof AST_Binary&&self.right.operator==self.operator){self=make_node(AST_Binary,self,{operator:self.operator,left:make_node(AST_Binary,self.left,{operator:self.operator,left:self.left,right:self.right.left,start:self.left.start,end:self.right.left.end}),right:self.right.right})}if(self.right instanceof AST_Constant&&self.left instanceof AST_Binary&&self.left.operator==self.operator){if(self.left.left instanceof AST_Constant){self=make_node(AST_Binary,self,{operator:self.operator,left:make_node(AST_Binary,self.left,{operator:self.operator,left:self.left.left,right:self.right,start:self.left.left.start,end:self.right.end}),right:self.left.right})}else if(self.left.right instanceof AST_Constant){self=make_node(AST_Binary,self,{operator:self.operator,left:make_node(AST_Binary,self.left,{operator:self.operator,left:self.left.right,right:self.right,start:self.left.right.start,end:self.right.end}),right:self.left.left})}}if(self.left instanceof AST_Binary&&self.left.operator==self.operator&&self.left.right instanceof AST_Constant&&self.right instanceof AST_Binary&&self.right.operator==self.operator&&self.right.left instanceof AST_Constant){self=make_node(AST_Binary,self,{operator:self.operator,left:make_node(AST_Binary,self.left,{operator:self.operator,left:make_node(AST_Binary,self.left.left,{operator:self.operator,left:self.left.right,right:self.right.left,start:self.left.right.start,end:self.right.left.end}),right:self.left.left}),right:self.right.right})}}}}if(self.right instanceof AST_Binary&&self.right.operator==self.operator&&(lazy_op(self.operator)||self.operator=="+"&&(self.right.left.is_string(compressor)||self.left.is_string(compressor)&&self.right.right.is_string(compressor)))){self.left=make_node(AST_Binary,self.left,{operator:self.operator,left:self.left,right:self.right.left});self.right=self.right.right;return self.transform(compressor)}var ev=self.evaluate(compressor);if(ev!==self){ev=make_node_from_constant(ev,self).optimize(compressor);return best_of(compressor,ev,self)}return self});function recursive_ref(compressor,def){var node;for(var i=0;node=compressor.parent(i);i++){if(node instanceof AST_Lambda){var name=node.name;if(name&&name.definition()===def)break}}return node}OPT(AST_SymbolRef,function(self,compressor){var def=self.resolve_defines(compressor);if(def){return def.optimize(compressor)}if(!compressor.option("ie8")&&is_undeclared_ref(self)&&(!self.scope.uses_with||!compressor.find_parent(AST_With))){switch(self.name){case"undefined":return make_node(AST_Undefined,self).optimize(compressor);case"NaN":return make_node(AST_NaN,self).optimize(compressor);case"Infinity":return make_node(AST_Infinity,self).optimize(compressor)}}if(compressor.option("reduce_vars")&&is_lhs(self,compressor.parent())!==self){var d=self.definition();var fixed=self.fixed_value();var single_use=d.single_use;if(single_use&&fixed instanceof AST_Lambda){if(d.scope!==self.scope&&(!compressor.option("reduce_funcs")||d.escaped==1||fixed.inlined)){single_use=false}else if(recursive_ref(compressor,d)){single_use=false}else if(d.scope!==self.scope||d.orig[0]instanceof AST_SymbolFunarg){single_use=fixed.is_constant_expression(self.scope);if(single_use=="f"){var scope=self.scope;do{if(scope instanceof AST_Defun||scope instanceof AST_Function){scope.inlined=true}}while(scope=scope.parent_scope)}}}if(single_use&&fixed){if(fixed instanceof AST_Defun){fixed._squeezed=true;fixed=make_node(AST_Function,fixed,fixed)}var value;if(d.recursive_refs>0&&fixed.name instanceof AST_SymbolDefun){value=fixed.clone(true);var defun_def=value.name.definition();var lambda_def=value.variables.get(value.name.name);var name=lambda_def&&lambda_def.orig[0];if(!(name instanceof AST_SymbolLambda)){name=make_node(AST_SymbolLambda,value.name,value.name);name.scope=value;value.name=name;lambda_def=value.def_function(name)}value.walk(new TreeWalker(function(node){if(node instanceof AST_SymbolRef&&node.definition()===defun_def){node.thedef=lambda_def;lambda_def.references.push(node)}}))}else{value=fixed.optimize(compressor);if(value===fixed)value=fixed.clone(true)}return value}if(fixed&&d.should_replace===undefined){var init;if(fixed instanceof AST_This){if(!(d.orig[0]instanceof AST_SymbolFunarg)&&all(d.references,function(ref){return d.scope===ref.scope})){init=fixed}}else{var ev=fixed.evaluate(compressor);if(ev!==fixed&&(compressor.option("unsafe_regexp")||!(ev instanceof RegExp))){init=make_node_from_constant(ev,fixed)}}if(init){var value_length=init.optimize(compressor).print_to_string().length;var fn;if(has_symbol_ref(fixed)){fn=function(){var result=init.optimize(compressor);return result===init?result.clone(true):result}}else{value_length=Math.min(value_length,fixed.print_to_string().length);fn=function(){var result=best_of_expression(init.optimize(compressor),fixed);return result===init||result===fixed?result.clone(true):result}}var name_length=d.name.length;var overhead=0;if(compressor.option("unused")&&!compressor.exposed(d)){overhead=(name_length+2+value_length)/(d.references.length-d.assignments)}d.should_replace=value_length<=name_length+overhead?fn:false}else{d.should_replace=false}}if(d.should_replace){return d.should_replace()}}return self;function has_symbol_ref(value){var found;value.walk(new TreeWalker(function(node){if(node instanceof AST_SymbolRef)found=true;if(found)return true}));return found}});function is_atomic(lhs,self){return lhs instanceof AST_SymbolRef||lhs.TYPE===self.TYPE}OPT(AST_Undefined,function(self,compressor){if(compressor.option("unsafe_undefined")){var undef=find_variable(compressor,"undefined");if(undef){var ref=make_node(AST_SymbolRef,self,{name:"undefined",scope:undef.scope,thedef:undef});ref.is_undefined=true;return ref}}var lhs=is_lhs(compressor.self(),compressor.parent());if(lhs&&is_atomic(lhs,self))return self;return make_node(AST_UnaryPrefix,self,{operator:"void",expression:make_node(AST_Number,self,{value:0})})});OPT(AST_Infinity,function(self,compressor){var lhs=is_lhs(compressor.self(),compressor.parent());if(lhs&&is_atomic(lhs,self))return self;if(compressor.option("keep_infinity")&&!(lhs&&!is_atomic(lhs,self))&&!find_variable(compressor,"Infinity"))return self;return make_node(AST_Binary,self,{operator:"/",left:make_node(AST_Number,self,{value:1}),right:make_node(AST_Number,self,{value:0})})});OPT(AST_NaN,function(self,compressor){var lhs=is_lhs(compressor.self(),compressor.parent());if(lhs&&!is_atomic(lhs,self)||find_variable(compressor,"NaN")){return make_node(AST_Binary,self,{operator:"/",left:make_node(AST_Number,self,{value:0}),right:make_node(AST_Number,self,{value:0})})}return self});function is_reachable(self,defs){var reachable=false;var find_ref=new TreeWalker(function(node){if(reachable)return true;if(node instanceof AST_SymbolRef&&member(node.definition(),defs)){return reachable=true}});var scan_scope=new TreeWalker(function(node){if(reachable)return true;if(node instanceof AST_Scope&&node!==self){var parent=scan_scope.parent();if(parent instanceof AST_Call&&parent.expression===node)return;node.walk(find_ref);return true}});self.walk(scan_scope);return reachable}var ASSIGN_OPS=["+","-","/","*","%",">>","<<",">>>","|","^","&"];var ASSIGN_OPS_COMMUTATIVE=["*","|","^","&"];OPT(AST_Assign,function(self,compressor){var def;if(compressor.option("dead_code")&&self.left instanceof AST_SymbolRef&&(def=self.left.definition()).scope===compressor.find_parent(AST_Lambda)){var level=0,node,parent=self;do{node=parent;parent=compressor.parent(level++);if(parent instanceof AST_Exit){if(in_try(level,parent))break;if(is_reachable(def.scope,[def]))break;if(self.operator=="=")return self.right;def.fixed=false;return make_node(AST_Binary,self,{operator:self.operator.slice(0,-1),left:self.left,right:self.right}).optimize(compressor)}}while(parent instanceof AST_Binary&&parent.right===node||parent instanceof AST_Sequence&&parent.tail_node()===node)}self=self.lift_sequences(compressor);if(self.operator=="="&&self.left instanceof AST_SymbolRef&&self.right instanceof AST_Binary){if(self.right.left instanceof AST_SymbolRef&&self.right.left.name==self.left.name&&member(self.right.operator,ASSIGN_OPS)){self.operator=self.right.operator+"=";self.right=self.right.right}else if(self.right.right instanceof AST_SymbolRef&&self.right.right.name==self.left.name&&member(self.right.operator,ASSIGN_OPS_COMMUTATIVE)&&!self.right.left.has_side_effects(compressor)){self.operator=self.right.operator+"=";self.right=self.right.left}}return self;function in_try(level,node){var right=self.right;self.right=make_node(AST_Null,right);var may_throw=node.may_throw(compressor);self.right=right;var scope=self.left.definition().scope;var parent;while((parent=compressor.parent(level++))!==scope){if(parent instanceof AST_Try){if(parent.bfinally)return true;if(may_throw&&parent.bcatch)return true}}}});OPT(AST_Conditional,function(self,compressor){if(!compressor.option("conditionals"))return self;if(self.condition instanceof AST_Sequence){var expressions=self.condition.expressions.slice();self.condition=expressions.pop();expressions.push(self);return make_sequence(self,expressions)}var cond=self.condition.evaluate(compressor);if(cond!==self.condition){if(cond){compressor.warn("Condition always true [{file}:{line},{col}]",self.start);return maintain_this_binding(compressor.parent(),compressor.self(),self.consequent)}else{compressor.warn("Condition always false [{file}:{line},{col}]",self.start);return maintain_this_binding(compressor.parent(),compressor.self(),self.alternative)}}var negated=cond.negate(compressor,first_in_statement(compressor));if(best_of(compressor,cond,negated)===negated){self=make_node(AST_Conditional,self,{condition:negated,consequent:self.alternative,alternative:self.consequent})}var condition=self.condition;var consequent=self.consequent;var alternative=self.alternative;if(condition instanceof AST_SymbolRef&&consequent instanceof AST_SymbolRef&&condition.definition()===consequent.definition()){return make_node(AST_Binary,self,{operator:"||",left:condition,right:alternative})}if(consequent instanceof AST_Assign&&alternative instanceof AST_Assign&&consequent.operator==alternative.operator&&consequent.left.equivalent_to(alternative.left)&&(!self.condition.has_side_effects(compressor)||consequent.operator=="="&&!consequent.left.has_side_effects(compressor))){return make_node(AST_Assign,self,{operator:consequent.operator,left:consequent.left,right:make_node(AST_Conditional,self,{condition:self.condition,consequent:consequent.right,alternative:alternative.right})})}var arg_index;if(consequent instanceof AST_Call&&alternative.TYPE===consequent.TYPE&&consequent.args.length>0&&consequent.args.length==alternative.args.length&&consequent.expression.equivalent_to(alternative.expression)&&!self.condition.has_side_effects(compressor)&&!consequent.expression.has_side_effects(compressor)&&typeof(arg_index=single_arg_diff())=="number"){var node=consequent.clone();node.args[arg_index]=make_node(AST_Conditional,self,{condition:self.condition,consequent:consequent.args[arg_index],alternative:alternative.args[arg_index]});return node}if(consequent instanceof AST_Conditional&&consequent.alternative.equivalent_to(alternative)){return make_node(AST_Conditional,self,{condition:make_node(AST_Binary,self,{left:self.condition,operator:"&&",right:consequent.condition}),consequent:consequent.consequent,alternative:alternative})}if(consequent.equivalent_to(alternative)){return make_sequence(self,[self.condition,consequent]).optimize(compressor)}if((consequent instanceof AST_Sequence||alternative instanceof AST_Sequence)&&consequent.tail_node().equivalent_to(alternative.tail_node())){return make_sequence(self,[make_node(AST_Conditional,self,{condition:self.condition,consequent:pop_seq(consequent),alternative:pop_seq(alternative)}),consequent.tail_node()]).optimize(compressor)}if(consequent instanceof AST_Binary&&consequent.operator=="||"&&consequent.right.equivalent_to(alternative)){return make_node(AST_Binary,self,{operator:"||",left:make_node(AST_Binary,self,{operator:"&&",left:self.condition,right:consequent.left}),right:alternative}).optimize(compressor)}var in_bool=compressor.in_boolean_context();if(is_true(self.consequent)){if(is_false(self.alternative)){return booleanize(self.condition)}return make_node(AST_Binary,self,{operator:"||",left:booleanize(self.condition),right:self.alternative})}if(is_false(self.consequent)){if(is_true(self.alternative)){return booleanize(self.condition.negate(compressor))}return make_node(AST_Binary,self,{operator:"&&",left:booleanize(self.condition.negate(compressor)),right:self.alternative})}if(is_true(self.alternative)){return make_node(AST_Binary,self,{operator:"||",left:booleanize(self.condition.negate(compressor)),right:self.consequent})}if(is_false(self.alternative)){return make_node(AST_Binary,self,{operator:"&&",left:booleanize(self.condition),right:self.consequent})}return self;function booleanize(node){if(node.is_boolean())return node;return make_node(AST_UnaryPrefix,node,{operator:"!",expression:node.negate(compressor)})}function is_true(node){return node instanceof AST_True||in_bool&&node instanceof AST_Constant&&node.getValue()||node instanceof AST_UnaryPrefix&&node.operator=="!"&&node.expression instanceof AST_Constant&&!node.expression.getValue()}function is_false(node){return node instanceof AST_False||in_bool&&node instanceof AST_Constant&&!node.getValue()||node instanceof AST_UnaryPrefix&&node.operator=="!"&&node.expression instanceof AST_Constant&&node.expression.getValue()}function single_arg_diff(){var a=consequent.args;var b=alternative.args;for(var i=0,len=a.length;i<len;i++){if(!a[i].equivalent_to(b[i])){for(var j=i+1;j<len;j++){if(!a[j].equivalent_to(b[j]))return}return i}}}function pop_seq(node){if(!(node instanceof AST_Sequence))return make_node(AST_Number,node,{value:0});return make_sequence(node,node.expressions.slice(0,-1))}});OPT(AST_Boolean,function(self,compressor){if(compressor.in_boolean_context())return make_node(AST_Number,self,{value:+self.value});if(compressor.option("booleans")){var p=compressor.parent();if(p instanceof AST_Binary&&(p.operator=="=="||p.operator=="!=")){compressor.warn("Non-strict equality against boolean: {operator} {value} [{file}:{line},{col}]",{operator:p.operator,value:self.value,file:p.start.file,line:p.start.line,col:p.start.col});return make_node(AST_Number,self,{value:+self.value})}return make_node(AST_UnaryPrefix,self,{operator:"!",expression:make_node(AST_Number,self,{value:1-self.value})})}return self});OPT(AST_Sub,function(self,compressor){var expr=self.expression;var prop=self.property;if(compressor.option("properties")){var key=prop.evaluate(compressor);if(key!==prop){if(typeof key=="string"){if(key=="undefined"){key=undefined}else{var value=parseFloat(key);if(value.toString()==key){key=value}}}prop=self.property=best_of_expression(prop,make_node_from_constant(key,prop).transform(compressor));var property=""+key;if(is_identifier_string(property)&&property.length<=prop.print_to_string().length+1){return make_node(AST_Dot,self,{expression:expr,property:property}).optimize(compressor)}}}if(is_lhs(self,compressor.parent()))return self;if(key!==prop){var sub=self.flatten_object(property,compressor);if(sub){expr=self.expression=sub.expression;prop=self.property=sub.property}}if(compressor.option("properties")&&compressor.option("side_effects")&&prop instanceof AST_Number&&expr instanceof AST_Array){var index=prop.getValue();var elements=expr.elements;if(index in elements){var flatten=true;var values=[];for(var i=elements.length;--i>index;){var value=elements[i].drop_side_effect_free(compressor);if(value){values.unshift(value);if(flatten&&value.has_side_effects(compressor))flatten=false}}var retValue=elements[index];retValue=retValue instanceof AST_Hole?make_node(AST_Undefined,retValue):retValue;if(!flatten)values.unshift(retValue);while(--i>=0){var value=elements[i].drop_side_effect_free(compressor);if(value)values.unshift(value);else index--}if(flatten){values.push(retValue);return make_sequence(self,values).optimize(compressor)}else return make_node(AST_Sub,self,{expression:make_node(AST_Array,expr,{elements:values}),property:make_node(AST_Number,prop,{value:index})})}}var fn;if(compressor.option("arguments")&&expr instanceof AST_SymbolRef&&expr.name=="arguments"&&expr.definition().orig.length==1&&(fn=expr.scope)instanceof AST_Lambda&&prop instanceof AST_Number){var index=prop.getValue();var argname=fn.argnames[index];if(!argname&&!compressor.option("keep_fargs")){while(index>=fn.argnames.length){argname=make_node(AST_SymbolFunarg,fn,{name:fn.make_var_name("argument_"+fn.argnames.length),scope:fn});fn.argnames.push(argname);fn.enclosed.push(fn.def_variable(argname))}}if(argname){var sym=make_node(AST_SymbolRef,self,argname);sym.reference({});return sym}}var ev=self.evaluate(compressor);if(ev!==self){ev=make_node_from_constant(ev,self).optimize(compressor);return best_of(compressor,ev,self)}return self});AST_Lambda.DEFMETHOD("contains_this",function(){var result;var self=this;self.walk(new TreeWalker(function(node){if(result)return true;if(node instanceof AST_This)return result=true;if(node!==self&&node instanceof AST_Scope)return true}));return result});AST_PropAccess.DEFMETHOD("flatten_object",function(key,compressor){if(!compressor.option("properties"))return;var expr=this.expression;if(expr instanceof AST_Object){var props=expr.properties;for(var i=props.length;--i>=0;){var prop=props[i];if(""+prop.key==key){if(!all(props,function(prop){return prop instanceof AST_ObjectKeyVal}))break;var value=prop.value;if(value instanceof AST_Function&&!(compressor.parent()instanceof AST_New)&&value.contains_this())break;return make_node(AST_Sub,this,{expression:make_node(AST_Array,expr,{elements:props.map(function(prop){return prop.value})}),property:make_node(AST_Number,this,{value:i})})}}}});OPT(AST_Dot,function(self,compressor){if(self.property=="arguments"||self.property=="caller"){compressor.warn("Function.protoype.{prop} not supported [{file}:{line},{col}]",{prop:self.property,file:self.start.file,line:self.start.line,col:self.start.col})}var def=self.resolve_defines(compressor);if(def){return def.optimize(compressor)}if(is_lhs(self,compressor.parent()))return self;if(compressor.option("unsafe_proto")&&self.expression instanceof AST_Dot&&self.expression.property=="prototype"){var exp=self.expression.expression;if(is_undeclared_ref(exp))switch(exp.name){case"Array":self.expression=make_node(AST_Array,self.expression,{elements:[]});break;case"Function":self.expression=make_node(AST_Function,self.expression,{argnames:[],body:[]});break;case"Number":self.expression=make_node(AST_Number,self.expression,{value:0});break;case"Object":self.expression=make_node(AST_Object,self.expression,{properties:[]});break;case"RegExp":self.expression=make_node(AST_RegExp,self.expression,{value:/t/});break;case"String":self.expression=make_node(AST_String,self.expression,{value:""});break}}var sub=self.flatten_object(self.property,compressor);if(sub)return sub.optimize(compressor);var ev=self.evaluate(compressor);if(ev!==self){ev=make_node_from_constant(ev,self).optimize(compressor);return best_of(compressor,ev,self)}return self});function literals_in_boolean_context(self,compressor){if(compressor.in_boolean_context()){return best_of(compressor,self,make_sequence(self,[self,make_node(AST_True,self)]).optimize(compressor))}return self}OPT(AST_Array,literals_in_boolean_context);OPT(AST_Object,literals_in_boolean_context);OPT(AST_RegExp,literals_in_boolean_context);OPT(AST_Return,function(self,compressor){if(self.value&&is_undefined(self.value,compressor)){self.value=null}return self});OPT(AST_VarDef,function(self,compressor){var defines=compressor.option("global_defs");if(defines&&HOP(defines,self.name.name)){compressor.warn("global_defs "+self.name.name+" redefined [{file}:{line},{col}]",self.start)}return self})})();"use strict";function SourceMap(options){options=defaults(options,{file:null,root:null,orig:null,orig_line_diff:0,dest_line_diff:0});var generator=new MOZ_SourceMap.SourceMapGenerator({file:options.file,sourceRoot:options.root});var orig_map=options.orig&&new MOZ_SourceMap.SourceMapConsumer(options.orig);if(orig_map&&Array.isArray(options.orig.sources)){orig_map._sources.toArray().forEach(function(source){var sourceContent=orig_map.sourceContentFor(source,true);if(sourceContent){generator.setSourceContent(source,sourceContent)}})}function add(source,gen_line,gen_col,orig_line,orig_col,name){if(orig_map){var info=orig_map.originalPositionFor({line:orig_line,column:orig_col});if(info.source===null){return}source=info.source;orig_line=info.line;orig_col=info.column;name=info.name||name}generator.addMapping({generated:{line:gen_line+options.dest_line_diff,column:gen_col},original:{line:orig_line+options.orig_line_diff,column:orig_col},source:source,name:name})}return{add:add,get:function(){return generator},toString:function(){return JSON.stringify(generator.toJSON())}}}"use strict";(function(){var normalize_directives=function(body){var in_directive=true;for(var i=0;i<body.length;i++){if(in_directive&&body[i]instanceof AST_Statement&&body[i].body instanceof AST_String){body[i]=new AST_Directive({start:body[i].start,end:body[i].end,value:body[i].body.value})}else if(in_directive&&!(body[i]instanceof AST_Statement&&body[i].body instanceof AST_String)){in_directive=false}}return body};var MOZ_TO_ME={Program:function(M){return new AST_Toplevel({start:my_start_token(M),end:my_end_token(M),body:normalize_directives(M.body.map(from_moz))})},FunctionDeclaration:function(M){return new AST_Defun({start:my_start_token(M),end:my_end_token(M),name:from_moz(M.id),argnames:M.params.map(from_moz),body:normalize_directives(from_moz(M.body).body)})},FunctionExpression:function(M){return new AST_Function({start:my_start_token(M),end:my_end_token(M),name:from_moz(M.id),argnames:M.params.map(from_moz),body:normalize_directives(from_moz(M.body).body)})},ExpressionStatement:function(M){return new AST_SimpleStatement({start:my_start_token(M),end:my_end_token(M),body:from_moz(M.expression)})},TryStatement:function(M){var handlers=M.handlers||[M.handler];if(handlers.length>1||M.guardedHandlers&&M.guardedHandlers.length){throw new Error("Multiple catch clauses are not supported.")}return new AST_Try({start:my_start_token(M),end:my_end_token(M),body:from_moz(M.block).body,bcatch:from_moz(handlers[0]),bfinally:M.finalizer?new AST_Finally(from_moz(M.finalizer)):null})},Property:function(M){var key=M.key;var args={start:my_start_token(key),end:my_end_token(M.value),key:key.type=="Identifier"?key.name:key.value,value:from_moz(M.value)};if(M.kind=="init")return new AST_ObjectKeyVal(args);args.key=new AST_SymbolAccessor({name:args.key});args.value=new AST_Accessor(args.value);if(M.kind=="get")return new AST_ObjectGetter(args);if(M.kind=="set")return new AST_ObjectSetter(args)},ArrayExpression:function(M){return new AST_Array({start:my_start_token(M),end:my_end_token(M),elements:M.elements.map(function(elem){return elem===null?new AST_Hole:from_moz(elem)})})},ObjectExpression:function(M){return new AST_Object({start:my_start_token(M),end:my_end_token(M),properties:M.properties.map(function(prop){prop.type="Property";return from_moz(prop)})})},SequenceExpression:function(M){return new AST_Sequence({start:my_start_token(M),end:my_end_token(M),expressions:M.expressions.map(from_moz)})},MemberExpression:function(M){return new(M.computed?AST_Sub:AST_Dot)({start:my_start_token(M),end:my_end_token(M),property:M.computed?from_moz(M.property):M.property.name,expression:from_moz(M.object)})},SwitchCase:function(M){return new(M.test?AST_Case:AST_Default)({start:my_start_token(M),end:my_end_token(M),expression:from_moz(M.test),body:M.consequent.map(from_moz)})},VariableDeclaration:function(M){return new AST_Var({start:my_start_token(M),end:my_end_token(M),definitions:M.declarations.map(from_moz)})},Literal:function(M){var val=M.value,args={start:my_start_token(M),end:my_end_token(M)};if(val===null)return new AST_Null(args);switch(typeof val){case"string":args.value=val;return new AST_String(args);case"number":args.value=val;return new AST_Number(args);case"boolean":return new(val?AST_True:AST_False)(args);default:var rx=M.regex;if(rx&&rx.pattern){args.value=new RegExp(rx.pattern,rx.flags).toString()}else{args.value=M.regex&&M.raw?M.raw:val}return new AST_RegExp(args)}},Identifier:function(M){var p=FROM_MOZ_STACK[FROM_MOZ_STACK.length-2];return new(p.type=="LabeledStatement"?AST_Label:p.type=="VariableDeclarator"&&p.id===M?AST_SymbolVar:p.type=="FunctionExpression"?p.id===M?AST_SymbolLambda:AST_SymbolFunarg:p.type=="FunctionDeclaration"?p.id===M?AST_SymbolDefun:AST_SymbolFunarg:p.type=="CatchClause"?AST_SymbolCatch:p.type=="BreakStatement"||p.type=="ContinueStatement"?AST_LabelRef:AST_SymbolRef)({start:my_start_token(M),end:my_end_token(M),name:M.name})}};MOZ_TO_ME.UpdateExpression=MOZ_TO_ME.UnaryExpression=function To_Moz_Unary(M){var prefix="prefix"in M?M.prefix:M.type=="UnaryExpression"?true:false;return new(prefix?AST_UnaryPrefix:AST_UnaryPostfix)({start:my_start_token(M),end:my_end_token(M),operator:M.operator,expression:from_moz(M.argument)})};map("EmptyStatement",AST_EmptyStatement);map("BlockStatement",AST_BlockStatement,"body@body");map("IfStatement",AST_If,"test>condition, consequent>body, alternate>alternative");map("LabeledStatement",AST_LabeledStatement,"label>label, body>body");map("BreakStatement",AST_Break,"label>label");map("ContinueStatement",AST_Continue,"label>label");map("WithStatement",AST_With,"object>expression, body>body");map("SwitchStatement",AST_Switch,"discriminant>expression, cases@body");map("ReturnStatement",AST_Return,"argument>value");map("ThrowStatement",AST_Throw,"argument>value");map("WhileStatement",AST_While,"test>condition, body>body");map("DoWhileStatement",AST_Do,"test>condition, body>body");map("ForStatement",AST_For,"init>init, test>condition, update>step, body>body");map("ForInStatement",AST_ForIn,"left>init, right>object, body>body");map("DebuggerStatement",AST_Debugger);map("VariableDeclarator",AST_VarDef,"id>name, init>value");map("CatchClause",AST_Catch,"param>argname, body%body");map("ThisExpression",AST_This);map("BinaryExpression",AST_Binary,"operator=operator, left>left, right>right");map("LogicalExpression",AST_Binary,"operator=operator, left>left, right>right");map("AssignmentExpression",AST_Assign,"operator=operator, left>left, right>right");map("ConditionalExpression",AST_Conditional,"test>condition, consequent>consequent, alternate>alternative");map("NewExpression",AST_New,"callee>expression, arguments@args");map("CallExpression",AST_Call,"callee>expression, arguments@args");def_to_moz(AST_Toplevel,function To_Moz_Program(M){return to_moz_scope("Program",M)});def_to_moz(AST_Defun,function To_Moz_FunctionDeclaration(M){return{type:"FunctionDeclaration",id:to_moz(M.name),params:M.argnames.map(to_moz),body:to_moz_scope("BlockStatement",M)}});def_to_moz(AST_Function,function To_Moz_FunctionExpression(M){return{type:"FunctionExpression",id:to_moz(M.name),params:M.argnames.map(to_moz),body:to_moz_scope("BlockStatement",M)}});def_to_moz(AST_Directive,function To_Moz_Directive(M){return{type:"ExpressionStatement",expression:{type:"Literal",value:M.value}}});def_to_moz(AST_SimpleStatement,function To_Moz_ExpressionStatement(M){return{type:"ExpressionStatement",expression:to_moz(M.body)}});def_to_moz(AST_SwitchBranch,function To_Moz_SwitchCase(M){return{type:"SwitchCase",test:to_moz(M.expression),consequent:M.body.map(to_moz)}});def_to_moz(AST_Try,function To_Moz_TryStatement(M){return{type:"TryStatement",block:to_moz_block(M),handler:to_moz(M.bcatch),guardedHandlers:[],finalizer:to_moz(M.bfinally)}});def_to_moz(AST_Catch,function To_Moz_CatchClause(M){return{type:"CatchClause",param:to_moz(M.argname),guard:null,body:to_moz_block(M)}});def_to_moz(AST_Definitions,function To_Moz_VariableDeclaration(M){return{type:"VariableDeclaration",kind:"var",declarations:M.definitions.map(to_moz)}});def_to_moz(AST_Sequence,function To_Moz_SequenceExpression(M){return{type:"SequenceExpression",expressions:M.expressions.map(to_moz)}});def_to_moz(AST_PropAccess,function To_Moz_MemberExpression(M){var isComputed=M instanceof AST_Sub;return{type:"MemberExpression",object:to_moz(M.expression),computed:isComputed,property:isComputed?to_moz(M.property):{type:"Identifier",name:M.property}}});def_to_moz(AST_Unary,function To_Moz_Unary(M){return{type:M.operator=="++"||M.operator=="--"?"UpdateExpression":"UnaryExpression",operator:M.operator,prefix:M instanceof AST_UnaryPrefix,argument:to_moz(M.expression)}});def_to_moz(AST_Binary,function To_Moz_BinaryExpression(M){return{type:M.operator=="&&"||M.operator=="||"?"LogicalExpression":"BinaryExpression",left:to_moz(M.left),operator:M.operator,right:to_moz(M.right)}});def_to_moz(AST_Array,function To_Moz_ArrayExpression(M){return{type:"ArrayExpression",elements:M.elements.map(to_moz)}});def_to_moz(AST_Object,function To_Moz_ObjectExpression(M){return{type:"ObjectExpression",properties:M.properties.map(to_moz)}});def_to_moz(AST_ObjectProperty,function To_Moz_Property(M){var key={type:"Literal",value:M.key instanceof AST_SymbolAccessor?M.key.name:M.key};var kind;if(M instanceof AST_ObjectKeyVal){kind="init"}else if(M instanceof AST_ObjectGetter){kind="get"}else if(M instanceof AST_ObjectSetter){kind="set"}return{type:"Property",kind:kind,key:key,value:to_moz(M.value)}});def_to_moz(AST_Symbol,function To_Moz_Identifier(M){var def=M.definition();return{type:"Identifier",name:def?def.mangled_name||def.name:M.name}});def_to_moz(AST_RegExp,function To_Moz_RegExpLiteral(M){var value=M.value;return{type:"Literal",value:value,raw:value.toString(),regex:{pattern:value.source,flags:value.toString().match(/[gimuy]*$/)[0]}}});def_to_moz(AST_Constant,function To_Moz_Literal(M){var value=M.value;if(typeof value==="number"&&(value<0||value===0&&1/value<0)){return{type:"UnaryExpression",operator:"-",prefix:true,argument:{type:"Literal",value:-value,raw:M.start.raw}}}return{type:"Literal",value:value,raw:M.start.raw}});def_to_moz(AST_Atom,function To_Moz_Atom(M){return{type:"Identifier",name:String(M.value)}});AST_Boolean.DEFMETHOD("to_mozilla_ast",AST_Constant.prototype.to_mozilla_ast);AST_Null.DEFMETHOD("to_mozilla_ast",AST_Constant.prototype.to_mozilla_ast);AST_Hole.DEFMETHOD("to_mozilla_ast",function To_Moz_ArrayHole(){return null});AST_Block.DEFMETHOD("to_mozilla_ast",AST_BlockStatement.prototype.to_mozilla_ast);AST_Lambda.DEFMETHOD("to_mozilla_ast",AST_Function.prototype.to_mozilla_ast);function raw_token(moznode){if(moznode.type=="Literal"){return moznode.raw!=null?moznode.raw:moznode.value+""}}function my_start_token(moznode){var loc=moznode.loc,start=loc&&loc.start;var range=moznode.range;return new AST_Token({file:loc&&loc.source,line:start&&start.line,col:start&&start.column,pos:range?range[0]:moznode.start,endline:start&&start.line,endcol:start&&start.column,endpos:range?range[0]:moznode.start,raw:raw_token(moznode)})}function my_end_token(moznode){var loc=moznode.loc,end=loc&&loc.end;var range=moznode.range;return new AST_Token({file:loc&&loc.source,line:end&&end.line,col:end&&end.column,pos:range?range[1]:moznode.end,endline:end&&end.line,endcol:end&&end.column,endpos:range?range[1]:moznode.end,raw:raw_token(moznode)})}function map(moztype,mytype,propmap){var moz_to_me="function From_Moz_"+moztype+"(M){\n";moz_to_me+="return new U2."+mytype.name+"({\n"+"start: my_start_token(M),\n"+"end: my_end_token(M)";var me_to_moz="function To_Moz_"+moztype+"(M){\n";me_to_moz+="return {\n"+"type: "+JSON.stringify(moztype);if(propmap)propmap.split(/\s*,\s*/).forEach(function(prop){var m=/([a-z0-9$_]+)(=|@|>|%)([a-z0-9$_]+)/i.exec(prop);if(!m)throw new Error("Can't understand property map: "+prop);var moz=m[1],how=m[2],my=m[3];moz_to_me+=",\n"+my+": ";me_to_moz+=",\n"+moz+": ";switch(how){case"@":moz_to_me+="M."+moz+".map(from_moz)";me_to_moz+="M."+my+".map(to_moz)";break;case">":moz_to_me+="from_moz(M."+moz+")";me_to_moz+="to_moz(M."+my+")";break;case"=":moz_to_me+="M."+moz;me_to_moz+="M."+my;break;case"%":moz_to_me+="from_moz(M."+moz+").body";me_to_moz+="to_moz_block(M)";break;default:throw new Error("Can't understand operator in propmap: "+prop)}});moz_to_me+="\n})\n}";me_to_moz+="\n}\n}";moz_to_me=new Function("U2","my_start_token","my_end_token","from_moz","return("+moz_to_me+")")(exports,my_start_token,my_end_token,from_moz);me_to_moz=new Function("to_moz","to_moz_block","to_moz_scope","return("+me_to_moz+")")(to_moz,to_moz_block,to_moz_scope);MOZ_TO_ME[moztype]=moz_to_me;def_to_moz(mytype,me_to_moz)}var FROM_MOZ_STACK=null;function from_moz(node){FROM_MOZ_STACK.push(node);var ret=node!=null?MOZ_TO_ME[node.type](node):null;FROM_MOZ_STACK.pop();return ret}AST_Node.from_mozilla_ast=function(node){var save_stack=FROM_MOZ_STACK;FROM_MOZ_STACK=[];var ast=from_moz(node);FROM_MOZ_STACK=save_stack;return ast};function set_moz_loc(mynode,moznode,myparent){var start=mynode.start;var end=mynode.end;if(start.pos!=null&&end.endpos!=null){moznode.range=[start.pos,end.endpos]}if(start.line){moznode.loc={start:{line:start.line,column:start.col},end:end.endline?{line:end.endline,column:end.endcol}:null};if(start.file){moznode.loc.source=start.file}}return moznode}function def_to_moz(mytype,handler){mytype.DEFMETHOD("to_mozilla_ast",function(){return set_moz_loc(this,handler(this))})}function to_moz(node){return node!=null?node.to_mozilla_ast():null}function to_moz_block(node){return{type:"BlockStatement",body:node.body.map(to_moz)}}function to_moz_scope(type,node){var body=node.body.map(to_moz);if(node.body[0]instanceof AST_SimpleStatement&&node.body[0].body instanceof AST_String){body.unshift(to_moz(new AST_EmptyStatement(node.body[0])))}return{type:type,body:body}}})();"use strict";function find_builtins(reserved){["null","true","false","Infinity","-Infinity","undefined"].forEach(add);[Object,Array,Function,Number,String,Boolean,Error,Math,Date,RegExp].forEach(function(ctor){Object.getOwnPropertyNames(ctor).map(add);if(ctor.prototype){Object.getOwnPropertyNames(ctor.prototype).map(add)}});function add(name){push_uniq(reserved,name)}}function reserve_quoted_keys(ast,reserved){function add(name){push_uniq(reserved,name)}ast.walk(new TreeWalker(function(node){if(node instanceof AST_ObjectKeyVal&&node.quote){add(node.key)}else if(node instanceof AST_Sub){addStrings(node.property,add)}}))}function addStrings(node,add){node.walk(new TreeWalker(function(node){if(node instanceof AST_Sequence){addStrings(node.tail_node(),add)}else if(node instanceof AST_String){add(node.value)}else if(node instanceof AST_Conditional){addStrings(node.consequent,add);addStrings(node.alternative,add)}return true}))}function mangle_properties(ast,options){options=defaults(options,{builtins:false,cache:null,debug:false,keep_quoted:false,only_cache:false,regex:null,reserved:null},true);var reserved=options.reserved;if(!Array.isArray(reserved))reserved=[];if(!options.builtins)find_builtins(reserved);var cname=-1;var cache;if(options.cache){cache=options.cache.props;cache.each(function(mangled_name){push_uniq(reserved,mangled_name)})}else{cache=new Dictionary}var regex=options.regex;var debug=options.debug!==false;var debug_name_suffix;if(debug){debug_name_suffix=options.debug===true?"":options.debug}var names_to_mangle=[];var unmangleable=[];ast.walk(new TreeWalker(function(node){if(node instanceof AST_ObjectKeyVal){add(node.key)}else if(node instanceof AST_ObjectProperty){add(node.key.name)}else if(node instanceof AST_Dot){add(node.property)}else if(node instanceof AST_Sub){addStrings(node.property,add)}}));return ast.transform(new TreeTransformer(function(node){if(node instanceof AST_ObjectKeyVal){node.key=mangle(node.key)}else if(node instanceof AST_ObjectProperty){node.key.name=mangle(node.key.name)}else if(node instanceof AST_Dot){node.property=mangle(node.property)}else if(!options.keep_quoted&&node instanceof AST_Sub){node.property=mangleStrings(node.property)}}));function can_mangle(name){if(unmangleable.indexOf(name)>=0)return false;if(reserved.indexOf(name)>=0)return false;if(options.only_cache){return cache.has(name)}if(/^-?[0-9]+(\.[0-9]+)?(e[+-][0-9]+)?$/.test(name))return false;return true}function should_mangle(name){if(regex&&!regex.test(name))return false;if(reserved.indexOf(name)>=0)return false;return cache.has(name)||names_to_mangle.indexOf(name)>=0}function add(name){if(can_mangle(name))push_uniq(names_to_mangle,name);if(!should_mangle(name)){push_uniq(unmangleable,name)}}function mangle(name){if(!should_mangle(name)){return name}var mangled=cache.get(name);if(!mangled){if(debug){var debug_mangled="_$"+name+"$"+debug_name_suffix+"_";if(can_mangle(debug_mangled)){mangled=debug_mangled}}if(!mangled){do{mangled=base54(++cname)}while(!can_mangle(mangled))}cache.set(name,mangled)}return mangled}function mangleStrings(node){return node.transform(new TreeTransformer(function(node){if(node instanceof AST_Sequence){var last=node.expressions.length-1;node.expressions[last]=mangleStrings(node.expressions[last])}else if(node instanceof AST_String){node.value=mangle(node.value)}else if(node instanceof AST_Conditional){node.consequent=mangleStrings(node.consequent);node.alternative=mangleStrings(node.alternative)}return node}))}}"use strict";var to_ascii=typeof atob=="undefined"?function(b64){return new Buffer(b64,"base64").toString()}:atob;var to_base64=typeof btoa=="undefined"?function(str){return new Buffer(str).toString("base64")}:btoa;function read_source_map(code){var match=/\n\/\/# sourceMappingURL=data:application\/json(;.*?)?;base64,(.*)/.exec(code);if(!match){AST_Node.warn("inline source map not found");return null}return to_ascii(match[2])}function set_shorthand(name,options,keys){if(options[name]){keys.forEach(function(key){if(options[key]){if(typeof options[key]!="object")options[key]={};if(!(name in options[key]))options[key][name]=options[name]}})}}function init_cache(cache){if(!cache)return;if(!("props"in cache)){cache.props=new Dictionary}else if(!(cache.props instanceof Dictionary)){cache.props=Dictionary.fromObject(cache.props)}}function to_json(cache){return{props:cache.props.toObject()}}function minify(files,options){var warn_function=AST_Node.warn_function;try{options=defaults(options,{compress:{},ie8:false,keep_fnames:false,mangle:{},nameCache:null,output:{},parse:{},rename:undefined,sourceMap:false,timings:false,toplevel:false,warnings:false,wrap:false},true);var timings=options.timings&&{start:Date.now()};if(options.rename===undefined){options.rename=options.compress&&options.mangle}set_shorthand("ie8",options,["compress","mangle","output"]);set_shorthand("keep_fnames",options,["compress","mangle"]);set_shorthand("toplevel",options,["compress","mangle"]);set_shorthand("warnings",options,["compress"]);var quoted_props;if(options.mangle){options.mangle=defaults(options.mangle,{cache:options.nameCache&&(options.nameCache.vars||{}),eval:false,ie8:false,keep_fnames:false,properties:false,reserved:[],toplevel:false},true);if(options.mangle.properties){if(typeof options.mangle.properties!="object"){options.mangle.properties={}}if(options.mangle.properties.keep_quoted){quoted_props=options.mangle.properties.reserved;if(!Array.isArray(quoted_props))quoted_props=[];options.mangle.properties.reserved=quoted_props}if(options.nameCache&&!("cache"in options.mangle.properties)){options.mangle.properties.cache=options.nameCache.props||{}}}init_cache(options.mangle.cache);init_cache(options.mangle.properties.cache)}if(options.sourceMap){options.sourceMap=defaults(options.sourceMap,{content:null,filename:null,includeSources:false,root:null,url:null},true)}var warnings=[];if(options.warnings&&!AST_Node.warn_function){AST_Node.warn_function=function(warning){warnings.push(warning)}}if(timings)timings.parse=Date.now();var toplevel;if(files instanceof AST_Toplevel){toplevel=files}else{if(typeof files=="string"){files=[files]}options.parse=options.parse||{};options.parse.toplevel=null;for(var name in files)if(HOP(files,name)){options.parse.filename=name;options.parse.toplevel=parse(files[name],options.parse);if(options.sourceMap&&options.sourceMap.content=="inline"){if(Object.keys(files).length>1)throw new Error("inline source map only works with singular input");options.sourceMap.content=read_source_map(files[name])}}toplevel=options.parse.toplevel}if(quoted_props){reserve_quoted_keys(toplevel,quoted_props)}if(options.wrap){toplevel=toplevel.wrap_commonjs(options.wrap)}if(timings)timings.rename=Date.now();if(options.rename){toplevel.figure_out_scope(options.mangle);toplevel.expand_names(options.mangle)}if(timings)timings.compress=Date.now();if(options.compress)toplevel=new Compressor(options.compress).compress(toplevel);if(timings)timings.scope=Date.now();if(options.mangle)toplevel.figure_out_scope(options.mangle);if(timings)timings.mangle=Date.now();if(options.mangle){toplevel.compute_char_frequency(options.mangle);toplevel.mangle_names(options.mangle)}if(timings)timings.properties=Date.now();if(options.mangle&&options.mangle.properties){toplevel=mangle_properties(toplevel,options.mangle.properties)}if(timings)timings.output=Date.now();var result={};if(options.output.ast){result.ast=toplevel}if(!HOP(options.output,"code")||options.output.code){if(options.sourceMap){if(typeof options.sourceMap.content=="string"){options.sourceMap.content=JSON.parse(options.sourceMap.content)}options.output.source_map=SourceMap({file:options.sourceMap.filename,orig:options.sourceMap.content,root:options.sourceMap.root});if(options.sourceMap.includeSources){if(files instanceof AST_Toplevel){throw new Error("original source content unavailable")}else for(var name in files)if(HOP(files,name)){options.output.source_map.get().setSourceContent(name,files[name])}}}delete options.output.ast;delete options.output.code;var stream=OutputStream(options.output);toplevel.print(stream);result.code=stream.get();if(options.sourceMap){result.map=options.output.source_map.toString();if(options.sourceMap.url=="inline"){result.code+="\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,"+to_base64(result.map)}else if(options.sourceMap.url){result.code+="\n//# sourceMappingURL="+options.sourceMap.url}}}if(options.nameCache&&options.mangle){if(options.mangle.cache)options.nameCache.vars=to_json(options.mangle.cache);if(options.mangle.properties&&options.mangle.properties.cache){options.nameCache.props=to_json(options.mangle.properties.cache)}}if(timings){timings.end=Date.now();result.timings={parse:.001*(timings.rename-timings.parse),rename:.001*(timings.compress-timings.rename),compress:.001*(timings.scope-timings.compress),scope:.001*(timings.mangle-timings.scope),mangle:.001*(timings.properties-timings.mangle),properties:.001*(timings.output-timings.properties),output:.001*(timings.end-timings.output),total:.001*(timings.end-timings.start)}}if(warnings.length){result.warnings=warnings}return result}catch(ex){return{error:ex}}finally{AST_Node.warn_function=warn_function}}exports["Dictionary"]=Dictionary;exports["TreeWalker"]=TreeWalker;exports["TreeTransformer"]=TreeTransformer;exports["minify"]=minify;exports["parse"]=parse;exports["_push_uniq"]=push_uniq})(typeof exports=="undefined"?exports={}:exports);
 }).call(this,require("buffer").Buffer)
 },{"buffer":4}]},{},["html-minifier"]);
index f3e6787..45df11b 100644 (file)
@@ -1,7 +1,7 @@
 /*!
- * HTMLMinifier v3.5.10 (http://kangax.github.io/html-minifier/)
+ * HTMLMinifier v3.5.11 (http://kangax.github.io/html-minifier/)
  * Copyright 2010-2018 Juriy "kangax" Zaytsev
  * Licensed under the MIT license
  */
 
-require=function o(a,s,u){function l(n,e){if(!s[n]){if(!a[n]){var t="function"==typeof require&&require;if(!e&&t)return t(n,!0);if(c)return c(n,!0);var r=new Error("Cannot find module '"+n+"'");throw r.code="MODULE_NOT_FOUND",r}var i=s[n]={exports:{}};a[n][0].call(i.exports,function(e){var t=a[n][1][e];return l(t||e)},i,i.exports,o,a,s,u)}return s[n].exports}for(var c="function"==typeof require&&require,e=0;e<u.length;e++)l(u[e]);return l}({1:[function(e,t,n){"use strict";n.byteLength=function(e){return 3*e.length/4-f(e)},n.toByteArray=function(e){var t,n,r,i,o,a=e.length;i=f(e),o=new c(3*a/4-i),n=0<i?a-4:a;var s=0;for(t=0;t<n;t+=4)r=u[e.charCodeAt(t)]<<18|u[e.charCodeAt(t+1)]<<12|u[e.charCodeAt(t+2)]<<6|u[e.charCodeAt(t+3)],o[s++]=r>>16&255,o[s++]=r>>8&255,o[s++]=255&r;2===i?(r=u[e.charCodeAt(t)]<<2|u[e.charCodeAt(t+1)]>>4,o[s++]=255&r):1===i&&(r=u[e.charCodeAt(t)]<<10|u[e.charCodeAt(t+1)]<<4|u[e.charCodeAt(t+2)]>>2,o[s++]=r>>8&255,o[s++]=255&r);return o},n.fromByteArray=function(e){for(var t,n=e.length,r=n%3,i="",o=[],a=16383,s=0,u=n-r;s<u;s+=a)o.push(p(e,s,u<s+a?u:s+a));1===r?(t=e[n-1],i+=l[t>>2],i+=l[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=l[t>>10],i+=l[t>>4&63],i+=l[t<<2&63],i+="=");return o.push(i),o.join("")};for(var l=[],u=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=r.length;i<o;++i)l[i]=r[i],u[r.charCodeAt(i)]=i;function f(e){var t=e.length;if(0<t%4)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function p(e,t,n){for(var r,i,o=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(l[(i=r)>>18&63]+l[i>>12&63]+l[i>>6&63]+l[63&i]);return o.join("")}u["-".charCodeAt(0)]=62,u["_".charCodeAt(0)]=63},{}],2:[function(e,t,n){},{}],3:[function(e,t,n){arguments[4][2][0].apply(n,arguments)},{dup:2}],4:[function(e,t,n){"use strict";var r=e("base64-js"),o=e("ieee754");n.Buffer=f,n.SlowBuffer=function(e){+e!=e&&(e=0);return f.alloc(+e)},n.INSPECT_MAX_BYTES=50;var i=2147483647;function a(e){if(i<e)throw new RangeError("Invalid typed array length");var t=new Uint8Array(e);return t.__proto__=f.prototype,t}function f(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return l(e)}return s(e,t,n)}function s(e,t,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return U(e)||e&&U(e.buffer)?function(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n);return r.__proto__=f.prototype,r}(e,t,n):"string"==typeof e?function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!f.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|h(e,t),r=a(n),i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t):function(e){if(f.isBuffer(e)){var t=0|p(e.length),n=a(t);return 0===n.length||e.copy(n,0,0,t),n}if(e){if(ArrayBuffer.isView(e)||"length"in e)return"number"!=typeof e.length||N(e.length)?a(0):c(e);if("Buffer"===e.type&&Array.isArray(e.data))return c(e.data)}throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object.")}(e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('"size" argument must not be negative')}function l(e){return u(e),a(e<0?0:0|p(e))}function c(e){for(var t=e.length<0?0:0|p(e.length),n=a(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function p(e){if(i<=e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function h(e,t){if(f.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||U(e))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return L(e).length;default:if(r)return F(e).length;t=(""+t).toLowerCase(),r=!0}}function d(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):2147483647<n?n=2147483647:n<-2147483648&&(n=-2147483648),N(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=f.from(t,r)),f.isBuffer(t))return 0===t.length?-1:g(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s/=a=2,u/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;o<s;o++)if(l(e,o)===l(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(s<n+u&&(n=s-u),o=n;0<=o;o--){for(var f=!0,p=0;p<u;p++)if(l(e,o+p)!==l(t,p)){f=!1;break}if(f)return o}return-1}function v(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?i<(r=Number(r))&&(r=i):r=i;var o=t.length;o/2<r&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(N(s))return a;e[n+a]=s}return a}function b(e,t,n,r){return M(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function y(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function _(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,u,l=e[i],c=null,f=239<l?4:223<l?3:191<l?2:1;if(i+f<=n)switch(f){case 1:l<128&&(c=l);break;case 2:128==(192&(o=e[i+1]))&&127<(u=(31&l)<<6|63&o)&&(c=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&2047<(u=(15&l)<<12|(63&o)<<6|63&a)&&(u<55296||57343<u)&&(c=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)&&u<1114112&&(c=u)}null===c?(c=65533,f=1):65535<c&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return function(e){var t=e.length;if(t<=w)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=w));return n}(r)}n.kMaxLength=i,(f.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}())||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(f.prototype,"parent",{get:function(){if(this instanceof f)return this.buffer}}),Object.defineProperty(f.prototype,"offset",{get:function(){if(this instanceof f)return this.byteOffset}}),"undefined"!=typeof Symbol&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),f.poolSize=8192,f.from=function(e,t,n){return s(e,t,n)},f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,f.alloc=function(e,t,n){return i=t,o=n,u(r=e),r<=0?a(r):void 0!==i?"string"==typeof o?a(r).fill(i,o):a(r).fill(i):a(r);var r,i,o},f.allocUnsafe=function(e){return l(e)},f.allocUnsafeSlow=function(e){return l(e)},f.isBuffer=function(e){return null!=e&&!0===e._isBuffer},f.compare=function(e,t){if(!f.isBuffer(e)||!f.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},f.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return f.alloc(0);var n;if(void 0===t)for(n=t=0;n<e.length;++n)t+=e[n].length;var r=f.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(ArrayBuffer.isView(o)&&(o=f.from(o)),!f.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},f.byteLength=h,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},f.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},f.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},f.prototype.toLocaleString=f.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?_(this,0,e):function(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return x(this,t,n);case"utf8":case"utf-8":return _(this,t,n);case"ascii":return E(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return y(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},f.prototype.equals=function(e){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===f.compare(this,e)},f.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return 0<this.length&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},f.prototype.compare=function(e,t,n,r,i){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(i<=r&&n<=t)return 0;if(i<=r)return-1;if(n<=t)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(r,i),l=e.slice(t,n),c=0;c<s;++c)if(u[c]!==l[c]){o=u[c],a=l[c];break}return o<a?-1:a<o?1:0},f.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},f.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},f.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},f.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||i<n)&&(n=i),0<e.length&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o,a,s,u,l,c,f,p,h,d=!1;;)switch(r){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return p=t,h=n,M(F(e,(f=this).length-p),f,p,h);case"ascii":return b(this,e,t,n);case"latin1":case"binary":return b(this,e,t,n);case"base64":return u=this,l=t,c=n,M(L(e),u,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return a=t,s=n,M(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(e,(o=this).length-a),o,a,s);default:if(d)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),d=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var w=4096;function E(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function A(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function x(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||r<n)&&(n=r);for(var i="",o=t;o<n;++o)i+=R(e[o]);return i}function C(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function k(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(n<e+t)throw new RangeError("Trying to access beyond buffer length")}function O(e,t,n,r,i,o){if(!f.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(i<t||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function S(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,r,i){return t=+t,n>>>=0,i||S(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,i){return t=+t,n>>>=0,i||S(e,0,n,8),o.write(e,t,n,r,52,8),n+8}f.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):n<e&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):n<t&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return r.__proto__=f.prototype,r},f.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||k(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},f.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||k(e,t,this.length);for(var r=this[e+--t],i=1;0<t&&(i*=256);)r+=this[e+--t]*i;return r},f.prototype.readUInt8=function(e,t){return e>>>=0,t||k(e,1,this.length),this[e]},f.prototype.readUInt16LE=function(e,t){return e>>>=0,t||k(e,2,this.length),this[e]|this[e+1]<<8},f.prototype.readUInt16BE=function(e,t){return e>>>=0,t||k(e,2,this.length),this[e]<<8|this[e+1]},f.prototype.readUInt32LE=function(e,t){return e>>>=0,t||k(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},f.prototype.readUInt32BE=function(e,t){return e>>>=0,t||k(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},f.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||k(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return(i*=128)<=r&&(r-=Math.pow(2,8*t)),r},f.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||k(e,t,this.length);for(var r=t,i=1,o=this[e+--r];0<r&&(i*=256);)o+=this[e+--r]*i;return(i*=128)<=o&&(o-=Math.pow(2,8*t)),o},f.prototype.readInt8=function(e,t){return e>>>=0,t||k(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},f.prototype.readInt16LE=function(e,t){e>>>=0,t||k(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},f.prototype.readInt16BE=function(e,t){e>>>=0,t||k(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},f.prototype.readInt32LE=function(e,t){return e>>>=0,t||k(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},f.prototype.readInt32BE=function(e,t){return e>>>=0,t||k(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},f.prototype.readFloatLE=function(e,t){return e>>>=0,t||k(e,4,this.length),o.read(this,e,!0,23,4)},f.prototype.readFloatBE=function(e,t){return e>>>=0,t||k(e,4,this.length),o.read(this,e,!1,23,4)},f.prototype.readDoubleLE=function(e,t){return e>>>=0,t||k(e,8,this.length),o.read(this,e,!0,52,8)},f.prototype.readDoubleBE=function(e,t){return e>>>=0,t||k(e,8,this.length),o.read(this,e,!1,52,8)},f.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||O(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},f.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||O(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;0<=--i&&(o*=256);)this[t+i]=e/o&255;return t+n},f.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,1,255,0),this[t]=255&e,t+1},f.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},f.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},f.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},f.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},f.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);O(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},f.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);O(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},f.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},f.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},f.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},f.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},f.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},f.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},f.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},f.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},f.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},f.prototype.copy=function(e,t,n,r){if(!f.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),0<r&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var o=i-1;0<=o;--o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},f.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!f.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=f.isBuffer(e)?e:new f(e,r),s=a.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var T=/[^+/0-9A-Za-z-_]/g;function R(e){return e<16?"0"+e.toString(16):e.toString(16)}function F(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if(55295<(n=e.charCodeAt(a))&&n<57344){if(!i){if(56319<n){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===r){-1<(t-=3)&&o.push(239,191,189);continue}i=n;continue}if(n<56320){-1<(t-=3)&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&-1<(t-=3)&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function L(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(T,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function M(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function U(e){return e instanceof ArrayBuffer||null!=e&&null!=e.constructor&&"ArrayBuffer"===e.constructor.name&&"number"==typeof e.byteLength}function N(e){return e!=e}},{"base64-js":1,ieee754:105}],5:[function(e,t,n){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],6:[function(e,t,n){t.exports=e("./lib/clean")},{"./lib/clean":7}],7:[function(e,w,t){(function(o){var h=e("./optimizer/level-0/optimize"),d=e("./optimizer/level-1/optimize"),m=e("./optimizer/level-2/optimize"),a=e("./optimizer/validator"),t=e("./options/compatibility"),n=e("./options/fetch"),r=e("./options/format").formatFrom,i=e("./options/inline"),s=e("./options/inline-request"),u=e("./options/inline-timeout"),g=e("./options/optimization-level").OptimizationLevel,l=e("./options/optimization-level").optimizationLevelFrom,c=e("./options/rebase"),f=e("./options/rebase-to"),v=e("./reader/input-source-map-tracker"),b=e("./reader/read-sources"),y=e("./writer/simple"),_=e("./writer/source-maps");function p(e,t,n,r){var i="function"!=typeof n?n:null,f="function"==typeof r?r:"function"==typeof n?n:null,p={stats:{efficiency:0,minifiedSize:0,originalSize:0,startedAt:Date.now(),timeSpent:0},cache:{specificity:{}},errors:[],inlinedStylesheets:[],inputSourceMapTracker:v(),localOnly:!f,options:t,source:null,sourcesContent:{},validator:a(t.compatibility),warnings:[]};return i&&p.inputSourceMapTracker.track(void 0,i),(p.localOnly?function(e){return e()}:o.nextTick)(function(){return b(e,p,function(e){var t,n,r,i,o,a,s,u,l=(p.options.sourceMap?_:y)((r=h(t=e,n=p),r=g.One in n.options.level?d(t,n):t,r=g.Two in n.options.level?m(t,n,!0):r),p),c=(o=p,(i=l).stats=(a=i.styles,s=o,u=Date.now()-s.stats.startedAt,delete s.stats.startedAt,s.stats.timeSpent=u,s.stats.efficiency=1-a.length/s.stats.originalSize,s.stats.minifiedSize=a.length,s.stats),i.errors=o.errors,i.inlinedStylesheets=o.inlinedStylesheets,i.warnings=o.warnings,i);return f?f(0<p.errors.length?p.errors:null,c):c})})}(w.exports=function(e){e=e||{},this.options={compatibility:t(e.compatibility),fetch:n(e.fetch),format:r(e.format),inline:i(e.inline),inlineRequest:s(e.inlineRequest),inlineTimeout:u(e.inlineTimeout),level:l(e.level),rebase:c(e.rebase),rebaseTo:f(e.rebaseTo),returnPromise:!!e.returnPromise,sourceMap:!!e.sourceMap,sourceMapInlineSources:!!e.sourceMapInlineSources}}).prototype.minify=function(e,t,n){var i=this.options;return i.returnPromise?new Promise(function(n,r){p(e,i,t,function(e,t){return e?r(e):n(t)})}):p(e,i,t,n)}}).call(this,e("_process"))},{"./optimizer/level-0/optimize":9,"./optimizer/level-1/optimize":10,"./optimizer/level-2/optimize":29,"./optimizer/validator":57,"./options/compatibility":59,"./options/fetch":60,"./options/format":61,"./options/inline":64,"./options/inline-request":62,"./options/inline-timeout":63,"./options/optimization-level":65,"./options/rebase":67,"./options/rebase-to":66,"./reader/input-source-map-tracker":71,"./reader/read-sources":77,"./writer/simple":99,"./writer/source-maps":100,_process:113}],8:[function(e,t,n){t.exports={ASTERISK:"asterisk",BANG:"bang",BACKSLASH:"backslash",UNDERSCORE:"underscore"}},{}],9:[function(e,t,n){t.exports=function(e){return e}},{}],10:[function(e,t,n){var r=e("./shorten-hex"),i=e("./shorten-hsl"),o=e("./shorten-rgb"),v=e("./sort-selectors"),b=e("./tidy-rules"),y=e("./tidy-block"),_=e("./tidy-at-rule"),V=e("../hack"),$=e("../remove-unused"),H=e("../restore-from-optimizing"),K=e("../wrap-for-optimizing").all,G=e("../../options/optimization-level").OptimizationLevel,Y=e("../../tokenizer/token"),W=e("../../tokenizer/marker"),Q=e("../../utils/format-position"),a=e("../../utils/split"),Z="ignore-property",w="@charset",E=new RegExp("^"+w,"i"),A=e("../../options/rounding-precision").DEFAULT,s=/(?:^|\s|\()(-?\d+)px/,J=/^(\-?[\d\.]+)(m?s)$/,u=/[0-9a-f]/i,X=/^(?:\-chrome\-|\-[\w\-]+\w|\w[\w\-]+\w|\-\-\S+)$/,x=/^@import/i,ee=/^('.*'|".*")$/,te=/^['"][a-zA-Z][a-zA-Z\d\-_]+['"]$/,ne=/^url\(/i,re=/^--\S+$/;function ie(e){return e&&"-"==e[1][0]&&parseFloat(e[1])<0}function oe(e,t,n){return-1===t.indexOf("#")&&-1==t.indexOf("rgb")&&-1==t.indexOf("hsl")||(t=t.replace(/rgb\((\-?\d+),(\-?\d+),(\-?\d+)\)/g,function(e,t,n,r){return o(t,n,r)}).replace(/hsl\((-?\d+),(-?\d+)%?,(-?\d+)%?\)/g,function(e,t,n,r){return i(t,n,r)}).replace(/(^|[^='"])#([0-9a-f]{6})/gi,function(e,t,n,r,i){var o=i[r+e.length];return o&&u.test(o)?e:n[0]==n[1]&&n[2]==n[3]&&n[4]==n[5]?(t+"#"+n[0]+n[2]+n[4]).toLowerCase():(t+"#"+n).toLowerCase()}).replace(/(^|[^='"])#([0-9a-f]{3})/gi,function(e,t,n){return t+"#"+n.toLowerCase()}).replace(/(rgb|rgba|hsl|hsla)\(([^\)]+)\)/g,function(e,t,n){var r=n.split(",");return"hsl"==t&&3==r.length||"hsla"==t&&4==r.length||"rgb"==t&&3==r.length&&0<n.indexOf("%")||"rgba"==t&&4==r.length&&0<n.indexOf("%")?(-1==r[1].indexOf("%")&&(r[1]+="%"),-1==r[2].indexOf("%")&&(r[2]+="%"),t+"("+r.join(",")+")"):e}),n.colors.opacity&&-1==e.indexOf("background")&&(t=t.replace(/(?:rgba|hsla)\(0,0%?,0%?,0\)/g,function(e){return-1<a(t,",").pop().indexOf("gradient(")?e:"transparent"}))),r(t)}function ae(e,t,i){return s.test(t)?t.replace(s,function(e,t){var n,r=parseInt(t);return 0===r?e:(i.properties.shorterLengthUnits&&i.units.pt&&3*r%4==0&&(n=3*r/4+"pt"),i.properties.shorterLengthUnits&&i.units.pc&&r%16==0&&(n=r/16+"pc"),i.properties.shorterLengthUnits&&i.units.in&&r%96==0&&(n=r/96+"in"),n&&(n=e.substring(0,e.indexOf(t))+n),n&&n.length<e.length?n:e)}):t}function se(e,t,u){return u.enabled&&-1!==t.indexOf(".")?t.replace(u.decimalPointMatcher,"$1$2$3").replace(u.zeroMatcher,function(e,t,n,r){var i=u.units[r].multiplier,o=parseInt(t),a=isNaN(o)?0:o,s=parseFloat(n);return Math.round((a+s)*i)/i+r}):t}function ue(e,t){var n,r,i,o,a,s,u,l,c,f,p,h,d,m,g,v,b,y,_,w,E,A,x,C,k,O,S,D,B,T,R,F,L,M,U=t.options,N=U.level[G.One],P=K(e,!0);e:for(var q=0,z=P.length;q<z;q++)if(r=(n=P[q]).name,X.test(r)||(s=n.all[n.position],t.warnings.push("Invalid property name '"+r+"' at "+Q(s[1][2][0])+". Ignoring."),n.unused=!0),0===n.value.length&&(s=n.all[n.position],t.warnings.push("Empty property '"+r+"' at "+Q(s[1][2][0])+". Ignoring."),n.unused=!0),n.hack&&((n.hack[0]==V.ASTERISK||n.hack[0]==V.UNDERSCORE)&&!U.compatibility.properties.iePrefixHack||n.hack[0]==V.BACKSLASH&&!U.compatibility.properties.ieSuffixHack||n.hack[0]==V.BANG&&!U.compatibility.properties.ieBangHack)&&(n.unused=!0),N.removeNegativePaddings&&0===r.indexOf("padding")&&(ie(n.value[0])||ie(n.value[1])||ie(n.value[2])||ie(n.value[3]))&&(n.unused=!0),!U.compatibility.properties.ieFilters&&ce(n)&&(n.unused=!0),!n.unused)if(n.block)ue(n.value[0][1],t);else if(!re.test(r)){for(var I=0,j=n.value.length;I<j;I++){if(i=n.value[I][0],o=n.value[I][1],M=o,a=ne.test(M),i==Y.PROPERTY_BLOCK){n.unused=!0,t.warnings.push("Invalid value token at "+Q(o[0][1][2][0])+". Ignoring.");break}if(a&&!t.validator.isUrl(o)){n.unused=!0,t.warnings.push("Broken URL '"+o+"' at "+Q(n.value[I][2][0])+". Ignoring.");break}if(a?(o=N.normalizeUrls?o.replace(ne,"url(").replace(/\\?\n|\\?\r\n/g,""):o,o=U.compatibility.properties.urlQuotes?o:!/^url\(['"].+['"]\)$/.test(L=o)||/^url\(['"].*[\*\s\(\)'"].*['"]\)$/.test(L)||/^url\(['"]data:[^;]+;charset/.test(L)?L:L.replace(/["']/g,"")):(F=o,ee.test(F)?o=N.removeQuotes?(R=o,"content"==(T=r)||-1<T.indexOf("font-feature-settings")||-1<T.indexOf("grid-")?R:te.test(R)?R.substring(1,R.length-1):R):o:(o=ae(0,o=se(0,o=N.removeWhitespace?(B=o,-1<r.indexOf("filter")||-1==B.indexOf(" ")||0===B.indexOf("expression")?B:-1<B.indexOf(W.SINGLE_QUOTE)||-1<B.indexOf(W.DOUBLE_QUOTE)?B:(-1<(B=B.replace(/\s+/g," ")).indexOf("calc")&&(B=B.replace(/\) ?\/ ?/g,")/ ")),B.replace(/(\(;?)\s+/g,"$1").replace(/\s+(;?\))/g,"$1").replace(/, /g,","))):o,U.precision),U.compatibility),o=N.replaceTimeUnits?(D=o,J.test(D)?D.replace(J,function(e,t,n){var r;return"ms"==n?r=parseInt(t)/1e3+"s":"s"==n&&(r=1e3*parseFloat(t)+"ms"),r.length<e.length?r:e}):D):o,o=N.replaceZeroUnits?-1==(S=o).indexOf("0")?S:(-1<S.indexOf("-")&&(S=S.replace(/([^\w\d\-]|^)\-0([^\.]|$)/g,"$10$2").replace(/([^\w\d\-]|^)\-0([^\.]|$)/g,"$10$2")),S.replace(/(^|\s)0+([1-9])/g,"$1$2").replace(/(^|\D)\.0+(\D|$)/g,"$10$2").replace(/(^|\D)\.0+(\D|$)/g,"$10$2").replace(/\.([1-9]*)0+(\D|$)/g,function(e,t,n){return(0<t.length?".":"")+t+n}).replace(/(^|\D)0\.(\d)/g,"$1.$2")):o,U.compatibility.properties.zeroUnits&&(o=-1==(O=o).indexOf("0deg")?O:O.replace(/\(0deg\)/g,"(0)"),x=r,C=o,k=U.unitsRegexp,o=/^(?:\-moz\-calc|\-webkit\-calc|calc|rgb|hsl|rgba|hsla)\(/.test(C)?C:"flex"==x||"-ms-flex"==x||"-webkit-flex"==x||"flex-basis"==x||"-webkit-flex-basis"==x?C:0<C.indexOf("%")&&("height"==x||"max-height"==x||"width"==x||"max-width"==x)?C:C.replace(k,"$10$2").replace(k,"$10$2")),U.compatibility.properties.colors&&(o=oe(r,o,U.compatibility)))),_=r,w=o,E=N.transform,(o=void 0===(A=E(_,w))?w:!1===A?Z:A)===Z){n.unused=!0;continue e}n.value[I][1]=o}N.replaceMultipleZeros&&(b=void 0,4==(y=(v=n).value).length&&"0"===y[0][1]&&"0"===y[1][1]&&"0"===y[2][1]&&"0"===y[3][1]&&(b=-1<v.name.indexOf("box-shadow")?2:1),b&&(v.value.splice(b),v.dirty=!0)),"background"==r&&N.optimizeBackground?(g=void 0,1==(g=n.value).length&&"none"==g[0][1]&&(g[0][1]="0 0"),1==g.length&&"transparent"==g[0][1]&&(g[0][1]="0 0")):0===r.indexOf("border")&&0<r.indexOf("radius")&&N.optimizeBorderRadius?(d=void 0,3==(m=(h=n).value).length&&"/"==m[1][1]&&m[0][1]==m[2][1]?d=1:5==m.length&&"/"==m[2][1]&&m[0][1]==m[3][1]&&m[1][1]==m[4][1]?d=2:7==m.length&&"/"==m[3][1]&&m[0][1]==m[4][1]&&m[1][1]==m[5][1]&&m[2][1]==m[6][1]?d=3:9==m.length&&"/"==m[4][1]&&m[0][1]==m[5][1]&&m[1][1]==m[6][1]&&m[2][1]==m[7][1]&&m[3][1]==m[8][1]&&(d=4),d&&(h.value.splice(d),h.dirty=!0)):"filter"==r&&N.optimizeFilter&&U.compatibility.properties.ieFilters?(1==(p=n).value.length&&(p.value[0][1]=p.value[0][1].replace(/progid:DXImageTransform\.Microsoft\.(Alpha|Chroma)(\W)/,function(e,t,n){return t.toLowerCase()+n})),p.value[0][1]=p.value[0][1].replace(/,(\S)/g,", $1").replace(/ ?= ?/g,"=")):"font-weight"==r&&N.optimizeFontWeight?(f=void(c=0),"normal"==(f=(l=n).value[c][1])?f="400":"bold"==f&&(f="700"),l.value[c][1]=f):"outline"==r&&N.optimizeOutline&&(u=void 0,1==(u=n.value).length&&"none"==u[0][1]&&(u[0][1]="0"))}H(P),$(P),function(e,t){var n,r;for(r=0;r<e.length;r++)(n=e[r])[0]==Y.COMMENT&&(le(n,t),0===n[1].length&&(e.splice(r,1),r--))}(e,U)}function le(e,t){e[1][2]==W.EXCLAMATION&&("all"==t.level[G.One].specialComments||t.commentsKept<t.level[G.One].specialComments)?t.commentsKept++:e[1]=[]}function ce(e){var t;return("filter"==e.name||"-ms-filter"==e.name)&&(-1<(t=e.value[0][1]).indexOf("progid")||0===t.indexOf("alpha")||0===t.indexOf("chroma"))}t.exports=function e(t,n){var r,i,o,a=n.options,s=a.level[G.One],u=a.compatibility.selectors.ie7Hack,l=a.compatibility.selectors.adjacentSpace,c=a.compatibility.properties.spaceAfterClosingBrace,f=a.format,p=!1,h=!1;a.unitsRegexp=a.unitsRegexp||(r=a,i=["px","em","ex","cm","mm","in","pt","pc","%"],["ch","rem","vh","vm","vmax","vmin","vw"].forEach(function(e){r.compatibility.units[e]&&i.push(e)}),new RegExp("(^|\\s|\\(|,)0(?:"+i.join("|")+")(\\W|$)","g")),a.precision=a.precision||function(e){var t,n,r={matcher:null,units:{}},i=[];for(t in e)(n=e[t])!=A&&(r.units[t]={},r.units[t].value=n,r.units[t].multiplier=Math.pow(10,n),i.push(t));return 0<i.length&&(r.enabled=!0,r.decimalPointMatcher=new RegExp("(\\d)\\.($|"+i.join("|")+")($|W)","g"),r.zeroMatcher=new RegExp("(\\d*)(\\.\\d+)("+i.join("|")+")","g")),r}(s.roundingPrecision),a.commentsKept=a.commentsKept||0;for(var d=0,m=t.length;d<m;d++){var g=t[d];switch(g[0]){case Y.AT_RULE:g[1]=(o=g,x.test(o[1])&&h?"":g[1]),g[1]=s.tidyAtRules?_(g[1]):g[1],p=!0;break;case Y.AT_RULE_BLOCK:ue(g[2],n),h=!0;break;case Y.NESTED_BLOCK:g[1]=s.tidyBlockScopes?y(g[1],c):g[1],e(g[2],n),h=!0;break;case Y.COMMENT:le(g,a);break;case Y.RULE:g[1]=s.tidySelectors?b(g[1],!u,l,f,n.warnings):g[1],g[1]=1<g[1].length?v(g[1],s.selectorsSortingMethod):g[1],ue(g[2],n),h=!0}(g[0]==Y.COMMENT&&0===g[1].length||s.removeEmpty&&(0===g[1].length||g[2]&&0===g[2].length))&&(t.splice(d,1),d--,m--)}return s.cleanupCharsets&&p&&function(e){for(var t=!1,n=0,r=e.length;n<r;n++){var i=e[n];i[0]==Y.AT_RULE&&E.test(i[1])&&(t||-1==i[1].indexOf(w)?(e.splice(n,1),n--,r--):(t=!0,e.splice(n,1),e.unshift([Y.AT_RULE,i[1].replace(E,w)])))}}(t),t}},{"../../options/optimization-level":65,"../../options/rounding-precision":68,"../../tokenizer/marker":83,"../../tokenizer/token":84,"../../utils/format-position":87,"../../utils/split":96,"../hack":8,"../remove-unused":55,"../restore-from-optimizing":56,"../wrap-for-optimizing":58,"./shorten-hex":11,"./shorten-hsl":12,"./shorten-rgb":13,"./sort-selectors":14,"./tidy-at-rule":15,"./tidy-block":16,"./tidy-rules":17}],11:[function(e,t,n){var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#0ff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000",blanchedalmond:"#ffebcd",blue:"#00f",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#0ff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#f0f",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#0f0",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#f00",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#fff",whitesmoke:"#f5f5f5",yellow:"#ff0",yellowgreen:"#9acd32"},i={},o={};for(var a in r){var s=r[a];a.length<s.length?o[s]=a:i[a]=s}var u=new RegExp("(^| |,|\\))("+Object.keys(i).join("|")+")( |,|\\)|$)","ig"),l=new RegExp("("+Object.keys(o).join("|")+")([^a-f0-9]|$)","ig");function c(e,t,n,r){return t+i[n.toLowerCase()]+r}function f(e,t,n){return o[t.toLowerCase()]+n}t.exports=function(e){var t=-1<e.indexOf("#"),n=e.replace(u,c);return n!=e&&(n=n.replace(u,c)),t?n.replace(l,f):n}},{}],12:[function(e,t,n){function u(e,t,n){return n<0&&(n+=1),1<n&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}t.exports=function(e,t,n){var r=function(e,t,n){var r,i,o;if((e%=360)<0&&(e+=360),e=~~e/360,t<0?t=0:100<t&&(t=100),n<0?n=0:100<n&&(n=100),n=~~n/100,0==(t=~~t/100))r=i=o=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=u(s,a,e+1/3),i=u(s,a,e),o=u(s,a,e-1/3)}return[~~(255*r),~~(255*i),~~(255*o)]}(e,t,n),i=r[0].toString(16),o=r[1].toString(16),a=r[2].toString(16);return"#"+(1==i.length?"0":"")+i+(1==o.length?"0":"")+o+(1==a.length?"0":"")+a}},{}],13:[function(e,t,n){t.exports=function(e,t,n){return"#"+("00000"+(Math.max(0,Math.min(parseInt(e),255))<<16|Math.max(0,Math.min(parseInt(t),255))<<8|Math.max(0,Math.min(parseInt(n),255))).toString(16)).slice(-6)}},{}],14:[function(e,t,n){var r=e("../../utils/natural-compare");function i(e,t){return r(e[1],t[1])}function o(e,t){return e[1]>t[1]?1:-1}t.exports=function(e,t){switch(t){case"natural":return e.sort(i);case"standard":return e.sort(o);case"none":case!1:return e}}},{"../../utils/natural-compare":94}],15:[function(e,t,n){t.exports=function(e){return e.replace(/\s+/g," ").replace(/url\(\s+/g,"url(").replace(/\s+\)/g,")").trim()}},{}],16:[function(e,t,n){var i=/^@media\W/;t.exports=function(e,t){var n,r;for(r=e.length-1;0<=r;r--)n=!t&&i.test(e[r][1]),e[r][1]=e[r][1].replace(/\n|\r\n/g," ").replace(/\s+/g," ").replace(/(,|:|\() /g,"$1").replace(/ \)/g,")").replace(/'([a-zA-Z][a-zA-Z\d\-_]+)'/,"$1").replace(/"([a-zA-Z][a-zA-Z\d\-_]+)"/,"$1").replace(n?/\) /g:null,")");return e}},{}],17:[function(e,t,n){var w=e("../../options/format").Spaces,E=e("../../tokenizer/marker"),h=e("../../utils/format-position"),A=/[\s"'][iI]\s*\]/,x=/([\d\w])([iI])\]/g,d=/="([a-zA-Z][a-zA-Z\d\-_]+)"([iI])/g,m=/="([a-zA-Z][a-zA-Z\d\-_]+)"(\s|\])/g,g=/^(?:(?:<!--|-->)\s*)+/,v=/='([a-zA-Z][a-zA-Z\d\-_]+)'([iI])/g,b=/='([a-zA-Z][a-zA-Z\d\-_]+)'(\s|\])/g,C=/[>\+~]/,k=/\s/,y="*+html ",_="*:first-child+html ",s="<";function O(e){var t,n,r,i,o=!1,a=!1;for(r=0,i=e.length;r<i;r++){if(n=e[r],t);else if(n==E.SINGLE_QUOTE||n==E.DOUBLE_QUOTE)a=!a;else{if(!(a||n!=E.CLOSE_CURLY_BRACKET&&n!=E.EXCLAMATION&&n!=s&&n!=E.SEMICOLON)){o=!0;break}if(!a&&0===r&&C.test(n)){o=!0;break}}t=n==E.BACK_SLASH}return o}function S(e,t){var n,r,i,o,a,s,u,l,c,f,p,h,d,m=[],g=0,v=!1,b=!1,y=A.test(e),_=t&&t.spaces[w.AroundSelectorRelation];for(h=0,d=e.length;h<d;h++){if(r=(n=e[h])==E.NEW_LINE_NIX,i=n==E.NEW_LINE_NIX&&e[h-1]==E.NEW_LINE_WIN,s=u||l,f=!c&&!o&&0===g&&C.test(n),p=k.test(n),a&&s&&i)m.pop(),m.pop();else if(o&&s&&r)m.pop();else if(o)m.push(n);else if(n!=E.OPEN_SQUARE_BRACKET||s)if(n!=E.CLOSE_SQUARE_BRACKET||s)if(n!=E.OPEN_ROUND_BRACKET||s)if(n!=E.CLOSE_ROUND_BRACKET||s)if(n!=E.SINGLE_QUOTE||s)if(n!=E.DOUBLE_QUOTE||s)if(n==E.SINGLE_QUOTE&&s)m.push(n),u=!1;else if(n==E.DOUBLE_QUOTE&&s)m.push(n),l=!1;else{if(p&&v&&!_)continue;!p&&v&&_?(m.push(E.SPACE),m.push(n)):p&&(c||0<g)&&!s||p&&b&&!s||(i||r)&&(c||0<g)&&s||(f&&b&&!_?(m.pop(),m.push(n)):f&&!b&&_?(m.push(E.SPACE),m.push(n)):p?m.push(E.SPACE):m.push(n))}else m.push(n),l=!0;else m.push(n),u=!0;else m.push(n),g--;else m.push(n),g++;else m.push(n),c=!1;else m.push(n),c=!0;a=o,o=n==E.BACK_SLASH,v=f,b=p}return y?m.join("").replace(x,"$1 $2]"):m.join("")}t.exports=function(e,t,n,r,i){var o,a=[],s=[];function u(e,t){return i.push("HTML comment '"+t+"' at "+h(e[2][0])+". Removing."),""}for(var l=0,c=e.length;l<c;l++){var f=e[l],p=f[1];O(p=p.replace(g,u.bind(null,f)))?i.push("Invalid selector '"+f[1]+"' at "+h(f[2][0])+". Ignoring."):(p=S(p,r),p=-1==(o=p).indexOf("'")&&-1==o.indexOf('"')?o:o.replace(v,"=$1 $2").replace(b,"=$1$2").replace(d,"=$1 $2").replace(m,"=$1$2"),n&&0<p.indexOf("nav")&&(p=p.replace(/\+nav(\S|$)/,"+ nav$1")),t&&-1<p.indexOf(y)||t&&-1<p.indexOf(_)||(-1<p.indexOf("*")&&(p=p.replace(/\*([:#\.\[])/g,"$1").replace(/^(\:first\-child)?\+html/,"*$1+html")),-1<s.indexOf(p)||(f[1]=p,s.push(p),a.push(f))))}return 1==a.length&&0===a[0][1].length&&(i.push("Empty selector '"+a[0][1]+"' at "+h(a[0][2][0])+". Ignoring."),a=[]),a}},{"../../options/format":61,"../../tokenizer/marker":83,"../../utils/format-position":87}],18:[function(e,t,n){var x=e("./invalid-property-error"),s=e("../wrap-for-optimizing").single,m=e("../../tokenizer/token"),A=e("../../tokenizer/marker"),C=e("../../utils/format-position");function k(e){var t,n;for(t=0,n=e.length;t<n;t++)if("inherit"==e[t][1])return!0;return!1}function O(e,t,n){var r=n[e];return r.doubleValues&&2==r.defaultValue.length?s([m.PROPERTY,[m.PROPERTY_NAME,e],[m.PROPERTY_VALUE,r.defaultValue[0]],[m.PROPERTY_VALUE,r.defaultValue[1]]]):r.doubleValues&&1==r.defaultValue.length?s([m.PROPERTY,[m.PROPERTY_NAME,e],[m.PROPERTY_VALUE,r.defaultValue[0]]]):s([m.PROPERTY,[m.PROPERTY_NAME,e],[m.PROPERTY_VALUE,r.defaultValue]])}function l(e,t){var n=t[e.name].components,r=[],i=e.value;if(i.length<1)return[];i.length<2&&(i[1]=i[0].slice(0)),i.length<3&&(i[2]=i[0].slice(0)),i.length<4&&(i[3]=i[1].slice(0));for(var o=n.length-1;0<=o;o--){var a=s([m.PROPERTY,[m.PROPERTY_NAME,n[o]]]);a.value=[i[o]],r.unshift(a)}return r}function r(e,t,n){for(var r,i,o,a=t[e.name],s=[O(a.components[0],0,t),O(a.components[1],0,t),O(a.components[2],0,t)],u=0;u<3;u++){var l=s[u];0<l.name.indexOf("color")?r=l:0<l.name.indexOf("style")?i=l:o=l}if(1==e.value.length&&"inherit"==e.value[0][1]||3==e.value.length&&"inherit"==e.value[0][1]&&"inherit"==e.value[1][1]&&"inherit"==e.value[2][1])return r.value=i.value=o.value=[e.value[0]],s;var c,f,p,h,d,m=e.value.slice(0);return 0<m.length&&(c=1<(f=m.filter((p=n,function(e){return"inherit"!=e[1]&&(p.isWidth(e[1])||p.isUnit(e[1])&&!p.isDynamicUnit(e[1]))&&!p.isStyleKeyword(e[1])&&!p.isColorFunction(e[1])}))).length&&("none"==f[0][1]||"auto"==f[0][1])?f[1]:f[0])&&(o.value=[c],m.splice(m.indexOf(c),1)),0<m.length&&(c=m.filter((h=n,function(e){return"inherit"!=e[1]&&h.isStyleKeyword(e[1])&&!h.isColorFunction(e[1])}))[0])&&(i.value=[c],m.splice(m.indexOf(c),1)),0<m.length&&(c=m.filter((d=n,function(e){return"invert"==e[1]||d.isColor(e[1])||d.isPrefixed(e[1])}))[0])&&(r.value=[c],m.splice(m.indexOf(c),1)),s}t.exports={animation:function(e,t,n){var r,i,o,a=O(e.name+"-duration",0,t),s=O(e.name+"-timing-function",0,t),u=O(e.name+"-delay",0,t),l=O(e.name+"-iteration-count",0,t),c=O(e.name+"-direction",0,t),f=O(e.name+"-fill-mode",0,t),p=O(e.name+"-play-state",0,t),h=O(e.name+"-name",0,t),d=[a,s,u,l,c,f,p,h],m=e.value,g=!1,v=!1,b=!1,y=!1,_=!1,w=!1,E=!1,A=!1;if(1==e.value.length&&"inherit"==e.value[0][1])return a.value=s.value=u.value=l.value=c.value=f.value=p.value=h.value=e.value,d;if(1<m.length&&k(m))throw new x("Invalid animation values at "+C(m[0][2][0])+". Ignoring.");for(i=0,o=m.length;i<o;i++)if(r=m[i],n.isTime(r[1])&&!g)a.value=[r],g=!0;else if(n.isTime(r[1])&&!b)u.value=[r],b=!0;else if(!n.isGlobal(r[1])&&!n.isAnimationTimingFunction(r[1])||v)if(!n.isAnimationIterationCountKeyword(r[1])&&!n.isPositiveNumber(r[1])||y)if(n.isAnimationDirectionKeyword(r[1])&&!_)c.value=[r],_=!0;else if(n.isAnimationFillModeKeyword(r[1])&&!w)f.value=[r],w=!0;else if(n.isAnimationPlayStateKeyword(r[1])&&!E)p.value=[r],E=!0;else{if(!n.isAnimationNameKeyword(r[1])&&!n.isIdentifier(r[1])||A)throw new x("Invalid animation value at "+C(r[2][0])+". Ignoring.");h.value=[r],A=!0}else l.value=[r],y=!0;else s.value=[r],v=!0;return d},background:function(e,t,n){var r=O("background-image",0,t),i=O("background-position",0,t),o=O("background-size",0,t),a=O("background-repeat",0,t),s=O("background-attachment",0,t),u=O("background-origin",0,t),l=O("background-clip",0,t),c=O("background-color",0,t),f=[r,i,o,a,s,u,l,c],p=e.value,h=!1,d=!1,m=!1,g=!1,v=!1;if(1==e.value.length&&"inherit"==e.value[0][1])return c.value=r.value=a.value=i.value=o.value=u.value=l.value=e.value,f;if(1==e.value.length&&"0 0"==e.value[0][1])return f;for(var b=p.length-1;0<=b;b--){var y=p[b];if(n.isBackgroundAttachmentKeyword(y[1]))s.value=[y],v=!0;else if(n.isBackgroundClipKeyword(y[1])||n.isBackgroundOriginKeyword(y[1]))d?(u.value=[y],m=!0):(l.value=[y],d=!0),v=!0;else if(n.isBackgroundRepeatKeyword(y[1]))g?a.value.unshift(y):(a.value=[y],g=!0),v=!0;else if(n.isBackgroundPositionKeyword(y[1])||n.isBackgroundSizeKeyword(y[1])||n.isUnit(y[1])||n.isDynamicUnit(y[1])){if(0<b){var _=p[b-1];_[1]==A.FORWARD_SLASH?o.value=[y]:1<b&&p[b-2][1]==A.FORWARD_SLASH?(o.value=[_,y],b-=2):(h||(i.value=[]),i.value.unshift(y),h=!0)}else h||(i.value=[]),i.value.unshift(y),h=!0;v=!0}else c.value[0][1]!=t[c.name].defaultValue&&"none"!=c.value[0][1]||!n.isColor(y[1])&&!n.isPrefixed(y[1])?(n.isUrl(y[1])||n.isFunction(y[1]))&&(r.value=[y],v=!0):(c.value=[y],v=!0)}if(d&&!m&&(u.value=l.value.slice(0)),!v)throw new x("Invalid background value at "+C(p[0][2][0])+". Ignoring.");return f},border:r,borderRadius:function(e,t){for(var n=e.value,r=-1,i=0,o=n.length;i<o;i++)if(n[i][1]==A.FORWARD_SLASH){r=i;break}if(0===r||r===n.length-1)throw new x("Invalid border-radius value at "+C(n[0][2][0])+". Ignoring.");var a=O(e.name,0,t);a.value=-1<r?n.slice(0,r):n.slice(0),a.components=l(a,t);var s=O(e.name,0,t);s.value=-1<r?n.slice(r+1):n.slice(0),s.components=l(s,t);for(var u=0;u<4;u++)a.components[u].multiplex=!0,a.components[u].value=a.components[u].value.concat(s.components[u].value);return a.components},font:function(e,t,n){var r,i,o,a,s=O("font-style",0,t),u=O("font-variant",0,t),l=O("font-weight",0,t),c=O("font-stretch",0,t),f=O("font-size",0,t),p=O("line-height",0,t),h=O("font-family",0,t),d=[s,u,l,c,f,p,h],m=e.value,g=0,v=!1,b=!1,y=!1,_=!1,w=!1,E=!1;if(!m[g])throw new x("Missing font values at "+C(e.all[e.position][1][2][0])+". Ignoring.");if(1==m.length&&"inherit"==m[0][1])return s.value=u.value=l.value=c.value=f.value=p.value=h.value=m,d;if(1==m.length&&(n.isFontKeyword(m[0][1])||n.isGlobal(m[0][1])||n.isPrefixed(m[0][1])))return m[0][1]=A.INTERNAL+m[0][1],s.value=u.value=l.value=c.value=f.value=p.value=h.value=m,d;if(m.length<2||!function(e,t){var n,r,i;for(r=0,i=e.length;r<i;r++)if(n=e[r],t.isFontSizeKeyword(n[1])||t.isUnit(n[1])&&!t.isDynamicUnit(n[1])||t.isFunction(n[1]))return!0;return!1}(m,n)||!function(e,t){var n,r,i;for(r=0,i=e.length;r<i;r++)if(n=e[r],t.isIdentifier(n[1]))return!0;return!1}(m,n))throw new x("Invalid font values at "+C(e.all[e.position][1][2][0])+". Ignoring.");if(1<m.length&&k(m))throw new x("Invalid font values at "+C(m[0][2][0])+". Ignoring.");for(;g<4;){if(r=n.isFontStretchKeyword(m[g][1])||n.isGlobal(m[g][1]),i=n.isFontStyleKeyword(m[g][1])||n.isGlobal(m[g][1]),o=n.isFontVariantKeyword(m[g][1])||n.isGlobal(m[g][1]),a=n.isFontWeightKeyword(m[g][1])||n.isGlobal(m[g][1]),i&&!b)s.value=[m[g]],b=!0;else if(o&&!y)u.value=[m[g]],y=!0;else if(a&&!_)l.value=[m[g]],_=!0;else{if(!r||v){if(i&&b||o&&y||a&&_||r&&v)throw new x("Invalid font style / variant / weight / stretch value at "+C(m[0][2][0])+". Ignoring.");break}c.value=[m[g]],v=!0}g++}if(!(n.isFontSizeKeyword(m[g][1])||n.isUnit(m[g][1])&&!n.isDynamicUnit(m[g][1])))throw new x("Missing font size at "+C(m[0][2][0])+". Ignoring.");if(f.value=[m[g]],w=!0,!m[++g])throw new x("Missing font family at "+C(m[0][2][0])+". Ignoring.");for(w&&m[g]&&m[g][1]==A.FORWARD_SLASH&&m[g+1]&&(n.isLineHeightKeyword(m[g+1][1])||n.isUnit(m[g+1][1])||n.isNumber(m[g+1][1]))&&(p.value=[m[g+1]],g++,g++),h.value=[];m[g];)m[g][1]==A.COMMA?E=!1:(E?h.value[h.value.length-1][1]+=A.SPACE+m[g][1]:h.value.push(m[g]),E=!0),g++;if(0===h.value.length)throw new x("Missing font family at "+C(m[0][2][0])+". Ignoring.");return d},fourValues:l,listStyle:function(e,t,n){var r=O("list-style-type",0,t),i=O("list-style-position",0,t),o=O("list-style-image",0,t),a=[r,i,o];if(1==e.value.length&&"inherit"==e.value[0][1])return r.value=i.value=o.value=[e.value[0]],a;var s=e.value.slice(0),u=s.length,l=0;for(l=0,u=s.length;l<u;l++)if(n.isUrl(s[l][1])||"0"==s[l][1]){o.value=[s[l]],s.splice(l,1);break}for(l=0,u=s.length;l<u;l++)if(n.isListStylePositionKeyword(s[l][1])){i.value=[s[l]],s.splice(l,1);break}return 0<s.length&&(n.isListStyleTypeKeyword(s[0][1])||n.isIdentifier(s[0][1]))&&(r.value=[s[0]]),a},multiplex:function(d){return function(e,t,n){var r,i,o,a,s=[],u=e.value;for(r=0,o=u.length;r<o;r++)","==u[r][1]&&s.push(r);if(0===s.length)return d(e,t,n);var l=[];for(r=0,o=s.length;r<=o;r++){var c=0===r?0:s[r-1]+1,f=r<o?s[r]:u.length,p=O(e.name,0,t);p.value=u.slice(c,f),l.push(d(p,t,n))}var h=l[0];for(r=0,o=h.length;r<o;r++)for(h[r].multiplex=!0,i=1,a=l.length;i<a;i++)h[r].value.push([m.PROPERTY_VALUE,A.COMMA]),Array.prototype.push.apply(h[r].value,l[i][r].value);return h}},outline:r}},{"../../tokenizer/marker":83,"../../tokenizer/token":84,"../../utils/format-position":87,"../wrap-for-optimizing":58,"./invalid-property-error":23}],19:[function(e,t,n){var i=e("./properties/understandable");function r(r){return function(e,t,n){return!(!i(e,t,n,0,!0)&&!e.isKeyword(r)(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||e.isKeyword(r)(n))}}function o(r){return function(e,t,n){return!!(i(e,t,n,0,!0)||e.isKeyword(r)(n)||e.isGlobal(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||(e.isKeyword(r)(n)||e.isGlobal(n)))}}function a(e,t,n){return i=t,o=n,!(!(r=e).isFunction(i)||!r.isFunction(o)||i.substring(0,i.indexOf("("))!==o.substring(0,o.indexOf("(")))||t===n;var r,i,o}function s(e,t,n){return!(!i(e,t,n,0,!0)&&!e.isUnit(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||!(e.isUnit(t)&&!e.isUnit(n))&&(!!e.isUnit(n)||!e.isUnit(t)&&(!(!e.isFunction(t)||e.isPrefixed(t)||!e.isFunction(n)||e.isPrefixed(n))||a(e,t,n))))}function u(e){var r=o(e);return function(e,t,n){return s(e,t,n)||r(e,t,n)}}t.exports={generic:{color:function(e,t,n){return!(!i(e,t,n,0,!0)&&!e.isColor(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||!(!e.colorOpacity&&(e.isRgbColor(t)||e.isHslColor(t)))&&!(!e.colorOpacity&&(e.isRgbColor(n)||e.isHslColor(n)))&&(!(!e.isColor(t)||!e.isColor(n))||a(e,t,n)))},components:function(i){return function(e,t,n,r){return i[r](e,t,n)}},image:function(e,t,n){return!(!i(e,t,n,0,!0)&&!e.isImage(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||!!e.isImage(n)||!e.isImage(t)&&a(e,t,n))},time:function(e,t,n){return!(!i(e,t,n,0,!0)&&!e.isTime(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||!(e.isTime(t)&&!e.isTime(n))&&(!!e.isTime(n)||!e.isTime(t)&&(!(!e.isFunction(t)||e.isPrefixed(t)||!e.isFunction(n)||e.isPrefixed(n))||a(e,t,n))))},unit:s,unitOrNumber:function(e,t,n){return!!(i(e,t,n,0,!0)||e.isUnit(n)||e.isNumber(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||!((e.isUnit(t)||e.isNumber(t))&&!e.isUnit(n)&&!e.isNumber(n))&&(!(!e.isUnit(n)&&!e.isNumber(n))||!e.isUnit(t)&&!e.isNumber(t)&&(!(!e.isFunction(t)||e.isPrefixed(t)||!e.isFunction(n)||e.isPrefixed(n))||a(e,t,n))))}},property:{animationDirection:o("animation-direction"),animationFillMode:r("animation-fill-mode"),animationIterationCount:function(e,t,n){return!!(i(e,t,n,0,!0)||e.isAnimationIterationCountKeyword(n)||e.isPositiveNumber(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||e.isAnimationIterationCountKeyword(n)||e.isPositiveNumber(n))},animationName:function(e,t,n){return!!(i(e,t,n,0,!0)||e.isAnimationNameKeyword(n)||e.isIdentifier(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||e.isAnimationNameKeyword(n)||e.isIdentifier(n))},animationPlayState:o("animation-play-state"),animationTimingFunction:function(e,t,n){return!!(i(e,t,n,0,!0)||e.isAnimationTimingFunction(n)||e.isGlobal(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||e.isAnimationTimingFunction(n)||e.isGlobal(n))},backgroundAttachment:r("background-attachment"),backgroundClip:o("background-clip"),backgroundOrigin:r("background-origin"),backgroundPosition:function(e,t,n){return!!(i(e,t,n,0,!0)||e.isBackgroundPositionKeyword(n)||e.isGlobal(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||!(!e.isBackgroundPositionKeyword(n)&&!e.isGlobal(n))||s(e,t,n))},backgroundRepeat:r("background-repeat"),backgroundSize:function(e,t,n){return!!(i(e,t,n,0,!0)||e.isBackgroundSizeKeyword(n)||e.isGlobal(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||!(!e.isBackgroundSizeKeyword(n)&&!e.isGlobal(n))||s(e,t,n))},bottom:u("bottom"),borderCollapse:r("border-collapse"),borderStyle:o("*-style"),clear:o("clear"),cursor:o("cursor"),display:o("display"),float:o("float"),left:u("left"),fontFamily:function(e,t,n){return i(e,t,n,0,!0)},fontStretch:o("font-stretch"),fontStyle:o("font-style"),fontVariant:o("font-variant"),fontWeight:o("font-weight"),listStyleType:o("list-style-type"),listStylePosition:o("list-style-position"),outlineStyle:o("*-style"),overflow:o("overflow"),position:o("position"),right:u("right"),textAlign:o("text-align"),textDecoration:o("text-decoration"),textOverflow:o("text-overflow"),textShadow:function(e,t,n){return!!(i(e,t,n,0,!0)||e.isUnit(n)||e.isColor(n)||e.isGlobal(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||e.isUnit(n)||e.isColor(n)||e.isGlobal(n))},top:u("top"),transform:a,verticalAlign:u("vertical-align"),visibility:o("visibility"),whiteSpace:o("white-space"),zIndex:function(e,t,n){return!(!i(e,t,n,0,!0)&&!e.isZIndex(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||e.isZIndex(n))}}}},{"./properties/understandable":40}],20:[function(e,t,n){var r=e("../wrap-for-optimizing").single,i=e("../../tokenizer/token");function o(e){var t=r([i.PROPERTY,[i.PROPERTY_NAME,e.name]]);return t.important=e.important,t.hack=e.hack,t.unused=!1,t}t.exports={deep:function(e){for(var t=o(e),n=e.components.length-1;0<=n;n--){var r=o(e.components[n]);r.value=e.components[n].value.slice(0),t.components.unshift(r)}return t.dirty=!0,t.value=e.value.slice(0),t},shallow:o}},{"../../tokenizer/token":84,"../wrap-for-optimizing":58}],21:[function(e,t,n){var r=e("./break-up"),i=e("./can-override"),o=e("./restore"),a=e("../../utils/override"),s={animation:{canOverride:i.generic.components([i.generic.time,i.property.animationTimingFunction,i.generic.time,i.property.animationIterationCount,i.property.animationDirection,i.property.animationFillMode,i.property.animationPlayState,i.property.animationName]),components:["animation-duration","animation-timing-function","animation-delay","animation-iteration-count","animation-direction","animation-fill-mode","animation-play-state","animation-name"],breakUp:r.multiplex(r.animation),defaultValue:"none",restore:o.multiplex(o.withoutDefaults),shorthand:!0,vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-delay":{canOverride:i.generic.time,componentOf:["animation"],defaultValue:"0s",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-direction":{canOverride:i.property.animationDirection,componentOf:["animation"],defaultValue:"normal",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-duration":{canOverride:i.generic.time,componentOf:["animation"],defaultValue:"0s",intoMultiplexMode:"real",keepUnlessDefault:"animation-delay",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-fill-mode":{canOverride:i.property.animationFillMode,componentOf:["animation"],defaultValue:"none",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-iteration-count":{canOverride:i.property.animationIterationCount,componentOf:["animation"],defaultValue:"1",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-name":{canOverride:i.property.animationName,componentOf:["animation"],defaultValue:"none",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-play-state":{canOverride:i.property.animationPlayState,componentOf:["animation"],defaultValue:"running",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-timing-function":{canOverride:i.property.animationTimingFunction,componentOf:["animation"],defaultValue:"ease",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},background:{canOverride:i.generic.components([i.generic.image,i.property.backgroundPosition,i.property.backgroundSize,i.property.backgroundRepeat,i.property.backgroundAttachment,i.property.backgroundOrigin,i.property.backgroundClip,i.generic.color]),components:["background-image","background-position","background-size","background-repeat","background-attachment","background-origin","background-clip","background-color"],breakUp:r.multiplex(r.background),defaultValue:"0 0",restore:o.multiplex(o.background),shortestValue:"0",shorthand:!0},"background-attachment":{canOverride:i.property.backgroundAttachment,componentOf:["background"],defaultValue:"scroll",intoMultiplexMode:"real"},"background-clip":{canOverride:i.property.backgroundClip,componentOf:["background"],defaultValue:"border-box",intoMultiplexMode:"real",shortestValue:"border-box"},"background-color":{canOverride:i.generic.color,componentOf:["background"],defaultValue:"transparent",intoMultiplexMode:"real",multiplexLastOnly:!0,nonMergeableValue:"none",shortestValue:"red"},"background-image":{canOverride:i.generic.image,componentOf:["background"],defaultValue:"none",intoMultiplexMode:"default"},"background-origin":{canOverride:i.property.backgroundOrigin,componentOf:["background"],defaultValue:"padding-box",intoMultiplexMode:"real",shortestValue:"border-box"},"background-position":{canOverride:i.property.backgroundPosition,componentOf:["background"],defaultValue:["0","0"],doubleValues:!0,intoMultiplexMode:"real",shortestValue:"0"},"background-repeat":{canOverride:i.property.backgroundRepeat,componentOf:["background"],defaultValue:["repeat"],doubleValues:!0,intoMultiplexMode:"real"},"background-size":{canOverride:i.property.backgroundSize,componentOf:["background"],defaultValue:["auto"],doubleValues:!0,intoMultiplexMode:"real",shortestValue:"0 0"},bottom:{canOverride:i.property.bottom,defaultValue:"auto"},border:{breakUp:r.border,canOverride:i.generic.components([i.generic.unit,i.property.borderStyle,i.generic.color]),components:["border-width","border-style","border-color"],defaultValue:"none",overridesShorthands:["border-bottom","border-left","border-right","border-top"],restore:o.withoutDefaults,shorthand:!0,shorthandComponents:!0},"border-bottom":{breakUp:r.border,canOverride:i.generic.components([i.generic.unit,i.property.borderStyle,i.generic.color]),components:["border-bottom-width","border-bottom-style","border-bottom-color"],defaultValue:"none",restore:o.withoutDefaults,shorthand:!0},"border-bottom-color":{canOverride:i.generic.color,componentOf:["border-bottom","border-color"],defaultValue:"none"},"border-bottom-left-radius":{canOverride:i.generic.unit,componentOf:["border-radius"],defaultValue:"0",vendorPrefixes:["-moz-","-o-"]},"border-bottom-right-radius":{canOverride:i.generic.unit,componentOf:["border-radius"],defaultValue:"0",vendorPrefixes:["-moz-","-o-"]},"border-bottom-style":{canOverride:i.property.borderStyle,componentOf:["border-bottom","border-style"],defaultValue:"none"},"border-bottom-width":{canOverride:i.generic.unit,componentOf:["border-bottom","border-width"],defaultValue:"medium",oppositeTo:"border-top-width",shortestValue:"0"},"border-collapse":{canOverride:i.property.borderCollapse,defaultValue:"separate"},"border-color":{breakUp:r.fourValues,canOverride:i.generic.components([i.generic.color,i.generic.color,i.generic.color,i.generic.color]),componentOf:["border"],components:["border-top-color","border-right-color","border-bottom-color","border-left-color"],defaultValue:"none",restore:o.fourValues,shortestValue:"red",shorthand:!0},"border-left":{breakUp:r.border,canOverride:i.generic.components([i.generic.unit,i.property.borderStyle,i.generic.color]),components:["border-left-width","border-left-style","border-left-color"],defaultValue:"none",restore:o.withoutDefaults,shorthand:!0},"border-left-color":{canOverride:i.generic.color,componentOf:["border-color","border-left"],defaultValue:"none"},"border-left-style":{canOverride:i.property.borderStyle,componentOf:["border-left","border-style"],defaultValue:"none"},"border-left-width":{canOverride:i.generic.unit,componentOf:["border-left","border-width"],defaultValue:"medium",oppositeTo:"border-right-width",shortestValue:"0"},"border-radius":{breakUp:r.borderRadius,canOverride:i.generic.components([i.generic.unit,i.generic.unit,i.generic.unit,i.generic.unit]),components:["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"],defaultValue:"0",restore:o.borderRadius,shorthand:!0,vendorPrefixes:["-moz-","-o-"]},"border-right":{breakUp:r.border,canOverride:i.generic.components([i.generic.unit,i.property.borderStyle,i.generic.color]),components:["border-right-width","border-right-style","border-right-color"],defaultValue:"none",restore:o.withoutDefaults,shorthand:!0},"border-right-color":{canOverride:i.generic.color,componentOf:["border-color","border-right"],defaultValue:"none"},"border-right-style":{canOverride:i.property.borderStyle,componentOf:["border-right","border-style"],defaultValue:"none"},"border-right-width":{canOverride:i.generic.unit,componentOf:["border-right","border-width"],defaultValue:"medium",oppositeTo:"border-left-width",shortestValue:"0"},"border-style":{breakUp:r.fourValues,canOverride:i.generic.components([i.property.borderStyle,i.property.borderStyle,i.property.borderStyle,i.property.borderStyle]),componentOf:["border"],components:["border-top-style","border-right-style","border-bottom-style","border-left-style"],defaultValue:"none",restore:o.fourValues,shorthand:!0},"border-top":{breakUp:r.border,canOverride:i.generic.components([i.generic.unit,i.property.borderStyle,i.generic.color]),components:["border-top-width","border-top-style","border-top-color"],defaultValue:"none",restore:o.withoutDefaults,shorthand:!0},"border-top-color":{canOverride:i.generic.color,componentOf:["border-color","border-top"],defaultValue:"none"},"border-top-left-radius":{canOverride:i.generic.unit,componentOf:["border-radius"],defaultValue:"0",vendorPrefixes:["-moz-","-o-"]},"border-top-right-radius":{canOverride:i.generic.unit,componentOf:["border-radius"],defaultValue:"0",vendorPrefixes:["-moz-","-o-"]},"border-top-style":{canOverride:i.property.borderStyle,componentOf:["border-style","border-top"],defaultValue:"none"},"border-top-width":{canOverride:i.generic.unit,componentOf:["border-top","border-width"],defaultValue:"medium",oppositeTo:"border-bottom-width",shortestValue:"0"},"border-width":{breakUp:r.fourValues,canOverride:i.generic.components([i.generic.unit,i.generic.unit,i.generic.unit,i.generic.unit]),componentOf:["border"],components:["border-top-width","border-right-width","border-bottom-width","border-left-width"],defaultValue:"medium",restore:o.fourValues,shortestValue:"0",shorthand:!0},clear:{canOverride:i.property.clear,defaultValue:"none"},color:{canOverride:i.generic.color,defaultValue:"transparent",shortestValue:"red"},cursor:{canOverride:i.property.cursor,defaultValue:"auto"},display:{canOverride:i.property.display},float:{canOverride:i.property.float,defaultValue:"none"},font:{breakUp:r.font,canOverride:i.generic.components([i.property.fontStyle,i.property.fontVariant,i.property.fontWeight,i.property.fontStretch,i.generic.unit,i.generic.unit,i.property.fontFamily]),components:["font-style","font-variant","font-weight","font-stretch","font-size","line-height","font-family"],restore:o.font,shorthand:!0},"font-family":{canOverride:i.property.fontFamily,defaultValue:"user|agent|specific"},"font-size":{canOverride:i.generic.unit,defaultValue:"medium",shortestValue:"0"},"font-stretch":{canOverride:i.property.fontStretch,defaultValue:"normal"},"font-style":{canOverride:i.property.fontStyle,defaultValue:"normal"},"font-variant":{canOverride:i.property.fontVariant,defaultValue:"normal"},"font-weight":{canOverride:i.property.fontWeight,defaultValue:"normal",shortestValue:"400"},height:{canOverride:i.generic.unit,defaultValue:"auto",shortestValue:"0"},left:{canOverride:i.property.left,defaultValue:"auto"},"line-height":{canOverride:i.generic.unitOrNumber,defaultValue:"normal",shortestValue:"0"},"list-style":{canOverride:i.generic.components([i.property.listStyleType,i.property.listStylePosition,i.property.listStyleImage]),components:["list-style-type","list-style-position","list-style-image"],breakUp:r.listStyle,restore:o.withoutDefaults,defaultValue:"outside",shortestValue:"none",shorthand:!0},"list-style-image":{canOverride:i.generic.image,componentOf:["list-style"],defaultValue:"none"},"list-style-position":{canOverride:i.property.listStylePosition,componentOf:["list-style"],defaultValue:"outside",shortestValue:"inside"},"list-style-type":{canOverride:i.property.listStyleType,componentOf:["list-style"],defaultValue:"decimal|disc",shortestValue:"none"},margin:{breakUp:r.fourValues,canOverride:i.generic.components([i.generic.unit,i.generic.unit,i.generic.unit,i.generic.unit]),components:["margin-top","margin-right","margin-bottom","margin-left"],defaultValue:"0",restore:o.fourValues,shorthand:!0},"margin-bottom":{canOverride:i.generic.unit,componentOf:["margin"],defaultValue:"0",oppositeTo:"margin-top"},"margin-left":{canOverride:i.generic.unit,componentOf:["margin"],defaultValue:"0",oppositeTo:"margin-right"},"margin-right":{canOverride:i.generic.unit,componentOf:["margin"],defaultValue:"0",oppositeTo:"margin-left"},"margin-top":{canOverride:i.generic.unit,componentOf:["margin"],defaultValue:"0",oppositeTo:"margin-bottom"},outline:{canOverride:i.generic.components([i.generic.color,i.property.outlineStyle,i.generic.unit]),components:["outline-color","outline-style","outline-width"],breakUp:r.outline,restore:o.withoutDefaults,defaultValue:"0",shorthand:!0},"outline-color":{canOverride:i.generic.color,componentOf:["outline"],defaultValue:"invert",shortestValue:"red"},"outline-style":{canOverride:i.property.outlineStyle,componentOf:["outline"],defaultValue:"none"},"outline-width":{canOverride:i.generic.unit,componentOf:["outline"],defaultValue:"medium",shortestValue:"0"},overflow:{canOverride:i.property.overflow,defaultValue:"visible"},"overflow-x":{canOverride:i.property.overflow,defaultValue:"visible"},"overflow-y":{canOverride:i.property.overflow,defaultValue:"visible"},padding:{breakUp:r.fourValues,canOverride:i.generic.components([i.generic.unit,i.generic.unit,i.generic.unit,i.generic.unit]),components:["padding-top","padding-right","padding-bottom","padding-left"],defaultValue:"0",restore:o.fourValues,shorthand:!0},"padding-bottom":{canOverride:i.generic.unit,componentOf:["padding"],defaultValue:"0",oppositeTo:"padding-top"},"padding-left":{canOverride:i.generic.unit,componentOf:["padding"],defaultValue:"0",oppositeTo:"padding-right"},"padding-right":{canOverride:i.generic.unit,componentOf:["padding"],defaultValue:"0",oppositeTo:"padding-left"},"padding-top":{canOverride:i.generic.unit,componentOf:["padding"],defaultValue:"0",oppositeTo:"padding-bottom"},position:{canOverride:i.property.position,defaultValue:"static"},right:{canOverride:i.property.right,defaultValue:"auto"},"text-align":{canOverride:i.property.textAlign,defaultValue:"left|right"},"text-decoration":{canOverride:i.property.textDecoration,defaultValue:"none"},"text-overflow":{canOverride:i.property.textOverflow,defaultValue:"none"},"text-shadow":{canOverride:i.property.textShadow,defaultValue:"none"},top:{canOverride:i.property.top,defaultValue:"auto"},transform:{canOverride:i.property.transform,vendorPrefixes:["-moz-","-ms-","-webkit-"]},"vertical-align":{canOverride:i.property.verticalAlign,defaultValue:"baseline"},visibility:{canOverride:i.property.visibility,defaultValue:"visible"},"white-space":{canOverride:i.property.whiteSpace,defaultValue:"normal"},width:{canOverride:i.generic.unit,defaultValue:"auto",shortestValue:"0"},"z-index":{canOverride:i.property.zIndex,defaultValue:"auto"}};function u(e,t){var n=a(s[e],{});return"componentOf"in n&&(n.componentOf=n.componentOf.map(function(e){return t+e})),"components"in n&&(n.components=n.components.map(function(e){return t+e})),"keepUnlessDefault"in n&&(n.keepUnlessDefault=t+n.keepUnlessDefault),n}var l={};for(var c in s){var f=s[c];if("vendorPrefixes"in f){for(var p=0;p<f.vendorPrefixes.length;p++){var h=f.vendorPrefixes[p],d=u(c,h);delete d.vendorPrefixes,l[h+c]=d}delete f.vendorPrefixes}}t.exports=a(s,l)},{"../../utils/override":95,"./break-up":18,"./can-override":19,"./restore":49}],22:[function(e,t,n){var c=e("../../tokenizer/token"),f=e("../../writer/one-time").rules,p=e("../../writer/one-time").value;t.exports=function e(t){var n,r,i,o,a,s,u=[];if(t[0]==c.RULE)for(n=!/[\.\+>~]/.test(f(t[1])),a=0,s=t[2].length;a<s;a++)(r=t[2][a])[0]==c.PROPERTY&&0!==(i=r[1][1]).length&&0!==i.indexOf("--")&&(o=p(r,a),u.push([i,o,(l=i,"list-style"==l?l:0<l.indexOf("-radius")?"border-radius":"border-collapse"==l||"border-spacing"==l||"border-image"==l?l:0===l.indexOf("border-")&&/^border\-\w+\-\w+$/.test(l)?l.match(/border\-\w+/)[0]:0===l.indexOf("border-")&&/^border\-\w+$/.test(l)?"border":0===l.indexOf("text-")?l:"-chrome-"==l?l:l.replace(/^\-\w+\-/,"").match(/([a-zA-Z]+)/)[0].toLowerCase()),t[2][a],i+":"+o,t[1],n]));else if(t[0]==c.NESTED_BLOCK)for(a=0,s=t[2].length;a<s;a++)u=u.concat(e(t[2][a]));var l;return u}},{"../../tokenizer/token":84,"../../writer/one-time":98}],23:[function(e,t,n){function r(e){this.name="InvalidPropertyError",this.message=e,this.stack=(new Error).stack}(r.prototype=Object.create(Error.prototype)).constructor=r,t.exports=r},{}],24:[function(e,t,n){var h=e("../../tokenizer/marker"),p=e("../../utils/split"),d=/\/deep\//,m=/^::/,g=":not",v=[":dir",":lang",":not",":nth-child",":nth-last-child",":nth-last-of-type",":nth-of-type"],b=/[>\+~]/,y=[":after",":before",":first-letter",":first-line",":lang"],_=["::after","::before","::first-letter","::first-line"],w={DOUBLE_QUOTE:"double-quote",SINGLE_QUOTE:"single-quote",ROOT:"root"};function E(e){var t,n,r,i,o,a,s=[],u=[],l=w.ROOT,c=0,f=!1,p=!1;for(o=0,a=e.length;o<a;o++)t=e[o],i=!r&&b.test(t),n=l==w.DOUBLE_QUOTE||l==w.SINGLE_QUOTE,r?u.push(t):t==h.DOUBLE_QUOTE&&l==w.ROOT?(u.push(t),l=w.DOUBLE_QUOTE):t==h.DOUBLE_QUOTE&&l==w.DOUBLE_QUOTE?(u.push(t),l=w.ROOT):t==h.SINGLE_QUOTE&&l==w.ROOT?(u.push(t),l=w.SINGLE_QUOTE):t==h.SINGLE_QUOTE&&l==w.SINGLE_QUOTE?(u.push(t),l=w.ROOT):n?u.push(t):t==h.OPEN_ROUND_BRACKET?(u.push(t),c++):t==h.CLOSE_ROUND_BRACKET&&1==c&&f?(u.push(t),s.push(u.join("")),c--,u=[],f=!1):t==h.CLOSE_ROUND_BRACKET?(u.push(t),c--):t==h.COLON&&0===c&&f&&!p?(s.push(u.join("")),(u=[]).push(t)):t!=h.COLON||0!==c||p?t==h.SPACE&&0===c&&f?(s.push(u.join("")),u=[],f=!1):i&&0===c&&f?(s.push(u.join("")),u=[],f=!1):u.push(t):((u=[]).push(t),f=!0),r=t==h.BACK_SLASH,p=t==h.COLON;return 0<u.length&&f&&s.push(u.join("")),s}t.exports=function(e,t,n,r){var i,o,a,s,u,l,c,f=p(e,h.COMMA);for(o=0,a=f.length;o<a;o++)if(0===(i=f[o]).length||(c=i,d.test(c))||-1<i.indexOf(h.COLON)&&(u=E(s=i),l=r,!(function(e,t,n){var r,i,o,a;for(o=0,a=e.length;o<a;o++)if(r=e[o],i=-1<r.indexOf(h.OPEN_ROUND_BRACKET)?r.substring(0,r.indexOf(h.OPEN_ROUND_BRACKET)):r,-1===t.indexOf(i)&&-1===n.indexOf(i))return!1;return!0}(u,t,n)&&function(e){var t,n,r,i,o,a;for(o=0,a=e.length;o<a;o++){if(t=e[o],r=t.indexOf(h.OPEN_ROUND_BRACKET),n=(i=-1<r)?t.substring(0,r):t,i&&-1==v.indexOf(n))return!1;if(!i&&-1<v.indexOf(n))return!1}return!0}(u)&&(u.length<2||!function(e,t){var n,r,i,o,a,s,u,l,c=0;for(u=0,l=t.length;u<l&&(n=t[u],i=t[u+1]);u++)if(r=e.indexOf(n,c),o=e.indexOf(n,r+1),c=o,r+n.length==o&&(a=-1<n.indexOf(h.OPEN_ROUND_BRACKET)?n.substring(0,n.indexOf(h.OPEN_ROUND_BRACKET)):n,s=-1<i.indexOf(h.OPEN_ROUND_BRACKET)?i.substring(0,i.indexOf(h.OPEN_ROUND_BRACKET)):i,a!=g||s!=g))return!0;return!1}(s,u))&&(u.length<2||l&&function(e){var t,n,r,i,o=0;for(n=0,r=e.length;n<r;n++)if(t=e[n],i=t,m.test(i)?o+=-1<_.indexOf(t)?1:0:o+=-1<y.indexOf(t)?1:0,1<o)return!1;return!0}(u)))))return!1;return!0}},{"../../tokenizer/marker":83,"../../utils/split":96}],25:[function(e,t,n){var h=e("./is-mergeable"),d=e("./properties/optimize"),m=e("../level-1/sort-selectors"),g=e("../level-1/tidy-rules"),v=e("../../options/optimization-level").OptimizationLevel,b=e("../../writer/one-time").body,y=e("../../writer/one-time").rules,_=e("../../tokenizer/token");t.exports=function(e,t){for(var n=[null,[],[]],r=t.options,i=r.compatibility.selectors.adjacentSpace,o=r.level[v.One].selectorsSortingMethod,a=r.compatibility.selectors.mergeablePseudoClasses,s=r.compatibility.selectors.mergeablePseudoElements,u=r.compatibility.selectors.mergeLimit,l=r.compatibility.selectors.multiplePseudoMerging,c=0,f=e.length;c<f;c++){var p=e[c];p[0]==_.RULE?n[0]==_.RULE&&y(p[1])==y(n[1])?(Array.prototype.push.apply(n[2],p[2]),d(n[2],!0,!0,t),p[2]=[]):n[0]==_.RULE&&b(p[2])==b(n[2])&&h(y(p[1]),a,s,l)&&h(y(n[1]),a,s,l)&&n[1].length<u?(n[1]=g(n[1].concat(p[1]),!1,i,!1,t.warnings),n[1]=1<n.length?m(n[1],o):n[1],p[2]=[]):n=p:n=[null,[],[]]}}},{"../../options/optimization-level":65,"../../tokenizer/token":84,"../../writer/one-time":98,"../level-1/sort-selectors":14,"../level-1/tidy-rules":17,"./is-mergeable":24,"./properties/optimize":36}],26:[function(e,t,n){var k=e("./reorderable").canReorder,f=e("./reorderable").canReorderSingle,O=e("./extract-properties"),p=e("./rules-overlap"),S=e("../../writer/one-time").rules,D=e("../../options/optimization-level").OptimizationLevel,B=e("../../tokenizer/token");function T(e,t,n){var r,i,o,a,s,u,l,c;for(s=0,u=e.length;s<u;s++)for(i=(r=e[s])[5],l=0,c=t.length;l<c;l++)if(a=(o=t[l])[5],p(i,a,!0)&&!f(r,o,n))return!1;return!0}t.exports=function(e,t){for(var n=t.options.level[D.Two].mergeSemantically,r=t.cache.specificity,i={},o=[],a=e.length-1;0<=a;a--){var s=e[a];if(s[0]==B.NESTED_BLOCK){var u=S(s[1]),l=i[u];l||(l=[],i[u]=l),l.push(a)}}for(var c in i){var f=i[c];e:for(var p=f.length-1;0<p;p--){var h=f[p],d=e[h],m=f[p-1],g=e[m];t:for(var v=1;-1<=v;v-=2){for(var b=1==v,y=b?h+1:m-1,_=b?m:h,w=b?1:-1,E=b?d:g,A=b?g:d,x=O(E);y!=_;){var C=O(e[y]);if(y+=w,!(n&&T(x,C,r)||k(x,C,r)))continue t}A[2]=b?E[2].concat(A[2]):A[2].concat(E[2]),E[2]=[],o.push(A);continue e}}}return o}},{"../../options/optimization-level":65,"../../tokenizer/token":84,"../../writer/one-time":98,"./extract-properties":22,"./reorderable":47,"./rules-overlap":51}],27:[function(e,t,n){var g=e("./is-mergeable"),v=e("../level-1/sort-selectors"),b=e("../level-1/tidy-rules"),y=e("../../options/optimization-level").OptimizationLevel,_=e("../../writer/one-time").body,w=e("../../writer/one-time").rules,E=e("../../tokenizer/token");function a(e){return e.replace(/--[^ ,>\+~:]+/g,"")}function A(e,t){var n=a(w(e[1]));for(var r in t){var i=t[r],o=a(w(i[1]));(-1<o.indexOf(n)||-1<n.indexOf(o))&&delete t[r]}}t.exports=function(e,t){for(var n,r,i=t.options,o=i.level[y.Two].mergeSemantically,a=i.compatibility.selectors.adjacentSpace,s=i.level[y.One].selectorsSortingMethod,u=i.compatibility.selectors.mergeablePseudoClasses,l=i.compatibility.selectors.mergeablePseudoElements,c=i.compatibility.selectors.multiplePseudoMerging,f={},p=e.length-1;0<=p;p--){var h=e[p];if(h[0]==E.RULE){0<h[2].length&&!o&&(r=w(h[1]),/\.|\*| :/.test(r))&&(f={}),0<h[2].length&&o&&(n=void 0,-1<(n=w(h[1])).indexOf("__")||-1<n.indexOf("--"))&&A(h,f);var d=_(h[2]),m=f[d];m&&g(w(h[1]),u,l,c)&&g(w(m[1]),u,l,c)&&(0<h[2].length?(h[1]=b(m[1].concat(h[1]),!1,a,!1,t.warnings),h[1]=1<h[1].length?v(h[1],s):h[1]):h[1]=m[1].concat(h[1]),m[2]=[],f[d]=null),f[_(h[2])]=h}}}},{"../../options/optimization-level":65,"../../tokenizer/token":84,"../../writer/one-time":98,"../level-1/sort-selectors":14,"../level-1/tidy-rules":17,"./is-mergeable":24}],28:[function(e,t,n){var A=e("./reorderable").canReorder,x=e("./extract-properties"),C=e("./properties/optimize"),k=e("../../writer/one-time").rules,O=e("../../tokenizer/token");t.exports=function(e,t){var n,r=t.cache.specificity,i={},o=[];for(n=e.length-1;0<=n;n--)if(e[n][0]==O.RULE&&0!==e[n][2].length){var a=k(e[n][1]);i[a]=[n].concat(i[a]||[]),2==i[a].length&&o.push(a)}for(n=o.length-1;0<=n;n--){var s=i[o[n]];e:for(var u=s.length-1;0<u;u--){var l=s[u-1],c=e[l],f=s[u],p=e[f];t:for(var h=1;-1<=h;h-=2){for(var d=1==h,m=d?l+1:f-1,g=d?f:l,v=d?1:-1,b=d?c:p,y=d?p:c,_=x(b);m!=g;){var w=x(e[m]);m+=v;var E=d?A(_,w,r):A(w,_,r);if(!E&&!d)continue e;if(!E&&d)continue t}d?(Array.prototype.push.apply(b[2],y[2]),y[2]=b[2]):Array.prototype.push.apply(y[2],b[2]),C(y[2],!0,!0,t),b[2]=[]}}}}},{"../../tokenizer/token":84,"../../writer/one-time":98,"./extract-properties":22,"./properties/optimize":36,"./reorderable":47}],29:[function(e,t,n){var a=e("./merge-adjacent"),s=e("./merge-media-queries"),u=e("./merge-non-adjacent-by-body"),l=e("./merge-non-adjacent-by-selector"),c=e("./reduce-non-adjacent"),f=e("./remove-duplicate-font-at-rules"),p=e("./remove-duplicate-media-queries"),h=e("./remove-duplicates"),d=e("./remove-unused-at-rules"),m=e("./restructure"),g=e("./properties/optimize"),v=e("../../options/optimization-level").OptimizationLevel,b=e("../../tokenizer/token");function y(e,t,n){var r,i,o=t.options.level[v.Two];if(function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i[0]==b.NESTED_BLOCK){var o=/@(-moz-|-o-|-webkit-)?keyframes/.test(i[1][0][1]);y(i[2],t,!o)}}}(e,t),function e(t,n){for(var r=0,i=t.length;r<i;r++){var o=t[r];switch(o[0]){case b.RULE:g(o[2],!0,!0,n);break;case b.NESTED_BLOCK:e(o[2],n)}}}(e,t),o.removeDuplicateRules&&h(e,t),o.mergeAdjacentRules&&a(e,t),o.reduceNonAdjacentRules&&c(e,t),o.mergeNonAdjacentRules&&"body"!=o.mergeNonAdjacentRules&&l(e,t),o.mergeNonAdjacentRules&&"selector"!=o.mergeNonAdjacentRules&&u(e,t),o.restructureRules&&o.mergeAdjacentRules&&n&&(m(e,t),a(e,t)),o.restructureRules&&!o.mergeAdjacentRules&&n&&m(e,t),o.removeDuplicateFontRules&&f(e,t),o.removeDuplicateMediaBlocks&&p(e,t),o.removeUnusedAtRules&&d(e,t),o.mergeMedia)for(i=(r=s(e,t)).length-1;0<=i;i--)y(r[i][2],t,!1);return o.removeEmpty&&function e(t){for(var n=0,r=t.length;n<r;n++){var i=t[n],o=!1;switch(i[0]){case b.RULE:o=0===i[1].length||0===i[2].length;break;case b.NESTED_BLOCK:e(i[2]),o=0===i[2].length;break;case b.AT_RULE:o=0===i[1].length;break;case b.AT_RULE_BLOCK:o=0===i[2].length}o&&(t.splice(n,1),n--,r--)}}(e),e}t.exports=y},{"../../options/optimization-level":65,"../../tokenizer/token":84,"./merge-adjacent":25,"./merge-media-queries":26,"./merge-non-adjacent-by-body":27,"./merge-non-adjacent-by-selector":28,"./properties/optimize":36,"./reduce-non-adjacent":42,"./remove-duplicate-font-at-rules":43,"./remove-duplicate-media-queries":44,"./remove-duplicates":45,"./remove-unused-at-rules":46,"./restructure":50}],30:[function(e,t,n){var c=e("../../../tokenizer/marker");t.exports=function(e,t,n){var r,i,o,a=t.value.length,s=n.value.length,u=Math.max(a,s),l=Math.min(a,s)-1;for(o=0;o<u;o++)if(r=t.value[o]&&t.value[o][1]||r,i=n.value[o]&&n.value[o][1]||i,r!=c.COMMA&&i!=c.COMMA&&!e(r,i,o,o<=l))return!1;return!0}},{"../../../tokenizer/marker":83}],31:[function(e,t,n){var a=e("../compactable");function s(e,t){return e.components.filter(t)[0]}t.exports=function(e,t){var n,r=(n=t,function(e){return n.name===e.name});return s(e,r)||function(e,t){var n,r,i,o;if(a[e.name].shorthandComponents)for(i=0,o=e.components.length;i<o;i++)if(n=e.components[i],r=s(n,t))return r}(e,r)}},{"../compactable":21}],32:[function(e,t,n){t.exports=function(e){for(var t=e.value.length-1;0<=t;t--)if("inherit"==e.value[t][1])return!0;return!1}},{}],33:[function(e,t,n){var i=e("../compactable");function o(e,t){var n=i[e.name];return"components"in n&&-1<n.components.indexOf(t.name)}t.exports=function(e,t,n){return o(e,t)||!n&&!!i[e.name].shorthandComponents&&(r=t,e.components.some(function(e){return o(e,r)}));var r}},{"../compactable":21}],34:[function(e,t,n){var r=e("../../../tokenizer/marker");t.exports=function(e){return"font"!=e.name||-1==e.value[0][1].indexOf(r.INTERNAL)}},{"../../../tokenizer/marker":83}],35:[function(e,t,n){var c=e("./every-values-pair"),v=e("./has-inherit"),b=e("./populate-components"),y=e("../compactable"),_=e("../clone").deep,w=e("../restore-with-components"),E=e("../../restore-from-optimizing"),A=e("../../wrap-for-optimizing").single,x=e("../../../writer/one-time").body,C=e("../../../tokenizer/token");function f(e,t,n,r){var i,o,a,s=e[t];for(i in n)void 0!==s&&i==s.name||(o=y[i],a=n[i],s&&u(n,i,s)?delete n[i]:o.components.length>Object.keys(a).length||l(a)||p(a,i,r)&&h(a)&&(d(a)?m(e,a,i,r):g(e,a,i,r)))}function u(e,t,n){var r,i=y[t],o=y[n.name];if("overridesShorthands"in i&&-1<i.overridesShorthands.indexOf(n.name))return!0;if(o&&"componentOf"in o)for(r in e[t])if(-1<o.componentOf.indexOf(r))return!0;return!1}function l(e){var t,n;for(n in e){if(void 0!==t&&e[n].important!=t)return!0;t=e[n].important}return!1}function p(e,t,n){var r,i,o,a,s=y[t],u=[C.PROPERTY,[C.PROPERTY_NAME,t],[C.PROPERTY_VALUE,s.defaultValue]],l=A(u);for(b([l],n,[]),o=0,a=s.components.length;o<a;o++)if(r=e[s.components[o]],i=y[r.name].canOverride,!c(i.bind(null,n),l.components[o],r))return!1;return!0}function h(e){var t,n,r,i,o=null;for(n in e)if(r=e[n],"restore"in(i=y[n])){if(E([r.all[r.position]],w),t=i.restore(r,y).length,null!==o&&t!==o)return!1;o=t}return!0}function d(e){var t,n,r=null;for(t in e){if(n=v(e[t]),null!==r&&r!==n)return!0;r=n}return!1}function m(e,t,n,r){var i,o,a,s,u=function(e,t,n){var r,i,o,a,s,u,l=[],c={},f={},p=y[t],h=[C.PROPERTY,[C.PROPERTY_NAME,t],[C.PROPERTY_VALUE,p.defaultValue]],d=A(h);for(b([d],n,[]),s=0,u=p.components.length;s<u;s++)r=e[p.components[s]],v(r)?(i=r.all[r.position].slice(0,2),Array.prototype.push.apply(i,r.value),l.push(i),(o=_(r)).value=k(e,o.name),d.components[s]=o,c[r.name]=_(r)):((o=_(r)).all=r.all,d.components[s]=o,f[r.name]=r);return a=O(f,1),h[1].push(a),E([d],w),h=h.slice(0,2),Array.prototype.push.apply(h,d.value),l.unshift(h),[l,d,c]}(t,n,r),l=function(e,t,n){var r,i,o,a,s,u,l=[],c={},f={},p=y[t],h=[C.PROPERTY,[C.PROPERTY_NAME,t],[C.PROPERTY_VALUE,"inherit"]],d=A(h);for(b([d],n,[]),s=0,u=p.components.length;s<u;s++)r=e[p.components[s]],v(r)?c[r.name]=r:(i=r.all[r.position].slice(0,2),Array.prototype.push.apply(i,r.value),l.push(i),f[r.name]=_(r));return o=O(c,1),h[1].push(o),a=O(c,2),h[2].push(a),l.unshift(h),[l,d,f]}(t,n,r),c=u[0],f=l[0],p=x(c).length<x(f).length,h=p?c:f,d=p?u[1]:l[1],m=p?u[2]:l[2],g=t[Object.keys(t)[0]].all;for(i in d.position=g.length,d.shorthand=!0,d.dirty=!0,d.all=g,d.all.push(h[0]),e.push(d),t)(o=t[i]).unused=!0,o.name in m&&(a=m[o.name],s=S(h,i),a.position=g.length,a.all=g,a.all.push(s),e.push(a))}function k(e,t){var n=y[t];return"oppositeTo"in n?e[n.oppositeTo].value:[[C.PROPERTY_VALUE,n.defaultValue]]}function O(e,t){var n,r,i,o,a=[];for(o in e)i=(r=(n=e[o]).all[n.position])[t][r[t].length-1],Array.prototype.push.apply(a,i);return a.sort(s)}function s(e,t){var n=e[0],r=t[0],i=e[1],o=t[1];return n<r?-1:n===r&&i<o?-1:1}function S(e,t){var n,r;for(n=0,r=e.length;n<r;n++)if(e[n][1][1]==t)return e[n]}function g(e,t,n,r){var i,o,a,s=y[n],u=[C.PROPERTY,[C.PROPERTY_NAME,n],[C.PROPERTY_VALUE,s.defaultValue]],l=A(u);l.shorthand=!0,l.dirty=!0,b([l],r,[]);for(var c=0,f=s.components.length;c<f;c++){var p=t[s.components[c]];l.components[c]=_(p),l.important=p.important,a=p.all}for(var h in t)t[h].unused=!0;i=O(t,1),u[1].push(i),o=O(t,2),u[2].push(o),l.position=a.length,l.all=a,l.all.push(u),e.push(l)}t.exports=function(e,t){var n,r,i,o,a,s,u,l={};if(!(e.length<3)){for(o=0,a=e.length;o<a;o++)if(i=e[o],n=y[i.name],!i.unused&&!i.hack&&!i.block&&(f(e,o,l,t),n&&n.componentOf))for(s=0,u=n.componentOf.length;s<u;s++)l[r=n.componentOf[s]]=l[r]||{},l[r][i.name]=i;f(e,o,l,t)}}},{"../../../tokenizer/token":84,"../../../writer/one-time":98,"../../restore-from-optimizing":56,"../../wrap-for-optimizing":58,"../clone":20,"../compactable":21,"../restore-with-components":48,"./every-values-pair":30,"./has-inherit":32,"./populate-components":39}],36:[function(e,t,n){var c=e("./merge-into-shorthands"),f=e("./override-properties"),p=e("./populate-components"),h=e("../restore-with-components"),d=e("../../wrap-for-optimizing").all,m=e("../../remove-unused"),g=e("../../restore-from-optimizing"),v=e("../../../options/optimization-level").OptimizationLevel;t.exports=function e(t,n,r,i){var o,a,s,u=i.options.level[v.Two],l=d(t,!1,u.skipProperties);for(p(l,i.validator,i.warnings),a=0,s=l.length;a<s;a++)(o=l[a]).block&&e(o.value[0][1],n,r,i);r&&u.mergeIntoShorthands&&c(l,i.validator),n&&u.overrideProperties&&f(l,r,i.options.compatibility,i.validator),g(l,h),m(l)}},{"../../../options/optimization-level":65,"../../remove-unused":55,"../../restore-from-optimizing":56,"../../wrap-for-optimizing":58,"../restore-with-components":48,"./merge-into-shorthands":35,"./override-properties":37,"./populate-components":39}],37:[function(e,t,n){var y=e("./has-inherit"),_=e("./every-values-pair"),w=e("./find-component-in"),E=e("./is-component-of"),A=e("./is-mergeable-shorthand"),x=e("./overrides-non-component-shorthand"),C=e("./vendor-prefixes").same,k=e("../compactable"),u=e("../clone").deep,l=(u=e("../clone").deep,e("../restore-with-components")),s=e("../clone").shallow,c=e("../../restore-from-optimizing"),f=e("../../../tokenizer/token"),p=e("../../../tokenizer/marker"),r=e("../../../writer/one-time").property;function O(e,t){for(var n=0;n<e.components.length;n++){var r=e.components[n],i=k[r.name],o=i&&i.canOverride||o.sameValue,a=s(r);if(a.value=[[f.PROPERTY_VALUE,i.defaultValue]],!_(o.bind(null,t),a,r))return!0}return!1}function h(e,t){t.unused=!0,B(t,T(e)),e.value=t.value}function d(e,t){t.unused=!0,e.multiplex=!0,e.value=t.value}function S(e,t){var n,r;t.multiplex?d(e,t):e.multiplex?h(e,t):(n=e,(r=t).unused=!0,n.value=r.value)}function D(e,t){t.unused=!0;for(var n=0,r=e.components.length;n<r;n++)S(e.components[n],t.components[n],e.multiplex)}function B(e,t){e.multiplex=!0,k[e.name].shorthand?function(e,t){var n,r,i;for(r=0,i=e.components.length;r<i;r++)(n=e.components[r]).multiplex||o(n,t)}(e,t):o(e,t)}function o(e,t){for(var n,r="real"==k[e.name].intoMultiplexMode,i=r?e.value.slice(0):k[e.name].defaultValue,o=T(e),a=i.length;o<t;o++)if(e.value.push([f.PROPERTY_VALUE,p.COMMA]),Array.isArray(i))for(n=0;n<a;n++)e.value.push(r?i[n]:[f.PROPERTY_VALUE,i[n]]);else e.value.push(r?i:[f.PROPERTY_VALUE,i])}function T(e){for(var t=0,n=0,r=e.value.length;n<r;n++)e.value[n][1]==p.COMMA&&t++;return t+1}function m(e){var t=[f.PROPERTY,[f.PROPERTY_NAME,e.name]].concat(e.value);return r([t],0).length}function R(e,t,n){for(var r=0,i=t;0<=i&&(e[i].name!=n||e[i].unused||r++,!(1<r));i--);return 1<r}function F(e,t){for(var n=0,r=e.components.length;n<r;n++)if(!L(t.isUrl,e.components[n])&&L(t.isFunction,e.components[n]))return!0;return!1}function L(e,t){for(var n=0,r=t.value.length;n<r;n++)if(t.value[n][1]!=p.COMMA&&e(t.value[n][1]))return!0;return!1}function M(e,t){if(!e.multiplex&&!t.multiplex||e.multiplex&&t.multiplex)return!1;var n,r=e.multiplex?e:t,i=e.multiplex?t:e,o=u(r);c([o],l);var a=u(i);c([a],l);var s=m(o)+1+m(a);return e.multiplex?h(n=w(o,a),a):(n=w(a,o),B(a,T(o)),d(n,o)),c([a],l),s<=m(a)}function U(e){return e.name in k}function N(e,t){return!e.multiplex&&("background"==e.name||"background-image"==e.name)&&t.multiplex&&("background"==t.name||"background-image"==t.name)&&function(e){for(var t=function(e){for(var t=[],n=0,r=[],i=e.length;n<i;n++){var o=e[n];o[1]==p.COMMA?(t.push(r),r=[]):r.push(o)}return t.push(r),t}(e),n=0,r=t.length;n<r;n++)if(1==t[n].length&&"none"==t[n][0][1])return!0;return!1}(t.value)}t.exports=function(e,t,n,r){var i,o,a,s,u,l,c,f,p,h,d;e:for(p=e.length-1;0<=p;p--)if(U(o=e[p])&&!o.block){i=k[o.name].canOverride;t:for(h=p-1;0<=h;h--)if(U(a=e[h])&&!a.block&&!a.unused&&!o.unused&&(!a.hack||o.hack||o.important)&&(a.hack||a.important||!o.hack)&&(a.important!=o.important||a.hack[0]==o.hack[0])&&!(a.important==o.important&&(a.hack[0]!=o.hack[0]||a.hack[1]&&a.hack[1]!=o.hack[1])||y(o)||N(a,o)))if(o.shorthand&&E(o,a)){if(!o.important&&a.important)continue;if(!C([a],o.components))continue;if(!L(r.isFunction,a)&&F(o,r))continue;if(!A(o)){a.unused=!0;continue}s=w(o,a),i=k[a.name].canOverride,_(i.bind(null,r),a,s)&&(a.unused=!0)}else if(o.shorthand&&x(o,a)){if(!o.important&&a.important)continue;if(!C([a],o.components))continue;if(!L(r.isFunction,a)&&F(o,r))continue;for(d=(u=a.shorthand?a.components:[a]).length-1;0<=d;d--)if(l=u[d],c=w(o,l),i=k[l.name].canOverride,!_(i.bind(null,r),a,c))continue t;a.unused=!0}else if(t&&a.shorthand&&!o.shorthand&&E(a,o,!0)){if(o.important&&!a.important)continue;if(!o.important&&a.important){o.unused=!0;continue}if(R(e,p-1,a.name))continue;if(F(a,r))continue;if(!A(a))continue;if(s=w(a,o),_(i.bind(null,r),s,o)){var m=!n.properties.backgroundClipMerging&&-1<s.name.indexOf("background-clip")||!n.properties.backgroundOriginMerging&&-1<s.name.indexOf("background-origin")||!n.properties.backgroundSizeMerging&&-1<s.name.indexOf("background-size"),g=k[o.name].nonMergeableValue===o.value[0][1];if(m||g)continue;if(!n.properties.merging&&O(a,r))continue;if(s.value[0][1]!=o.value[0][1]&&(y(a)||y(o)))continue;if(M(a,o))continue;!a.multiplex&&o.multiplex&&B(a,T(o)),S(s,o),a.dirty=!0}}else if(t&&a.shorthand&&o.shorthand&&a.name==o.name){if(!a.multiplex&&o.multiplex)continue;if(!o.important&&a.important){o.unused=!0;continue e}if(o.important&&!a.important){a.unused=!0;continue}if(!A(o)){a.unused=!0;continue}for(d=a.components.length-1;0<=d;d--){var v=a.components[d],b=o.components[d];if(i=k[v.name].canOverride,!_(i.bind(null,r),v,b))continue e}D(a,o),a.dirty=!0}else if(t&&a.shorthand&&o.shorthand&&E(a,o)){if(!a.important&&o.important)continue;if(s=w(a,o),i=k[o.name].canOverride,!_(i.bind(null,r),s,o))continue;if(a.important&&!o.important){o.unused=!0;continue}if(1<k[o.name].restore(o,k).length)continue;S(s=w(a,o),o),o.dirty=!0}else if(a.name==o.name){if(f=!0,o.shorthand)for(d=o.components.length-1;0<=d&&f;d--)l=a.components[d],c=o.components[d],i=k[c.name].canOverride,f=f&&_(i.bind(null,r),l,c);else i=k[o.name].canOverride,f=_(i.bind(null,r),a,o);if(a.important&&!o.important&&f){o.unused=!0;continue}if(!a.important&&o.important&&f){a.unused=!0;continue}if(!f)continue;a.unused=!0}}}},{"../../../tokenizer/marker":83,"../../../tokenizer/token":84,"../../../writer/one-time":98,"../../restore-from-optimizing":56,"../clone":20,"../compactable":21,"../restore-with-components":48,"./every-values-pair":30,"./find-component-in":31,"./has-inherit":32,"./is-component-of":33,"./is-mergeable-shorthand":34,"./overrides-non-component-shorthand":38,"./vendor-prefixes":41}],38:[function(e,t,n){var r=e("../compactable");t.exports=function(e,t){return e.name in r&&"overridesShorthands"in r[e.name]&&-1<r[e.name].overridesShorthands.indexOf(t.name)}},{"../compactable":21}],39:[function(e,t,n){var l=e("../compactable"),c=e("../invalid-property-error");t.exports=function(e,t,n){for(var r,i,o,a=e.length-1;0<=a;a--){var s=e[a],u=l[s.name];if(u&&u.shorthand){s.shorthand=!0,s.dirty=!0;try{if(s.components=u.breakUp(s,l,t),u.shorthandComponents)for(i=0,o=s.components.length;i<o;i++)(r=s.components[i]).components=l[r.name].breakUp(r,l,t)}catch(e){if(!(e instanceof c))throw e;s.components=[],n.push(e.message)}0<s.components.length?s.multiplex=s.components[0].multiplex:s.unused=!0}}}},{"../compactable":21,"../invalid-property-error":23}],40:[function(e,t,n){var o=e("./vendor-prefixes").same;t.exports=function(e,t,n,r,i){return!(!o(t,n)||i&&e.isVariable(t)!==e.isVariable(n))}},{"./vendor-prefixes":41}],41:[function(e,t,n){var r=/(?:^|\W)(\-\w+\-)/g;function i(e){for(var t,n=[];null!==(t=r.exec(e));)-1==n.indexOf(t[0])&&n.push(t[0]);return n}t.exports={unique:i,same:function(e,t){return i(e).sort().join(",")==i(t).sort().join(",")}}},{}],42:[function(e,t,n){var _=e("./is-mergeable"),g=e("./properties/optimize"),v=e("../../utils/clone-array"),b=e("../../tokenizer/token"),w=e("../../writer/one-time").body,y=e("../../writer/one-time").rules;function E(e){for(var t=[],n=0;n<e.length;n++)t.push([e[n][1]]);return t}function A(e,t,n,r,i){for(var o=[],a=[],s=[],u=t.length-1;0<=u;u--)if(!n.filterOut(u,o)){var l=t[u].where,c=e[l],f=v(c[2]);o=o.concat(f),a.push(f),s.push(l)}g(o,!0,!1,i);for(var p=s.length,h=o.length-1,d=p-1;0<=d;)if((0===d||o[h]&&-1<a[d].indexOf(o[h]))&&-1<h)h--;else{var m=o.splice(h+1);n.callback(e[s[d]],m,p,d),d--}}t.exports=function(e,t){for(var n=t.options,r=n.compatibility.selectors.mergeablePseudoClasses,i=n.compatibility.selectors.mergeablePseudoElements,o=n.compatibility.selectors.multiplePseudoMerging,a={},s=[],u=e.length-1;0<=u;u--){var l=e[u];if(l[0]==b.RULE&&0!==l[2].length)for(var c=y(l[1]),f=1<l[1].length&&_(c,r,i,o),p=E(l[1]),h=f?[c].concat(p):[c],d=0,m=h.length;d<m;d++){var g=h[d];a[g]?s.push(g):a[g]=[],a[g].push({where:u,list:p,isPartial:f&&0<d,isComplex:f&&0===d})}}!function(e,t,n,r,i){function o(e,t){return c[e].isPartial&&0===t.length}function a(e,t,n,r){c[n-r-1].isPartial||(e[2]=t)}for(var s=0,u=t.length;s<u;s++){var l=t[s],c=n[l];A(e,c,{filterOut:o,callback:a},0,i)}}(e,s,a,0,t),function(e,t,n,r){var i=n.compatibility.selectors.mergeablePseudoClasses,o=n.compatibility.selectors.mergeablePseudoElements,a=n.compatibility.selectors.multiplePseudoMerging,s={};function u(e){return s.data[e].where<s.intoPosition}function l(e,t,n,r){0===r&&s.reducedBodies.push(t)}e:for(var c in t){var f=t[c];if(f[0].isComplex){var p=f[f.length-1].where,h=e[p],d=[],m=_(c,i,o,a)?f[0].list:[c];s.intoPosition=p,s.reducedBodies=d;for(var g=0,v=m.length;g<v;g++){var b=m[g],y=t[b];if(y.length<2)continue e;if(s.data=y,A(e,y,{filterOut:u,callback:l},0,r),w(d[d.length-1])!=w(d[0]))continue e}h[2]=d[0]}}}(e,a,n,t)}},{"../../tokenizer/token":84,"../../utils/clone-array":86,"../../writer/one-time":98,"./is-mergeable":24,"./properties/optimize":36}],43:[function(e,t,n){var a=e("../../tokenizer/token"),s=e("../../writer/one-time").all,u="@font-face";t.exports=function(e){var t,n,r,i,o=[];for(r=0,i=e.length;r<i;r++)(t=e[r])[0]!=a.AT_RULE_BLOCK&&t[1][0][1]!=u||(n=s([t]),-1<o.indexOf(n)?t[2]=[]:o.push(n))}},{"../../tokenizer/token":84,"../../writer/one-time":98}],44:[function(e,t,n){var s=e("../../tokenizer/token"),u=e("../../writer/one-time").all,l=e("../../writer/one-time").rules;t.exports=function(e){var t,n,r,i,o,a={};for(i=0,o=e.length;i<o;i++)(n=e[i])[0]==s.NESTED_BLOCK&&((t=a[r=l(n[1])+"%"+u(n[2])])&&(t[2]=[]),a[r]=n)}},{"../../tokenizer/token":84,"../../writer/one-time":98}],45:[function(e,t,n){var c=e("../../tokenizer/token"),f=e("../../writer/one-time").body,p=e("../../writer/one-time").rules;t.exports=function(e){for(var t,n,r,i,o={},a=[],s=0,u=e.length;s<u;s++)(n=e[s])[0]==c.RULE&&(o[t=p(n[1])]&&1==o[t].length?a.push(t):o[t]=o[t]||[],o[t].push(s));for(s=0,u=a.length;s<u;s++){i=[];for(var l=o[t=a[s]].length-1;0<=l;l--)n=e[o[t][l]],r=f(n[2]),-1<i.indexOf(r)?n[2]=[]:i.push(r)}}},{"../../tokenizer/token":84,"../../writer/one-time":98}],46:[function(e,t,n){var f=e("./properties/populate-components"),p=e("../wrap-for-optimizing").single,h=e("../restore-from-optimizing"),c=e("../../tokenizer/token"),d=/^(\-moz\-|\-o\-|\-webkit\-)?animation-name$/,m=/^(\-moz\-|\-o\-|\-webkit\-)?animation$/,r=/^@(\-moz\-|\-o\-|\-webkit\-)?keyframes /,i=/\s{0,31}!important$/,o=/^(['"]?)(.*)\1$/;function g(e){return e.replace(o,"$2").replace(i,"")}function a(e,t,n,r){var i,o,a,s,u,l={};for(s=0,u=e.length;s<u;s++)t(e[s],l);if(0!==Object.keys(l).length)for(i in function e(t,n,r,i){var o=n(r);var a,s;for(a=0,s=t.length;a<s;a++)switch(t[a][0]){case c.RULE:o(t[a],i);break;case c.NESTED_BLOCK:e(t[a][2],n,r,i)}}(e,n,l,r),l)for(s=0,u=(o=l[i]).length;s<u;s++)(a=o[s])[a[0]==c.AT_RULE?1:2]=[]}function s(e,t){var n;e[0]==c.AT_RULE_BLOCK&&0===e[1][0][1].indexOf("@counter-style")&&(t[n=e[1][0][1].split(" ")[1]]=t[n]||[],t[n].push(e))}function u(a){return function(e,t){var n,r,i,o;for(i=0,o=e[2].length;i<o;i++)"list-style"==(n=e[2][i])[1][1]&&(r=p(n),f([r],t.validator,t.warnings),r.components[0].value[0][1]in a&&delete a[n[2][1]],h([r])),"list-style-type"==n[1][1]&&n[2][1]in a&&delete a[n[2][1]]}}function l(e,t){var n,r,i,o;if(e[0]==c.AT_RULE_BLOCK&&"@font-face"==e[1][0][1])for(i=0,o=e[2].length;i<o;i++)if("font-family"==(n=e[2][i])[1][1]){t[r=g(n[2][1].toLowerCase())]=t[r]||[],t[r].push(e);break}}function v(c){return function(e,t){var n,r,i,o,a,s,u,l;for(a=0,s=e[2].length;a<s;a++){if("font"==(n=e[2][a])[1][1]){for(r=p(n),f([r],t.validator,t.warnings),u=0,l=(i=r.components[6]).value.length;u<l;u++)(o=g(i.value[u][1].toLowerCase()))in c&&delete c[o];h([r])}if("font-family"==n[1][1])for(u=2,l=n.length;u<l;u++)(o=g(n[u][1].toLowerCase()))in c&&delete c[o]}}}function b(e,t){var n;e[0]==c.NESTED_BLOCK&&r.test(e[1][0][1])&&(t[n=e[1][0][1].split(" ")[1]]=t[n]||[],t[n].push(e))}function y(l){return function(e,t){var n,r,i,o,a,s,u;for(o=0,a=e[2].length;o<a;o++){if(n=e[2][o],m.test(n[1][1])){for(r=p(n),f([r],t.validator,t.warnings),s=0,u=(i=r.components[7]).value.length;s<u;s++)i.value[s][1]in l&&delete l[i.value[s][1]];h([r])}if(d.test(n[1][1]))for(s=2,u=n.length;s<u;s++)n[s][1]in l&&delete l[n[s][1]]}}}function _(e,t){var n;e[0]==c.AT_RULE&&0===e[1].indexOf("@namespace")&&(t[n=e[1].split(" ")[1]]=t[n]||[],t[n].push(e))}function w(s){var u=new RegExp(Object.keys(s).join("\\||")+"\\|","g");return function(e){var t,n,r,i,o,a;for(r=0,i=e[1].length;r<i;r++)for(o=0,a=(t=e[1][r][1].match(u)).length;o<a;o++)(n=t[o].substring(0,t[o].length-1))in s&&delete s[n]}}t.exports=function(e,t){a(e,s,u,t),a(e,l,v,t),a(e,b,y,t),a(e,_,w,t)}},{"../../tokenizer/token":84,"../restore-from-optimizing":56,"../wrap-for-optimizing":58,"./properties/populate-components":39}],47:[function(e,t,n){var m=e("./rules-overlap"),g=e("./specificities-overlap"),v=/align\-items|box\-align|box\-pack|flex|justify/,b=/^border\-(top|right|bottom|left|color|style|width|radius)/;function o(e,t,n){var r,i,o=e[0],a=e[1],s=e[2],u=e[5],l=e[6],c=t[0],f=t[1],p=t[2],h=t[5],d=t[6];return!("font"==o&&"line-height"==c||"font"==c&&"line-height"==o)&&((!v.test(o)||!v.test(c))&&(!(s==p&&_(o)==_(c)&&y(o)^y(c))&&(("border"!=s||!b.test(p)||!("border"==o||o==p||a!=f&&w(o,c)))&&(("border"!=p||!b.test(s)||!("border"==c||c==s||a!=f&&w(o,c)))&&(("border"!=s||"border"!=p||o==c||!(E(o)&&A(c)||A(o)&&E(c)))&&(s!=p||(!(o!=c||s!=p||a!=f&&(i=f,!y(r=a)||!y(i)||r.split("-")[1]==i.split("-")[2]))||(o!=c&&s==p&&o!=s&&c!=p||(o!=c&&s==p&&a==f||(!(!d||!l||x(s)||x(p)||m(h,u,!1))||!g(u,h,n)))))))))))}function y(e){return/^\-(?:moz|webkit|ms|o)\-/.test(e)}function _(e){return e.replace(/^\-(?:moz|webkit|ms|o)\-/,"")}function w(e,t){return e.split("-").pop()==t.split("-").pop()}function E(e){return"border-top"==e||"border-right"==e||"border-bottom"==e||"border-left"==e}function A(e){return"border-color"==e||"border-style"==e||"border-width"==e}function x(e){return"font"==e||"line-height"==e||"list-style"==e}t.exports={canReorder:function(e,t,n){for(var r=t.length-1;0<=r;r--)for(var i=e.length-1;0<=i;i--)if(!o(e[i],t[r],n))return!1;return!0},canReorderSingle:o}},{"./rules-overlap":51,"./specificities-overlap":52}],48:[function(e,t,n){var r=e("./compactable");t.exports=function(e){var t=r[e.name];return t&&t.shorthand?t.restore(e,r):e.value}},{"./compactable":21}],49:[function(e,t,n){var g=e("./clone").shallow,v=e("../../tokenizer/token"),b=e("../../tokenizer/marker");function y(e){for(var t=0,n=e.length;t<n;t++){var r=e[t][1];if("inherit"!=r&&r!=b.COMMA&&r!=b.FORWARD_SLASH)return!1}return!0}function c(e){var t=e.components,n=t[0].value[0],r=t[1].value[0],i=t[2].value[0],o=t[3].value[0];return n[1]==r[1]&&n[1]==i[1]&&n[1]==o[1]?[n]:n[1]==i[1]&&r[1]==o[1]?[n,r]:r[1]==o[1]?[n,r,i]:[n,r,i,o]}function s(e,t,n){var r,i,o;for(i=0,o=e.length;i<o;i++)if((r=e[i]).name==n&&r.value[0][1]==t[n].defaultValue)return!0;return!1}t.exports={background:function(e,n,t){var r,i,o=e.components,a=[];function s(e){Array.prototype.unshift.apply(a,e.value)}function u(e){var t=n[e.name];return t.doubleValues&&1==t.defaultValue.length?e.value[0][1]==t.defaultValue[0]&&(!e.value[1]||e.value[1][1]==t.defaultValue[0]):t.doubleValues&&1!=t.defaultValue.length?e.value[0][1]==t.defaultValue[0]&&(e.value[1]?e.value[1][1]:e.value[0][1])==t.defaultValue[1]:e.value[0][1]==t.defaultValue}for(var l=o.length-1;0<=l;l--){var c=o[l],f=u(c);if("background-clip"==c.name){var p=o[l-1],h=u(p);i=!(r=c.value[0][1]==p.value[0][1])&&(h&&!f||!h&&!f||!h&&f&&c.value[0][1]!=p.value[0][1]),r?s(p):i&&(s(c),s(p)),l--}else if("background-size"==c.name){var d=o[l-1],m=u(d);i=!(r=!m&&f)&&(m&&!f||!m&&!f),r?s(d):i?(s(c),a.unshift([v.PROPERTY_VALUE,b.FORWARD_SLASH]),s(d)):1==d.value.length&&s(d),l--}else{if(f||n[c.name].multiplexLastOnly&&!t)continue;s(c)}}return 0===a.length&&1==e.value.length&&"0"==e.value[0][1]&&a.push(e.value[0]),0===a.length&&a.push([v.PROPERTY_VALUE,n[e.name].defaultValue]),y(a)?[a[0]]:a},borderRadius:function(e,t){if(e.multiplex){for(var n=g(e),r=g(e),i=0;i<4;i++){var o=e.components[i],a=g(e);a.value=[o.value[0]],n.components.push(a);var s=g(e);s.value=[o.value[1]||o.value[0]],r.components.push(s)}var u=c(n),l=c(r);return u.length!=l.length||u[0][1]!=l[0][1]||1<u.length&&u[1][1]!=l[1][1]||2<u.length&&u[2][1]!=l[2][1]||3<u.length&&u[3][1]!=l[3][1]?u.concat([[v.PROPERTY_VALUE,b.FORWARD_SLASH]]).concat(l):u}return c(e)},font:function(e,t){var n,r=e.components,i=[],o=0,a=0;if(0===e.value[0][1].indexOf(b.INTERNAL))return e.value[0][1]=e.value[0][1].substring(b.INTERNAL.length),e.value;for(;o<4;)(n=r[o]).value[0][1]!=t[n.name].defaultValue&&Array.prototype.push.apply(i,n.value),o++;for(Array.prototype.push.apply(i,r[o].value),r[++o].value[0][1]!=t[r[o].name].defaultValue&&(Array.prototype.push.apply(i,[[v.PROPERTY_VALUE,b.FORWARD_SLASH]]),Array.prototype.push.apply(i,r[o].value)),o++;r[o].value[a];)i.push(r[o].value[a]),r[o].value[a+1]&&i.push([v.PROPERTY_VALUE,b.COMMA]),a++;return y(i)?[i[0]]:i},fourValues:c,multiplex:function(m){return function(e,t){if(!e.multiplex)return m(e,t,!0);var n,r,i=0,o=[],a={};for(n=0,r=e.components[0].value.length;n<r;n++)e.components[0].value[n][1]==b.COMMA&&i++;for(n=0;n<=i;n++){for(var s=g(e),u=0,l=e.components.length;u<l;u++){var c=e.components[u],f=g(c);s.components.push(f);for(var p=a[f.name]||0,h=c.value.length;p<h;p++){if(c.value[p][1]==b.COMMA){a[f.name]=p+1;break}f.value.push(c.value[p])}}var d=m(s,t,n==i);Array.prototype.push.apply(o,d),n<i&&o.push([v.PROPERTY_VALUE,b.COMMA])}return o}},withoutDefaults:function(e,t){for(var n=e.components,r=[],i=n.length-1;0<=i;i--){var o=n[i],a=t[o.name];(o.value[0][1]!=a.defaultValue||"keepUnlessDefault"in a&&!s(n,t,a.keepUnlessDefault))&&r.unshift(o.value[0])}return 0===r.length&&r.push([v.PROPERTY_VALUE,t[e.name].defaultValue]),y(r)?[r[0]]:r}}},{"../../tokenizer/marker":83,"../../tokenizer/token":84,"./clone":20}],50:[function(e,t,n){var H=e("./reorderable").canReorderSingle,K=e("./extract-properties"),G=e("./is-mergeable"),Y=e("./tidy-rule-duplicates"),W=e("../../tokenizer/token"),Q=e("../../utils/clone-array"),Z=e("../../writer/one-time").body,J=e("../../writer/one-time").rules;function X(e,t){return t<e?1:-1}t.exports=function(g,e){var t,n,r,i=e.options,o=i.compatibility.selectors.mergeablePseudoClasses,a=i.compatibility.selectors.mergeablePseudoElements,s=i.compatibility.selectors.mergeLimit,u=i.compatibility.selectors.multiplePseudoMerging,l=e.cache.specificity,p={},c=[],h={},f=[],d=2,m="%";function v(e,t){var n=function(e){for(var t=[],n=0,r=e.length;n<r;n++)t.push(J(e[n][1]));return t.join(m)}(t);return h[n]=h[n]||[],h[n].push([e,t]),n}function b(e){var t,n=e.split(m),r=[];for(var i in h){var o=i.split(m);for(t=o.length-1;0<=t;t--)if(-1<n.indexOf(o[t])){r.push(i);break}}for(t=r.length-1;0<=t;t--)delete h[r[t]]}function y(e){for(var t=[],n=[],r=e.length-1;0<=r;r--)G(J(e[r][1]),o,a,u)&&(n.unshift(e[r]),0<e[r][2].length&&-1==t.indexOf(e[r])&&t.push(e[r]));return 1<t.length?n:[]}function _(e,t){var n=t[0],r=t[1],i=t[4],o=n.length+r.length+1,a=[],s=[],u=y(p[i]);if(!(u.length<2)){var l=E(u,o,1),c=l[0];if(0<c[1])return function(e,t,n){for(var r=n.length-1;0<=r;r--){var i=v(t,n[r][0]);if(1<h[i].length&&C(e,h[i])){b(i);break}}}(e,t,l);for(var f=c[0].length-1;0<=f;f--)a=c[0][f][1].concat(a),s.unshift(c[0][f]);A(e,[t],a=Y(a),s)}}function w(e,t){return e[1]>t[1]?1:e[1]==t[1]?0:-1}function E(e,t,n){return function e(t,n,r,i){var o=[[t,function(e,t,n){for(var r=0,i=e.length-1;0<=i;i--)r+=e[i][2].length>n?J(e[i][1]).length:-1;return r-(e.length-1)*t+1}(t,n,r)]];if(2<t.length&&0<i)for(var a=t.length-1;0<=a;a--){var s=Array.prototype.slice.call(t,0);s.splice(a,1),o=o.concat(e(s,n,r,i-1))}return o}(e,t,n,d-1).sort(w)}function A(e,t,n,r){var i,o,a,s,u=[];for(i=r.length-1;0<=i;i--){var l=r[i];for(o=l[2].length-1;0<=o;o--){var c=l[2][o];for(a=0,s=t.length;a<s;a++){var f=t[a],p=c[1][1],h=f[0],d=f[4];if(p==h&&Z([c])==d){l[2].splice(o,1);break}}}}for(i=t.length-1;0<=i;i--)u.unshift(t[i][3]);var m=[W.RULE,n,u];g.splice(e,0,m)}function x(e,t){var n=t[4],r=p[n];r&&1<r.length&&(function(e,t){var n,r,i=[],o=[],a=t[4],s=y(p[a]);if(!(s.length<2)){e:for(var u in p){var l=p[u];for(n=s.length-1;0<=n;n--)if(-1==l.indexOf(s[n]))continue e;i.push(u)}if(i.length<2)return!1;for(n=i.length-1;0<=n;n--)for(r=c.length-1;0<=r;r--)if(c[r][4]==i[n]){o.unshift([c[r],s]);break}return C(e,o)}}(e,t)||_(e,t))}function C(e,t){for(var n,r=0,i=[],o=t.length-1;0<=o;o--)r+=(n=t[o][0])[4].length+(0<o?1:0),i.push(n);var a=E(t[0][1],r,i.length)[0];if(0<a[1])return!1;var s=[],u=[];for(o=a[0].length-1;0<=o;o--)s=a[0][o][1].concat(s),u.unshift(a[0][o]);for(A(e,i,s=Y(s),u),o=i.length-1;0<=o;o--){n=i[o];var l=c.indexOf(n);delete p[n[4]],-1<l&&-1==f.indexOf(l)&&f.push(l)}return!0}function k(e,t,n){if(e[0]!=t[0])return!1;var r=t[4],i=p[r];return i&&-1<i.indexOf(n)}for(var O=g.length-1;0<=O;O--){var S,D,B,T,R,F=g[O];if(F[0]==W.RULE)S=!0;else{if(F[0]!=W.NESTED_BLOCK)continue;S=!1}var L=c.length,M=K(F);f=[];var U=[];for(D=M.length-1;0<=D;D--)for(B=D-1;0<=B;B--)if(!H(M[D],M[B],l)){U.push(D);break}for(D=M.length-1;0<=D;D--){var N=M[D],P=!1;for(B=0;B<L;B++){var q=c[B];-1==f.indexOf(B)&&(!H(N,q,l)&&!k(N,q,F)||p[q[4]]&&p[q[4]].length===s)&&(x(O+1,q),-1==f.indexOf(B)&&(f.push(B),delete p[q[4]])),P||(P=N[0]==q[0]&&N[1]==q[1])&&(R=B)}if(S&&!(-1<U.indexOf(D))){var z=N[4];P&&c[R][5].length+N[5].length>s?(x(O+1,c[R]),c.splice(R,1),p[z]=[F],P=!1):(p[z]=p[z]||[],p[z].push(F)),P?c[R]=(t=c[R],n=N,r=void 0,(r=Q(t))[5]=r[5].concat(n[5]),r):c.push(N)}}for(D=0,T=(f=f.sort(X)).length;D<T;D++){var I=f[D]-D;c.splice(I,1)}}for(var j=g[0]&&g[0][0]==W.AT_RULE&&0===g[0][1].indexOf("@charset")?1:0;j<g.length-1;j++){var V=g[j][0]===W.AT_RULE&&0===g[j][1].indexOf("@import"),$=g[j][0]===W.COMMENT;if(!V&&!$)break}for(O=0;O<c.length;O++)x(j,c[O])}},{"../../tokenizer/token":84,"../../utils/clone-array":86,"../../writer/one-time":98,"./extract-properties":22,"./is-mergeable":24,"./reorderable":47,"./tidy-rule-duplicates":54}],51:[function(e,t,n){var r=/\-\-.+$/;function l(e){return e.replace(r,"")}t.exports=function(e,t,n){var r,i,o,a,s,u;for(o=0,a=e.length;o<a;o++)for(r=e[o][1],s=0,u=t.length;s<u;s++){if(r==(i=t[s][1]))return!0;if(n&&l(r)==l(i))return!0}return!1}},{}],52:[function(e,t,n){var r=e("./specificity");function l(e,t){var n;return e in t||(t[e]=n=r(e)),n||t[e]}t.exports=function(e,t,n){var r,i,o,a,s,u;for(o=0,a=e.length;o<a;o++)for(r=l(e[o][1],n),s=0,u=t.length;s<u;s++)if(i=l(t[s][1],n),r[0]===i[0]&&r[1]===i[1]&&r[2]===i[2])return!0;return!1}},{"./specificity":53}],53:[function(e,t,n){var h=e("../../tokenizer/marker"),d={ADJACENT_SIBLING:"+",DESCENDANT:">",DOT:".",HASH:"#",NON_ADJACENT_SIBLING:"~",PSEUDO:":"},m=/[a-zA-Z]/,g=":not(",v=/[\s,\(>~\+]/;t.exports=function(e){var t,n,r,i,o,a,s,u,l=[0,0,0],c=0,f=!1,p=!1;for(a=0,s=e.length;a<s;a++){if(t=e[a],n);else if(t!=h.SINGLE_QUOTE||i||r)if(t==h.SINGLE_QUOTE&&!i&&r)r=!1;else if(t!=h.DOUBLE_QUOTE||i||r)if(t==h.DOUBLE_QUOTE&&i&&!r)i=!1;else{if(r||i)continue;0<c&&!f||(t==h.OPEN_ROUND_BRACKET?c++:t==h.CLOSE_ROUND_BRACKET&&1==c?(c--,f=!1):t==h.CLOSE_ROUND_BRACKET?c--:t==d.HASH?l[0]++:t==d.DOT||t==h.OPEN_SQUARE_BRACKET?l[1]++:t!=d.PSEUDO||p||(u=a,e.indexOf(g,u)===u)?t==d.PSEUDO?f=!0:(0===a||o)&&m.test(t)&&l[2]++:(l[1]++,f=!1))}else i=!0;else r=!0;n=t==h.BACK_SLASH,p=t==d.PSEUDO,o=!n&&v.test(t)}return l}},{"../../tokenizer/marker":83}],54:[function(e,t,n){function a(e,t){return e[1]>t[1]?1:-1}t.exports=function(e){for(var t=[],n=[],r=0,i=e.length;r<i;r++){var o=e[r];-1==n.indexOf(o[1])&&(n.push(o[1]),t.push(o))}return t.sort(a)}},{}],55:[function(e,t,n){t.exports=function(e){for(var t=e.length-1;0<=t;t--){var n=e[t];n.unused&&n.all.splice(n.position,1)}}},{}],56:[function(e,t,n){var u=e("./hack"),l=e("../tokenizer/marker"),c="*",f="\\",p="!important",h="_",d="!ie";t.exports=function(e,t){var n,r,i,o,a;for(o=e.length-1;0<=o;o--)(n=e[o]).unused||(n.dirty||n.important||n.hack)&&(t?(r=t(n),n.value=r):r=n.value,n.important&&((a=n).value[a.value.length-1][1]+=p),n.hack&&(s=n,s.hack[0]==u.UNDERSCORE?s.name=h+s.name:s.hack[0]==u.ASTERISK?s.name=c+s.name:s.hack[0]==u.BACKSLASH?s.value[s.value.length-1][1]+=f+s.hack[1]:s.hack[0]==u.BANG&&(s.value[s.value.length-1][1]+=l.SPACE+d)),"all"in n&&((i=n.all[n.position])[1][1]=n.name,i.splice(2,i.length-1),Array.prototype.push.apply(i,r)));var s}},{"../tokenizer/marker":83,"./hack":8}],57:[function(e,t,n){var r="var\\(\\-\\-[^\\)]+\\)",i=/^(cubic\-bezier|steps)\([^\)]+\)$/,o=new RegExp("^(\\-moz\\-|\\-webkit\\-)?calc\\([^\\)]+\\)$","i"),a=/[0-9]/,s=new RegExp("^(var\\(\\-\\-[^\\)]+\\)|[A-Z]+(\\-|[A-Z]|[0-9])+\\(.*?\\)|\\-(\\-|[A-Z]|[0-9])+\\(.*?\\))$","i"),u=/^hsl\(\s{0,31}[\-\.]?\d+\s{0,31},\s{0,31}\.?\d+%\s{0,31},\s{0,31}\.?\d+%\s{0,31}\)|hsla\(\s{0,31}[\-\.]?\d+\s{0,31},\s{0,31}\.?\d+%\s{0,31},\s{0,31}\.?\d+%\s{0,31},\s{0,31}\.?\d+\s{0,31}\)$/,l=/^(\-[a-z0-9_][a-z0-9\-_]*|[a-z][a-z0-9\-_]*)$/i,c=/^#[0-9a-f]{6}$/i,f=/^[a-z]+$/i,p=/^-([a-z0-9]|-)*$/i,h=/^rgb\(\s{0,31}[\d]{1,3}\s{0,31},\s{0,31}[\d]{1,3}\s{0,31},\s{0,31}[\d]{1,3}\s{0,31}\)|rgba\(\s{0,31}[\d]{1,3}\s{0,31},\s{0,31}[\d]{1,3}\s{0,31},\s{0,31}[\d]{1,3}\s{0,31},\s{0,31}[\.\d]+\s{0,31}\)$/,d=/^#[0-9a-f]{3}$/i,m=["ms","s"],g=/^url\([\s\S]+\)$/i,v=new RegExp("^"+r+"$","i"),b=".",y="-",_="+",w={"^":["inherit","initial","unset"],"*-style":["auto","dashed","dotted","double","groove","hidden","inset","none","outset","ridge","solid"],"animation-direction":["alternate","alternate-reverse","normal","reverse"],"animation-fill-mode":["backwards","both","forwards","none"],"animation-iteration-count":["infinite"],"animation-name":["none"],"animation-play-state":["paused","running"],"animation-timing-function":["ease","ease-in","ease-in-out","ease-out","linear","step-end","step-start"],"background-attachment":["fixed","inherit","local","scroll"],"background-clip":["border-box","content-box","inherit","padding-box","text"],"background-origin":["border-box","content-box","inherit","padding-box"],"background-position":["bottom","center","left","right","top"],"background-repeat":["no-repeat","inherit","repeat","repeat-x","repeat-y","round","space"],"background-size":["auto","cover","contain"],"border-collapse":["collapse","inherit","separate"],bottom:["auto"],clear:["both","left","none","right"],color:["transparent"],cursor:["all-scroll","auto","col-resize","crosshair","default","e-resize","help","move","n-resize","ne-resize","no-drop","not-allowed","nw-resize","pointer","progress","row-resize","s-resize","se-resize","sw-resize","text","vertical-text","w-resize","wait"],display:["block","inline","inline-block","inline-table","list-item","none","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group"],float:["left","none","right"],left:["auto"],font:["caption","icon","menu","message-box","small-caption","status-bar","unset"],"font-size":["large","larger","medium","small","smaller","x-large","x-small","xx-large","xx-small"],"font-stretch":["condensed","expanded","extra-condensed","extra-expanded","normal","semi-condensed","semi-expanded","ultra-condensed","ultra-expanded"],"font-style":["italic","normal","oblique"],"font-variant":["normal","small-caps"],"font-weight":["100","200","300","400","500","600","700","800","900","bold","bolder","lighter","normal"],"line-height":["normal"],"list-style-position":["inside","outside"],"list-style-type":["armenian","circle","decimal","decimal-leading-zero","disc","decimal|disc","georgian","lower-alpha","lower-greek","lower-latin","lower-roman","none","square","upper-alpha","upper-latin","upper-roman"],overflow:["auto","hidden","scroll","visible"],position:["absolute","fixed","relative","static"],right:["auto"],"text-align":["center","justify","left","left|right","right"],"text-decoration":["line-through","none","overline","underline"],"text-overflow":["clip","ellipsis"],top:["auto"],"vertical-align":["baseline","bottom","middle","sub","super","text-bottom","text-top","top"],visibility:["collapse","hidden","visible"],"white-space":["normal","nowrap","pre"],width:["inherit","initial","medium","thick","thin"]},E=["%","ch","cm","em","ex","in","mm","pc","pt","px","rem","vh","vm","vmax","vmin","vw"];function A(e){return"auto"!=e&&(B("color")(e)||(n=e,d.test(n)||c.test(n))||x(e)||(t=e,f.test(t)));var t,n}function x(e){return R(e)||O(e)}function C(e){return o.test(e)}function k(e){return s.test(e)}function O(e){return u.test(e)}function S(e){return l.test(e)}function D(e){return"none"==e||"inherit"==e||N(e)}function B(t){return function(e){return-1<w[t].indexOf(e)}}function T(e){return q(e)==e.length}function R(e){return h.test(e)}function F(e){return p.test(e)}function L(e){return T(e)&&0<=parseFloat(e)}function M(e){return v.test(e)}function U(e){var t=q(e);return t==e.length&&0===parseInt(e)||-1<t&&-1<m.indexOf(e.slice(t+1))}function N(e){return g.test(e)}function P(e){return"auto"==e||T(e)||B("^")(e)}function q(e){var t,n,r,i=!1,o=!1;for(n=0,r=e.length;n<r;n++)if(t=e[n],0!==n||t!=_&&t!=y){if(0<n&&o&&(t==_||t==y))return n-1;if(t!=b||i){if(t==b&&i)return n-1;if(a.test(t))continue;return n-1}i=!0}else o=!0;return n}t.exports=function(t){var n,e=E.slice(0).filter(function(e){return!(e in t.units)||!0===t.units[e]});return{colorOpacity:t.colors.opacity,isAnimationDirectionKeyword:B("animation-direction"),isAnimationFillModeKeyword:B("animation-fill-mode"),isAnimationIterationCountKeyword:B("animation-iteration-count"),isAnimationNameKeyword:B("animation-name"),isAnimationPlayStateKeyword:B("animation-play-state"),isAnimationTimingFunction:(n=B("animation-timing-function"),function(e){return n(e)||i.test(e)}),isBackgroundAttachmentKeyword:B("background-attachment"),isBackgroundClipKeyword:B("background-clip"),isBackgroundOriginKeyword:B("background-origin"),isBackgroundPositionKeyword:B("background-position"),isBackgroundRepeatKeyword:B("background-repeat"),isBackgroundSizeKeyword:B("background-size"),isColor:A,isColorFunction:x,isDynamicUnit:C,isFontKeyword:B("font"),isFontSizeKeyword:B("font-size"),isFontStretchKeyword:B("font-stretch"),isFontStyleKeyword:B("font-style"),isFontVariantKeyword:B("font-variant"),isFontWeightKeyword:B("font-weight"),isFunction:k,isGlobal:B("^"),isHslColor:O,isIdentifier:S,isImage:D,isKeyword:B,isLineHeightKeyword:B("line-height"),isListStylePositionKeyword:B("list-style-position"),isListStyleTypeKeyword:B("list-style-type"),isNumber:T,isPrefixed:F,isPositiveNumber:L,isRgbColor:R,isStyleKeyword:B("*-style"),isTime:U,isUnit:function(e,t){var n=q(t);return n==t.length&&0===parseInt(t)||-1<n&&-1<e.indexOf(t.slice(n+1))||"auto"==t||"inherit"==t}.bind(null,e),isUrl:N,isVariable:M,isWidth:B("width"),isZIndex:P}}},{}],58:[function(e,t,n){var d=e("./hack"),m=e("../tokenizer/marker"),g=e("../tokenizer/token"),v={ASTERISK:"*",BACKSLASH:"\\",BANG:"!",BANG_SUFFIX_PATTERN:/!\w+$/,IMPORTANT_TOKEN:"!important",IMPORTANT_TOKEN_PATTERN:new RegExp("!important$","i"),IMPORTANT_WORD:"important",IMPORTANT_WORD_PATTERN:new RegExp("important$","i"),SUFFIX_BANG_PATTERN:/!$/,UNDERSCORE:"_",VARIABLE_REFERENCE_PATTERN:/var\(--.+\)$/};function s(e){var t,n,r,i;for(t=2,n=e.length;t<n;t++)if((r=e[t])[0]==g.PROPERTY_VALUE&&(i=r[1],v.VARIABLE_REFERENCE_PATTERN.test(i)))return!0;return!1}function u(e){var t,n,r,i=function(e){if(e.length<3)return!1;var t=e[e.length-1];return!!v.IMPORTANT_TOKEN_PATTERN.test(t[1])||!(!v.IMPORTANT_WORD_PATTERN.test(t[1])||!v.SUFFIX_BANG_PATTERN.test(e[e.length-2][1]))}(e);i&&(n=(t=e)[t.length-1],r=t[t.length-2],v.IMPORTANT_TOKEN_PATTERN.test(n[1])?n[1]=n[1].replace(v.IMPORTANT_TOKEN_PATTERN,""):(n[1]=n[1].replace(v.IMPORTANT_WORD_PATTERN,""),r[1]=r[1].replace(v.SUFFIX_BANG_PATTERN,"")),0===n[1].length&&t.pop(),0===r[1].length&&t.pop());var o,a,s,u,l,c,f,p,h=(a=!1,s=(o=e)[1][1],u=o[o.length-1],s[0]==v.UNDERSCORE?a=[d.UNDERSCORE]:s[0]==v.ASTERISK?a=[d.ASTERISK]:u[1][0]!=v.BANG||u[1].match(v.IMPORTANT_WORD_PATTERN)?0<u[1].indexOf(v.BANG)&&!u[1].match(v.IMPORTANT_WORD_PATTERN)&&v.BANG_SUFFIX_PATTERN.test(u[1])?a=[d.BANG]:0<u[1].indexOf(v.BACKSLASH)&&u[1].indexOf(v.BACKSLASH)==u[1].length-v.BACKSLASH.length-1?a=[d.BACKSLASH,u[1].substring(u[1].indexOf(v.BACKSLASH)+1)]:0===u[1].indexOf(v.BACKSLASH)&&2==u[1].length&&(a=[d.BACKSLASH,u[1].substring(1)]):a=[d.BANG],a);return h[0]==d.ASTERISK||h[0]==d.UNDERSCORE?(p=e)[1][1]=p[1][1].substring(1):h[0]!=d.BACKSLASH&&h[0]!=d.BANG||(c=h,(f=(l=e)[l.length-1])[1]=f[1].substring(0,f[1].indexOf(c[0]==d.BACKSLASH?v.BACKSLASH:v.BANG)).trim(),0===f[1].length&&l.pop()),{block:e[2]&&e[2][0]==g.PROPERTY_BLOCK,components:[],dirty:!1,hack:h,important:i,name:e[1][1],multiplex:3<e.length&&function(e){var t,n,r;for(n=3,r=e.length;n<r;n++)if((t=e[n])[0]==g.PROPERTY_VALUE&&(t[1]==m.COMMA||t[1]==m.FORWARD_SLASH))return!0;return!1}(e),position:0,shorthand:!1,unused:!1,value:e.slice(2)}}t.exports={all:function(e,t,n){var r,i,o,a=[];for(o=e.length-1;0<=o;o--)(i=e[o])[0]==g.PROPERTY&&(!t&&s(i)||n&&-1<n.indexOf(i[1][1])||((r=u(i)).all=e,r.position=o,a.unshift(r)));return a},single:u}},{"../tokenizer/marker":83,"../tokenizer/token":84,"./hack":8}],59:[function(e,t,n){var r={"*":{colors:{opacity:!0},properties:{backgroundClipMerging:!0,backgroundOriginMerging:!0,backgroundSizeMerging:!0,colors:!0,ieBangHack:!1,ieFilters:!1,iePrefixHack:!1,ieSuffixHack:!1,merging:!0,shorterLengthUnits:!1,spaceAfterClosingBrace:!0,urlQuotes:!1,zeroUnits:!0},selectors:{adjacentSpace:!1,ie7Hack:!1,mergeablePseudoClasses:[":active",":after",":before",":empty",":checked",":disabled",":empty",":enabled",":first-child",":first-letter",":first-line",":first-of-type",":focus",":hover",":lang",":last-child",":last-of-type",":link",":not",":nth-child",":nth-last-child",":nth-last-of-type",":nth-of-type",":only-child",":only-of-type",":root",":target",":visited"],mergeablePseudoElements:["::after","::before","::first-letter","::first-line"],mergeLimit:8191,multiplePseudoMerging:!0},units:{ch:!0,in:!0,pc:!0,pt:!0,rem:!0,vh:!0,vm:!0,vmax:!0,vmin:!0,vw:!0}}};function i(e,t){for(var n in e){var r=e[n];"object"!=typeof r||Array.isArray(r)?t[n]=n in t?t[n]:r:t[n]=i(r,t[n]||{})}return t}r.ie11=r["*"],r.ie10=r["*"],r.ie9=i(r["*"],{properties:{ieFilters:!0,ieSuffixHack:!0}}),r.ie8=i(r.ie9,{colors:{opacity:!1},properties:{backgroundClipMerging:!1,backgroundOriginMerging:!1,backgroundSizeMerging:!1,iePrefixHack:!0,merging:!1},selectors:{mergeablePseudoClasses:[":after",":before",":first-child",":first-letter",":focus",":hover",":visited"],mergeablePseudoElements:[]},units:{ch:!1,rem:!1,vh:!1,vm:!1,vmax:!1,vmin:!1,vw:!1}}),r.ie7=i(r.ie8,{properties:{ieBangHack:!0},selectors:{ie7Hack:!0,mergeablePseudoClasses:[":first-child",":first-letter",":hover",":visited"]}}),t.exports=function(e){return i(r["*"],function(o){if("object"==typeof o)return o;if(!/[,\+\-]/.test(o))return r[o]||r["*"];var e=o.split(","),t=e[0]in r?r[e.shift()]:r["*"];return o={},e.forEach(function(e){var t="+"==e[0],n=e.substring(1).split("."),r=n[0],i=n[1];o[r]=o[r]||{},o[r][i]=t}),i(t,o)}(e))}},{}],60:[function(e,t,n){var r=e("../reader/load-remote-resource");t.exports=function(e){return e||r}},{"../reader/load-remote-resource":74}],61:[function(e,t,n){var r=e("../utils/override"),i={AfterAtRule:"afterAtRule",AfterBlockBegins:"afterBlockBegins",AfterBlockEnds:"afterBlockEnds",AfterComment:"afterComment",AfterProperty:"afterProperty",AfterRuleBegins:"afterRuleBegins",AfterRuleEnds:"afterRuleEnds",BeforeBlockEnds:"beforeBlockEnds",BetweenSelectors:"betweenSelectors"},o={Space:" ",Tab:"\t"},a={AroundSelectorRelation:"aroundSelectorRelation",BeforeBlockBegins:"beforeBlockBegins",BeforeValue:"beforeValue"},s={breaks:b(!1),indentBy:0,indentWith:o.Space,spaces:y(!1),wrapAt:!1},u="beautify",l="keep-breaks",c=";",f=":",p=",",h="=",d="false",m="off",g="true",v="on";function b(e){var t={};return t[i.AfterAtRule]=e,t[i.AfterBlockBegins]=e,t[i.AfterBlockEnds]=e,t[i.AfterComment]=e,t[i.AfterProperty]=e,t[i.AfterRuleBegins]=e,t[i.AfterRuleEnds]=e,t[i.BeforeBlockEnds]=e,t[i.BetweenSelectors]=e,t}function y(e){var t={};return t[a.AroundSelectorRelation]=e,t[a.BeforeBlockBegins]=e,t[a.BeforeValue]=e,t}function _(e){switch(e){case"space":return o.Space;case"tab":return o.Tab;default:return e}}t.exports={Breaks:i,Spaces:a,formatFrom:function(e){return void 0!==e&&!1!==e&&("object"==typeof e&&"indentBy"in e&&(e=r(e,{indentBy:parseInt(e.indentBy)})),"object"==typeof e&&"indentWith"in e&&(e=r(e,{indentWith:_(e.indentWith)})),"object"==typeof e?r(s,e):"object"==typeof e?r(s,e):"string"==typeof e&&e==u?r(s,{breaks:b(!0),indentBy:2,spaces:y(!0)}):"string"==typeof e&&e==l?r(s,{breaks:{afterAtRule:!0,afterBlockBegins:!0,afterBlockEnds:!0,afterComment:!0,afterRuleEnds:!0,beforeBlockEnds:!0}}):"string"==typeof e?r(s,e.split(c).reduce(function(e,t){var n=t.split(f),r=n[0],i=n[1];return"breaks"==r||"spaces"==r?e[r]=i.split(p).reduce(function(e,t){var n=t.split(h),r=n[0],i=n[1];return e[r]=function(e){switch(e){case d:case m:return!1;case g:case v:return!0;default:return e}}(i),e},{}):"indentBy"==r||"wrapAt"==r?e[r]=parseInt(i):"indentWith"==r&&(e[r]=_(i)),e},{})):s)}}},{"../utils/override":95}],62:[function(e,t,n){(function(n){var r=e("url"),i=e("../utils/override");t.exports=function(e){return i((t=n.env.HTTP_PROXY||n.env.http_proxy)?{hostname:r.parse(t).hostname,port:parseInt(r.parse(t).port)}:{},e||{});var t}}).call(this,e("_process"))},{"../utils/override":95,_process:113,url:162}],63:[function(e,t,n){var r=5e3;t.exports=function(e){return e||r}},{}],64:[function(e,t,n){t.exports=function(e){return Array.isArray(e)?e:!1===e?["none"]:void 0===e?["local"]:e.split(",")}},{}],65:[function(e,t,n){var o=e("./rounding-precision").roundingPrecisionFrom,a=e("../utils/override"),s={Zero:"0",One:"1",Two:"2"},u={};u[s.Zero]={},u[s.One]={cleanupCharsets:!0,normalizeUrls:!0,optimizeBackground:!0,optimizeBorderRadius:!0,optimizeFilter:!0,optimizeFontWeight:!0,optimizeOutline:!0,removeEmpty:!0,removeNegativePaddings:!0,removeQuotes:!0,removeWhitespace:!0,replaceMultipleZeros:!0,replaceTimeUnits:!0,replaceZeroUnits:!0,roundingPrecision:o(void 0),selectorsSortingMethod:"standard",specialComments:"all",tidyAtRules:!0,tidyBlockScopes:!0,tidySelectors:!0,transform:function(){}},u[s.Two]={mergeAdjacentRules:!0,mergeIntoShorthands:!0,mergeMedia:!0,mergeNonAdjacentRules:!0,mergeSemantically:!1,overrideProperties:!0,removeEmpty:!0,reduceNonAdjacentRules:!0,removeDuplicateFontRules:!0,removeDuplicateMediaBlocks:!0,removeDuplicateRules:!0,removeUnusedAtRules:!1,restructureRules:!1,skipProperties:[]};var l="*",c="all",r="false",i="off",f="true",p="on",h=",",d=";",m=":";function g(e,t){var n,r=a(u[e],{});for(n in r)"boolean"==typeof r[n]&&(r[n]=t);return r}function v(e){switch(e){case r:case i:return!1;case f:case p:return!0;default:return e}}function b(e,o){return e.split(d).reduce(function(e,t){var n=t.split(m),r=n[0],i=v(n[1]);return l==r||c==r?e=a(e,g(o,i)):e[r]=i,e},{})}t.exports={OptimizationLevel:s,optimizationLevelFrom:function(e){var t=a(u,{}),n=s.Zero,r=s.One,i=s.Two;return void 0===e?delete t[i]:("string"==typeof e&&(e=parseInt(e)),"number"==typeof e&&e===parseInt(i)||("number"==typeof e&&e===parseInt(r)?delete t[i]:"number"==typeof e&&e===parseInt(n)?(delete t[i],delete t[r]):("object"==typeof e&&(e=function(e){var t,n,r=a(e,{});for(n=0;n<=2;n++)(t=""+n)in r&&(void 0===r[t]||!1===r[t])&&delete r[t],t in r&&!0===r[t]&&(r[t]={}),t in r&&"string"==typeof r[t]&&(r[t]=b(r[t],t));return r}(e)),r in e&&"roundingPrecision"in e[r]&&(e[r].roundingPrecision=o(e[r].roundingPrecision)),i in e&&"skipProperties"in e[i]&&"string"==typeof e[i].skipProperties&&(e[i].skipProperties=e[i].skipProperties.split(h)),(n in e||r in e||i in e)&&(t[n]=a(t[n],e[n])),r in e&&l in e[r]&&(t[r]=a(t[r],g(r,v(e[r][l]))),delete e[r][l]),r in e&&c in e[r]&&(t[r]=a(t[r],g(r,v(e[r][c]))),delete e[r][c]),r in e||i in e?t[r]=a(t[r],e[r]):delete t[r],i in e&&l in e[i]&&(t[i]=a(t[i],g(i,v(e[i][l]))),delete e[i][l]),i in e&&c in e[i]&&(t[i]=a(t[i],g(i,v(e[i][c]))),delete e[i][c]),i in e?t[i]=a(t[i],e[i]):delete t[i]))),t}}},{"../utils/override":95,"./rounding-precision":68}],66:[function(e,r,t){(function(t){var n=e("path");r.exports=function(e){return e?n.resolve(e):t.cwd()}}).call(this,e("_process"))},{_process:113,path:111}],67:[function(e,t,n){t.exports=function(e){return void 0===e||!!e}},{}],68:[function(e,t,n){var o=e("../utils/override"),r=/^\d+$/,a=["*","all"],s="off",i=",",u="=";function l(e){return{ch:e,cm:e,em:e,ex:e,in:e,mm:e,pc:e,pt:e,px:e,q:e,rem:e,vh:e,vmax:e,vmin:e,vw:e,"%":e}}t.exports={DEFAULT:s,roundingPrecisionFrom:function(e){return o(l(s),(t=e,null==t?{}:"boolean"==typeof t?{}:"number"==typeof t&&-1==t?l(s):"number"==typeof t?l(t):"string"==typeof t&&r.test(t)?l(parseInt(t)):"string"==typeof t&&t==s?l(s):"object"==typeof t?t:t.split(i).reduce(function(e,t){var n=t.split(u),r=n[0],i=parseInt(n[1]);return(isNaN(i)||-1==i)&&(i=s),-1<a.indexOf(r)?e=o(e,l(i)):e[r]=i,e},{})));var t}}},{"../utils/override":95}],69:[function(e,t,n){(function(C,k){var O=e("fs"),S=e("path"),D=e("./is-allowed-resource"),B=e("./match-data-uri"),T=e("./rebase-local-map"),R=e("./rebase-remote-map"),F=e("../tokenizer/token"),L=e("../utils/has-protocol"),M=e("../utils/is-data-uri-resource"),U=e("../utils/is-remote-resource"),N=/^\/\*# sourceMappingURL=(\S+) \*\/$/;function P(e){var t,n,r,i=[],o=a(e.sourceTokens[0]);for(r=e.sourceTokens.length;e.index<r;e.index++)if((t=a(n=e.sourceTokens[e.index]))!=o&&(i=[],o=t),i.push(n),e.processedTokens.push(n),n[0]==F.COMMENT&&N.test(n[1]))return s(n[1],t,i,e);return e.callback(e.processedTokens)}function a(e){return(e[0]==F.AT_RULE||e[0]==F.COMMENT?e[2][0]:e[1][0][2][0])[2]}function s(e,t,n,r){return h=e,d=r,m=function(e){return e&&(r.inputSourceMapTracker.track(t,e),function e(t,n){var r;var i,o;for(i=0,o=t.length;i<o;i++)switch((r=t[i])[0]){case F.AT_RULE:q(r,n);break;case F.AT_RULE_BLOCK:e(r[1],n),e(r[2],n);break;case F.AT_RULE_BLOCK_SCOPE:q(r,n);break;case F.NESTED_BLOCK:e(r[1],n),e(r[2],n);break;case F.NESTED_BLOCK_SCOPE:case F.COMMENT:q(r,n);break;case F.PROPERTY:e(r,n);break;case F.PROPERTY_BLOCK:e(r[1],n);break;case F.PROPERTY_NAME:case F.PROPERTY_VALUE:q(r,n);break;case F.RULE:e(r[1],n),e(r[2],n);break;case F.RULE_SCOPE:q(r,n)}return t}(n,r.inputSourceMapTracker)),r.index++,P(r)},y=N.exec(h)[1],M(y)?(_=B(y),w=_[2]?_[2].split(/[=;]/)[2]:"us-ascii",E=_[3]?_[3].split(";")[1]:"utf8",A="utf8"==E?C.unescape(_[4]):_[4],(x=new k(A,E)).charset=w,v=JSON.parse(x.toString()),m(v)):U(y)?(c=function(e){var t;e?(t=JSON.parse(e),b=R(t,y),m(b)):m(null)},f=D(u=y,!0,(l=d).inline),p=!L(u),l.localOnly?(l.warnings.push('Cannot fetch remote resource from "'+u+'" as no callback given.'),c(null)):p?(l.warnings.push('Cannot fetch "'+u+'" as no protocol given.'),c(null)):f?void l.fetch(u,l.inlineRequest,l.inlineTimeout,function(e,t){if(e)return l.warnings.push('Missing source map at "'+u+'" - '+e),c(null);c(t)}):(l.warnings.push('Cannot fetch "'+u+'" as resource is not allowed.'),c(null))):(g=S.resolve(d.rebaseTo,y),s=D(i=g,!1,(o=d).inline),(v=O.existsSync(i)&&O.statSync(i).isFile()?s?(a=O.readFileSync(i,"utf-8"),JSON.parse(a)):(o.warnings.push('Cannot fetch "'+i+'" as resource is not allowed.'),null):(o.warnings.push('Ignoring local source map at "'+i+'" as resource is missing.'),null))?(b=T(v,g,d.rebaseTo),m(b)):m(null));var i,o,a,s,u,l,c,f,p,h,d,m,g,v,b,y,_,w,E,A,x}function q(e,t){var n,r,i=e[1],o=e[2],a=[];for(n=0,r=o.length;n<r;n++)a.push(t.originalPositionFor(o[n],i.length));e[2]=a}t.exports=function(e,t,n){var r={callback:n,fetch:t.options.fetch,index:0,inline:t.options.inline,inlineRequest:t.options.inlineRequest,inlineTimeout:t.options.inlineTimeout,inputSourceMapTracker:t.inputSourceMapTracker,localOnly:t.localOnly,processedTokens:[],rebaseTo:t.options.rebaseTo,sourceTokens:e,warnings:t.warnings};return t.options.sourceMap&&0<e.length?P(r):n(e)}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"../tokenizer/token":84,"../utils/has-protocol":88,"../utils/is-data-uri-resource":89,"../utils/is-remote-resource":93,"./is-allowed-resource":72,"./match-data-uri":75,"./rebase-local-map":78,"./rebase-remote-map":79,buffer:4,fs:3,path:111}],70:[function(e,t,n){var r=e("../utils/split"),i=/^\(/,o=/\)$/,a=/^@import/i,s=/['"]\s*/,u=/\s*['"]/,l=/^url\(\s*/i,c=/\s*\)/i;t.exports=function(e){var t,n;return t=e.replace(a,"").trim().replace(l,"(").replace(c,")").replace(s,"").replace(u,""),[(n=r(t," "))[0].replace(i,"").replace(o,""),n.slice(1).join(" ")]}},{"../utils/split":96}],71:[function(e,t,n){var r=e("source-map").SourceMapConsumer;t.exports=function(){var e={};return{all:function(e){return e}.bind(null,e),isTracking:function(e,t){return t in e}.bind(null,e),originalPositionFor:function e(t,n,r,i){for(var o,a,s=n[0],u=n[1],l=n[2],c={line:s,column:u+r};!o&&c.column>u;)c.column--,o=t[l].originalPositionFor(c);return!o||o.column<0?n:null===o.line&&1<s&&0<i?e(t,[s-1,u,l],r,i-1):null!==o.line?[(a=o).line,a.column,a.source]:n}.bind(null,e),track:function(e,t,n){e[t]=new r(n)}.bind(null,e)}}},{"source-map":155}],72:[function(e,t,n){var f=e("path"),p=e("url"),r=e("../utils/is-remote-resource"),h=e("../utils/has-protocol"),d="http:";function m(e){return r(e)||p.parse(d+"//"+e).host==e}t.exports=function e(t,n,r){var i,o,a,s,u,l,c=!n;if(0===r.length)return!1;for(n&&!h(t)&&(t=d+t),i=n?p.parse(t).host:t,o=n?t:f.resolve(t),l=0;l<r.length;l++)s="!"==(a=r[l])[0],u=a.substring(1),c=s&&n&&m(u)?c&&!e(t,!0,[u]):!s||n||m(u)?s?c&&!0:"all"==a||(n&&"local"==a?c||!1:!(!n||"remote"!=a)||!(!n&&"remote"==a)&&(!n&&"local"==a||a===i||a===t||!(!n||0!==o.indexOf(a))||!n&&0===o.indexOf(f.resolve(a))||n!=m(u)&&c&&!0)):c&&!e(t,!1,[u]);return c}},{"../utils/has-protocol":88,"../utils/is-remote-resource":93,path:111,url:162}],73:[function(e,t,n){var i=e("fs"),o=e("path"),a=e("./is-allowed-resource"),s=e("../utils/has-protocol"),r=e("../utils/is-remote-resource");function u(e){var t,n,r,i=Object.keys(e.uriToSource);for(r=i.length;e.index<r;e.index++){if(t=i[e.index],!(n=e.uriToSource[t]))return l(t,e);e.sourcesContent[t]=n}return e.callback()}function l(t,n){var e;return r(t)?function(n,r,i){var e=a(n,!0,r.inline),t=!s(n);{if(r.localOnly)return r.warnings.push('Cannot fetch remote resource from "'+n+'" as no callback given.'),i(null);if(t)return r.warnings.push('Cannot fetch "'+n+'" as no protocol given.'),i(null);if(!e)return r.warnings.push('Cannot fetch "'+n+'" as resource is not allowed.'),i(null)}r.fetch(n,r.inlineRequest,r.inlineTimeout,function(e,t){e&&r.warnings.push('Missing original source at "'+n+'" - '+e),i(t)})}(t,n,function(e){return n.index++,n.sourcesContent[t]=e,u(n)}):(e=function(e,t){var n=a(e,!1,t.inline),r=o.resolve(t.rebaseTo,e);{if(!i.existsSync(r)||!i.statSync(r).isFile())return t.warnings.push('Ignoring local source map at "'+r+'" as resource is missing.'),null;if(!n)return t.warnings.push('Cannot fetch "'+r+'" as resource is not allowed.'),null}return i.readFileSync(r,"utf8")}(t,n),n.index++,n.sourcesContent[t]=e,u(n))}t.exports=function(e,t){var n={callback:t,fetch:e.options.fetch,index:0,inline:e.options.inline,inlineRequest:e.options.inlineRequest,inlineTimeout:e.options.inlineTimeout,localOnly:e.localOnly,rebaseTo:e.options.rebaseTo,sourcesContent:e.sourcesContent,uriToSource:function(e){var t,n,r,i,o,a={};for(r in e)for(t=e[r],i=0,o=t.sources.length;i<o;i++)n=t.sources[i],r=t.sourceContentFor(n,!0),a[n]=r;return a}(e.inputSourceMapTracker.all()),warnings:e.warnings};return e.options.sourceMap&&e.options.sourceMapInlineSources?u(n):t()}},{"../utils/has-protocol":88,"../utils/is-remote-resource":93,"./is-allowed-resource":72,fs:3,path:111}],74:[function(e,t,n){var u=e("http"),l=e("https"),c=e("url"),f=e("../utils/is-http-resource"),p=e("../utils/is-https-resource"),h=e("../utils/override"),d="http:";t.exports=function n(r,i,o,a){var e,t=i.protocol||i.hostname,s=!1;e=h(c.parse(r),i||{}),void 0!==i.hostname&&(e.protocol=i.protocol||d,e.path=e.href),(t&&!p(t)||f(r)?u.get:l.get)(e,function(e){var t=[];if(!s){if(e.statusCode<200||399<e.statusCode)return a(e.statusCode,null);if(299<e.statusCode)return n(c.resolve(r,e.headers.location),i,o,a);e.on("data",function(e){t.push(e.toString())}),e.on("end",function(){var e=t.join("");a(null,e)})}}).on("error",function(e){s||(s=!0,a(e.message,null))}).on("timeout",function(){s||(s=!0,a("timeout",null))}).setTimeout(o)}},{"../utils/is-http-resource":90,"../utils/is-https-resource":91,"../utils/override":95,http:156,https:104,url:162}],75:[function(e,t,n){var r=/^data:(\S*?)?(;charset=[^;]+)?(;[^,]+?)?,(.+)/;t.exports=function(e){return r.exec(e)}},{}],76:[function(e,t,n){var r="/",i=/\\/g;t.exports=function(e){return e.replace(i,r)}},{}],77:[function(e,r,t){(function(c,f){var p=e("fs"),h=e("path"),d=e("./apply-source-maps"),m=e("./extract-import-url-and-media"),g=e("./is-allowed-resource"),v=e("./load-original-sources"),b=e("./normalize-path"),y=e("./rebase"),_=e("./rebase-local-map"),w=e("./rebase-remote-map"),t=e("./restore-import"),E=e("../tokenizer/tokenize"),A=e("../tokenizer/token"),n=e("../tokenizer/marker"),x=e("../utils/has-protocol"),C=e("../utils/is-import"),k=e("../utils/is-remote-resource"),O="uri:unknown";function S(e,t,n){return t.source=void 0,t.sourcesContent[void 0]=e,t.stats.originalSize+=e.length,R(e,t,{inline:t.options.inline},n)}function D(e,t,n){var r,i,o,a,s,u,l,c;for(r in e)o=e[r],i=B(r),n.push(T(i)),t.sourcesContent[i]=o.styles,o.sourceMap&&(a=o.sourceMap,s=i,u=t,void 0,l="string"==typeof a?JSON.parse(a):a,c=k(s)?w(l,s):_(l,s||O,u.options.rebaseTo),u.inputSourceMapTracker.track(s,c));return n}function B(e){var t,n,r=h.resolve("");return k(e)?e:(t=h.isAbsolute(e)?e:h.resolve(e),n=h.relative(r,t),b(n))}function T(e){return t("url("+e+")","")+n.SEMICOLON}function R(e,t,n,r){var i,o,a,s,u,l={};return t.source?k(t.source)?(l.fromBase=t.source,l.toBase=t.source):(h.isAbsolute(t.source)?l.fromBase=h.dirname(t.source):l.fromBase=h.dirname(h.resolve(t.source)),l.toBase=t.options.rebaseTo):(l.fromBase=h.resolve(""),l.toBase=t.options.rebaseTo),i=E(e,t),i=y(i,t.options.rebase,t.validator,l),1!=(u=n.inline).length||"none"!=u[0]?(o=i,s=n,F({afterContent:!1,callback:r,errors:(a=t).errors,externalContext:a,fetch:a.options.fetch,inlinedStylesheets:s.inlinedStylesheets||a.inlinedStylesheets,inline:s.inline,inlineRequest:a.options.inlineRequest,inlineTimeout:a.options.inlineTimeout,isRemote:s.isRemote||!1,localOnly:a.localOnly,outputTokens:[],rebaseTo:a.options.rebaseTo,sourceTokens:o,warnings:a.warnings})):r(i)}function F(e){var t,n,r,i,o,a,s,u,l;for(n=0,r=e.sourceTokens.length;n<r;n++){if((t=e.sourceTokens[n])[0]==A.AT_RULE&&C(t[1]))return e.sourceTokens.splice(0,n),o=e,void 0,a=m((i=t)[1]),s=a[0],u=a[1],l=i[2],k(s)?function(n,r,i,o){var e=g(n,!0,o.inline),a=n,t=n in o.externalContext.sourcesContent,s=!x(n);{if(-1<o.inlinedStylesheets.indexOf(n))return o.warnings.push('Ignoring remote @import of "'+n+'" as it has already been imported.'),o.sourceTokens=o.sourceTokens.slice(1),F(o);if(o.localOnly&&o.afterContent)return o.warnings.push('Ignoring remote @import of "'+n+'" as no callback given and after other content.'),o.sourceTokens=o.sourceTokens.slice(1),F(o);if(s)return o.warnings.push('Skipping remote @import of "'+n+'" as no protocol given.'),o.outputTokens=o.outputTokens.concat(o.sourceTokens.slice(0,1)),o.sourceTokens=o.sourceTokens.slice(1),F(o);if(o.localOnly&&!t)return o.warnings.push('Skipping remote @import of "'+n+'" as no callback given.'),o.outputTokens=o.outputTokens.concat(o.sourceTokens.slice(0,1)),o.sourceTokens=o.sourceTokens.slice(1),F(o);if(!e&&o.afterContent)return o.warnings.push('Ignoring remote @import of "'+n+'" as resource is not allowed and after other content.'),o.sourceTokens=o.sourceTokens.slice(1),F(o);if(!e)return o.warnings.push('Skipping remote @import of "'+n+'" as resource is not allowed.'),o.outputTokens=o.outputTokens.concat(o.sourceTokens.slice(0,1)),o.sourceTokens=o.sourceTokens.slice(1),F(o)}function u(e,t){return e?(o.errors.push('Broken @import declaration of "'+n+'" - '+e),f.nextTick(function(){o.outputTokens=o.outputTokens.concat(o.sourceTokens.slice(0,1)),o.sourceTokens=o.sourceTokens.slice(1),F(o)})):(o.inline=o.externalContext.options.inline,o.isRemote=!0,o.externalContext.source=a,o.externalContext.sourcesContent[n]=t,o.externalContext.stats.originalSize+=t.length,R(t,o.externalContext,o,function(e){return e=L(e,r,i),o.outputTokens=o.outputTokens.concat(e),o.sourceTokens=o.sourceTokens.slice(1),F(o)}))}return o.inlinedStylesheets.push(n),t?u(null,o.externalContext.sourcesContent[n]):o.fetch(n,o.inlineRequest,o.inlineTimeout,u)}(s,u,l,o):function(e,t,n,r){var i,o=h.resolve(""),a=h.isAbsolute(e)?h.resolve(o,"/"==e[0]?e.substring(1):e):h.resolve(r.rebaseTo,e),s=h.relative(o,a),u=g(e,!1,r.inline),l=b(s),c=l in r.externalContext.sourcesContent;if(-1<r.inlinedStylesheets.indexOf(a))r.warnings.push('Ignoring local @import of "'+e+'" as it has already been imported.');else if(c||p.existsSync(a)&&p.statSync(a).isFile())if(!u&&r.afterContent)r.warnings.push('Ignoring local @import of "'+e+'" as resource is not allowed and after other content.');else if(r.afterContent)r.warnings.push('Ignoring local @import of "'+e+'" as after other content.');else{if(u)return i=c?r.externalContext.sourcesContent[l]:p.readFileSync(a,"utf-8"),r.inlinedStylesheets.push(a),r.inline=r.externalContext.options.inline,r.externalContext.source=l,r.externalContext.sourcesContent[l]=i,r.externalContext.stats.originalSize+=i.length,R(i,r.externalContext,r,function(e){return e=L(e,t,n),r.outputTokens=r.outputTokens.concat(e),r.sourceTokens=r.sourceTokens.slice(1),F(r)});r.warnings.push('Skipping local @import of "'+e+'" as resource is not allowed.'),r.outputTokens=r.outputTokens.concat(r.sourceTokens.slice(0,1))}else r.errors.push('Ignoring local @import of "'+e+'" as resource is missing.');return r.sourceTokens=r.sourceTokens.slice(1),F(r)}(s,u,l,o);t[0]==A.AT_RULE||t[0]==A.COMMENT?e.outputTokens.push(t):(e.outputTokens.push(t),e.afterContent=!0)}return e.sourceTokens=[],e.callback(e.outputTokens)}function L(e,t,n){return t?[[A.NESTED_BLOCK,[[A.NESTED_BLOCK_SCOPE,"@media "+t,n]],e]]:e}r.exports=function(e,t,n){return r=e,i=t,o=function(e){return d(e,t,function(){return v(t,function(){return n(e)})})},"string"==typeof r?S(r,i,o):c.isBuffer(r)?S(r.toString(),i,o):Array.isArray(r)?(u=i,l=o,R(r.reduce(function(e,t){return"string"==typeof t?(n=t,(r=e).push(T(B(n))),r):D(t,u,e);var n,r},[]).join(""),u,{inline:["all"]},l)):"object"==typeof r?(s=o,R(D(r,a=i,[]).join(""),a,{inline:["all"]},s)):void 0;var r,i,o,a,s,u,l}}).call(this,{isBuffer:e("../../../is-buffer/index.js")},e("_process"))},{"../../../is-buffer/index.js":107,"../tokenizer/marker":83,"../tokenizer/token":84,"../tokenizer/tokenize":85,"../utils/has-protocol":88,"../utils/is-import":92,"../utils/is-remote-resource":93,"./apply-source-maps":69,"./extract-import-url-and-media":70,"./is-allowed-resource":72,"./load-original-sources":73,"./normalize-path":76,"./rebase":80,"./rebase-local-map":78,"./rebase-remote-map":79,"./restore-import":81,_process:113,fs:3,path:111}],78:[function(e,t,n){var a=e("path");t.exports=function(e,t,n){var r=a.resolve(""),i=a.resolve(r,t),o=a.dirname(i);return e.sources=e.sources.map(function(e){return a.relative(n,a.resolve(o,e))}),e}},{path:111}],79:[function(e,t,n){var r=e("path"),i=e("url");t.exports=function(e,t){var n=r.dirname(t);return e.sources=e.sources.map(function(e){return i.resolve(n,e)}),e}},{path:111,url:162}],80:[function(e,t,n){var a=e("./extract-import-url-and-media"),s=e("./restore-import"),c=e("./rewrite-url"),f=e("../tokenizer/token"),u=e("../utils/is-import"),p=/^\/\*# sourceMappingURL=(\S+) \*\/$/;function h(e,t,n){if(u(e[1])){var r=a(e[1]),i=c(r[0],n),o=r[1];e[1]=s(i,o)}}function d(e,t,n){var r,i,o,a,s,u;for(o=0,a=e.length;o<a;o++)for(s=2,u=(r=e[o]).length;s<u;s++)i=r[s][1],t.isUrl(i)&&(r[s][1]=c(i,n))}t.exports=function(e,t,n,r){return t?function e(t,n,r){var i,o,a,s,u,l;for(o=0,a=t.length;o<a;o++)switch((i=t[o])[0]){case f.AT_RULE:h(i,0,r);break;case f.AT_RULE_BLOCK:d(i[2],n,r);break;case f.COMMENT:s=i,u=r,l=void 0,(l=p.exec(s[1]))&&-1===l[1].indexOf("data:")&&(s[1]=s[1].replace(l[1],c(l[1],u,!0)));break;case f.NESTED_BLOCK:e(i[2],n,r);break;case f.RULE:d(i[2],n,r)}return t}(e,n,r):function(e,t,n){var r,i,o;for(i=0,o=e.length;i<o;i++)switch((r=e[i])[0]){case f.AT_RULE:h(r,0,n)}return e}(e,0,r)}},{"../tokenizer/token":84,"../utils/is-import":92,"./extract-import-url-and-media":70,"./restore-import":81,"./rewrite-url":82}],81:[function(e,t,n){t.exports=function(e,t){return("@import "+e+" "+t).trim()}},{}],82:[function(n,o,e){(function(e){var s=n("path"),u=n("url"),a='"',l="'",c="url(",f=")",p=/^["']/,h=/["']$/,r=/[\(\)]/,d=/^url\(/i,m=/\)$/,i=/\s/,t="win32"==e.platform;function g(e,t){return t?(n=e,s.isAbsolute(n)&&!v(t.toBase)?e:v(e)||"#"==e[0]||/^\w+:\w+/.test(e)?e:0===e.indexOf("data:")?"'"+e+"'":v(t.toBase)?u.resolve(t.toBase,e):t.absolute?b((o=e,a=t,s.resolve(s.join(a.fromBase||"",o)).replace(a.toBase,""))):b((r=e,i=t,s.relative(i.toBase,s.join(i.fromBase||"",r))))):e;var n,r,i,o,a}function v(e){return/^[^:]+?:\/\//.test(e)||0===e.indexOf("//")}function b(e){return t?e.replace(/\\/g,"/"):e}function y(e){return-1<e.indexOf(l)?a:-1<e.indexOf(a)?l:(n=e,i.test(n)||(t=e,r.test(t))?l:"");var t,n}o.exports=function(e,t,n){var r=e.replace(d,"").replace(m,"").trim(),i=r.replace(p,"").replace(h,"").trim(),o=r[0]==l||r[0]==a?r[0]:y(i);return n?g(i,t):c+o+g(i,t)+o+f}}).call(this,n("_process"))},{_process:113,path:111,url:162}],83:[function(e,t,n){t.exports={ASTERISK:"*",AT:"@",BACK_SLASH:"\\",CLOSE_CURLY_BRACKET:"}",CLOSE_ROUND_BRACKET:")",CLOSE_SQUARE_BRACKET:"]",COLON:":",COMMA:",",DOUBLE_QUOTE:'"',EXCLAMATION:"!",FORWARD_SLASH:"/",INTERNAL:"-clean-css-",NEW_LINE_NIX:"\n",NEW_LINE_WIN:"\r",OPEN_CURLY_BRACKET:"{",OPEN_ROUND_BRACKET:"(",OPEN_SQUARE_BRACKET:"[",SEMICOLON:";",SINGLE_QUOTE:"'",SPACE:" ",TAB:"\t",UNDERSCORE:"_"}},{}],84:[function(e,t,n){t.exports={AT_RULE:"at-rule",AT_RULE_BLOCK:"at-rule-block",AT_RULE_BLOCK_SCOPE:"at-rule-block-scope",COMMENT:"comment",NESTED_BLOCK:"nested-block",NESTED_BLOCK_SCOPE:"nested-block-scope",PROPERTY:"property",PROPERTY_BLOCK:"property-block",PROPERTY_NAME:"property-name",PROPERTY_VALUE:"property-value",RULE:"rule",RULE_SCOPE:"rule-scope"}},{}],85:[function(e,t,n){var M=e("./marker"),U=e("./token"),N=e("../utils/format-position"),P={BLOCK:"block",COMMENT:"comment",DOUBLE_QUOTE:"double-quote",RULE:"rule",SINGLE_QUOTE:"single-quote"},r=["@charset","@import"],i=["@-moz-document","@document","@-moz-keyframes","@-ms-keyframes","@-o-keyframes","@-webkit-keyframes","@keyframes","@media","@supports"],q=["@bottom-center","@bottom-left","@bottom-left-corner","@bottom-right","@bottom-right-corner","@left-bottom","@left-middle","@left-top","@right-bottom","@right-middle","@right-top","@top-center","@top-left","@top-left-corner","@top-right","@top-right-corner"],z=["@footnote","@footnotes","@left","@page-float-bottom","@page-float-top","@right"],I=/^\[\s{0,31}\d+\s{0,31}\]$/,o=/[\s\(]/,j=/[\s|\}]*$/;function V(e,t,n,r){var i=e[2];return n.inputSourceMapTracker.isTracking(i)?n.inputSourceMapTracker.originalPositionFor(e,t.length,r):e}function $(e){var t=e[0]==M.AT||e[0]==M.UNDERSCORE,n=e.join("").split(o)[0];return t&&-1<i.indexOf(n)?U.NESTED_BLOCK:t&&-1<r.indexOf(n)?U.AT_RULE:t?U.AT_RULE_BLOCK:U.RULE}function H(e){return e==U.RULE?U.RULE_SCOPE:e==U.NESTED_BLOCK?U.NESTED_BLOCK_SCOPE:e==U.AT_RULE_BLOCK?U.AT_RULE_BLOCK_SCOPE:void 0}t.exports=function(e,t){return function e(t,n,r,i){for(var o,a,s,u,l,c,f,p,h,d,m,g,v,b,y,_=[],w=_,E=[],A=[],x=r.level,C=[],k=[],O=[],S=0,D=!1,B=!1,T=!1,R=!1,F=r.position;F.index<t.length;F.index++){var L=t[F.index];if(c=x==P.SINGLE_QUOTE||x==P.DOUBLE_QUOTE,f=L==M.SPACE||L==M.TAB,p=L==M.NEW_LINE_NIX,h=L==M.NEW_LINE_NIX&&t[F.index-1]==M.NEW_LINE_WIN,d=!B&&x!=P.COMMENT&&!c&&L==M.ASTERISK&&t[F.index-1]==M.FORWARD_SLASH,g=!D&&!c&&L==M.FORWARD_SLASH&&t[F.index-1]==M.ASTERISK,m=x==P.COMMENT&&g,S=Math.max(S,0),u=0===k.length?[F.line,F.column,F.source]:u,v)k.push(L);else if(m||x!=P.COMMENT)if(d&&(x==P.BLOCK||x==P.RULE)&&1<k.length)A.push(u),k.push(L),O.push(k.slice(0,k.length-2)),k=k.slice(k.length-2),u=[F.line,F.column-1,F.source],C.push(x),x=P.COMMENT;else if(d)C.push(x),x=P.COMMENT,k.push(L);else if(m)l=k.join("").trim()+L,o=[U.COMMENT,l,[V(u,l,n)]],w.push(o),x=C.pop(),u=A.pop()||null,k=O.pop()||[];else if(g&&t[F.index+1]!=M.ASTERISK)n.warnings.push("Unexpected '*/' at "+N([F.line,F.column,F.source])+"."),k=[];else if(L!=M.SINGLE_QUOTE||c)if(L==M.SINGLE_QUOTE&&x==P.SINGLE_QUOTE)x=C.pop(),k.push(L);else if(L!=M.DOUBLE_QUOTE||c)if(L==M.DOUBLE_QUOTE&&x==P.DOUBLE_QUOTE)x=C.pop(),k.push(L);else if(!d&&!m&&L!=M.CLOSE_ROUND_BRACKET&&L!=M.OPEN_ROUND_BRACKET&&x!=P.COMMENT&&!c&&0<S)k.push(L);else if(L!=M.OPEN_ROUND_BRACKET||c||x==P.COMMENT||T)if(L!=M.CLOSE_ROUND_BRACKET||c||x==P.COMMENT||T)if(L==M.SEMICOLON&&x==P.BLOCK&&k[0]==M.AT)l=k.join("").trim(),_.push([U.AT_RULE,l,[V(u,l,n)]]),k=[];else if(L==M.COMMA&&x==P.BLOCK&&a)l=k.join("").trim(),a[1].push([H(a[0]),l,[V(u,l,n,a[1].length)]]),k=[];else if(L==M.COMMA&&x==P.BLOCK&&$(k)==U.AT_RULE)k.push(L);else if(L==M.COMMA&&x==P.BLOCK)a=[$(k),[],[]],l=k.join("").trim(),a[1].push([H(a[0]),l,[V(u,l,n,0)]]),k=[];else if(L==M.OPEN_CURLY_BRACKET&&x==P.BLOCK&&a&&a[0]==U.NESTED_BLOCK)l=k.join("").trim(),a[1].push([U.NESTED_BLOCK_SCOPE,l,[V(u,l,n)]]),_.push(a),C.push(x),F.column++,F.index++,k=[],a[2]=e(t,n,r,!0),a=null;else if(L==M.OPEN_CURLY_BRACKET&&x==P.BLOCK&&$(k)==U.NESTED_BLOCK)l=k.join("").trim(),(a=a||[U.NESTED_BLOCK,[],[]])[1].push([U.NESTED_BLOCK_SCOPE,l,[V(u,l,n)]]),_.push(a),C.push(x),F.column++,F.index++,k=[],a[2]=e(t,n,r,!0),a=null;else if(L==M.OPEN_CURLY_BRACKET&&x==P.BLOCK)l=k.join("").trim(),(a=a||[$(k),[],[]])[1].push([H(a[0]),l,[V(u,l,n,a[1].length)]]),w=a[2],_.push(a),C.push(x),x=P.RULE,k=[];else if(L==M.OPEN_CURLY_BRACKET&&x==P.RULE&&T)E.push(a),a=[U.PROPERTY_BLOCK,[]],s.push(a),w=a[1],C.push(x),x=P.RULE,T=!1;else if(L==M.OPEN_CURLY_BRACKET&&x==P.RULE&&(y=k.join("").trim(),-1<q.indexOf(y)||-1<z.indexOf(y)))l=k.join("").trim(),E.push(a),(a=[U.AT_RULE_BLOCK,[],[]])[1].push([U.AT_RULE_BLOCK_SCOPE,l,[V(u,l,n)]]),w.push(a),w=a[2],C.push(x),x=P.RULE,k=[];else if(L!=M.COLON||x!=P.RULE||T)if(L==M.SEMICOLON&&x==P.RULE&&s&&0<E.length&&0<k.length&&k[0]==M.AT)l=k.join("").trim(),a[1].push([U.AT_RULE,l,[V(u,l,n)]]),k=[];else if(L==M.SEMICOLON&&x==P.RULE&&s&&0<k.length)l=k.join("").trim(),s.push([U.PROPERTY_VALUE,l,[V(u,l,n)]]),s=null,T=!1,k=[];else if(L==M.SEMICOLON&&x==P.RULE&&s&&0===k.length)s=null,T=!1;else if(L==M.SEMICOLON&&x==P.RULE&&0<k.length&&k[0]==M.AT)l=k.join(""),w.push([U.AT_RULE,l,[V(u,l,n)]]),T=!1,k=[];else if(L==M.SEMICOLON&&x==P.RULE&&R)R=!1,k=[];else if(L==M.SEMICOLON&&x==P.RULE&&0===k.length);else if(L==M.CLOSE_CURLY_BRACKET&&x==P.RULE&&s&&T&&0<k.length&&0<E.length)l=k.join(""),s.push([U.PROPERTY_VALUE,l,[V(u,l,n)]]),s=null,a=E.pop(),w=a[2],x=C.pop(),T=!1,k=[];else if(L==M.CLOSE_CURLY_BRACKET&&x==P.RULE&&s&&0<k.length&&k[0]==M.AT&&0<E.length)l=k.join(""),a[1].push([U.AT_RULE,l,[V(u,l,n)]]),s=null,a=E.pop(),w=a[2],x=C.pop(),T=!1,k=[];else if(L==M.CLOSE_CURLY_BRACKET&&x==P.RULE&&s&&0<E.length)s=null,a=E.pop(),w=a[2],x=C.pop(),T=!1;else if(L==M.CLOSE_CURLY_BRACKET&&x==P.RULE&&s&&0<k.length)l=k.join(""),s.push([U.PROPERTY_VALUE,l,[V(u,l,n)]]),s=null,a=E.pop(),w=_,x=C.pop(),T=!1,k=[];else if(L==M.CLOSE_CURLY_BRACKET&&x==P.RULE&&0<k.length&&k[0]==M.AT)a=s=null,l=k.join("").trim(),w.push([U.AT_RULE,l,[V(u,l,n)]]),w=_,x=C.pop(),T=!1,k=[];else if(L==M.CLOSE_CURLY_BRACKET&&x==P.RULE&&C[C.length-1]==P.RULE)s=null,a=E.pop(),w=a[2],x=C.pop(),T=!1,R=!0,k=[];else if(L==M.CLOSE_CURLY_BRACKET&&x==P.RULE)a=s=null,w=_,x=C.pop(),T=!1;else if(L==M.CLOSE_CURLY_BRACKET&&x==P.BLOCK&&!i&&F.index<=t.length-1)n.warnings.push("Unexpected '}' at "+N([F.line,F.column,F.source])+"."),k.push(L);else{if(L==M.CLOSE_CURLY_BRACKET&&x==P.BLOCK)break;L==M.OPEN_ROUND_BRACKET&&x==P.RULE&&T?(k.push(L),S++):L==M.CLOSE_ROUND_BRACKET&&x==P.RULE&&T&&1==S?(k.push(L),l=k.join("").trim(),s.push([U.PROPERTY_VALUE,l,[V(u,l,n)]]),S--,k=[]):L==M.CLOSE_ROUND_BRACKET&&x==P.RULE&&T?(k.push(L),S--):L==M.FORWARD_SLASH&&t[F.index+1]!=M.ASTERISK&&x==P.RULE&&T&&0<k.length?(l=k.join("").trim(),s.push([U.PROPERTY_VALUE,l,[V(u,l,n)]]),s.push([U.PROPERTY_VALUE,L,[[F.line,F.column,F.source]]]),k=[]):L==M.FORWARD_SLASH&&t[F.index+1]!=M.ASTERISK&&x==P.RULE&&T?(s.push([U.PROPERTY_VALUE,L,[[F.line,F.column,F.source]]]),k=[]):L==M.COMMA&&x==P.RULE&&T&&0<k.length?(l=k.join("").trim(),s.push([U.PROPERTY_VALUE,l,[V(u,l,n)]]),s.push([U.PROPERTY_VALUE,L,[[F.line,F.column,F.source]]]),k=[]):L==M.COMMA&&x==P.RULE&&T?(s.push([U.PROPERTY_VALUE,L,[[F.line,F.column,F.source]]]),k=[]):L==M.CLOSE_SQUARE_BRACKET&&s&&1<s.length&&0<k.length&&(b=k,I.test(b.join("")+M.CLOSE_SQUARE_BRACKET))?(k.push(L),l=k.join("").trim(),s[s.length-1][1]+=l,k=[]):(f||p&&!h)&&x==P.RULE&&T&&s&&0<k.length?(l=k.join("").trim(),s.push([U.PROPERTY_VALUE,l,[V(u,l,n)]]),k=[]):h&&x==P.RULE&&T&&s&&1<k.length?(l=k.join("").trim(),s.push([U.PROPERTY_VALUE,l,[V(u,l,n)]]),k=[]):h&&x==P.RULE&&T?k=[]:1==k.length&&h?k.pop():(0<k.length||!f&&!p&&!h)&&k.push(L)}else l=k.join("").trim(),s=[U.PROPERTY,[U.PROPERTY_NAME,l,[V(u,l,n)]]],w.push(s),T=!0,k=[];else k.push(L),S--;else k.push(L),S++;else C.push(x),x=P.DOUBLE_QUOTE,k.push(L);else C.push(x),x=P.SINGLE_QUOTE,k.push(L);else k.push(L);v=!v&&L==M.BACK_SLASH,D=d,B=m,F.line=h||p?F.line+1:F.line,F.column=h||p?0:F.column+1}return T&&n.warnings.push("Missing '}' at "+N([F.line,F.column,F.source])+"."),T&&0<k.length&&(l=k.join("").replace(j,""),s.push([U.PROPERTY_VALUE,l,[V(u,l,n)]]),k=[]),0<k.length&&n.warnings.push("Invalid character(s) '"+k.join("")+"' at "+N(u)+". Ignoring."),_}(e,t,{level:P.BLOCK,position:{source:t.source||void 0,line:1,column:0,index:0}},!1)}},{"../utils/format-position":87,"./marker":83,"./token":84}],86:[function(e,t,n){t.exports=function e(t){for(var n=t.slice(0),r=0,i=n.length;r<i;r++)Array.isArray(n[r])&&(n[r]=e(n[r]));return n}},{}],87:[function(e,t,n){t.exports=function(e){var t=e[0],n=e[1],r=e[2];return r?r+":"+t+":"+n:t+":"+n}},{}],88:[function(e,t,n){var r=/^\/\//;t.exports=function(e){return!r.test(e)}},{}],89:[function(e,t,n){var r=/^data:(\S*?)?(;charset=[^;]+)?(;[^,]+?)?,(.+)/;t.exports=function(e){return r.test(e)}},{}],90:[function(e,t,n){var r=/^http:\/\//;t.exports=function(e){return r.test(e)}},{}],91:[function(e,t,n){var r=/^https:\/\//;t.exports=function(e){return r.test(e)}},{}],92:[function(e,t,n){var r=/^@import/i;t.exports=function(e){return r.test(e)}},{}],93:[function(e,t,n){var r=/^(\w+:\/\/|\/\/)/;t.exports=function(e){return r.test(e)}},{}],94:[function(e,t,n){var u=/([0-9]+)/;function l(e){return""+parseInt(e)==e?parseInt(e):e}t.exports=function(e,t){var n,r,i,o,a=(""+e).split(u).map(l),s=(""+t).split(u).map(l);for(i=0,o=Math.min(a.length,s.length);i<o;i++)if((n=a[i])!=(r=s[i]))return r<n?1:-1;return a.length>s.length?1:a.length==s.length?0:-1}},{}],95:[function(e,t,n){t.exports=function e(t,n){var r,i,o,a={};for(r in t)o=t[r],Array.isArray(o)?a[r]=o.slice(0):a[r]="object"==typeof o&&null!==o?e(o,{}):o;for(i in n)o=n[i],i in a&&Array.isArray(o)?a[i]=o.slice(0):a[i]=i in a&&"object"==typeof o&&null!==o?e(a[i],o):o;return a}},{}],96:[function(e,t,n){var c=e("../tokenizer/marker");t.exports=function(e,t){var n,r=c.OPEN_ROUND_BRACKET,i=c.CLOSE_ROUND_BRACKET,o=0,a=0,s=0,u=e.length,l=[];if(-1==e.indexOf(t))return[e];if(-1==e.indexOf(r))return e.split(t);for(;a<u;)e[a]==r?o++:e[a]==i&&o--,0===o&&0<a&&a+1<u&&e[a]==t&&(l.push(e.substring(s,a)),s=a+1),a++;return s<a+1&&((n=e.substring(s))[n.length-1]==t&&(n=n.substring(0,n.length-1)),l.push(n)),l}},{"../tokenizer/marker":83}],97:[function(e,t,n){var u=e("os").EOL,c="",f=e("../options/format").Breaks,p=e("../options/format").Spaces,h=e("../tokenizer/marker"),d=e("../tokenizer/token");function a(e,t,n){return!e.spaceAfterClosingBrace&&("background"==(l=t)[1][1]||"transform"==l[1][1]||"src"==l[1][1])&&(s=t)[u=n][1][s[u][1].length-1]==h.CLOSE_ROUND_BRACKET||(o=t)[(a=n)+1]&&o[a+1][1]==h.FORWARD_SLASH||t[n][1]==h.FORWARD_SLASH||(r=t)[(i=n)+1]&&r[i+1][1]==h.COMMA||t[n][1]==h.COMMA;var r,i,o,a,s,u,l}function m(e,t){for(var n,r=e.store,i=0,o=t.length;i<o;i++)r(e,t[i]),i<o-1&&r(e,(n=e).format?h.COMMA+(l(n,f.BetweenSelectors)?u:c)+n.indentWith:h.COMMA)}function g(e,t){for(var n=function(e){for(var t=e.length-1;0<=t&&e[t][0]==d.COMMENT;t--);return t}(t),r=0,i=t.length;r<i;r++)o(e,t,r,n)}function o(e,t,n,r){var i,o=e.store,a=t[n],s=a[2][0]==d.PROPERTY_BLOCK,u=n<r||s,l=n===r;switch(a[0]){case d.AT_RULE:o(e,a),o(e,w(e,f.AfterProperty,!1));break;case d.AT_RULE_BLOCK:m(e,a[1]),o(e,y(e,f.AfterRuleBegins,!0)),g(e,a[2]),o(e,_(e,f.AfterRuleEnds,!1,l));break;case d.COMMENT:o(e,a);break;case d.PROPERTY:o(e,a[1]),o(e,(i=e).format?h.COLON+(b(i,p.BeforeValue)?h.SPACE:c):h.COLON),v(e,a),o(e,u?w(e,f.AfterProperty,l):c)}}function v(e,t){var n,r,i,o=e.store;if(t[2][0]==d.PROPERTY_BLOCK)o(e,y(e,f.AfterBlockBegins,!1)),g(e,t[2][1]),o(e,_(e,f.AfterBlockEnds,!1,!0));else for(n=2,r=t.length;n<r;n++)o(e,t[n]),n<r-1&&("filter"==(i=t)[1][1]||"-ms-filter"==i[1][1]||!a(e,t,n))&&o(e,h.SPACE)}function l(e,t){return e.format&&e.format.breaks[t]}function b(e,t){return e.format&&e.format.spaces[t]}function y(e,t,n){return e.format?(e.indentBy+=e.format.indentBy,e.indentWith=e.format.indentWith.repeat(e.indentBy),(n&&b(e,p.BeforeBlockBegins)?h.SPACE:c)+h.OPEN_CURLY_BRACKET+(l(e,t)?u:c)+e.indentWith):h.OPEN_CURLY_BRACKET}function _(e,t,n,r){return e.format?(e.indentBy-=e.format.indentBy,e.indentWith=e.format.indentWith.repeat(e.indentBy),(l(e,f.AfterProperty)||n&&l(e,f.BeforeBlockEnds)?u:c)+e.indentWith+h.CLOSE_CURLY_BRACKET+(r?c:(l(e,t)?u:c)+e.indentWith)):h.CLOSE_CURLY_BRACKET}function w(e,t,n){return e.format?h.SEMICOLON+(n||!l(e,t)?c:u+e.indentWith):h.SEMICOLON}t.exports={all:function e(t,n){var r,i,o,a,s=t.store;for(o=0,a=n.length;o<a;o++)switch(i=o==a-1,(r=n[o])[0]){case d.AT_RULE:s(t,r),s(t,w(t,f.AfterAtRule,i));break;case d.AT_RULE_BLOCK:m(t,r[1]),s(t,y(t,f.AfterRuleBegins,!0)),g(t,r[2]),s(t,_(t,f.AfterRuleEnds,!1,i));break;case d.NESTED_BLOCK:m(t,r[1]),s(t,y(t,f.AfterBlockBegins,!0)),e(t,r[2]),s(t,_(t,f.AfterBlockEnds,!0,i));break;case d.COMMENT:s(t,r),s(t,l(t,f.AfterComment)?u:c);break;case d.RULE:m(t,r[1]),s(t,y(t,f.AfterRuleBegins,!0)),g(t,r[2]),s(t,_(t,f.AfterRuleEnds,!1,i))}},body:g,property:o,rules:m,value:v}},{"../options/format":61,"../tokenizer/marker":83,"../tokenizer/token":84,os:110}],98:[function(e,t,n){var r=e("./helpers");function i(e,t){e.output.push("string"==typeof t?t:t[1])}function o(){return{output:[],store:i}}t.exports={all:function(e){var t=o();return r.all(t,e),t.output.join("")},body:function(e){var t=o();return r.body(t,e),t.output.join("")},property:function(e,t){var n=o();return r.property(n,e,t,!0),n.output.join("")},rules:function(e){var t=o();return r.rules(t,e),t.output.join("")},value:function(e){var t=o();return r.value(t,e),t.output.join("")}}},{"./helpers":97}],99:[function(e,t,n){var r=e("./helpers").all,i=e("os").EOL;function o(e,t){var n="string"==typeof t?t:t[1];(0,e.wrap)(e,n),s(e,n),e.output.push(n)}function a(e,t){e.column+t.length>e.format.wrapAt&&(s(e,i),e.output.push(i))}function s(e,t){var n=t.split("\n");e.line+=n.length-1,e.column=1<n.length?0:e.column+n.pop().length}t.exports=function(e,t){var n={column:0,format:t.options.format,indentBy:0,indentWith:"",line:1,output:[],spaceAfterClosingBrace:t.options.compatibility.properties.spaceAfterClosingBrace,store:o,wrap:t.options.format.wrapAt?a:function(){}};return r(n,e),{styles:n.output.join("")}}},{"./helpers":97,os:110}],100:[function(t,d,e){(function(e){var r=t("source-map").SourceMapGenerator,i=t("./helpers").all,n=t("os").EOL,s=t("../utils/is-remote-resource"),u="win32"==e.platform,l=/\//g,c="$stdin",f="\\";function o(e,t){var n="string"==typeof t,r=n?t:t[1],i=n?null:t[2];(0,e.wrap)(e,r),p(e,r,i),e.output.push(r)}function a(e,t){e.column+t.length>e.format.wrapAt&&(p(e,n,!1),e.output.push(n))}function p(e,t,n){var r=t.split("\n");n&&function(e,t){for(var n=0,r=t.length;n<r;n++)h(e,t[n])}(e,n),e.line+=r.length-1,e.column=1<r.length?0:e.column+r.pop().length}function h(e,t){var n=t[0],r=t[1],i=t[2],o=i,a=o||c;u&&o&&!s(o)&&(a=o.replace(l,f)),e.outputMap.addMapping({generated:{line:e.line,column:e.column},source:a,original:{line:n,column:r}}),e.inlineSources&&i in e.sourcesContent&&e.outputMap.setSourceContent(a,e.sourcesContent[i])}d.exports=function(e,t){var n={column:0,format:t.options.format,indentBy:0,indentWith:"",inlineSources:t.options.sourceMapInlineSources,line:1,output:[],outputMap:new r,sourcesContent:t.sourcesContent,spaceAfterClosingBrace:t.options.compatibility.properties.spaceAfterClosingBrace,store:o,wrap:t.options.format.wrapAt?a:function(){}};return i(n,e),{sourceMap:n.outputMap,styles:n.output.join("")}}}).call(this,t("_process"))},{"../utils/is-remote-resource":93,"./helpers":97,_process:113,os:110,"source-map":155}],101:[function(e,t,n){(function(e){function t(e){return Object.prototype.toString.call(e)}n.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===t(e)},n.isBoolean=function(e){return"boolean"==typeof e},n.isNull=function(e){return null===e},n.isNullOrUndefined=function(e){return null==e},n.isNumber=function(e){return"number"==typeof e},n.isString=function(e){return"string"==typeof e},n.isSymbol=function(e){return"symbol"==typeof e},n.isUndefined=function(e){return void 0===e},n.isRegExp=function(e){return"[object RegExp]"===t(e)},n.isObject=function(e){return"object"==typeof e&&null!==e},n.isDate=function(e){return"[object Date]"===t(e)},n.isError=function(e){return"[object Error]"===t(e)||e instanceof Error},n.isFunction=function(e){return"function"==typeof e},n.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},n.isBuffer=e.isBuffer}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":107}],102:[function(e,t,n){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function u(e){return"function"==typeof e}function l(e){return"object"==typeof e&&null!==e}function c(e){return void 0===e}((t.exports=r).EventEmitter=r).prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,n,r,i,o,a;if(this._events||(this._events={}),"error"===e&&(!this._events.error||l(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var s=new Error('Uncaught, unspecified "error" event. ('+t+")");throw s.context=t,s}if(c(n=this._events[e]))return!1;if(u(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),n.apply(this,i)}else if(l(n))for(i=Array.prototype.slice.call(arguments,1),r=(a=n.slice()).length,o=0;o<r;o++)a[o].apply(this,i);return!0},r.prototype.on=r.prototype.addListener=function(e,t){var n;if(!u(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,u(t.listener)?t.listener:t),this._events[e]?l(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,l(this._events[e])&&!this._events[e].warned&&(n=c(this._maxListeners)?r.defaultMaxListeners:this._maxListeners)&&0<n&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.once=function(e,t){if(!u(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},r.prototype.removeListener=function(e,t){var n,r,i,o;if(!u(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(n=this._events[e]).length,r=-1,n===t||u(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(l(n)){for(o=i;0<o--;)if(n[o]===t||n[o].listener&&n[o].listener===t){r=o;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(u(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){return this._events&&this._events[e]?u(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(u(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},{}],103:[function(e,T,R){(function(B){!function(e){var t="object"==typeof R&&R,n="object"==typeof T&&T&&T.exports==t&&T,r="object"==typeof B&&B;r.global!==r&&r.window!==r||(e=r);var s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=/[\x01-\x7F]/g,l=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,c=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,f={"­":"shy","‌":"zwnj","‍":"zwj","‎":"lrm","⁣":"ic","⁢":"it","⁡":"af","‏":"rlm","​":"ZeroWidthSpace","⁠":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot","\t":"Tab","\n":"NewLine"," ":"puncsp"," ":"MediumSpace"," ":"thinsp"," ":"hairsp"," ":"emsp13"," ":"ensp"," ":"emsp14"," ":"emsp"," ":"numsp"," ":"nbsp","  ":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprime","‵":"bprime","⁁":"caret","`":"grave","´":"acute","˜":"tilde","^":"Hat","¯":"macr","˘":"breve","˙":"dot","¨":"die","˚":"ring","˝":"dblac","¸":"cedil","˛":"ogon","ˆ":"circ","ˇ":"caron","°":"deg","©":"copy","®":"reg","℗":"copysr","℘":"wp","℞":"rx","℧":"mho","℩":"iiota","←":"larr","↚":"nlarr","→":"rarr","↛":"nrarr","↑":"uarr","↓":"darr","↔":"harr","↮":"nharr","↕":"varr","↖":"nwarr","↗":"nearr","↘":"searr","↙":"swarr","↝":"rarrw","↝̸":"nrarrw","↞":"Larr","↟":"Uarr","↠":"Rarr","↡":"Darr","↢":"larrtl","↣":"rarrtl","↤":"mapstoleft","↥":"mapstoup","↦":"map","↧":"mapstodown","↩":"larrhk","↪":"rarrhk","↫":"larrlp","↬":"rarrlp","↭":"harrw","↰":"lsh","↱":"rsh","↲":"ldsh","↳":"rdsh","↵":"crarr","↶":"cularr","↷":"curarr","↺":"olarr","↻":"orarr","↼":"lharu","↽":"lhard","↾":"uharr","↿":"uharl","⇀":"rharu","⇁":"rhard","⇂":"dharr","⇃":"dharl","⇄":"rlarr","⇅":"udarr","⇆":"lrarr","⇇":"llarr","⇈":"uuarr","⇉":"rrarr","⇊":"ddarr","⇋":"lrhar","⇌":"rlhar","⇐":"lArr","⇍":"nlArr","⇑":"uArr","⇒":"rArr","⇏":"nrArr","⇓":"dArr","⇔":"iff","⇎":"nhArr","⇕":"vArr","⇖":"nwArr","⇗":"neArr","⇘":"seArr","⇙":"swArr","⇚":"lAarr","⇛":"rAarr","⇝":"zigrarr","⇤":"larrb","⇥":"rarrb","⇵":"duarr","⇽":"loarr","⇾":"roarr","⇿":"hoarr","∀":"forall","∁":"comp","∂":"part","∂̸":"npart","∃":"exist","∄":"nexist","∅":"empty","∇":"Del","∈":"in","∉":"notin","∋":"ni","∌":"notni","϶":"bepsi","∏":"prod","∐":"coprod","∑":"sum","+":"plus","±":"pm","÷":"div","×":"times","<":"lt","≮":"nlt","<⃒":"nvlt","=":"equals","≠":"ne","=⃥":"bne","⩵":"Equal",">":"gt","≯":"ngt",">⃒":"nvgt","¬":"not","|":"vert","¦":"brvbar","−":"minus","∓":"mp","∔":"plusdo","⁄":"frasl","∖":"setmn","∗":"lowast","∘":"compfn","√":"Sqrt","∝":"prop","∞":"infin","∟":"angrt","∠":"ang","∠⃒":"nang","∡":"angmsd","∢":"angsph","∣":"mid","∤":"nmid","∥":"par","∦":"npar","∧":"and","∨":"or","∩":"cap","∩︀":"caps","∪":"cup","∪︀":"cups","∫":"int","∬":"Int","∭":"tint","⨌":"qint","∮":"oint","∯":"Conint","∰":"Cconint","∱":"cwint","∲":"cwconint","∳":"awconint","∴":"there4","∵":"becaus","∶":"ratio","∷":"Colon","∸":"minusd","∺":"mDDot","∻":"homtht","∼":"sim","≁":"nsim","∼⃒":"nvsim","∽":"bsim","∽̱":"race","∾":"ac","∾̳":"acE","∿":"acd","≀":"wr","≂":"esim","≂̸":"nesim","≃":"sime","≄":"nsime","≅":"cong","≇":"ncong","≆":"simne","≈":"ap","≉":"nap","≊":"ape","≋":"apid","≋̸":"napid","≌":"bcong","≍":"CupCap","≭":"NotCupCap","≍⃒":"nvap","≎":"bump","≎̸":"nbump","≏":"bumpe","≏̸":"nbumpe","≐":"doteq","≐̸":"nedot","≑":"eDot","≒":"efDot","≓":"erDot","≔":"colone","≕":"ecolon","≖":"ecir","≗":"cire","≙":"wedgeq","≚":"veeeq","≜":"trie","≟":"equest","≡":"equiv","≢":"nequiv","≡⃥":"bnequiv","≤":"le","≰":"nle","≤⃒":"nvle","≥":"ge","≱":"nge","≥⃒":"nvge","≦":"lE","≦̸":"nlE","≧":"gE","≧̸":"ngE","≨︀":"lvnE","≨":"lnE","≩":"gnE","≩︀":"gvnE","≪":"ll","≪̸":"nLtv","≪⃒":"nLt","≫":"gg","≫̸":"nGtv","≫⃒":"nGt","≬":"twixt","≲":"lsim","≴":"nlsim","≳":"gsim","≵":"ngsim","≶":"lg","≸":"ntlg","≷":"gl","≹":"ntgl","≺":"pr","⊀":"npr","≻":"sc","⊁":"nsc","≼":"prcue","⋠":"nprcue","≽":"sccue","⋡":"nsccue","≾":"prsim","≿":"scsim","≿̸":"NotSucceedsTilde","⊂":"sub","⊄":"nsub","⊂⃒":"vnsub","⊃":"sup","⊅":"nsup","⊃⃒":"vnsup","⊆":"sube","⊈":"nsube","⊇":"supe","⊉":"nsupe","⊊︀":"vsubne","⊊":"subne","⊋︀":"vsupne","⊋":"supne","⊍":"cupdot","⊎":"uplus","⊏":"sqsub","⊏̸":"NotSquareSubset","⊐":"sqsup","⊐̸":"NotSquareSuperset","⊑":"sqsube","⋢":"nsqsube","⊒":"sqsupe","⋣":"nsqsupe","⊓":"sqcap","⊓︀":"sqcaps","⊔":"sqcup","⊔︀":"sqcups","⊕":"oplus","⊖":"ominus","⊗":"otimes","⊘":"osol","⊙":"odot","⊚":"ocir","⊛":"oast","⊝":"odash","⊞":"plusb","⊟":"minusb","⊠":"timesb","⊡":"sdotb","⊢":"vdash","⊬":"nvdash","⊣":"dashv","⊤":"top","⊥":"bot","⊧":"models","⊨":"vDash","⊭":"nvDash","⊩":"Vdash","⊮":"nVdash","⊪":"Vvdash","⊫":"VDash","⊯":"nVDash","⊰":"prurel","⊲":"vltri","⋪":"nltri","⊳":"vrtri","⋫":"nrtri","⊴":"ltrie","⋬":"nltrie","⊴⃒":"nvltrie","⊵":"rtrie","⋭":"nrtrie","⊵⃒":"nvrtrie","⊶":"origof","⊷":"imof","⊸":"mumap","⊹":"hercon","⊺":"intcal","⊻":"veebar","⊽":"barvee","⊾":"angrtvb","⊿":"lrtri","⋀":"Wedge","⋁":"Vee","⋂":"xcap","⋃":"xcup","⋄":"diam","⋅":"sdot","⋆":"Star","⋇":"divonx","⋈":"bowtie","⋉":"ltimes","⋊":"rtimes","⋋":"lthree","⋌":"rthree","⋍":"bsime","⋎":"cuvee","⋏":"cuwed","⋐":"Sub","⋑":"Sup","⋒":"Cap","⋓":"Cup","⋔":"fork","⋕":"epar","⋖":"ltdot","⋗":"gtdot","⋘":"Ll","⋘̸":"nLl","⋙":"Gg","⋙̸":"nGg","⋚︀":"lesg","⋚":"leg","⋛":"gel","⋛︀":"gesl","⋞":"cuepr","⋟":"cuesc","⋦":"lnsim","⋧":"gnsim","⋨":"prnsim","⋩":"scnsim","⋮":"vellip","⋯":"ctdot","⋰":"utdot","⋱":"dtdot","⋲":"disin","⋳":"isinsv","⋴":"isins","⋵":"isindot","⋵̸":"notindot","⋶":"notinvc","⋷":"notinvb","⋹":"isinE","⋹̸":"notinE","⋺":"nisd","⋻":"xnis","⋼":"nis","⋽":"notnivc","⋾":"notnivb","⌅":"barwed","⌆":"Barwed","⌌":"drcrop","⌍":"dlcrop","⌎":"urcrop","⌏":"ulcrop","⌐":"bnot","⌒":"profline","⌓":"profsurf","⌕":"telrec","⌖":"target","⌜":"ulcorn","⌝":"urcorn","⌞":"dlcorn","⌟":"drcorn","⌢":"frown","⌣":"smile","⌭":"cylcty","⌮":"profalar","⌶":"topbot","⌽":"ovbar","⌿":"solbar","⍼":"angzarr","⎰":"lmoust","⎱":"rmoust","⎴":"tbrk","⎵":"bbrk","⎶":"bbrktbrk","⏜":"OverParenthesis","⏝":"UnderParenthesis","⏞":"OverBrace","⏟":"UnderBrace","⏢":"trpezium","⏧":"elinters","␣":"blank","─":"boxh","│":"boxv","┌":"boxdr","┐":"boxdl","└":"boxur","┘":"boxul","├":"boxvr","┤":"boxvl","┬":"boxhd","┴":"boxhu","┼":"boxvh","═":"boxH","║":"boxV","╒":"boxdR","╓":"boxDr","╔":"boxDR","╕":"boxdL","╖":"boxDl","╗":"boxDL","╘":"boxuR","╙":"boxUr","╚":"boxUR","╛":"boxuL","╜":"boxUl","╝":"boxUL","╞":"boxvR","╟":"boxVr","╠":"boxVR","╡":"boxvL","╢":"boxVl","╣":"boxVL","╤":"boxHd","╥":"boxhD","╦":"boxHD","╧":"boxHu","╨":"boxhU","╩":"boxHU","╪":"boxvH","╫":"boxVh","╬":"boxVH","▀":"uhblk","▄":"lhblk","█":"block","░":"blk14","▒":"blk12","▓":"blk34","□":"squ","▪":"squf","▫":"EmptyVerySmallSquare","▭":"rect","▮":"marker","▱":"fltns","△":"xutri","▴":"utrif","▵":"utri","▸":"rtrif","▹":"rtri","▽":"xdtri","▾":"dtrif","▿":"dtri","◂":"ltrif","◃":"ltri","◊":"loz","○":"cir","◬":"tridot","◯":"xcirc","◸":"ultri","◹":"urtri","◺":"lltri","◻":"EmptySmallSquare","◼":"FilledSmallSquare","★":"starf","☆":"star","☎":"phone","♀":"female","♂":"male","♠":"spades","♣":"clubs","♥":"hearts","♦":"diams","♪":"sung","✓":"check","✗":"cross","✠":"malt","✶":"sext","❘":"VerticalSeparator","⟈":"bsolhsub","⟉":"suphsol","⟵":"xlarr","⟶":"xrarr","⟷":"xharr","⟸":"xlArr","⟹":"xrArr","⟺":"xhArr","⟼":"xmap","⟿":"dzigrarr","⤂":"nvlArr","⤃":"nvrArr","⤄":"nvHarr","⤅":"Map","⤌":"lbarr","⤍":"rbarr","⤎":"lBarr","⤏":"rBarr","⤐":"RBarr","⤑":"DDotrahd","⤒":"UpArrowBar","⤓":"DownArrowBar","⤖":"Rarrtl","⤙":"latail","⤚":"ratail","⤛":"lAtail","⤜":"rAtail","⤝":"larrfs","⤞":"rarrfs","⤟":"larrbfs","⤠":"rarrbfs","⤣":"nwarhk","⤤":"nearhk","⤥":"searhk","⤦":"swarhk","⤧":"nwnear","⤨":"toea","⤩":"tosa","⤪":"swnwar","⤳":"rarrc","⤳̸":"nrarrc","⤵":"cudarrr","⤶":"ldca","⤷":"rdca","⤸":"cudarrl","⤹":"larrpl","⤼":"curarrm","⤽":"cularrp","⥅":"rarrpl","⥈":"harrcir","⥉":"Uarrocir","⥊":"lurdshar","⥋":"ldrushar","⥎":"LeftRightVector","⥏":"RightUpDownVector","⥐":"DownLeftRightVector","⥑":"LeftUpDownVector","⥒":"LeftVectorBar","⥓":"RightVectorBar","⥔":"RightUpVectorBar","⥕":"RightDownVectorBar","⥖":"DownLeftVectorBar","⥗":"DownRightVectorBar","⥘":"LeftUpVectorBar","⥙":"LeftDownVectorBar","⥚":"LeftTeeVector","⥛":"RightTeeVector","⥜":"RightUpTeeVector","⥝":"RightDownTeeVector","⥞":"DownLeftTeeVector","⥟":"DownRightTeeVector","⥠":"LeftUpTeeVector","⥡":"LeftDownTeeVector","⥢":"lHar","⥣":"uHar","⥤":"rHar","⥥":"dHar","⥦":"luruhar","⥧":"ldrdhar","⥨":"ruluhar","⥩":"rdldhar","⥪":"lharul","⥫":"llhard","⥬":"rharul","⥭":"lrhard","⥮":"udhar","⥯":"duhar","⥰":"RoundImplies","⥱":"erarr","⥲":"simrarr","⥳":"larrsim","⥴":"rarrsim","⥵":"rarrap","⥶":"ltlarr","⥸":"gtrarr","⥹":"subrarr","⥻":"suplarr","⥼":"lfisht","⥽":"rfisht","⥾":"ufisht","⥿":"dfisht","⦚":"vzigzag","⦜":"vangrt","⦝":"angrtvbd","⦤":"ange","⦥":"range","⦦":"dwangle","⦧":"uwangle","⦨":"angmsdaa","⦩":"angmsdab","⦪":"angmsdac","⦫":"angmsdad","⦬":"angmsdae","⦭":"angmsdaf","⦮":"angmsdag","⦯":"angmsdah","⦰":"bemptyv","⦱":"demptyv","⦲":"cemptyv","⦳":"raemptyv","⦴":"laemptyv","⦵":"ohbar","⦶":"omid","⦷":"opar","⦹":"operp","⦻":"olcross","⦼":"odsold","⦾":"olcir","⦿":"ofcir","⧀":"olt","⧁":"ogt","⧂":"cirscir","⧃":"cirE","⧄":"solb","⧅":"bsolb","⧉":"boxbox","⧍":"trisb","⧎":"rtriltri","⧏":"LeftTriangleBar","⧏̸":"NotLeftTriangleBar","⧐":"RightTriangleBar","⧐̸":"NotRightTriangleBar","⧜":"iinfin","⧝":"infintie","⧞":"nvinfin","⧣":"eparsl","⧤":"smeparsl","⧥":"eqvparsl","⧫":"lozf","⧴":"RuleDelayed","⧶":"dsol","⨀":"xodot","⨁":"xoplus","⨂":"xotime","⨄":"xuplus","⨆":"xsqcup","⨍":"fpartint","⨐":"cirfnint","⨑":"awint","⨒":"rppolint","⨓":"scpolint","⨔":"npolint","⨕":"pointint","⨖":"quatint","⨗":"intlarhk","⨢":"pluscir","⨣":"plusacir","⨤":"simplus","⨥":"plusdu","⨦":"plussim","⨧":"plustwo","⨩":"mcomma","⨪":"minusdu","⨭":"loplus","⨮":"roplus","⨯":"Cross","⨰":"timesd","⨱":"timesbar","⨳":"smashp","⨴":"lotimes","⨵":"rotimes","⨶":"otimesas","⨷":"Otimes","⨸":"odiv","⨹":"triplus","⨺":"triminus","⨻":"tritime","⨼":"iprod","⨿":"amalg","⩀":"capdot","⩂":"ncup","⩃":"ncap","⩄":"capand","⩅":"cupor","⩆":"cupcap","⩇":"capcup","⩈":"cupbrcap","⩉":"capbrcup","⩊":"cupcup","⩋":"capcap","⩌":"ccups","⩍":"ccaps","⩐":"ccupssm","⩓":"And","⩔":"Or","⩕":"andand","⩖":"oror","⩗":"orslope","⩘":"andslope","⩚":"andv","⩛":"orv","⩜":"andd","⩝":"ord","⩟":"wedbar","⩦":"sdote","⩪":"simdot","⩭":"congdot","⩭̸":"ncongdot","⩮":"easter","⩯":"apacir","⩰":"apE","⩰̸":"napE","⩱":"eplus","⩲":"pluse","⩳":"Esim","⩷":"eDDot","⩸":"equivDD","⩹":"ltcir","⩺":"gtcir","⩻":"ltquest","⩼":"gtquest","⩽":"les","⩽̸":"nles","⩾":"ges","⩾̸":"nges","⩿":"lesdot","⪀":"gesdot","⪁":"lesdoto","⪂":"gesdoto","⪃":"lesdotor","⪄":"gesdotol","⪅":"lap","⪆":"gap","⪇":"lne","⪈":"gne","⪉":"lnap","⪊":"gnap","⪋":"lEg","⪌":"gEl","⪍":"lsime","⪎":"gsime","⪏":"lsimg","⪐":"gsiml","⪑":"lgE","⪒":"glE","⪓":"lesges","⪔":"gesles","⪕":"els","⪖":"egs","⪗":"elsdot","⪘":"egsdot","⪙":"el","⪚":"eg","⪝":"siml","⪞":"simg","⪟":"simlE","⪠":"simgE","⪡":"LessLess","⪡̸":"NotNestedLessLess","⪢":"GreaterGreater","⪢̸":"NotNestedGreaterGreater","⪤":"glj","⪥":"gla","⪦":"ltcc","⪧":"gtcc","⪨":"lescc","⪩":"gescc","⪪":"smt","⪫":"lat","⪬":"smte","⪬︀":"smtes","⪭":"late","⪭︀":"lates","⪮":"bumpE","⪯":"pre","⪯̸":"npre","⪰":"sce","⪰̸":"nsce","⪳":"prE","⪴":"scE","⪵":"prnE","⪶":"scnE","⪷":"prap","⪸":"scap","⪹":"prnap","⪺":"scnap","⪻":"Pr","⪼":"Sc","⪽":"subdot","⪾":"supdot","⪿":"subplus","⫀":"supplus","⫁":"submult","⫂":"supmult","⫃":"subedot","⫄":"supedot","⫅":"subE","⫅̸":"nsubE","⫆":"supE","⫆̸":"nsupE","⫇":"subsim","⫈":"supsim","⫋︀":"vsubnE","⫋":"subnE","⫌︀":"vsupnE","⫌":"supnE","⫏":"csub","⫐":"csup","⫑":"csube","⫒":"csupe","⫓":"subsup","⫔":"supsub","⫕":"subsub","⫖":"supsup","⫗":"suphsub","⫘":"supdsub","⫙":"forkv","⫚":"topfork","⫛":"mlcp","⫤":"Dashv","⫦":"Vdashl","⫧":"Barv","⫨":"vBar","⫩":"vBarv","⫫":"Vbar","⫬":"Not","⫭":"bNot","⫮":"rnmid","⫯":"cirmid","⫰":"midcir","⫱":"topcir","⫲":"nhpar","⫳":"parsim","⫽":"parsl","⫽⃥":"nparsl","♭":"flat","♮":"natur","♯":"sharp","¤":"curren","¢":"cent",$:"dollar","£":"pound","¥":"yen","€":"euro","¹":"sup1","½":"half","⅓":"frac13","¼":"frac14","⅕":"frac15","⅙":"frac16","⅛":"frac18","²":"sup2","⅔":"frac23","⅖":"frac25","³":"sup3","¾":"frac34","⅗":"frac35","⅜":"frac38","⅘":"frac45","⅚":"frac56","⅝":"frac58","⅞":"frac78","𝒶":"ascr","𝕒":"aopf","𝔞":"afr","𝔸":"Aopf","𝔄":"Afr","𝒜":"Ascr","ª":"ordf","á":"aacute","Á":"Aacute","à":"agrave","À":"Agrave","ă":"abreve","Ă":"Abreve","â":"acirc","Â":"Acirc","å":"aring","Å":"angst","ä":"auml","Ä":"Auml","ã":"atilde","Ã":"Atilde","ą":"aogon","Ą":"Aogon","ā":"amacr","Ā":"Amacr","æ":"aelig","Æ":"AElig","𝒷":"bscr","𝕓":"bopf","𝔟":"bfr","𝔹":"Bopf","ℬ":"Bscr","𝔅":"Bfr","𝔠":"cfr","𝒸":"cscr","𝕔":"copf","ℭ":"Cfr","𝒞":"Cscr","ℂ":"Copf","ć":"cacute","Ć":"Cacute","ĉ":"ccirc","Ĉ":"Ccirc","č":"ccaron","Č":"Ccaron","ċ":"cdot","Ċ":"Cdot","ç":"ccedil","Ç":"Ccedil","℅":"incare","𝔡":"dfr","ⅆ":"dd","𝕕":"dopf","𝒹":"dscr","𝒟":"Dscr","𝔇":"Dfr","ⅅ":"DD","𝔻":"Dopf","ď":"dcaron","Ď":"Dcaron","đ":"dstrok","Đ":"Dstrok","ð":"eth","Ð":"ETH","ⅇ":"ee","ℯ":"escr","𝔢":"efr","𝕖":"eopf","ℰ":"Escr","𝔈":"Efr","𝔼":"Eopf","é":"eacute","É":"Eacute","è":"egrave","È":"Egrave","ê":"ecirc","Ê":"Ecirc","ě":"ecaron","Ě":"Ecaron","ë":"euml","Ë":"Euml","ė":"edot","Ė":"Edot","ę":"eogon","Ę":"Eogon","ē":"emacr","Ē":"Emacr","𝔣":"ffr","𝕗":"fopf","𝒻":"fscr","𝔉":"Ffr","𝔽":"Fopf","ℱ":"Fscr","ff":"fflig","ffi":"ffilig","ffl":"ffllig","fi":"filig",fj:"fjlig","fl":"fllig","ƒ":"fnof","ℊ":"gscr","𝕘":"gopf","𝔤":"gfr","𝒢":"Gscr","𝔾":"Gopf","𝔊":"Gfr","ǵ":"gacute","ğ":"gbreve","Ğ":"Gbreve","ĝ":"gcirc","Ĝ":"Gcirc","ġ":"gdot","Ġ":"Gdot","Ģ":"Gcedil","𝔥":"hfr","ℎ":"planckh","𝒽":"hscr","𝕙":"hopf","ℋ":"Hscr","ℌ":"Hfr","ℍ":"Hopf","ĥ":"hcirc","Ĥ":"Hcirc","ℏ":"hbar","ħ":"hstrok","Ħ":"Hstrok","𝕚":"iopf","𝔦":"ifr","𝒾":"iscr","ⅈ":"ii","𝕀":"Iopf","ℐ":"Iscr","ℑ":"Im","í":"iacute","Í":"Iacute","ì":"igrave","Ì":"Igrave","î":"icirc","Î":"Icirc","ï":"iuml","Ï":"Iuml","ĩ":"itilde","Ĩ":"Itilde","İ":"Idot","į":"iogon","Į":"Iogon","ī":"imacr","Ī":"Imacr","ij":"ijlig","IJ":"IJlig","ı":"imath","𝒿":"jscr","𝕛":"jopf","𝔧":"jfr","𝒥":"Jscr","𝔍":"Jfr","𝕁":"Jopf","ĵ":"jcirc","Ĵ":"Jcirc","ȷ":"jmath","𝕜":"kopf","𝓀":"kscr","𝔨":"kfr","𝒦":"Kscr","𝕂":"Kopf","𝔎":"Kfr","ķ":"kcedil","Ķ":"Kcedil","𝔩":"lfr","𝓁":"lscr","ℓ":"ell","𝕝":"lopf","ℒ":"Lscr","𝔏":"Lfr","𝕃":"Lopf","ĺ":"lacute","Ĺ":"Lacute","ľ":"lcaron","Ľ":"Lcaron","ļ":"lcedil","Ļ":"Lcedil","ł":"lstrok","Ł":"Lstrok","ŀ":"lmidot","Ŀ":"Lmidot","𝔪":"mfr","𝕞":"mopf","𝓂":"mscr","𝔐":"Mfr","𝕄":"Mopf","ℳ":"Mscr","𝔫":"nfr","𝕟":"nopf","𝓃":"nscr","ℕ":"Nopf","𝒩":"Nscr","𝔑":"Nfr","ń":"nacute","Ń":"Nacute","ň":"ncaron","Ň":"Ncaron","ñ":"ntilde","Ñ":"Ntilde","ņ":"ncedil","Ņ":"Ncedil","№":"numero","ŋ":"eng","Ŋ":"ENG","𝕠":"oopf","𝔬":"ofr","ℴ":"oscr","𝒪":"Oscr","𝔒":"Ofr","𝕆":"Oopf","º":"ordm","ó":"oacute","Ó":"Oacute","ò":"ograve","Ò":"Ograve","ô":"ocirc","Ô":"Ocirc","ö":"ouml","Ö":"Ouml","ő":"odblac","Ő":"Odblac","õ":"otilde","Õ":"Otilde","ø":"oslash","Ø":"Oslash","ō":"omacr","Ō":"Omacr","œ":"oelig","Œ":"OElig","𝔭":"pfr","𝓅":"pscr","𝕡":"popf","ℙ":"Popf","𝔓":"Pfr","𝒫":"Pscr","𝕢":"qopf","𝔮":"qfr","𝓆":"qscr","𝒬":"Qscr","𝔔":"Qfr","ℚ":"Qopf","ĸ":"kgreen","𝔯":"rfr","𝕣":"ropf","𝓇":"rscr","ℛ":"Rscr","ℜ":"Re","ℝ":"Ropf","ŕ":"racute","Ŕ":"Racute","ř":"rcaron","Ř":"Rcaron","ŗ":"rcedil","Ŗ":"Rcedil","𝕤":"sopf","𝓈":"sscr","𝔰":"sfr","𝕊":"Sopf","𝔖":"Sfr","𝒮":"Sscr","Ⓢ":"oS","ś":"sacute","Ś":"Sacute","ŝ":"scirc","Ŝ":"Scirc","š":"scaron","Š":"Scaron","ş":"scedil","Ş":"Scedil","ß":"szlig","𝔱":"tfr","𝓉":"tscr","𝕥":"topf","𝒯":"Tscr","𝔗":"Tfr","𝕋":"Topf","ť":"tcaron","Ť":"Tcaron","ţ":"tcedil","Ţ":"Tcedil","™":"trade","ŧ":"tstrok","Ŧ":"Tstrok","𝓊":"uscr","𝕦":"uopf","𝔲":"ufr","𝕌":"Uopf","𝔘":"Ufr","𝒰":"Uscr","ú":"uacute","Ú":"Uacute","ù":"ugrave","Ù":"Ugrave","ŭ":"ubreve","Ŭ":"Ubreve","û":"ucirc","Û":"Ucirc","ů":"uring","Ů":"Uring","ü":"uuml","Ü":"Uuml","ű":"udblac","Ű":"Udblac","ũ":"utilde","Ũ":"Utilde","ų":"uogon","Ų":"Uogon","ū":"umacr","Ū":"Umacr","𝔳":"vfr","𝕧":"vopf","𝓋":"vscr","𝔙":"Vfr","𝕍":"Vopf","𝒱":"Vscr","𝕨":"wopf","𝓌":"wscr","𝔴":"wfr","𝒲":"Wscr","𝕎":"Wopf","𝔚":"Wfr","ŵ":"wcirc","Ŵ":"Wcirc","𝔵":"xfr","𝓍":"xscr","𝕩":"xopf","𝕏":"Xopf","𝔛":"Xfr","𝒳":"Xscr","𝔶":"yfr","𝓎":"yscr","𝕪":"yopf","𝒴":"Yscr","𝔜":"Yfr","𝕐":"Yopf","ý":"yacute","Ý":"Yacute","ŷ":"ycirc","Ŷ":"Ycirc","ÿ":"yuml","Ÿ":"Yuml","𝓏":"zscr","𝔷":"zfr","𝕫":"zopf","ℨ":"Zfr","ℤ":"Zopf","𝒵":"Zscr","ź":"zacute","Ź":"Zacute","ž":"zcaron","Ž":"Zcaron","ż":"zdot","Ż":"Zdot","Ƶ":"imped","þ":"thorn","Þ":"THORN","ʼn":"napos","α":"alpha","Α":"Alpha","β":"beta","Β":"Beta","γ":"gamma","Γ":"Gamma","δ":"delta","Δ":"Delta","ε":"epsi","ϵ":"epsiv","Ε":"Epsilon","ϝ":"gammad","Ϝ":"Gammad","ζ":"zeta","Ζ":"Zeta","η":"eta","Η":"Eta","θ":"theta","ϑ":"thetav","Θ":"Theta","ι":"iota","Ι":"Iota","κ":"kappa","ϰ":"kappav","Κ":"Kappa","λ":"lambda","Λ":"Lambda","μ":"mu","µ":"micro","Μ":"Mu","ν":"nu","Ν":"Nu","ξ":"xi","Ξ":"Xi","ο":"omicron","Ο":"Omicron","π":"pi","ϖ":"piv","Π":"Pi","ρ":"rho","ϱ":"rhov","Ρ":"Rho","σ":"sigma","Σ":"Sigma","ς":"sigmaf","τ":"tau","Τ":"Tau","υ":"upsi","Υ":"Upsilon","ϒ":"Upsi","φ":"phi","ϕ":"phiv","Φ":"Phi","χ":"chi","Χ":"Chi","ψ":"psi","Ψ":"Psi","ω":"omega","Ω":"ohm","а":"acy","А":"Acy","б":"bcy","Б":"Bcy","в":"vcy","В":"Vcy","г":"gcy","Г":"Gcy","ѓ":"gjcy","Ѓ":"GJcy","д":"dcy","Д":"Dcy","ђ":"djcy","Ђ":"DJcy","е":"iecy","Е":"IEcy","ё":"iocy","Ё":"IOcy","є":"jukcy","Є":"Jukcy","ж":"zhcy","Ж":"ZHcy","з":"zcy","З":"Zcy","ѕ":"dscy","Ѕ":"DScy","и":"icy","И":"Icy","і":"iukcy","І":"Iukcy","ї":"yicy","Ї":"YIcy","й":"jcy","Й":"Jcy","ј":"jsercy","Ј":"Jsercy","к":"kcy","К":"Kcy","ќ":"kjcy","Ќ":"KJcy","л":"lcy","Л":"Lcy","љ":"ljcy","Љ":"LJcy","м":"mcy","М":"Mcy","н":"ncy","Н":"Ncy","њ":"njcy","Њ":"NJcy","о":"ocy","О":"Ocy","п":"pcy","П":"Pcy","р":"rcy","Р":"Rcy","с":"scy","С":"Scy","т":"tcy","Т":"Tcy","ћ":"tshcy","Ћ":"TSHcy","у":"ucy","У":"Ucy","ў":"ubrcy","Ў":"Ubrcy","ф":"fcy","Ф":"Fcy","х":"khcy","Х":"KHcy","ц":"tscy","Ц":"TScy","ч":"chcy","Ч":"CHcy","џ":"dzcy","Џ":"DZcy","ш":"shcy","Ш":"SHcy","щ":"shchcy","Щ":"SHCHcy","ъ":"hardcy","Ъ":"HARDcy","ы":"ycy","Ы":"Ycy","ь":"softcy","Ь":"SOFTcy","э":"ecy","Э":"Ecy","ю":"yucy","Ю":"YUcy","я":"yacy","Я":"YAcy","ℵ":"aleph","ℶ":"beth","ℷ":"gimel","ℸ":"daleth"},p=/["&'<>`]/g,i={'"':"&quot;","&":"&amp;","'":"&#x27;","<":"&lt;",">":"&gt;","`":"&#x60;"},o=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,h=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,a=/&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)([=a-zA-Z0-9])?/g,g={aacute:"á",Aacute:"Á",abreve:"ă",Abreve:"Ă",ac:"∾",acd:"∿",acE:"∾̳",acirc:"â",Acirc:"Â",acute:"´",acy:"а",Acy:"А",aelig:"æ",AElig:"Æ",af:"⁡",afr:"𝔞",Afr:"𝔄",agrave:"à",Agrave:"À",alefsym:"ℵ",aleph:"ℵ",alpha:"α",Alpha:"Α",amacr:"ā",Amacr:"Ā",amalg:"⨿",amp:"&",AMP:"&",and:"∧",And:"⩓",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",Aogon:"Ą",aopf:"𝕒",Aopf:"𝔸",ap:"≈",apacir:"⩯",ape:"≊",apE:"⩰",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",aring:"å",Aring:"Å",ascr:"𝒶",Ascr:"𝒜",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",Bcy:"Б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",beta:"β",Beta:"Β",beth:"ℶ",between:"≬",bfr:"𝔟",Bfr:"𝔅",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bNot:"⫭",bopf:"𝕓",Bopf:"𝔹",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxhD:"╥",boxHd:"╤",boxHD:"╦",boxhu:"┴",boxhU:"╨",boxHu:"╧",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpe:"≏",bumpE:"⪮",bumpeq:"≏",Bumpeq:"≎",cacute:"ć",Cacute:"Ć",cap:"∩",Cap:"⋒",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",ccaron:"č",Ccaron:"Č",ccedil:"ç",Ccedil:"Ç",ccirc:"ĉ",Ccirc:"Ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",Cdot:"Ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",chcy:"ч",CHcy:"Ч",check:"✓",checkmark:"✓",chi:"χ",Chi:"Χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cire:"≗",cirE:"⧃",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",colone:"≔",Colone:"⩴",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",cscr:"𝒸",Cscr:"𝒞",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",Cup:"⋓",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",dArr:"⇓",Darr:"↡",dash:"‐",dashv:"⊣",Dashv:"⫤",dbkarow:"⤏",dblac:"˝",dcaron:"ď",Dcaron:"Ď",dcy:"д",Dcy:"Д",dd:"ⅆ",DD:"ⅅ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",delta:"δ",Delta:"Δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",Dfr:"𝔇",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",DJcy:"Ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",Dopf:"𝔻",dot:"˙",Dot:"¨",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",downarrow:"↓",Downarrow:"⇓",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",Dscr:"𝒟",dscy:"ѕ",DScy:"Ѕ",dsol:"⧶",dstrok:"đ",Dstrok:"Đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",DZcy:"Џ",dzigrarr:"⟿",eacute:"é",Eacute:"É",easter:"⩮",ecaron:"ě",Ecaron:"Ě",ecir:"≖",ecirc:"ê",Ecirc:"Ê",ecolon:"≕",ecy:"э",Ecy:"Э",eDDot:"⩷",edot:"ė",eDot:"≑",Edot:"Ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",Efr:"𝔈",eg:"⪚",egrave:"è",Egrave:"È",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",Emacr:"Ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",eng:"ŋ",ENG:"Ŋ",ensp:" ",eogon:"ę",Eogon:"Ę",eopf:"𝕖",Eopf:"𝔼",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",Epsilon:"Ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",esim:"≂",Esim:"⩳",eta:"η",Eta:"Η",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",fcy:"ф",Fcy:"Ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",Ffr:"𝔉",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",Fopf:"𝔽",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",gamma:"γ",Gamma:"Γ",gammad:"ϝ",Gammad:"Ϝ",gap:"⪆",gbreve:"ğ",Gbreve:"Ğ",Gcedil:"Ģ",gcirc:"ĝ",Gcirc:"Ĝ",gcy:"г",Gcy:"Г",gdot:"ġ",Gdot:"Ġ",ge:"≥",gE:"≧",gel:"⋛",gEl:"⪌",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",Gfr:"𝔊",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",GJcy:"Ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",Gopf:"𝔾",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",gscr:"ℊ",Gscr:"𝒢",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",Gt:"≫",GT:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",HARDcy:"Ъ",harr:"↔",hArr:"⇔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",hcirc:"ĥ",Hcirc:"Ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",hstrok:"ħ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",iacute:"í",Iacute:"Í",ic:"⁣",icirc:"î",Icirc:"Î",icy:"и",Icy:"И",Idot:"İ",iecy:"е",IEcy:"Е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",igrave:"ì",Igrave:"Ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",IJlig:"IJ",Im:"ℑ",imacr:"ī",Imacr:"Ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",Int:"∬",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",iocy:"ё",IOcy:"Ё",iogon:"į",Iogon:"Į",iopf:"𝕚",Iopf:"𝕀",iota:"ι",Iota:"Ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",Itilde:"Ĩ",iukcy:"і",Iukcy:"І",iuml:"ï",Iuml:"Ï",jcirc:"ĵ",Jcirc:"Ĵ",jcy:"й",Jcy:"Й",jfr:"𝔧",Jfr:"𝔍",jmath:"ȷ",jopf:"𝕛",Jopf:"𝕁",jscr:"𝒿",Jscr:"𝒥",jsercy:"ј",Jsercy:"Ј",jukcy:"є",Jukcy:"Є",kappa:"κ",Kappa:"Κ",kappav:"ϰ",kcedil:"ķ",Kcedil:"Ķ",kcy:"к",Kcy:"К",kfr:"𝔨",Kfr:"𝔎",kgreen:"ĸ",khcy:"х",KHcy:"Х",kjcy:"ќ",KJcy:"Ќ",kopf:"𝕜",Kopf:"𝕂",kscr:"𝓀",Kscr:"𝒦",lAarr:"⇚",lacute:"ĺ",Lacute:"Ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",Lambda:"Λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larr:"←",lArr:"⇐",Larr:"↞",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",lAtail:"⤛",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lceil:"⌈",lcub:"{",lcy:"л",Lcy:"Л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",leftarrow:"←",Leftarrow:"⇐",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",Leftrightarrow:"⇔",LeftRightArrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",leg:"⋚",lEg:"⪋",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",Lfr:"𝔏",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",LJcy:"Љ",ll:"≪",Ll:"⋘",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",lmidot:"ŀ",Lmidot:"Ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",Longleftarrow:"⟸",LongLeftArrow:"⟵",longleftrightarrow:"⟷",Longleftrightarrow:"⟺",LongLeftRightArrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",Longrightarrow:"⟹",LongRightArrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",Lopf:"𝕃",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",Lstrok:"Ł",lt:"<",Lt:"≪",LT:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",Map:"⤅",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",Mcy:"М",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",mfr:"𝔪",Mfr:"𝔐",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",Mopf:"𝕄",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",mu:"μ",Mu:"Μ",multimap:"⊸",mumap:"⊸",nabla:"∇",nacute:"ń",Nacute:"Ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",Ncaron:"Ň",ncedil:"ņ",Ncedil:"Ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",Ncy:"Н",ndash:"–",ne:"≠",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",nfr:"𝔫",Nfr:"𝔑",nge:"≱",ngE:"≧̸",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",ngt:"≯",nGt:"≫⃒",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",NJcy:"Њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nle:"≰",nlE:"≦̸",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nlt:"≮",nLt:"≪⃒",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",not:"¬",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrarr:"↛",nrArr:"⇏",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",Nscr:"𝒩",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsube:"⊈",nsubE:"⫅̸",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupe:"⊉",nsupE:"⫆̸",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",Ntilde:"Ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",Nu:"Ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",oacute:"ó",Oacute:"Ó",oast:"⊛",ocir:"⊚",ocirc:"ô",Ocirc:"Ô",ocy:"о",Ocy:"О",odash:"⊝",odblac:"ő",Odblac:"Ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",OElig:"Œ",ofcir:"⦿",ofr:"𝔬",Ofr:"𝔒",ogon:"˛",ograve:"ò",Ograve:"Ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",Omacr:"Ō",omega:"ω",Omega:"Ω",omicron:"ο",Omicron:"Ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",Oopf:"𝕆",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",or:"∨",Or:"⩔",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",oscr:"ℴ",Oscr:"𝒪",oslash:"ø",Oslash:"Ø",osol:"⊘",otilde:"õ",Otilde:"Õ",otimes:"⊗",Otimes:"⨷",otimesas:"⨶",ouml:"ö",Ouml:"Ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",pcy:"п",Pcy:"П",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",Pfr:"𝔓",phi:"φ",Phi:"Φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",Pi:"Π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",pr:"≺",Pr:"⪻",prap:"⪷",prcue:"≼",pre:"⪯",prE:"⪳",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",Pscr:"𝒫",psi:"ψ",Psi:"Ψ",puncsp:" ",qfr:"𝔮",Qfr:"𝔔",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",qscr:"𝓆",Qscr:"𝒬",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",racute:"ŕ",Racute:"Ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rArr:"⇒",Rarr:"↠",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",Rarrtl:"⤖",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",rceil:"⌉",rcub:"}",rcy:"р",Rcy:"Р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",Rho:"Ρ",rhov:"ϱ",RightAngleBracket:"⟩",rightarrow:"→",Rightarrow:"⇒",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",sacute:"ś",Sacute:"Ś",sbquo:"‚",sc:"≻",Sc:"⪼",scap:"⪸",scaron:"š",Scaron:"Š",sccue:"≽",sce:"⪰",scE:"⪴",scedil:"ş",Scedil:"Ş",scirc:"ŝ",Scirc:"Ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",Scy:"С",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",Sfr:"𝔖",sfrown:"⌢",sharp:"♯",shchcy:"щ",SHCHcy:"Щ",shcy:"ш",SHcy:"Ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",SOFTcy:"Ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",Sopf:"𝕊",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",Sscr:"𝒮",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",Star:"⋆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",sube:"⊆",subE:"⫅",subedot:"⫃",submult:"⫁",subne:"⊊",subnE:"⫋",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup:"⊃",Sup:"⋑",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supe:"⊇",supE:"⫆",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supne:"⊋",supnE:"⫌",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",tau:"τ",Tau:"Τ",tbrk:"⎴",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",tcy:"т",Tcy:"Т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",Tfr:"𝔗",there4:"∴",therefore:"∴",Therefore:"∴",theta:"θ",Theta:"Θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",thorn:"þ",THORN:"Þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",Topf:"𝕋",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",Tscr:"𝒯",tscy:"ц",TScy:"Ц",tshcy:"ћ",TSHcy:"Ћ",tstrok:"ŧ",Tstrok:"Ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uacute:"ú",Uacute:"Ú",uarr:"↑",uArr:"⇑",Uarr:"↟",Uarrocir:"⥉",ubrcy:"ў",Ubrcy:"Ў",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",ucy:"у",Ucy:"У",udarr:"⇅",udblac:"ű",Udblac:"Ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",Ufr:"𝔘",ugrave:"ù",Ugrave:"Ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",Umacr:"Ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",uogon:"ų",Uogon:"Ų",uopf:"𝕦",Uopf:"𝕌",uparrow:"↑",Uparrow:"⇑",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",updownarrow:"↕",Updownarrow:"⇕",UpDownArrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",upsilon:"υ",Upsilon:"Υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",Uring:"Ů",urtri:"◹",uscr:"𝓊",Uscr:"𝒰",utdot:"⋰",utilde:"ũ",Utilde:"Ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",Uuml:"Ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",vcy:"в",Vcy:"В",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",vee:"∨",Vee:"⋁",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",vfr:"𝔳",Vfr:"𝔙",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",Vopf:"𝕍",vprop:"∝",vrtri:"⊳",vscr:"𝓋",Vscr:"𝒱",vsubne:"⊊︀",vsubnE:"⫋︀",vsupne:"⊋︀",vsupnE:"⫌︀",Vvdash:"⊪",vzigzag:"⦚",wcirc:"ŵ",Wcirc:"Ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",wfr:"𝔴",Wfr:"𝔚",wopf:"𝕨",Wopf:"𝕎",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",Wscr:"𝒲",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",Xfr:"𝔛",xharr:"⟷",xhArr:"⟺",xi:"ξ",Xi:"Ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",Xopf:"𝕏",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",xscr:"𝓍",Xscr:"𝒳",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",Yacute:"Ý",yacy:"я",YAcy:"Я",ycirc:"ŷ",Ycirc:"Ŷ",ycy:"ы",Ycy:"Ы",yen:"¥",yfr:"𝔶",Yfr:"𝔜",yicy:"ї",YIcy:"Ї",yopf:"𝕪",Yopf:"𝕐",yscr:"𝓎",Yscr:"𝒴",yucy:"ю",YUcy:"Ю",yuml:"ÿ",Yuml:"Ÿ",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zcy:"з",Zcy:"З",zdot:"ż",Zdot:"Ż",zeetrf:"ℨ",ZeroWidthSpace:"​",zeta:"ζ",Zeta:"Ζ",zfr:"𝔷",Zfr:"ℨ",zhcy:"ж",ZHcy:"Ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",zscr:"𝓏",Zscr:"𝒵",zwj:"‍",zwnj:"‌"},v={aacute:"á",Aacute:"Á",acirc:"â",Acirc:"Â",acute:"´",aelig:"æ",AElig:"Æ",agrave:"à",Agrave:"À",amp:"&",AMP:"&",aring:"å",Aring:"Å",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",brvbar:"¦",ccedil:"ç",Ccedil:"Ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",Eacute:"É",ecirc:"ê",Ecirc:"Ê",egrave:"è",Egrave:"È",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",iacute:"í",Iacute:"Í",icirc:"î",Icirc:"Î",iexcl:"¡",igrave:"ì",Igrave:"Ì",iquest:"¿",iuml:"ï",Iuml:"Ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",Ntilde:"Ñ",oacute:"ó",Oacute:"Ó",ocirc:"ô",Ocirc:"Ô",ograve:"ò",Ograve:"Ò",ordf:"ª",ordm:"º",oslash:"ø",Oslash:"Ø",otilde:"õ",Otilde:"Õ",ouml:"ö",Ouml:"Ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",THORN:"Þ",times:"×",uacute:"ú",Uacute:"Ú",ucirc:"û",Ucirc:"Û",ugrave:"ù",Ugrave:"Ù",uml:"¨",uuml:"ü",Uuml:"Ü",yacute:"ý",Yacute:"Ý",yen:"¥",yuml:"ÿ"},d={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},m=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],b=String.fromCharCode,y={}.hasOwnProperty,_=function(e,t){return y.call(e,t)},w=function(e,t){if(!e)return t;var n,r={};for(n in t)r[n]=_(e,n)?e[n]:t[n];return r},E=function(e,t){var n="";return 55296<=e&&e<=57343||1114111<e?(t&&C("character reference outside the permissible Unicode range"),"�"):_(d,e)?(t&&C("disallowed character reference"),d[e]):(t&&function(e,t){for(var n=-1,r=e.length;++n<r;)if(e[n]==t)return!0;return!1}(m,e)&&C("disallowed character reference"),65535<e&&(n+=b((e-=65536)>>>10&1023|55296),e=56320|1023&e),n+=b(e))},A=function(e){return"&#x"+e.toString(16).toUpperCase()+";"},x=function(e){return"&#"+e+";"},C=function(e){throw Error("Parse error: "+e)},k=function(e,t){(t=w(t,k.options)).strict&&h.test(e)&&C("forbidden code point");var n=t.encodeEverything,r=t.useNamedReferences,i=t.allowUnsafeSymbols,o=t.decimal?x:A,a=function(e){return o(e.charCodeAt(0))};return n?(e=e.replace(u,function(e){return r&&_(f,e)?"&"+f[e]+";":a(e)}),r&&(e=e.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;").replace(/&#x66;&#x6A;/g,"&fjlig;")),r&&(e=e.replace(c,function(e){return"&"+f[e]+";"}))):r?(i||(e=e.replace(p,function(e){return"&"+f[e]+";"})),e=(e=e.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;")).replace(c,function(e){return"&"+f[e]+";"})):i||(e=e.replace(p,a)),e.replace(s,function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1);return o(1024*(t-55296)+n-56320+65536)}).replace(l,a)};k.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var O=function(e,d){var m=(d=w(d,O.options)).strict;return m&&o.test(e)&&C("malformed character reference"),e.replace(a,function(e,t,n,r,i,o,a,s){var u,l,c,f,p,h;return t?(c=t,l=n,m&&!l&&C("character reference was not terminated by a semicolon"),u=parseInt(c,10),E(u,m)):r?(f=r,l=i,m&&!l&&C("character reference was not terminated by a semicolon"),u=parseInt(f,16),E(u,m)):o?_(g,p=o)?g[p]:(m&&C("named character reference was not terminated by a semicolon"),e):(p=a,(h=s)&&d.isAttributeValue?(m&&"="==h&&C("`&` did not start a character reference"),e):(m&&C("named character reference was not terminated by a semicolon"),v[p]+(h||"")))})};O.options={isAttributeValue:!1,strict:!1};var S={version:"1.1.1",encode:k,decode:O,escape:function(e){return e.replace(p,function(e){return i[e]})},unescape:O};if("function"==typeof define&&"object"==typeof define.amd&&define.amd)define(function(){return S});else if(t&&!t.nodeType)if(n)n.exports=S;else for(var D in S)_(S,D)&&(t[D]=S[D]);else e.he=S}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],104:[function(e,t,n){var r=e("http"),i=e("url"),o=t.exports;for(var a in r)r.hasOwnProperty(a)&&(o[a]=r[a]);function s(e){if("string"==typeof e&&(e=i.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}o.request=function(e,t){return e=s(e),r.request.call(this,e,t)},o.get=function(e,t){return e=s(e),r.get.call(this,e,t)}},{http:156,url:162}],105:[function(e,t,n){n.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,l=u>>1,c=-7,f=n?i-1:0,p=n?-1:1,h=e[t+f];for(f+=p,o=h&(1<<-c)-1,h>>=-c,c+=s;0<c;o=256*o+e[t+f],f+=p,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;0<c;a=256*a+e[t+f],f+=p,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=l}return(h?-1:1)*a*Math.pow(2,o-r)},n.write=function(e,t,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<<l)-1,f=c>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,d=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),2<=(t+=1<=a+f?p/u:p*Math.pow(2,1-f))*u&&(a++,u/=2),c<=a+f?(s=0,a=c):1<=a+f?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));8<=i;e[n+h]=255&s,h+=d,s/=256,i-=8);for(a=a<<i|s,l+=i;0<l;e[n+h]=255&a,h+=d,a/=256,l-=8);e[n+h-d]|=128*m}},{}],106:[function(e,t,n){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],107:[function(e,t,n){function r(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}t.exports=function(e){return null!=e&&(r(e)||"function"==typeof(t=e).readFloatLE&&"function"==typeof t.slice&&r(t.slice(0,0))||!!e._isBuffer);var t}},{}],108:[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],109:[function(e,t,n){"use strict";var r=e("xml-char-classes");function i(e){return e.source.slice(1,-1)}t.exports=new RegExp("^["+i(r.letter)+"_]["+i(r.letter)+i(r.digit)+"\\.\\-_"+i(r.combiningChar)+i(r.extender)+"]*$")},{"xml-char-classes":165}],110:[function(e,t,n){n.endianness=function(){return"LE"},n.hostname=function(){return"undefined"!=typeof location?location.hostname:""},n.loadavg=function(){return[]},n.uptime=function(){return 0},n.freemem=function(){return Number.MAX_VALUE},n.totalmem=function(){return Number.MAX_VALUE},n.cpus=function(){return[]},n.type=function(){return"Browser"},n.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},n.networkInterfaces=n.getNetworkInterfaces=function(){return{}},n.arch=function(){return"javascript"},n.platform=function(){return"browser"},n.tmpdir=n.tmpDir=function(){return"/tmp"},n.EOL="\n",n.homedir=function(){return"/"}},{}],111:[function(e,t,l){(function(i){function o(e,t){for(var n=0,r=e.length-1;0<=r;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,a=function(e){return t.exec(e).slice(1)};function s(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}l.resolve=function(){for(var e="",t=!1,n=arguments.length-1;-1<=n&&!t;n--){var r=0<=n?arguments[n]:i.cwd();if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");r&&(e=r+"/"+e,t="/"===r.charAt(0))}return(t?"/":"")+(e=o(s(e.split("/"),function(e){return!!e}),!t).join("/"))||"."},l.normalize=function(e){var t=l.isAbsolute(e),n="/"===r(e,-1);return(e=o(s(e.split("/"),function(e){return!!e}),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e},l.isAbsolute=function(e){return"/"===e.charAt(0)},l.join=function(){var e=Array.prototype.slice.call(arguments,0);return l.normalize(s(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},l.relative=function(e,t){function n(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;0<=n&&""===e[n];n--);return n<t?[]:e.slice(t,n-t+1)}e=l.resolve(e).substr(1),t=l.resolve(t).substr(1);for(var r=n(e.split("/")),i=n(t.split("/")),o=Math.min(r.length,i.length),a=o,s=0;s<o;s++)if(r[s]!==i[s]){a=s;break}var u=[];for(s=a;s<r.length;s++)u.push("..");return(u=u.concat(i.slice(a))).join("/")},l.sep="/",l.delimiter=":",l.dirname=function(e){var t=a(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},l.basename=function(e,t){var n=a(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},l.extname=function(e){return a(e)[3]};var r="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,e("_process"))},{_process:113}],112:[function(e,t,n){(function(s){"use strict";!s.version||0===s.version.indexOf("v0.")||0===s.version.indexOf("v1.")&&0!==s.version.indexOf("v1.8.")?t.exports={nextTick:function(e,t,n,r){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,o,a=arguments.length;switch(a){case 0:case 1:return s.nextTick(e);case 2:return s.nextTick(function(){e.call(null,t)});case 3:return s.nextTick(function(){e.call(null,t,n)});case 4:return s.nextTick(function(){e.call(null,t,n,r)});default:for(i=new Array(a-1),o=0;o<i.length;)i[o++]=arguments[o];return s.nextTick(function(){e.apply(null,i)})}}}:t.exports=s}).call(this,e("_process"))},{_process:113}],113:[function(e,t,n){var r,i,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(t){if(r===setTimeout)return setTimeout(t,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(e){r=a}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var l,c=[],f=!1,p=-1;function h(){f&&l&&(f=!1,l.length?c=l.concat(c):p=-1,c.length&&d())}function d(){if(!f){var e=u(h);f=!0;for(var t=c.length;t;){for(l=c,c=[];++p<t;)l&&l[p].run();p=-1,t=c.length}l=null,f=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new m(e,t)),1!==c.length||f||u(d)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],114:[function(e,R,F){(function(T){!function(e){var t="object"==typeof F&&F&&!F.nodeType&&F,n="object"==typeof R&&R&&!R.nodeType&&R,r="object"==typeof T&&T;r.global!==r&&r.window!==r&&r.self!==r||(e=r);var i,o,v=2147483647,b=36,y=1,_=26,a=38,s=700,w=72,E=128,A="-",u=/^xn--/,l=/[^\x20-\x7E]/,c=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=b-y,x=Math.floor,C=String.fromCharCode;function k(e){throw new RangeError(f[e])}function h(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function d(e,t){var n=e.split("@"),r="";return 1<n.length&&(r=n[0]+"@",e=n[1]),r+h((e=e.replace(c,".")).split("."),t).join(".")}function O(e){for(var t,n,r=[],i=0,o=e.length;i<o;)55296<=(t=e.charCodeAt(i++))&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function S(e){return h(e,function(e){var t="";return 65535<e&&(t+=C((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=C(e)}).join("")}function D(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function B(e,t,n){var r=0;for(e=n?x(e/s):e>>1,e+=x(e/t);p*_>>1<e;r+=b)e=x(e/p);return x(r+(p+1)*e/(e+a))}function m(e){var t,n,r,i,o,a,s,u,l,c,f,p=[],h=e.length,d=0,m=E,g=w;for((n=e.lastIndexOf(A))<0&&(n=0),r=0;r<n;++r)128<=e.charCodeAt(r)&&k("not-basic"),p.push(e.charCodeAt(r));for(i=0<n?n+1:0;i<h;){for(o=d,a=1,s=b;h<=i&&k("invalid-input"),f=e.charCodeAt(i++),(b<=(u=f-48<10?f-22:f-65<26?f-65:f-97<26?f-97:b)||u>x((v-d)/a))&&k("overflow"),d+=u*a,!(u<(l=s<=g?y:g+_<=s?_:s-g));s+=b)a>x(v/(c=b-l))&&k("overflow"),a*=c;g=B(d-o,t=p.length+1,0==o),x(d/t)>v-m&&k("overflow"),m+=x(d/t),d%=t,p.splice(d++,0,m)}return S(p)}function g(e){var t,n,r,i,o,a,s,u,l,c,f,p,h,d,m,g=[];for(p=(e=O(e)).length,t=E,o=w,a=n=0;a<p;++a)(f=e[a])<128&&g.push(C(f));for(r=i=g.length,i&&g.push(A);r<p;){for(s=v,a=0;a<p;++a)t<=(f=e[a])&&f<s&&(s=f);for(s-t>x((v-n)/(h=r+1))&&k("overflow"),n+=(s-t)*h,t=s,a=0;a<p;++a)if((f=e[a])<t&&++n>v&&k("overflow"),f==t){for(u=n,l=b;!(u<(c=l<=o?y:o+_<=l?_:l-o));l+=b)m=u-c,d=b-c,g.push(C(D(c+m%d,0))),u=x(m/d);g.push(C(D(u,0))),o=B(n,h,r==i),n=0,++r}++n,++t}return g.join("")}if(i={version:"1.4.1",ucs2:{decode:O,encode:S},decode:m,encode:g,toASCII:function(e){return d(e,function(e){return l.test(e)?"xn--"+g(e):e})},toUnicode:function(e){return d(e,function(e){return u.test(e)?m(e.slice(4).toLowerCase()):e})}},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return i});else if(t&&n)if(R.exports==t)n.exports=i;else for(o in i)i.hasOwnProperty(o)&&(t[o]=i[o]);else e.punycode=i}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],115:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){t=t||"&",n=n||"=";var i={};if("string"!=typeof e||0===e.length)return i;var o=/\+/g;e=e.split(t);var a=1e3;r&&"number"==typeof r.maxKeys&&(a=r.maxKeys);var s,u,l=e.length;0<a&&a<l&&(l=a);for(var c=0;c<l;++c){var f,p,h,d,m=e[c].replace(o,"%20"),g=m.indexOf(n);0<=g?(f=m.substr(0,g),p=m.substr(g+1)):(f=m,p=""),h=decodeURIComponent(f),d=decodeURIComponent(p),s=i,u=h,Object.prototype.hasOwnProperty.call(s,u)?v(i[h])?i[h].push(d):i[h]=[i[h],d]:i[h]=d}return i};var v=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],116:[function(e,t,n){"use strict";var o=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(n,r,i,e){return r=r||"&",i=i||"=",null===n&&(n=void 0),"object"==typeof n?s(u(n),function(e){var t=encodeURIComponent(o(e))+i;return a(n[e])?s(n[e],function(e){return t+encodeURIComponent(o(e))}).join(r):t+encodeURIComponent(o(n[e]))}).join(r):e?encodeURIComponent(o(e))+i+encodeURIComponent(o(n)):""};var a=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function s(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var u=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},{}],117:[function(e,t,n){"use strict";n.decode=n.parse=e("./decode"),n.encode=n.stringify=e("./encode")},{"./decode":115,"./encode":116}],118:[function(e,t,n){"use strict";var r=e("process-nextick-args"),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=f;var o=e("core-util-is");o.inherits=e("inherits");var a=e("./_stream_readable"),s=e("./_stream_writable");o.inherits(f,a);for(var u=i(s.prototype),l=0;l<u.length;l++){var c=u[l];f.prototype[c]||(f.prototype[c]=s.prototype[c])}function f(e){if(!(this instanceof f))return new f(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",p)}function p(){this.allowHalfOpen||this._writableState.ended||r.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),f.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},{"./_stream_readable":120,"./_stream_writable":122,"core-util-is":101,inherits:106,"process-nextick-args":112}],119:[function(e,t,n){"use strict";t.exports=o;var r=e("./_stream_transform"),i=e("core-util-is");function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=e("inherits"),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},{"./_stream_transform":121,"core-util-is":101,inherits:106}],120:[function(F,L,e){(function(g,e){"use strict";var v=F("process-nextick-args");L.exports=p;var a,b=F("isarray");p.ReadableState=o;F("events").EventEmitter;var y=function(e,t){return e.listeners(t).length},i=F("./internal/streams/stream"),l=F("safe-buffer").Buffer,c=e.Uint8Array||function(){};var t=F("core-util-is");t.inherits=F("inherits");var n=F("util"),_=void 0;_=n&&n.debuglog?n.debuglog("stream"):function(){};var s,u=F("./internal/streams/BufferList"),r=F("./internal/streams/destroy");t.inherits(p,i);var f=["error","close","destroy","pause","resume"];function o(e,t){e=e||{};var n=t instanceof(a=a||F("./_stream_duplex"));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,i=e.readableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n&&(i||0===i)?i:o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new u,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=F("string_decoder/").StringDecoder),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function p(e){if(a=a||F("./_stream_duplex"),!(this instanceof p))return new p(e);this._readableState=new o(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),i.call(this)}function h(e,t,n,r,i){var o,a,s,u=e._readableState;null===t?(u.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,E(e)}(e,u)):(i||(o=function(e,t){var n;r=t,l.isBuffer(r)||r instanceof c||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(u,t)),o?e.emit("error",o):u.objectMode||t&&0<t.length?("string"==typeof t||u.objectMode||Object.getPrototypeOf(t)===l.prototype||(a=t,t=l.from(a)),r?u.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):d(e,u,t,!0):u.ended?e.emit("error",new Error("stream.push() after EOF")):(u.reading=!1,u.decoder&&!n?(t=u.decoder.write(t),u.objectMode||0!==t.length?d(e,u,t,!1):x(e,u)):d(e,u,t,!1))):r||(u.reading=!1));return!(s=u).ended&&(s.needReadable||s.length<s.highWaterMark||0===s.length)}function d(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&E(e)),x(e,t)}Object.defineProperty(p.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),p.prototype.destroy=r.destroy,p.prototype._undestroy=r.undestroy,p.prototype._destroy=function(e,t){this.push(null),t(e)},p.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=l.from(e,t),t=""),n=!0),h(this,e,t,!1,n)},p.prototype.unshift=function(e){return h(this,e,null,!0,!1)},p.prototype.isPaused=function(){return!1===this._readableState.flowing},p.prototype.setEncoding=function(e){return s||(s=F("string_decoder/").StringDecoder),this._readableState.decoder=new s(e),this._readableState.encoding=e,this};var m=8388608;function w(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=(m<=(n=e)?n=m:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++),n)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0));var n}function E(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(_("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?v.nextTick(A,e):A(e))}function A(e){_("emit readable"),e.emit("readable"),S(e)}function x(e,t){t.readingMore||(t.readingMore=!0,v.nextTick(C,e,t))}function C(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(_("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function k(e){_("readable nexttick read 0"),e.read(0)}function O(e,t){t.reading||(_("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),S(e),t.flowing&&!t.reading&&e.read(0)}function S(e){var t=e._readableState;for(_("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;e-=i.length;for(;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n).data=o.slice(a);break}++r}return t.length-=r,i}(e,t):function(e,t){var n=l.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0===(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r).data=o.slice(a);break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function B(e){var t=e._readableState;if(0<t.length)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,v.nextTick(T,t,e))}function T(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function R(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}p.prototype.read=function(e){_("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return _("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?B(this):E(this),null;if(0===(e=w(e,t))&&t.ended)return 0===t.length&&B(this),null;var r,i=t.needReadable;return _("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&_("length less than watermark",i=!0),t.ended||t.reading?_("reading or ended",i=!1):i&&(_("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=w(n,t))),null===(r=0<e?D(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&B(this)),null!==r&&this.emit("data",r),r},p.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},p.prototype.pipe=function(n,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=n;break;case 1:i.pipes=[i.pipes,n];break;default:i.pipes.push(n)}i.pipesCount+=1,_("pipe count=%d opts=%j",i.pipesCount,e);var t=(!e||!1!==e.end)&&n!==g.stdout&&n!==g.stderr?a:m;function o(e,t){_("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,_("cleanup"),n.removeListener("close",h),n.removeListener("finish",d),n.removeListener("drain",u),n.removeListener("error",p),n.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",m),r.removeListener("data",f),l=!0,!i.awaitDrain||n._writableState&&!n._writableState.needDrain||u())}function a(){_("onend"),n.end()}i.endEmitted?v.nextTick(t):r.once("end",t),n.on("unpipe",o);var s,u=(s=r,function(){var e=s._readableState;_("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&y(s,"data")&&(e.flowing=!0,S(s))});n.on("drain",u);var l=!1;var c=!1;function f(e){_("ondata"),(c=!1)!==n.write(e)||c||((1===i.pipesCount&&i.pipes===n||1<i.pipesCount&&-1!==R(i.pipes,n))&&!l&&(_("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,c=!0),r.pause())}function p(e){_("onerror",e),m(),n.removeListener("error",p),0===y(n,"error")&&n.emit("error",e)}function h(){n.removeListener("finish",d),m()}function d(){_("onfinish"),n.removeListener("close",h),m()}function m(){_("unpipe"),r.unpipe(n)}return r.on("data",f),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?b(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(n,"error",p),n.once("close",h),n.once("finish",d),n.emit("pipe",r),i.flowing||(_("pipe resume"),r.resume()),n},p.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,n);return this}var a=R(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},p.prototype.addListener=p.prototype.on=function(e,t){var n=i.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&E(this):v.nextTick(k,this))}return n},p.prototype.resume=function(){var e,t,n=this._readableState;return n.flowing||(_("resume"),n.flowing=!0,e=this,(t=n).resumeScheduled||(t.resumeScheduled=!0,v.nextTick(O,e,t))),this},p.prototype.pause=function(){return _("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(_("pause"),this._readableState.flowing=!1,this.emit("pause")),this},p.prototype.wrap=function(t){var n=this,r=this._readableState,i=!1;for(var e in t.on("end",function(){if(_("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&n.push(e)}n.push(null)}),t.on("data",function(e){(_("wrapped data"),r.decoder&&(e=r.decoder.write(e)),r.objectMode&&null==e)||(r.objectMode||e&&e.length)&&(n.push(e)||(i=!0,t.pause()))}),t)void 0===this[e]&&"function"==typeof t[e]&&(this[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e));for(var o=0;o<f.length;o++)t.on(f[o],this.emit.bind(this,f[o]));return this._read=function(e){_("wrapped _read",e),i&&(i=!1,t.resume())},this},p._fromList=D}).call(this,F("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":118,"./internal/streams/BufferList":123,"./internal/streams/destroy":124,"./internal/streams/stream":125,_process:113,"core-util-is":101,events:102,inherits:106,isarray:108,"process-nextick-args":112,"safe-buffer":144,"string_decoder/":160,util:2}],121:[function(e,t,n){"use strict";t.exports=o;var r=e("./_stream_duplex"),i=e("core-util-is");function o(e){if(!(this instanceof o))return new o(e);r.call(this,e),this._transformState={afterTransform:function(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,(n.writecb=null)!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",a)}function a(){var n=this;"function"==typeof this._flush?this._flush(function(e,t){s(n,e,t)}):s(this,null,null)}function s(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=e("inherits"),i.inherits(o,r),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},o.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},o.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,function(e){t(e),n.emit("close")})}},{"./_stream_duplex":118,"core-util-is":101,inherits:106}],122:[function(E,A,e){(function(e,t){"use strict";var v=E("process-nextick-args");function f(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}A.exports=l;var s,p=!e.browser&&-1<["v0.10","v0.9."].indexOf(e.version.slice(0,5))?setImmediate:v.nextTick;l.WritableState=u;var n=E("core-util-is");n.inherits=E("inherits");var r={deprecate:E("util-deprecate")},i=E("./internal/streams/stream"),b=E("safe-buffer").Buffer,y=t.Uint8Array||function(){};var o,a=E("./internal/streams/destroy");function _(){}function u(e,t){s=s||E("./_stream_duplex"),e=e||{};var n=t instanceof s;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var r=e.highWaterMark,i=e.writableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n&&(i||0===i)?i:o,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var a=(this.destroyed=!1)===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(f=n,f.writing=!1,f.writecb=null,f.length-=f.writelen,f.writelen=0,t)a=e,s=n,u=r,l=t,c=i,--s.pendingcb,u?(v.nextTick(c,l),v.nextTick(g,a,s),a._writableState.errorEmitted=!0,a.emit("error",l)):(c(l),a._writableState.errorEmitted=!0,a.emit("error",l),g(a,s));else{var o=m(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||d(e,n),r?p(h,e,n,o,i):h(e,n,o,i)}var a,s,u,l,c;var f}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new f(this)}function l(e){if(s=s||E("./_stream_duplex"),!(o.call(l,this)||this instanceof s))return new l(e);this._writableState=new u(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),i.call(this)}function w(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function h(e,t,n,r){var i,o;n||(i=e,0===(o=t).length&&o.needDrain&&(o.needDrain=!1,i.emit("drain"))),t.pendingcb--,r(),g(e,t)}function d(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var a=0,s=!0;n;)(i[a]=n).isBuf||(s=!1),n=n.next,a+=1;i.allBuffers=s,w(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new f(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,c=n.callback;if(w(e,t,!1,t.objectMode?1:u.length,u,l,c),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function m(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function c(t,n){t._final(function(e){n.pendingcb--,e&&t.emit("error",e),n.prefinished=!0,t.emit("prefinish"),g(t,n)})}function g(e,t){var n,r,i=m(t);return i&&(n=e,(r=t).prefinished||r.finalCalled||("function"==typeof n._final?(r.pendingcb++,r.finalCalled=!0,v.nextTick(c,n,r)):(r.prefinished=!0,n.emit("prefinish"))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),i}n.inherits(l,i),u.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(u.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(l,Symbol.hasInstance,{value:function(e){return!!o.call(this,e)||this===l&&(e&&e._writableState instanceof u)}})):o=function(e){return e instanceof this},l.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},l.prototype.write=function(e,t,n){var r,i,o,a,s,u,l,c,f,p,h,d=this._writableState,m=!1,g=!d.objectMode&&(r=e,b.isBuffer(r)||r instanceof y);return g&&!b.isBuffer(e)&&(i=e,e=b.from(i)),"function"==typeof t&&(n=t,t=null),g?t="buffer":t||(t=d.defaultEncoding),"function"!=typeof n&&(n=_),d.ended?(f=this,p=n,h=new Error("write after end"),f.emit("error",h),v.nextTick(p,h)):(g||(o=this,a=d,u=n,l=!0,c=!1,null===(s=e)?c=new TypeError("May not write null values to stream"):"string"==typeof s||void 0===s||a.objectMode||(c=new TypeError("Invalid non-string/buffer chunk")),c&&(o.emit("error",c),v.nextTick(u,c),l=!1),l))&&(d.pendingcb++,m=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=b.from(t,n));return t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var u=t.length<t.highWaterMark;u||(t.needDrain=!0);if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else w(e,t,!1,s,r,i,o);return u}(this,d,g,e,t,n)),m},l.prototype.cork=function(){this._writableState.corked++},l.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||d(this,e))},l.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},l.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},l.prototype._writev=null,l.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,t=e=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,g(e,t),n&&(t.finished?v.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),l.prototype.destroy=a.destroy,l.prototype._undestroy=a.undestroy,l.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":118,"./internal/streams/destroy":124,"./internal/streams/stream":125,_process:113,"core-util-is":101,inherits:106,"process-nextick-args":112,"safe-buffer":144,"util-deprecate":164}],123:[function(e,t,n){"use strict";var s=e("safe-buffer").Buffer,r=e("util");t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};0<this.length?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return s.alloc(0);if(1===this.length)return this.head.data;for(var t,n,r,i=s.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,n=i,r=a,t.copy(n,r),a+=o.data.length,o=o.next;return i},e}(),r&&r.inspect&&r.inspect.custom&&(t.exports.prototype[r.inspect.custom]=function(){var e=r.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":144,util:2}],124:[function(e,t,n){"use strict";var o=e("process-nextick-args");function a(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return r||i?t?t(e):!e||this._writableState&&this._writableState.errorEmitted||o.nextTick(a,this,e):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(o.nextTick(a,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":112}],125:[function(e,t,n){t.exports=e("events").EventEmitter},{events:102}],126:[function(e,t,n){(((n=t.exports=e("./lib/_stream_readable.js")).Stream=n).Readable=n).Writable=e("./lib/_stream_writable.js"),n.Duplex=e("./lib/_stream_duplex.js"),n.Transform=e("./lib/_stream_transform.js"),n.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":118,"./lib/_stream_passthrough.js":119,"./lib/_stream_readable.js":120,"./lib/_stream_transform.js":121,"./lib/_stream_writable.js":122}],127:[function(e,t,n){"use strict";t.exports={ABSOLUTE:"absolute",PATH_RELATIVE:"pathRelative",ROOT_RELATIVE:"rootRelative",SHORTEST:"shortest"}},{}],128:[function(e,t,n){"use strict";var m=e("./constants");function g(e,t){var n=t.removeEmptyQueries&&e.extra.relation.minimumPort;return e.query.string[n?"stripped":"full"]}function v(e,t){return!e.extra.relation.minimumQuery||t.output===m.ABSOLUTE||t.output===m.ROOT_RELATIVE}function b(e,t){var n=t.removeDirectoryIndexes&&e.extra.resourceIsIndex,r=e.extra.relation.minimumResource&&t.output!==m.ABSOLUTE&&t.output!==m.ROOT_RELATIVE;return!!e.resource&&!r&&!n}t.exports=function(e,t){var n,r,i,o,a,s,u,l,c,f,p,h,d="";return d+=(r=t,i="",((n=e).extra.relation.maximumHost||r.output===m.ABSOLUTE)&&(n.extra.relation.minimumScheme&&r.schemeRelative&&r.output!==m.ABSOLUTE?i+="//":i+=n.scheme+"://"),i),d+=(a=t,!(o=e).auth||a.removeAuth||!o.extra.relation.maximumHost&&a.output!==m.ABSOLUTE?"":o.auth+"@"),d+=(u=t,(s=e).host.full&&(s.extra.relation.maximumAuth||u.output===m.ABSOLUTE)?s.host.full:""),d+=(l=e).port&&!l.extra.portIsDefault&&l.extra.relation.maximumHost?":"+l.port:"",d+=function(e,t){var n="",r=e.path.absolute.string,i=e.path.relative.string,o=b(e,t);if(e.extra.relation.maximumHost||t.output===m.ABSOLUTE||t.output===m.ROOT_RELATIVE)n=r;else if(i.length<=r.length&&t.output===m.SHORTEST||t.output===m.PATH_RELATIVE){if(""===(n=i)){var a=v(e,t)&&!!g(e,t);e.extra.relation.maximumPath&&!o?n="./":!e.extra.relation.overridesQuery||o||a||(n="./")}}else n=r;return"/"!==n||o||!t.removeRootTrailingSlash||e.extra.relation.minimumPort&&t.output!==m.ABSOLUTE||(n=""),n}(e,t),d+=b(c=e,t)?c.resource:"",d+=v(f=e,p=t)?g(f,p):"",d+=(h=e).hash?h.hash:""}},{"./constants":127}],129:[function(e,t,n){"use strict";var r=e("./constants"),i=e("./format"),o=e("./options"),a=e("./util/object"),s=e("./parse"),u=e("./relate");function l(e,t){this.options=o(t,{defaultPorts:{ftp:21,http:80,https:443},directoryIndexes:["index.html"],ignore_www:!1,output:l.SHORTEST,rejectedSchemes:["data","javascript","mailto"],removeAuth:!1,removeDirectoryIndexes:!0,removeEmptyQueries:!1,removeRootTrailingSlash:!0,schemeRelative:!0,site:void 0,slashesDenoteHost:!0}),this.from=s.from(e,this.options,null)}l.prototype.relate=function(e,t,n){if(a.isPlainObject(t)?(n=t,t=e,e=null):t||(t=e,e=null),n=o(n,this.options),e=e||n.site,!(e=s.from(e,n,this.from))||!e.href)throw new Error("from value not defined.");if(e.extra.hrefInfo.minimumPathOnly)throw new Error("from value supplied is not absolute: "+e.href);return!1===(t=s.to(t,n)).valid?t.href:(t=u(e,t,n),t=i(t,n))},l.relate=function(e,t,n){return(new l).relate(e,t,n)},a.shallowMerge(l,r),t.exports=l},{"./constants":127,"./format":128,"./options":130,"./parse":133,"./relate":140,"./util/object":142}],130:[function(e,t,n){"use strict";var a=e("./util/object");t.exports=function(e,t){if(a.isPlainObject(e)){var n={};for(var r in t)t.hasOwnProperty(r)&&(void 0!==e[r]?n[r]=(i=e[r],(o=t[r])instanceof Object&&i instanceof Object?o instanceof Array&&i instanceof Array?o.concat(i):a.shallowMerge(i,o):i):n[r]=t[r]);return n}var i,o;return t}},{"./util/object":142}],131:[function(e,t,n){"use strict";t.exports=function(e,t){if(t.ignore_www){var n=e.host.full;if(n){var r=n;0===n.indexOf("www.")&&(r=n.substr(4)),e.host.stripped=r}}}},{}],132:[function(e,t,n){"use strict";t.exports=function(e){var t=!(e.scheme||e.auth||e.host.full||e.port),n=t&&!e.path.absolute.string,r=n&&!e.resource,i=r&&!e.query.string.full.length,o=i&&!e.hash;e.extra.hrefInfo.minimumPathOnly=t,e.extra.hrefInfo.minimumResourceOnly=n,e.extra.hrefInfo.minimumQueryOnly=r,e.extra.hrefInfo.minimumHashOnly=i,e.extra.hrefInfo.empty=o}},{}],133:[function(e,t,n){"use strict";var r=e("./hrefInfo"),i=e("./host"),o=e("./path"),a=e("./port"),s=e("./query"),u=e("./urlstring"),l=e("../util/path");function c(e,t){var n=u(e,t);return!1===n.valid||(i(n,t),a(n,t),o(n,t),s(n,t),r(n)),n}t.exports={from:function(e,t,n){if(e){var r=c(e,t),i=l.resolveDotSegments(r.path.absolute.array);return r.path.absolute.array=i,r.path.absolute.string="/"+l.join(i),r}return n},to:c}},{"../util/path":143,"./host":131,"./hrefInfo":132,"./path":134,"./port":135,"./query":136,"./urlstring":137}],134:[function(e,t,n){"use strict";function s(e){if("/"!==e){var t=[];return e.split("/").forEach(function(e){""!==e&&t.push(e)}),t}return[]}t.exports=function(e,t){var n,r,i=e.path.absolute.string;if(i){var o=i.lastIndexOf("/");if(-1<o){if(++o<i.length){var a=i.substr(o);"."!==a&&".."!==a?(e.resource=a,i=i.substr(0,o)):i+="/"}e.path.absolute.string=i,e.path.absolute.array=s(i)}else"."===i||".."===i?(i+="/",e.path.absolute.string=i,e.path.absolute.array=s(i)):(e.resource=i,e.path.absolute.string=null);e.extra.resourceIsIndex=(n=e.resource,r=!1,t.directoryIndexes.every(function(e){return e!==n||(r=!0,!1)}),r)}}},{}],135:[function(e,t,n){"use strict";t.exports=function(e,t){var n=-1;for(var r in t.defaultPorts)if(r===e.scheme&&t.defaultPorts.hasOwnProperty(r)){n=t.defaultPorts[r];break}-1<n&&(n=n.toString(),null===e.port&&(e.port=n),e.extra.portIsDefault=e.port===n)}},{}],136:[function(e,t,n){"use strict";var a=Object.prototype.hasOwnProperty;function r(e,t){var n=0,r="";for(var i in e)if(""!==i&&!0===a.call(e,i)){var o=e[i];""===o&&t||(r+=1==++n?"?":"&",i=encodeURIComponent(i),r+=""!==o?i+"="+encodeURIComponent(o).replace(/%20/g,"+"):i)}return r}t.exports=function(e,t){e.query.string.full=r(e.query.object,!1),t.removeEmptyQueries&&(e.query.string.stripped=r(e.query.object,!0))}},{}],137:[function(e,t,n){"use strict";var a=e("url").parse;t.exports=function(e,t){return i=e,o=!0,t.rejectedSchemes.every(function(e){return o=!(0===i.indexOf(e+":"))}),o?(n=a(e,!0,t.slashesDenoteHost),(r=n.protocol)&&r.indexOf(":")===r.length-1&&(r=r.substr(0,r.length-1)),n.host={full:n.hostname,stripped:null},n.path={absolute:{array:null,string:n.pathname},relative:{array:null,string:null}},n.query={object:n.query,string:{full:null,stripped:null}},n.extra={hrefInfo:{minimumPathOnly:null,minimumResourceOnly:null,minimumQueryOnly:null,minimumHashOnly:null,empty:null,separatorOnlyQuery:"?"===n.search},portIsDefault:null,relation:{maximumScheme:null,maximumAuth:null,maximumHost:null,maximumPort:null,maximumPath:null,maximumResource:null,maximumQuery:null,maximumHash:null,minimumScheme:null,minimumAuth:null,minimumHost:null,minimumPort:null,minimumPath:null,minimumResource:null,minimumQuery:null,minimumHash:null,overridesQuery:null},resourceIsIndex:null,slashes:n.slashes},n.resource=null,n.scheme=r,delete n.hostname,delete n.pathname,delete n.protocol,delete n.search,delete n.slashes,n):{href:e,valid:!1};var n,r,i,o}},{url:162}],138:[function(e,t,n){"use strict";var s=e("./findRelation"),u=e("../util/object"),l=e("../util/path");t.exports=function(e,t,n){var r,i,o,a;s.upToPath(e,t,n),e.extra.relation.minimumScheme&&(e.scheme=t.scheme),e.extra.relation.minimumAuth&&(e.auth=t.auth),e.extra.relation.minimumHost&&(e.host=u.clone(t.host)),e.extra.relation.minimumPort&&(i=t,(r=e).port=i.port,r.extra.portIsDefault=i.extra.portIsDefault),e.extra.relation.minimumScheme&&function(e,t){if(e.extra.relation.maximumHost||!e.extra.hrefInfo.minimumResourceOnly){var n=e.path.absolute.array,r="/";n?(e.extra.hrefInfo.minimumPathOnly&&0!==e.path.absolute.string.indexOf("/")&&(n=t.path.absolute.array.concat(n)),n=l.resolveDotSegments(n),r+=l.join(n)):n=[],e.path.absolute.array=n,e.path.absolute.string=r}else e.path=u.clone(t.path)}(e,t),s.pathOn(e,t,n),e.extra.relation.minimumResource&&(a=t,(o=e).resource=a.resource,o.extra.resourceIsIndex=a.extra.resourceIsIndex),e.extra.relation.minimumQuery&&(e.query=u.clone(t.query)),e.extra.relation.minimumHash&&(e.hash=t.hash)}},{"../util/object":142,"../util/path":143,"./findRelation":139}],139:[function(e,t,n){"use strict";t.exports={pathOn:function(e,t,n){var r=e.extra.hrefInfo.minimumQueryOnly,i=e.extra.hrefInfo.minimumHashOnly,o=e.extra.hrefInfo.empty,a=e.extra.relation.minimumPort,s=e.extra.relation.minimumScheme,u=a&&e.path.absolute.string===t.path.absolute.string,l=e.resource===t.resource||!e.resource&&t.extra.resourceIsIndex||n.removeDirectoryIndexes&&e.extra.resourceIsIndex&&!t.resource,c=u&&(l||r||i||o),f=n.removeEmptyQueries?"stripped":"full",p=e.query.string[f],h=t.query.string[f],d=c&&!!p&&p===h||(i||o)&&!e.extra.hrefInfo.separatorOnlyQuery,m=d&&e.hash===t.hash;e.extra.relation.minimumPath=u,e.extra.relation.minimumResource=c,e.extra.relation.minimumQuery=d,e.extra.relation.minimumHash=m,e.extra.relation.maximumPort=!s||s&&!u,e.extra.relation.maximumPath=!s||s&&!c,e.extra.relation.maximumResource=!s||s&&!d,e.extra.relation.maximumQuery=!s||s&&!m,e.extra.relation.maximumHash=!s||s&&!m,e.extra.relation.overridesQuery=u&&e.extra.relation.maximumResource&&!d&&!!h},upToPath:function(e,t,n){var r=e.extra.hrefInfo.minimumPathOnly,i=e.scheme===t.scheme||!e.scheme,o=i&&(e.auth===t.auth||n.removeAuth||r),a=n.ignore_www?"stripped":"full",s=o&&(e.host[a]===t.host[a]||r),u=s&&(e.port===t.port||r);e.extra.relation.minimumScheme=i,e.extra.relation.minimumAuth=o,e.extra.relation.minimumHost=s,e.extra.relation.minimumPort=u,e.extra.relation.maximumScheme=!i||i&&!o,e.extra.relation.maximumAuth=!i||i&&!s,e.extra.relation.maximumHost=!i||i&&!u}}},{}],140:[function(e,t,n){"use strict";var r=e("./absolutize"),i=e("./relativize");t.exports=function(e,t,n){return r(t,e,n),i(t,e,n),t}},{"./absolutize":138,"./relativize":141}],141:[function(e,t,n){"use strict";var l=e("../util/path");t.exports=function(e,t,n){if(e.extra.relation.minimumScheme){var r=(i=e.path.absolute.array,o=t.path.absolute.array,a=[],s=!0,u=-1,o.forEach(function(e,t){s&&(i[t]!==e?s=!1:u=t),s||a.push("..")}),i.forEach(function(e,t){u<t&&a.push(e)}),a);e.path.relative.array=r,e.path.relative.string=l.join(r)}var i,o,a,s,u}},{"../util/path":143}],142:[function(e,t,n){"use strict";t.exports={clone:function e(t){if(t instanceof Object){var n=t instanceof Array?[]:{};for(var r in t)t.hasOwnProperty(r)&&(n[r]=e(t[r]));return n}return t},isPlainObject:function(e){return!!e&&"object"==typeof e&&e.constructor===Object},shallowMerge:function(e,t){if(e instanceof Object&&t instanceof Object)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}}},{}],143:[function(e,t,n){"use strict";t.exports={join:function(e){return 0<e.length?e.join("/")+"/":""},resolveDotSegments:function(e){var t=[];return e.forEach(function(e){".."!==e?"."!==e&&t.push(e):0<t.length&&t.splice(t.length-1,1)}),t}}},{}],144:[function(e,t,n){var r=e("buffer"),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,n),n.Buffer=a),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},{buffer:4}],145:[function(e,t,n){var o=e("./util"),a=Object.prototype.hasOwnProperty,s="undefined"!=typeof Map;function u(){this._array=[],this._set=s?new Map:Object.create(null)}u.fromArray=function(e,t){for(var n=new u,r=0,i=e.length;r<i;r++)n.add(e[r],t);return n},u.prototype.size=function(){return s?this._set.size:Object.getOwnPropertyNames(this._set).length},u.prototype.add=function(e,t){var n=s?e:o.toSetString(e),r=s?this.has(e):a.call(this._set,n),i=this._array.length;r&&!t||this._array.push(e),r||(s?this._set.set(e,i):this._set[n]=i)},u.prototype.has=function(e){if(s)return this._set.has(e);var t=o.toSetString(e);return a.call(this._set,t)},u.prototype.indexOf=function(e){if(s){var t=this._set.get(e);if(0<=t)return t}else{var n=o.toSetString(e);if(a.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},u.prototype.at=function(e){if(0<=e&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},u.prototype.toArray=function(){return this._array.slice()},n.ArraySet=u},{"./util":154}],146:[function(e,t,n){var c=e("./base64");n.encode=function(e){for(var t,n,r="",i=(n=e)<0?1+(-n<<1):0+(n<<1);t=31&i,0<(i>>>=5)&&(t|=32),r+=c.encode(t),0<i;);return r},n.decode=function(e,t,n){var r,i,o,a,s=e.length,u=0,l=0;do{if(s<=t)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=c.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));r=!!(32&i),u+=(i&=31)<<l,l+=5}while(r);n.value=(a=(o=u)>>1,1==(1&o)?-a:a),n.rest=t}},{"./base64":147}],147:[function(e,t,n){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");n.encode=function(e){if(0<=e&&e<r.length)return r[e];throw new TypeError("Must be between 0 and 63: "+e)},n.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},{}],148:[function(e,t,l){l.GREATEST_LOWER_BOUND=1,l.LEAST_UPPER_BOUND=2,l.search=function(e,t,n,r){if(0===t.length)return-1;var i=function e(t,n,r,i,o,a){var s=Math.floor((n-t)/2)+t,u=o(r,i[s],!0);return 0===u?s:0<u?1<n-s?e(s,n,r,i,o,a):a==l.LEAST_UPPER_BOUND?n<i.length?n:-1:s:1<s-t?e(t,s,r,i,o,a):a==l.LEAST_UPPER_BOUND?s:t<0?-1:t}(-1,t.length,e,t,n,r||l.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;0<=i-1&&0===n(t[i],t[i-1],!0);)--i;return i}},{}],149:[function(e,t,n){var s=e("./util");function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}r.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},r.prototype.add=function(e){var t,n,r,i,o,a;t=this._last,n=e,r=t.generatedLine,i=n.generatedLine,o=t.generatedColumn,a=n.generatedColumn,r<i||i==r&&o<=a||s.compareByGeneratedPositionsInflated(t,n)<=0?this._last=e:this._sorted=!1,this._array.push(e)},r.prototype.toArray=function(){return this._sorted||(this._array.sort(s.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},n.MappingList=r},{"./util":154}],150:[function(e,t,n){function c(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function f(e,t,n,r){if(n<r){var i=n-1;c(e,(u=n,l=r,Math.round(u+Math.random()*(l-u))),r);for(var o=e[r],a=n;a<r;a++)t(e[a],o)<=0&&c(e,i+=1,a);c(e,i+1,a);var s=i+1;f(e,t,n,s-1),f(e,t,s+1,r)}var u,l}n.quickSort=function(e,t){f(e,t,0,e.length-1)}},{}],151:[function(e,t,n){var y=e("./util"),u=e("./binary-search"),f=e("./array-set").ArraySet,_=e("./base64-vlq"),w=e("./quick-sort").quickSort;function a(e){var t=e;return"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,""))),null!=t.sections?new r(t):new p(t)}function p(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var n=y.getArg(t,"version"),r=y.getArg(t,"sources"),i=y.getArg(t,"names",[]),o=y.getArg(t,"sourceRoot",null),a=y.getArg(t,"sourcesContent",null),s=y.getArg(t,"mappings"),u=y.getArg(t,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);r=r.map(String).map(y.normalize).map(function(e){return o&&y.isAbsolute(o)&&y.isAbsolute(e)?y.relative(o,e):e}),this._names=f.fromArray(i.map(String),!0),this._sources=f.fromArray(r,!0),this.sourceRoot=o,this.sourcesContent=a,this._mappings=s,this.file=u}function E(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function r(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var n=y.getArg(t,"version"),r=y.getArg(t,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new f,this._names=new f;var i={line:-1,column:0};this._sections=r.map(function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var t=y.getArg(e,"offset"),n=y.getArg(t,"line"),r=y.getArg(t,"column");if(n<i.line||n===i.line&&r<i.column)throw new Error("Section offsets must be ordered and non-overlapping.");return i=t,{generatedOffset:{generatedLine:n+1,generatedColumn:r+1},consumer:new a(y.getArg(e,"map"))}})}a.fromSourceMap=function(e){return p.fromSourceMap(e)},a.prototype._version=3,a.prototype.__generatedMappings=null,Object.defineProperty(a.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),a.prototype.__originalMappings=null,Object.defineProperty(a.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),a.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return";"===n||","===n},a.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},a.GENERATED_ORDER=1,a.ORIGINAL_ORDER=2,a.GREATEST_LOWER_BOUND=1,a.LEAST_UPPER_BOUND=2,a.prototype.eachMapping=function(e,t,n){var r,i=t||null;switch(n||a.GENERATED_ORDER){case a.GENERATED_ORDER:r=this._generatedMappings;break;case a.ORIGINAL_ORDER:r=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var o=this.sourceRoot;r.map(function(e){var t=null===e.source?null:this._sources.at(e.source);return null!=t&&null!=o&&(t=y.join(o,t)),{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}},this).forEach(e,i)},a.prototype.allGeneratedPositionsFor=function(e){var t=y.getArg(e,"line"),n={source:y.getArg(e,"source"),originalLine:t,originalColumn:y.getArg(e,"column",0)};if(null!=this.sourceRoot&&(n.source=y.relative(this.sourceRoot,n.source)),!this._sources.has(n.source))return[];n.source=this._sources.indexOf(n.source);var r=[],i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",y.compareByOriginalPositions,u.LEAST_UPPER_BOUND);if(0<=i){var o=this._originalMappings[i];if(void 0===e.column)for(var a=o.originalLine;o&&o.originalLine===a;)r.push({line:y.getArg(o,"generatedLine",null),column:y.getArg(o,"generatedColumn",null),lastColumn:y.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++i];else for(var s=o.originalColumn;o&&o.originalLine===t&&o.originalColumn==s;)r.push({line:y.getArg(o,"generatedLine",null),column:y.getArg(o,"generatedColumn",null),lastColumn:y.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++i]}return r},n.SourceMapConsumer=a,(p.prototype=Object.create(a.prototype)).consumer=a,p.fromSourceMap=function(e){var t=Object.create(p.prototype),n=t._names=f.fromArray(e._names.toArray(),!0),r=t._sources=f.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var i=e._mappings.toArray().slice(),o=t.__generatedMappings=[],a=t.__originalMappings=[],s=0,u=i.length;s<u;s++){var l=i[s],c=new E;c.generatedLine=l.generatedLine,c.generatedColumn=l.generatedColumn,l.source&&(c.source=r.indexOf(l.source),c.originalLine=l.originalLine,c.originalColumn=l.originalColumn,l.name&&(c.name=n.indexOf(l.name)),a.push(c)),o.push(c)}return w(t.__originalMappings,y.compareByOriginalPositions),t},p.prototype._version=3,Object.defineProperty(p.prototype,"sources",{get:function(){return this._sources.toArray().map(function(e){return null!=this.sourceRoot?y.join(this.sourceRoot,e):e},this)}}),p.prototype._parseMappings=function(e,t){for(var n,r,i,o,a,s=1,u=0,l=0,c=0,f=0,p=0,h=e.length,d=0,m={},g={},v=[],b=[];d<h;)if(";"===e.charAt(d))s++,d++,u=0;else if(","===e.charAt(d))d++;else{for((n=new E).generatedLine=s,o=d;o<h&&!this._charIsMappingSeparator(e,o);o++);if(i=m[r=e.slice(d,o)])d+=r.length;else{for(i=[];d<o;)_.decode(e,d,g),a=g.value,d=g.rest,i.push(a);if(2===i.length)throw new Error("Found a source, but no line and column");if(3===i.length)throw new Error("Found a source and line, but no column");m[r]=i}n.generatedColumn=u+i[0],u=n.generatedColumn,1<i.length&&(n.source=f+i[1],f+=i[1],n.originalLine=l+i[2],l=n.originalLine,n.originalLine+=1,n.originalColumn=c+i[3],c=n.originalColumn,4<i.length&&(n.name=p+i[4],p+=i[4])),b.push(n),"number"==typeof n.originalLine&&v.push(n)}w(b,y.compareByGeneratedPositionsDeflated),this.__generatedMappings=b,w(v,y.compareByOriginalPositions),this.__originalMappings=v},p.prototype._findMapping=function(e,t,n,r,i,o){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return u.search(e,t,i,o)},p.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},p.prototype.originalPositionFor=function(e){var t={generatedLine:y.getArg(e,"line"),generatedColumn:y.getArg(e,"column")},n=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",y.compareByGeneratedPositionsDeflated,y.getArg(e,"bias",a.GREATEST_LOWER_BOUND));if(0<=n){var r=this._generatedMappings[n];if(r.generatedLine===t.generatedLine){var i=y.getArg(r,"source",null);null!==i&&(i=this._sources.at(i),null!=this.sourceRoot&&(i=y.join(this.sourceRoot,i)));var o=y.getArg(r,"name",null);return null!==o&&(o=this._names.at(o)),{source:i,line:y.getArg(r,"originalLine",null),column:y.getArg(r,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}},p.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e}))},p.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=y.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var n;if(null!=this.sourceRoot&&(n=y.urlParse(this.sourceRoot))){var r=e.replace(/^file:\/\//,"");if("file"==n.scheme&&this._sources.has(r))return this.sourcesContent[this._sources.indexOf(r)];if((!n.path||"/"==n.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},p.prototype.generatedPositionFor=function(e){var t=y.getArg(e,"source");if(null!=this.sourceRoot&&(t=y.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};var n={source:t=this._sources.indexOf(t),originalLine:y.getArg(e,"line"),originalColumn:y.getArg(e,"column")},r=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",y.compareByOriginalPositions,y.getArg(e,"bias",a.GREATEST_LOWER_BOUND));if(0<=r){var i=this._originalMappings[r];if(i.source===n.source)return{line:y.getArg(i,"generatedLine",null),column:y.getArg(i,"generatedColumn",null),lastColumn:y.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},n.BasicSourceMapConsumer=p,(r.prototype=Object.create(a.prototype)).constructor=a,r.prototype._version=3,Object.defineProperty(r.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),r.prototype.originalPositionFor=function(e){var t={generatedLine:y.getArg(e,"line"),generatedColumn:y.getArg(e,"column")},n=u.search(t,this._sections,function(e,t){var n=e.generatedLine-t.generatedOffset.generatedLine;return n||e.generatedColumn-t.generatedOffset.generatedColumn}),r=this._sections[n];return r?r.consumer.originalPositionFor({line:t.generatedLine-(r.generatedOffset.generatedLine-1),column:t.generatedColumn-(r.generatedOffset.generatedLine===t.generatedLine?r.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},r.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},r.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},r.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t];if(-1!==n.consumer.sources.indexOf(y.getArg(e,"source"))){var r=n.consumer.generatedPositionFor(e);if(r)return{line:r.line+(n.generatedOffset.generatedLine-1),column:r.column+(n.generatedOffset.generatedLine===r.line?n.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},r.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var r=this._sections[n],i=r.consumer._generatedMappings,o=0;o<i.length;o++){var a=i[o],s=r.consumer._sources.at(a.source);null!==r.consumer.sourceRoot&&(s=y.join(r.consumer.sourceRoot,s)),this._sources.add(s),s=this._sources.indexOf(s);var u=r.consumer._names.at(a.name);this._names.add(u),u=this._names.indexOf(u);var l={source:s,generatedLine:a.generatedLine+(r.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(r.generatedOffset.generatedLine===a.generatedLine?r.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:u};this.__generatedMappings.push(l),"number"==typeof l.originalLine&&this.__originalMappings.push(l)}w(this.__generatedMappings,y.compareByGeneratedPositionsDeflated),w(this.__originalMappings,y.compareByOriginalPositions)},n.IndexedSourceMapConsumer=r},{"./array-set":145,"./base64-vlq":146,"./binary-search":148,"./quick-sort":150,"./util":154}],152:[function(e,t,n){var d=e("./base64-vlq"),m=e("./util"),r=e("./array-set").ArraySet,i=e("./mapping-list").MappingList;function o(e){e||(e={}),this._file=m.getArg(e,"file",null),this._sourceRoot=m.getArg(e,"sourceRoot",null),this._skipValidation=m.getArg(e,"skipValidation",!1),this._sources=new r,this._names=new r,this._mappings=new i,this._sourcesContents=null}o.prototype._version=3,o.fromSourceMap=function(n){var r=n.sourceRoot,i=new o({file:n.file,sourceRoot:r});return n.eachMapping(function(e){var t={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(t.source=e.source,null!=r&&(t.source=m.relative(r,t.source)),t.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(t.name=e.name)),i.addMapping(t)}),n.sources.forEach(function(e){var t=n.sourceContentFor(e);null!=t&&i.setSourceContent(e,t)}),i},o.prototype.addMapping=function(e){var t=m.getArg(e,"generated"),n=m.getArg(e,"original",null),r=m.getArg(e,"source",null),i=m.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,r,i),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:i})},o.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=m.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[m.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[m.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},o.prototype.applySourceMap=function(i,e,o){var a=e;if(null==e){if(null==i.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');a=i.file}var s=this._sourceRoot;null!=s&&(a=m.relative(s,a));var u=new r,l=new r;this._mappings.unsortedForEach(function(e){if(e.source===a&&null!=e.originalLine){var t=i.originalPositionFor({line:e.originalLine,column:e.originalColumn});null!=t.source&&(e.source=t.source,null!=o&&(e.source=m.join(o,e.source)),null!=s&&(e.source=m.relative(s,e.source)),e.originalLine=t.line,e.originalColumn=t.column,null!=t.name&&(e.name=t.name))}var n=e.source;null==n||u.has(n)||u.add(n);var r=e.name;null==r||l.has(r)||l.add(r)},this),this._sources=u,this._names=l,i.sources.forEach(function(e){var t=i.sourceContentFor(e);null!=t&&(null!=o&&(e=m.join(o,e)),null!=s&&(e=m.relative(s,e)),this.setSourceContent(e,t))},this)},o.prototype._validateMapping=function(e,t,n,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&0<e.line&&0<=e.column)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&0<e.line&&0<=e.column&&0<t.line&&0<=t.column&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},o.prototype._serializeMappings=function(){for(var e,t,n,r,i=0,o=1,a=0,s=0,u=0,l=0,c="",f=this._mappings.toArray(),p=0,h=f.length;p<h;p++){if(e="",(t=f[p]).generatedLine!==o)for(i=0;t.generatedLine!==o;)e+=";",o++;else if(0<p){if(!m.compareByGeneratedPositionsInflated(t,f[p-1]))continue;e+=","}e+=d.encode(t.generatedColumn-i),i=t.generatedColumn,null!=t.source&&(r=this._sources.indexOf(t.source),e+=d.encode(r-l),l=r,e+=d.encode(t.originalLine-1-s),s=t.originalLine-1,e+=d.encode(t.originalColumn-a),a=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=d.encode(n-u),u=n)),c+=e}return c},o.prototype._generateSourcesContent=function(e,n){return e.map(function(e){if(!this._sourcesContents)return null;null!=n&&(e=m.relative(n,e));var t=m.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,t)?this._sourcesContents[t]:null},this)},o.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},o.prototype.toString=function(){return JSON.stringify(this.toJSON())},n.SourceMapGenerator=o},{"./array-set":145,"./base64-vlq":146,"./mapping-list":149,"./util":154}],153:[function(e,t,n){var r=e("./source-map-generator").SourceMapGenerator,p=e("./util"),h=/(\r?\n)/,o="$$$isSourceNode$$$";function d(e,t,n,r,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==n?null:n,this.name=null==i?null:i,this[o]=!0,null!=r&&this.add(r)}d.fromStringWithSourceMap=function(e,n,r){var i=new d,o=e.split(h),a=0,s=function(){return e()+(e()||"");function e(){return a<o.length?o[a++]:void 0}},u=1,l=0,c=null;return n.eachMapping(function(e){if(null!==c){if(!(u<e.generatedLine)){var t=(n=o[a]).substr(0,e.generatedColumn-l);return o[a]=n.substr(e.generatedColumn-l),l=e.generatedColumn,f(c,t),void(c=e)}f(c,s()),u++,l=0}for(;u<e.generatedLine;)i.add(s()),u++;if(l<e.generatedColumn){var n=o[a];i.add(n.substr(0,e.generatedColumn)),o[a]=n.substr(e.generatedColumn),l=e.generatedColumn}c=e},this),a<o.length&&(c&&f(c,s()),i.add(o.splice(a).join(""))),n.sources.forEach(function(e){var t=n.sourceContentFor(e);null!=t&&(null!=r&&(e=p.join(r,e)),i.setSourceContent(e,t))}),i;function f(e,t){if(null===e||void 0===e.source)i.add(t);else{var n=r?p.join(r,e.source):e.source;i.add(new d(e.originalLine,e.originalColumn,n,t,e.name))}}},d.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else{if(!e[o]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},d.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;0<=t;t--)this.prepend(e[t]);else{if(!e[o]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},d.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n<r;n++)(t=this.children[n])[o]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},d.prototype.join=function(e){var t,n,r=this.children.length;if(0<r){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},d.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[o]?n.replaceRight(e,t):"string"==typeof n?this.children[this.children.length-1]=n.replace(e,t):this.children.push("".replace(e,t)),this},d.prototype.setSourceContent=function(e,t){this.sourceContents[p.toSetString(e)]=t},d.prototype.walkSourceContents=function(e){for(var t=0,n=this.children.length;t<n;t++)this.children[t][o]&&this.children[t].walkSourceContents(e);var r=Object.keys(this.sourceContents);for(t=0,n=r.length;t<n;t++)e(p.fromSetString(r[t]),this.sourceContents[r[t]])},d.prototype.toString=function(){var t="";return this.walk(function(e){t+=e}),t},d.prototype.toStringWithSourceMap=function(e){var i={code:"",line:1,column:0},o=new r(e),a=!1,s=null,u=null,l=null,c=null;return this.walk(function(e,t){i.code+=e,null!==t.source&&null!==t.line&&null!==t.column?(s===t.source&&u===t.line&&l===t.column&&c===t.name||o.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:i.line,column:i.column},name:t.name}),s=t.source,u=t.line,l=t.column,c=t.name,a=!0):a&&(o.addMapping({generated:{line:i.line,column:i.column}}),s=null,a=!1);for(var n=0,r=e.length;n<r;n++)10===e.charCodeAt(n)?(i.line++,i.column=0,n+1===r?(s=null,a=!1):a&&o.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:i.line,column:i.column},name:t.name})):i.column++}),this.walkSourceContents(function(e,t){o.setSourceContent(e,t)}),{code:i.code,map:o}},n.SourceNode=d},{"./source-map-generator":152,"./util":154}],154:[function(e,t,u){u.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,o=/^data:.+\,.+$/;function l(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function c(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function a(e){var t=e,n=l(e);if(n){if(!n.path)return e;t=n.path}for(var r,i=u.isAbsolute(t),o=t.split(/\/+/),a=0,s=o.length-1;0<=s;s--)"."===(r=o[s])?o.splice(s,1):".."===r?a++:0<a&&(""===r?(o.splice(s+1,a),a=0):(o.splice(s,2),a--));return""===(t=o.join("/"))&&(t=i?"/":"."),n?(n.path=t,c(n)):t}u.urlParse=l,u.urlGenerate=c,u.normalize=a,u.join=function(e,t){""===e&&(e="."),""===t&&(t=".");var n=l(t),r=l(e);if(r&&(e=r.path||"/"),n&&!n.scheme)return r&&(n.scheme=r.scheme),c(n);if(n||t.match(o))return t;if(r&&!r.host&&!r.path)return r.host=t,c(r);var i="/"===t.charAt(0)?t:a(e.replace(/\/+$/,"")+"/"+t);return r?(r.path=i,c(r)):i},u.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(n)},u.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var r=!("__proto__"in Object.create(null));function i(e){return e}function s(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;0<=n;n--)if(36!==e.charCodeAt(n))return!1;return!0}function f(e,t){return e===t?0:t<e?1:-1}u.toSetString=r?i:function(e){return s(e)?"$"+e:e},u.fromSetString=r?i:function(e){return s(e)?e.slice(1):e},u.compareByOriginalPositions=function(e,t,n){var r=e.source-t.source;return 0!==r?r:0!=(r=e.originalLine-t.originalLine)?r:0!=(r=e.originalColumn-t.originalColumn)||n?r:0!=(r=e.generatedColumn-t.generatedColumn)?r:0!=(r=e.generatedLine-t.generatedLine)?r:e.name-t.name},u.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r?r:0!=(r=e.generatedColumn-t.generatedColumn)||n?r:0!=(r=e.source-t.source)?r:0!=(r=e.originalLine-t.originalLine)?r:0!=(r=e.originalColumn-t.originalColumn)?r:e.name-t.name},u.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!=(n=e.generatedColumn-t.generatedColumn)?n:0!==(n=f(e.source,t.source))?n:0!=(n=e.originalLine-t.originalLine)?n:0!=(n=e.originalColumn-t.originalColumn)?n:f(e.name,t.name)}},{}],155:[function(e,t,n){n.SourceMapGenerator=e("./lib/source-map-generator").SourceMapGenerator,n.SourceMapConsumer=e("./lib/source-map-consumer").SourceMapConsumer,n.SourceNode=e("./lib/source-node").SourceNode},{"./lib/source-map-consumer":151,"./lib/source-map-generator":152,"./lib/source-node":153}],156:[function(n,e,i){(function(u){var l=n("./lib/request"),e=n("./lib/response"),c=n("xtend"),t=n("builtin-status-codes"),f=n("url"),r=i;r.request=function(e,t){e="string"==typeof e?f.parse(e):c(e);var n=-1===u.location.protocol.search(/^https?:$/)?"http:":"",r=e.protocol||n,i=e.hostname||e.host,o=e.port,a=e.path||"/";i&&-1!==i.indexOf(":")&&(i="["+i+"]"),e.url=(i?r+"//"+i:"")+(o?":"+o:"")+a,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var s=new l(e);return t&&s.on("response",t),s},r.get=function(e,t){var n=r.request(e,t);return n.end(),n},r.ClientRequest=l,r.IncomingMessage=e,r.Agent=function(){},r.Agent.defaultMaxSockets=4,r.STATUS_CODES=t,r.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/request":158,"./lib/response":159,"builtin-status-codes":5,url:162,xtend:166}],157:[function(e,t,s){(function(e){s.fetch=a(e.fetch)&&a(e.ReadableStream),s.writableStream=a(e.WritableStream),s.abortController=a(e.AbortController),s.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),s.blobConstructor=!0}catch(e){}var t;function n(){if(void 0!==t)return t;if(e.XMLHttpRequest){t=new e.XMLHttpRequest;try{t.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(e){t=null}}else t=null;return t}function r(e){var t=n();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}var i=void 0!==e.ArrayBuffer,o=i&&a(e.ArrayBuffer.prototype.slice);function a(e){return"function"==typeof e}s.arraybuffer=s.fetch||i&&r("arraybuffer"),s.msstream=!s.fetch&&o&&r("ms-stream"),s.mozchunkedarraybuffer=!s.fetch&&i&&r("moz-chunked-arraybuffer"),s.overrideMimeType=s.fetch||!!n()&&a(n().overrideMimeType),s.vbArray=a(e.VBArray),t=null}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],158:[function(o,s,e){(function(u,l,c){var f=o("./capability"),e=o("inherits"),t=o("./response"),a=o("readable-stream"),p=o("to-arraybuffer"),n=t.IncomingMessage,h=t.readyStates;var r=s.exports=function(t){var e,n=this;a.Writable.call(n),n._opts=t,n._body=[],n._headers={},t.auth&&n.setHeader("Authorization","Basic "+new c(t.auth).toString("base64")),Object.keys(t.headers).forEach(function(e){n.setHeader(e,t.headers[e])});var r,i,o=!0;if("disable-fetch"===t.mode||"requestTimeout"in t&&!f.abortController)o=!1,e=!0;else if("prefer-streaming"===t.mode)e=!1;else if("allow-wrong-content-type"===t.mode)e=!f.overrideMimeType;else{if(t.mode&&"default"!==t.mode&&"prefer-fast"!==t.mode)throw new Error("Invalid value for opts.mode");e=!0}n._mode=(r=e,i=o,f.fetch&&i?"fetch":f.mozchunkedarraybuffer?"moz-chunked-arraybuffer":f.msstream?"ms-stream":f.arraybuffer&&r?"arraybuffer":f.vbArray&&r?"text:vbarray":"text"),n.on("finish",function(){n._onFinish()})};e(r,a.Writable),r.prototype.setHeader=function(e,t){var n=e.toLowerCase();-1===i.indexOf(n)&&(this._headers[n]={name:e,value:t})},r.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},r.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},r.prototype._onFinish=function(){var t=this;if(!t._destroyed){var e=t._opts,r=t._headers,n=null;"GET"!==e.method&&"HEAD"!==e.method&&(n=f.arraybuffer?p(c.concat(t._body)):f.blobConstructor?new l.Blob(t._body.map(function(e){return p(e)}),{type:(r["content-type"]||{}).value||""}):c.concat(t._body).toString());var i=[];if(Object.keys(r).forEach(function(e){var t=r[e].name,n=r[e].value;Array.isArray(n)?n.forEach(function(e){i.push([t,e])}):i.push([t,n])}),"fetch"===t._mode){var o=null;if(f.abortController){var a=new AbortController;o=a.signal,t._fetchAbortController=a,"requestTimeout"in e&&0!==e.requestTimeout&&l.setTimeout(function(){t.emit("requestTimeout"),t._fetchAbortController&&t._fetchAbortController.abort()},e.requestTimeout)}l.fetch(t._opts.url,{method:t._opts.method,headers:i,body:n||void 0,mode:"cors",credentials:e.withCredentials?"include":"same-origin",signal:o}).then(function(e){t._fetchResponse=e,t._connect()},function(e){t.emit("error",e)})}else{var s=t._xhr=new l.XMLHttpRequest;try{s.open(t._opts.method,t._opts.url,!0)}catch(e){return void u.nextTick(function(){t.emit("error",e)})}"responseType"in s&&(s.responseType=t._mode.split(":")[0]),"withCredentials"in s&&(s.withCredentials=!!e.withCredentials),"text"===t._mode&&"overrideMimeType"in s&&s.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in e&&(s.timeout=e.requestTimeout,s.ontimeout=function(){t.emit("requestTimeout")}),i.forEach(function(e){s.setRequestHeader(e[0],e[1])}),t._response=null,s.onreadystatechange=function(){switch(s.readyState){case h.LOADING:case h.DONE:t._onXHRProgress()}},"moz-chunked-arraybuffer"===t._mode&&(s.onprogress=function(){t._onXHRProgress()}),s.onerror=function(){t._destroyed||t.emit("error",new Error("XHR error"))};try{s.send(n)}catch(e){return void u.nextTick(function(){t.emit("error",e)})}}}},r.prototype._onXHRProgress=function(){(function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},r.prototype._connect=function(){var t=this;t._destroyed||(t._response=new n(t._xhr,t._fetchResponse,t._mode),t._response.on("error",function(e){t.emit("error",e)}),t.emit("response",t._response))},r.prototype._write=function(e,t,n){this._body.push(e),n()},r.prototype.abort=r.prototype.destroy=function(){this._destroyed=!0,this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},r.prototype.end=function(e,t,n){"function"==typeof e&&(n=e,e=void 0),a.Writable.prototype.end.call(this,e,t,n)},r.prototype.flushHeaders=function(){},r.prototype.setTimeout=function(){},r.prototype.setNoDelay=function(){},r.prototype.setSocketKeepAlive=function(){};var i=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,o("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},o("buffer").Buffer)},{"./capability":157,"./response":159,_process:113,buffer:4,inherits:106,"readable-stream":126,"to-arraybuffer":161}],159:[function(n,e,r){(function(u,s,l){var c=n("./capability"),e=n("inherits"),f=n("readable-stream"),p=r.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},t=r.IncomingMessage=function(e,t,n){var r=this;if(f.Readable.call(r),r._mode=n,r.headers={},r.rawHeaders=[],r.trailers={},r.rawTrailers=[],r.on("end",function(){u.nextTick(function(){r.emit("close")})}),"fetch"===n){if(r._fetchResponse=t,r.url=t.url,r.statusCode=t.status,r.statusMessage=t.statusText,t.headers.forEach(function(e,t){r.headers[t.toLowerCase()]=e,r.rawHeaders.push(t,e)}),c.writableStream){var i=new WritableStream({write:function(n){return new Promise(function(e,t){r._destroyed||(r.push(new l(n))?e():r._resumeFetch=e)})},close:function(){r._destroyed||r.push(null)},abort:function(e){r._destroyed||r.emit("error",e)}});try{return void t.body.pipeTo(i)}catch(e){}}var o=t.body.getReader();!function t(){o.read().then(function(e){r._destroyed||(e.done?r.push(null):(r.push(new l(e.value)),t()))}).catch(function(e){r._destroyed||r.emit("error",e)})}()}else{if(r._xhr=e,r._pos=0,r.url=e.responseURL,r.statusCode=e.status,r.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach(function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var n=t[1].toLowerCase();"set-cookie"===n?(void 0===r.headers[n]&&(r.headers[n]=[]),r.headers[n].push(t[2])):void 0!==r.headers[n]?r.headers[n]+=", "+t[2]:r.headers[n]=t[2],r.rawHeaders.push(t[1],t[2])}}),r._charset="x-user-defined",!c.overrideMimeType){var a=r.rawHeaders["mime-type"];if(a){var s=a.match(/;\s*charset=([^;])(;|$)/);s&&(r._charset=s[1].toLowerCase())}r._charset||(r._charset="utf-8")}}};e(t,f.Readable),t.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},t.prototype._onXHRProgress=function(){var t=this,e=t._xhr,n=null;switch(t._mode){case"text:vbarray":if(e.readyState!==p.DONE)break;try{n=new s.VBArray(e.responseBody).toArray()}catch(e){}if(null!==n){t.push(new l(n));break}case"text":try{n=e.responseText}catch(e){t._mode="text:vbarray";break}if(n.length>t._pos){var r=n.substr(t._pos);if("x-user-defined"===t._charset){for(var i=new l(r.length),o=0;o<r.length;o++)i[o]=255&r.charCodeAt(o);t.push(i)}else t.push(r,t._charset);t._pos=n.length}break;case"arraybuffer":if(e.readyState!==p.DONE||!e.response)break;n=e.response,t.push(new l(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=e.response,e.readyState!==p.LOADING||!n)break;t.push(new l(new Uint8Array(n)));break;case"ms-stream":if(n=e.response,e.readyState!==p.LOADING)break;var a=new s.MSStreamReader;a.onprogress=function(){a.result.byteLength>t._pos&&(t.push(new l(new Uint8Array(a.result.slice(t._pos)))),t._pos=a.result.byteLength)},a.onload=function(){t.push(null)},a.readAsArrayBuffer(n)}t._xhr.readyState===p.DONE&&"ms-stream"!==t._mode&&t.push(null)}}).call(this,n("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n("buffer").Buffer)},{"./capability":157,_process:113,buffer:4,inherits:106,"readable-stream":126}],160:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=l,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=f,t=3;break;default:return this.write=p,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:-1}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�".repeat(n);if(1<e.lastNeed&&1<t.length){if(128!=(192&t[1]))return e.lastNeed=1,"�".repeat(n+1);if(2<e.lastNeed&&2<t.length&&128!=(192&t[2]))return e.lastNeed=2,"�".repeat(n+2)}}(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(55296<=r&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}(n.StringDecoder=o).prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�".repeat(this.lastTotal-this.lastNeed):t},o.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=a(t[r]);if(0<=i)return 0<i&&(e.lastNeed=i-1),i;if(--r<n)return 0;if(0<=(i=a(t[r])))return 0<i&&(e.lastNeed=i-2),i;if(--r<n)return 0;if(0<=(i=a(t[r])))return 0<i&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":144}],161:[function(e,t,n){var i=e("buffer").Buffer;t.exports=function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(i.isBuffer(e)){for(var t=new Uint8Array(e.length),n=e.length,r=0;r<n;r++)t[r]=e[r];return t.buffer}throw new Error("Argument must be a Buffer")}},{buffer:4}],162:[function(e,t,n){"use strict";var F=e("punycode"),L=e("./util");function O(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}n.parse=o,n.resolve=function(e,t){return o(e,!1,!0).resolve(t)},n.resolveObject=function(e,t){return e?o(e,!1,!0).resolveObject(t):t},n.format=function(e){L.isString(e)&&(e=o(e));return e instanceof O?e.format():O.prototype.format.call(e)},n.Url=O;var M=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,U=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,i=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),N=["'"].concat(i),P=["%","/","?",";","#"].concat(N),q=["/","?","#"],z=/^[+a-z0-9A-Z_-]{0,63}$/,I=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,j={javascript:!0,"javascript:":!0},V={javascript:!0,"javascript:":!0},$={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},H=e("querystring");function o(e,t,n){if(e&&L.isObject(e)&&e instanceof O)return e;var r=new O;return r.parse(e,t,n),r}O.prototype.parse=function(e,t,n){if(!L.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),i=-1!==r&&r<e.indexOf("#")?"?":"#",o=e.split(i);o[0]=o[0].replace(/\\/g,"/");var a=e=o.join(i);if(a=a.trim(),!n&&1===e.split("#").length){var s=U.exec(a);if(s)return this.path=a,this.href=a,this.pathname=s[1],s[2]?(this.search=s[2],this.query=t?H.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var u=M.exec(a);if(u){var l=(u=u[0]).toLowerCase();this.protocol=l,a=a.substr(u.length)}if(n||u||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var c="//"===a.substr(0,2);!c||u&&V[u]||(a=a.substr(2),this.slashes=!0)}if(!V[u]&&(c||u&&!$[u])){for(var f,p,h=-1,d=0;d<q.length;d++){-1!==(m=a.indexOf(q[d]))&&(-1===h||m<h)&&(h=m)}-1!==(p=-1===h?a.lastIndexOf("@"):a.lastIndexOf("@",h))&&(f=a.slice(0,p),a=a.slice(p+1),this.auth=decodeURIComponent(f)),h=-1;for(d=0;d<P.length;d++){var m;-1!==(m=a.indexOf(P[d]))&&(-1===h||m<h)&&(h=m)}-1===h&&(h=a.length),this.host=a.slice(0,h),a=a.slice(h),this.parseHost(),this.hostname=this.hostname||"";var g="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!g)for(var v=this.hostname.split(/\./),b=(d=0,v.length);d<b;d++){var y=v[d];if(y&&!y.match(z)){for(var _="",w=0,E=y.length;w<E;w++)127<y.charCodeAt(w)?_+="x":_+=y[w];if(!_.match(z)){var A=v.slice(0,d),x=v.slice(d+1),C=y.match(I);C&&(A.push(C[1]),x.unshift(C[2])),x.length&&(a="/"+x.join(".")+a),this.hostname=A.join(".");break}}}255<this.hostname.length?this.hostname="":this.hostname=this.hostname.toLowerCase(),g||(this.hostname=F.toASCII(this.hostname));var k=this.port?":"+this.port:"",O=this.hostname||"";this.host=O+k,this.href+=this.host,g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!j[l])for(d=0,b=N.length;d<b;d++){var S=N[d];if(-1!==a.indexOf(S)){var D=encodeURIComponent(S);D===S&&(D=escape(S)),a=a.split(S).join(D)}}var B=a.indexOf("#");-1!==B&&(this.hash=a.substr(B),a=a.slice(0,B));var T=a.indexOf("?");if(-1!==T?(this.search=a.substr(T),this.query=a.substr(T+1),t&&(this.query=H.parse(this.query)),a=a.slice(0,T)):t&&(this.search="",this.query={}),a&&(this.pathname=a),$[l]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){k=this.pathname||"";var R=this.search||"";this.path=k+R}return this.href=this.format(),this},O.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&L.isObject(this.query)&&Object.keys(this.query).length&&(o=H.stringify(this.query));var a=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||$[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),a&&"?"!==a.charAt(0)&&(a="?"+a),t+i+(n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(a=a.replace("#","%23"))+r},O.prototype.resolve=function(e){return this.resolveObject(o(e,!1,!0)).format()},O.prototype.resolveObject=function(e){if(L.isString(e)){var t=new O;t.parse(e,!1,!0),e=t}for(var n=new O,r=Object.keys(this),i=0;i<r.length;i++){var o=r[i];n[o]=this[o]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),s=0;s<a.length;s++){var u=a[s];"protocol"!==u&&(n[u]=e[u])}return $[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!$[e.protocol]){for(var l=Object.keys(e),c=0;c<l.length;c++){var f=l[c];n[f]=e[f]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||V[e.protocol])n.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),n.pathname=p.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var h=n.pathname||"",d=n.search||"";n.path=h+d}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var m=n.pathname&&"/"===n.pathname.charAt(0),g=e.host||e.pathname&&"/"===e.pathname.charAt(0),v=g||m||n.host&&e.pathname,b=v,y=n.pathname&&n.pathname.split("/")||[],_=(p=e.pathname&&e.pathname.split("/")||[],n.protocol&&!$[n.protocol]);if(_&&(n.hostname="",n.port=null,n.host&&(""===y[0]?y[0]=n.host:y.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),v=v&&(""===p[0]||""===y[0])),g)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,y=p;else if(p.length)y||(y=[]),y.pop(),y=y.concat(p),n.search=e.search,n.query=e.query;else if(!L.isNullOrUndefined(e.search)){if(_)n.hostname=n.host=y.shift(),(C=!!(n.host&&0<n.host.indexOf("@"))&&n.host.split("@"))&&(n.auth=C.shift(),n.host=n.hostname=C.shift());return n.search=e.search,n.query=e.query,L.isNull(n.pathname)&&L.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!y.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var w=y.slice(-1)[0],E=(n.host||e.host||1<y.length)&&("."===w||".."===w)||""===w,A=0,x=y.length;0<=x;x--)"."===(w=y[x])?y.splice(x,1):".."===w?(y.splice(x,1),A++):A&&(y.splice(x,1),A--);if(!v&&!b)for(;A--;A)y.unshift("..");!v||""===y[0]||y[0]&&"/"===y[0].charAt(0)||y.unshift(""),E&&"/"!==y.join("/").substr(-1)&&y.push("");var C,k=""===y[0]||y[0]&&"/"===y[0].charAt(0);_&&(n.hostname=n.host=k?"":y.length?y.shift():"",(C=!!(n.host&&0<n.host.indexOf("@"))&&n.host.split("@"))&&(n.auth=C.shift(),n.host=n.hostname=C.shift()));return(v=v||n.host&&y.length)&&!k&&y.unshift(""),y.length?n.pathname=y.join("/"):(n.pathname=null,n.path=null),L.isNull(n.pathname)&&L.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},O.prototype.parseHost=function(){var e=this.host,t=r.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{"./util":163,punycode:114,querystring:117}],163:[function(e,t,n){"use strict";t.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},{}],164:[function(e,t,n){(function(n){function r(e){try{if(!n.localStorage)return!1}catch(e){return!1}var t=n.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}t.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],165:[function(e,t,n){n.baseChar=/[A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u0131\u0134-\u013E\u0141-\u0148\u014A-\u017E\u0180-\u01C3\u01CD-\u01F0\u01F4\u01F5\u01FA-\u0217\u0250-\u02A8\u02BB-\u02C1\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03CE\u03D0-\u03D6\u03DA\u03DC\u03DE\u03E0\u03E2-\u03F3\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E-\u0481\u0490-\u04C4\u04C7\u04C8\u04CB\u04CC\u04D0-\u04EB\u04EE-\u04F5\u04F8\u04F9\u0531-\u0556\u0559\u0561-\u0586\u05D0-\u05EA\u05F0-\u05F2\u0621-\u063A\u0641-\u064A\u0671-\u06B7\u06BA-\u06BE\u06C0-\u06CE\u06D0-\u06D3\u06D5\u06E5\u06E6\u0905-\u0939\u093D\u0958-\u0961\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\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-\u0A8B\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AE0\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B36-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB5\u0BB7-\u0BB9\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CDE\u0CE0\u0CE1\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D28\u0D2A-\u0D39\u0D60\u0D61\u0E01-\u0E2E\u0E30\u0E32\u0E33\u0E40-\u0E45\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD\u0EAE\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0F40-\u0F47\u0F49-\u0F69\u10A0-\u10C5\u10D0-\u10F6\u1100\u1102\u1103\u1105-\u1107\u1109\u110B\u110C\u110E-\u1112\u113C\u113E\u1140\u114C\u114E\u1150\u1154\u1155\u1159\u115F-\u1161\u1163\u1165\u1167\u1169\u116D\u116E\u1172\u1173\u1175\u119E\u11A8\u11AB\u11AE\u11AF\u11B7\u11B8\u11BA\u11BC-\u11C2\u11EB\u11F0\u11F9\u1E00-\u1E9B\u1EA0-\u1EF9\u1F00-\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\u2126\u212A\u212B\u212E\u2180-\u2182\u3041-\u3094\u30A1-\u30FA\u3105-\u312C\uAC00-\uD7A3]/,n.ideographic=/[\u3007\u3021-\u3029\u4E00-\u9FA5]/,n.letter=/[A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u0131\u0134-\u013E\u0141-\u0148\u014A-\u017E\u0180-\u01C3\u01CD-\u01F0\u01F4\u01F5\u01FA-\u0217\u0250-\u02A8\u02BB-\u02C1\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03CE\u03D0-\u03D6\u03DA\u03DC\u03DE\u03E0\u03E2-\u03F3\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E-\u0481\u0490-\u04C4\u04C7\u04C8\u04CB\u04CC\u04D0-\u04EB\u04EE-\u04F5\u04F8\u04F9\u0531-\u0556\u0559\u0561-\u0586\u05D0-\u05EA\u05F0-\u05F2\u0621-\u063A\u0641-\u064A\u0671-\u06B7\u06BA-\u06BE\u06C0-\u06CE\u06D0-\u06D3\u06D5\u06E5\u06E6\u0905-\u0939\u093D\u0958-\u0961\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\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-\u0A8B\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AE0\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B36-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB5\u0BB7-\u0BB9\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CDE\u0CE0\u0CE1\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D28\u0D2A-\u0D39\u0D60\u0D61\u0E01-\u0E2E\u0E30\u0E32\u0E33\u0E40-\u0E45\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD\u0EAE\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0F40-\u0F47\u0F49-\u0F69\u10A0-\u10C5\u10D0-\u10F6\u1100\u1102\u1103\u1105-\u1107\u1109\u110B\u110C\u110E-\u1112\u113C\u113E\u1140\u114C\u114E\u1150\u1154\u1155\u1159\u115F-\u1161\u1163\u1165\u1167\u1169\u116D\u116E\u1172\u1173\u1175\u119E\u11A8\u11AB\u11AE\u11AF\u11B7\u11B8\u11BA\u11BC-\u11C2\u11EB\u11F0\u11F9\u1E00-\u1E9B\u1EA0-\u1EF9\u1F00-\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\u2126\u212A\u212B\u212E\u2180-\u2182\u3007\u3021-\u3029\u3041-\u3094\u30A1-\u30FA\u3105-\u312C\u4E00-\u9FA5\uAC00-\uD7A3]/,n.combiningChar=/[\u0300-\u0345\u0360\u0361\u0483-\u0486\u0591-\u05A1\u05A3-\u05B9\u05BB-\u05BD\u05BF\u05C1\u05C2\u05C4\u064B-\u0652\u0670\u06D6-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0901-\u0903\u093C\u093E-\u094D\u0951-\u0954\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A02\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A70\u0A71\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0B01-\u0B03\u0B3C\u0B3E-\u0B43\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B82\u0B83\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C01-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C82\u0C83\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0D02\u0D03\u0D3E-\u0D43\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86-\u0F8B\u0F90-\u0F95\u0F97\u0F99-\u0FAD\u0FB1-\u0FB7\u0FB9\u20D0-\u20DC\u20E1\u302A-\u302F\u3099\u309A]/,n.digit=/[0-9\u0660-\u0669\u06F0-\u06F9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE7-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29]/,n.extender=/[\xB7\u02D0\u02D1\u0387\u0640\u0E46\u0EC6\u3005\u3031-\u3035\u309D\u309E\u30FC-\u30FE]/},{}],166:[function(e,t,n){t.exports=function(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)i.call(n,r)&&(e[r]=n[r])}return e};var i=Object.prototype.hasOwnProperty},{}],167:[function(e,t,n){"use strict";var r=e("./utils").createMapFromString;function i(e){return r(e,!0)}var o,a=/([^\s"'<>/=]+)/,s=[/=/],u=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^ \t\n\f\r"'`=<>]+)/.source],l="((?:"+(o=e("ncname").source.slice(1,-1))+"\\:)?"+o+")",w=new RegExp("^<"+l),E=/^\s*(\/?)>/,A=new RegExp("^<\\/"+l+"[^>]*>"),x=/^<!DOCTYPE [^>]+>/i,C=!1;"x".replace(/x(.)?/g,function(e,t){C=""===t});var k=i("area,base,basefont,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),O=i("a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,noscript,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,svg,textarea,tt,u,var"),S=i("colgroup,dd,dt,li,option,p,td,tfoot,th,thead,tr,source"),D=i("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),B=i("script,style"),T=i("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,ol,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track,ul"),R={};function F(e){var t,n=a.source+"(?:\\s*("+(t=e,s.concat(t.customAttrAssign||[]).map(function(e){return"(?:"+e.source+")"}).join("|"))+")[ \\t\\n\\f\\r]*(?:"+u.join("|")+"))?";if(e.customAttrSurround){for(var r=[],i=e.customAttrSurround.length-1;0<=i;i--)r[i]="(?:("+e.customAttrSurround[i][0].source+")\\s*"+n+"\\s*("+e.customAttrSurround[i][1].source+"))";r.push("(?:"+n+")"),n="(?:"+r.join("|")+")"}return new RegExp("^\\s*"+n)}function c(e,f){for(var o,t,n,r,a=[],s=F(f);e;){if(t=e,o&&B(o)){var i=o.toLowerCase(),u=R[i]||(R[i]=new RegExp("([\\s\\S]*?)</"+i+"[^>]*>","i"));e=e.replace(u,function(e,t){return"script"!==i&&"style"!==i&&"noscript"!==i&&(t=t.replace(/<!--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),f.chars&&f.chars(t),""}),_("</"+i+">",i)}else{var l,c=e.indexOf("<");if(0===c){if(/^<!--/.test(e)){var p=e.indexOf("--\x3e");if(0<=p){f.comment&&f.comment(e.substring(4,p)),e=e.substring(p+3),n="";continue}}if(/^<!\[/.test(e)){var h=e.indexOf("]>");if(0<=h){f.comment&&f.comment(e.substring(2,h+1),!0),e=e.substring(h+2),n="";continue}}var d=e.match(x);if(d){f.doctype&&f.doctype(d[0]),e=e.substring(d[0].length),n="";continue}var m=e.match(A);if(m){e=e.substring(m[0].length),m[0].replace(A,_),n="/"+m[1].toLowerCase();continue}var g=b(e);if(g){e=g.rest,y(g),n=g.tagName.toLowerCase();continue}}0<=c?(l=e.substring(0,c),e=e.substring(c)):(l=e,e="");var v=b(e);r=v?v.tagName:(v=e.match(A))?"/"+v[1]:"",f.chars&&f.chars(l,n,r),n=""}if(e===t)throw new Error("Parse Error: "+e)}function b(e){var t=e.match(w);if(t){var n,r,i={tagName:t[1],attrs:[]};for(e=e.slice(t[0].length);!(n=e.match(E))&&(r=e.match(s));)e=e.slice(r[0].length),i.attrs.push(r);if(n)return i.unarySlash=n[1],i.rest=e.slice(n[0].length),i}}function y(e){var t=e.tagName,n=e.unarySlash;if(f.html5&&"p"===o&&T(t)&&_("",o),!f.html5&&!O(t))for(;o&&O(o);)_("",o);S(t)&&o===t&&_("",t);var r=k(t)||"html"===t&&"head"===o||!!n,i=e.attrs.map(function(t){var n,r,e,i,o,a;function s(e){return o=t[e],void 0!==(r=t[e+1])?'"':void 0!==(r=t[e+2])?"'":(void 0===(r=t[e+3])&&D(n)&&(r=n),"")}C&&-1===t[0].indexOf('""')&&(""===t[3]&&delete t[3],""===t[4]&&delete t[4],""===t[5]&&delete t[5]);var u=1;if(f.customAttrSurround)for(var l=0,c=f.customAttrSurround.length;l<c;l++,u+=7)if(n=t[u+1]){a=s(u+2),e=t[u],i=t[u+6];break}return!n&&(n=t[u])&&(a=s(u+1)),{name:n,value:r,customAssign:o||"=",customOpen:e||"",customClose:i||"",quote:a||""}});r||(a.push({tag:t,attrs:i}),o=t,n=""),f.start&&f.start(t,i,r,n)}function _(e,t){var n;if(t){var r=t.toLowerCase();for(n=a.length-1;0<=n&&a[n].tag.toLowerCase()!==r;n--);}else n=0;if(0<=n){for(var i=a.length-1;n<=i;i--)f.end&&f.end(a[i].tag,a[i].attrs,n<i||!e);a.length=n,o=n&&a[n-1].tag}else"br"===t.toLowerCase()?f.start&&f.start(t,[],!0,""):"p"===t.toLowerCase()&&(f.start&&f.start(t,[],!1,"",!0),f.end&&f.end(t,[]))}f.partialMarkup||_()}n.HTMLParser=c,n.HTMLtoXML=function(e){var o="";return new c(e,{start:function(e,t,n){o+="<"+e;for(var r=0,i=t.length;r<i;r++)o+=" "+t[r].name+'="'+(t[r].value||"").replace(/"/g,"&#34;")+'"';o+=(n?"/":"")+">"},end:function(e){o+="</"+e+">"},chars:function(e){o+=e},comment:function(e){o+="\x3c!--"+e+"--\x3e"},ignore:function(e){o+=e}}),o},n.HTMLtoDOM=function(e,o){var a={html:!0,head:!0,body:!0,title:!0},s={link:"head",base:"head"};o?o=o.ownerDocument||o.getOwnerDocument&&o.getOwnerDocument()||o:"undefined"!=typeof DOMDocument?o=new DOMDocument:"undefined"!=typeof document&&document.implementation&&document.implementation.createDocument?o=document.implementation.createDocument("","",null):"undefined"!=typeof ActiveX&&(o=new ActiveXObject("Msxml.DOMDocument"));var t,n,u=[];if(!(o.documentElement||o.getDocumentElement&&o.getDocumentElement())&&o.createElement&&(t=o.createElement("html"),(n=o.createElement("head")).appendChild(o.createElement("title")),t.appendChild(n),t.appendChild(o.createElement("body")),o.appendChild(t)),o.getElementsByTagName)for(var r in a)a[r]=o.getElementsByTagName(r)[0];var l=a.body;return new c(e,{start:function(e,t,n){if(a[e])l=a[e];else{var r=o.createElement(e);for(var i in t)r.setAttribute(t[i].name,t[i].value);s[e]&&"boolean"!=typeof a[s[e]]?a[s[e]].appendChild(r):l&&l.appendChild&&l.appendChild(r),n||(u.push(r),l=r)}},end:function(){u.length-=1,l=u[u.length-1]},chars:function(e){l.appendChild(o.createTextNode(e))},comment:function(){},ignore:function(){}}),o}},{"./utils":169,ncname:109}],168:[function(e,t,n){"use strict";function r(){}function o(){}r.prototype.sort=function(e,t){t=t||0;for(var n=0,r=this.keys.length;n<r;n++){var i=this.keys[n],o=i.slice(1),a=e.indexOf(o,t);if(-1!==a){for(;a!==t&&(e.splice(a,1),e.splice(t,0,o)),t++,-1!==(a=e.indexOf(o,t)););return this[i].sort(e,t)}}return e},o.prototype={add:function(n){var r=this;n.forEach(function(e){var t="$"+e;r[t]||(r[t]=[],r[t].processed=0),r[t].push(n)})},createSorter:function(){var i=this,t=new r;return t.keys=Object.keys(i).sort(function(e,t){var n=i[e].length,r=i[t].length;return n<r?1:r<n?-1:e<t?-1:t<e?1:0}).filter(function(e){if(i[e].processed<i[e].length){var n=e.slice(1),r=new o;return i[e].forEach(function(e){for(var t;-1!==(t=e.indexOf(n));)e.splice(t,1);e.forEach(function(e){i["$"+e].processed++}),r.add(e.slice(0))}),t[e]=r.createSorter(),!0}return!1}),t}},t.exports=o},{}],169:[function(e,t,n){"use strict";function r(e,t){var n={};return e.forEach(function(e){n[e]=1}),t?function(e){return 1===n[e.toLowerCase()]}:function(e){return 1===n[e]}}n.createMap=r,n.createMapFromString=function(e,t){return r(e.split(/,/),t)}},{}],"html-minifier":[function(e,t,n){"use strict";var p=e("clean-css"),d=e("he").decode,h=e("./htmlparser").HTMLParser,m=e("relateurl"),g=e("./tokenchain"),v=e("uglify-js"),r=e("./utils");function M(e){return"string"!=typeof e?e:e.replace(/^[ \n\r\t\f]+/,"").replace(/[ \n\r\t\f]+$/,"")}function U(e){return e&&e.replace(/[ \n\r\t\f\xA0]+/g,function(e){return"\t"===e?"\t":e.replace(/(^|\xA0+)[^\xA0]+/g,"$1 ")})}function N(e,n,t,r,i){var o="",a="";return n.preserveLineBreaks&&(e=e.replace(/^[ \n\r\t\f]*?[\n\r][ \n\r\t\f]*/,function(){return o="\n",""}).replace(/[ \n\r\t\f]*?[\n\r][ \n\r\t\f]*$/,function(){return a="\n",""})),t&&(e=e.replace(/^[ \n\r\t\f\xA0]+/,function(e){var t=!o&&n.conservativeCollapse;return t&&"\t"===e?"\t":e.replace(/^[^\xA0]+/,"").replace(/(\xA0+)[^\xA0]+/g,"$1 ")||(t?" ":"")})),r&&(e=e.replace(/[ \n\r\t\f\xA0]+$/,function(e){var t=!a&&n.conservativeCollapse;return t&&"\t"===e?"\t":e.replace(/[^\xA0]+(\xA0+)/g," $1").replace(/[^\xA0]+$/,"")||(t?" ":"")})),i&&(e=U(e)),o+e+a}var i=r.createMapFromString,P=i("a,abbr,acronym,b,bdi,bdo,big,button,cite,code,del,dfn,em,font,i,ins,kbd,label,mark,math,nobr,object,q,rt,rp,s,samp,select,small,span,strike,strong,sub,sup,svg,textarea,time,tt,u,var"),q=i("a,abbr,acronym,b,big,del,em,font,i,ins,kbd,mark,nobr,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var"),a=i("comment,img,input,wbr");function z(e,t,n,r){var i=t&&!a(t);i&&!r.collapseInlineTagWhitespace&&(i="/"===t.charAt(0)?!P(t.slice(1)):!q(t));var o=n&&!a(n);return o&&!r.collapseInlineTagWhitespace&&(o="/"===n.charAt(0)?!q(n.slice(1)):!P(n)),N(e,r,i,o,t&&n)}function b(e,t){for(var n=e.length;n--;)if(e[n].name.toLowerCase()===t)return!0;return!1}var o=r.createMap(["text/javascript","text/ecmascript","text/jscript","application/javascript","application/x-javascript","application/ecmascript"]);function I(e){return""===(e=M(e.split(/;/,2)[0]).toLowerCase())||o(e)}function y(e){return""===(e=M(e).toLowerCase())||"text/css"===e}function j(e,t){if("style"!==e)return!1;for(var n=0,r=t.length;n<r;n++){if("type"===t[n].name.toLowerCase())return y(t[n].value)}return!0}var _=i("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),w=i("true,false");function E(e,t,n){if("link"!==e)return!1;for(var r=0,i=t.length;r<i;r++)if("rel"===t[r].name&&t[r].value===n)return!0}var A=i("img,source");function x(e,t,n,a,r){if(n&&function(e,t){var n=t.customEventAttributes;if(n){for(var r=n.length;r--;)if(n[r].test(e))return!0;return!1}return/^on[a-z]{3,}$/.test(e)}(t,a))return n=M(n).replace(/^javascript:\s*/i,""),a.minifyJS(n,!0);if("class"===t)return n=M(n),n=a.sortClassName?a.sortClassName(n):U(n);if(d=t,/^(?:a|area|link|base)$/.test(m=e)&&"href"===d||"img"===m&&/^(?:src|longdesc|usemap)$/.test(d)||"object"===m&&/^(?:classid|codebase|data|usemap)$/.test(d)||"q"===m&&"cite"===d||"blockquote"===m&&"cite"===d||("ins"===m||"del"===m)&&"cite"===d||"form"===m&&"action"===d||"input"===m&&("src"===d||"usemap"===d)||"head"===m&&"profile"===d||"script"===m&&("src"===d||"for"===d))return n=M(n),E(e,r,"canonical")?n:a.minifyURLs(n);if(p=t,/^(?:a|area|object|button)$/.test(h=e)&&"tabindex"===p||"input"===h&&("maxlength"===p||"tabindex"===p)||"select"===h&&("size"===p||"tabindex"===p)||"textarea"===h&&/^(?:rows|cols|tabindex)$/.test(p)||"colgroup"===h&&"span"===p||"col"===h&&"span"===p||("th"===h||"td"===h)&&("rowspan"===p||"colspan"===p))return M(n);if("style"===t)return(n=M(n))&&(/;$/.test(n)&&!/&#?[0-9a-zA-Z]+;$/.test(n)&&(n=n.replace(/\s*;$/,";")),c=a.minifyCSS("*{"+n+"}"),n=(f=c.match(/^\*\{([\s\S]*)\}$/))?f[1]:c),n;if(l=e,"srcset"===t&&A(l))n=M(n).split(/\s+,\s*|\s*,\s+/).map(function(e){var t=e,n="",r=e.match(/\s+([1-9][0-9]*w|[0-9]+(?:\.[0-9]+)?x)$/);if(r){t=t.slice(0,-r[0].length);var i=+r[1].slice(0,-1),o=r[1].slice(-1);1===i&&"x"===o||(n=" "+i+o)}return a.minifyURLs(t)+n}).join(", ");else if(function(e,t){if("meta"!==e)return!1;for(var n=0,r=t.length;n<r;n++)if("name"===t[n].name&&"viewport"===t[n].value)return!0}(e,r)&&"content"===t)n=n.replace(/\s+/g,"").replace(/[0-9]+\.[0-9]+/g,function(e){return(+e).toString()});else if(n&&a.customAttrCollapse&&a.customAttrCollapse.test(t))n=n.replace(/\n+|\r+|\s{2,}/g,"");else if("script"===e&&"type"===t)n=M(n.replace(/\s*;\s*/g,";"));else if(s=e,u=r,"media"===t&&(E(s,u,"stylesheet")||j(s,u)))return n=M(n),i=a.minifyCSS("@media "+n+"{a{top:0}}"),(o=i.match(/^@media ([\s\S]*?)\s*{[\s\S]*}$/))?o[1]:i;var i,o,s,u,l,c,f,p,h,d,m;return n}var V=i("html,head,body,colgroup,tbody"),$=i("html,head,body,li,dt,dd,p,rb,rt,rtc,rp,optgroup,option,colgroup,caption,thead,tbody,tfoot,tr,td,th"),H=i("meta,link,script,style,template,noscript"),K=i("dt,dd"),G=i("address,article,aside,blockquote,details,div,dl,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,hr,main,menu,nav,ol,p,pre,section,table,ul"),Y=i("a,audio,del,ins,map,noscript,video"),W=i("rb,rt,rtc,rp"),Q=i("rb,rtc,rp"),Z=i("option,optgroup"),J=i("tbody,tfoot"),X=i("thead,tbody,tfoot"),ee=i("td,th"),te=i("html,head,body"),ne=i("html,body"),re=i("head,colgroup,caption"),ie=i("dt,thead"),oe=i("a,abbr,acronym,address,applet,area,article,aside,audio,b,base,basefont,bdi,bdo,bgsound,big,blink,blockquote,body,br,button,canvas,caption,center,cite,code,col,colgroup,command,content,data,datalist,dd,del,details,dfn,dialog,dir,div,dl,dt,element,em,embed,fieldset,figcaption,figure,font,footer,form,frame,frameset,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,i,iframe,image,img,input,ins,isindex,kbd,keygen,label,legend,li,link,listing,main,map,mark,marquee,menu,menuitem,meta,meter,multicol,nav,nobr,noembed,noframes,noscript,object,ol,optgroup,option,output,p,param,picture,plaintext,pre,progress,q,rp,rt,rtc,ruby,s,samp,script,section,select,shadow,small,source,spacer,span,strike,strong,style,sub,summary,sup,table,tbody,td,template,textarea,tfoot,th,thead,time,title,tr,track,tt,u,ul,var,video,wbr,xmp");var C=new RegExp("^(?:class|id|style|title|lang|dir|on(?:focus|blur|change|click|dblclick|mouse(?:down|up|over|move|out)|key(?:press|down|up)))$");function ae(e,t){for(var n=t.length-1;0<=n;n--)if(t[n].name===e)return!0;return!1}function se(e){return!/^(?:script|style|pre|textarea)$/.test(e)}function ue(e){return!/^(?:pre|textarea)$/.test(e)}function le(e,t,n,r){var i,o,a,s,u,l,c,f,p=r.caseSensitive?e.name:e.name.toLowerCase(),h=e.value;if((r.decodeEntities&&h&&(h=d(h,{isAttributeValue:!0})),!(r.removeRedundantAttributes&&(i=n,o=p,s=t,a=(a=h)?M(a.toLowerCase()):"","script"===i&&"language"===o&&"javascript"===a||"form"===i&&"method"===o&&"get"===a||"input"===i&&"type"===o&&"text"===a||"script"===i&&"charset"===o&&!b(s,"src")||"a"===i&&"name"===o&&b(s,"id")||"area"===i&&"shape"===o&&"rect"===a)||r.removeScriptTypeAttributes&&"script"===n&&"type"===p&&I(h)||r.removeStyleLinkTypeAttributes&&("style"===n||"link"===n)&&"type"===p&&y(h)))&&(h=x(n,p,h,r,t),!r.removeEmptyAttributes||(u=n,l=p,f=r,(c=h)&&!/^\s*$/.test(c)||!("function"==typeof f.removeEmptyAttributes?f.removeEmptyAttributes(l,u):"input"===u&&"value"===l||C.test(l)))))return r.decodeEntities&&h&&(h=h.replace(/&(#?[0-9a-zA-Z]+;)/g,"&amp;$1")),{attr:e,name:p,value:h}}function ce(e,t,n,r,i){var o,a,s,u,l=e.name,c=e.value,f=e.attr,p=f.quote;if(void 0===c||n.removeAttributeQuotes&&!~c.indexOf(i)&&/^[^ \t\n\f\r"'`=<>]+$/.test(c))a=!r||t||/\/$/.test(c)?c+" ":c;else{if(!n.preventAttributesEscaping){if(void 0===n.quoteCharacter)p=(c.match(/'/g)||[]).length<(c.match(/"/g)||[]).length?"'":'"';else p="'"===n.quoteCharacter?"'":'"';c='"'===p?c.replace(/"/g,"&#34;"):c.replace(/'/g,"&#39;")}a=p+c+p,r||n.removeTagWhitespace||(a+=" ")}return void 0===c||n.collapseBooleanAttributes&&(s=l.toLowerCase(),u=c.toLowerCase(),_(s)||"draggable"===s&&!w(u))?(o=l,r||(o+=" ")):o=l+f.customAssign+a,f.customOpen+o+f.customClose}function fe(e){return e}function pe(e){for(var t;t=Math.random().toString(36).replace(/^0\.[0-9]*/,""),~e.indexOf(t););return t}var he=i("script,style");function de(i,b,e){var y=[];!function(o){if(["html5","includeAutoGeneratedTags"].forEach(function(e){e in o||(o[e]=!0)}),"function"!=typeof o.log&&(o.log=fe),o.canCollapseWhitespace||(o.canCollapseWhitespace=se),o.canTrimWhitespace||(o.canTrimWhitespace=ue),"ignoreCustomComments"in o||(o.ignoreCustomComments=[/^!/]),"ignoreCustomFragments"in o||(o.ignoreCustomFragments=[/<%[\s\S]*?%>/,/<\?[\s\S]*?\?>/]),o.minifyURLs||(o.minifyURLs=fe),"function"!=typeof o.minifyURLs){var e=o.minifyURLs;"string"==typeof e?e={site:e}:"object"!=typeof e&&(e={}),o.minifyURLs=function(t){try{return m.relate(t,e)}catch(e){return o.log(e),t}}}if(o.minifyJS||(o.minifyJS=fe),"function"!=typeof o.minifyJS){var a=o.minifyJS;"object"!=typeof a&&(a={}),(a.parse||(a.parse={})).bare_returns=!1,o.minifyJS=function(e,t){var n=e.match(/^\s*<!--.*/),r=n?e.slice(n[0].length).replace(/\n\s*-->\s*$/,""):e;a.parse.bare_returns=t;var i=v.minify(r,a);return i.error?(o.log(i.error),e):i.code.replace(/;$/,"")}}if(o.minifyCSS||(o.minifyCSS=fe),"function"!=typeof o.minifyCSS){var n=o.minifyCSS;"object"!=typeof n&&(n={}),o.minifyCSS=function(t){t=t.replace(/(url\s*\(\s*)("|'|)(.*?)\2(\s*\))/gi,function(e,t,n,r,i){return t+n+o.minifyURLs(r)+n+i});try{return new p(n).minify(t).styles}catch(e){return o.log(e),t}}}}(b=b||{}),b.collapseWhitespace&&(i=N(i,b,!0,!0));var _,w,a,E,s,A=[],x="",C="",k=[],O=[],S=[],D="",B="",t=Date.now(),o=[],u=[];function l(e){return e.replace(s,function(e,t,n){var r=u[+n];return r[1]+E+n+r[2]})}i=i.replace(/<!-- htmlmin:ignore -->([\s\S]*?)<!-- htmlmin:ignore -->/g,function(e,t){if(!a){a=pe(i);var n=new RegExp("^"+a+"([0-9]+)$");b.ignoreCustomComments?b.ignoreCustomComments.push(n):b.ignoreCustomComments=[n]}var r="\x3c!--"+a+o.length+"--\x3e";return o.push(t),r});var n=b.ignoreCustomFragments.map(function(e){return e.source});if(n.length){var r=new RegExp("\\s*(?:"+n.join("|")+")+\\s*","g");i=i.replace(r,function(e){if(!E){E=pe(i),s=new RegExp("(\\s*)"+E+"([0-9]+)(\\s*)","g");var t=b.minifyCSS;t&&(b.minifyCSS=function(e){return t(l(e))});var n=b.minifyJS;n&&(b.minifyJS=function(e,t){return n(l(e),t)})}var r=E+u.length;return u.push(/^(\s*)[\s\S]*?(\s*)$/.exec(e)),"\t"+r+"\t"})}function T(e,t){return b.canTrimWhitespace(e,t,ue)}function R(){for(var e=A.length-1;0<e&&!/^<[^/!]/.test(A[e]);)e--;A.length=Math.max(0,e)}function F(){for(var e=A.length-1;0<e&&!/^<\//.test(A[e]);)e--;A.length=Math.max(0,e)}function c(e,t){for(var n=null;0<=e&&T(n);e--){var r=A[e],i=r.match(/^<\/([\w:-]+)>$/);if(i)n=i[1];else if(/>$/.test(r)||(A[e]=z(r,null,t,b)))break}}function L(e){var t=A.length-1;if(1<A.length){var n=A[A.length-1];/^(?:<!|$)/.test(n)&&-1===n.indexOf(a)&&t--}c(t,e)}(b.sortAttributes&&"function"!=typeof b.sortAttributes||b.sortClassName&&"function"!=typeof b.sortClassName)&&function(e,s,t,n){var u=s.sortAttributes&&Object.create(null),l=s.sortClassName&&new g;function c(e){return e.map(function(e){return s.caseSensitive?e.name:e.name.toLowerCase()})}function r(e,t){return!t||-1===e.indexOf(t)}function f(e){return r(e,t)&&r(e,n)}var i=s.log;if(s.log=null,s.sortAttributes=!1,s.sortClassName=!1,function t(e){var o,a;new h(e,{start:function(e,t){u&&(u[e]||(u[e]=new g),u[e].add(c(t).filter(f)));for(var n=0,r=t.length;n<r;n++){var i=t[n];l&&"class"===(s.caseSensitive?i.name:i.name.toLowerCase())?l.add(M(i.value).split(/[ \t\n\f\r]+/).filter(f)):s.processScripts&&"type"===i.name.toLowerCase()&&(o=e,a=i.value)}},end:function(){o=""},chars:function(e){s.processScripts&&he(o)&&-1<s.processScripts.indexOf(a)&&t(e)}})}(de(e,s)),s.log=i,u){var o=Object.create(null);for(var a in u)o[a]=u[a].createSorter();s.sortAttributes=function(e,n){var t=o[e];if(t){var r=Object.create(null),i=c(n);i.forEach(function(e,t){(r[e]||(r[e]=[])).push(n[t])}),t.sort(i).forEach(function(e,t){n[t]=r[e].shift()})}}}if(l){var p=l.createSorter();s.sortClassName=function(e){return p.sort(e.split(/[ \n\f\r]+/)).join(" ")}}}(i,b,a,E),new h(i,{partialMarkup:e,html5:b.html5,start:function(e,t,n,r,i){var o=e.toLowerCase();if("svg"===o){y.push(b);var a={};for(var s in b)a[s]=b[s];a.keepClosingSlash=!0,a.caseSensitive=!0,b=a}e=b.caseSensitive?e:o,q(_=C=e)||(x=""),w=!1,k=t;var u,l,c=b.removeOptionalTags;if(c){var f=oe(e);f&&function(e,t){switch(e){case"html":case"head":return!0;case"body":return!H(t);case"colgroup":return"col"===t;case"tbody":return"tr"===t}return!1}(D,e)&&R(),D="",f&&function(e,t){switch(e){case"html":case"head":case"body":case"colgroup":case"caption":return!0;case"li":case"optgroup":case"tr":return t===e;case"dt":case"dd":return K(t);case"p":return G(t);case"rb":case"rt":case"rp":return W(t);case"rtc":return Q(t);case"option":return Z(t);case"thead":case"tbody":return J(t);case"tfoot":return"tbody"===t;case"td":case"th":return ee(t)}return!1}(B,e)&&(F(),c=!function(e,t){switch(t){case"colgroup":return"colgroup"===e;case"tbody":return X(e)}return!1}(B,e)),B=""}b.collapseWhitespace&&(O.length||L(e),n||(T(e,t)&&!O.length||O.push(e),u=e,l=t,(!b.canCollapseWhitespace(u,l,se)||S.length)&&S.push(e)));var p="<"+e,h=r&&b.keepClosingSlash;A.push(p),b.sortAttributes&&b.sortAttributes(e,t);for(var d=[],m=t.length,g=!0;0<=--m;){var v=le(t[m],t,e,b);v&&(d.unshift(ce(v,h,b,g,E)),g=!1)}0<d.length?(A.push(" "),A.push.apply(A,d)):c&&V(e)&&(D=e),A.push(A.pop()+(h?"/":"")+">"),i&&!b.includeAutoGeneratedTags&&(R(),D="")},end:function(e,t,n){var r=e.toLowerCase();"svg"===r&&(b=y.pop()),e=b.caseSensitive?e:r,b.collapseWhitespace&&(O.length?e===O[O.length-1]&&O.pop():L("/"+e),S.length&&e===S[S.length-1]&&S.pop());var i=!1;e===C&&(C="",i=!w),b.removeOptionalTags&&(i&&te(D)&&R(),D="",!oe(e)||!B||ie(B)||"p"===B&&Y(e)||F(),B=$(e)?e:""),b.removeEmptyElements&&i&&function(e,t){switch(e){case"textarea":return!1;case"audio":case"script":case"video":if(ae("src",t))return!1;break;case"iframe":if(ae("src",t)||ae("srcdoc",t))return!1;break;case"object":if(ae("data",t))return!1;break;case"applet":if(ae("code",t))return!1}return!0}(e,t)?(R(),B=D=""):(n&&!b.includeAutoGeneratedTags?B="":A.push("</"+e+">"),_="/"+e,P(e)?i&&(x+="|"):x="")},chars:function(t,e,n){if(e=""===e?"comment":e,n=""===n?"comment":n,b.decodeEntities&&t&&!he(C)&&(t=d(t)),b.collapseWhitespace){if(O.length)s&&(t=t.replace(s,function(e,t,n){return u[+n][0]}));else{if("comment"===e){var r=A[A.length-1];if(-1===r.indexOf(a)&&(r||(e=_),1<A.length&&(!r||!b.conservativeCollapse&&/ $/.test(x)))){var i=A.length-2;A[i]=A[i].replace(/\s+$/,function(e){return t=e+t,""})}}if(e)if("/nobr"===e||"wbr"===e){if(/^\s/.test(t)){for(var o=A.length-1;0<o&&0!==A[o].lastIndexOf("<"+e);)o--;c(o-1,"br")}}else q("/"===e.charAt(0)?e.slice(1):e)&&(t=N(t,b,/(?:^|\s)$/.test(x)));!(t=e||n?z(t,e,n,b):N(t,b,!0,!0))&&/\s$/.test(x)&&e&&"/"===e.charAt(0)&&c(A.length-1,n)}S.length||"html"===n||e&&n||(t=N(t,b,!1,!1,!0))}b.processScripts&&he(C)&&(t=function(e,t,n){for(var r=0,i=n.length;r<i;r++)if("type"===n[r].name.toLowerCase()&&-1<t.processScripts.indexOf(n[r].value))return de(e,t);return e}(t,b,k)),function(e,t){if("script"!==e)return!1;for(var n=0,r=t.length;n<r;n++)if("type"===t[n].name.toLowerCase())return I(t[n].value);return!0}(C,k)&&(t=b.minifyJS(t)),j(C,k)&&(t=b.minifyCSS(t)),b.removeOptionalTags&&t&&(("html"===D||"body"===D&&!/^\s/.test(t))&&R(),D="",(ne(B)||re(B)&&!/^\s/.test(t))&&F(),B=""),_=/^\s*$/.test(t)?e:"comment",b.decodeEntities&&t&&!he(C)&&(t=t.replace(/&(#?[0-9a-zA-Z]+;)/g,"&amp$1").replace(/</g,"&lt;")),x+=t,t&&(w=!0),A.push(t)},comment:function(e,t){var n,i,r=t?"<!":"\x3c!--",o=t?">":"--\x3e";e=/^\[if\s[^\]]+]|\[endif]$/.test(e)?r+(n=e,(i=b).processConditionalComments?n.replace(/^(\[if\s[^\]]+]>)([\s\S]*?)(<!\[endif])$/,function(e,t,n,r){return t+de(n,i,!0)+r}):n)+o:b.removeComments?function(e,t){for(var n=0,r=t.ignoreCustomComments.length;n<r;n++)if(t.ignoreCustomComments[n].test(e))return!0;return!1}(e,b)?"\x3c!--"+e+"--\x3e":"":r+e+o,b.removeOptionalTags&&e&&(B=D=""),A.push(e)},doctype:function(e){A.push(b.useShortDoctype?"<!DOCTYPE html>":U(e))},customAttrAssign:b.customAttrAssign,customAttrSurround:b.customAttrSurround}),b.removeOptionalTags&&(te(D)&&R(),B&&!ie(B)&&F()),b.collapseWhitespace&&L("br");var f=function(e,t){var n,r=t.maxLineLength;if(r){for(var i,o=[],a="",s=0,u=e.length;s<u;s++)i=e[s],a.length+i.length<r?a+=i:(o.push(a.replace(/^\n/,"")),a=i);o.push(a),n=o.join("\n")}else n=e.join("");return t.collapseWhitespace?N(n,t,!0,!0):n}(A,b);return s&&(f=f.replace(s,function(e,t,n,r){var i=u[+n][0];return b.collapseWhitespace?("\t"!==t&&(i=t+i),"\t"!==r&&(i+=r),N(i,{preserveLineBreaks:b.preserveLineBreaks,conservativeCollapse:!b.trimCustomFragments},/^[ \n\r\t\f]/.test(i),/[ \n\r\t\f]$/.test(i))):i})),a&&(f=f.replace(new RegExp("\x3c!--"+a+"([0-9]+)--\x3e","g"),function(e,t){return o[+t]})),b.log("minified in: "+(Date.now()-t)+"ms"),f}n.minify=function(e,t){return de(e,t)}},{"./htmlparser":167,"./tokenchain":168,"./utils":169,"clean-css":6,he:103,relateurl:129,"uglify-js":"uglify-js"}],"uglify-js":[function(e,t,n){(function(l){!function(d){"use strict";function e(e){return e.split("")}function ee(e,t){return 0<=t.indexOf(e)}function H(e,t){for(var n=0,r=t.length;n<r;++n)if(e(t[n]))return t[n]}function t(e){Object.defineProperty(e.prototype,"stack",{get:function(){var e=new Error(this.message);e.name=this.name;try{throw e}catch(e){return e.stack}}})}function o(e,t){this.message=e,this.defs=t}function K(e,t,n){!0===e&&(e={});var r=e||{};if(n)for(var i in r)ae(r,i)&&!ae(t,i)&&o.croak("`"+i+"` is not a supported option",t);for(var i in t)ae(t,i)&&(r[i]=e&&ae(e,i)?e[i]:t[i]);return r}function n(e,t){var n=0;for(var r in t)ae(t,r)&&(e[r]=t[r],n++);return n}function $(){}function te(){return!1}function ne(){return!0}function S(){return this}function D(){return null}((o.prototype=Object.create(Error.prototype)).constructor=o).prototype.name="DefaultsError",t(o),o.croak=function(e,t){throw new o(e,t)};var re=function(){function e(n,r,i){var o,a=[],s=[];function e(){var e=r(n[o],o),t=e instanceof f;return t&&(e=e.v),e instanceof l?(e=e.v)instanceof c?s.push.apply(s,i?e.v.slice().reverse():e.v):s.push(e):e!==u&&(e instanceof c?a.push.apply(a,i?e.v.slice().reverse():e.v):a.push(e)),t}if(n instanceof Array)if(i){for(o=n.length;0<=--o&&!e(););a.reverse(),s.reverse()}else for(o=0;o<n.length&&!e();++o);else for(o in n)if(ae(n,o)&&e())break;return s.concat(a)}e.at_top=function(e){return new l(e)},e.splice=function(e){return new c(e)},e.last=function(e){return new f(e)};var u=e.skip={};function l(e){this.v=e}function c(e){this.v=e}function f(e){this.v=e}return e}();function m(e,t){e.indexOf(t)<0&&e.push(t)}function B(e,n){return e.replace(/\{(.+?)\}/g,function(e,t){return n&&n[t]})}function T(e,t){for(var n=e.length;0<=--n;)e[n]===t&&e.splice(n,1)}function s(e,a){if(e.length<2)return e.slice();return function e(t){if(t.length<=1)return t;var n=Math.floor(t.length/2),r=t.slice(0,n),i=t.slice(n);return function(e,t){for(var n=[],r=0,i=0,o=0;r<e.length&&i<t.length;)a(e[r],t[i])<=0?n[o++]=e[r++]:n[o++]=t[i++];return r<e.length&&n.push.apply(n,e.slice(r)),i<t.length&&n.push.apply(n,t.slice(i)),n}(r=e(r),i=e(i))}(e)}function ie(e){e instanceof Array||(e=e.split(" "));var n="",t=[];e:for(var r=0;r<e.length;++r){for(var i=0;i<t.length;++i)if(t[i][0].length==e[r].length){t[i].push(e[r]);continue e}t.push([e[r]])}function o(e){return JSON.stringify(e).replace(/[\u2028\u2029]/g,function(e){switch(e){case"\u2028":return"\\u2028";case"\u2029":return"\\u2029"}return e})}function a(e){if(1==e.length)return n+="return str === "+o(e[0])+";";n+="switch(str){";for(var t=0;t<e.length;++t)n+="case "+o(e[t])+":";n+="return true}return false;"}if(3<t.length){t.sort(function(e,t){return t.length-e.length}),n+="switch(str.length){";for(r=0;r<t.length;++r){var s=t[r];n+="case "+s[0].length+":",a(s)}n+="}"}else a(e);return new Function("str",n)}function oe(e,t){for(var n=e.length;0<=--n;)if(!t(e[n]))return!1;return!0}function R(){this._values=Object.create(null),this._size=0}function ae(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function F(e){for(var t,n=e.parent(-1),r=0;t=e.parent(r);r++){if(t instanceof ue&&t.body===n)return!0;if(!(t instanceof Ye&&t.expressions[0]===n||"Call"==t.TYPE&&t.expression===n||t instanceof Qe&&t.expression===n||t instanceof Ze&&t.expression===n||t instanceof nt&&t.condition===n||t instanceof tt&&t.left===n||t instanceof et&&t.expression===n))return!1;n=t}}function r(e,t,n,r){arguments.length<4&&(r=se);var i=t=t?t.split(/\s+/):[];r&&r.PROPS&&(t=t.concat(r.PROPS));for(var o="return function AST_"+e+"(props){ if (props) { ",a=t.length;0<=--a;)o+="this."+t[a]+" = props."+t[a]+";";var s=r&&new r;(s&&s.initialize||n&&n.initialize)&&(o+="this.initialize();"),o+="}}";var u=new Function(o)();if(s&&(u.prototype=s,u.BASE=r),r&&r.SUBCLASSES.push(u),(u.prototype.CTOR=u).PROPS=t||null,u.SELF_PROPS=i,u.SUBCLASSES=[],e&&(u.prototype.TYPE=u.TYPE=e),n)for(a in n)ae(n,a)&&(/^\$/.test(a)?u[a.substr(1)]=n[a]:u.prototype[a]=n[a]);return u.DEFMETHOD=function(e,t){this.prototype[e]=t},void 0!==d&&(d["AST_"+e]=u),u}R.prototype={set:function(e,t){return this.has(e)||++this._size,this._values["$"+e]=t,this},add:function(e,t){return this.has(e)?this.get(e).push(t):this.set(e,[t]),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 t in this._values)e(this._values[t],t.substr(1))},size:function(){return this._size},map:function(e){var t=[];for(var n in this._values)t.push(e(this._values[n],n.substr(1)));return t},clone:function(){var e=new R;for(var t in this._values)e._values[t]=this._values[t];return e._size=this._size,e},toObject:function(){return this._values}},R.fromObject=function(e){var t=new R;return t._size=n(t._values,e),t};var O=r("Token","type value line col pos endline endcol endpos nlb comments_before comments_after file raw",{},null),se=r("Node","start end",{_clone:function(e){if(e){var t=this.clone();return t.transform(new Wt(function(e){if(e!==t)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);se.warn_function=null,se.warn=function(e,t){se.warn_function&&se.warn_function(B(e,t))};var ue=r("Statement",null,{$documentation:"Base class of all statements"}),le=r("Debugger",null,{$documentation:"Represents a debugger statement"},ue),ce=r("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"}},ue),fe=r("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)})}},ue);function L(e,t){var n=e.body;if(n instanceof ue)n._walk(t);else for(var r=0,i=n.length;r<i;r++)n[r]._walk(t)}var pe=r("Block","body",{$documentation:"A body of statements (usually bracketed)",$propdoc:{body:"[AST_Statement*] an array of statements"},_walk:function(e){return e._visit(this,function(){L(this,e)})}},ue),he=r("BlockStatement",null,{$documentation:"A block statement"},pe),de=r("EmptyStatement",null,{$documentation:"The empty statement (empty block or simply a semicolon)"},ue),g=r("StatementWithBody","body",{$documentation:"Base class for all statements that contain one nested body: `For`, `ForIn`, `Do`, `While`, `With`",$propdoc:{body:"[AST_Statement] the body; this should always be present, even if it's an AST_EmptyStatement"}},ue),me=r("LabeledStatement","label",{$documentation:"Statement with a label",$propdoc:{label:"[AST_Label] a label definition"},_walk:function(e){return e._visit(this,function(){this.label._walk(e),this.body._walk(e)})},clone:function(e){var t=this._clone(e);if(e){var n=t.label,r=this.label;t.walk(new Dt(function(e){e instanceof Re&&e.label&&e.label.thedef===r&&(e.label.thedef=n).references.push(e)}))}return t}},g),ge=r("IterationStatement",null,{$documentation:"Internal class.  All loops inherit from it."},g),ve=r("DWLoop","condition",{$documentation:"Base class for do/while statements",$propdoc:{condition:"[AST_Node] the loop condition.  Should not be instanceof AST_Statement"}},ge),be=r("Do",null,{$documentation:"A `do` statement",_walk:function(e){return e._visit(this,function(){this.body._walk(e),this.condition._walk(e)})}},ve),ye=r("While",null,{$documentation:"A `while` statement",_walk:function(e){return e._visit(this,function(){this.condition._walk(e),this.body._walk(e)})}},ve),_e=r("For","init condition step",{$documentation:"A `for` statement",$propdoc:{init:"[AST_Node?] the `for` initialization code, or null if empty",condition:"[AST_Node?] the `for` termination clause, or null if empty",step:"[AST_Node?] the `for` update clause, or null if empty"},_walk:function(e){return e._visit(this,function(){this.init&&this.init._walk(e),this.condition&&this.condition._walk(e),this.step&&this.step._walk(e),this.body._walk(e)})}},ge),we=r("ForIn","init object",{$documentation:"A `for ... in` statement",$propdoc:{init:"[AST_Node] the `for/in` initialization code",object:"[AST_Node] the object that we're looping through"},_walk:function(e){return e._visit(this,function(){this.init._walk(e),this.object._walk(e),this.body._walk(e)})}},ge),Ee=r("With","expression",{$documentation:"A `with` statement",$propdoc:{expression:"[AST_Node] the `with` expression"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e),this.body._walk(e)})}},g),Ae=r("Scope","variables functions uses_with uses_eval parent_scope enclosed cname",{$documentation:"Base class for all statements introducing a lexical scope",$propdoc:{variables:"[Object/S] a map of name -> 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)"},clone:function(e){var t=this._clone(e);return this.variables&&(t.variables=this.variables.clone()),this.functions&&(t.functions=this.functions.clone()),this.enclosed&&(t.enclosed=this.enclosed.slice()),t}},pe),xe=r("Toplevel","globals",{$documentation:"The toplevel scope",$propdoc:{globals:"[Object/S] a map of name -> SymbolDef for all undeclared names"},wrap_commonjs:function(e){var t=this.body,n="(function(exports){'$ORIG';})(typeof "+e+"=='undefined'?("+e+"={}):"+e+");";return n=(n=Yt(n)).transform(new Wt(function(e){if(e instanceof ce&&"$ORIG"==e.value)return re.splice(t)}))}},Ae),Ce=r("Lambda","name argnames uses_arguments",{$documentation:"Base class for functions",$propdoc:{name:"[AST_SymbolDeclaration?] the name of this function",argnames:"[AST_SymbolFunarg*] array of function arguments",uses_arguments:"[boolean/S] tells whether this function accesses the arguments array"},_walk:function(r){return r._visit(this,function(){this.name&&this.name._walk(r);for(var e=this.argnames,t=0,n=e.length;t<n;t++)e[t]._walk(r);L(this,r)})}},Ae),ke=r("Accessor",null,{$documentation:"A setter/getter function.  The `name` property is always null."},Ce),Oe=r("Function","inlined",{$documentation:"A function expression"},Ce),Se=r("Defun","inlined",{$documentation:"A function definition"},Ce),De=r("Jump",null,{$documentation:"Base class for “jumps” (for now that's `return`, `throw`, `break` and `continue`)"},ue),Be=r("Exit","value",{$documentation:"Base class for “exits” (`return` and `throw`)",$propdoc:{value:"[AST_Node?] the value returned or thrown by this statement; could be null for AST_Return"},_walk:function(e){return e._visit(this,this.value&&function(){this.value._walk(e)})}},De),Te=r("Return",null,{$documentation:"A `return` statement"},Be),G=r("Throw",null,{$documentation:"A `throw` statement"},Be),Re=r("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)})}},De),Fe=r("Break",null,{$documentation:"A `break` statement"},Re),Le=r("Continue",null,{$documentation:"A `continue` statement"},Re),Me=r("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)})}},g),Ue=r("Switch","expression",{$documentation:"A `switch` statement",$propdoc:{expression:"[AST_Node] the `switch` “discriminant”"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e),L(this,e)})}},pe),Ne=r("SwitchBranch",null,{$documentation:"Base class for `switch` branches"},pe),Pe=r("Default",null,{$documentation:"A `default` switch branch"},Ne),qe=r("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),L(this,e)})}},Ne),ze=r("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(){L(this,e),this.bcatch&&this.bcatch._walk(e),this.bfinally&&this.bfinally._walk(e)})}},pe),Ie=r("Catch","argname",{$documentation:"A `catch` node; only makes sense as part of a `try` statement",$propdoc:{argname:"[AST_SymbolCatch] symbol for the exception"},_walk:function(e){return e._visit(this,function(){this.argname._walk(e),L(this,e)})}},pe),je=r("Finally",null,{$documentation:"A `finally` node; only makes sense as part of a `try` statement"},pe),Ve=r("Definitions","definitions",{$documentation:"Base class for `var` nodes (variable declarations/initializations)",$propdoc:{definitions:"[AST_VarDef*] array of variable definitions"},_walk:function(r){return r._visit(this,function(){for(var e=this.definitions,t=0,n=e.length;t<n;t++)e[t]._walk(r)})}},ue),$e=r("Var",null,{$documentation:"A `var` statement"},Ve),He=r("VarDef","name value",{$documentation:"A variable declaration; only appears in a AST_Definitions node",$propdoc:{name:"[AST_SymbolVar] name of the variable",value:"[AST_Node?] initializer, or null of there's no initializer"},_walk:function(e){return e._visit(this,function(){this.name._walk(e),this.value&&this.value._walk(e)})}}),Ke=r("Call","expression args",{$documentation:"A function call expression",$propdoc:{expression:"[AST_Node] expression to invoke as function",args:"[AST_Node*] array of arguments"},_walk:function(r){return r._visit(this,function(){for(var e=this.args,t=0,n=e.length;t<n;t++)e[t]._walk(r);this.expression._walk(r)})}}),Ge=r("New",null,{$documentation:"An object instantiation.  Derives from a function call since it has exactly the same properties"},Ke),Ye=r("Sequence","expressions",{$documentation:"A sequence expression (comma-separated expressions)",$propdoc:{expressions:"[AST_Node*] array of expressions (at least two)"},_walk:function(t){return t._visit(this,function(){this.expressions.forEach(function(e){e._walk(t)})})}}),We=r("PropAccess","expression property",{$documentation:'Base class for property access expressions, i.e. `a.foo` or `a["foo"]`',$propdoc:{expression:"[AST_Node] the “container” expression",property:"[AST_Node|string] the property to access.  For AST_Dot this is always a plain string, while for AST_Sub it's an arbitrary AST_Node"}}),Qe=r("Dot",null,{$documentation:"A dotted property access expression",_walk:function(e){return e._visit(this,function(){this.expression._walk(e)})}},We),Ze=r("Sub",null,{$documentation:'Index-style property access, i.e. `a["foo"]`',_walk:function(e){return e._visit(this,function(){this.expression._walk(e),this.property._walk(e)})}},We),Je=r("Unary","operator expression",{$documentation:"Base class for unary expressions",$propdoc:{operator:"[string] the operator",expression:"[AST_Node] expression that this unary operator applies to"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e)})}}),Xe=r("UnaryPrefix",null,{$documentation:"Unary prefix expression, i.e. `typeof i` or `++i`"},Je),et=r("UnaryPostfix",null,{$documentation:"Unary postfix expression, i.e. `i++`"},Je),tt=r("Binary","operator left right",{$documentation:"Binary expression, i.e. `a + b`",$propdoc:{left:"[AST_Node] left-hand side expression",operator:"[string] the operator",right:"[AST_Node] right-hand side expression"},_walk:function(e){return e._visit(this,function(){this.left._walk(e),this.right._walk(e)})}}),nt=r("Conditional","condition consequent alternative",{$documentation:"Conditional expression using the ternary operator, i.e. `a ? b : c`",$propdoc:{condition:"[AST_Node]",consequent:"[AST_Node]",alternative:"[AST_Node]"},_walk:function(e){return e._visit(this,function(){this.condition._walk(e),this.consequent._walk(e),this.alternative._walk(e)})}}),rt=r("Assign",null,{$documentation:"An assignment expression — `a = b + 5`"},tt),it=r("Array","elements",{$documentation:"An array literal",$propdoc:{elements:"[AST_Node*] array of elements"},_walk:function(r){return r._visit(this,function(){for(var e=this.elements,t=0,n=e.length;t<n;t++)e[t]._walk(r)})}}),ot=r("Object","properties",{$documentation:"An object literal",$propdoc:{properties:"[AST_ObjectProperty*] array of properties"},_walk:function(r){return r._visit(this,function(){for(var e=this.properties,t=0,n=e.length;t<n;t++)e[t]._walk(r)})}}),at=r("ObjectProperty","key value",{$documentation:"Base class for literal object properties",$propdoc:{key:"[string|AST_SymbolAccessor] property name. For ObjectKeyVal this is a string. For getters and setters this is an AST_SymbolAccessor.",value:"[AST_Node] property value.  For getters and setters this is an AST_Accessor."},_walk:function(e){return e._visit(this,function(){this.value._walk(e)})}}),st=r("ObjectKeyVal","quote",{$documentation:"A key: value object property",$propdoc:{quote:"[string] the original quote character"}},at),Y=r("ObjectSetter",null,{$documentation:"An object setter property"},at),W=r("ObjectGetter",null,{$documentation:"An object getter property"},at),ut=r("Symbol","scope name thedef",{$propdoc:{name:"[string] name of this symbol",scope:"[AST_Scope/S] the current scope (not necessarily the definition scope)",thedef:"[SymbolDef/S] the definition of this symbol"},$documentation:"Base class for all symbols"}),Q=r("SymbolAccessor",null,{$documentation:"The name of a property accessor (setter/getter function)"},ut),lt=r("SymbolDeclaration","init",{$documentation:"A declaration symbol (symbol in var, function name or argument, symbol in catch)"},ut),ct=r("SymbolVar",null,{$documentation:"Symbol defining a variable"},lt),ft=r("SymbolFunarg",null,{$documentation:"Symbol naming a function argument"},ct),pt=r("SymbolDefun",null,{$documentation:"Symbol defining a function"},lt),ht=r("SymbolLambda",null,{$documentation:"Symbol naming a function expression"},lt),dt=r("SymbolCatch",null,{$documentation:"Symbol naming the exception in catch"},lt),Z=r("Label","references",{$documentation:"Symbol naming a label (declaration)",$propdoc:{references:"[AST_LoopControl*] a list of nodes referring to this label"},initialize:function(){this.references=[],this.thedef=this}},ut),mt=r("SymbolRef",null,{$documentation:"Reference to some symbol (not definition/declaration)"},ut),J=r("LabelRef",null,{$documentation:"Reference to a label symbol"},ut),gt=r("This",null,{$documentation:"The `this` symbol"},ut),vt=r("Constant",null,{$documentation:"Base class for all constants",getValue:function(){return this.value}}),bt=r("String","value quote",{$documentation:"A string literal",$propdoc:{value:"[string] the contents of this string",quote:"[string] the original quote character"}},vt),yt=r("Number","value literal",{$documentation:"A number literal",$propdoc:{value:"[number] the numeric value",literal:"[string] numeric value as string (optional)"}},vt),_t=r("RegExp","value",{$documentation:"A regexp literal",$propdoc:{value:"[RegExp] the actual regexp"}},vt),a=r("Atom",null,{$documentation:"Base class for atoms"},vt),wt=r("Null",null,{$documentation:"The `null` atom",value:null},a),Et=r("NaN",null,{$documentation:"The impossible value",value:NaN},a),At=r("Undefined",null,{$documentation:"The `undefined` value",value:void 0},a),xt=r("Hole",null,{$documentation:"A hole in an array",value:void 0},a),Ct=r("Infinity",null,{$documentation:"The `Infinity` value",value:1/0},a),kt=r("Boolean",null,{$documentation:"Base class for booleans"},a),Ot=r("False",null,{$documentation:"The `false` atom",value:!1},kt),St=r("True",null,{$documentation:"The `true` atom",value:!0},kt);function Dt(e){this.visit=e,this.stack=[],this.directives=Object.create(null)}Dt.prototype={_visit:function(e,t){this.push(e);var n=this.visit(e,t?function(){t.call(e)}:$);return!n&&t&&t.call(e),this.pop(),n},parent:function(e){return this.stack[this.stack.length-2-(e||0)]},push:function(e){e instanceof Ce?this.directives=Object.create(this.directives):e instanceof ce&&!this.directives[e.value]&&(this.directives[e.value]=e),this.stack.push(e)},pop:function(){this.stack.pop()instanceof Ce&&(this.directives=Object.getPrototypeOf(this.directives))},self:function(){return this.stack[this.stack.length-1]},find_parent:function(e){for(var t=this.stack,n=t.length;0<=--n;){var r=t[n];if(r instanceof e)return r}},has_directive:function(e){var t=this.directives[e];if(t)return t;var n=this.stack[this.stack.length-1];if(n instanceof Ae)for(var r=0;r<n.body.length;++r){var i=n.body[r];if(!(i instanceof ce))break;if(i.value==e)return i}},loopcontrol_target:function(e){var t=this.stack;if(e.label)for(var n=t.length;0<=--n;){if((r=t[n])instanceof me&&r.label.name==e.label.name)return r.body}else for(n=t.length;0<=--n;){var r;if((r=t[n])instanceof ge||e instanceof Fe&&r instanceof Ue)return r}}};var X="break case catch const continue debugger default delete do else finally for function if in instanceof new return switch throw try typeof var void while with",M="false null true",v="abstract boolean byte char class double enum export extends final float goto implements import int interface let long native package private protected public short static super synchronized this throws transient volatile yield "+M+" "+X,U="return new delete throw else case";X=ie(X),v=ie(v),U=ie(U),M=ie(M);var N=ie(e("+-*&%=<>!?|~^")),P=/^0x[0-9a-f]+$/i,q=/^0[0-7]+$/,z=ie(["in","instanceof","typeof","new","void","delete","++","--","+","-","!","~","&","|","^","*","/","%",">>","<<",">>>","<",">","<=",">=","==","===","!=","!==","?","=","+=","-=","/=","*=","%=",">>=","<<=",">>>=","|=","^=","&=","&&","||"]),I=ie(e("  \n\r\t\f\v​           \u2028\u2029   \ufeff")),j=ie(e("\n\r\u2028\u2029")),V=ie(e("[{(,;:")),Bt=ie(e("[]{}(),;:")),u={letter:new RegExp("[\\u0041-\\u005A\\u0061-\\u007A\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"),digit:new RegExp("[\\u0030-\\u0039\\u0660-\\u0669\\u06F0-\\u06F9\\u07C0-\\u07C9\\u0966-\\u096F\\u09E6-\\u09EF\\u0A66-\\u0A6F\\u0AE6-\\u0AEF\\u0B66-\\u0B6F\\u0BE6-\\u0BEF\\u0C66-\\u0C6F\\u0CE6-\\u0CEF\\u0D66-\\u0D6F\\u0DE6-\\u0DEF\\u0E50-\\u0E59\\u0ED0-\\u0ED9\\u0F20-\\u0F29\\u1040-\\u1049\\u1090-\\u1099\\u17E0-\\u17E9\\u1810-\\u1819\\u1946-\\u194F\\u19D0-\\u19D9\\u1A80-\\u1A89\\u1A90-\\u1A99\\u1B50-\\u1B59\\u1BB0-\\u1BB9\\u1C40-\\u1C49\\u1C50-\\u1C59\\uA620-\\uA629\\uA8D0-\\uA8D9\\uA900-\\uA909\\uA9D0-\\uA9D9\\uA9F0-\\uA9F9\\uAA50-\\uAA59\\uABF0-\\uABF9\\uFF10-\\uFF19]"),non_spacing_mark:new RegExp("[\\u0300-\\u036F\\u0483-\\u0487\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0610-\\u061A\\u064B-\\u065E\\u0670\\u06D6-\\u06DC\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0900-\\u0902\\u093C\\u0941-\\u0948\\u094D\\u0951-\\u0955\\u0962\\u0963\\u0981\\u09BC\\u09C1-\\u09C4\\u09CD\\u09E2\\u09E3\\u0A01\\u0A02\\u0A3C\\u0A41\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70\\u0A71\\u0A75\\u0A81\\u0A82\\u0ABC\\u0AC1-\\u0AC5\\u0AC7\\u0AC8\\u0ACD\\u0AE2\\u0AE3\\u0B01\\u0B3C\\u0B3F\\u0B41-\\u0B44\\u0B4D\\u0B56\\u0B62\\u0B63\\u0B82\\u0BC0\\u0BCD\\u0C3E-\\u0C40\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0CBC\\u0CBF\\u0CC6\\u0CCC\\u0CCD\\u0CE2\\u0CE3\\u0D41-\\u0D44\\u0D4D\\u0D62\\u0D63\\u0DCA\\u0DD2-\\u0DD4\\u0DD6\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB4-\\u0EB9\\u0EBB\\u0EBC\\u0EC8-\\u0ECD\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F71-\\u0F7E\\u0F80-\\u0F84\\u0F86\\u0F87\\u0F90-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102D-\\u1030\\u1032-\\u1037\\u1039\\u103A\\u103D\\u103E\\u1058\\u1059\\u105E-\\u1060\\u1071-\\u1074\\u1082\\u1085\\u1086\\u108D\\u109D\\u135F\\u1712-\\u1714\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B7-\\u17BD\\u17C6\\u17C9-\\u17D3\\u17DD\\u180B-\\u180D\\u18A9\\u1920-\\u1922\\u1927\\u1928\\u1932\\u1939-\\u193B\\u1A17\\u1A18\\u1A56\\u1A58-\\u1A5E\\u1A60\\u1A62\\u1A65-\\u1A6C\\u1A73-\\u1A7C\\u1A7F\\u1B00-\\u1B03\\u1B34\\u1B36-\\u1B3A\\u1B3C\\u1B42\\u1B6B-\\u1B73\\u1B80\\u1B81\\u1BA2-\\u1BA5\\u1BA8\\u1BA9\\u1C2C-\\u1C33\\u1C36\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE0\\u1CE2-\\u1CE8\\u1CED\\u1DC0-\\u1DE6\\u1DFD-\\u1DFF\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2CEF-\\u2CF1\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\uA66F\\uA67C\\uA67D\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA825\\uA826\\uA8C4\\uA8E0-\\uA8F1\\uA926-\\uA92D\\uA947-\\uA951\\uA980-\\uA982\\uA9B3\\uA9B6-\\uA9B9\\uA9BC\\uAA29-\\uAA2E\\uAA31\\uAA32\\uAA35\\uAA36\\uAA43\\uAA4C\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uABE5\\uABE8\\uABED\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE26]"),space_combining_mark:new RegExp("[\\u0903\\u093E-\\u0940\\u0949-\\u094C\\u094E\\u0982\\u0983\\u09BE-\\u09C0\\u09C7\\u09C8\\u09CB\\u09CC\\u09D7\\u0A03\\u0A3E-\\u0A40\\u0A83\\u0ABE-\\u0AC0\\u0AC9\\u0ACB\\u0ACC\\u0B02\\u0B03\\u0B3E\\u0B40\\u0B47\\u0B48\\u0B4B\\u0B4C\\u0B57\\u0BBE\\u0BBF\\u0BC1\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCC\\u0BD7\\u0C01-\\u0C03\\u0C41-\\u0C44\\u0C82\\u0C83\\u0CBE\\u0CC0-\\u0CC4\\u0CC7\\u0CC8\\u0CCA\\u0CCB\\u0CD5\\u0CD6\\u0D02\\u0D03\\u0D3E-\\u0D40\\u0D46-\\u0D48\\u0D4A-\\u0D4C\\u0D57\\u0D82\\u0D83\\u0DCF-\\u0DD1\\u0DD8-\\u0DDF\\u0DF2\\u0DF3\\u0F3E\\u0F3F\\u0F7F\\u102B\\u102C\\u1031\\u1038\\u103B\\u103C\\u1056\\u1057\\u1062-\\u1064\\u1067-\\u106D\\u1083\\u1084\\u1087-\\u108C\\u108F\\u109A-\\u109C\\u17B6\\u17BE-\\u17C5\\u17C7\\u17C8\\u1923-\\u1926\\u1929-\\u192B\\u1930\\u1931\\u1933-\\u1938\\u19B0-\\u19C0\\u19C8\\u19C9\\u1A19-\\u1A1B\\u1A55\\u1A57\\u1A61\\u1A63\\u1A64\\u1A6D-\\u1A72\\u1B04\\u1B35\\u1B3B\\u1B3D-\\u1B41\\u1B43\\u1B44\\u1B82\\u1BA1\\u1BA6\\u1BA7\\u1BAA\\u1C24-\\u1C2B\\u1C34\\u1C35\\u1CE1\\u1CF2\\uA823\\uA824\\uA827\\uA880\\uA881\\uA8B4-\\uA8C3\\uA952\\uA953\\uA983\\uA9B4\\uA9B5\\uA9BA\\uA9BB\\uA9BD-\\uA9C0\\uAA2F\\uAA30\\uAA33\\uAA34\\uAA4D\\uAA7B\\uABE3\\uABE4\\uABE6\\uABE7\\uABE9\\uABEA\\uABEC]"),connector_punctuation:new RegExp("[\\u005F\\u203F\\u2040\\u2054\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFF3F]")};function Tt(e){return 97<=e&&e<=122||65<=e&&e<=90||170<=e&&u.letter.test(String.fromCharCode(e))}function Rt(e){return"string"==typeof e&&(e=e.charCodeAt(0)),55296<=e&&e<=56319}function Ft(e){return"string"==typeof e&&(e=e.charCodeAt(0)),56320<=e&&e<=57343}function Lt(e){return 48<=e&&e<=57}function f(e){return!v(e)&&/^[a-z_$][a-z0-9_$]*$/i.test(e)}function Mt(e){return 36==e||95==e||Tt(e)}function Ut(e){var t,n,r,i=e.charCodeAt(0);return Mt(i)||Lt(i)||8204==i||8205==i||(r=e,u.non_spacing_mark.test(r)||u.space_combining_mark.test(r))||(n=e,u.connector_punctuation.test(n))||(t=i,u.digit.test(String.fromCharCode(t)))}function Nt(e){return/^[a-z_$][a-z0-9_$]*$/i.test(e)}function Pt(e,t,n,r,i){this.message=e,this.filename=t,this.line=n,this.col=r,this.pos=i}function qt(e,t,n,r,i){throw new Pt(e,t,n,r,i)}function zt(e,t,n){return e.type==t&&(null==n||e.value==n)}((Pt.prototype=Object.create(Error.prototype)).constructor=Pt).prototype.name="SyntaxError",t(Pt);var It={};function jt(i,o,a,s){var u={text:i,filename:o,pos:0,tokpos:0,line:1,tokline:0,col:0,tokcol:0,newline_before:!1,regex_allowed:!1,comments_before:[],directives:{},directive_stack:[]};function l(){return u.text.charAt(u.pos)}function c(e,t){var n=u.text.charAt(u.pos++);if(e&&!n)throw It;return j(n)?(u.newline_before=u.newline_before||!t,++u.line,u.col=0,t||"\r"!=n||"\n"!=l()||(++u.pos,n="\n")):++u.col,n}function f(e){for(;0<e--;)c()}function p(e){return u.text.substr(u.pos,e.length)==e}function h(){u.tokline=u.line,u.tokcol=u.col,u.tokpos=u.pos}var d=!1;function m(e,t,n){u.regex_allowed="operator"==e&&!$t(t)||"keyword"==e&&U(t)||"punc"==e&&V(t),"punc"==e&&"."==t?d=!0:n||(d=!1);var r={type:e,value:t,line:u.tokline,col:u.tokcol,pos:u.tokpos,endline:u.line,endcol:u.col,endpos:u.pos,nlb:u.newline_before,file:o};return/^(?:num|string|regexp)$/i.test(e)&&(r.raw=i.substring(r.pos,r.endpos)),n||(r.comments_before=u.comments_before,r.comments_after=u.comments_before=[]),u.newline_before=!1,new O(r)}function g(){for(;I(l());)c()}function v(e){qt(e,o,u.tokline,u.tokcol,u.tokpos)}function b(i){var o=!1,a=!1,s=!1,u="."==i,e=function(e){for(var t,n="",r=0;(t=l())&&e(t,r++);)n+=c();return n}(function(e,t){var n,r=e.charCodeAt(0);switch(r){case 120:case 88:return!s&&(s=!0);case 101:case 69:return!!s||!o&&(o=a=!0);case 45:return a||0==t&&!i;case 43:return a;case a=!1,46:return!(u||s||o)&&(u=!0)}return Lt(n=r)||Tt(n)});i&&(e=i+e),q.test(e)&&k.has_directive("use strict")&&v("Legacy octal literals are not allowed in strict mode");var t=function(e){if(P.test(e))return parseInt(e.substr(2),16);if(q.test(e))return parseInt(e.substr(1),8);var t=parseFloat(e);return t==e?t:void 0}(e);if(!isNaN(t))return m("num",t);v("Invalid syntax: "+e)}function y(e){var t=c(!0,e);switch(t.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(n(2));case 117:return String.fromCharCode(n(4));case 10:return"";case 13:if("\n"==l())return c(!0,e),""}return"0"<=t&&t<="7"?function(e){var t=l();"0"<=t&&t<="7"&&(e+=c(!0))[0]<="3"&&"0"<=(t=l())&&t<="7"&&(e+=c(!0));if("0"===e)return"\0";0<e.length&&k.has_directive("use strict")&&v("Legacy octal escape sequences are not allowed in strict mode");return String.fromCharCode(parseInt(e,8))}(t):t}function n(e){for(var t=0;0<e;--e){var n=parseInt(c(!0),16);isNaN(n)&&v("Invalid hex-character pattern in string"),t=t<<4|n}return t}var _=t("Unterminated string constant",function(e){for(var t=c(),n="";;){var r=c(!0,!0);if("\\"==r)r=y(!0);else if(j(r))v("Unterminated string constant");else if(r==t)break;n+=r}var i=m("string",n);return i.quote=e,i});function w(e){var t,n=u.regex_allowed,r=function(){for(var e=u.text,t=u.pos,n=u.text.length;t<n;++t){var r=e[t];if(j(r))return t}return-1}();return-1==r?(t=u.text.substr(u.pos),u.pos=u.text.length):(t=u.text.substring(u.pos,r),u.pos=r),u.col=u.tokcol+(u.pos-u.tokpos),u.comments_before.push(m(e,t,!0)),u.regex_allowed=n,k}var e=t("Unterminated multiline comment",function(){var e=u.regex_allowed,t=function(e,t){var n=u.text.indexOf(e,u.pos);if(t&&-1==n)throw It;return n}("*/",!0),n=u.text.substring(u.pos,t).replace(/\r\n|\r|\u2028|\u2029/g,"\n");return f(n.length+2),u.comments_before.push(m("comment2",n,!0)),u.regex_allowed=e,k});function E(){for(var e,t,n=!1,r="",i=!1;null!=(e=l());)if(n)"u"!=e&&v("Expecting UnicodeEscapeSequence -- uXXXX"),Ut(e=y())||v("Unicode char: "+e.charCodeAt(0)+" is not valid in identifier"),r+=e,n=!1;else if("\\"==e)i=n=!0,c();else{if(!Ut(e))break;r+=c()}return X(r)&&i&&(t=r.charCodeAt(0).toString(16).toUpperCase(),r="\\u"+"0000".substr(t.length)+t+r.slice(1)),r}var A=t("Unterminated regular expression",function(e){for(var t,n=!1,r=!1;t=c(!0);)if(j(t))v("Unexpected line terminator");else if(n)e+="\\"+t,n=!1;else if("["==t)r=!0,e+=t;else if("]"==t&&r)r=!1,e+=t;else{if("/"==t&&!r)break;"\\"==t?n=!0:e+=t}var i=E();try{var o=new RegExp(e,i);return o.raw_source=e,m("regexp",o)}catch(e){v(e.message)}});function x(e){return m("operator",function e(t){if(!l())return t;var n=t+l();return z(n)?(c(),e(n)):t}(e||c()))}function C(){switch(c(),l()){case"/":return c(),w("comment1");case"*":return c(),e()}return u.regex_allowed?A(""):x("/")}function t(t,n){return function(e){try{return n(e)}catch(e){if(e!==It)throw e;v(t)}}}function k(e){if(null!=e)return A(e);for(s&&0==u.pos&&p("#!")&&(h(),f(2),w("comment5"));;){if(g(),h(),a){if(p("\x3c!--")){f(4),w("comment3");continue}if(p("--\x3e")&&u.newline_before){f(3),w("comment4");continue}}var t=l();if(!t)return m("eof");var n=t.charCodeAt(0);switch(n){case 34:case 39:return _(t);case 46:return c(),Lt(l().charCodeAt(0))?b("."):m("punc",".");case 47:var r=C();if(r===k)continue;return r}if(Lt(n))return b();if(Bt(t))return m("punc",c());if(N(t))return x();if(92==n||Mt(n))return void 0,i=E(),d?m("name",i):M(i)?m("atom",i):X(i)?z(i)?m("operator",i):m("keyword",i):m("name",i);break}var i;v("Unexpected character '"+t+"'")}return k.context=function(e){return e&&(u=e),u},k.add_directive=function(e){u.directive_stack[u.directive_stack.length-1].push(e),void 0===u.directives[e]?u.directives[e]=1:u.directives[e]++},k.push_directives_stack=function(){u.directive_stack.push([])},k.pop_directives_stack=function(){for(var e=u.directive_stack[u.directive_stack.length-1],t=0;t<e.length;t++)u.directives[e[t]]--;u.directive_stack.pop()},k.has_directive=function(e){return 0<u.directives[e]},k}var Vt=ie(["typeof","void","delete","--","++","!","~","-","+"]),$t=ie(["--","++"]),Ht=ie(["=","+=","-=","/=","*=","%=",">>=","<<=",">>>=","|=","^=","&="]),Kt=function(e,t){for(var n=0;n<e.length;++n)for(var r=e[n],i=0;i<r.length;++i)t[r[i]]=n+1;return t}([["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]],{}),Gt=ie(["atom","num","string","regexp","name"]);function Yt(e,u){u=K(u,{bare_returns:!1,expression:!1,filename:null,html5_comments:!0,shebang:!0,strict:!1,toplevel:null},!0);var l={input:"string"==typeof e?jt(e,u.filename,u.html5_comments,u.shebang):e,token:null,prev:null,peeked:null,in_function:0,in_directives:!0,in_loop:0,labels:[]};function c(e,t){return zt(l.token,e,t)}function f(){return l.peeked||(l.peeked=l.input())}function p(){return l.prev=l.token,l.peeked?(l.token=l.peeked,l.peeked=null):l.token=l.input(),l.in_directives=l.in_directives&&("string"==l.token.type||c("punc",";")),l.token}function h(){return l.prev}function d(e,t,n,r){var i=l.input.context();qt(e,i.filename,null!=t?t:i.tokline,null!=n?n:i.tokcol,null!=r?r:i.tokpos)}function n(e,t){d(t,e.line,e.col)}function m(e){null==e&&(e=l.token),n(e,"Unexpected token: "+e.type+" ("+e.value+")")}function g(e,t){if(c(e,t))return p();n(l.token,"Unexpected token "+l.token.type+" «"+l.token.value+"», expected "+e+" «"+t+"»")}function v(e){return g("punc",e)}function b(e){return e.nlb||!oe(e.comments_before,function(e){return!e.nlb})}function y(){return!u.strict&&(c("eof")||c("punc","}")||b(l.token))}function _(e){c("punc",";")?p():e||y()||m()}function w(){v("(");var e=V(!0);return v(")"),e}function t(r){return function(){var e=l.token,t=r.apply(null,arguments),n=h();return t.start=e,t.end=n,t}}function E(){(c("operator","/")||c("operator","/="))&&(l.peeked=null,l.token=l.input(l.token.value.substr(1)))}l.token=p();var A=t(function(e){switch(E(),l.token.type){case"string":if(l.in_directives){var t=f();-1==l.token.raw.indexOf("\\")&&(zt(t,"punc",";")||zt(t,"punc","}")||b(t)||zt(t,"eof"))?l.input.add_directive(l.token.value):l.in_directives=!1}var n=l.in_directives,r=x();return n?new ce(r.body):r;case"num":case"regexp":case"operator":case"atom":return x();case"name":return zt(f(),"punc",":")?function(){var t=U(Z);H(function(e){return e.name==t.name},l.labels)&&d("Label "+t.name+" defined twice");v(":"),l.labels.push(t);var e=A();l.labels.pop(),e instanceof ge||t.references.forEach(function(e){e instanceof Le&&(e=e.label.start,d("Continue label `"+t.name+"` refers to non-IterationStatement.",e.line,e.col,e.pos))});return new me({body:e,label:t})}():x();case"punc":switch(l.token.value){case"{":return new he({start:l.token,body:O(),end:h()});case"[":case"(":return x();case";":return l.in_directives=!1,p(),new de;default:m()}case"keyword":switch(l.token.value){case"break":return p(),C(Fe);case"continue":return p(),C(Le);case"debugger":return p(),_(),new le;case"do":p();var i=$(A);g("keyword","while");var o=w();return _(!0),new be({body:i,condition:o});case"while":return p(),new ye({condition:w(),body:$(A)});case"for":return p(),function(){v("(");var e=null;if(!c("punc",";")&&(e=c("keyword","var")?(p(),D(!0)):V(!0,!0),c("operator","in")))return e instanceof $e?1<e.definitions.length&&d("Only one variable declaration allowed in for..in loop",e.start.line,e.start.col,e.start.pos):I(e)||d("Invalid left-hand side in for..in loop",e.start.line,e.start.col,e.start.pos),p(),t=e,n=V(!0),v(")"),new we({init:t,object:n,body:$(A)});var t,n;return function(e){v(";");var t=c("punc",";")?null:V(!0);v(";");var n=c("punc",")")?null:V(!0);return v(")"),new _e({init:e,condition:t,step:n,body:$(A)})}(e)}();case"function":return!e&&l.input.has_directive("use strict")&&d("In strict mode code, functions can only be declared at top level or immediately within another function."),p(),k(Se);case"if":return p(),function(){var e=w(),t=A(),n=null;c("keyword","else")&&(p(),n=A());return new Me({condition:e,body:t,alternative:n})}();case"return":0!=l.in_function||u.bare_returns||d("'return' outside of function"),p();var a=null;return c("punc",";")?p():y()||(a=V(!0),_()),new Te({value:a});case"switch":return p(),new Ue({expression:w(),body:$(S)});case"throw":p(),b(l.token)&&d("Illegal newline after 'throw'");a=V(!0);return _(),new G({value:a});case"try":return p(),function(){var e=O(),t=null,n=null;if(c("keyword","catch")){var r=l.token;p(),v("(");var i=U(dt);v(")"),t=new Ie({start:r,argname:i,body:O(),end:h()})}if(c("keyword","finally")){var r=l.token;p(),n=new je({start:r,body:O(),end:h()})}t||n||d("Missing catch/finally blocks");return new ze({body:e,bcatch:t,bfinally:n})}();case"var":p();var s=D();return _(),s;case"with":return l.input.has_directive("use strict")&&d("Strict mode may not include a with statement"),p(),new Ee({expression:w(),body:A()})}}m()});function x(e){return new fe({body:(e=V(!0),_(),e)})}function C(e){var t,n=null;y()||(n=U(J,!0)),null!=n?((t=H(function(e){return e.name==n.name},l.labels))||d("Undefined label "+n.name),n.thedef=t):0==l.in_loop&&d(e.TYPE+" not inside a loop or switch"),_();var r=new e({label:n});return t&&t.references.push(r),r}var k=function(e){var t=e===Se,n=c("name")?U(t?pt:ht):null;t&&!n&&m(),!n||e===ke||n instanceof lt||m(h()),v("(");for(var r=[],i=!0;!c("punc",")");)i?i=!1:v(","),r.push(U(ft));p();var o=l.in_loop,a=l.labels;++l.in_function,l.in_directives=!0,l.input.push_directives_stack(),l.in_loop=0,l.labels=[];var s=O(!0);return l.input.has_directive("use strict")&&(n&&M(n),r.forEach(M)),l.input.pop_directives_stack(),--l.in_function,l.in_loop=o,l.labels=a,new e({name:n,argnames:r,body:s})};function O(e){v("{");for(var t=[];!c("punc","}");)c("eof")&&m(),t.push(A(e));return p(),t}function S(){v("{");for(var e,t=[],n=null,r=null;!c("punc","}");)c("eof")&&m(),c("keyword","case")?(r&&(r.end=h()),n=[],r=new qe({start:(e=l.token,p(),e),expression:V(!0),body:n}),t.push(r),v(":")):c("keyword","default")?(r&&(r.end=h()),n=[],r=new Pe({start:(e=l.token,p(),v(":"),e),body:n}),t.push(r)):(n||m(),n.push(A()));return r&&(r.end=h()),p(),t}var D=function(e){return new $e({start:h(),definitions:function(e){for(var t=[];t.push(new He({start:l.token,name:U(ct),value:c("operator","=")?(p(),V(!1,e)):null,end:h()})),c("punc",",");)p();return t}(e),end:h()})};var s=function(e){if(c("operator","new"))return function(e){var t=l.token;g("operator","new");var n,r=s(!1);c("punc","(")?(p(),n=B(")")):n=[];var i=new Ge({start:t,expression:r,args:n,end:h()});return N(i),P(i,e)}(e);var t=l.token;if(c("punc")){switch(t.value){case"(":p();var n=V(!0),r=t.comments_before.length;if([].unshift.apply(n.start.comments_before,t.comments_before),t.comments_before=n.start.comments_before,0==(t.comments_before_length=r)&&0<t.comments_before.length){var i=t.comments_before[0];i.nlb||(i.nlb=t.nlb,t.nlb=!1)}t.comments_after=n.start.comments_after,n.start=t,v(")");var o=h();return o.comments_before=n.end.comments_before,[].push.apply(n.end.comments_after,o.comments_after),o.comments_after=n.end.comments_after,n.end=o,n instanceof Ke&&N(n),P(n,e);case"[":return P(T(),e);case"{":return P(R(),e)}m()}if(c("keyword","function")){p();var a=k(Oe);return a.start=t,a.end=h(),P(a,e)}if(Gt(l.token.type))return P(function(){var e,t=l.token;switch(t.type){case"name":e=L(mt);break;case"num":e=new yt({start:t,end:t,value:t.value});break;case"string":e=new bt({start:t,end:t,value:t.value,quote:t.quote});break;case"regexp":e=new _t({start:t,end:t,value:t.value});break;case"atom":switch(t.value){case"false":e=new Ot({start:t,end:t});break;case"true":e=new St({start:t,end:t});break;case"null":e=new wt({start:t,end:t})}}return p(),e}(),e);m()};function B(e,t,n){for(var r=!0,i=[];!c("punc",e)&&(r?r=!1:v(","),!t||!c("punc",e));)c("punc",",")&&n?i.push(new xt({start:l.token,end:l.token})):i.push(V(!1));return p(),i}var T=t(function(){return v("["),new it({elements:B("]",!u.strict,!0)})}),a=t(function(){return k(ke)}),R=t(function(){v("{");for(var e=!0,t=[];!c("punc","}")&&(e?e=!1:v(","),u.strict||!c("punc","}"));){var n=l.token,r=n.type,i=F();if("name"==r&&!c("punc",":")){var o=new Q({start:l.token,name:""+F(),end:h()});if("get"==i){t.push(new W({start:n,key:o,value:a(),end:h()}));continue}if("set"==i){t.push(new Y({start:n,key:o,value:a(),end:h()}));continue}}v(":"),t.push(new st({start:n,quote:n.quote,key:""+i,value:V(!1),end:h()}))}return p(),new ot({properties:t})});function F(){var e=l.token;switch(e.type){case"operator":X(e.value)||m();case"num":case"string":case"name":case"keyword":case"atom":return p(),e.value;default:m()}}function L(e){var t=l.token.value;return new("this"==t?gt:e)({name:String(t),start:l.token,end:l.token})}function M(e){"arguments"!=e.name&&"eval"!=e.name||d("Unexpected "+e.name+" in strict mode",e.start.line,e.start.col,e.start.pos)}function U(e,t){if(!c("name"))return t||d("Name expected"),null;var n=L(e);return l.input.has_directive("use strict")&&n instanceof lt&&M(n),p(),n}function N(e){for(var t=e.start,n=t.comments_before,r=ae(t,"comments_before_length")?t.comments_before_length:n.length;0<=--r;){var i=n[r];if(/[@#]__PURE__/.test(i.value)){e.pure=i;break}}}var P=function(e,t){var n,r=e.start;if(c("punc","."))return p(),P(new Qe({start:r,expression:e,property:(n=l.token,"name"!=n.type&&m(),p(),n.value),end:h()}),t);if(c("punc","[")){p();var i=V(!0);return v("]"),P(new Ze({start:r,expression:e,property:i,end:h()}),t)}if(t&&c("punc","(")){p();var o=new Ke({start:r,expression:e,args:B(")"),end:h()});return N(o),P(o,!0)}return e},q=function(e){var t=l.token;if(c("operator")&&Vt(t.value)){p(),E();var n=i(Xe,t,q(e));return n.start=t,n.end=h(),n}for(var r=s(e);c("operator")&&$t(l.token.value)&&!b(l.token);)(r=i(et,l.token,r)).start=t,r.end=l.token,p();return r};function i(e,t,n){var r=t.value;switch(r){case"++":case"--":I(n)||d("Invalid use of "+r+" operator",t.line,t.col,t.pos);break;case"delete":n instanceof mt&&l.input.has_directive("use strict")&&d("Calling delete on expression not allowed in strict mode",n.start.line,n.start.col,n.start.pos)}return new e({operator:r,expression:n})}var z=function(e,t,n){var r=c("operator")?l.token.value:null;"in"==r&&n&&(r=null);var i=null!=r?Kt[r]:null;if(null!=i&&t<i){p();var o=z(q(!0),i,n);return z(new tt({start:e.start,left:e,operator:r,right:o,end:o.end}),t,n)}return e};var o=function(e){var t,n=l.token,r=(t=e,z(q(!0),0,t));if(c("operator","?")){p();var i=V(!1);return v(":"),new nt({start:n,condition:r,consequent:i,alternative:V(!1,e),end:h()})}return r};function I(e){return e instanceof We||e instanceof mt}var j=function(e){var t=l.token,n=o(e),r=l.token.value;if(c("operator")&&Ht(r)){if(I(n))return p(),new rt({start:t,left:n,operator:r,right:j(e),end:h()});d("Invalid assignment")}return n},V=function(e,t){for(var n=l.token,r=[];r.push(j(t)),e&&c("punc",",");)p(),e=!0;return 1==r.length?r[0]:new Ye({start:n,expressions:r,end:f()})};function $(e){++l.in_loop;var t=e();return--l.in_loop,t}return u.expression?V(!0):function(){var e=l.token,t=[];for(l.input.push_directives_stack();!c("eof");)t.push(A(!0));l.input.pop_directives_stack();var n=h(),r=u.toplevel;return r?(r.body=r.body.concat(t),r.end=n):r=new xe({start:e,body:t,end:n}),r}()}function Wt(e,t){Dt.call(this),this.before=e,this.after=t}function i(e,t,n){this.name=t.name,this.orig=[t],this.init=n,this.eliminated=0,this.scope=e,this.references=[],this.replaced=0,this.global=!1,this.mangled_name=null,this.undeclared=!1,this.id=i.next_id++}function p(e,t){var n=e.names_in_use;return n||(e.names_in_use=n=Object.create(e.mangled_names||null),e.cname_holes=[],e.enclosed.forEach(function(e){e.unmangleable(t)&&(n[e.name]=!0)})),n}function c(e){return e=K(e,{eval:!1,ie8:!1,keep_fnames:!1,reserved:[],toplevel:!1}),Array.isArray(e.reserved)||(e.reserved=[]),m(e.reserved,"arguments"),e}Wt.prototype=new Dt,function(o){function e(e,i){e.DEFMETHOD("transform",function(e,t){var n,r;return e.push(this),e.before&&(n=e.before(this,i,t)),n===o&&(i(n=this,e),e.after&&(r=e.after(n,t))!==o&&(n=r)),e.pop(),n})}function n(e,t){return re(e,function(e){return e.transform(t,!0)})}e(se,$),e(me,function(e,t){e.label=e.label.transform(t),e.body=e.body.transform(t)}),e(fe,function(e,t){e.body=e.body.transform(t)}),e(pe,function(e,t){e.body=n(e.body,t)}),e(ve,function(e,t){e.condition=e.condition.transform(t),e.body=e.body.transform(t)}),e(_e,function(e,t){e.init&&(e.init=e.init.transform(t)),e.condition&&(e.condition=e.condition.transform(t)),e.step&&(e.step=e.step.transform(t)),e.body=e.body.transform(t)}),e(we,function(e,t){e.init=e.init.transform(t),e.object=e.object.transform(t),e.body=e.body.transform(t)}),e(Ee,function(e,t){e.expression=e.expression.transform(t),e.body=e.body.transform(t)}),e(Be,function(e,t){e.value&&(e.value=e.value.transform(t))}),e(Re,function(e,t){e.label&&(e.label=e.label.transform(t))}),e(Me,function(e,t){e.condition=e.condition.transform(t),e.body=e.body.transform(t),e.alternative&&(e.alternative=e.alternative.transform(t))}),e(Ue,function(e,t){e.expression=e.expression.transform(t),e.body=n(e.body,t)}),e(qe,function(e,t){e.expression=e.expression.transform(t),e.body=n(e.body,t)}),e(ze,function(e,t){e.body=n(e.body,t),e.bcatch&&(e.bcatch=e.bcatch.transform(t)),e.bfinally&&(e.bfinally=e.bfinally.transform(t))}),e(Ie,function(e,t){e.argname=e.argname.transform(t),e.body=n(e.body,t)}),e(Ve,function(e,t){e.definitions=n(e.definitions,t)}),e(He,function(e,t){e.name=e.name.transform(t),e.value&&(e.value=e.value.transform(t))}),e(Ce,function(e,t){e.name&&(e.name=e.name.transform(t)),e.argnames=n(e.argnames,t),e.body=n(e.body,t)}),e(Ke,function(e,t){e.expression=e.expression.transform(t),e.args=n(e.args,t)}),e(Ye,function(e,t){e.expressions=n(e.expressions,t)}),e(Qe,function(e,t){e.expression=e.expression.transform(t)}),e(Ze,function(e,t){e.expression=e.expression.transform(t),e.property=e.property.transform(t)}),e(Je,function(e,t){e.expression=e.expression.transform(t)}),e(tt,function(e,t){e.left=e.left.transform(t),e.right=e.right.transform(t)}),e(nt,function(e,t){e.condition=e.condition.transform(t),e.consequent=e.consequent.transform(t),e.alternative=e.alternative.transform(t)}),e(it,function(e,t){e.elements=n(e.elements,t)}),e(ot,function(e,t){e.properties=n(e.properties,t)}),e(at,function(e,t){e.value=e.value.transform(t)})}(),i.next_id=1,i.prototype={unmangleable:function(e){return e||(e={}),this.global&&!e.toplevel||this.undeclared||!e.eval&&(this.scope.uses_eval||this.scope.uses_with)||e.keep_fnames&&(this.orig[0]instanceof ht||this.orig[0]instanceof pt)},mangle:function(e){var t=e.cache&&e.cache.props;if(this.global&&t&&t.has(this.name))this.mangled_name=t.get(this.name);else if(!this.mangled_name&&!this.unmangleable(e)){var n,r=this.scope,i=this.orig[0];e.ie8&&i instanceof ht&&(r=r.parent_scope),(n=this.redefined())?this.mangled_name=n.mangled_name||n.name:this.mangled_name=function(e,r,t){var n=p(e,r),i=e.cname_holes,o=Object.create(null);if(e instanceof Oe&&e.name&&t.orig[0]instanceof ft){var a=e.name.definition();o[a.mangled_name||a.name]=!0}var s,u=[e];t.references.forEach(function(e){var t=e.scope;do{if(!(u.indexOf(t)<0))break;for(var n in p(t,r))o[n]=!0;u.push(t)}while(t=t.parent_scope)});for(var l=0,c=i.length;l<c;l++)if(s=b(i[l]),!o[s])return i.splice(l,1),e.names_in_use[s]=!0,s;for(;;)if(s=b(++e.cname),!n[s]&&f(s)&&!ee(s,r.reserved)){if(!o[s])break;i.push(e.cname)}return e.names_in_use[s]=!0,s}(r,e,this),this.global&&t&&t.set(this.name,this.mangled_name)}},redefined:function(){return this.defun&&this.defun.variables.get(this.name)}},xe.DEFMETHOD("figure_out_scope",function(l){l=K(l,{cache:null,ie8:!1});var a=this,c=a.parent_scope=null,f=new R,p=null,s=new Dt(function(e,t){if(e instanceof Ie){var n=c;return(c=new Ae(e)).init_scope_vars(n),t(),c=n,!0}if(e instanceof Ae){e.init_scope_vars(c);n=c;var r=p,i=f;return p=c=e,f=new R,t(),c=n,p=r,f=i,!0}if(e instanceof me){var o=e.label;if(f.has(o.name))throw new Error(B("Label {name} defined twice",o));return f.set(o.name,o),t(),f.del(o.name),!0}if(e instanceof Ee)for(var a=c;a;a=a.parent_scope)a.uses_with=!0;else if(e instanceof ut&&(e.scope=c),e instanceof Z&&((e.thedef=e).references=[]),e instanceof ht)p.def_function(e,"arguments"==e.name?void 0:p);else if(e instanceof pt)(e.scope=p.parent_scope).def_function(e,p);else if(e instanceof ct){if(p.def_variable(e,"SymbolVar"==e.TYPE?null:void 0),p!==c){e.mark_enclosed(l);var s=c.find_variable(e);e.thedef!==s&&(e.thedef=s),e.reference(l)}}else if(e instanceof dt)c.def_variable(e).defun=p;else if(e instanceof J){var u=f.get(e.name);if(!u)throw new Error(B("Undefined label {name} [{line},{col}]",{name:e.name,line:e.start.line,col:e.start.col}));e.thedef=u}});a.walk(s),a.globals=new R;s=new Dt(function(e,t){if(e instanceof Re&&e.label)return e.label.thedef.references.push(e),!0;if(e instanceof mt){var n=e.name;if("eval"==n&&s.parent()instanceof Ke)for(var r=e.scope;r&&!r.uses_eval;r=r.parent_scope)r.uses_eval=!0;var i=e.scope.find_variable(n);return i?i.scope instanceof Ce&&"arguments"==n&&(i.scope.uses_arguments=!0):i=a.def_global(e),e.thedef=i,e.reference(l),!0}var o;if(e instanceof dt&&(o=e.definition().redefined()))for(r=e.scope;r&&(m(r.enclosed,o),r!==o.scope);)r=r.parent_scope});a.walk(s),l.ie8&&a.walk(new Dt(function(e,t){if(e instanceof dt){var n=e.name,r=e.thedef.references,i=e.thedef.defun,o=i.find_variable(n)||a.globals.get(n)||i.def_variable(e);return r.forEach(function(e){e.thedef=o,e.reference(l)}),e.thedef=o,e.reference(l),!0}}))}),xe.DEFMETHOD("def_global",function(e){var t=this.globals,n=e.name;if(t.has(n))return t.get(n);var r=new i(this,e);return r.undeclared=!0,r.global=!0,t.set(n,r),r}),Ae.DEFMETHOD("init_scope_vars",function(e){this.variables=new R,this.functions=new R,this.uses_with=!1,this.uses_eval=!1,this.parent_scope=e,this.enclosed=[],this.cname=-1}),Ce.DEFMETHOD("init_scope_vars",function(){Ae.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1,this.def_variable(new ft({name:"arguments",start:this.start,end:this.end}))}),ut.DEFMETHOD("mark_enclosed",function(e){for(var t=this.definition(),n=this.scope;n&&(m(n.enclosed,t),e.keep_fnames&&n.functions.each(function(e){m(t.scope.enclosed,e)}),n!==t.scope);)n=n.parent_scope}),ut.DEFMETHOD("reference",function(e){this.definition().references.push(this),this.mark_enclosed(e)}),Ae.DEFMETHOD("find_variable",function(e){return e instanceof ut&&(e=e.name),this.variables.get(e)||this.parent_scope&&this.parent_scope.find_variable(e)}),Ae.DEFMETHOD("def_function",function(e,t){var n=this.def_variable(e,t);return(!n.init||n.init instanceof Se)&&(n.init=t),this.functions.set(e.name,n),n}),Ae.DEFMETHOD("def_variable",function(e,t){var n=this.variables.get(e.name);return n?(n.orig.push(e),n.init&&(n.scope!==e.scope||n.init instanceof Oe)&&(n.init=t)):(n=new i(this,e,t),this.variables.set(e.name,n),n.global=!this.parent_scope),e.thedef=n}),ut.DEFMETHOD("unmangleable",function(e){var t=this.definition();return!t||t.unmangleable(e)}),Z.DEFMETHOD("unmangleable",te),ut.DEFMETHOD("unreferenced",function(){return 0==this.definition().references.length&&!(this.scope.uses_eval||this.scope.uses_with)}),ut.DEFMETHOD("definition",function(){return this.thedef}),ut.DEFMETHOD("global",function(){return this.definition().global}),xe.DEFMETHOD("mangle_names",function(a){a=c(a);var s=-1;if(a.cache&&a.cache.props){var t=this.mangled_names=Object.create(null);a.cache.props.each(function(e){t[e]=!0})}var u=[],e=new Dt(function(e,t){if(e instanceof me){var n=s;return t(),s=n,!0}if(e instanceof Ae)return t(),a.cache&&e instanceof xe&&e.globals.each(l),e.variables.each(l),!0;if(e instanceof Z){for(var r;!f(r=b(++s)););return e.mangled_name=r,!0}if(!a.ie8&&e instanceof Ie){var i=e.argname.definition(),o=i.redefined();return o&&(u.push(i),i.references.forEach(function(e){e.thedef=o,e.reference(a),e.thedef=i})),t(),o||l(i),!0}});function l(e){ee(e.name,a.reserved)||e.mangle(a)}this.walk(e),u.forEach(l)}),xe.DEFMETHOD("find_colliding_names",function(n){var r=n.cache&&n.cache.props,t=Object.create(null);return n.reserved.forEach(i),this.globals.each(o),this.walk(new Dt(function(e){e instanceof Ae&&e.variables.each(o),e instanceof dt&&o(e.definition())})),t;function i(e){t[e]=!0}function o(e){var t=e.name;if(e.global&&r&&r.has(t))t=r.get(t);else if(!e.unmangleable(n))return;i(t)}}),xe.DEFMETHOD("expand_names",function(n){b.reset(),b.sort(),n=c(n);var r=this.find_colliding_names(n),i=0;function t(t){if(!(t.global&&n.cache||t.unmangleable(n)||ee(t.name,n.reserved))){var e=t.redefined();t.name=e?e.name:function(){for(var e;e=b(i++),r[e]||!f(e););return e}(),t.orig.forEach(function(e){e.name=t.name}),t.references.forEach(function(e){e.name=t.name})}}this.globals.each(t),this.walk(new Dt(function(e){e instanceof Ae&&e.variables.each(t),e instanceof dt&&t(e.definition())}))}),se.DEFMETHOD("tail_node",S),Ye.DEFMETHOD("tail_node",function(){return this.expressions[this.expressions.length-1]}),xe.DEFMETHOD("compute_char_frequency",function(n){n=c(n),b.reset();try{se.prototype.print=function(e,t){this._print(e,t),this instanceof ut&&!this.unmangleable(n)?b.consider(this.name,-1):n.properties&&(this instanceof Qe?b.consider(this.property,-1):this instanceof Ze&&function e(t){t instanceof bt?b.consider(t.value,-1):t instanceof nt?(e(t.consequent),e(t.alternative)):t instanceof Ye&&e(t.tail_node())}(this.property))},b.consider(this.print_to_string(),1)}finally{se.prototype.print=se.prototype._print}b.sort()});var b=function(){var r,i,e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_".split(""),t="0123456789".split("");function n(){i=Object.create(null),e.forEach(function(e){i[e]=0}),t.forEach(function(e){i[e]=0})}function o(e,t){return i[t]-i[e]}function a(e){var t="",n=54;for(e++;t+=r[--e%n],e=Math.floor(e/n),n=64,0<e;);return t}return a.consider=function(e,t){for(var n=e.length;0<=--n;)i[e[n]]+=t},a.sort=function(){r=s(e,o).concat(s(t,o))},(a.reset=n)(),a}(),Qt=/^$|[;{][\s\n]*$/;function Zt(e){return"comment2"==e.type&&/@preserve|@license|@cc_on/i.test(e.value)}function Jt(s){var e=!s;s=K(s,{ascii_only:!1,beautify:!1,bracketize:!1,comments:!1,ie8:!1,indent_level:4,indent_start:0,inline_script:!0,keep_quoted_props:!1,max_line_len:!1,preamble:null,preserve_line:!1,quote_keys:!1,quote_style:0,semicolons:!0,shebang:!0,source_map:null,webkit:!1,width:80,wrap_iife:!1},!0);var u=te;if(s.comments){var t=s.comments;if("string"==typeof s.comments&&/^\/.*\/[a-zA-Z]*$/.test(s.comments)){var n=s.comments.lastIndexOf("/");t=new RegExp(s.comments.substr(1,n-1),s.comments.substr(n+1))}u=t instanceof RegExp?function(e){return"comment5"!=e.type&&t.test(e.value)}:"function"==typeof t?function(e){return"comment5"!=e.type&&t(this,e)}:"some"===t?Zt:ne}var i=0,a=0,l=1,c=0,f="",p=s.ascii_only?function(e,n){return e.replace(/[\u0000-\u001f\u007f-\uffff]/g,function(e){var t=e.charCodeAt(0).toString(16);if(t.length<=2&&!n){for(;t.length<2;)t="0"+t;return"\\x"+t}for(;t.length<4;)t="0"+t;return"\\u"+t})}:function(e){for(var t="",n=0,r=e.length;n<r;n++)Rt(e[n])&&!Ft(e[n+1])||Ft(e[n])&&!Rt(e[n-1])?t+="\\u"+e.charCodeAt(n).toString(16):t+=e[n];return t};function o(e,t){var n=function(n,e){var r=0,i=0;function t(){return"'"+n.replace(/\x27/g,"\\'")+"'"}function o(){return'"'+n.replace(/\x22/g,'\\"')+'"'}switch(n=n.replace(/[\\\b\f\n\r\v\t\x22\x27\u2028\u2029\0\ufeff]/g,function(e,t){switch(e){case'"':return++r,'"';case"'":return++i,"'";case"\\":return"\\\\";case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\v":return s.ie8?"\\x0B":"\\v";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";case"\ufeff":return"\\ufeff";case"\0":return/[0-9]/.test(n.charAt(t+1))?"\\x00":"\\0"}return e}),n=p(n),s.quote_style){case 1:return t();case 2:return o();case 3:return"'"==e?t():o();default:return i<r?t():o()}}(e,t);return s.inline_script&&(n=(n=(n=n.replace(/<\x2fscript([>\/\t\n\f\r ])/gi,"<\\/script$1")).replace(/\x3c!--/g,"\\x3c!--")).replace(/--\x3e/g,"--\\x3e")),n}function r(e){return function e(t,n){if(n<=0)return"";if(1==n)return t;var r=e(t,n>>1);return r+=r,1&n&&(r+=t),r}(" ",s.indent_start+i-e*s.indent_level)}var h,d,m=!1,g=!1,v=0,b=!1,y=!1,_=-1,w="",E=s.source_map&&[],A=E?function(){E.forEach(function(t){try{s.source_map.add(t.token.file,t.line,t.col,t.token.line,t.token.col,t.name||"name"!=t.token.type?t.name:t.token.value)}catch(e){se.warn("Couldn't figure out mapping for {file}:{line},{col} → {cline},{ccol} [{name}]",{file:t.token.file,line:t.token.line,col:t.token.col,cline:t.line,ccol:t.col,name:t.name||""})}}),E=[]}:$,x=s.max_line_len?function(){if(a>s.max_line_len){if(v){var e=f.slice(0,v),t=f.slice(v);if(E){var n=t.length-a;E.forEach(function(e){e.line++,e.col+=n})}f=e+"\n"+t,l++,c++,a=t.length}a>s.max_line_len&&se.warn("Output exceeds {max_line_len} characters",s)}v&&(v=0,A())}:$,C=ie("( [ + * / - , .");function k(e){var t=(e=String(e)).charAt(0);b&&t&&(b=!1,"\n"!=t&&(k("\n"),S())),y&&t&&(y=!1,/[\s;})]/.test(t)||O()),_=-1;var n=w.charAt(w.length-1);if(g&&(g=!1,(":"==n&&"}"==t||(!t||";}".indexOf(t)<0)&&";"!=n)&&(s.semicolons||C(t)?(f+=";",a++,c++):(x(),f+="\n",c++,l++,a=0,/^\s+$/.test(e)&&(g=!0)),s.beautify||(m=!1))),!s.beautify&&s.preserve_line&&U[U.length-1])for(var r=U[U.length-1].start.line;l<r;)x(),f+="\n",c++,l++,a=0,m=!1;m&&((Ut(n)&&(Ut(t)||"\\"==t)||"/"==t&&t==n||("+"==t||"-"==t)&&t==w)&&(f+=" ",a++,c++),m=!1),h&&(E.push({token:h,name:d,line:l,col:a}),h=!1,v||A()),f+=e,c+=e.length;var i=e.split(/\r?\n/),o=i.length-1;l+=o,a+=i[0].length,0<o&&(x(),a=i[o].length),w=e}var O=s.beautify?function(){k(" ")}:function(){m=!0},S=s.beautify?function(e){s.beautify&&k(r(e?.5:0))}:$,D=s.beautify?function(e,t){!0===e&&(e=F());var n=i;i=e;var r=t();return i=n,r}:function(e,t){return t()},B=s.beautify?function(){if(_<0)return k("\n");"\n"!=f[_]&&(f=f.slice(0,_)+"\n"+f.slice(_),c++,l++),_++}:s.max_line_len?function(){x(),v=f.length}:$,T=s.beautify?function(){k(";")}:function(){g=!0};function R(){g=!1,k(";")}function F(){return i+s.indent_level}function L(){return v&&x(),f}function M(){var e=f.lastIndexOf("\n");return/^ *$/.test(f.slice(e+1))}var U=[];return{get:L,toString:L,indent:S,indentation:function(){return i},current_width:function(){return a-i},should_break:function(){return s.width&&this.current_width()>=s.width},has_parens:function(){return"("==f.slice(-1)},newline:B,print:k,space:O,comma:function(){k(","),O()},colon:function(){k(":"),O()},last:function(){return w},semicolon:T,force_semicolon:R,to_utf8:p,print_name:function(e){var t;k((t=(t=e).toString(),t=p(t,!0)))},print_string:function(e,t,n){var r=o(e,t);!0===n&&-1===r.indexOf("\\")&&(Qt.test(f)||R(),R()),k(r)},encode_string:o,next_indent:F,with_indent:D,with_block:function(e){var t;return k("{"),B(),D(F(),function(){t=e()}),S(),k("}"),t},with_parens:function(e){k("(");var t=e();return k(")"),t},with_square:function(e){k("[");var t=e();return k("]"),t},add_mapping:E?function(e,t){h=e,d=t}:$,option:function(e){return s[e]},prepend_comments:e?$:function(e){var r=this,t=e.start;if(t&&(!t.comments_before||t.comments_before._dumped!==r)){var i=t.comments_before;if(i||(i=t.comments_before=[]),i._dumped=r,e instanceof Be&&e.value){var o=new Dt(function(e){var t=o.parent();if(!(t instanceof Be||t instanceof tt&&t.left===e||"Call"==t.TYPE&&t.expression===e||t instanceof nt&&t.condition===e||t instanceof Qe&&t.expression===e||t instanceof Ye&&t.expressions[0]===e||t instanceof Ze&&t.expression===e||t instanceof et))return!0;var n=e.start.comments_before;n&&n._dumped!==r&&(n._dumped=r,i=i.concat(n))});o.push(e),e.value.walk(o)}if(0==c){0<i.length&&s.shebang&&"comment5"==i[0].type&&(k("#!"+i.shift().value+"\n"),S());var n=s.preamble;n&&k(n.replace(/\r\n?|[\n\u2028\u2029]|\s*$/g,"\n"))}if(0!=(i=i.filter(u,e)).length){var a=M();i.forEach(function(e,t){a||(e.nlb?(k("\n"),S(),a=!0):0<t&&O()),/comment[134]/.test(e.type)?(k("//"+e.value.replace(/[@#]__PURE__/g," ")+"\n"),S(),a=!0):"comment2"==e.type&&(k("/*"+e.value.replace(/[@#]__PURE__/g," ")+"*/"),a=!1)}),a||(t.nlb?(k("\n"),S()):O())}}},append_comments:e||u===te?$:function(e,n){var t=e.end;if(t){var r=t[n?"comments_before":"comments_after"];if(r&&r._dumped!==this&&(e instanceof ue||oe(r,function(e){return!/comment[134]/.test(e.type)}))){r._dumped=this;var i=f.length;r.filter(u,e).forEach(function(e,t){y=!1,b?(k("\n"),S(),b=!1):e.nlb&&(0<t||!M())?(k("\n"),S()):(0<t||!n)&&O(),/comment[134]/.test(e.type)?(k("//"+e.value.replace(/[@#]__PURE__/g," ")),b=!0):"comment2"==e.type&&(k("/*"+e.value.replace(/[@#]__PURE__/g," ")+"*/"),y=!0)}),f.length>i&&(_=i)}}},line:function(){return l},col:function(){return a},pos:function(){return c},push_node:function(e){U.push(e)},pop_node:function(){return U.pop()},parent:function(e){return U[U.length-2-(e||0)]}}}function Xt(e,t){if(!(this instanceof Xt))return new Xt(e,t);Wt.call(this,this.before,this.after),this.options=K(e,{arguments:!t,booleans:!t,collapse_vars:!t,comparisons:!t,conditionals:!t,dead_code:!t,drop_console:!1,drop_debugger:!t,evaluate:!t,expression:!1,global_defs:{},hoist_funs:!1,hoist_props:!t,hoist_vars:!1,ie8:!1,if_return:!t,inline:!t,join_vars:!t,keep_fargs:!0,keep_fnames:!1,keep_infinity:!1,loops:!t,negate_iife:!t,passes:1,properties:!t,pure_getters:!t&&"strict",pure_funcs:null,reduce_funcs:!t,reduce_vars:!t,sequences:!t,side_effects:!t,switches:!t,top_retain:null,toplevel:!(!e||!e.top_retain),typeofs:!t,unsafe:!1,unsafe_comps:!1,unsafe_Function:!1,unsafe_math:!1,unsafe_proto:!1,unsafe_regexp:!1,unsafe_undefined:!1,unused:!t,warnings:!1},!0);var n=this.options.global_defs;if("object"==typeof n)for(var r in n)/^@/.test(r)&&ae(n,r)&&(n[r.slice(1)]=Yt(n[r],{expression:!0}));!0===this.options.inline&&(this.options.inline=3);var i=this.options.pure_funcs;this.pure_funcs="function"==typeof i?i:i?function(e){return i.indexOf(e.expression.print_to_string())<0}:ne;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 0<=o.indexOf(e.name)});var a=this.options.toplevel;this.toplevel="string"==typeof a?{funcs:/funcs/.test(a),vars:/vars/.test(a)}:{funcs:a,vars:a};var s=this.options.sequences;this.sequences_limit=1==s?800:0|s,this.warnings_produced={}}function y(e,t){e.walk(new Dt(function(e){return e instanceof Ye?y(e.tail_node(),t):e instanceof bt?t(e.value):e instanceof nt&&(y(e.consequent,t),y(e.alternative,t)),!0}))}function h(e,t){var n=(t=K(t,{builtins:!1,cache:null,debug:!1,keep_quoted:!1,only_cache:!1,regex:null,reserved:null},!0)).reserved;Array.isArray(n)||(n=[]),t.builtins||function(t){function n(e){m(t,e)}["null","true","false","Infinity","-Infinity","undefined"].forEach(n),[Object,Array,Function,Number,String,Boolean,Error,Math,Date,RegExp].forEach(function(e){Object.getOwnPropertyNames(e).map(n),e.prototype&&Object.getOwnPropertyNames(e.prototype).map(n)})}(n);var r,i=-1;t.cache?(r=t.cache.props).each(function(e){m(n,e)}):r=new R;var o,a=t.regex,s=!1!==t.debug;s&&(o=!0===t.debug?"":t.debug);var u=[],l=[];return e.walk(new Dt(function(e){e instanceof st?p(e.key):e instanceof at?p(e.key.name):e instanceof Qe?p(e.property):e instanceof Ze&&y(e.property,p)})),e.transform(new Wt(function(e){e instanceof st?e.key=h(e.key):e instanceof at?e.key.name=h(e.key.name):e instanceof Qe?e.property=h(e.property):!t.keep_quoted&&e instanceof Ze&&(e.property=function n(e){return e.transform(new Wt(function(e){if(e instanceof Ye){var t=e.expressions.length-1;e.expressions[t]=n(e.expressions[t])}else e instanceof bt?e.value=h(e.value):e instanceof nt&&(e.consequent=n(e.consequent),e.alternative=n(e.alternative));return e}))}(e.property))}));function c(e){return!(0<=l.indexOf(e))&&(!(0<=n.indexOf(e))&&(t.only_cache?r.has(e):!/^-?[0-9]+(\.[0-9]+)?(e[+-][0-9]+)?$/.test(e)))}function f(e){return!(a&&!a.test(e))&&(!(0<=n.indexOf(e))&&(r.has(e)||0<=u.indexOf(e)))}function p(e){c(e)&&m(u,e),f(e)||m(l,e)}function h(e){if(!f(e))return e;var t=r.get(e);if(!t){if(s){var n="_$"+e+"$"+o+"_";c(n)&&(t=n)}if(!t)for(;!c(t=b(++i)););r.set(e,t)}return t}}!function(){function e(e,t){e.DEFMETHOD("_codegen",t)}var o=!1,a=null,s=null;function n(e,t){Array.isArray(e)?e.forEach(function(e){n(e,t)}):e.DEFMETHOD("needs_parens",t)}function r(e,n,r,t){var i=e.length-1;o=t,e.forEach(function(e,t){!0!==o||e instanceof ce||e instanceof de||e instanceof fe&&e.body instanceof bt||(o=!1),e instanceof de||(r.indent(),e.print(r),t==i&&n||(r.newline(),n&&r.newline())),!0===o&&e instanceof fe&&e.body instanceof bt&&(o=!1)}),o=!1}function i(e,t,n){0<e.body.length?t.with_block(function(){r(e.body,!1,t,n)}):(t.print("{"),t.with_indent(t.next_indent(),function(){t.append_comments(e,!0)}),t.print("}"))}function u(e,t,n){var r=!1;n&&e.walk(new Dt(function(e){return!!(r||e instanceof Ae)||(e instanceof tt&&"in"==e.operator?r=!0:void 0)})),e.print(t,r)}function l(e,t,n){n.option("quote_keys")?n.print_string(e):""+ +e==e&&0<=e?n.print(p(e)):(v(e)?!n.option("ie8"):Nt(e))?t&&n.option("keep_quoted_props")?n.print_string(e,t):n.print_name(e):n.print_string(e,t)}function c(e,t){t.option("bracketize")?h(e,t):!e||e instanceof de?t.force_semicolon():e.print(t)}function f(e,t){return 0<e.args.length||t.option("beautify")}function p(e){var t,n=e.toString(10),r=[n.replace(/^0\./,".").replace("e+","e")];return Math.floor(e)===e?(0<=e?r.push("0x"+e.toString(16).toLowerCase(),"0"+e.toString(8)):r.push("-0x"+(-e).toString(16).toLowerCase(),"-0"+(-e).toString(8)),(t=/^(.*?)(0+)$/.exec(e))&&r.push(t[1]+"e"+t[2].length)):(t=/^0?\.(0+)(.*)$/.exec(e))&&r.push(t[2]+"e-"+(t[1].length+t[2].length),n.substr(n.indexOf("."))),function(e){for(var t=e[0],n=t.length,r=1;r<e.length;++r)e[r].length<n&&(n=(t=e[r]).length);return t}(r)}function h(e,t){!e||e instanceof de?t.print("{}"):e instanceof he?e.print(t):t.with_block(function(){t.indent(),e.print(t),t.newline()})}function t(e,t){e.DEFMETHOD("add_source_map",function(e){t(this,e)})}function d(e,t){t.add_mapping(e.start)}se.DEFMETHOD("print",function(e,t){var n=this,r=n._codegen;function i(){e.prepend_comments(n),n.add_source_map(e),r(n,e),e.append_comments(n)}n instanceof Ae?a=n:!s&&n instanceof ce&&"use asm"==n.value&&(s=a),e.push_node(n),t||n.needs_parens(e)?e.with_parens(i):i(),e.pop_node(),n===s&&(s=null)}),se.DEFMETHOD("_print",se.prototype.print),se.DEFMETHOD("print_to_string",function(e){var t=Jt(e);return this.print(t),t.get()}),n(se,te),n(Oe,function(e){if(!e.has_parens()&&F(e))return!0;var t;if(e.option("webkit")&&((t=e.parent())instanceof We&&t.expression===this))return!0;return!!e.option("wrap_iife")&&((t=e.parent())instanceof Ke&&t.expression===this)}),n(ot,function(e){return!e.has_parens()&&F(e)}),n(Je,function(e){var t=e.parent();return t instanceof We&&t.expression===this||t instanceof Ke&&t.expression===this}),n(Ye,function(e){var t=e.parent();return t instanceof Ke||t instanceof Je||t instanceof tt||t instanceof He||t instanceof We||t instanceof it||t instanceof at||t instanceof nt}),n(tt,function(e){var t=e.parent();if(t instanceof Ke&&t.expression===this)return!0;if(t instanceof Je)return!0;if(t instanceof We&&t.expression===this)return!0;if(t instanceof tt){var n=t.operator,r=Kt[n],i=this.operator,o=Kt[i];if(o<r||r==o&&this===t.right)return!0}}),n(We,function(e){var t=e.parent();if(t instanceof Ge&&t.expression===this){var n=!1;return this.walk(new Dt(function(e){return!!(n||e instanceof Ae)||(e instanceof Ke?n=!0:void 0)})),n}}),n(Ke,function(e){var t,n=e.parent();return n instanceof Ge&&n.expression===this||this.expression instanceof Oe&&n instanceof We&&n.expression===this&&(t=e.parent(1))instanceof rt&&t.left===n}),n(Ge,function(e){var t=e.parent();if(!f(this,e)&&(t instanceof We||t instanceof Ke&&t.expression===this))return!0}),n(yt,function(e){var t=e.parent();if(t instanceof We&&t.expression===this){var n=this.getValue();if(n<0||/^0/.test(p(n)))return!0}}),n([rt,nt],function(e){var t=e.parent();return t instanceof Je||(t instanceof tt&&!(t instanceof rt)||(t instanceof Ke&&t.expression===this||(t instanceof nt&&t.condition===this||(t instanceof We&&t.expression===this||void 0))))}),e(ce,function(e,t){t.print_string(e.value,e.quote),t.semicolon()}),e(le,function(e,t){t.print("debugger"),t.semicolon()}),g.DEFMETHOD("_do_print_body",function(e){c(this.body,e)}),e(ue,function(e,t){e.body.print(t),t.semicolon()}),e(xe,function(e,t){r(e.body,!0,t,!0),t.print("")}),e(me,function(e,t){e.label.print(t),t.colon(),e.body.print(t)}),e(fe,function(e,t){e.body.print(t),t.semicolon()}),e(he,function(e,t){i(e,t)}),e(de,function(e,t){t.semicolon()}),e(be,function(e,t){t.print("do"),t.space(),h(e.body,t),t.space(),t.print("while"),t.space(),t.with_parens(function(){e.condition.print(t)}),t.semicolon()}),e(ye,function(e,t){t.print("while"),t.space(),t.with_parens(function(){e.condition.print(t)}),t.space(),e._do_print_body(t)}),e(_e,function(e,t){t.print("for"),t.space(),t.with_parens(function(){e.init?(e.init instanceof Ve?e.init.print(t):u(e.init,t,!0),t.print(";"),t.space()):t.print(";"),e.condition?(e.condition.print(t),t.print(";"),t.space()):t.print(";"),e.step&&e.step.print(t)}),t.space(),e._do_print_body(t)}),e(we,function(e,t){t.print("for"),t.space(),t.with_parens(function(){e.init.print(t),t.space(),t.print("in"),t.space(),e.object.print(t)}),t.space(),e._do_print_body(t)}),e(Ee,function(e,t){t.print("with"),t.space(),t.with_parens(function(){e.expression.print(t)}),t.space(),e._do_print_body(t)}),Ce.DEFMETHOD("_do_print",function(n,e){var t=this;e||n.print("function"),t.name&&(n.space(),t.name.print(n)),n.with_parens(function(){t.argnames.forEach(function(e,t){t&&n.comma(),e.print(n)})}),n.space(),i(t,n,!0)}),e(Ce,function(e,t){e._do_print(t)}),Be.DEFMETHOD("_do_print",function(e,t){e.print(t),this.value&&(e.space(),this.value.print(e)),e.semicolon()}),e(Te,function(e,t){e._do_print(t,"return")}),e(G,function(e,t){e._do_print(t,"throw")}),Re.DEFMETHOD("_do_print",function(e,t){e.print(t),this.label&&(e.space(),this.label.print(e)),e.semicolon()}),e(Fe,function(e,t){e._do_print(t,"break")}),e(Le,function(e,t){e._do_print(t,"continue")}),e(Me,function(e,t){t.print("if"),t.space(),t.with_parens(function(){e.condition.print(t)}),t.space(),e.alternative?(!function(e,t){var n=e.body;if(t.option("bracketize")||t.option("ie8")&&n instanceof be)return h(n,t);if(!n)return t.force_semicolon();for(;;)if(n instanceof Me){if(!n.alternative)return h(e.body,t);n=n.alternative}else{if(!(n instanceof g))break;n=n.body}c(e.body,t)}(e,t),t.space(),t.print("else"),t.space(),e.alternative instanceof Me?e.alternative.print(t):c(e.alternative,t)):e._do_print_body(t)}),e(Ue,function(e,n){n.print("switch"),n.space(),n.with_parens(function(){e.expression.print(n)}),n.space();var r=e.body.length-1;r<0?n.print("{}"):n.with_block(function(){e.body.forEach(function(e,t){n.indent(!0),e.print(n),t<r&&0<e.body.length&&n.newline()})})}),Ne.DEFMETHOD("_do_print_body",function(t){t.newline(),this.body.forEach(function(e){t.indent(),e.print(t),t.newline()})}),e(Pe,function(e,t){t.print("default:"),e._do_print_body(t)}),e(qe,function(e,t){t.print("case"),t.space(),e.expression.print(t),t.print(":"),e._do_print_body(t)}),e(ze,function(e,t){t.print("try"),t.space(),i(e,t),e.bcatch&&(t.space(),e.bcatch.print(t)),e.bfinally&&(t.space(),e.bfinally.print(t))}),e(Ie,function(e,t){t.print("catch"),t.space(),t.with_parens(function(){e.argname.print(t)}),t.space(),i(e,t)}),e(je,function(e,t){t.print("finally"),t.space(),i(e,t)}),Ve.DEFMETHOD("_do_print",function(n,e){n.print(e),n.space(),this.definitions.forEach(function(e,t){t&&n.comma(),e.print(n)});var t=n.parent();(t instanceof _e||t instanceof we)&&t.init===this||n.semicolon()}),e($e,function(e,t){e._do_print(t,"var")}),e(He,function(e,t){if(e.name.print(t),e.value){t.space(),t.print("="),t.space();var n=t.parent(1),r=n instanceof _e||n instanceof we;u(e.value,t,r)}}),e(Ke,function(e,n){e.expression.print(n),e instanceof Ge&&!f(e,n)||((e.expression instanceof Ke||e.expression instanceof Ce)&&n.add_mapping(e.start),n.with_parens(function(){e.args.forEach(function(e,t){t&&n.comma(),e.print(n)})}))}),e(Ge,function(e,t){t.print("new"),t.space(),Ke.prototype._codegen(e,t)}),Ye.DEFMETHOD("_do_print",function(n){this.expressions.forEach(function(e,t){0<t&&(n.comma(),n.should_break()&&(n.newline(),n.indent())),e.print(n)})}),e(Ye,function(e,t){e._do_print(t)}),e(Qe,function(e,t){var n=e.expression;n.print(t);var r=e.property;t.option("ie8")&&v(r)?(t.print("["),t.add_mapping(e.end),t.print_string(r),t.print("]")):(n instanceof yt&&0<=n.getValue()&&(/[xa-f.)]/i.test(t.last())||t.print(".")),t.print("."),t.add_mapping(e.end),t.print_name(r))}),e(Ze,function(e,t){e.expression.print(t),t.print("["),e.property.print(t),t.print("]")}),e(Xe,function(e,t){var n=e.operator;t.print(n),(/^[a-z]/i.test(n)||/[+-]$/.test(n)&&e.expression instanceof Xe&&/^[+-]/.test(e.expression.operator))&&t.space(),e.expression.print(t)}),e(et,function(e,t){e.expression.print(t),t.print(e.operator)}),e(tt,function(e,t){var n=e.operator;e.left.print(t),">"==n[0]&&e.left instanceof et&&"--"==e.left.operator?t.print(" "):t.space(),t.print(n),("<"==n||"<<"==n)&&e.right instanceof Xe&&"!"==e.right.operator&&e.right.expression instanceof Xe&&"--"==e.right.expression.operator?t.print(" "):t.space(),e.right.print(t)}),e(nt,function(e,t){e.condition.print(t),t.space(),t.print("?"),t.space(),e.consequent.print(t),t.space(),t.colon(),e.alternative.print(t)}),e(it,function(t,r){r.with_square(function(){var e=t.elements,n=e.length;0<n&&r.space(),e.forEach(function(e,t){t&&r.comma(),e.print(r),t===n-1&&e instanceof xt&&r.comma()}),0<n&&r.space()})}),e(ot,function(e,n){0<e.properties.length?n.with_block(function(){e.properties.forEach(function(e,t){t&&(n.print(","),n.newline()),n.indent(),e.print(n)}),n.newline()}):n.print("{}")}),e(st,function(e,t){l(e.key,e.quote,t),t.colon(),e.value.print(t)}),at.DEFMETHOD("_print_getter_setter",function(e,t){t.print(e),t.space(),l(this.key.name,this.quote,t),this.value._do_print(t,!0)}),e(Y,function(e,t){e._print_getter_setter("set",t)}),e(W,function(e,t){e._print_getter_setter("get",t)}),e(ut,function(e,t){var n=e.definition();t.print_name(n?n.mangled_name||n.name:e.name)}),e(xt,$),e(gt,function(e,t){t.print("this")}),e(vt,function(e,t){t.print(e.getValue())}),e(bt,function(e,t){t.print_string(e.getValue(),e.quote,o)}),e(yt,function(e,t){s&&e.start&&null!=e.start.raw?t.print(e.start.raw):t.print(p(e.getValue()))}),e(_t,function(e,t){var n=e.getValue(),r=n.toString();n.raw_source&&(r="/"+n.raw_source+r.slice(r.lastIndexOf("/"))),r=t.to_utf8(r),t.print(r);var i=t.parent();i instanceof tt&&/^in/.test(i.operator)&&i.left===e&&t.print(" ")}),t(se,$),t(ce,d),t(le,d),t(ut,d),t(De,d),t(g,d),t(me,$),t(Ce,d),t(Ue,d),t(Ne,d),t(he,d),t(xe,$),t(Ge,d),t(ze,d),t(Ie,d),t(je,d),t(Ve,d),t(vt,d),t(Y,function(e,t){t.add_mapping(e.start,e.key.name)}),t(W,function(e,t){t.add_mapping(e.start,e.key.name)}),t(at,function(e,t){t.add_mapping(e.start,e.key)})}(),n(Xt.prototype=new Wt,{option:function(e){return this.options[e]},exposed:function(e){if(e.global)for(var t=0,n=e.orig.length;t<n;t++)if(!this.toplevel[e.orig[t]instanceof pt?"funcs":"vars"])return!0;return!1},in_boolean_context:function(){if(!this.option("booleans"))return!1;for(var e,t=this.self(),n=0;e=this.parent(n);n++){if(e instanceof fe||e instanceof nt&&e.condition===t||e instanceof ve&&e.condition===t||e instanceof _e&&e.condition===t||e instanceof Me&&e.condition===t||e instanceof Xe&&"!"==e.operator&&e.expression===t)return!0;if(!(e instanceof tt&&("&&"==e.operator||"||"==e.operator)||e instanceof nt||e.tail_node()===t))return!1;t=e}},compress:function(e){this.option("expression")&&e.process_expression(!0);for(var t=+this.options.passes||1,n=1/0,r=!1,i={ie8:this.option("ie8")},o=0;o<t;o++)if(e.figure_out_scope(i),(0<o||this.option("reduce_vars"))&&e.reset_opt_flags(this),e=e.transform(this),1<t){var a=0;if(e.walk(new Dt(function(){a++})),this.info("pass "+o+": last_count: "+n+", count: "+a),a<n)n=a,r=!1;else{if(r)break;r=!0}}return this.option("expression")&&e.process_expression(!1),e},info:function(){"verbose"==this.options.warnings&&se.warn.apply(se,arguments)},warn:function(e,t){if(this.options.warnings){var n=B(e,t);n in this.warnings_produced||(this.warnings_produced[n]=!0,se.warn.apply(se,arguments))}},clear_warnings:function(){this.warnings_produced={}},before:function(e,t,n){if(e._squeezed)return e;var r=!1;e instanceof Ae&&(e=(e=e.hoist_properties(this)).hoist_declarations(this),r=!0),t(e,this),t(e,this);var i=e.optimize(this);return r&&i instanceof Ae&&(i.drop_unused(this),t(i,this)),i===e&&(i._squeezed=!0),i}}),function(){function e(e,n){e.DEFMETHOD("optimize",function(e){if(this._optimized)return this;if(e.has_directive("use asm"))return this;var t=n(this,e);return t._optimized=!0,t})}function G(e){if(e instanceof gt)return!0;if(e instanceof mt)return e.definition().orig[0]instanceof ht;if(e instanceof We){if((e=e.expression)instanceof mt){if(e.is_immutable())return!1;e=e.fixed_value()}return!e||!(e instanceof _t)&&(e instanceof vt||G(e))}return!1}function o(e,t){for(var n,r=0;(n=e.parent(r++))&&!(n instanceof Ae);)if(n instanceof Ie){n=n.argname.definition().scope;break}return n.find_variable(t)}function Y(e,t,n){return n||(n={}),t&&(n.start||(n.start=t.start),n.end||(n.end=t.end)),new e(n)}function M(e,t){return 1==t.length?t[0]:Y(Ye,e,{expressions:t.reduce(f,[])})}function U(e,t){switch(typeof e){case"string":return Y(bt,t,{value:e});case"number":return isNaN(e)?Y(Et,t):isFinite(e)?1/e<0?Y(Xe,t,{operator:"-",expression:Y(yt,t,{value:-e})}):Y(yt,t,{value:e}):e<0?Y(Xe,t,{operator:"-",expression:Y(Ct,t)}):Y(Ct,t);case"boolean":return Y(e?St:Ot,t);case"undefined":return Y(At,t);default:if(null===e)return Y(wt,t,{value:null});if(e instanceof RegExp)return Y(_t,t,{value:e});throw new Error(B("Can't handle constant of type: {type}",{type:typeof e}))}}function W(e,t,n){return e instanceof Xe&&"delete"==e.operator||e instanceof Ke&&e.expression===t&&(n instanceof We||n instanceof mt&&"eval"==n.name)?M(t,[Y(yt,t,{value:0}),n]):n}function f(e,t){return t instanceof Ye?e.push.apply(e,t.expressions):e.push(t),e}function y(e){if(null===e)return[];if(e instanceof he)return e.body;if(e instanceof de)return[];if(e instanceof ue)return[e];throw new Error("Can't convert thing to statement array")}function N(e){return null===e||(e instanceof de||e instanceof he&&0==e.body.length)}function _(e){return e instanceof ge&&e.body instanceof he?e.body:e}function Q(e){for(;e instanceof We;)e=e.expression;return e}function P(e){return"Call"==e.TYPE&&(e.expression instanceof Oe||P(e.expression))}function q(e){return e instanceof mt&&e.definition().undeclared}e(se,function(e,t){return e}),se.DEFMETHOD("equivalent_to",function(e){return this.TYPE==e.TYPE&&this.print_to_string()==e.print_to_string()}),Ae.DEFMETHOD("process_expression",function(r,i){var o=this,a=new Wt(function(e){if(r&&e instanceof fe)return Y(Te,e,{value:e.body});if(!r&&e instanceof Te){if(i){var t=e.value&&e.value.drop_side_effect_free(i,!0);return t?Y(fe,e,{body:t}):Y(de,e)}return Y(fe,e,{body:e.value||Y(Xe,e,{operator:"void",expression:Y(yt,e,{value:0})})})}if(e instanceof Ce&&e!==o)return e;if(e instanceof pe){var n=e.body.length-1;0<=n&&(e.body[n]=e.body[n].transform(a))}else e instanceof Me?(e.body=e.body.transform(a),e.alternative&&(e.alternative=e.alternative.transform(a))):e instanceof Ee&&(e.body=e.body.transform(a));return e});o.transform(a)}),function(e){function r(e,t){t.assignments=0,t.chained=!1,t.direct_access=!1,t.escaped=!1,t.scope.uses_eval||t.scope.uses_with?t.fixed=!1:e.exposed(t)?t.fixed=!1:t.fixed=t.init,t.recursive_refs=0,t.references=[],t.should_replace=void 0,t.single_use=void 0}function a(t,n,e){e.variables.each(function(e){r(n,e),null===e.fixed?(e.safe_ids=t.safe_ids,l(t,e,!0)):e.fixed&&(t.loop_ids[e.id]=t.in_loop,l(t,e,!0))})}function s(e){e.safe_ids=Object.create(e.safe_ids)}function u(e){e.safe_ids=Object.getPrototypeOf(e.safe_ids)}function l(e,t,n){e.safe_ids[t.id]=n}function c(e,t){if(e.safe_ids[t.id]){if(null==t.fixed){var n=t.orig[0];if(n instanceof ft||"arguments"==n.name)return!1;t.fixed=Y(At,n)}return!0}return t.fixed instanceof Se}function o(e,t,n){return void 0===t.fixed||(null===t.fixed&&t.safe_ids?(t.safe_ids[t.id]=!1,delete t.safe_ids,!0):!!ae(e.safe_ids,t.id)&&(!!c(e,t)&&(!1!==t.fixed&&(!(null!=t.fixed&&(!n||t.references.length>t.assignments))&&oe(t.orig,function(e){return!(e instanceof pt||e instanceof ht)})))))}function f(e,t){if(!((t=p(t))instanceof se)){var n;if(e instanceof it){var r=e.elements;if("length"==t)return U(r.length,e);"number"==typeof t&&t in r&&(n=r[t])}else if(e instanceof ot){t=""+t;for(var i=e.properties,o=i.length;0<=--o;){if(!(i[o]instanceof st))return;n||i[o].key!==t||(n=i[o].value)}}return n instanceof mt&&n.fixed_value()||n}}e(se,$);var n=new Dt(function(e){if(e instanceof ut){var t=e.definition();t&&(e instanceof mt&&t.references.push(e),t.fixed=!1)}});e(ke,function(e,t,n){return s(e),a(e,n,this),t(),u(e),!0}),e(rt,function(e){var t=this;if(t.left instanceof mt){var n=t.left.definition(),r=n.fixed;if((r||"="==t.operator)&&o(e,n,t.right))return n.references.push(t.left),n.assignments++,"="!=t.operator&&(n.chained=!0),n.fixed="="==t.operator?function(){return t.right}:function(){return Y(tt,t,{operator:t.operator.slice(0,-1),left:r instanceof se?r:r(),right:t.right})},l(e,n,!1),t.right.walk(e),l(e,n,!0),!0}}),e(tt,function(e){if(J(this.operator))return this.left.walk(e),s(e),this.right.walk(e),u(e),!0}),e(nt,function(e){return this.condition.walk(e),s(e),this.consequent.walk(e),u(e),s(e),this.alternative.walk(e),u(e),!0}),e(Se,function(e,t,n){this.inlined=!1;var r=e.safe_ids;return e.safe_ids=Object.create(null),a(e,n,this),t(),e.safe_ids=r,!0}),e(be,function(e){var t=e.in_loop;return e.in_loop=this,s(e),this.body.walk(e),this.condition.walk(e),u(e),e.in_loop=t,!0}),e(_e,function(e){this.init&&this.init.walk(e);var t=e.in_loop;return(e.in_loop=this).condition&&(s(e),this.condition.walk(e),u(e)),s(e),this.body.walk(e),u(e),this.step&&(s(e),this.step.walk(e),u(e)),e.in_loop=t,!0}),e(we,function(e){this.init.walk(n),this.object.walk(e);var t=e.in_loop;return e.in_loop=this,s(e),this.body.walk(e),u(e),e.in_loop=t,!0}),e(Oe,function(r,e,t){var i,o=this;return o.inlined=!1,s(r),a(r,t,o),!o.name&&(i=r.parent())instanceof Ke&&i.expression===o&&o.argnames.forEach(function(e,t){var n=e.definition();o.uses_arguments||void 0!==n.fixed?n.fixed=!1:(n.fixed=function(){return i.args[t]||Y(At,i)},r.loop_ids[n.id]=r.in_loop,l(r,n,!0))}),e(),u(r),!0}),e(Me,function(e){return this.condition.walk(e),s(e),this.body.walk(e),u(e),this.alternative&&(s(e),this.alternative.walk(e),u(e)),!0}),e(me,function(e){return s(e),this.body.walk(e),u(e),!0}),e(Ne,function(e,t){return s(e),t(),u(e),!0}),e(dt,function(){this.definition().fixed=!1}),e(mt,function(e,t,n){var r,i,o,a,s=this.definition();s.references.push(this),1==s.references.length&&!s.fixed&&s.orig[0]instanceof pt&&(e.loop_ids[s.id]=e.in_loop),void 0!==s.fixed&&c(e,s)&&"m"!=s.single_use?s.fixed&&((r=this.fixed_value())instanceof Ce&&j(e,s)?s.recursive_refs++:r&&(o=e,a=s,n.option("unused")&&!a.scope.uses_eval&&!a.scope.uses_with&&a.references.length-a.recursive_refs==1&&o.loop_ids[a.id]===o.in_loop)?s.single_use=r instanceof Ce||s.scope===this.scope&&r.is_constant_expression():s.single_use=!1,function e(t,n,r,i,o){var a=t.parent(i);if(X(n,a)||!o&&a instanceof Ke&&a.expression===n&&(!(r instanceof Oe)||!(a instanceof Ge)&&r.contains_this()))return!0;if(a instanceof it)return e(t,a,a,i+1);if(a instanceof st&&n===a.value){var s=t.parent(i+1);return e(t,s,s,i+2)}return a instanceof We&&a.expression===n?!o&&e(t,a,f(r,a.property),i+1):void 0}(e,this,r,0,!!(i=r)&&(i.is_constant()||i instanceof Ce||i instanceof gt))&&(s.single_use?s.single_use="m":s.fixed=!1)):s.fixed=!1,function e(t,n,r,i,o,a,s){var u=t.parent(a);if(!o||!o.is_constant()){if(u instanceof rt&&"="==u.operator&&i===u.right||u instanceof Ke&&i!==u.expression||u instanceof Be&&i===u.value&&i.scope!==n.scope||u instanceof He&&i===u.value)return!(1<s)||o&&o.is_constant_expression(r)||(s=1),void((!n.escaped||n.escaped>s)&&(n.escaped=s));if(u instanceof it||u instanceof tt&&J(u.operator)||u instanceof nt&&i!==u.condition||u instanceof Ye&&i===u.tail_node())e(t,n,r,u,u,a+1,s);else if(u instanceof st&&i===u.value){var l=t.parent(a+1);e(t,n,r,l,l,a+2,s)}else if(u instanceof We&&i===u.expression&&(e(t,n,r,u,o=f(o,u.property),a+1,s+1),o))return;0==a&&(n.direct_access=!0)}}(e,s,this.scope,this,r,0,1)}),e(xe,function(e,t,n){this.globals.each(function(e){r(n,e)}),a(e,n,this)}),e(ze,function(e){return s(e),L(this,e),u(e),this.bcatch&&(s(e),this.bcatch.walk(e),u(e)),this.bfinally&&this.bfinally.walk(e),!0}),e(Je,function(e,t){var n=this;if(("++"==n.operator||"--"==n.operator)&&n.expression instanceof mt){var r=n.expression.definition(),i=r.fixed;if(i&&o(e,r,!0))return r.references.push(n.expression),r.assignments++,r.chained=!0,r.fixed=function(){return Y(tt,n,{operator:n.operator.slice(0,-1),left:Y(Xe,n,{operator:"+",expression:i instanceof se?i:i()}),right:Y(yt,n,{value:1})})},l(e,r,!0),!0}}),e(He,function(e,t){var n=this,r=n.name.definition();if(n.value){if(o(e,r,n.value))return r.fixed=function(){return n.value},e.loop_ids[r.id]=e.in_loop,l(e,r,!1),t(),l(e,r,!0),!0;r.fixed=!1}}),e(ye,function(e){var t=e.in_loop;return e.in_loop=this,s(e),this.condition.walk(e),this.body.walk(e),u(e),e.in_loop=t,!0})}(function(e,t){e.DEFMETHOD("reduce_vars",t)}),xe.DEFMETHOD("reset_opt_flags",function(n){var r=n.option("reduce_vars"),i=new Dt(function(e,t){if(e._squeezed=!1,e._optimized=!1,r)return e.reduce_vars(i,t,n)});i.safe_ids=Object.create(null),i.in_loop=null,i.loop_ids=Object.create(null),this.walk(i)}),ut.DEFMETHOD("fixed_value",function(){var e=this.definition().fixed;return!e||e instanceof se?e:e()}),mt.DEFMETHOD("is_immutable",function(){var e=this.definition().orig;return 1==e.length&&e[0]instanceof ht});var t=ie("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");mt.DEFMETHOD("is_declared",function(e){return!this.definition().undeclared||e.option("unsafe")&&t(this.name)});var n,r,i,a,z=ie("Infinity NaN undefined");function Z(e){return e instanceof Ct||e instanceof Et||e instanceof At}function s(e,l){var V,$,H;!function(){var e=l.self(),t=0;do{if(e instanceof Ie||e instanceof je)t++;else if(e instanceof ge)V=!0;else{if(e instanceof Ae){H=e;break}e instanceof ze&&($=!0)}}while(e=l.parent(t++))}();for(var K,t=10;K=!1,i(e),l.option("dead_code")&&o(e,l),l.option("if_return")&&r(e,l),0<l.sequences_limit&&(a(e,l),s(e,l)),l.option("join_vars")&&u(e),l.option("collapse_vars")&&n(e,l),K&&0<t--;);function n(n,l){if(H.uses_eval||H.uses_with)return n;for(var c,e,t,f=[],o=n.length,s=new Wt(function(e,t){if(S)return e;if(!O)return e!==u[p]?e:++p<u.length?R(e):(O=!0,(m=function e(t,n,r){var i=s.parent(n);if(i instanceof rt)return r&&!(i.left instanceof We||i.left.name in E)?e(i,n+1,r):t;if(i instanceof tt)return!r||J(i.operator)&&i.left!==t?t:e(i,n+1,r);if(i instanceof Ke)return t;if(i instanceof qe)return t;if(i instanceof nt)return r&&i.condition===t?e(i,n+1,r):t;if(i instanceof Ve)return e(i,n+1,!0);if(i instanceof Be)return r?e(i,n+1,r):t;if(i instanceof Me)return r&&i.condition===t?e(i,n+1,r):t;if(i instanceof ge)return t;if(i instanceof Ye)return e(i,n+1,i.tail_node()!==t);if(i instanceof fe)return e(i,n+1,!0);if(i instanceof Ue)return t;if(i instanceof Je)return t;if(i instanceof He)return t;return null}(e,0))===e&&(S=!0),e);var n,r,i=s.parent();if(e instanceof rt&&"="!=e.operator&&v.equivalent_to(e.left)||e instanceof Ke&&v instanceof We&&v.equivalent_to(e.expression)||e instanceof le||e instanceof ge&&!(e instanceof _e)||e instanceof Re||e instanceof ze||e instanceof Ee||i instanceof _e&&e!==i.init||!x&&e instanceof mt&&!e.is_declared(l))return S=!0,e;if(!g&&(i instanceof tt&&J(i.operator)&&i.left!==e||i instanceof nt&&i.condition!==e||i instanceof Me&&i.condition!==e)&&(g=i),B&&!(e instanceof lt)&&(_&&v.equivalent_to(e)||w&&(n=b.equivalent_to(e)))){if(g&&(n||!A||!x))return S=!0,e;if(X(e,i))return d&&D++,e;if(K=S=!0,D++,l.info("Collapsing {name} [{file}:{line},{col}]",{name:e.print_to_string(),file:e.start.file,line:e.start.line,col:e.start.col}),h instanceof et)return Y(Xe,h,h);if(h instanceof He){if(d)return S=!1,e;var o=h.name.definition(),a=h.value;return o.references.length-o.replaced!=1||l.exposed(o)?Y(rt,h,{operator:"=",left:Y(mt,h.name,h.name),right:a}):(o.replaced++,k&&Z(a)?a.transform(l):W(i,e,a))}return h.write_only=!1,h}return(e instanceof Ke||e instanceof Be&&(y||v instanceof We||j(v))||e instanceof We&&(y||e.expression.may_throw_on_access(l))||e instanceof mt&&(function(e){var t=E[e.name];if(!t)return;if(t!==v)return!0;w=!1}(e)||y&&j(e))||e instanceof He&&e.value&&(e.name.name in E||y&&j(e.name))||(r=X(e.left,e))&&(r instanceof We||r.name in E)||C&&($?e.has_side_effects(l):function e(t,n){if(t instanceof rt)return e(t.left,!0);if(t instanceof Je)return e(t.expression,!0);if(t instanceof He)return t.value&&e(t.value);if(n){if(t instanceof Qe)return e(t.expression,!0);if(t instanceof Ze)return e(t.expression,!0);if(t instanceof mt)return t.definition().scope!==H}return!1}(e)))&&(m=e)instanceof Ae&&(S=!0),R(e)},function(e){S||(m===e&&(S=!0),g===e&&(g=null))}),r=new Wt(function(e){if(S)return e;if(!O){if(e!==u[p])return e;if(++p<u.length)return;return O=!0,e}return e instanceof mt&&e.name==T.name?(--D||(S=!0),X(e,r.parent())?e:(T.replaced++,d.replaced--,h.value)):e instanceof Pe||e instanceof Ae?e:void 0});0<=--o;){0==o&&l.option("unused")&&F();var u=[];for(L(n[o]);0<f.length;){u=f.pop();var p=0,h=u[u.length-1],d=null,m=null,g=null,v=M(h),b=U(h),y=v&&v.has_side_effects(l),_=v&&!y&&!G(v),w=b&&N(b);if(_||w){var E=P(h),A=(t=void 0,(t=Q(e=v))instanceof mt&&t.definition().scope===H&&!(V&&(t.name in E&&E[t.name]!==e||h instanceof Je||h instanceof rt&&"="!=h.operator)));y||(y=z(h));var x=I(),C=h.may_throw(l),k=h.name instanceof ft,O=k,S=!1,D=0,B=!c||!O;if(!B){for(var i=l.self().argnames.lastIndexOf(h.name)+1;!S&&i<c.length;i++)c[i].transform(s);B=!0}for(var a=o;!S&&a<n.length;a++)n[a].transform(s);if(d){var T=h.name.definition();if(S&&T.references.length-T.replaced>D)D=!1;else{S=!1,p=0,O=k;for(a=o;!S&&a<n.length;a++)n[a].transform(r);d.single_use=!1}}D&&!q(h)&&n.splice(o,1)}}}function R(e){if(e instanceof Ae)return e;if(e instanceof Ue){e.expression=e.expression.transform(s);for(var t=0,n=e.body.length;!S&&t<n;t++){var r=e.body[t];if(r instanceof qe){if(!O){if(r!==u[p])continue;p++}if(r.expression=r.expression.transform(s),!x)break}}return S=!0,e}}function F(){var e,n=l.self();if(n instanceof Oe&&!n.name&&!n.uses_arguments&&!n.uses_eval&&(e=l.parent())instanceof Ke&&e.expression===n){var r=l.has_directive("use strict");r&&!ee(r,n.body)&&(r=!1);var t=n.argnames.length;c=e.args.slice(t);for(var i=Object.create(null),o=t;0<=--o;){var a=n.argnames[o],s=e.args[o];if(c.unshift(Y(He,a,{name:a,value:s})),!(a.name in i)){if(i[a.name]=!0,s){var u=new Dt(function(e){if(!s)return!0;if(e instanceof mt&&n.variables.has(e.name)){var t=e.definition().scope;if(t!==H)for(;t=t.parent_scope;)if(t===H)return!0;s=null}return e instanceof gt&&(r||!u.find_parent(Ae))?(s=null,!0):void 0});s.walk(u)}else s=Y(At,a).transform(l);s&&f.unshift([Y(He,a,{name:a,value:s})])}}}}function L(e){u.push(e),e instanceof rt?(f.push(u.slice()),L(e.right)):e instanceof tt?(L(e.left),L(e.right)):e instanceof Ke?(L(e.expression),e.args.forEach(L)):e instanceof qe?L(e.expression):e instanceof nt?(L(e.condition),L(e.consequent),L(e.alternative)):e instanceof Ve?e.definitions.forEach(L):e instanceof ve?(L(e.condition),e.body instanceof pe||L(e.body)):e instanceof Be?e.value&&L(e.value):e instanceof _e?(e.init&&L(e.init),e.condition&&L(e.condition),e.step&&L(e.step),e.body instanceof pe||L(e.body)):e instanceof we?(L(e.object),e.body instanceof pe||L(e.body)):e instanceof Me?(L(e.condition),e.body instanceof pe||L(e.body),!e.alternative||e.alternative instanceof pe||L(e.alternative)):e instanceof Ye?e.expressions.forEach(L):e instanceof fe?L(e.body):e instanceof Ue?(L(e.expression),e.body.forEach(L)):e instanceof Je?"++"==e.operator||"--"==e.operator?f.push(u.slice()):L(e.expression):e instanceof He&&e.value&&(f.push(u.slice()),L(e.value)),u.pop()}function M(e){if(!(e instanceof He))return e[e instanceof rt?"left":"expression"];var t=e.name.definition();if(ee(e.name,t.orig)){var n=t.orig.length-t.eliminated,r=t.references.length-t.replaced;return 1<n&&!(e.name instanceof ft)||(1<r?function(e){var t=e.value;if(t instanceof mt&&"arguments"!=t.name){var n=t.definition();if(!n.undeclared)return d=n}}(e):!l.exposed(t))?Y(mt,e.name,e.name):void 0}}function U(e){if(h instanceof rt&&"="==h.operator)return h.right}function N(e){if(e.is_constant())return!0;if(e instanceof it)return!1;if(e instanceof Oe)return!1;if(e instanceof ot)return!1;if(e instanceof _t)return!1;if(e instanceof ut)return!0;if(!(v instanceof mt))return!1;if(e.has_side_effects(l))return!1;var t,n=v.definition();return e.walk(new Dt(function(e){if(t)return!0;e instanceof mt&&e.definition()===n&&(t=!0)})),!t}function P(e){var n=Object.create(null);h instanceof He&&(n[h.name.name]=v);var r=new Dt(function(e){var t=Q(e);(t instanceof mt||t instanceof gt)&&(n[t.name]=n[t.name]||X(e,r.parent()))});return e.walk(r),n}function q(r){if(r.name instanceof ft){var e=l.self().argnames.indexOf(r.name),t=l.parent().args;return t[e]&&(t[e]=Y(yt,t[e],{value:0})),!0}var i=!1;return n[o].transform(new Wt(function(e,t,n){return i?e:e===r||e.body===r?(i=!0,e instanceof He?(e.value=null,e):n?re.skip:null):void 0},function(e){if(e instanceof Ye)switch(e.expressions.length){case 0:return null;case 1:return e.expressions[0]}}))}function z(e){return!(e instanceof Je)&&(t=e,t[t instanceof rt?"right":"value"]).has_side_effects(l);var t}function I(){if(y)return!1;if(d)return!0;if(v instanceof mt){var e=v.definition();if(e.references.length-e.replaced==(h instanceof He?1:2))return!0}return!1}function j(e){var t=e.definition();return!(1==t.orig.length&&t.orig[0]instanceof pt)&&(t.scope!==H||!oe(t.references,function(e){var t=e.scope;return"Scope"==t.TYPE&&(t=t.parent_scope),t===H}))}}function i(e){for(var t=[],n=0;n<e.length;){var r=e[n];r instanceof he?(K=!0,i(r.body),[].splice.apply(e,[n,1].concat(r.body)),n+=r.body.length):r instanceof de?(K=!0,e.splice(n,1)):r instanceof ce?t.indexOf(r.value)<0?(n++,t.push(r.value)):(K=!0,e.splice(n,1)):n++}}function r(i,r){for(var o=r.self(),e=function(e){for(var t=0,n=e.length;0<=--n;){var r=e[n];if(r instanceof Me&&r.body instanceof Te&&1<++t)return!0}return!1}(i),a=o instanceof Ce,t=i.length;0<=--t;){var n=i[t],s=g(t),u=i[s];if(a&&!u&&n instanceof Te){if(!n.value){K=!0,i.splice(t,1);continue}if(n.value instanceof Xe&&"void"==n.value.operator){K=!0,i[t]=Y(fe,n,{body:n.value.expression});continue}}if(n instanceof Me){var l;if(h(l=A(n.body))){l.label&&T(l.label.thedef.references,l),K=!0,(n=n.clone()).condition=n.condition.negate(r);var c=m(n.body,l);n.body=Y(he,n,{body:y(n.alternative).concat(d())}),n.alternative=Y(he,n,{body:c}),i[t]=n.transform(r);continue}if(h(l=A(n.alternative))){l.label&&T(l.label.thedef.references,l),K=!0,(n=n.clone()).body=Y(he,n.body,{body:y(n.body).concat(d())});c=m(n.alternative,l);n.alternative=Y(he,n.alternative,{body:c}),i[t]=n.transform(r);continue}}if(n instanceof Me&&n.body instanceof Te){var f=n.body.value;if(!f&&!n.alternative&&(a&&!u||u instanceof Te&&!u.value)){K=!0,i[t]=Y(fe,n.condition,{body:n.condition});continue}if(f&&!n.alternative&&u instanceof Te&&u.value){K=!0,(n=n.clone()).alternative=u,i.splice(t,1,n.transform(r)),i.splice(s,1);continue}if(f&&!n.alternative&&(!u&&a&&e||u instanceof Te)){K=!0,(n=n.clone()).alternative=u||Y(Te,n,{value:null}),i.splice(t,1,n.transform(r)),u&&i.splice(s,1);continue}var p=i[v(t)];if(r.option("sequences")&&a&&!n.alternative&&p instanceof Me&&p.body instanceof Te&&g(s)==i.length&&u instanceof fe){K=!0,(n=n.clone()).alternative=Y(he,u,{body:[u,Y(Te,u,{value:null})]}),i.splice(t,1,n.transform(r)),i.splice(s,1);continue}}}function h(e){if(!e)return!1;var t,n=e instanceof Re?r.loopcontrol_target(e):null;return e instanceof Te&&a&&(!(t=e.value)||t instanceof Xe&&"void"==t.operator)||e instanceof Le&&o===_(n)||e instanceof Fe&&n instanceof he&&o===n}function d(){var e=i.slice(t+1);return i.length=t+1,e.filter(function(e){return!(e instanceof Se)||(i.push(e),!1)})}function m(e,t){var n=y(e).slice(0,-1);return t.value&&n.push(Y(fe,t.value,{body:t.value.expression})),n}function g(e){for(var t=e+1,n=i.length;t<n;t++){var r=i[t];if(!(r instanceof $e&&b(r)))break}return t}function v(e){for(var t=e;0<=--t;){var n=i[t];if(!(n instanceof $e&&b(n)))break}return t}}function o(t,n){for(var e,r=n.self(),i=0,o=0,a=t.length;i<a;i++){var s=t[i];if(s instanceof Re){var u=n.loopcontrol_target(s);s instanceof Fe&&!(u instanceof ge)&&_(u)===r||s instanceof Le&&_(u)===r?s.label&&T(s.label.thedef.references,s):t[o++]=s}else t[o++]=s;if(A(s)){e=t.slice(i+1);break}}t.length=o,K=o!=a,e&&e.forEach(function(e){w(n,e,t)})}function b(e){return oe(e.definitions,function(e){return!e.value})}function a(t,e){if(!(t.length<2)){for(var n=[],r=0,i=0,o=t.length;i<o;i++){var a=t[i];if(a instanceof fe){n.length>=e.sequences_limit&&u();var s=a.body;0<n.length&&(s=s.drop_side_effect_free(e)),s&&f(n,s)}else a instanceof Ve&&b(a)||a instanceof Se||u(),t[r++]=a}u(),(t.length=r)!=o&&(K=!0)}function u(){if(n.length){var e=M(n[0],n);t[r++]=Y(fe,e,{body:e}),n=[]}}}function p(e,t){if(!(e instanceof he))return e;for(var n=null,r=0,i=e.body.length;r<i;r++){var o=e.body[r];if(o instanceof $e&&b(o))t.push(o);else{if(n)return!1;n=o}}return n}function s(e,n){function t(e){i--,K=!0;var t=r.body;return M(t,[t,e]).transform(n)}for(var r,i=0,o=0;o<e.length;o++){var a=e[o];if(r)if(a instanceof Be)a.value=t(a.value||Y(At,a).transform(n));else if(a instanceof _e){if(!(a.init instanceof Ve)){var s=!1;r.body.walk(new Dt(function(e){return!!(s||e instanceof Ae)||(e instanceof tt&&"in"==e.operator?s=!0:void 0)})),s||(a.init?a.init=t(a.init):(a.init=r.body,i--,K=!0))}}else a instanceof we?a.object=t(a.object):a instanceof Me?a.condition=t(a.condition):a instanceof Ue?a.expression=t(a.expression):a instanceof Ee&&(a.expression=t(a.expression));if(n.option("conditionals")&&a instanceof Me){var u=[],l=p(a.body,u),c=p(a.alternative,u);if(!1!==l&&!1!==c&&0<u.length){var f=u.length;u.push(Y(Me,a,{condition:a.condition,body:l||Y(de,a.body),alternative:c})),u.unshift(i,1),[].splice.apply(e,u),o+=f,i+=f+1,r=null,K=!0;continue}}e[i++]=a,r=a instanceof fe?a:null}e.length=i}function c(e,t){if(e instanceof Ve){var n,r=e.definitions[e.definitions.length-1];if(r.value instanceof ot)if(t instanceof rt?n=[t]:t instanceof Ye&&(n=t.expressions.slice()),n){var i=!1;do{var o=n[0];if(!(o instanceof rt))break;if("="!=o.operator)break;if(!(o.left instanceof We))break;var a=o.left.expression;if(!(a instanceof mt))break;if(r.name.name!=a.name)break;if(!o.right.is_constant_expression(H))break;var s=o.left.property;if(s instanceof se&&(s=s.evaluate(l)),s instanceof se)break;s=""+s;var u=l.has_directive("use strict")?function(e){return e.key!=s&&e.key.name!=s}:function(e){return e.key.name!=s};if(!oe(r.value.properties,u))break;r.value.properties.push(Y(st,o,{key:s,value:o.right})),n.shift(),i=!0}while(n.length);return i&&n}}}function u(n){for(var e,t=0,r=-1,i=n.length;t<i;t++){var o=n[t],a=n[r];if(o instanceof Ve)a&&a.TYPE==o.TYPE?(a.definitions=a.definitions.concat(o.definitions),K=!0):e&&e.TYPE==o.TYPE&&b(o)?(e.definitions=e.definitions.concat(o.definitions),K=!0):e=n[++r]=o;else if(o instanceof Be)o.value=u(o.value);else if(o instanceof _e){(s=c(a,o.init))?(K=!0,o.init=s.length?M(o.init,s):null,n[++r]=o):a instanceof $e&&(!o.init||o.init.TYPE==a.TYPE)?(o.init&&(a.definitions=a.definitions.concat(o.init.definitions)),o.init=a,n[r]=o,K=!0):e&&o.init&&e.TYPE==o.init.TYPE&&b(o.init)?(e.definitions=e.definitions.concat(o.init.definitions),o.init=null,n[++r]=o,K=!0):n[++r]=o}else if(o instanceof we)o.object=u(o.object);else if(o instanceof Me)o.condition=u(o.condition);else if(o instanceof fe){var s;if(s=c(a,o.body)){if(K=!0,!s.length)continue;o.body=M(o.body,s)}n[++r]=o}else o instanceof Ue?o.expression=u(o.expression):o instanceof Ee?o.expression=u(o.expression):n[++r]=o}function u(e){n[++r]=o;var t=c(a,e);return t?(K=!0,t.length?M(e,t):e instanceof Ye?e.tail_node().left:e.left):e}n.length=r+1}}function w(t,e,n){e instanceof Se||t.warn("Dropping unreachable code [{file}:{line},{col}]",e.start),e.walk(new Dt(function(e){return e instanceof Ve?(t.warn("Declarations in unreachable code! [{file}:{line},{col}]",e.start),e.remove_initializers(),n.push(e),!0):e instanceof Se?(n.push(e),!0):e instanceof Ae||void 0}))}function p(e){return e instanceof vt?e.getValue():e instanceof Xe&&"void"==e.operator&&e.expression instanceof vt?void 0:e}function v(e,t){return e.is_undefined||e instanceof At||e instanceof Xe&&"void"==e.operator&&!e.expression.has_side_effects(t)}!function(e){function n(e){return/strict/.test(e.option("pure_getters"))}se.DEFMETHOD("may_throw_on_access",function(e){return!e.option("pure_getters")||this._dot_throw(e)}),e(se,n),e(wt,ne),e(At,ne),e(vt,te),e(it,te),e(ot,function(e){if(!n(e))return!1;for(var t=this.properties.length;0<=--t;)if(this.properties[t].value instanceof ke)return!0;return!1}),e(Ce,te),e(et,te),e(Xe,function(){return"void"==this.operator}),e(tt,function(e){return("&&"==this.operator||"||"==this.operator)&&(this.left._dot_throw(e)||this.right._dot_throw(e))}),e(rt,function(e){return"="==this.operator&&this.right._dot_throw(e)}),e(nt,function(e){return this.consequent._dot_throw(e)||this.alternative._dot_throw(e)}),e(Qe,function(e){if(!n(e))return!1;var t=this.expression;return t instanceof mt&&(t=t.fixed_value()),!(t instanceof Ce&&"prototype"==this.property)}),e(Ye,function(e){return this.tail_node()._dot_throw(e)}),e(mt,function(e){if(this.is_undefined)return!0;if(!n(e))return!1;if(q(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,t){e.DEFMETHOD("_dot_throw",t)}),r=["!","delete"],i=["in","instanceof","==","!=","===","!==","<","<=",">=",">"],(n=function(e,t){e.DEFMETHOD("is_boolean",t)})(se,te),n(Xe,function(){return ee(this.operator,r)}),n(tt,function(){return ee(this.operator,i)||J(this.operator)&&this.left.is_boolean()&&this.right.is_boolean()}),n(nt,function(){return this.consequent.is_boolean()&&this.alternative.is_boolean()}),n(rt,function(){return"="==this.operator&&this.right.is_boolean()}),n(Ye,function(){return this.tail_node().is_boolean()}),n(St,ne),n(Ot,ne),function(e){e(se,te),e(yt,ne);var t=ie("+ - ~ ++ --");e(Je,function(){return t(this.operator)});var n=ie("- * / % & | ^ << >> >>>");e(tt,function(e){return n(this.operator)||"+"==this.operator&&this.left.is_number(e)&&this.right.is_number(e)}),e(rt,function(e){return n(this.operator.slice(0,-1))||"="==this.operator&&this.right.is_number(e)}),e(Ye,function(e){return this.tail_node().is_number(e)}),e(nt,function(e){return this.consequent.is_number(e)&&this.alternative.is_number(e)})}(function(e,t){e.DEFMETHOD("is_number",t)}),(a=function(e,t){e.DEFMETHOD("is_string",t)})(se,te),a(bt,ne),a(Xe,function(){return"typeof"==this.operator}),a(tt,function(e){return"+"==this.operator&&(this.left.is_string(e)||this.right.is_string(e))}),a(rt,function(e){return("="==this.operator||"+="==this.operator)&&this.right.is_string(e)}),a(Ye,function(e){return this.tail_node().is_string(e)}),a(nt,function(e){return this.consequent.is_string(e)&&this.alternative.is_string(e)});var u,J=ie("&& ||"),l=ie("delete ++ --");function X(e,t){return t instanceof Je&&l(t.operator)?t.expression:t instanceof rt&&t.left===e?e:void 0}function E(e,t){return e.print_to_string().length>t.print_to_string().length?t:e}function I(e,t,n){return(F(e)?function(e,t){return E(Y(fe,e,{body:e}),Y(fe,t,{body:t})).body}:E)(t,n)}function c(e){for(var t in e)e[t]=ie(e[t])}u=function(e,t){e.DEFMETHOD("_find_defs",t)},se.DEFMETHOD("resolve_defines",function(e){if(e.option("global_defs")){var t=this._find_defs(e,"");if(t){for(var n,r=this,i=0;n=r,(r=e.parent(i++))instanceof We&&r.expression===n;);if(!X(n,r))return t;e.warn("global_defs "+this.print_to_string()+" redefined [{file}:{line},{col}]",this.start)}}}),u(se,$),u(Qe,function(e,t){return this.expression._find_defs(e,"."+this.property+t)}),u(mt,function(e,t){if(this.global()){var n,r=e.option("global_defs");if(r&&ae(r,n=this.name+t)){var i=function t(e,n){if(e instanceof se)return Y(e.CTOR,n,e);if(Array.isArray(e))return Y(it,n,{elements:e.map(function(e){return t(e,n)})});if(e&&"object"==typeof e){var r=[];for(var i in e)ae(e,i)&&r.push(Y(st,n,{key:i,value:t(e[i],n)}));return Y(ot,n,{properties:r})}return U(e,n)}(r[n],this),o=e.find_parent(xe);return i.walk(new Dt(function(e){e instanceof mt&&(e.scope=o,e.thedef=o.def_global(e))})),i}}});var h=["constructor","toString","valueOf"],d={Array:["indexOf","join","lastIndexOf","slice"].concat(h),Boolean:h,Function:h,Number:["toExponential","toFixed","toPrecision"].concat(h),Object:h,RegExp:["test"].concat(h),String:["charAt","charCodeAt","concat","indexOf","italics","lastIndexOf","match","replace","search","slice","split","substr","substring","toLowerCase","toUpperCase","trim"].concat(h)};c(d);var m={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"]};c(m),function(e){se.DEFMETHOD("evaluate",function(e){if(!e.option("evaluate"))return this;var t=[],n=this._eval(e,t,1);return t.forEach(function(e){delete e._eval}),!n||n instanceof RegExp?n:"function"==typeof n||"object"==typeof n?this:n});var t=ie("! ~ - + void");se.DEFMETHOD("is_constant",function(){return this instanceof vt?!(this instanceof _t):this instanceof Xe&&this.expression instanceof vt&&t(this.operator)}),e(ue,function(){throw new Error(B("Cannot evaluate a statement [{file}:{line},{col}]",this.start))}),e(Ce,S),e(se,S),e(vt,function(){return this.getValue()}),e(Oe,function(e){if(e.option("unsafe")){var t=function(){};return t.node=this,t.toString=function(){return"function(){}"},t}return this}),e(it,function(e,t,n){if(e.option("unsafe")){for(var r=[],i=0,o=this.elements.length;i<o;i++){var a=this.elements[i],s=a._eval(e,t,n);if(a===s)return this;r.push(s)}return r}return this}),e(ot,function(e,t,n){if(e.option("unsafe")){for(var r={},i=0,o=this.properties.length;i<o;i++){var a=this.properties[i],s=a.key;if(s instanceof ut)s=s.name;else if(s instanceof se&&(s=s._eval(e,t,n))===a.key)return this;if("function"==typeof Object.prototype[s])return this;if(!(a.value instanceof Oe)&&(r[s]=a.value._eval(e,t,n),r[s]===a.value))return this}return r}return this});var i=ie("! typeof void");e(Xe,function(e,t,n){var r=this.expression;if(e.option("typeofs")&&"typeof"==this.operator&&(r instanceof Ce||r instanceof mt&&r.fixed_value()instanceof Ce))return"function";if(i(this.operator)||n++,(r=r._eval(e,t,n))===this.expression)return this;switch(this.operator){case"!":return!r;case"typeof":return r instanceof RegExp?this:typeof r;case"void":return;case"~":return~r;case"-":return-r;case"+":return+r}return this});var a=ie("&& || === !==");e(tt,function(e,t,n){a(this.operator)||n++;var r=this.left._eval(e,t,n);if(r===this.left)return this;var i,o=this.right._eval(e,t,n);if(o===this.right)return this;switch(this.operator){case"&&":i=r&&o;break;case"||":i=r||o;break;case"|":i=r|o;break;case"&":i=r&o;break;case"^":i=r^o;break;case"+":i=r+o;break;case"*":i=r*o;break;case"/":i=r/o;break;case"%":i=r%o;break;case"-":i=r-o;break;case"<<":i=r<<o;break;case">>":i=r>>o;break;case">>>":i=r>>>o;break;case"==":i=r==o;break;case"===":i=r===o;break;case"!=":i=r!=o;break;case"!==":i=r!==o;break;case"<":i=r<o;break;case"<=":i=r<=o;break;case">":i=o<r;break;case">=":i=o<=r;break;default:return this}return isNaN(i)&&e.find_parent(Ee)?this:i}),e(nt,function(e,t,n){var r=this.condition._eval(e,t,n);if(r===this.condition)return this;var i=r?this.consequent:this.alternative,o=i._eval(e,t,n);return o===i?this:o}),e(mt,function(e,t,n){var r,i=this.fixed_value();if(!i)return this;if(0<=t.indexOf(i))r=i._eval();else{if(this._eval=S,r=i._eval(e,t,n),delete this._eval,r===i)return this;i._eval=function(){return r},t.push(i)}if(r&&"object"==typeof r){var o=this.definition().escaped;if(o&&o<n)return this}return r});var p={Array:Array,Math:Math,Number:Number,Object:Object,String:String},s={Math:["E","LN10","LN2","LOG2E","LOG10E","PI","SQRT1_2","SQRT2"],Number:["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"]};c(s),e(We,function(e,t,n){if(e.option("unsafe")){var r=this.property;if(r instanceof se&&(r=r._eval(e,t,n))===this.property)return this;var i,o=this.expression;if(q(o)){if(!(s[o.name]||te)(r))return this;i=p[o.name]}else{if(!(i=o._eval(e,t,n+1))||i===o||!ae(i,r))return this;if("function"==typeof i)switch(r){case"name":return i.node.name?i.node.name.name:"";case"length":return i.node.argnames.length;default:return this}}return i[r]}return this}),e(Ke,function(t,e,n){var r=this.expression;if(t.option("unsafe")&&r instanceof We){var i,o=r.property;if(o instanceof se&&(o=o._eval(t,e,n))===r.property)return this;var a=r.expression;if(q(a)){if(!(m[a.name]||te)(o))return this;i=p[a.name]}else if((i=a._eval(t,e,n+1))===a||!(i&&d[i.constructor.name]||te)(o))return this;for(var s=[],u=0,l=this.args.length;u<l;u++){var c=this.args[u],f=c._eval(t,e,n);if(c===f)return this;s.push(f)}try{return i[o].apply(i,s)}catch(e){t.warn("Error evaluating {code} [{file}:{line},{col}]",{code:this.print_to_string(),file:this.start.file,line:this.start.line,col:this.start.col})}}return this}),e(Ge,S)}(function(e,t){e.DEFMETHOD("_eval",t)}),function(e){function o(e){return Y(Xe,e,{operator:"!",expression:e})}function i(e,t,n){var r=o(e);if(n){var i=Y(fe,t,{body:t});return E(r,i)===i?t:r}return E(r,t)}e(se,function(){return o(this)}),e(ue,function(){throw new Error("Cannot negate a statement")}),e(Oe,function(){return o(this)}),e(Xe,function(){return"!"==this.operator?this.expression:o(this)}),e(Ye,function(e){var t=this.expressions.slice();return t.push(t.pop().negate(e)),M(this,t)}),e(nt,function(e,t){var n=this.clone();return n.consequent=n.consequent.negate(e),n.alternative=n.alternative.negate(e),i(this,n,t)}),e(tt,function(e,t){var n=this.clone(),r=this.operator;if(e.option("unsafe_comps"))switch(r){case"<=":return n.operator=">",n;case"<":return n.operator=">=",n;case">=":return n.operator="<",n;case">":return n.operator="<=",n}switch(r){case"==":return n.operator="!=",n;case"!=":return n.operator="==",n;case"===":return n.operator="!==",n;case"!==":return n.operator="===",n;case"&&":return n.operator="||",n.left=n.left.negate(e,t),n.right=n.right.negate(e),i(this,n,t);case"||":return n.operator="&&",n.left=n.left.negate(e,t),n.right=n.right.negate(e),i(this,n,t)}return o(this)})}(function(e,n){e.DEFMETHOD("negate",function(e,t){return n.call(this,e,t)})});var g=ie("Boolean decodeURI decodeURIComponent Date encodeURI encodeURIComponent Error escape EvalError isFinite isNaN Number Object parseFloat parseInt RangeError ReferenceError String SyntaxError TypeError unescape URIError");function A(e){return e&&e.aborts()}Ke.DEFMETHOD("is_expr_pure",function(e){if(e.option("unsafe")){var t=this.expression;if(q(t)&&g(t.name))return!0;if(t instanceof Qe&&q(t.expression)&&(m[t.expression.name]||te)(t.property))return!0}return this.pure||!e.pure_funcs(this)}),se.DEFMETHOD("is_call_pure",te),Qe.DEFMETHOD("is_call_pure",function(e){if(e.option("unsafe")){var t=this.expression,n=te;return t instanceof it?n=d.Array:t.is_boolean()?n=d.Boolean:t.is_number(e)?n=d.Number:t instanceof _t?n=d.RegExp:t.is_string(e)?n=d.String:this.may_throw_on_access(e)||(n=d.Object),n(this.property)}}),function(e){function t(e,t){for(var n=e.length;0<=--n;)if(e[n].has_side_effects(t))return!0;return!1}e(se,ne),e(de,te),e(vt,te),e(gt,te),e(pe,function(e){return t(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))||t(this.args,e)}),e(Ue,function(e){return this.expression.has_side_effects(e)||t(this.body,e)}),e(qe,function(e){return this.expression.has_side_effects(e)||t(this.body,e)}),e(ze,function(e){return t(this.body,e)||this.bcatch&&this.bcatch.has_side_effects(e)||this.bfinally&&this.bfinally.has_side_effects(e)}),e(Me,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(me,function(e){return this.body.has_side_effects(e)}),e(fe,function(e){return this.body.has_side_effects(e)}),e(Ce,te),e(tt,function(e){return this.left.has_side_effects(e)||this.right.has_side_effects(e)}),e(rt,ne),e(nt,function(e){return this.condition.has_side_effects(e)||this.consequent.has_side_effects(e)||this.alternative.has_side_effects(e)}),e(Je,function(e){return l(this.operator)||this.expression.has_side_effects(e)}),e(mt,function(e){return!this.is_declared(e)}),e(lt,te),e(ot,function(e){return t(this.properties,e)}),e(at,function(e){return this.value.has_side_effects(e)}),e(it,function(e){return t(this.elements,e)}),e(Qe,function(e){return this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)}),e(Ze,function(e){return this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)||this.property.has_side_effects(e)}),e(Ye,function(e){return t(this.expressions,e)}),e(Ve,function(e){return t(this.definitions,e)}),e(He,function(e){return this.value})}(function(e,t){e.DEFMETHOD("has_side_effects",t)}),function(e){function t(e,t){for(var n=e.length;0<=--n;)if(e[n].may_throw(t))return!0;return!1}e(se,ne),e(vt,te),e(de,te),e(Ce,te),e(lt,te),e(gt,te),e(it,function(e){return t(this.elements,e)}),e(rt,function(e){return!!this.right.may_throw(e)||!(!e.has_directive("use strict")&&"="==this.operator&&this.left instanceof mt)&&this.left.may_throw(e)}),e(tt,function(e){return this.left.may_throw(e)||this.right.may_throw(e)}),e(pe,function(e){return t(this.body,e)}),e(Ke,function(e){return!!t(this.args,e)||!this.is_expr_pure(e)&&(!!this.expression.may_throw(e)||(!(this.expression instanceof Ce)||t(this.expression.body,e)))}),e(qe,function(e){return this.expression.may_throw(e)||t(this.body,e)}),e(nt,function(e){return this.condition.may_throw(e)||this.consequent.may_throw(e)||this.alternative.may_throw(e)}),e(Ve,function(e){return t(this.definitions,e)}),e(Qe,function(e){return this.expression.may_throw_on_access(e)||this.expression.may_throw(e)}),e(Me,function(e){return this.condition.may_throw(e)||this.body&&this.body.may_throw(e)||this.alternative&&this.alternative.may_throw(e)}),e(me,function(e){return this.body.may_throw(e)}),e(ot,function(e){return t(this.properties,e)}),e(at,function(e){return this.value.may_throw(e)}),e(Te,function(e){return this.value&&this.value.may_throw(e)}),e(Ye,function(e){return t(this.expressions,e)}),e(fe,function(e){return this.body.may_throw(e)}),e(Ze,function(e){return this.expression.may_throw_on_access(e)||this.expression.may_throw(e)||this.property.may_throw(e)}),e(Ue,function(e){return this.expression.may_throw(e)||t(this.body,e)}),e(mt,function(e){return!this.is_declared(e)}),e(ze,function(e){return this.bcatch?this.bcatch.may_throw(e):t(this.body,e)||this.bfinally&&this.bfinally.may_throw(e)}),e(Je,function(e){return!("typeof"==this.operator&&this.expression instanceof mt)&&this.expression.may_throw(e)}),e(He,function(e){return!!this.value&&this.value.may_throw(e)})}(function(e,t){e.DEFMETHOD("may_throw",t)}),function(e){function t(e){for(var t=e.length;0<=--t;)if(!e[t].is_constant_expression())return!1;return!0}e(se,te),e(vt,ne),e(Ce,function(r){var i=this,o=!0;return i.walk(new Dt(function(e){if(!o)return!0;if(e instanceof mt){if(i.inlined)return o=!1,!0;var t=e.definition();if(ee(t,i.enclosed)&&!i.variables.has(t.name)){if(r){var n=r.find_variable(e);if(t.undeclared?!n:n===t)return o="f",!0}o=!1}return!0}})),o}),e(Je,function(){return this.expression.is_constant_expression()}),e(tt,function(){return this.left.is_constant_expression()&&this.right.is_constant_expression()}),e(it,function(){return t(this.elements)}),e(ot,function(){return t(this.properties)}),e(at,function(){return this.value.is_constant_expression()})}(function(e,t){e.DEFMETHOD("is_constant_expression",t)}),function(e){function t(){var e=this.body.length;return 0<e&&A(this.body[e-1])}e(ue,D),e(De,S),e(he,t),e(Ne,t),e(Me,function(){return this.alternative&&A(this.body)&&A(this.alternative)&&this})}(function(e,t){e.DEFMETHOD("aborts",t)}),e(ce,function(e,t){return t.has_directive(e.value)!==e?Y(de,e):e}),e(le,function(e,t){return t.option("drop_debugger")?Y(de,e):e}),e(me,function(e,t){return e.body instanceof Fe&&t.loopcontrol_target(e.body)===e.body?Y(de,e):0==e.label.references.length?e.body:e}),e(pe,function(e,t){return s(e.body,t),e}),e(he,function(e,t){switch(s(e.body,t),e.body.length){case 1:return e.body[0];case 0:return Y(de,e)}return e}),e(Ce,function(e,t){return s(e.body,t),t.option("side_effects")&&1==e.body.length&&e.body[0]===t.has_directive("use strict")&&(e.body.length=0),e}),Ae.DEFMETHOD("drop_unused",function(y){if(y.option("unused")&&!y.has_directive("use asm")){var _=this;if(!_.uses_eval&&!_.uses_with){var w=!(_ instanceof xe)||y.toplevel.funcs,E=!(_ instanceof xe)||y.toplevel.vars,A=/keep_assign/.test(y.option("unused"))?te:function(e,t){var n;if(e instanceof rt&&(e.write_only||"="==e.operator)?n=e.left:e instanceof Je&&e.write_only&&(n=e.expression),/strict/.test(y.option("pure_getters")))for(;n instanceof We&&!n.expression.may_throw_on_access(y);)n instanceof Ze&&t.unshift(n.property),n=n.expression;return n},a=[],x=Object.create(null),C=Object.create(null);_ instanceof xe&&y.top_retain&&_.variables.each(function(e){!y.top_retain(e)||e.id in x||(x[e.id]=!0,a.push(e))});var k=new R,r=new R,O=this,s=new Dt(function(e,t){if(e!==_){if(e instanceof Se){var n=e.name.definition();return w||O!==_||n.id in x||(x[n.id]=!0,a.push(n)),r.add(n.id,e),!0}return e instanceof ft&&O===_&&k.add(e.definition().id,e),e instanceof Ve&&O===_?(e.definitions.forEach(function(e){var t=e.name.definition();e.name instanceof ct&&k.add(t.id,e),E||t.id in x||(x[t.id]=!0,a.push(t)),e.value&&(r.add(t.id,e.value),e.value.has_side_effects(y)&&e.value.walk(s),t.chained||e.name.fixed_value()!==e.value||(C[t.id]=e))}),!0):i(e,t)}});_.walk(s),s=new Dt(i);for(var e=0;e<a.length;e++){var t=r.get(a[e].id);t&&t.forEach(function(e){e.walk(s)})}var S=new Wt(function(a,e,t){var n=S.parent();if(E){var r=[];if((f=A(a,r))instanceof mt){var i=(s=f.definition()).id in x,o=null;if(a instanceof rt?(!i||a.left===f&&s.id in C&&C[s.id]!==a)&&(o=a.right):i||(o=Y(yt,a,{value:0})),o)return r.push(o),W(n,a,M(a,r.map(function(e){return e.transform(S)})))}}if(O===_){var s;if(a instanceof Oe&&a.name&&!y.option("keep_fnames"))(s=a.name.definition()).id in x&&!(1<s.orig.length)||(a.name=null);if(a instanceof Ce&&!(a instanceof ke))for(var u=!y.option("keep_fargs"),l=a.argnames,c=l.length;0<=--c;){var f;(f=l[c]).definition().id in x?u=!1:(f.__unused=!0,u&&(l.pop(),y[f.unreferenced()?"warn":"info"]("Dropping unused function argument {name} [{file}:{line},{col}]",b(f))))}if(w&&a instanceof Se&&a!==_)if(!((s=a.name.definition()).id in x))return y[a.name.unreferenced()?"warn":"info"]("Dropping unused function {name} [{file}:{line},{col}]",b(a.name)),s.eliminated++,Y(de,a);if(a instanceof Ve&&!(n instanceof we&&n.init===a)){var p=[],h=[],d=[],m=[];switch(a.definitions.forEach(function(e){e.value&&(e.value=e.value.transform(S));var t=e.name.definition();if(!E||t.id in x){if(e.value&&t.id in C&&C[t.id]!==e&&(e.value=e.value.drop_side_effect_free(y)),e.name instanceof ct){var n=k.get(t.id);if(1<n.length&&(!e.value||t.orig.indexOf(e.name)>t.eliminated)){if(y.warn("Dropping duplicated definition of variable {name} [{file}:{line},{col}]",b(e.name)),e.value){var r=Y(mt,e.name,e.name);t.references.push(r);var i=Y(rt,e,{operator:"=",left:r,right:e.value});C[t.id]===e&&(C[t.id]=i),m.push(i.transform(S))}return T(n,e),void t.eliminated++}}e.value?(0<m.length&&(0<d.length?(m.push(e.value),e.value=M(e.value,m)):p.push(Y(fe,a,{body:M(a,m)})),m=[]),d.push(e)):h.push(e)}else if(t.orig[0]instanceof dt){(o=e.value&&e.value.drop_side_effect_free(y))&&m.push(o),e.value=null,h.push(e)}else{var o;(o=e.value&&e.value.drop_side_effect_free(y))?(y.warn("Side effects in initialization of unused variable {name} [{file}:{line},{col}]",b(e.name)),m.push(o)):y[e.name.unreferenced()?"warn":"info"]("Dropping unused variable {name} [{file}:{line},{col}]",b(e.name)),t.eliminated++}}),(0<h.length||0<d.length)&&(a.definitions=h.concat(d),p.push(a)),0<m.length&&p.push(Y(fe,a,{body:M(a,m)})),p.length){case 0:return t?re.skip:Y(de,a);case 1:return p[0];default:return t?re.splice(p):Y(he,a,{body:p})}}if(a instanceof _e)return e(a,this),a.init instanceof he&&(g=a.init,a.init=g.body.pop(),g.body.push(a)),a.init instanceof fe?a.init=a.init.body:N(a.init)&&(a.init=null),g?t?re.splice(g.body):g:a;if(a instanceof me&&a.body instanceof _e){if(e(a,this),a.body instanceof he){var g=a.body;return a.body=g.body.pop(),g.body.push(a),t?re.splice(g.body):g}return a}if(a instanceof Ae){var v=O;return e(O=a,this),O=v,a}}function b(e){return{name:e.name,file:e.start.file,line:e.start.line,col:e.start.col}}});_.transform(S)}}function i(e,t){var n,r=[],i=A(e,r);if(i instanceof mt&&_.variables.get(i.name)===(n=i.definition()))return r.forEach(function(e){e.walk(s)}),e instanceof rt&&(e.right.walk(s),e.left!==i||n.chained||i.fixed_value()!==e.right||(C[n.id]=e)),!0;if(e instanceof mt)return(n=e.definition()).id in x||(x[n.id]=!0,a.push(n)),!0;if(e instanceof Ae){var o=O;return O=e,t(),O=o,!0}}}),Ae.DEFMETHOD("hoist_declarations",function(i){var o=this;if(i.has_directive("use asm"))return o;var a=i.option("hoist_funs"),s=i.option("hoist_vars");if(a||s){var u=[],l=[],c=new R,f=0,t=0;o.walk(new Dt(function(e){return e instanceof Ae&&e!==o||(e instanceof $e?(++t,!0):void 0)})),s=s&&1<t;var p=new Wt(function(e){if(e!==o){if(e instanceof ce)return u.push(e),Y(de,e);if(a&&e instanceof Se&&(p.parent()===o||!i.has_directive("use strict")))return l.push(e),Y(de,e);if(s&&e instanceof $e){e.definitions.forEach(function(e){c.set(e.name.name,e),++f});var t=e.to_assignments(i),n=p.parent();if(n instanceof we&&n.init===e){if(null==t){var r=e.definitions[0].name;return Y(mt,r,r)}return t}return n instanceof _e&&n.init===e?t:t?Y(fe,e,{body:t}):Y(de,e)}if(e instanceof Ae)return e}});if(o=o.transform(p),0<f){var n=[];if(c.each(function(t,e){o instanceof Ce&&H(function(e){return e.name==t.name.name},o.argnames)?c.del(e):((t=t.clone()).value=null,n.push(t),c.set(e,t))}),0<n.length){for(var e=0;e<o.body.length;){if(o.body[e]instanceof fe){var r,h,d=o.body[e].body;if(d instanceof rt&&"="==d.operator&&(r=d.left)instanceof ut&&c.has(r.name)){if((m=c.get(r.name)).value)break;m.value=d.right,T(n,m),n.push(m),o.body.splice(e,1);continue}if(d instanceof Ye&&(h=d.expressions[0])instanceof rt&&"="==h.operator&&(r=h.left)instanceof ut&&c.has(r.name)){var m;if((m=c.get(r.name)).value)break;m.value=h.right,T(n,m),n.push(m),o.body[e].body=M(d,d.expressions.slice(1));continue}}if(o.body[e]instanceof de)o.body.splice(e,1);else{if(!(o.body[e]instanceof he))break;var g=[e,1].concat(o.body[e].body);o.body.splice.apply(o.body,g)}}n=Y($e,o,{definitions:n}),l.push(n)}}o.body=u.concat(l,o.body)}return o}),Ae.DEFMETHOD("var_names",function(){var n=this._var_names;return n||(this._var_names=n=Object.create(null),this.enclosed.forEach(function(e){n[e.name]=!0}),this.variables.each(function(e,t){n[t]=!0})),n}),Ae.DEFMETHOD("make_var_name",function(e){for(var t=this.var_names(),n=e=e.replace(/(?:^[^a-z_$]|[^a-z0-9_$])/gi,"_"),r=0;t[n];r++)n=e+"$"+r;return t[n]=!0,n}),Ae.DEFMETHOD("hoist_properties",function(e){var u=this;if(!e.option("hoist_props")||e.has_directive("use asm"))return u;var r=u instanceof xe&&e.top_retain||te,l=Object.create(null);return u.transform(new Wt(function(i,e){var t;if(i instanceof He&&((s=i.name).scope===u&&1!=(n=s.definition()).escaped&&!n.single_use&&!n.direct_access&&!r(n)&&(t=s.fixed_value())===i.value&&t instanceof ot)){e(i,this);var o=new R,a=[];return t.properties.forEach(function(e){var t,n,r;a.push(Y(He,i,{name:(t=e.key,n=Y(s.CTOR,s,{name:u.make_var_name(s.name+"_"+t),scope:u}),r=u.def_variable(n),o.set(t,r),u.enclosed.push(r),n),value:e.value}))}),l[n.id]=o,re.splice(a)}if(i instanceof We&&i.expression instanceof mt&&(o=l[i.expression.definition().id])){var s,n=o.get(p(i.property));return(s=Y(mt,i,{name:n.name,scope:i.expression.scope,thedef:n})).reference({}),s}}))}),function(e){function a(e,t,n){var r=e.length;if(!r)return null;for(var i=[],o=!1,a=0;a<r;a++){var s=e[a].drop_side_effect_free(t,n);o|=s!==e[a],s&&(i.push(s),n=!1)}return o?i.length?i:null:e}e(se,S),e(vt,D),e(gt,D),e(Ke,function(t,e){if(!this.is_expr_pure(t)){if(this.expression.is_call_pure(t)){var n=this.args.slice();return n.unshift(this.expression.expression),(n=a(n,t,e))&&M(this,n)}if(this.expression instanceof Oe&&(!this.expression.name||!this.expression.name.definition().references.length)){var r=this.clone(),i=r.expression;return i.process_expression(!1,t),i.walk(new Dt(function(e){return e instanceof Te&&e.value?(e.value=e.value.drop_side_effect_free(t),!0):e instanceof Ae&&e!==i||void 0})),r}return this}this.pure&&t.warn("Dropping __PURE__ call [{file}:{line},{col}]",this.start);var o=a(this.args,t,e);return o&&M(this,o)}),e(ke,D),e(Oe,D),e(tt,function(e,t){var n=this.right.drop_side_effect_free(e);if(!n)return this.left.drop_side_effect_free(e,t);if(J(this.operator)){if(n===this.right)return this;var r=this.clone();return r.right=n,r}var i=this.left.drop_side_effect_free(e,t);return i?M(this,[i,n]):this.right.drop_side_effect_free(e,t)}),e(rt,function(e){var t=this.left;return t.has_side_effects(e)||e.has_directive("use strict")&&t instanceof We&&t.expression.is_constant()?this:(this.write_only=!0,Q(t).is_constant_expression(e.find_parent(Ae))?this.right.drop_side_effect_free(e):this)}),e(nt,function(e){var t=this.consequent.drop_side_effect_free(e),n=this.alternative.drop_side_effect_free(e);if(t===this.consequent&&n===this.alternative)return this;if(!t)return n?Y(tt,this,{operator:"||",left:this.condition,right:n}):this.condition.drop_side_effect_free(e);if(!n)return Y(tt,this,{operator:"&&",left:this.condition,right:t});var r=this.clone();return r.consequent=t,r.alternative=n,r}),e(Je,function(e,t){if(l(this.operator))return this.write_only=!this.expression.has_side_effects(e),this;if("typeof"==this.operator&&this.expression instanceof mt)return null;var n=this.expression.drop_side_effect_free(e,t);return t&&n&&P(n)?n===this.expression&&"!"==this.operator?this:n.negate(e,t):n}),e(mt,function(e){return this.is_declared(e)?null:this}),e(ot,function(e,t){var n=a(this.properties,e,t);return n&&M(this,n)}),e(at,function(e,t){return this.value.drop_side_effect_free(e,t)}),e(it,function(e,t){var n=a(this.elements,e,t);return n&&M(this,n)}),e(Qe,function(e,t){return this.expression.may_throw_on_access(e)?this:this.expression.drop_side_effect_free(e,t)}),e(Ze,function(e,t){if(this.expression.may_throw_on_access(e))return this;var n=this.expression.drop_side_effect_free(e,t);if(!n)return this.property.drop_side_effect_free(e,t);var r=this.property.drop_side_effect_free(e);return r?M(this,[n,r]):n}),e(Ye,function(e){var t=this.tail_node(),n=t.drop_side_effect_free(e);if(n===t)return this;var r=this.expressions.slice(0,-1);return n&&r.push(n),M(this,r)})}(function(e,t){e.DEFMETHOD("drop_side_effect_free",t)}),e(fe,function(e,t){if(t.option("side_effects")){var n=e.body,r=n.drop_side_effect_free(t,!0);if(!r)return t.warn("Dropping side-effect-free statement [{file}:{line},{col}]",e.start),Y(de,e);if(r!==n)return Y(fe,e,{body:r})}return e}),e(ye,function(e,t){return t.option("loops")?Y(_e,e,e).optimize(t):e}),e(be,function(t,e){if(!e.option("loops"))return t;var n=t.condition.tail_node().evaluate(e);if(!(n instanceof se)){if(n)return Y(_e,t,{body:Y(he,t.body,{body:[t.body,Y(fe,t.condition,{body:t.condition})]})}).optimize(e);var r=!1,i=new Dt(function(e){return!!(e instanceof Ae||r)||(e instanceof Re&&i.loopcontrol_target(e)===t?r=!0:void 0)}),o=e.parent();if((o instanceof me?o:t).walk(i),!r)return Y(he,t.body,{body:[t.body,Y(fe,t.condition,{body:t.condition})]}).optimize(e)}return t.body instanceof fe?Y(_e,t,{condition:M(t.condition,[t.body.body,t.condition]),body:Y(de,t)}).optimize(e):t}),e(_e,function(e,t){if(!t.option("loops"))return e;if(t.option("side_effects")&&e.init&&(e.init=e.init.drop_side_effect_free(t)),e.condition){var n=e.condition.evaluate(t);if(!(n instanceof se))if(n)e.condition=null;else if(!t.option("dead_code")){var r=e.condition;e.condition=U(n,e.condition),e.condition=E(e.condition.transform(t),r)}if(t.option("dead_code")&&(n instanceof se&&(n=e.condition.tail_node().evaluate(t)),!n)){var i=[];return w(t,e.body,i),e.init instanceof ue?i.push(e.init):e.init&&i.push(Y(fe,e.init,{body:e.init})),i.push(Y(fe,e.condition,{body:e.condition})),Y(he,e,{body:i}).optimize(t)}}return function t(n,r){var e=n.body instanceof he?n.body.body[0]:n.body;if(r.option("dead_code")&&o(e)){var i=[];return n.init instanceof ue?i.push(n.init):n.init&&i.push(Y(fe,n.init,{body:n.init})),n.condition&&i.push(Y(fe,n.condition,{body:n.condition})),w(r,n.body,i),Y(he,n,{body:i})}return e instanceof Me&&(o(e.body)?(n.condition?n.condition=Y(tt,n.condition,{left:n.condition,operator:"&&",right:e.condition.negate(r)}):n.condition=e.condition.negate(r),a(e.alternative)):o(e.alternative)&&(n.condition?n.condition=Y(tt,n.condition,{left:n.condition,operator:"&&",right:e.condition}):n.condition=e.condition,a(e.body))),n;function o(e){return e instanceof Fe&&r.loopcontrol_target(e)===r.self()}function a(e){e=y(e),n.body instanceof he?(n.body=n.body.clone(),n.body.body=e.concat(n.body.body.slice(1)),n.body=n.body.transform(r)):n.body=Y(he,n.body,{body:e}).transform(r),n=t(n,r)}}(e,t)}),e(Me,function(e,t){if(N(e.alternative)&&(e.alternative=null),!t.option("conditionals"))return e;var n=e.condition.evaluate(t);if(!(t.option("dead_code")||n instanceof se)){var r=e.condition;e.condition=U(n,r),e.condition=E(e.condition.transform(t),r)}if(t.option("dead_code")){if(n instanceof se&&(n=e.condition.tail_node().evaluate(t)),!n){t.warn("Condition always false [{file}:{line},{col}]",e.condition.start);var i=[];return w(t,e.body,i),i.push(Y(fe,e.condition,{body:e.condition})),e.alternative&&i.push(e.alternative),Y(he,e,{body:i}).optimize(t)}if(!(n instanceof se)){t.warn("Condition always true [{file}:{line},{col}]",e.condition.start);i=[];return e.alternative&&w(t,e.alternative,i),i.push(Y(fe,e.condition,{body:e.condition})),i.push(e.body),Y(he,e,{body:i}).optimize(t)}}var o=e.condition.negate(t),a=e.condition.print_to_string().length,s=o.print_to_string().length,u=s<a;if(e.alternative&&u){u=!1,e.condition=o;var l=e.body;e.body=e.alternative||Y(de,e),e.alternative=l}if(N(e.body)&&N(e.alternative))return Y(fe,e.condition,{body:e.condition.clone()}).optimize(t);if(e.body instanceof fe&&e.alternative instanceof fe)return Y(fe,e,{body:Y(nt,e,{condition:e.condition,consequent:e.body.body,alternative:e.alternative.body})}).optimize(t);if(N(e.alternative)&&e.body instanceof fe)return a===s&&!u&&e.condition instanceof tt&&"||"==e.condition.operator&&(u=!0),u?Y(fe,e,{body:Y(tt,e,{operator:"||",left:o,right:e.body.body})}).optimize(t):Y(fe,e,{body:Y(tt,e,{operator:"&&",left:e.condition,right:e.body.body})}).optimize(t);if(e.body instanceof de&&e.alternative instanceof fe)return Y(fe,e,{body:Y(tt,e,{operator:"||",left:e.condition,right:e.alternative.body})}).optimize(t);if(e.body instanceof Be&&e.alternative instanceof Be&&e.body.TYPE==e.alternative.TYPE)return Y(e.body.CTOR,e,{value:Y(nt,e,{condition:e.condition,consequent:e.body.value||Y(At,e.body),alternative:e.alternative.value||Y(At,e.alternative)}).transform(t)}).optimize(t);if(e.body instanceof Me&&!e.body.alternative&&!e.alternative&&(e=Y(Me,e,{condition:Y(tt,e.condition,{operator:"&&",left:e.condition,right:e.body.condition}),body:e.body.body,alternative:null})),A(e.body)&&e.alternative){var c=e.alternative;return e.alternative=null,Y(he,e,{body:[e,c]}).optimize(t)}if(A(e.alternative)){i=e.body;return e.body=e.alternative,e.condition=u?o:e.condition.negate(t),e.alternative=null,Y(he,e,{body:[e,i]}).optimize(t)}return e}),e(Ue,function(t,n){if(!n.option("switches"))return t;var e,r=t.expression.evaluate(n);if(!(r instanceof se)){var i=t.expression;t.expression=U(r,i),t.expression=E(t.expression.transform(n),i)}if(!n.option("dead_code"))return t;r instanceof se&&(r=t.expression.tail_node().evaluate(n));for(var o,a,s=[],u=[],l=0,c=t.body.length;l<c&&!a;l++){if((e=t.body[l])instanceof Pe)o?b(e,u[u.length-1]):o=e;else if(!(r instanceof se)){if(!((g=e.expression.evaluate(n))instanceof se)&&g!==r){b(e,u[u.length-1]);continue}if(g instanceof se&&(g=e.expression.tail_node().evaluate(n)),g===r&&(a=e,o)){var f=u.indexOf(o);u.splice(f,1),b(o,u[f-1]),o=null}}if(A(e)){var p=u[u.length-1];A(p)&&p.body.length==e.body.length&&Y(he,p,p).equivalent_to(Y(he,e,e))&&(p.body=[])}u.push(e)}for(;l<c;)b(t.body[l++],u[u.length-1]);for(0<u.length&&(u[0].body=s.concat(u[0].body)),t.body=u;e=u[u.length-1];){var h=e.body[e.body.length-1];if(h instanceof Fe&&n.loopcontrol_target(h)===t&&e.body.pop(),e.body.length||e instanceof qe&&(o||e.expression.has_side_effects(n)))break;u.pop()===o&&(o=null)}if(0==u.length)return Y(he,t,{body:s.concat(Y(fe,t.expression,{body:t.expression}))}).optimize(n);if(1==u.length&&(u[0]===a||u[0]===o)){var d=!1,m=new Dt(function(e){if(d||e instanceof Ce||e instanceof fe)return!0;e instanceof Fe&&m.loopcontrol_target(e)===t&&(d=!0)});if(t.walk(m),!d){var g,v=u[0].body.slice();return(g=u[0].expression)&&v.unshift(Y(fe,g,{body:g})),v.unshift(Y(fe,t.expression,{body:t.expression})),Y(he,t,{body:v}).optimize(n)}}return t;function b(e,t){t&&!A(t)?t.body=t.body.concat(e.body):w(n,e,s)}}),e(ze,function(e,t){if(s(e.body,t),e.bcatch&&e.bfinally&&oe(e.bfinally.body,N)&&(e.bfinally=null),t.option("dead_code")&&oe(e.body,N)){var n=[];return e.bcatch&&(w(t,e.bcatch,n),n.forEach(function(e){e instanceof Ve&&e.definitions.forEach(function(e){var t=e.name.definition().redefined();t&&(e.name=e.name.clone(),e.name.thedef=t)})})),e.bfinally&&(n=n.concat(e.bfinally.body)),Y(he,e,{body:n}).optimize(t)}return e}),Ve.DEFMETHOD("remove_initializers",function(){this.definitions.forEach(function(e){e.value=null})}),Ve.DEFMETHOD("to_assignments",function(e){var r=e.option("reduce_vars"),t=this.definitions.reduce(function(e,t){if(t.value){var n=Y(mt,t.name,t.name);e.push(Y(rt,t,{operator:"=",left:n,right:t.value})),r&&(n.definition().fixed=!1)}return(t=t.name.definition()).eliminated++,t.replaced--,e},[]);return 0==t.length?null:M(this,t)}),e(Ve,function(e,t){return 0==e.definitions.length?Y(de,e):e}),e(Ke,function(s,i){var e=s.expression,p=e;i.option("reduce_vars")&&p instanceof mt&&(p=p.fixed_value());var t=p instanceof Ce;if(i.option("unused")&&t&&!p.uses_arguments&&!p.uses_eval){for(var n=0,r=0,o=0,a=s.args.length;o<a;o++){var u=o>=p.argnames.length;if(u||p.argnames[o].__unused){if(h=s.args[o].drop_side_effect_free(i))s.args[n++]=h;else if(!u){s.args[n++]=Y(yt,s.args[o],{value:0});continue}}else s.args[n++]=s.args[o];r=n}s.args.length=r}if(i.option("unsafe"))if(q(e))switch(e.name){case"Array":if(1!=s.args.length)return Y(it,s,{elements:s.args}).optimize(i);break;case"Object":if(0==s.args.length)return Y(ot,s,{properties:[]});break;case"String":if(0==s.args.length)return Y(bt,s,{value:""});if(s.args.length<=1)return Y(tt,s,{left:s.args[0],operator:"+",right:Y(bt,s,{value:""})}).optimize(i);break;case"Number":if(0==s.args.length)return Y(yt,s,{value:0});if(1==s.args.length)return Y(Xe,s,{expression:s.args[0],operator:"+"}).optimize(i);case"Boolean":if(0==s.args.length)return Y(Ot,s);if(1==s.args.length)return Y(Xe,s,{expression:Y(Xe,s,{expression:s.args[0],operator:"!"}),operator:"!"}).optimize(i);break;case"RegExp":var l=[];if(oe(s.args,function(e){var t=e.evaluate(i);return l.unshift(t),e!==t}))try{return I(i,s,Y(_t,s,{value:RegExp.apply(RegExp,l)}))}catch(e){i.warn("Error converting {expr} [{file}:{line},{col}]",{expr:s.print_to_string(),file:s.start.file,line:s.start.line,col:s.start.col})}}else if(e instanceof Qe)switch(e.property){case"toString":if(0==s.args.length&&!e.expression.may_throw_on_access(i))return Y(tt,s,{left:Y(bt,s,{value:""}),operator:"+",right:e.expression}).optimize(i);break;case"join":var c;if(e.expression instanceof it)if(!(0<s.args.length&&(c=s.args[0].evaluate(i))===s.args[0])){var f,h,d=[],m=[];return e.expression.elements.forEach(function(e){var t=e.evaluate(i);t!==e?m.push(t):(0<m.length&&(d.push(Y(bt,s,{value:m.join(c)})),m.length=0),d.push(e))}),0<m.length&&d.push(Y(bt,s,{value:m.join(c)})),0==d.length?Y(bt,s,{value:""}):1==d.length?d[0].is_string(i)?d[0]:Y(tt,d[0],{operator:"+",left:Y(bt,s,{value:""}),right:d[0]}):""==c?(f=d[0].is_string(i)||d[1].is_string(i)?d.shift():Y(bt,s,{value:""}),d.reduce(function(e,t){return Y(tt,t,{operator:"+",left:e,right:t})},f).optimize(i)):((h=s.clone()).expression=h.expression.clone(),h.expression.expression=h.expression.expression.clone(),h.expression.expression.elements=d,I(i,s,h))}break;case"charAt":if(e.expression.is_string(i)){var g=s.args[0],v=g?g.evaluate(i):0;if(v!==g)return Y(Ze,e,{expression:e.expression,property:U(0|v,g||e)}).optimize(i)}break;case"apply":if(2==s.args.length&&s.args[1]instanceof it)return(C=s.args[1].elements.slice()).unshift(s.args[0]),Y(Ke,s,{expression:Y(Qe,e,{expression:e.expression,property:"call"}),args:C}).optimize(i);break;case"call":var b=e.expression;if(b instanceof mt&&(b=b.fixed_value()),b instanceof Ce&&!b.contains_this())return M(this,[s.args[0],Y(Ke,s,{expression:e.expression,args:s.args.slice(1)})]).optimize(i)}if(i.option("unsafe_Function")&&q(e)&&"Function"==e.name){if(0==s.args.length)return Y(Oe,s,{argnames:[],body:[]});if(oe(s.args,function(e){return e instanceof bt}))try{var y=Yt(A="n(function("+s.args.slice(0,-1).map(function(e){return e.value}).join(",")+"){"+s.args[s.args.length-1].value+"})"),_={ie8:i.option("ie8")};y.figure_out_scope(_);var w,E=new Xt(i.options);(y=y.transform(E)).figure_out_scope(_),y.compute_char_frequency(_),y.mangle_names(_),y.walk(new Dt(function(e){return!!w||(e instanceof Ce?(w=e,!0):void 0)}));var A=Jt();return he.prototype._codegen.call(w,w,A),s.args=[Y(bt,s,{value:w.argnames.map(function(e){return e.print_to_string()}).join(",")}),Y(bt,s.args[s.args.length-1],{value:A.get().replace(/^\{|\}$/g,"")})],s}catch(e){if(!(e instanceof Pt))throw e;i.warn("Error parsing code passed to new Function [{file}:{line},{col}]",s.args[s.args.length-1].start),i.warn(e.toString())}}var x=t&&p.body[0];if(i.option("inline")&&x instanceof Te&&(!(O=x.value)||O.is_constant_expression())){var C=s.args.concat(O||Y(At,s));return M(s,C).optimize(i)}if(t){var k,O,S,D,B=-1;if(i.option("inline")&&!p.uses_arguments&&!p.uses_eval&&!(p.name&&p instanceof Oe)&&(O=function(e){var t=p.body.length;if(i.option("inline")<3)return 1==t&&F(e);e=null;for(var n=0;n<t;n++){var r=p.body[n];if(r instanceof $e){if(e&&!oe(r.definitions,function(e){return!e.value}))return!1}else{if(r instanceof de)continue;if(e)return!1;e=r}}return F(e)}(x))&&(e===p||i.option("unused")&&1==(k=e.definition()).references.length&&!j(i,k)&&p.is_constant_expression(e.scope))&&!s.pure&&!p.contains_this()&&function(){var e=Object.create(null);do{if((S=i.parent(++B))instanceof Ie)e[S.argname.name]=!0;else if(S instanceof ge)D=[];else if(S instanceof mt&&S.fixed_value()instanceof Ae)return!1}while(!(S instanceof Ae));var t=!(S instanceof xe)||i.toplevel.vars,n=i.option("inline");return!(!function(e,t){for(var n=p.body.length,r=0;r<n;r++){var i=p.body[r];if(i instanceof $e){if(!t)return!1;for(var o=i.definitions.length;0<=--o;){var a=i.definitions[o].name;if(e[a.name]||z(a.name)||S.var_names()[a.name])return!1;D&&D.push(a.definition())}}}return!0}(e,3<=n&&t)||!function(e,t){for(var n=0,r=p.argnames.length;n<r;n++){var i=p.argnames[n];if(!i.__unused){if(!t||e[i.name]||z(i.name)||S.var_names()[i.name])return!1;D&&D.push(i.definition())}}return!0}(e,2<=n&&t)||D&&0!=D.length&&V(p,D))}())return p._squeezed=!0,M(s,function(){var e=[],t=[];(function(e,t){for(var n=p.argnames.length,r=s.args.length;--r>=n;)t.push(s.args[r]);for(r=n;0<=--r;){var i=p.argnames[r],o=s.args[r];if(i.__unused||S.var_names()[i.name])o&&t.push(o);else{var a=Y(ct,i,i);i.definition().orig.push(a),!o&&D&&(o=Y(At,s)),L(e,t,a,o)}}e.reverse(),t.reverse()})(e,t),function(e,t){for(var n=t.length,r=0,i=p.body.length;r<i;r++){var o=p.body[r];if(o instanceof $e)for(var a=0,s=o.definitions.length;a<s;a++){var u=o.definitions[a],l=u.name;if(L(e,t,l,u.value),D){var c=l.definition(),f=Y(mt,l,l);c.references.push(f),t.splice(n++,0,Y(rt,u,{operator:"=",left:f,right:Y(At,l)}))}}}}(e,t),t.push(O),e.length&&(o=S.body.indexOf(i.parent(B-1))+1,S.body.splice(o,0,Y($e,p,{definitions:e})));return t}()).optimize(i);if(i.option("side_effects")&&oe(p.body,N)){C=s.args.concat(Y(At,s));return M(s,C).optimize(i)}}if(i.option("drop_console")&&e instanceof We){for(var T=e.expression;T.expression;)T=T.expression;if(q(T)&&"console"==T.name)return Y(At,s).optimize(i)}if(i.option("negate_iife")&&i.parent()instanceof fe&&P(s))return s.negate(i,!0);var R=s.evaluate(i);return R!==s?(R=U(R,s).optimize(i),I(i,R,s)):s;function F(e){return e?e instanceof Te?e.value?e.value.clone(!0):Y(At,s):e instanceof fe?Y(Xe,e,{operator:"void",expression:e.body.clone(!0)}):void 0:Y(At,s)}function L(e,t,n,r){var i=n.definition();S.variables.set(n.name,i),S.enclosed.push(i),S.var_names()[n.name]||(S.var_names()[n.name]=!0,e.push(Y(He,n,{name:n,value:null})));var o=Y(mt,n,n);i.references.push(o),r&&t.push(Y(rt,s,{operator:"=",left:o,right:r}))}}),e(Ge,function(e,t){if(t.option("unsafe")){var n=e.expression;if(q(n))switch(n.name){case"Object":case"RegExp":case"Function":case"Error":case"Array":return Y(Ke,e,e).transform(t)}}return e}),e(Ye,function(e,n){if(!n.option("side_effects"))return e;var r,i,o=[];r=F(n),i=e.expressions.length-1,e.expressions.forEach(function(e,t){t<i&&(e=e.drop_side_effect_free(n,r)),e&&(f(o,e),r=!1)});var t=o.length-1;return function(){for(;0<t&&v(o[t],n);)t--;t<o.length-1&&(o[t]=Y(Xe,e,{operator:"void",expression:o[t]}),o.length=t+1)}(),0==t?(e=W(n.parent(),n.self(),o[0]))instanceof Ye||(e=e.optimize(n)):e.expressions=o,e}),Je.DEFMETHOD("lift_sequences",function(e){if(e.option("sequences")&&this.expression instanceof Ye){var t=this.expression.expressions.slice(),n=this.clone();return n.expression=t.pop(),t.push(n),M(this,t).optimize(e)}return this}),e(et,function(e,t){return e.lift_sequences(t)}),e(Xe,function(e,t){var n=e.expression;if("delete"==e.operator&&!(n instanceof mt||n instanceof We||Z(n)))return n instanceof Ye?((n=n.expressions.slice()).push(Y(St,e)),M(e,n).optimize(t)):M(e,[n,Y(St,e)]).optimize(t);var r=e.lift_sequences(t);if(r!==e)return r;if(t.option("side_effects")&&"void"==e.operator)return(n=n.drop_side_effect_free(t))?(e.expression=n,e):Y(At,e).optimize(t);if(t.in_boolean_context())switch(e.operator){case"!":if(n instanceof Xe&&"!"==n.operator)return n.expression;n instanceof tt&&(e=I(t,e,n.negate(t,F(t))));break;case"typeof":return t.warn("Boolean expression always true [{file}:{line},{col}]",e.start),(n instanceof mt?Y(St,e):M(e,[n,Y(St,e)])).optimize(t)}if("-"==e.operator&&n instanceof Ct&&(n=n.transform(t)),n instanceof tt&&("+"==e.operator||"-"==e.operator)&&("*"==n.operator||"/"==n.operator||"%"==n.operator))return Y(tt,e,{operator:n.operator,left:Y(Xe,n.left,{operator:e.operator,expression:n.left}),right:n.right});if("-"!=e.operator||!(n instanceof yt||n instanceof Ct)){var i=e.evaluate(t);if(i!==e)return I(t,i=U(i,e).optimize(t),e)}return e}),tt.DEFMETHOD("lift_sequences",function(e){if(e.option("sequences")){if(this.left instanceof Ye){var t=this.left.expressions.slice();return(n=this.clone()).left=t.pop(),t.push(n),M(this,t).optimize(e)}if(this.right instanceof Ye&&!this.left.has_side_effects(e)){for(var n,r="="==this.operator&&this.left instanceof mt,i=(t=this.right.expressions).length-1,o=0;o<i&&(r||!t[o].has_side_effects(e));o++);if(o==i)return t=t.slice(),(n=this.clone()).right=t.pop(),t.push(n),M(this,t).optimize(e);if(0<o)return(n=this.clone()).right=M(this.right,t.slice(o)),(t=t.slice(0,o)).push(n),M(this,t).optimize(e)}}return this});var b=ie("== === != !== * & | ^");function j(e,t){for(var n,r=0;n=e.parent(r);r++)if(n instanceof Ce){var i=n.name;if(i&&i.definition()===t)break}return n}function x(e,t){return e instanceof mt||e.TYPE===t.TYPE}function V(n,t){var r=!1,i=new Dt(function(e){return!!r||(e instanceof mt&&ee(e.definition(),t)?r=!0:void 0)}),o=new Dt(function(e){if(r)return!0;if(e instanceof Ae&&e!==n){var t=o.parent();if(t instanceof Ke&&t.expression===e)return;return e.walk(i),!0}});return n.walk(o),r}e(tt,function(n,e){function r(){return n.left.is_constant()||n.right.is_constant()||!n.left.has_side_effects(e)&&!n.right.has_side_effects(e)}function t(e){if(r()){e&&(n.operator=e);var t=n.left;n.left=n.right,n.right=t}}if(b(n.operator)&&n.right.is_constant()&&!n.left.is_constant()&&(n.left instanceof tt&&Kt[n.left.operator]>=Kt[n.operator]||t()),n=n.lift_sequences(e),e.option("comparisons"))switch(n.operator){case"===":case"!==":var i=!0;(n.left.is_string(e)&&n.right.is_string(e)||n.left.is_number(e)&&n.right.is_number(e)||n.left.is_boolean()&&n.right.is_boolean()||n.left.equivalent_to(n.right))&&(n.operator=n.operator.substr(0,2));case"==":case"!=":if(!i&&v(n.left,e))n.left=Y(wt,n.left);else if(e.option("typeofs")&&n.left instanceof bt&&"undefined"==n.left.value&&n.right instanceof Xe&&"typeof"==n.right.operator){var o=n.right.expression;(o instanceof mt?!o.is_declared(e):o instanceof We&&e.option("ie8"))||(n.right=o,n.left=Y(At,n.left).optimize(e),2==n.operator.length&&(n.operator+="="))}else if(n.left instanceof mt&&n.right instanceof mt&&n.left.definition()===n.right.definition()&&((u=n.left.fixed_value())instanceof it||u instanceof Ce||u instanceof ot))return Y("="==n.operator[0]?St:Ot,n);break;case"&&":case"||":var a=n.left;if(a.operator==n.operator&&(a=a.right),a instanceof tt&&a.operator==("&&"==n.operator?"!==":"===")&&n.right instanceof tt&&a.operator==n.right.operator&&(v(a.left,e)&&n.right.left instanceof wt||a.left instanceof wt&&v(n.right.left,e))&&!a.right.has_side_effects(e)&&a.right.equivalent_to(n.right.right)){var s=Y(tt,n,{operator:a.operator.slice(0,-1),left:Y(wt,n),right:a.right});return a!==n.left&&(s=Y(tt,n,{operator:n.operator,left:n.left.left,right:s})),s}}var u;if("+"==n.operator&&e.in_boolean_context()){var l=n.left.evaluate(e),c=n.right.evaluate(e);if(l&&"string"==typeof l)return e.warn("+ in boolean context always true [{file}:{line},{col}]",n.start),M(n,[n.right,Y(St,n)]).optimize(e);if(c&&"string"==typeof c)return e.warn("+ in boolean context always true [{file}:{line},{col}]",n.start),M(n,[n.left,Y(St,n)]).optimize(e)}if(e.option("comparisons")&&n.is_boolean()){if(!(e.parent()instanceof tt)||e.parent()instanceof rt){var f=Y(Xe,n,{operator:"!",expression:n.negate(e,F(e))});n=I(e,n,f)}switch(n.operator){case">":t("<");break;case">=":t("<=")}}if("+"==n.operator){if(n.right instanceof bt&&""==n.right.getValue()&&n.left.is_string(e))return n.left;if(n.left instanceof bt&&""==n.left.getValue()&&n.right.is_string(e))return n.right;if(n.left instanceof tt&&"+"==n.left.operator&&n.left.left instanceof bt&&""==n.left.left.getValue()&&n.right.is_string(e))return n.left=n.left.right,n.transform(e)}if(e.option("evaluate")){switch(n.operator){case"&&":if(!(l=!!n.left.truthy||!n.left.falsy&&n.left.evaluate(e)))return e.warn("Condition left of && always false [{file}:{line},{col}]",n.start),W(e.parent(),e.self(),n.left).optimize(e);if(!(l instanceof se))return e.warn("Condition left of && always true [{file}:{line},{col}]",n.start),M(n,[n.left,n.right]).optimize(e);if(c=n.right.evaluate(e)){if(!(c instanceof se)){if("&&"==(p=e.parent()).operator&&p.left===e.self()||e.in_boolean_context())return e.warn("Dropping side-effect-free && [{file}:{line},{col}]",n.start),n.left.optimize(e)}}else{if(e.in_boolean_context())return e.warn("Boolean && always false [{file}:{line},{col}]",n.start),M(n,[n.left,Y(Ot,n)]).optimize(e);n.falsy=!0}if("||"==n.left.operator)if(!(h=n.left.right.evaluate(e)))return Y(nt,n,{condition:n.left.left,consequent:n.right,alternative:n.left.right}).optimize(e);break;case"||":var p,h;if(!(l=!!n.left.truthy||!n.left.falsy&&n.left.evaluate(e)))return e.warn("Condition left of || always false [{file}:{line},{col}]",n.start),M(n,[n.left,n.right]).optimize(e);if(!(l instanceof se))return e.warn("Condition left of || always true [{file}:{line},{col}]",n.start),W(e.parent(),e.self(),n.left).optimize(e);if(c=n.right.evaluate(e)){if(!(c instanceof se)){if(e.in_boolean_context())return e.warn("Boolean || always true [{file}:{line},{col}]",n.start),M(n,[n.left,Y(St,n)]).optimize(e);n.truthy=!0}}else if("||"==(p=e.parent()).operator&&p.left===e.self()||e.in_boolean_context())return e.warn("Dropping side-effect-free || [{file}:{line},{col}]",n.start),n.left.optimize(e);if("&&"==n.left.operator)if((h=n.left.right.evaluate(e))&&!(h instanceof se))return Y(nt,n,{condition:n.left.left,consequent:n.left.right,alternative:n.right}).optimize(e)}var d=!0;switch(n.operator){case"+":if(n.left instanceof vt&&n.right instanceof tt&&"+"==n.right.operator&&n.right.left instanceof vt&&n.right.is_string(e)&&(n=Y(tt,n,{operator:"+",left:Y(bt,n.left,{value:""+n.left.getValue()+n.right.left.getValue(),start:n.left.start,end:n.right.left.end}),right:n.right.right})),n.right instanceof vt&&n.left instanceof tt&&"+"==n.left.operator&&n.left.right instanceof vt&&n.left.is_string(e)&&(n=Y(tt,n,{operator:"+",left:n.left.left,right:Y(bt,n.right,{value:""+n.left.right.getValue()+n.right.getValue(),start:n.left.right.start,end:n.right.end})})),n.left instanceof tt&&"+"==n.left.operator&&n.left.is_string(e)&&n.left.right instanceof vt&&n.right instanceof tt&&"+"==n.right.operator&&n.right.left instanceof vt&&n.right.is_string(e)&&(n=Y(tt,n,{operator:"+",left:Y(tt,n.left,{operator:"+",left:n.left.left,right:Y(bt,n.left.right,{value:""+n.left.right.getValue()+n.right.left.getValue(),start:n.left.right.start,end:n.right.left.end})}),right:n.right.right})),n.right instanceof Xe&&"-"==n.right.operator&&n.left.is_number(e)){n=Y(tt,n,{operator:"-",left:n.left,right:n.right.expression});break}if(n.left instanceof Xe&&"-"==n.left.operator&&r()&&n.right.is_number(e)){n=Y(tt,n,{operator:"-",left:n.right,right:n.left.expression});break}case"*":d=e.option("unsafe_math");case"&":case"|":case"^":if(n.left.is_number(e)&&n.right.is_number(e)&&r()&&!(n.left instanceof tt&&n.left.operator!=n.operator&&Kt[n.left.operator]>=Kt[n.operator])){var m=Y(tt,n,{operator:n.operator,left:n.right,right:n.left});n=n.right instanceof vt&&!(n.left instanceof vt)?I(e,m,n):I(e,n,m)}d&&n.is_number(e)&&(n.right instanceof tt&&n.right.operator==n.operator&&(n=Y(tt,n,{operator:n.operator,left:Y(tt,n.left,{operator:n.operator,left:n.left,right:n.right.left,start:n.left.start,end:n.right.left.end}),right:n.right.right})),n.right instanceof vt&&n.left instanceof tt&&n.left.operator==n.operator&&(n.left.left instanceof vt?n=Y(tt,n,{operator:n.operator,left:Y(tt,n.left,{operator:n.operator,left:n.left.left,right:n.right,start:n.left.left.start,end:n.right.end}),right:n.left.right}):n.left.right instanceof vt&&(n=Y(tt,n,{operator:n.operator,left:Y(tt,n.left,{operator:n.operator,left:n.left.right,right:n.right,start:n.left.right.start,end:n.right.end}),right:n.left.left}))),n.left instanceof tt&&n.left.operator==n.operator&&n.left.right instanceof vt&&n.right instanceof tt&&n.right.operator==n.operator&&n.right.left instanceof vt&&(n=Y(tt,n,{operator:n.operator,left:Y(tt,n.left,{operator:n.operator,left:Y(tt,n.left.left,{operator:n.operator,left:n.left.right,right:n.right.left,start:n.left.right.start,end:n.right.left.end}),right:n.left.left}),right:n.right.right})))}}if(n.right instanceof tt&&n.right.operator==n.operator&&(J(n.operator)||"+"==n.operator&&(n.right.left.is_string(e)||n.left.is_string(e)&&n.right.right.is_string(e))))return n.left=Y(tt,n.left,{operator:n.operator,left:n.left,right:n.right.left}),n.right=n.right.right,n.transform(e);var g=n.evaluate(e);return g!==n?(g=U(g,n).optimize(e),I(e,g,n)):n}),e(mt,function(e,t){var n,r=e.resolve_defines(t);if(r)return r.optimize(t);if(!t.option("ie8")&&q(e)&&(!e.scope.uses_with||!t.find_parent(Ee)))switch(e.name){case"undefined":return Y(At,e).optimize(t);case"NaN":return Y(Et,e).optimize(t);case"Infinity":return Y(Ct,e).optimize(t)}if(t.option("reduce_vars")&&X(e,t.parent())!==e){var i=e.definition(),o=e.fixed_value(),a=i.single_use;if(a&&o instanceof Ce)if(i.scope===e.scope||t.option("reduce_funcs")&&1!=i.escaped&&!o.inlined){if(j(t,i))a=!1;else if((i.scope!==e.scope||i.orig[0]instanceof ft)&&"f"==(a=o.is_constant_expression(e.scope)))for(var s=e.scope;(s instanceof Se||s instanceof Oe)&&(s.inlined=!0),s=s.parent_scope;);}else a=!1;if(a&&o){var u;if(o instanceof Se&&(o._squeezed=!0,o=Y(Oe,o,o)),0<i.recursive_refs&&o.name instanceof pt){var l=(u=o.clone(!0)).name.definition(),c=u.variables.get(u.name.name),f=c&&c.orig[0];f instanceof ht||(((f=Y(ht,u.name,u.name)).scope=u).name=f,c=u.def_function(f)),u.walk(new Dt(function(e){e instanceof mt&&e.definition()===l&&(e.thedef=c).references.push(e)}))}else(u=o.optimize(t))===o&&(u=o.clone(!0));return u}if(o&&void 0===i.should_replace){var p;if(o instanceof gt)i.orig[0]instanceof ft||!oe(i.references,function(e){return i.scope===e.scope})||(p=o);else{var h=o.evaluate(t);h===o||!t.option("unsafe_regexp")&&h instanceof RegExp||(p=U(h,o))}if(p){var d,m=p.optimize(t).print_to_string().length;o.walk(new Dt(function(e){if(e instanceof mt&&(n=!0),n)return!0})),n?d=function(){var e=p.optimize(t);return e===p?e.clone(!0):e}:(m=Math.min(m,o.print_to_string().length),d=function(){var e=E(p.optimize(t),o);return e===p||e===o?e.clone(!0):e});var g=i.name.length,v=0;t.option("unused")&&!t.exposed(i)&&(v=(g+2+m)/(i.references.length-i.assignments)),i.should_replace=m<=g+v&&d}else i.should_replace=!1}if(i.should_replace)return i.should_replace()}return e}),e(At,function(e,t){if(t.option("unsafe_undefined")){var n=o(t,"undefined");if(n){var r=Y(mt,e,{name:"undefined",scope:n.scope,thedef:n});return r.is_undefined=!0,r}}var i=X(t.self(),t.parent());return i&&x(i,e)?e:Y(Xe,e,{operator:"void",expression:Y(yt,e,{value:0})})}),e(Ct,function(e,t){var n=X(t.self(),t.parent());return n&&x(n,e)?e:!t.option("keep_infinity")||n&&!x(n,e)||o(t,"Infinity")?Y(tt,e,{operator:"/",left:Y(yt,e,{value:1}),right:Y(yt,e,{value:0})}):e}),e(Et,function(e,t){var n=X(t.self(),t.parent());return n&&!x(n,e)||o(t,"NaN")?Y(tt,e,{operator:"/",left:Y(yt,e,{value:0}),right:Y(yt,e,{value:0})}):e});var C=["+","-","/","*","%",">>","<<",">>>","|","^","&"],k=["*","|","^","&"];function O(e,t){return t.in_boolean_context()?I(t,e,M(e,[e,Y(St,e)]).optimize(t)):e}e(rt,function(a,s){var e;if(s.option("dead_code")&&a.left instanceof mt&&(e=a.left.definition()).scope===s.find_parent(Ce)){var t,n=0,r=a;do{if(t=r,(r=s.parent(n++))instanceof Be){if(i(n,r))break;if(V(e.scope,[e]))break;return"="==a.operator?a.right:(e.fixed=!1,Y(tt,a,{operator:a.operator.slice(0,-1),left:a.left,right:a.right}).optimize(s))}}while(r instanceof tt&&r.right===t||r instanceof Ye&&r.tail_node()===t)}return"="==(a=a.lift_sequences(s)).operator&&a.left instanceof mt&&a.right instanceof tt&&(a.right.left instanceof mt&&a.right.left.name==a.left.name&&ee(a.right.operator,C)?(a.operator=a.right.operator+"=",a.right=a.right.right):a.right.right instanceof mt&&a.right.right.name==a.left.name&&ee(a.right.operator,k)&&!a.right.left.has_side_effects(s)&&(a.operator=a.right.operator+"=",a.right=a.right.left)),a;function i(e,t){var n=a.right;a.right=Y(wt,n);var r=t.may_throw(s);a.right=n;for(var i,o=a.left.definition().scope;(i=s.parent(e++))!==o;)if(i instanceof ze){if(i.bfinally)return!0;if(r&&i.bcatch)return!0}}}),e(nt,function(e,t){if(!t.option("conditionals"))return e;if(e.condition instanceof Ye){var n=e.condition.expressions.slice();return e.condition=n.pop(),n.push(e),M(e,n)}var r=e.condition.evaluate(t);if(r!==e.condition)return r?(t.warn("Condition always true [{file}:{line},{col}]",e.start),W(t.parent(),t.self(),e.consequent)):(t.warn("Condition always false [{file}:{line},{col}]",e.start),W(t.parent(),t.self(),e.alternative));var i=r.negate(t,F(t));I(t,r,i)===i&&(e=Y(nt,e,{condition:i,consequent:e.alternative,alternative:e.consequent}));var o,a=e.condition,s=e.consequent,u=e.alternative;if(a instanceof mt&&s instanceof mt&&a.definition()===s.definition())return Y(tt,e,{operator:"||",left:a,right:u});if(s instanceof rt&&u instanceof rt&&s.operator==u.operator&&s.left.equivalent_to(u.left)&&(!e.condition.has_side_effects(t)||"="==s.operator&&!s.left.has_side_effects(t)))return Y(rt,e,{operator:s.operator,left:s.left,right:Y(nt,e,{condition:e.condition,consequent:s.right,alternative:u.right})});if(s instanceof Ke&&u.TYPE===s.TYPE&&0<s.args.length&&s.args.length==u.args.length&&s.expression.equivalent_to(u.expression)&&!e.condition.has_side_effects(t)&&!s.expression.has_side_effects(t)&&"number"==typeof(o=function(){for(var e=s.args,t=u.args,n=0,r=e.length;n<r;n++)if(!e[n].equivalent_to(t[n])){for(var i=n+1;i<r;i++)if(!e[i].equivalent_to(t[i]))return;return n}}())){var l=s.clone();return l.args[o]=Y(nt,e,{condition:e.condition,consequent:s.args[o],alternative:u.args[o]}),l}if(s instanceof nt&&s.alternative.equivalent_to(u))return Y(nt,e,{condition:Y(tt,e,{left:e.condition,operator:"&&",right:s.condition}),consequent:s.consequent,alternative:u});if(s.equivalent_to(u))return M(e,[e.condition,s]).optimize(t);if((s instanceof Ye||u instanceof Ye)&&s.tail_node().equivalent_to(u.tail_node()))return M(e,[Y(nt,e,{condition:e.condition,consequent:d(s),alternative:d(u)}),s.tail_node()]).optimize(t);if(s instanceof tt&&"||"==s.operator&&s.right.equivalent_to(u))return Y(tt,e,{operator:"||",left:Y(tt,e,{operator:"&&",left:e.condition,right:s.left}),right:u}).optimize(t);var c=t.in_boolean_context();return p(e.consequent)?h(e.alternative)?f(e.condition):Y(tt,e,{operator:"||",left:f(e.condition),right:e.alternative}):h(e.consequent)?p(e.alternative)?f(e.condition.negate(t)):Y(tt,e,{operator:"&&",left:f(e.condition.negate(t)),right:e.alternative}):p(e.alternative)?Y(tt,e,{operator:"||",left:f(e.condition.negate(t)),right:e.consequent}):h(e.alternative)?Y(tt,e,{operator:"&&",left:f(e.condition),right:e.consequent}):e;function f(e){return e.is_boolean()?e:Y(Xe,e,{operator:"!",expression:e.negate(t)})}function p(e){return e instanceof St||c&&e instanceof vt&&e.getValue()||e instanceof Xe&&"!"==e.operator&&e.expression instanceof vt&&!e.expression.getValue()}function h(e){return e instanceof Ot||c&&e instanceof vt&&!e.getValue()||e instanceof Xe&&"!"==e.operator&&e.expression instanceof vt&&e.expression.getValue()}function d(e){return e instanceof Ye?M(e,e.expressions.slice(0,-1)):Y(yt,e,{value:0})}}),e(kt,function(e,t){if(t.in_boolean_context())return Y(yt,e,{value:+e.value});if(t.option("booleans")){var n=t.parent();return n instanceof tt&&("=="==n.operator||"!="==n.operator)?(t.warn("Non-strict equality against boolean: {operator} {value} [{file}:{line},{col}]",{operator:n.operator,value:e.value,file:n.start.file,line:n.start.line,col:n.start.col}),Y(yt,e,{value:+e.value})):Y(Xe,e,{operator:"!",expression:Y(yt,e,{value:1-e.value})})}return e}),e(Ze,function(e,t){var n,r=e.expression,i=e.property;if(t.option("properties")){var o=i.evaluate(t);if(o!==i){if("string"==typeof o)if("undefined"==o)o=void 0;else(d=parseFloat(o)).toString()==o&&(o=d);i=e.property=E(i,U(o,i).transform(t));var a=""+o;if(Nt(a)&&a.length<=i.print_to_string().length+1)return Y(Qe,e,{expression:r,property:a}).optimize(t)}}if(X(e,t.parent()))return e;if(o!==i){var s=e.flatten_object(a,t);s&&(r=e.expression=s.expression,i=e.property=s.property)}if(t.option("properties")&&t.option("side_effects")&&i instanceof yt&&r instanceof it){var u=i.getValue(),l=r.elements;if(u in l){for(var c=!0,f=[],p=l.length;--p>u;){(d=l[p].drop_side_effect_free(t))&&(f.unshift(d),c&&d.has_side_effects(t)&&(c=!1))}var h=l[u];for(h=h instanceof xt?Y(At,h):h,c||f.unshift(h);0<=--p;){var d;(d=l[p].drop_side_effect_free(t))?f.unshift(d):u--}return c?(f.push(h),M(e,f).optimize(t)):Y(Ze,e,{expression:Y(it,r,{elements:f}),property:Y(yt,i,{value:u})})}}if(t.option("arguments")&&r instanceof mt&&"arguments"==r.name&&1==r.definition().orig.length&&(n=r.scope)instanceof Ce&&i instanceof yt){u=i.getValue();var m=n.argnames[u];if(!m&&!t.option("keep_fargs"))for(;u>=n.argnames.length;)m=Y(ft,n,{name:n.make_var_name("argument_"+n.argnames.length),scope:n}),n.argnames.push(m),n.enclosed.push(n.def_variable(m));if(m){var g=Y(mt,e,m);return g.reference({}),g}}var v=e.evaluate(t);return v!==e?I(t,v=U(v,e).optimize(t),e):e}),Ce.DEFMETHOD("contains_this",function(){var t,n=this;return n.walk(new Dt(function(e){return!!t||(e instanceof gt?t=!0:e!==n&&e instanceof Ae||void 0)})),t}),We.DEFMETHOD("flatten_object",function(e,t){if(t.option("properties")){var n=this.expression;if(n instanceof ot)for(var r=n.properties,i=r.length;0<=--i;){var o=r[i];if(""+o.key==e){if(!oe(r,function(e){return e instanceof st}))break;var a=o.value;if(a instanceof Oe&&!(t.parent()instanceof Ge)&&a.contains_this())break;return Y(Ze,this,{expression:Y(it,n,{elements:r.map(function(e){return e.value})}),property:Y(yt,this,{value:i})})}}}}),e(Qe,function(e,t){"arguments"!=e.property&&"caller"!=e.property||t.warn("Function.protoype.{prop} not supported [{file}:{line},{col}]",{prop:e.property,file:e.start.file,line:e.start.line,col:e.start.col});var n=e.resolve_defines(t);if(n)return n.optimize(t);if(X(e,t.parent()))return e;if(t.option("unsafe_proto")&&e.expression instanceof Qe&&"prototype"==e.expression.property){var r=e.expression.expression;if(q(r))switch(r.name){case"Array":e.expression=Y(it,e.expression,{elements:[]});break;case"Function":e.expression=Y(Oe,e.expression,{argnames:[],body:[]});break;case"Number":e.expression=Y(yt,e.expression,{value:0});break;case"Object":e.expression=Y(ot,e.expression,{properties:[]});break;case"RegExp":e.expression=Y(_t,e.expression,{value:/t/});break;case"String":e.expression=Y(bt,e.expression,{value:""})}}var i=e.flatten_object(e.property,t);if(i)return i.optimize(t);var o=e.evaluate(t);return o!==e?I(t,o=U(o,e).optimize(t),e):e}),e(it,O),e(ot,O),e(_t,O),e(Te,function(e,t){return e.value&&v(e.value,t)&&(e.value=null),e}),e(He,function(e,t){var n=t.option("global_defs");return n&&ae(n,e.name.name)&&t.warn("global_defs "+e.name.name+" redefined [{file}:{line},{col}]",e.start),e})}(),function(){var t=function(e){for(var t=!0,n=0;n<e.length;n++)t&&e[n]instanceof ue&&e[n].body instanceof bt?e[n]=new ce({start:e[n].start,end:e[n].end,value:e[n].body.value}):!t||e[n]instanceof ue&&e[n].body instanceof bt||(t=!1);return e},r={Program:function(e){return new xe({start:s(e),end:u(e),body:t(e.body.map(l))})},FunctionDeclaration:function(e){return new Se({start:s(e),end:u(e),name:l(e.id),argnames:e.params.map(l),body:t(l(e.body).body)})},FunctionExpression:function(e){return new Oe({start:s(e),end:u(e),name:l(e.id),argnames:e.params.map(l),body:t(l(e.body).body)})},ExpressionStatement:function(e){return new fe({start:s(e),end:u(e),body:l(e.expression)})},TryStatement:function(e){var t=e.handlers||[e.handler];if(1<t.length||e.guardedHandlers&&e.guardedHandlers.length)throw new Error("Multiple catch clauses are not supported.");return new ze({start:s(e),end:u(e),body:l(e.block).body,bcatch:l(t[0]),bfinally:e.finalizer?new je(l(e.finalizer)):null})},Property:function(e){var t=e.key,n={start:s(t),end:u(e.value),key:"Identifier"==t.type?t.name:t.value,value:l(e.value)};return"init"==e.kind?new st(n):(n.key=new Q({name:n.key}),n.value=new ke(n.value),"get"==e.kind?new W(n):"set"==e.kind?new Y(n):void 0)},ArrayExpression:function(e){return new it({start:s(e),end:u(e),elements:e.elements.map(function(e){return null===e?new xt:l(e)})})},ObjectExpression:function(e){return new ot({start:s(e),end:u(e),properties:e.properties.map(function(e){return e.type="Property",l(e)})})},SequenceExpression:function(e){return new Ye({start:s(e),end:u(e),expressions:e.expressions.map(l)})},MemberExpression:function(e){return new(e.computed?Ze:Qe)({start:s(e),end:u(e),property:e.computed?l(e.property):e.property.name,expression:l(e.object)})},SwitchCase:function(e){return new(e.test?qe:Pe)({start:s(e),end:u(e),expression:l(e.test),body:e.consequent.map(l)})},VariableDeclaration:function(e){return new $e({start:s(e),end:u(e),definitions:e.declarations.map(l)})},Literal:function(e){var t=e.value,n={start:s(e),end:u(e)};if(null===t)return new wt(n);switch(typeof t){case"string":return n.value=t,new bt(n);case"number":return n.value=t,new yt(n);case"boolean":return new(t?St:Ot)(n);default:var r=e.regex;return r&&r.pattern?n.value=new RegExp(r.pattern,r.flags).toString():n.value=e.regex&&e.raw?e.raw:t,new _t(n)}},Identifier:function(e){var t=o[o.length-2];return new("LabeledStatement"==t.type?Z:"VariableDeclarator"==t.type&&t.id===e?ct:"FunctionExpression"==t.type?t.id===e?ht:ft:"FunctionDeclaration"==t.type?t.id===e?pt:ft:"CatchClause"==t.type?dt:"BreakStatement"==t.type||"ContinueStatement"==t.type?J:mt)({start:s(e),end:u(e),name:e.name})}};function i(e){if("Literal"==e.type)return null!=e.raw?e.raw:e.value+""}function s(e){var t=e.loc,n=t&&t.start,r=e.range;return new O({file:t&&t.source,line:n&&n.line,col:n&&n.column,pos:r?r[0]:e.start,endline:n&&n.line,endcol:n&&n.column,endpos:r?r[0]:e.start,raw:i(e)})}function u(e){var t=e.loc,n=t&&t.end,r=e.range;return new O({file:t&&t.source,line:n&&n.line,col:n&&n.column,pos:r?r[1]:e.end,endline:n&&n.line,endcol:n&&n.column,endpos:r?r[1]:e.end,raw:i(e)})}function e(e,t,n){var o="function From_Moz_"+e+"(M){\n";o+="return new U2."+t.name+"({\nstart: my_start_token(M),\nend: my_end_token(M)";var a="function To_Moz_"+e+"(M){\n";a+="return {\ntype: "+JSON.stringify(e),n&&n.split(/\s*,\s*/).forEach(function(e){var t=/([a-z0-9$_]+)(=|@|>|%)([a-z0-9$_]+)/i.exec(e);if(!t)throw new Error("Can't understand property map: "+e);var n=t[1],r=t[2],i=t[3];switch(o+=",\n"+i+": ",a+=",\n"+n+": ",r){case"@":o+="M."+n+".map(from_moz)",a+="M."+i+".map(to_moz)";break;case">":o+="from_moz(M."+n+")",a+="to_moz(M."+i+")";break;case"=":o+="M."+n,a+="M."+i;break;case"%":o+="from_moz(M."+n+").body",a+="to_moz_block(M)";break;default:throw new Error("Can't understand operator in propmap: "+e)}}),o+="\n})\n}",a+="\n}\n}",o=new Function("U2","my_start_token","my_end_token","from_moz","return("+o+")")(d,s,u,l),a=new Function("to_moz","to_moz_block","to_moz_scope","return("+a+")")(f,p,h),r[e]=o,c(t,a)}r.UpdateExpression=r.UnaryExpression=function(e){return new(("prefix"in e?e.prefix:"UnaryExpression"==e.type)?Xe:et)({start:s(e),end:u(e),operator:e.operator,expression:l(e.argument)})},e("EmptyStatement",de),e("BlockStatement",he,"body@body"),e("IfStatement",Me,"test>condition, consequent>body, alternate>alternative"),e("LabeledStatement",me,"label>label, body>body"),e("BreakStatement",Fe,"label>label"),e("ContinueStatement",Le,"label>label"),e("WithStatement",Ee,"object>expression, body>body"),e("SwitchStatement",Ue,"discriminant>expression, cases@body"),e("ReturnStatement",Te,"argument>value"),e("ThrowStatement",G,"argument>value"),e("WhileStatement",ye,"test>condition, body>body"),e("DoWhileStatement",be,"test>condition, body>body"),e("ForStatement",_e,"init>init, test>condition, update>step, body>body"),e("ForInStatement",we,"left>init, right>object, body>body"),e("DebuggerStatement",le),e("VariableDeclarator",He,"id>name, init>value"),e("CatchClause",Ie,"param>argname, body%body"),e("ThisExpression",gt),e("BinaryExpression",tt,"operator=operator, left>left, right>right"),e("LogicalExpression",tt,"operator=operator, left>left, right>right"),e("AssignmentExpression",rt,"operator=operator, left>left, right>right"),e("ConditionalExpression",nt,"test>condition, consequent>consequent, alternate>alternative"),e("NewExpression",Ge,"callee>expression, arguments@args"),e("CallExpression",Ke,"callee>expression, arguments@args"),c(xe,function(e){return h("Program",e)}),c(Se,function(e){return{type:"FunctionDeclaration",id:f(e.name),params:e.argnames.map(f),body:h("BlockStatement",e)}}),c(Oe,function(e){return{type:"FunctionExpression",id:f(e.name),params:e.argnames.map(f),body:h("BlockStatement",e)}}),c(ce,function(e){return{type:"ExpressionStatement",expression:{type:"Literal",value:e.value}}}),c(fe,function(e){return{type:"ExpressionStatement",expression:f(e.body)}}),c(Ne,function(e){return{type:"SwitchCase",test:f(e.expression),consequent:e.body.map(f)}}),c(ze,function(e){return{type:"TryStatement",block:p(e),handler:f(e.bcatch),guardedHandlers:[],finalizer:f(e.bfinally)}}),c(Ie,function(e){return{type:"CatchClause",param:f(e.argname),guard:null,body:p(e)}}),c(Ve,function(e){return{type:"VariableDeclaration",kind:"var",declarations:e.definitions.map(f)}}),c(Ye,function(e){return{type:"SequenceExpression",expressions:e.expressions.map(f)}}),c(We,function(e){var t=e instanceof Ze;return{type:"MemberExpression",object:f(e.expression),computed:t,property:t?f(e.property):{type:"Identifier",name:e.property}}}),c(Je,function(e){return{type:"++"==e.operator||"--"==e.operator?"UpdateExpression":"UnaryExpression",operator:e.operator,prefix:e instanceof Xe,argument:f(e.expression)}}),c(tt,function(e){return{type:"&&"==e.operator||"||"==e.operator?"LogicalExpression":"BinaryExpression",left:f(e.left),operator:e.operator,right:f(e.right)}}),c(it,function(e){return{type:"ArrayExpression",elements:e.elements.map(f)}}),c(ot,function(e){return{type:"ObjectExpression",properties:e.properties.map(f)}}),c(at,function(e){var t,n={type:"Literal",value:e.key instanceof Q?e.key.name:e.key};return e instanceof st?t="init":e instanceof W?t="get":e instanceof Y&&(t="set"),{type:"Property",kind:t,key:n,value:f(e.value)}}),c(ut,function(e){var t=e.definition();return{type:"Identifier",name:t?t.mangled_name||t.name:e.name}}),c(_t,function(e){var t=e.value;return{type:"Literal",value:t,raw:t.toString(),regex:{pattern:t.source,flags:t.toString().match(/[gimuy]*$/)[0]}}}),c(vt,function(e){var t=e.value;return"number"==typeof t&&(t<0||0===t&&1/t<0)?{type:"UnaryExpression",operator:"-",prefix:!0,argument:{type:"Literal",value:-t,raw:e.start.raw}}:{type:"Literal",value:t,raw:e.start.raw}}),c(a,function(e){return{type:"Identifier",name:String(e.value)}}),kt.DEFMETHOD("to_mozilla_ast",vt.prototype.to_mozilla_ast),wt.DEFMETHOD("to_mozilla_ast",vt.prototype.to_mozilla_ast),xt.DEFMETHOD("to_mozilla_ast",function(){return null}),pe.DEFMETHOD("to_mozilla_ast",he.prototype.to_mozilla_ast),Ce.DEFMETHOD("to_mozilla_ast",Oe.prototype.to_mozilla_ast);var o=null;function l(e){o.push(e);var t=null!=e?r[e.type](e):null;return o.pop(),t}function c(e,i){e.DEFMETHOD("to_mozilla_ast",function(){return t=i(e=this),n=e.start,r=e.end,null!=n.pos&&null!=r.endpos&&(t.range=[n.pos,r.endpos]),n.line&&(t.loc={start:{line:n.line,column:n.col},end:r.endline?{line:r.endline,column:r.endcol}:null},n.file&&(t.loc.source=n.file)),t;var e,t,n,r})}function f(e){return null!=e?e.to_mozilla_ast():null}function p(e){return{type:"BlockStatement",body:e.body.map(f)}}function h(e,t){var n=t.body.map(f);return t.body[0]instanceof fe&&t.body[0].body instanceof bt&&n.unshift(f(new de(t.body[0]))),{type:e,body:n}}se.from_mozilla_ast=function(e){var t=o;o=[];var n=l(e);return o=t,n}}();var _="undefined"==typeof atob?function(e){return new l(e,"base64").toString()}:atob,w="undefined"==typeof btoa?function(e){return new l(e).toString("base64")}:btoa;function E(t,n,e){n[t]&&e.forEach(function(e){n[e]&&("object"!=typeof n[e]&&(n[e]={}),t in n[e]||(n[e][t]=n[t]))})}function A(e){e&&("props"in e?e.props instanceof R||(e.props=R.fromObject(e.props)):e.props=new R)}function x(e){return{props:e.props.toObject()}}d.Dictionary=R,d.TreeWalker=Dt,d.TreeTransformer=Wt,d.minify=function(e,t){var n,r,i=se.warn_function;try{var o,a=(t=K(t,{compress:{},ie8:!1,keep_fnames:!1,mangle:{},nameCache:null,output:{},parse:{},rename:void 0,sourceMap:!1,timings:!1,toplevel:!1,warnings:!1,wrap:!1},!0)).timings&&{start:Date.now()};void 0===t.rename&&(t.rename=t.compress&&t.mangle),E("ie8",t,["compress","mangle","output"]),E("keep_fnames",t,["compress","mangle"]),E("toplevel",t,["compress","mangle"]),E("warnings",t,["compress"]),t.mangle&&(t.mangle=K(t.mangle,{cache:t.nameCache&&(t.nameCache.vars||{}),eval:!1,ie8:!1,keep_fnames:!1,properties:!1,reserved:[],toplevel:!1},!0),t.mangle.properties&&("object"!=typeof t.mangle.properties&&(t.mangle.properties={}),t.mangle.properties.keep_quoted&&(o=t.mangle.properties.reserved,Array.isArray(o)||(o=[]),t.mangle.properties.reserved=o),!t.nameCache||"cache"in t.mangle.properties||(t.mangle.properties.cache=t.nameCache.props||{})),A(t.mangle.cache),A(t.mangle.properties.cache)),t.sourceMap&&(t.sourceMap=K(t.sourceMap,{content:null,filename:null,includeSources:!1,root:null,url:null},!0));var s,u=[];if(t.warnings&&!se.warn_function&&(se.warn_function=function(e){u.push(e)}),a&&(a.parse=Date.now()),e instanceof xe)s=e;else{for(var l in"string"==typeof e&&(e=[e]),t.parse=t.parse||{},t.parse.toplevel=null,e)if(ae(e,l)&&(t.parse.filename=l,t.parse.toplevel=Yt(e[l],t.parse),t.sourceMap&&"inline"==t.sourceMap.content)){if(1<Object.keys(e).length)throw new Error("inline source map only works with singular input");t.sourceMap.content=(n=e[l],(r=/\n\/\/# sourceMappingURL=data:application\/json(;.*?)?;base64,(.*)/.exec(n))?_(r[2]):(se.warn("inline source map not found"),null))}s=t.parse.toplevel}o&&function(e,t){function n(e){m(t,e)}e.walk(new Dt(function(e){e instanceof st&&e.quote?n(e.key):e instanceof Ze&&y(e.property,n)}))}(s,o),t.wrap&&(s=s.wrap_commonjs(t.wrap)),a&&(a.rename=Date.now()),t.rename&&(s.figure_out_scope(t.mangle),s.expand_names(t.mangle)),a&&(a.compress=Date.now()),t.compress&&(s=new Xt(t.compress).compress(s)),a&&(a.scope=Date.now()),t.mangle&&s.figure_out_scope(t.mangle),a&&(a.mangle=Date.now()),t.mangle&&(s.compute_char_frequency(t.mangle),s.mangle_names(t.mangle)),a&&(a.properties=Date.now()),t.mangle&&t.mangle.properties&&(s=h(s,t.mangle.properties)),a&&(a.output=Date.now());var c={};if(t.output.ast&&(c.ast=s),!ae(t.output,"code")||t.output.code){if(t.sourceMap&&("string"==typeof t.sourceMap.content&&(t.sourceMap.content=JSON.parse(t.sourceMap.content)),t.output.source_map=function(s){s=K(s,{file:null,root:null,orig:null,orig_line_diff:0,dest_line_diff:0});var u=new MOZ_SourceMap.SourceMapGenerator({file:s.file,sourceRoot:s.root}),l=s.orig&&new MOZ_SourceMap.SourceMapConsumer(s.orig);return l&&Array.isArray(s.orig.sources)&&l._sources.toArray().forEach(function(e){var t=l.sourceContentFor(e,!0);t&&u.setSourceContent(e,t)}),{add:function(e,t,n,r,i,o){if(l){var a=l.originalPositionFor({line:r,column:i});if(null===a.source)return;e=a.source,r=a.line,i=a.column,o=a.name||o}u.addMapping({generated:{line:t+s.dest_line_diff,column:n},original:{line:r+s.orig_line_diff,column:i},source:e,name:o})},get:function(){return u},toString:function(){return JSON.stringify(u.toJSON())}}}({file:t.sourceMap.filename,orig:t.sourceMap.content,root:t.sourceMap.root}),t.sourceMap.includeSources)){if(e instanceof xe)throw new Error("original source content unavailable");for(var l in e)ae(e,l)&&t.output.source_map.get().setSourceContent(l,e[l])}delete t.output.ast,delete t.output.code;var f=Jt(t.output);s.print(f),c.code=f.get(),t.sourceMap&&(c.map=t.output.source_map.toString(),"inline"==t.sourceMap.url?c.code+="\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,"+w(c.map):t.sourceMap.url&&(c.code+="\n//# sourceMappingURL="+t.sourceMap.url))}return t.nameCache&&t.mangle&&(t.mangle.cache&&(t.nameCache.vars=x(t.mangle.cache)),t.mangle.properties&&t.mangle.properties.cache&&(t.nameCache.props=x(t.mangle.properties.cache))),a&&(a.end=Date.now(),c.timings={parse:.001*(a.rename-a.parse),rename:.001*(a.compress-a.rename),compress:.001*(a.scope-a.compress),scope:.001*(a.mangle-a.scope),mangle:.001*(a.properties-a.mangle),properties:.001*(a.output-a.properties),output:.001*(a.end-a.output),total:.001*(a.end-a.start)}),u.length&&(c.warnings=u),c}catch(e){return{error:e}}finally{se.warn_function=i}},d.parse=Yt,d._push_uniq=m}(void 0===n?n={}:n)}).call(this,e("buffer").Buffer)},{buffer:4}]},{},["html-minifier"]);
\ No newline at end of file
+require=function o(a,s,u){function l(n,e){if(!s[n]){if(!a[n]){var t="function"==typeof require&&require;if(!e&&t)return t(n,!0);if(c)return c(n,!0);var r=new Error("Cannot find module '"+n+"'");throw r.code="MODULE_NOT_FOUND",r}var i=s[n]={exports:{}};a[n][0].call(i.exports,function(e){var t=a[n][1][e];return l(t||e)},i,i.exports,o,a,s,u)}return s[n].exports}for(var c="function"==typeof require&&require,e=0;e<u.length;e++)l(u[e]);return l}({1:[function(e,t,n){"use strict";n.byteLength=function(e){return 3*e.length/4-f(e)},n.toByteArray=function(e){var t,n,r,i,o,a=e.length;i=f(e),o=new c(3*a/4-i),n=0<i?a-4:a;var s=0;for(t=0;t<n;t+=4)r=u[e.charCodeAt(t)]<<18|u[e.charCodeAt(t+1)]<<12|u[e.charCodeAt(t+2)]<<6|u[e.charCodeAt(t+3)],o[s++]=r>>16&255,o[s++]=r>>8&255,o[s++]=255&r;2===i?(r=u[e.charCodeAt(t)]<<2|u[e.charCodeAt(t+1)]>>4,o[s++]=255&r):1===i&&(r=u[e.charCodeAt(t)]<<10|u[e.charCodeAt(t+1)]<<4|u[e.charCodeAt(t+2)]>>2,o[s++]=r>>8&255,o[s++]=255&r);return o},n.fromByteArray=function(e){for(var t,n=e.length,r=n%3,i="",o=[],a=16383,s=0,u=n-r;s<u;s+=a)o.push(p(e,s,u<s+a?u:s+a));1===r?(t=e[n-1],i+=l[t>>2],i+=l[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=l[t>>10],i+=l[t>>4&63],i+=l[t<<2&63],i+="=");return o.push(i),o.join("")};for(var l=[],u=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=r.length;i<o;++i)l[i]=r[i],u[r.charCodeAt(i)]=i;function f(e){var t=e.length;if(0<t%4)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function p(e,t,n){for(var r,i,o=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(l[(i=r)>>18&63]+l[i>>12&63]+l[i>>6&63]+l[63&i]);return o.join("")}u["-".charCodeAt(0)]=62,u["_".charCodeAt(0)]=63},{}],2:[function(e,t,n){},{}],3:[function(e,t,n){arguments[4][2][0].apply(n,arguments)},{dup:2}],4:[function(e,t,n){"use strict";var r=e("base64-js"),o=e("ieee754");n.Buffer=f,n.SlowBuffer=function(e){+e!=e&&(e=0);return f.alloc(+e)},n.INSPECT_MAX_BYTES=50;var i=2147483647;function a(e){if(i<e)throw new RangeError("Invalid typed array length");var t=new Uint8Array(e);return t.__proto__=f.prototype,t}function f(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return l(e)}return s(e,t,n)}function s(e,t,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return U(e)||e&&U(e.buffer)?function(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n);return r.__proto__=f.prototype,r}(e,t,n):"string"==typeof e?function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!f.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|h(e,t),r=a(n),i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t):function(e){if(f.isBuffer(e)){var t=0|p(e.length),n=a(t);return 0===n.length||e.copy(n,0,0,t),n}if(e){if(ArrayBuffer.isView(e)||"length"in e)return"number"!=typeof e.length||N(e.length)?a(0):c(e);if("Buffer"===e.type&&Array.isArray(e.data))return c(e.data)}throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object.")}(e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('"size" argument must not be negative')}function l(e){return u(e),a(e<0?0:0|p(e))}function c(e){for(var t=e.length<0?0:0|p(e.length),n=a(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function p(e){if(i<=e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function h(e,t){if(f.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||U(e))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return L(e).length;default:if(r)return F(e).length;t=(""+t).toLowerCase(),r=!0}}function d(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):2147483647<n?n=2147483647:n<-2147483648&&(n=-2147483648),N(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=f.from(t,r)),f.isBuffer(t))return 0===t.length?-1:g(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s/=a=2,u/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;o<s;o++)if(l(e,o)===l(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(s<n+u&&(n=s-u),o=n;0<=o;o--){for(var f=!0,p=0;p<u;p++)if(l(e,o+p)!==l(t,p)){f=!1;break}if(f)return o}return-1}function v(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?i<(r=Number(r))&&(r=i):r=i;var o=t.length;o/2<r&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(N(s))return a;e[n+a]=s}return a}function b(e,t,n,r){return M(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function y(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function _(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,u,l=e[i],c=null,f=239<l?4:223<l?3:191<l?2:1;if(i+f<=n)switch(f){case 1:l<128&&(c=l);break;case 2:128==(192&(o=e[i+1]))&&127<(u=(31&l)<<6|63&o)&&(c=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&2047<(u=(15&l)<<12|(63&o)<<6|63&a)&&(u<55296||57343<u)&&(c=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)&&u<1114112&&(c=u)}null===c?(c=65533,f=1):65535<c&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return function(e){var t=e.length;if(t<=w)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=w));return n}(r)}n.kMaxLength=i,(f.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}())||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(f.prototype,"parent",{get:function(){if(this instanceof f)return this.buffer}}),Object.defineProperty(f.prototype,"offset",{get:function(){if(this instanceof f)return this.byteOffset}}),"undefined"!=typeof Symbol&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),f.poolSize=8192,f.from=function(e,t,n){return s(e,t,n)},f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,f.alloc=function(e,t,n){return i=t,o=n,u(r=e),r<=0?a(r):void 0!==i?"string"==typeof o?a(r).fill(i,o):a(r).fill(i):a(r);var r,i,o},f.allocUnsafe=function(e){return l(e)},f.allocUnsafeSlow=function(e){return l(e)},f.isBuffer=function(e){return null!=e&&!0===e._isBuffer},f.compare=function(e,t){if(!f.isBuffer(e)||!f.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},f.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return f.alloc(0);var n;if(void 0===t)for(n=t=0;n<e.length;++n)t+=e[n].length;var r=f.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(ArrayBuffer.isView(o)&&(o=f.from(o)),!f.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},f.byteLength=h,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)d(this,t,t+1);return this},f.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)d(this,t,t+3),d(this,t+1,t+2);return this},f.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)d(this,t,t+7),d(this,t+1,t+6),d(this,t+2,t+5),d(this,t+3,t+4);return this},f.prototype.toLocaleString=f.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?_(this,0,e):function(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return x(this,t,n);case"utf8":case"utf-8":return _(this,t,n);case"ascii":return E(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return y(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},f.prototype.equals=function(e){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===f.compare(this,e)},f.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return 0<this.length&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},f.prototype.compare=function(e,t,n,r,i){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(i<=r&&n<=t)return 0;if(i<=r)return-1;if(n<=t)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(r,i),l=e.slice(t,n),c=0;c<s;++c)if(u[c]!==l[c]){o=u[c],a=l[c];break}return o<a?-1:a<o?1:0},f.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},f.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},f.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},f.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||i<n)&&(n=i),0<e.length&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o,a,s,u,l,c,f,p,h,d=!1;;)switch(r){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return p=t,h=n,M(F(e,(f=this).length-p),f,p,h);case"ascii":return b(this,e,t,n);case"latin1":case"binary":return b(this,e,t,n);case"base64":return u=this,l=t,c=n,M(L(e),u,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return a=t,s=n,M(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(e,(o=this).length-a),o,a,s);default:if(d)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),d=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var w=4096;function E(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function A(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function x(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||r<n)&&(n=r);for(var i="",o=t;o<n;++o)i+=R(e[o]);return i}function C(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function k(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(n<e+t)throw new RangeError("Trying to access beyond buffer length")}function O(e,t,n,r,i,o){if(!f.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(i<t||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function S(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,r,i){return t=+t,n>>>=0,i||S(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,i){return t=+t,n>>>=0,i||S(e,0,n,8),o.write(e,t,n,r,52,8),n+8}f.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):n<e&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):n<t&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return r.__proto__=f.prototype,r},f.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||k(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},f.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||k(e,t,this.length);for(var r=this[e+--t],i=1;0<t&&(i*=256);)r+=this[e+--t]*i;return r},f.prototype.readUInt8=function(e,t){return e>>>=0,t||k(e,1,this.length),this[e]},f.prototype.readUInt16LE=function(e,t){return e>>>=0,t||k(e,2,this.length),this[e]|this[e+1]<<8},f.prototype.readUInt16BE=function(e,t){return e>>>=0,t||k(e,2,this.length),this[e]<<8|this[e+1]},f.prototype.readUInt32LE=function(e,t){return e>>>=0,t||k(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},f.prototype.readUInt32BE=function(e,t){return e>>>=0,t||k(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},f.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||k(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return(i*=128)<=r&&(r-=Math.pow(2,8*t)),r},f.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||k(e,t,this.length);for(var r=t,i=1,o=this[e+--r];0<r&&(i*=256);)o+=this[e+--r]*i;return(i*=128)<=o&&(o-=Math.pow(2,8*t)),o},f.prototype.readInt8=function(e,t){return e>>>=0,t||k(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},f.prototype.readInt16LE=function(e,t){e>>>=0,t||k(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},f.prototype.readInt16BE=function(e,t){e>>>=0,t||k(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},f.prototype.readInt32LE=function(e,t){return e>>>=0,t||k(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},f.prototype.readInt32BE=function(e,t){return e>>>=0,t||k(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},f.prototype.readFloatLE=function(e,t){return e>>>=0,t||k(e,4,this.length),o.read(this,e,!0,23,4)},f.prototype.readFloatBE=function(e,t){return e>>>=0,t||k(e,4,this.length),o.read(this,e,!1,23,4)},f.prototype.readDoubleLE=function(e,t){return e>>>=0,t||k(e,8,this.length),o.read(this,e,!0,52,8)},f.prototype.readDoubleBE=function(e,t){return e>>>=0,t||k(e,8,this.length),o.read(this,e,!1,52,8)},f.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||O(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},f.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||O(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;0<=--i&&(o*=256);)this[t+i]=e/o&255;return t+n},f.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,1,255,0),this[t]=255&e,t+1},f.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},f.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},f.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},f.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},f.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);O(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},f.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);O(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},f.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},f.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},f.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},f.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},f.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},f.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},f.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},f.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},f.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},f.prototype.copy=function(e,t,n,r){if(!f.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),0<r&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var o=i-1;0<=o;--o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},f.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!f.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=f.isBuffer(e)?e:new f(e,r),s=a.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var T=/[^+/0-9A-Za-z-_]/g;function R(e){return e<16?"0"+e.toString(16):e.toString(16)}function F(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if(55295<(n=e.charCodeAt(a))&&n<57344){if(!i){if(56319<n){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===r){-1<(t-=3)&&o.push(239,191,189);continue}i=n;continue}if(n<56320){-1<(t-=3)&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&-1<(t-=3)&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function L(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(T,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function M(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function U(e){return e instanceof ArrayBuffer||null!=e&&null!=e.constructor&&"ArrayBuffer"===e.constructor.name&&"number"==typeof e.byteLength}function N(e){return e!=e}},{"base64-js":1,ieee754:105}],5:[function(e,t,n){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],6:[function(e,t,n){t.exports=e("./lib/clean")},{"./lib/clean":7}],7:[function(e,w,t){(function(o){var h=e("./optimizer/level-0/optimize"),d=e("./optimizer/level-1/optimize"),m=e("./optimizer/level-2/optimize"),a=e("./optimizer/validator"),t=e("./options/compatibility"),n=e("./options/fetch"),r=e("./options/format").formatFrom,i=e("./options/inline"),s=e("./options/inline-request"),u=e("./options/inline-timeout"),g=e("./options/optimization-level").OptimizationLevel,l=e("./options/optimization-level").optimizationLevelFrom,c=e("./options/rebase"),f=e("./options/rebase-to"),v=e("./reader/input-source-map-tracker"),b=e("./reader/read-sources"),y=e("./writer/simple"),_=e("./writer/source-maps");function p(e,t,n,r){var i="function"!=typeof n?n:null,f="function"==typeof r?r:"function"==typeof n?n:null,p={stats:{efficiency:0,minifiedSize:0,originalSize:0,startedAt:Date.now(),timeSpent:0},cache:{specificity:{}},errors:[],inlinedStylesheets:[],inputSourceMapTracker:v(),localOnly:!f,options:t,source:null,sourcesContent:{},validator:a(t.compatibility),warnings:[]};return i&&p.inputSourceMapTracker.track(void 0,i),(p.localOnly?function(e){return e()}:o.nextTick)(function(){return b(e,p,function(e){var t,n,r,i,o,a,s,u,l=(p.options.sourceMap?_:y)((r=h(t=e,n=p),r=g.One in n.options.level?d(t,n):t,r=g.Two in n.options.level?m(t,n,!0):r),p),c=(o=p,(i=l).stats=(a=i.styles,s=o,u=Date.now()-s.stats.startedAt,delete s.stats.startedAt,s.stats.timeSpent=u,s.stats.efficiency=1-a.length/s.stats.originalSize,s.stats.minifiedSize=a.length,s.stats),i.errors=o.errors,i.inlinedStylesheets=o.inlinedStylesheets,i.warnings=o.warnings,i);return f?f(0<p.errors.length?p.errors:null,c):c})})}(w.exports=function(e){e=e||{},this.options={compatibility:t(e.compatibility),fetch:n(e.fetch),format:r(e.format),inline:i(e.inline),inlineRequest:s(e.inlineRequest),inlineTimeout:u(e.inlineTimeout),level:l(e.level),rebase:c(e.rebase),rebaseTo:f(e.rebaseTo),returnPromise:!!e.returnPromise,sourceMap:!!e.sourceMap,sourceMapInlineSources:!!e.sourceMapInlineSources}}).prototype.minify=function(e,t,n){var i=this.options;return i.returnPromise?new Promise(function(n,r){p(e,i,t,function(e,t){return e?r(e):n(t)})}):p(e,i,t,n)}}).call(this,e("_process"))},{"./optimizer/level-0/optimize":9,"./optimizer/level-1/optimize":10,"./optimizer/level-2/optimize":29,"./optimizer/validator":57,"./options/compatibility":59,"./options/fetch":60,"./options/format":61,"./options/inline":64,"./options/inline-request":62,"./options/inline-timeout":63,"./options/optimization-level":65,"./options/rebase":67,"./options/rebase-to":66,"./reader/input-source-map-tracker":71,"./reader/read-sources":77,"./writer/simple":99,"./writer/source-maps":100,_process:113}],8:[function(e,t,n){t.exports={ASTERISK:"asterisk",BANG:"bang",BACKSLASH:"backslash",UNDERSCORE:"underscore"}},{}],9:[function(e,t,n){t.exports=function(e){return e}},{}],10:[function(e,t,n){var r=e("./shorten-hex"),i=e("./shorten-hsl"),o=e("./shorten-rgb"),v=e("./sort-selectors"),b=e("./tidy-rules"),y=e("./tidy-block"),_=e("./tidy-at-rule"),V=e("../hack"),$=e("../remove-unused"),H=e("../restore-from-optimizing"),K=e("../wrap-for-optimizing").all,G=e("../../options/optimization-level").OptimizationLevel,Y=e("../../tokenizer/token"),W=e("../../tokenizer/marker"),Q=e("../../utils/format-position"),a=e("../../utils/split"),Z="ignore-property",w="@charset",E=new RegExp("^"+w,"i"),A=e("../../options/rounding-precision").DEFAULT,s=/(?:^|\s|\()(-?\d+)px/,J=/^(\-?[\d\.]+)(m?s)$/,u=/[0-9a-f]/i,X=/^(?:\-chrome\-|\-[\w\-]+\w|\w[\w\-]+\w|\-\-\S+)$/,x=/^@import/i,ee=/^('.*'|".*")$/,te=/^['"][a-zA-Z][a-zA-Z\d\-_]+['"]$/,ne=/^url\(/i,re=/^--\S+$/;function ie(e){return e&&"-"==e[1][0]&&parseFloat(e[1])<0}function oe(e,t,n){return-1===t.indexOf("#")&&-1==t.indexOf("rgb")&&-1==t.indexOf("hsl")||(t=t.replace(/rgb\((\-?\d+),(\-?\d+),(\-?\d+)\)/g,function(e,t,n,r){return o(t,n,r)}).replace(/hsl\((-?\d+),(-?\d+)%?,(-?\d+)%?\)/g,function(e,t,n,r){return i(t,n,r)}).replace(/(^|[^='"])#([0-9a-f]{6})/gi,function(e,t,n,r,i){var o=i[r+e.length];return o&&u.test(o)?e:n[0]==n[1]&&n[2]==n[3]&&n[4]==n[5]?(t+"#"+n[0]+n[2]+n[4]).toLowerCase():(t+"#"+n).toLowerCase()}).replace(/(^|[^='"])#([0-9a-f]{3})/gi,function(e,t,n){return t+"#"+n.toLowerCase()}).replace(/(rgb|rgba|hsl|hsla)\(([^\)]+)\)/g,function(e,t,n){var r=n.split(",");return"hsl"==t&&3==r.length||"hsla"==t&&4==r.length||"rgb"==t&&3==r.length&&0<n.indexOf("%")||"rgba"==t&&4==r.length&&0<n.indexOf("%")?(-1==r[1].indexOf("%")&&(r[1]+="%"),-1==r[2].indexOf("%")&&(r[2]+="%"),t+"("+r.join(",")+")"):e}),n.colors.opacity&&-1==e.indexOf("background")&&(t=t.replace(/(?:rgba|hsla)\(0,0%?,0%?,0\)/g,function(e){return-1<a(t,",").pop().indexOf("gradient(")?e:"transparent"}))),r(t)}function ae(e,t,i){return s.test(t)?t.replace(s,function(e,t){var n,r=parseInt(t);return 0===r?e:(i.properties.shorterLengthUnits&&i.units.pt&&3*r%4==0&&(n=3*r/4+"pt"),i.properties.shorterLengthUnits&&i.units.pc&&r%16==0&&(n=r/16+"pc"),i.properties.shorterLengthUnits&&i.units.in&&r%96==0&&(n=r/96+"in"),n&&(n=e.substring(0,e.indexOf(t))+n),n&&n.length<e.length?n:e)}):t}function se(e,t,u){return u.enabled&&-1!==t.indexOf(".")?t.replace(u.decimalPointMatcher,"$1$2$3").replace(u.zeroMatcher,function(e,t,n,r){var i=u.units[r].multiplier,o=parseInt(t),a=isNaN(o)?0:o,s=parseFloat(n);return Math.round((a+s)*i)/i+r}):t}function ue(e,t){var n,r,i,o,a,s,u,l,c,f,p,h,d,m,g,v,b,y,_,w,E,A,x,C,k,O,S,D,B,T,R,F,L,M,U=t.options,N=U.level[G.One],P=K(e,!0);e:for(var q=0,z=P.length;q<z;q++)if(r=(n=P[q]).name,X.test(r)||(s=n.all[n.position],t.warnings.push("Invalid property name '"+r+"' at "+Q(s[1][2][0])+". Ignoring."),n.unused=!0),0===n.value.length&&(s=n.all[n.position],t.warnings.push("Empty property '"+r+"' at "+Q(s[1][2][0])+". Ignoring."),n.unused=!0),n.hack&&((n.hack[0]==V.ASTERISK||n.hack[0]==V.UNDERSCORE)&&!U.compatibility.properties.iePrefixHack||n.hack[0]==V.BACKSLASH&&!U.compatibility.properties.ieSuffixHack||n.hack[0]==V.BANG&&!U.compatibility.properties.ieBangHack)&&(n.unused=!0),N.removeNegativePaddings&&0===r.indexOf("padding")&&(ie(n.value[0])||ie(n.value[1])||ie(n.value[2])||ie(n.value[3]))&&(n.unused=!0),!U.compatibility.properties.ieFilters&&ce(n)&&(n.unused=!0),!n.unused)if(n.block)ue(n.value[0][1],t);else if(!re.test(r)){for(var I=0,j=n.value.length;I<j;I++){if(i=n.value[I][0],o=n.value[I][1],M=o,a=ne.test(M),i==Y.PROPERTY_BLOCK){n.unused=!0,t.warnings.push("Invalid value token at "+Q(o[0][1][2][0])+". Ignoring.");break}if(a&&!t.validator.isUrl(o)){n.unused=!0,t.warnings.push("Broken URL '"+o+"' at "+Q(n.value[I][2][0])+". Ignoring.");break}if(a?(o=N.normalizeUrls?o.replace(ne,"url(").replace(/\\?\n|\\?\r\n/g,""):o,o=U.compatibility.properties.urlQuotes?o:!/^url\(['"].+['"]\)$/.test(L=o)||/^url\(['"].*[\*\s\(\)'"].*['"]\)$/.test(L)||/^url\(['"]data:[^;]+;charset/.test(L)?L:L.replace(/["']/g,"")):(F=o,ee.test(F)?o=N.removeQuotes?(R=o,"content"==(T=r)||-1<T.indexOf("font-feature-settings")||-1<T.indexOf("grid-")?R:te.test(R)?R.substring(1,R.length-1):R):o:(o=ae(0,o=se(0,o=N.removeWhitespace?(B=o,-1<r.indexOf("filter")||-1==B.indexOf(" ")||0===B.indexOf("expression")?B:-1<B.indexOf(W.SINGLE_QUOTE)||-1<B.indexOf(W.DOUBLE_QUOTE)?B:(-1<(B=B.replace(/\s+/g," ")).indexOf("calc")&&(B=B.replace(/\) ?\/ ?/g,")/ ")),B.replace(/(\(;?)\s+/g,"$1").replace(/\s+(;?\))/g,"$1").replace(/, /g,","))):o,U.precision),U.compatibility),o=N.replaceTimeUnits?(D=o,J.test(D)?D.replace(J,function(e,t,n){var r;return"ms"==n?r=parseInt(t)/1e3+"s":"s"==n&&(r=1e3*parseFloat(t)+"ms"),r.length<e.length?r:e}):D):o,o=N.replaceZeroUnits?-1==(S=o).indexOf("0")?S:(-1<S.indexOf("-")&&(S=S.replace(/([^\w\d\-]|^)\-0([^\.]|$)/g,"$10$2").replace(/([^\w\d\-]|^)\-0([^\.]|$)/g,"$10$2")),S.replace(/(^|\s)0+([1-9])/g,"$1$2").replace(/(^|\D)\.0+(\D|$)/g,"$10$2").replace(/(^|\D)\.0+(\D|$)/g,"$10$2").replace(/\.([1-9]*)0+(\D|$)/g,function(e,t,n){return(0<t.length?".":"")+t+n}).replace(/(^|\D)0\.(\d)/g,"$1.$2")):o,U.compatibility.properties.zeroUnits&&(o=-1==(O=o).indexOf("0deg")?O:O.replace(/\(0deg\)/g,"(0)"),x=r,C=o,k=U.unitsRegexp,o=/^(?:\-moz\-calc|\-webkit\-calc|calc|rgb|hsl|rgba|hsla)\(/.test(C)?C:"flex"==x||"-ms-flex"==x||"-webkit-flex"==x||"flex-basis"==x||"-webkit-flex-basis"==x?C:0<C.indexOf("%")&&("height"==x||"max-height"==x||"width"==x||"max-width"==x)?C:C.replace(k,"$10$2").replace(k,"$10$2")),U.compatibility.properties.colors&&(o=oe(r,o,U.compatibility)))),_=r,w=o,E=N.transform,(o=void 0===(A=E(_,w))?w:!1===A?Z:A)===Z){n.unused=!0;continue e}n.value[I][1]=o}N.replaceMultipleZeros&&(b=void 0,4==(y=(v=n).value).length&&"0"===y[0][1]&&"0"===y[1][1]&&"0"===y[2][1]&&"0"===y[3][1]&&(b=-1<v.name.indexOf("box-shadow")?2:1),b&&(v.value.splice(b),v.dirty=!0)),"background"==r&&N.optimizeBackground?(g=void 0,1==(g=n.value).length&&"none"==g[0][1]&&(g[0][1]="0 0"),1==g.length&&"transparent"==g[0][1]&&(g[0][1]="0 0")):0===r.indexOf("border")&&0<r.indexOf("radius")&&N.optimizeBorderRadius?(d=void 0,3==(m=(h=n).value).length&&"/"==m[1][1]&&m[0][1]==m[2][1]?d=1:5==m.length&&"/"==m[2][1]&&m[0][1]==m[3][1]&&m[1][1]==m[4][1]?d=2:7==m.length&&"/"==m[3][1]&&m[0][1]==m[4][1]&&m[1][1]==m[5][1]&&m[2][1]==m[6][1]?d=3:9==m.length&&"/"==m[4][1]&&m[0][1]==m[5][1]&&m[1][1]==m[6][1]&&m[2][1]==m[7][1]&&m[3][1]==m[8][1]&&(d=4),d&&(h.value.splice(d),h.dirty=!0)):"filter"==r&&N.optimizeFilter&&U.compatibility.properties.ieFilters?(1==(p=n).value.length&&(p.value[0][1]=p.value[0][1].replace(/progid:DXImageTransform\.Microsoft\.(Alpha|Chroma)(\W)/,function(e,t,n){return t.toLowerCase()+n})),p.value[0][1]=p.value[0][1].replace(/,(\S)/g,", $1").replace(/ ?= ?/g,"=")):"font-weight"==r&&N.optimizeFontWeight?(f=void(c=0),"normal"==(f=(l=n).value[c][1])?f="400":"bold"==f&&(f="700"),l.value[c][1]=f):"outline"==r&&N.optimizeOutline&&(u=void 0,1==(u=n.value).length&&"none"==u[0][1]&&(u[0][1]="0"))}H(P),$(P),function(e,t){var n,r;for(r=0;r<e.length;r++)(n=e[r])[0]==Y.COMMENT&&(le(n,t),0===n[1].length&&(e.splice(r,1),r--))}(e,U)}function le(e,t){e[1][2]==W.EXCLAMATION&&("all"==t.level[G.One].specialComments||t.commentsKept<t.level[G.One].specialComments)?t.commentsKept++:e[1]=[]}function ce(e){var t;return("filter"==e.name||"-ms-filter"==e.name)&&(-1<(t=e.value[0][1]).indexOf("progid")||0===t.indexOf("alpha")||0===t.indexOf("chroma"))}t.exports=function e(t,n){var r,i,o,a=n.options,s=a.level[G.One],u=a.compatibility.selectors.ie7Hack,l=a.compatibility.selectors.adjacentSpace,c=a.compatibility.properties.spaceAfterClosingBrace,f=a.format,p=!1,h=!1;a.unitsRegexp=a.unitsRegexp||(r=a,i=["px","em","ex","cm","mm","in","pt","pc","%"],["ch","rem","vh","vm","vmax","vmin","vw"].forEach(function(e){r.compatibility.units[e]&&i.push(e)}),new RegExp("(^|\\s|\\(|,)0(?:"+i.join("|")+")(\\W|$)","g")),a.precision=a.precision||function(e){var t,n,r={matcher:null,units:{}},i=[];for(t in e)(n=e[t])!=A&&(r.units[t]={},r.units[t].value=n,r.units[t].multiplier=Math.pow(10,n),i.push(t));return 0<i.length&&(r.enabled=!0,r.decimalPointMatcher=new RegExp("(\\d)\\.($|"+i.join("|")+")($|W)","g"),r.zeroMatcher=new RegExp("(\\d*)(\\.\\d+)("+i.join("|")+")","g")),r}(s.roundingPrecision),a.commentsKept=a.commentsKept||0;for(var d=0,m=t.length;d<m;d++){var g=t[d];switch(g[0]){case Y.AT_RULE:g[1]=(o=g,x.test(o[1])&&h?"":g[1]),g[1]=s.tidyAtRules?_(g[1]):g[1],p=!0;break;case Y.AT_RULE_BLOCK:ue(g[2],n),h=!0;break;case Y.NESTED_BLOCK:g[1]=s.tidyBlockScopes?y(g[1],c):g[1],e(g[2],n),h=!0;break;case Y.COMMENT:le(g,a);break;case Y.RULE:g[1]=s.tidySelectors?b(g[1],!u,l,f,n.warnings):g[1],g[1]=1<g[1].length?v(g[1],s.selectorsSortingMethod):g[1],ue(g[2],n),h=!0}(g[0]==Y.COMMENT&&0===g[1].length||s.removeEmpty&&(0===g[1].length||g[2]&&0===g[2].length))&&(t.splice(d,1),d--,m--)}return s.cleanupCharsets&&p&&function(e){for(var t=!1,n=0,r=e.length;n<r;n++){var i=e[n];i[0]==Y.AT_RULE&&E.test(i[1])&&(t||-1==i[1].indexOf(w)?(e.splice(n,1),n--,r--):(t=!0,e.splice(n,1),e.unshift([Y.AT_RULE,i[1].replace(E,w)])))}}(t),t}},{"../../options/optimization-level":65,"../../options/rounding-precision":68,"../../tokenizer/marker":83,"../../tokenizer/token":84,"../../utils/format-position":87,"../../utils/split":96,"../hack":8,"../remove-unused":55,"../restore-from-optimizing":56,"../wrap-for-optimizing":58,"./shorten-hex":11,"./shorten-hsl":12,"./shorten-rgb":13,"./sort-selectors":14,"./tidy-at-rule":15,"./tidy-block":16,"./tidy-rules":17}],11:[function(e,t,n){var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#0ff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000",blanchedalmond:"#ffebcd",blue:"#00f",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#0ff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#f0f",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#0f0",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#f00",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#fff",whitesmoke:"#f5f5f5",yellow:"#ff0",yellowgreen:"#9acd32"},i={},o={};for(var a in r){var s=r[a];a.length<s.length?o[s]=a:i[a]=s}var u=new RegExp("(^| |,|\\))("+Object.keys(i).join("|")+")( |,|\\)|$)","ig"),l=new RegExp("("+Object.keys(o).join("|")+")([^a-f0-9]|$)","ig");function c(e,t,n,r){return t+i[n.toLowerCase()]+r}function f(e,t,n){return o[t.toLowerCase()]+n}t.exports=function(e){var t=-1<e.indexOf("#"),n=e.replace(u,c);return n!=e&&(n=n.replace(u,c)),t?n.replace(l,f):n}},{}],12:[function(e,t,n){function u(e,t,n){return n<0&&(n+=1),1<n&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}t.exports=function(e,t,n){var r=function(e,t,n){var r,i,o;if((e%=360)<0&&(e+=360),e=~~e/360,t<0?t=0:100<t&&(t=100),n<0?n=0:100<n&&(n=100),n=~~n/100,0==(t=~~t/100))r=i=o=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=u(s,a,e+1/3),i=u(s,a,e),o=u(s,a,e-1/3)}return[~~(255*r),~~(255*i),~~(255*o)]}(e,t,n),i=r[0].toString(16),o=r[1].toString(16),a=r[2].toString(16);return"#"+(1==i.length?"0":"")+i+(1==o.length?"0":"")+o+(1==a.length?"0":"")+a}},{}],13:[function(e,t,n){t.exports=function(e,t,n){return"#"+("00000"+(Math.max(0,Math.min(parseInt(e),255))<<16|Math.max(0,Math.min(parseInt(t),255))<<8|Math.max(0,Math.min(parseInt(n),255))).toString(16)).slice(-6)}},{}],14:[function(e,t,n){var r=e("../../utils/natural-compare");function i(e,t){return r(e[1],t[1])}function o(e,t){return e[1]>t[1]?1:-1}t.exports=function(e,t){switch(t){case"natural":return e.sort(i);case"standard":return e.sort(o);case"none":case!1:return e}}},{"../../utils/natural-compare":94}],15:[function(e,t,n){t.exports=function(e){return e.replace(/\s+/g," ").replace(/url\(\s+/g,"url(").replace(/\s+\)/g,")").trim()}},{}],16:[function(e,t,n){var i=/^@media\W/;t.exports=function(e,t){var n,r;for(r=e.length-1;0<=r;r--)n=!t&&i.test(e[r][1]),e[r][1]=e[r][1].replace(/\n|\r\n/g," ").replace(/\s+/g," ").replace(/(,|:|\() /g,"$1").replace(/ \)/g,")").replace(/'([a-zA-Z][a-zA-Z\d\-_]+)'/,"$1").replace(/"([a-zA-Z][a-zA-Z\d\-_]+)"/,"$1").replace(n?/\) /g:null,")");return e}},{}],17:[function(e,t,n){var w=e("../../options/format").Spaces,E=e("../../tokenizer/marker"),h=e("../../utils/format-position"),A=/[\s"'][iI]\s*\]/,x=/([\d\w])([iI])\]/g,d=/="([a-zA-Z][a-zA-Z\d\-_]+)"([iI])/g,m=/="([a-zA-Z][a-zA-Z\d\-_]+)"(\s|\])/g,g=/^(?:(?:<!--|-->)\s*)+/,v=/='([a-zA-Z][a-zA-Z\d\-_]+)'([iI])/g,b=/='([a-zA-Z][a-zA-Z\d\-_]+)'(\s|\])/g,C=/[>\+~]/,k=/\s/,y="*+html ",_="*:first-child+html ",s="<";function O(e){var t,n,r,i,o=!1,a=!1;for(r=0,i=e.length;r<i;r++){if(n=e[r],t);else if(n==E.SINGLE_QUOTE||n==E.DOUBLE_QUOTE)a=!a;else{if(!(a||n!=E.CLOSE_CURLY_BRACKET&&n!=E.EXCLAMATION&&n!=s&&n!=E.SEMICOLON)){o=!0;break}if(!a&&0===r&&C.test(n)){o=!0;break}}t=n==E.BACK_SLASH}return o}function S(e,t){var n,r,i,o,a,s,u,l,c,f,p,h,d,m=[],g=0,v=!1,b=!1,y=A.test(e),_=t&&t.spaces[w.AroundSelectorRelation];for(h=0,d=e.length;h<d;h++){if(r=(n=e[h])==E.NEW_LINE_NIX,i=n==E.NEW_LINE_NIX&&e[h-1]==E.NEW_LINE_WIN,s=u||l,f=!c&&!o&&0===g&&C.test(n),p=k.test(n),a&&s&&i)m.pop(),m.pop();else if(o&&s&&r)m.pop();else if(o)m.push(n);else if(n!=E.OPEN_SQUARE_BRACKET||s)if(n!=E.CLOSE_SQUARE_BRACKET||s)if(n!=E.OPEN_ROUND_BRACKET||s)if(n!=E.CLOSE_ROUND_BRACKET||s)if(n!=E.SINGLE_QUOTE||s)if(n!=E.DOUBLE_QUOTE||s)if(n==E.SINGLE_QUOTE&&s)m.push(n),u=!1;else if(n==E.DOUBLE_QUOTE&&s)m.push(n),l=!1;else{if(p&&v&&!_)continue;!p&&v&&_?(m.push(E.SPACE),m.push(n)):p&&(c||0<g)&&!s||p&&b&&!s||(i||r)&&(c||0<g)&&s||(f&&b&&!_?(m.pop(),m.push(n)):f&&!b&&_?(m.push(E.SPACE),m.push(n)):p?m.push(E.SPACE):m.push(n))}else m.push(n),l=!0;else m.push(n),u=!0;else m.push(n),g--;else m.push(n),g++;else m.push(n),c=!1;else m.push(n),c=!0;a=o,o=n==E.BACK_SLASH,v=f,b=p}return y?m.join("").replace(x,"$1 $2]"):m.join("")}t.exports=function(e,t,n,r,i){var o,a=[],s=[];function u(e,t){return i.push("HTML comment '"+t+"' at "+h(e[2][0])+". Removing."),""}for(var l=0,c=e.length;l<c;l++){var f=e[l],p=f[1];O(p=p.replace(g,u.bind(null,f)))?i.push("Invalid selector '"+f[1]+"' at "+h(f[2][0])+". Ignoring."):(p=S(p,r),p=-1==(o=p).indexOf("'")&&-1==o.indexOf('"')?o:o.replace(v,"=$1 $2").replace(b,"=$1$2").replace(d,"=$1 $2").replace(m,"=$1$2"),n&&0<p.indexOf("nav")&&(p=p.replace(/\+nav(\S|$)/,"+ nav$1")),t&&-1<p.indexOf(y)||t&&-1<p.indexOf(_)||(-1<p.indexOf("*")&&(p=p.replace(/\*([:#\.\[])/g,"$1").replace(/^(\:first\-child)?\+html/,"*$1+html")),-1<s.indexOf(p)||(f[1]=p,s.push(p),a.push(f))))}return 1==a.length&&0===a[0][1].length&&(i.push("Empty selector '"+a[0][1]+"' at "+h(a[0][2][0])+". Ignoring."),a=[]),a}},{"../../options/format":61,"../../tokenizer/marker":83,"../../utils/format-position":87}],18:[function(e,t,n){var x=e("./invalid-property-error"),s=e("../wrap-for-optimizing").single,m=e("../../tokenizer/token"),A=e("../../tokenizer/marker"),C=e("../../utils/format-position");function k(e){var t,n;for(t=0,n=e.length;t<n;t++)if("inherit"==e[t][1])return!0;return!1}function O(e,t,n){var r=n[e];return r.doubleValues&&2==r.defaultValue.length?s([m.PROPERTY,[m.PROPERTY_NAME,e],[m.PROPERTY_VALUE,r.defaultValue[0]],[m.PROPERTY_VALUE,r.defaultValue[1]]]):r.doubleValues&&1==r.defaultValue.length?s([m.PROPERTY,[m.PROPERTY_NAME,e],[m.PROPERTY_VALUE,r.defaultValue[0]]]):s([m.PROPERTY,[m.PROPERTY_NAME,e],[m.PROPERTY_VALUE,r.defaultValue]])}function l(e,t){var n=t[e.name].components,r=[],i=e.value;if(i.length<1)return[];i.length<2&&(i[1]=i[0].slice(0)),i.length<3&&(i[2]=i[0].slice(0)),i.length<4&&(i[3]=i[1].slice(0));for(var o=n.length-1;0<=o;o--){var a=s([m.PROPERTY,[m.PROPERTY_NAME,n[o]]]);a.value=[i[o]],r.unshift(a)}return r}function r(e,t,n){for(var r,i,o,a=t[e.name],s=[O(a.components[0],0,t),O(a.components[1],0,t),O(a.components[2],0,t)],u=0;u<3;u++){var l=s[u];0<l.name.indexOf("color")?r=l:0<l.name.indexOf("style")?i=l:o=l}if(1==e.value.length&&"inherit"==e.value[0][1]||3==e.value.length&&"inherit"==e.value[0][1]&&"inherit"==e.value[1][1]&&"inherit"==e.value[2][1])return r.value=i.value=o.value=[e.value[0]],s;var c,f,p,h,d,m=e.value.slice(0);return 0<m.length&&(c=1<(f=m.filter((p=n,function(e){return"inherit"!=e[1]&&(p.isWidth(e[1])||p.isUnit(e[1])&&!p.isDynamicUnit(e[1]))&&!p.isStyleKeyword(e[1])&&!p.isColorFunction(e[1])}))).length&&("none"==f[0][1]||"auto"==f[0][1])?f[1]:f[0])&&(o.value=[c],m.splice(m.indexOf(c),1)),0<m.length&&(c=m.filter((h=n,function(e){return"inherit"!=e[1]&&h.isStyleKeyword(e[1])&&!h.isColorFunction(e[1])}))[0])&&(i.value=[c],m.splice(m.indexOf(c),1)),0<m.length&&(c=m.filter((d=n,function(e){return"invert"==e[1]||d.isColor(e[1])||d.isPrefixed(e[1])}))[0])&&(r.value=[c],m.splice(m.indexOf(c),1)),s}t.exports={animation:function(e,t,n){var r,i,o,a=O(e.name+"-duration",0,t),s=O(e.name+"-timing-function",0,t),u=O(e.name+"-delay",0,t),l=O(e.name+"-iteration-count",0,t),c=O(e.name+"-direction",0,t),f=O(e.name+"-fill-mode",0,t),p=O(e.name+"-play-state",0,t),h=O(e.name+"-name",0,t),d=[a,s,u,l,c,f,p,h],m=e.value,g=!1,v=!1,b=!1,y=!1,_=!1,w=!1,E=!1,A=!1;if(1==e.value.length&&"inherit"==e.value[0][1])return a.value=s.value=u.value=l.value=c.value=f.value=p.value=h.value=e.value,d;if(1<m.length&&k(m))throw new x("Invalid animation values at "+C(m[0][2][0])+". Ignoring.");for(i=0,o=m.length;i<o;i++)if(r=m[i],n.isTime(r[1])&&!g)a.value=[r],g=!0;else if(n.isTime(r[1])&&!b)u.value=[r],b=!0;else if(!n.isGlobal(r[1])&&!n.isAnimationTimingFunction(r[1])||v)if(!n.isAnimationIterationCountKeyword(r[1])&&!n.isPositiveNumber(r[1])||y)if(n.isAnimationDirectionKeyword(r[1])&&!_)c.value=[r],_=!0;else if(n.isAnimationFillModeKeyword(r[1])&&!w)f.value=[r],w=!0;else if(n.isAnimationPlayStateKeyword(r[1])&&!E)p.value=[r],E=!0;else{if(!n.isAnimationNameKeyword(r[1])&&!n.isIdentifier(r[1])||A)throw new x("Invalid animation value at "+C(r[2][0])+". Ignoring.");h.value=[r],A=!0}else l.value=[r],y=!0;else s.value=[r],v=!0;return d},background:function(e,t,n){var r=O("background-image",0,t),i=O("background-position",0,t),o=O("background-size",0,t),a=O("background-repeat",0,t),s=O("background-attachment",0,t),u=O("background-origin",0,t),l=O("background-clip",0,t),c=O("background-color",0,t),f=[r,i,o,a,s,u,l,c],p=e.value,h=!1,d=!1,m=!1,g=!1,v=!1;if(1==e.value.length&&"inherit"==e.value[0][1])return c.value=r.value=a.value=i.value=o.value=u.value=l.value=e.value,f;if(1==e.value.length&&"0 0"==e.value[0][1])return f;for(var b=p.length-1;0<=b;b--){var y=p[b];if(n.isBackgroundAttachmentKeyword(y[1]))s.value=[y],v=!0;else if(n.isBackgroundClipKeyword(y[1])||n.isBackgroundOriginKeyword(y[1]))d?(u.value=[y],m=!0):(l.value=[y],d=!0),v=!0;else if(n.isBackgroundRepeatKeyword(y[1]))g?a.value.unshift(y):(a.value=[y],g=!0),v=!0;else if(n.isBackgroundPositionKeyword(y[1])||n.isBackgroundSizeKeyword(y[1])||n.isUnit(y[1])||n.isDynamicUnit(y[1])){if(0<b){var _=p[b-1];_[1]==A.FORWARD_SLASH?o.value=[y]:1<b&&p[b-2][1]==A.FORWARD_SLASH?(o.value=[_,y],b-=2):(h||(i.value=[]),i.value.unshift(y),h=!0)}else h||(i.value=[]),i.value.unshift(y),h=!0;v=!0}else c.value[0][1]!=t[c.name].defaultValue&&"none"!=c.value[0][1]||!n.isColor(y[1])&&!n.isPrefixed(y[1])?(n.isUrl(y[1])||n.isFunction(y[1]))&&(r.value=[y],v=!0):(c.value=[y],v=!0)}if(d&&!m&&(u.value=l.value.slice(0)),!v)throw new x("Invalid background value at "+C(p[0][2][0])+". Ignoring.");return f},border:r,borderRadius:function(e,t){for(var n=e.value,r=-1,i=0,o=n.length;i<o;i++)if(n[i][1]==A.FORWARD_SLASH){r=i;break}if(0===r||r===n.length-1)throw new x("Invalid border-radius value at "+C(n[0][2][0])+". Ignoring.");var a=O(e.name,0,t);a.value=-1<r?n.slice(0,r):n.slice(0),a.components=l(a,t);var s=O(e.name,0,t);s.value=-1<r?n.slice(r+1):n.slice(0),s.components=l(s,t);for(var u=0;u<4;u++)a.components[u].multiplex=!0,a.components[u].value=a.components[u].value.concat(s.components[u].value);return a.components},font:function(e,t,n){var r,i,o,a,s=O("font-style",0,t),u=O("font-variant",0,t),l=O("font-weight",0,t),c=O("font-stretch",0,t),f=O("font-size",0,t),p=O("line-height",0,t),h=O("font-family",0,t),d=[s,u,l,c,f,p,h],m=e.value,g=0,v=!1,b=!1,y=!1,_=!1,w=!1,E=!1;if(!m[g])throw new x("Missing font values at "+C(e.all[e.position][1][2][0])+". Ignoring.");if(1==m.length&&"inherit"==m[0][1])return s.value=u.value=l.value=c.value=f.value=p.value=h.value=m,d;if(1==m.length&&(n.isFontKeyword(m[0][1])||n.isGlobal(m[0][1])||n.isPrefixed(m[0][1])))return m[0][1]=A.INTERNAL+m[0][1],s.value=u.value=l.value=c.value=f.value=p.value=h.value=m,d;if(m.length<2||!function(e,t){var n,r,i;for(r=0,i=e.length;r<i;r++)if(n=e[r],t.isFontSizeKeyword(n[1])||t.isUnit(n[1])&&!t.isDynamicUnit(n[1])||t.isFunction(n[1]))return!0;return!1}(m,n)||!function(e,t){var n,r,i;for(r=0,i=e.length;r<i;r++)if(n=e[r],t.isIdentifier(n[1]))return!0;return!1}(m,n))throw new x("Invalid font values at "+C(e.all[e.position][1][2][0])+". Ignoring.");if(1<m.length&&k(m))throw new x("Invalid font values at "+C(m[0][2][0])+". Ignoring.");for(;g<4;){if(r=n.isFontStretchKeyword(m[g][1])||n.isGlobal(m[g][1]),i=n.isFontStyleKeyword(m[g][1])||n.isGlobal(m[g][1]),o=n.isFontVariantKeyword(m[g][1])||n.isGlobal(m[g][1]),a=n.isFontWeightKeyword(m[g][1])||n.isGlobal(m[g][1]),i&&!b)s.value=[m[g]],b=!0;else if(o&&!y)u.value=[m[g]],y=!0;else if(a&&!_)l.value=[m[g]],_=!0;else{if(!r||v){if(i&&b||o&&y||a&&_||r&&v)throw new x("Invalid font style / variant / weight / stretch value at "+C(m[0][2][0])+". Ignoring.");break}c.value=[m[g]],v=!0}g++}if(!(n.isFontSizeKeyword(m[g][1])||n.isUnit(m[g][1])&&!n.isDynamicUnit(m[g][1])))throw new x("Missing font size at "+C(m[0][2][0])+". Ignoring.");if(f.value=[m[g]],w=!0,!m[++g])throw new x("Missing font family at "+C(m[0][2][0])+". Ignoring.");for(w&&m[g]&&m[g][1]==A.FORWARD_SLASH&&m[g+1]&&(n.isLineHeightKeyword(m[g+1][1])||n.isUnit(m[g+1][1])||n.isNumber(m[g+1][1]))&&(p.value=[m[g+1]],g++,g++),h.value=[];m[g];)m[g][1]==A.COMMA?E=!1:(E?h.value[h.value.length-1][1]+=A.SPACE+m[g][1]:h.value.push(m[g]),E=!0),g++;if(0===h.value.length)throw new x("Missing font family at "+C(m[0][2][0])+". Ignoring.");return d},fourValues:l,listStyle:function(e,t,n){var r=O("list-style-type",0,t),i=O("list-style-position",0,t),o=O("list-style-image",0,t),a=[r,i,o];if(1==e.value.length&&"inherit"==e.value[0][1])return r.value=i.value=o.value=[e.value[0]],a;var s=e.value.slice(0),u=s.length,l=0;for(l=0,u=s.length;l<u;l++)if(n.isUrl(s[l][1])||"0"==s[l][1]){o.value=[s[l]],s.splice(l,1);break}for(l=0,u=s.length;l<u;l++)if(n.isListStylePositionKeyword(s[l][1])){i.value=[s[l]],s.splice(l,1);break}return 0<s.length&&(n.isListStyleTypeKeyword(s[0][1])||n.isIdentifier(s[0][1]))&&(r.value=[s[0]]),a},multiplex:function(d){return function(e,t,n){var r,i,o,a,s=[],u=e.value;for(r=0,o=u.length;r<o;r++)","==u[r][1]&&s.push(r);if(0===s.length)return d(e,t,n);var l=[];for(r=0,o=s.length;r<=o;r++){var c=0===r?0:s[r-1]+1,f=r<o?s[r]:u.length,p=O(e.name,0,t);p.value=u.slice(c,f),l.push(d(p,t,n))}var h=l[0];for(r=0,o=h.length;r<o;r++)for(h[r].multiplex=!0,i=1,a=l.length;i<a;i++)h[r].value.push([m.PROPERTY_VALUE,A.COMMA]),Array.prototype.push.apply(h[r].value,l[i][r].value);return h}},outline:r}},{"../../tokenizer/marker":83,"../../tokenizer/token":84,"../../utils/format-position":87,"../wrap-for-optimizing":58,"./invalid-property-error":23}],19:[function(e,t,n){var i=e("./properties/understandable");function r(r){return function(e,t,n){return!(!i(e,t,n,0,!0)&&!e.isKeyword(r)(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||e.isKeyword(r)(n))}}function o(r){return function(e,t,n){return!!(i(e,t,n,0,!0)||e.isKeyword(r)(n)||e.isGlobal(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||(e.isKeyword(r)(n)||e.isGlobal(n)))}}function a(e,t,n){return i=t,o=n,!(!(r=e).isFunction(i)||!r.isFunction(o)||i.substring(0,i.indexOf("("))!==o.substring(0,o.indexOf("(")))||t===n;var r,i,o}function s(e,t,n){return!(!i(e,t,n,0,!0)&&!e.isUnit(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||!(e.isUnit(t)&&!e.isUnit(n))&&(!!e.isUnit(n)||!e.isUnit(t)&&(!(!e.isFunction(t)||e.isPrefixed(t)||!e.isFunction(n)||e.isPrefixed(n))||a(e,t,n))))}function u(e){var r=o(e);return function(e,t,n){return s(e,t,n)||r(e,t,n)}}t.exports={generic:{color:function(e,t,n){return!(!i(e,t,n,0,!0)&&!e.isColor(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||!(!e.colorOpacity&&(e.isRgbColor(t)||e.isHslColor(t)))&&!(!e.colorOpacity&&(e.isRgbColor(n)||e.isHslColor(n)))&&(!(!e.isColor(t)||!e.isColor(n))||a(e,t,n)))},components:function(i){return function(e,t,n,r){return i[r](e,t,n)}},image:function(e,t,n){return!(!i(e,t,n,0,!0)&&!e.isImage(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||!!e.isImage(n)||!e.isImage(t)&&a(e,t,n))},time:function(e,t,n){return!(!i(e,t,n,0,!0)&&!e.isTime(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||!(e.isTime(t)&&!e.isTime(n))&&(!!e.isTime(n)||!e.isTime(t)&&(!(!e.isFunction(t)||e.isPrefixed(t)||!e.isFunction(n)||e.isPrefixed(n))||a(e,t,n))))},unit:s,unitOrNumber:function(e,t,n){return!!(i(e,t,n,0,!0)||e.isUnit(n)||e.isNumber(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||!((e.isUnit(t)||e.isNumber(t))&&!e.isUnit(n)&&!e.isNumber(n))&&(!(!e.isUnit(n)&&!e.isNumber(n))||!e.isUnit(t)&&!e.isNumber(t)&&(!(!e.isFunction(t)||e.isPrefixed(t)||!e.isFunction(n)||e.isPrefixed(n))||a(e,t,n))))}},property:{animationDirection:o("animation-direction"),animationFillMode:r("animation-fill-mode"),animationIterationCount:function(e,t,n){return!!(i(e,t,n,0,!0)||e.isAnimationIterationCountKeyword(n)||e.isPositiveNumber(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||e.isAnimationIterationCountKeyword(n)||e.isPositiveNumber(n))},animationName:function(e,t,n){return!!(i(e,t,n,0,!0)||e.isAnimationNameKeyword(n)||e.isIdentifier(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||e.isAnimationNameKeyword(n)||e.isIdentifier(n))},animationPlayState:o("animation-play-state"),animationTimingFunction:function(e,t,n){return!!(i(e,t,n,0,!0)||e.isAnimationTimingFunction(n)||e.isGlobal(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||e.isAnimationTimingFunction(n)||e.isGlobal(n))},backgroundAttachment:r("background-attachment"),backgroundClip:o("background-clip"),backgroundOrigin:r("background-origin"),backgroundPosition:function(e,t,n){return!!(i(e,t,n,0,!0)||e.isBackgroundPositionKeyword(n)||e.isGlobal(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||!(!e.isBackgroundPositionKeyword(n)&&!e.isGlobal(n))||s(e,t,n))},backgroundRepeat:r("background-repeat"),backgroundSize:function(e,t,n){return!!(i(e,t,n,0,!0)||e.isBackgroundSizeKeyword(n)||e.isGlobal(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||!(!e.isBackgroundSizeKeyword(n)&&!e.isGlobal(n))||s(e,t,n))},bottom:u("bottom"),borderCollapse:r("border-collapse"),borderStyle:o("*-style"),clear:o("clear"),cursor:o("cursor"),display:o("display"),float:o("float"),left:u("left"),fontFamily:function(e,t,n){return i(e,t,n,0,!0)},fontStretch:o("font-stretch"),fontStyle:o("font-style"),fontVariant:o("font-variant"),fontWeight:o("font-weight"),listStyleType:o("list-style-type"),listStylePosition:o("list-style-position"),outlineStyle:o("*-style"),overflow:o("overflow"),position:o("position"),right:u("right"),textAlign:o("text-align"),textDecoration:o("text-decoration"),textOverflow:o("text-overflow"),textShadow:function(e,t,n){return!!(i(e,t,n,0,!0)||e.isUnit(n)||e.isColor(n)||e.isGlobal(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||e.isUnit(n)||e.isColor(n)||e.isGlobal(n))},top:u("top"),transform:a,verticalAlign:u("vertical-align"),visibility:o("visibility"),whiteSpace:o("white-space"),zIndex:function(e,t,n){return!(!i(e,t,n,0,!0)&&!e.isZIndex(n))&&(!(!e.isVariable(t)||!e.isVariable(n))||e.isZIndex(n))}}}},{"./properties/understandable":40}],20:[function(e,t,n){var r=e("../wrap-for-optimizing").single,i=e("../../tokenizer/token");function o(e){var t=r([i.PROPERTY,[i.PROPERTY_NAME,e.name]]);return t.important=e.important,t.hack=e.hack,t.unused=!1,t}t.exports={deep:function(e){for(var t=o(e),n=e.components.length-1;0<=n;n--){var r=o(e.components[n]);r.value=e.components[n].value.slice(0),t.components.unshift(r)}return t.dirty=!0,t.value=e.value.slice(0),t},shallow:o}},{"../../tokenizer/token":84,"../wrap-for-optimizing":58}],21:[function(e,t,n){var r=e("./break-up"),i=e("./can-override"),o=e("./restore"),a=e("../../utils/override"),s={animation:{canOverride:i.generic.components([i.generic.time,i.property.animationTimingFunction,i.generic.time,i.property.animationIterationCount,i.property.animationDirection,i.property.animationFillMode,i.property.animationPlayState,i.property.animationName]),components:["animation-duration","animation-timing-function","animation-delay","animation-iteration-count","animation-direction","animation-fill-mode","animation-play-state","animation-name"],breakUp:r.multiplex(r.animation),defaultValue:"none",restore:o.multiplex(o.withoutDefaults),shorthand:!0,vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-delay":{canOverride:i.generic.time,componentOf:["animation"],defaultValue:"0s",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-direction":{canOverride:i.property.animationDirection,componentOf:["animation"],defaultValue:"normal",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-duration":{canOverride:i.generic.time,componentOf:["animation"],defaultValue:"0s",intoMultiplexMode:"real",keepUnlessDefault:"animation-delay",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-fill-mode":{canOverride:i.property.animationFillMode,componentOf:["animation"],defaultValue:"none",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-iteration-count":{canOverride:i.property.animationIterationCount,componentOf:["animation"],defaultValue:"1",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-name":{canOverride:i.property.animationName,componentOf:["animation"],defaultValue:"none",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-play-state":{canOverride:i.property.animationPlayState,componentOf:["animation"],defaultValue:"running",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-timing-function":{canOverride:i.property.animationTimingFunction,componentOf:["animation"],defaultValue:"ease",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},background:{canOverride:i.generic.components([i.generic.image,i.property.backgroundPosition,i.property.backgroundSize,i.property.backgroundRepeat,i.property.backgroundAttachment,i.property.backgroundOrigin,i.property.backgroundClip,i.generic.color]),components:["background-image","background-position","background-size","background-repeat","background-attachment","background-origin","background-clip","background-color"],breakUp:r.multiplex(r.background),defaultValue:"0 0",restore:o.multiplex(o.background),shortestValue:"0",shorthand:!0},"background-attachment":{canOverride:i.property.backgroundAttachment,componentOf:["background"],defaultValue:"scroll",intoMultiplexMode:"real"},"background-clip":{canOverride:i.property.backgroundClip,componentOf:["background"],defaultValue:"border-box",intoMultiplexMode:"real",shortestValue:"border-box"},"background-color":{canOverride:i.generic.color,componentOf:["background"],defaultValue:"transparent",intoMultiplexMode:"real",multiplexLastOnly:!0,nonMergeableValue:"none",shortestValue:"red"},"background-image":{canOverride:i.generic.image,componentOf:["background"],defaultValue:"none",intoMultiplexMode:"default"},"background-origin":{canOverride:i.property.backgroundOrigin,componentOf:["background"],defaultValue:"padding-box",intoMultiplexMode:"real",shortestValue:"border-box"},"background-position":{canOverride:i.property.backgroundPosition,componentOf:["background"],defaultValue:["0","0"],doubleValues:!0,intoMultiplexMode:"real",shortestValue:"0"},"background-repeat":{canOverride:i.property.backgroundRepeat,componentOf:["background"],defaultValue:["repeat"],doubleValues:!0,intoMultiplexMode:"real"},"background-size":{canOverride:i.property.backgroundSize,componentOf:["background"],defaultValue:["auto"],doubleValues:!0,intoMultiplexMode:"real",shortestValue:"0 0"},bottom:{canOverride:i.property.bottom,defaultValue:"auto"},border:{breakUp:r.border,canOverride:i.generic.components([i.generic.unit,i.property.borderStyle,i.generic.color]),components:["border-width","border-style","border-color"],defaultValue:"none",overridesShorthands:["border-bottom","border-left","border-right","border-top"],restore:o.withoutDefaults,shorthand:!0,shorthandComponents:!0},"border-bottom":{breakUp:r.border,canOverride:i.generic.components([i.generic.unit,i.property.borderStyle,i.generic.color]),components:["border-bottom-width","border-bottom-style","border-bottom-color"],defaultValue:"none",restore:o.withoutDefaults,shorthand:!0},"border-bottom-color":{canOverride:i.generic.color,componentOf:["border-bottom","border-color"],defaultValue:"none"},"border-bottom-left-radius":{canOverride:i.generic.unit,componentOf:["border-radius"],defaultValue:"0",vendorPrefixes:["-moz-","-o-"]},"border-bottom-right-radius":{canOverride:i.generic.unit,componentOf:["border-radius"],defaultValue:"0",vendorPrefixes:["-moz-","-o-"]},"border-bottom-style":{canOverride:i.property.borderStyle,componentOf:["border-bottom","border-style"],defaultValue:"none"},"border-bottom-width":{canOverride:i.generic.unit,componentOf:["border-bottom","border-width"],defaultValue:"medium",oppositeTo:"border-top-width",shortestValue:"0"},"border-collapse":{canOverride:i.property.borderCollapse,defaultValue:"separate"},"border-color":{breakUp:r.fourValues,canOverride:i.generic.components([i.generic.color,i.generic.color,i.generic.color,i.generic.color]),componentOf:["border"],components:["border-top-color","border-right-color","border-bottom-color","border-left-color"],defaultValue:"none",restore:o.fourValues,shortestValue:"red",shorthand:!0},"border-left":{breakUp:r.border,canOverride:i.generic.components([i.generic.unit,i.property.borderStyle,i.generic.color]),components:["border-left-width","border-left-style","border-left-color"],defaultValue:"none",restore:o.withoutDefaults,shorthand:!0},"border-left-color":{canOverride:i.generic.color,componentOf:["border-color","border-left"],defaultValue:"none"},"border-left-style":{canOverride:i.property.borderStyle,componentOf:["border-left","border-style"],defaultValue:"none"},"border-left-width":{canOverride:i.generic.unit,componentOf:["border-left","border-width"],defaultValue:"medium",oppositeTo:"border-right-width",shortestValue:"0"},"border-radius":{breakUp:r.borderRadius,canOverride:i.generic.components([i.generic.unit,i.generic.unit,i.generic.unit,i.generic.unit]),components:["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"],defaultValue:"0",restore:o.borderRadius,shorthand:!0,vendorPrefixes:["-moz-","-o-"]},"border-right":{breakUp:r.border,canOverride:i.generic.components([i.generic.unit,i.property.borderStyle,i.generic.color]),components:["border-right-width","border-right-style","border-right-color"],defaultValue:"none",restore:o.withoutDefaults,shorthand:!0},"border-right-color":{canOverride:i.generic.color,componentOf:["border-color","border-right"],defaultValue:"none"},"border-right-style":{canOverride:i.property.borderStyle,componentOf:["border-right","border-style"],defaultValue:"none"},"border-right-width":{canOverride:i.generic.unit,componentOf:["border-right","border-width"],defaultValue:"medium",oppositeTo:"border-left-width",shortestValue:"0"},"border-style":{breakUp:r.fourValues,canOverride:i.generic.components([i.property.borderStyle,i.property.borderStyle,i.property.borderStyle,i.property.borderStyle]),componentOf:["border"],components:["border-top-style","border-right-style","border-bottom-style","border-left-style"],defaultValue:"none",restore:o.fourValues,shorthand:!0},"border-top":{breakUp:r.border,canOverride:i.generic.components([i.generic.unit,i.property.borderStyle,i.generic.color]),components:["border-top-width","border-top-style","border-top-color"],defaultValue:"none",restore:o.withoutDefaults,shorthand:!0},"border-top-color":{canOverride:i.generic.color,componentOf:["border-color","border-top"],defaultValue:"none"},"border-top-left-radius":{canOverride:i.generic.unit,componentOf:["border-radius"],defaultValue:"0",vendorPrefixes:["-moz-","-o-"]},"border-top-right-radius":{canOverride:i.generic.unit,componentOf:["border-radius"],defaultValue:"0",vendorPrefixes:["-moz-","-o-"]},"border-top-style":{canOverride:i.property.borderStyle,componentOf:["border-style","border-top"],defaultValue:"none"},"border-top-width":{canOverride:i.generic.unit,componentOf:["border-top","border-width"],defaultValue:"medium",oppositeTo:"border-bottom-width",shortestValue:"0"},"border-width":{breakUp:r.fourValues,canOverride:i.generic.components([i.generic.unit,i.generic.unit,i.generic.unit,i.generic.unit]),componentOf:["border"],components:["border-top-width","border-right-width","border-bottom-width","border-left-width"],defaultValue:"medium",restore:o.fourValues,shortestValue:"0",shorthand:!0},clear:{canOverride:i.property.clear,defaultValue:"none"},color:{canOverride:i.generic.color,defaultValue:"transparent",shortestValue:"red"},cursor:{canOverride:i.property.cursor,defaultValue:"auto"},display:{canOverride:i.property.display},float:{canOverride:i.property.float,defaultValue:"none"},font:{breakUp:r.font,canOverride:i.generic.components([i.property.fontStyle,i.property.fontVariant,i.property.fontWeight,i.property.fontStretch,i.generic.unit,i.generic.unit,i.property.fontFamily]),components:["font-style","font-variant","font-weight","font-stretch","font-size","line-height","font-family"],restore:o.font,shorthand:!0},"font-family":{canOverride:i.property.fontFamily,defaultValue:"user|agent|specific"},"font-size":{canOverride:i.generic.unit,defaultValue:"medium",shortestValue:"0"},"font-stretch":{canOverride:i.property.fontStretch,defaultValue:"normal"},"font-style":{canOverride:i.property.fontStyle,defaultValue:"normal"},"font-variant":{canOverride:i.property.fontVariant,defaultValue:"normal"},"font-weight":{canOverride:i.property.fontWeight,defaultValue:"normal",shortestValue:"400"},height:{canOverride:i.generic.unit,defaultValue:"auto",shortestValue:"0"},left:{canOverride:i.property.left,defaultValue:"auto"},"line-height":{canOverride:i.generic.unitOrNumber,defaultValue:"normal",shortestValue:"0"},"list-style":{canOverride:i.generic.components([i.property.listStyleType,i.property.listStylePosition,i.property.listStyleImage]),components:["list-style-type","list-style-position","list-style-image"],breakUp:r.listStyle,restore:o.withoutDefaults,defaultValue:"outside",shortestValue:"none",shorthand:!0},"list-style-image":{canOverride:i.generic.image,componentOf:["list-style"],defaultValue:"none"},"list-style-position":{canOverride:i.property.listStylePosition,componentOf:["list-style"],defaultValue:"outside",shortestValue:"inside"},"list-style-type":{canOverride:i.property.listStyleType,componentOf:["list-style"],defaultValue:"decimal|disc",shortestValue:"none"},margin:{breakUp:r.fourValues,canOverride:i.generic.components([i.generic.unit,i.generic.unit,i.generic.unit,i.generic.unit]),components:["margin-top","margin-right","margin-bottom","margin-left"],defaultValue:"0",restore:o.fourValues,shorthand:!0},"margin-bottom":{canOverride:i.generic.unit,componentOf:["margin"],defaultValue:"0",oppositeTo:"margin-top"},"margin-left":{canOverride:i.generic.unit,componentOf:["margin"],defaultValue:"0",oppositeTo:"margin-right"},"margin-right":{canOverride:i.generic.unit,componentOf:["margin"],defaultValue:"0",oppositeTo:"margin-left"},"margin-top":{canOverride:i.generic.unit,componentOf:["margin"],defaultValue:"0",oppositeTo:"margin-bottom"},outline:{canOverride:i.generic.components([i.generic.color,i.property.outlineStyle,i.generic.unit]),components:["outline-color","outline-style","outline-width"],breakUp:r.outline,restore:o.withoutDefaults,defaultValue:"0",shorthand:!0},"outline-color":{canOverride:i.generic.color,componentOf:["outline"],defaultValue:"invert",shortestValue:"red"},"outline-style":{canOverride:i.property.outlineStyle,componentOf:["outline"],defaultValue:"none"},"outline-width":{canOverride:i.generic.unit,componentOf:["outline"],defaultValue:"medium",shortestValue:"0"},overflow:{canOverride:i.property.overflow,defaultValue:"visible"},"overflow-x":{canOverride:i.property.overflow,defaultValue:"visible"},"overflow-y":{canOverride:i.property.overflow,defaultValue:"visible"},padding:{breakUp:r.fourValues,canOverride:i.generic.components([i.generic.unit,i.generic.unit,i.generic.unit,i.generic.unit]),components:["padding-top","padding-right","padding-bottom","padding-left"],defaultValue:"0",restore:o.fourValues,shorthand:!0},"padding-bottom":{canOverride:i.generic.unit,componentOf:["padding"],defaultValue:"0",oppositeTo:"padding-top"},"padding-left":{canOverride:i.generic.unit,componentOf:["padding"],defaultValue:"0",oppositeTo:"padding-right"},"padding-right":{canOverride:i.generic.unit,componentOf:["padding"],defaultValue:"0",oppositeTo:"padding-left"},"padding-top":{canOverride:i.generic.unit,componentOf:["padding"],defaultValue:"0",oppositeTo:"padding-bottom"},position:{canOverride:i.property.position,defaultValue:"static"},right:{canOverride:i.property.right,defaultValue:"auto"},"text-align":{canOverride:i.property.textAlign,defaultValue:"left|right"},"text-decoration":{canOverride:i.property.textDecoration,defaultValue:"none"},"text-overflow":{canOverride:i.property.textOverflow,defaultValue:"none"},"text-shadow":{canOverride:i.property.textShadow,defaultValue:"none"},top:{canOverride:i.property.top,defaultValue:"auto"},transform:{canOverride:i.property.transform,vendorPrefixes:["-moz-","-ms-","-webkit-"]},"vertical-align":{canOverride:i.property.verticalAlign,defaultValue:"baseline"},visibility:{canOverride:i.property.visibility,defaultValue:"visible"},"white-space":{canOverride:i.property.whiteSpace,defaultValue:"normal"},width:{canOverride:i.generic.unit,defaultValue:"auto",shortestValue:"0"},"z-index":{canOverride:i.property.zIndex,defaultValue:"auto"}};function u(e,t){var n=a(s[e],{});return"componentOf"in n&&(n.componentOf=n.componentOf.map(function(e){return t+e})),"components"in n&&(n.components=n.components.map(function(e){return t+e})),"keepUnlessDefault"in n&&(n.keepUnlessDefault=t+n.keepUnlessDefault),n}var l={};for(var c in s){var f=s[c];if("vendorPrefixes"in f){for(var p=0;p<f.vendorPrefixes.length;p++){var h=f.vendorPrefixes[p],d=u(c,h);delete d.vendorPrefixes,l[h+c]=d}delete f.vendorPrefixes}}t.exports=a(s,l)},{"../../utils/override":95,"./break-up":18,"./can-override":19,"./restore":49}],22:[function(e,t,n){var c=e("../../tokenizer/token"),f=e("../../writer/one-time").rules,p=e("../../writer/one-time").value;t.exports=function e(t){var n,r,i,o,a,s,u=[];if(t[0]==c.RULE)for(n=!/[\.\+>~]/.test(f(t[1])),a=0,s=t[2].length;a<s;a++)(r=t[2][a])[0]==c.PROPERTY&&0!==(i=r[1][1]).length&&0!==i.indexOf("--")&&(o=p(r,a),u.push([i,o,(l=i,"list-style"==l?l:0<l.indexOf("-radius")?"border-radius":"border-collapse"==l||"border-spacing"==l||"border-image"==l?l:0===l.indexOf("border-")&&/^border\-\w+\-\w+$/.test(l)?l.match(/border\-\w+/)[0]:0===l.indexOf("border-")&&/^border\-\w+$/.test(l)?"border":0===l.indexOf("text-")?l:"-chrome-"==l?l:l.replace(/^\-\w+\-/,"").match(/([a-zA-Z]+)/)[0].toLowerCase()),t[2][a],i+":"+o,t[1],n]));else if(t[0]==c.NESTED_BLOCK)for(a=0,s=t[2].length;a<s;a++)u=u.concat(e(t[2][a]));var l;return u}},{"../../tokenizer/token":84,"../../writer/one-time":98}],23:[function(e,t,n){function r(e){this.name="InvalidPropertyError",this.message=e,this.stack=(new Error).stack}(r.prototype=Object.create(Error.prototype)).constructor=r,t.exports=r},{}],24:[function(e,t,n){var h=e("../../tokenizer/marker"),p=e("../../utils/split"),d=/\/deep\//,m=/^::/,g=":not",v=[":dir",":lang",":not",":nth-child",":nth-last-child",":nth-last-of-type",":nth-of-type"],b=/[>\+~]/,y=[":after",":before",":first-letter",":first-line",":lang"],_=["::after","::before","::first-letter","::first-line"],w={DOUBLE_QUOTE:"double-quote",SINGLE_QUOTE:"single-quote",ROOT:"root"};function E(e){var t,n,r,i,o,a,s=[],u=[],l=w.ROOT,c=0,f=!1,p=!1;for(o=0,a=e.length;o<a;o++)t=e[o],i=!r&&b.test(t),n=l==w.DOUBLE_QUOTE||l==w.SINGLE_QUOTE,r?u.push(t):t==h.DOUBLE_QUOTE&&l==w.ROOT?(u.push(t),l=w.DOUBLE_QUOTE):t==h.DOUBLE_QUOTE&&l==w.DOUBLE_QUOTE?(u.push(t),l=w.ROOT):t==h.SINGLE_QUOTE&&l==w.ROOT?(u.push(t),l=w.SINGLE_QUOTE):t==h.SINGLE_QUOTE&&l==w.SINGLE_QUOTE?(u.push(t),l=w.ROOT):n?u.push(t):t==h.OPEN_ROUND_BRACKET?(u.push(t),c++):t==h.CLOSE_ROUND_BRACKET&&1==c&&f?(u.push(t),s.push(u.join("")),c--,u=[],f=!1):t==h.CLOSE_ROUND_BRACKET?(u.push(t),c--):t==h.COLON&&0===c&&f&&!p?(s.push(u.join("")),(u=[]).push(t)):t!=h.COLON||0!==c||p?t==h.SPACE&&0===c&&f?(s.push(u.join("")),u=[],f=!1):i&&0===c&&f?(s.push(u.join("")),u=[],f=!1):u.push(t):((u=[]).push(t),f=!0),r=t==h.BACK_SLASH,p=t==h.COLON;return 0<u.length&&f&&s.push(u.join("")),s}t.exports=function(e,t,n,r){var i,o,a,s,u,l,c,f=p(e,h.COMMA);for(o=0,a=f.length;o<a;o++)if(0===(i=f[o]).length||(c=i,d.test(c))||-1<i.indexOf(h.COLON)&&(u=E(s=i),l=r,!(function(e,t,n){var r,i,o,a;for(o=0,a=e.length;o<a;o++)if(r=e[o],i=-1<r.indexOf(h.OPEN_ROUND_BRACKET)?r.substring(0,r.indexOf(h.OPEN_ROUND_BRACKET)):r,-1===t.indexOf(i)&&-1===n.indexOf(i))return!1;return!0}(u,t,n)&&function(e){var t,n,r,i,o,a;for(o=0,a=e.length;o<a;o++){if(t=e[o],r=t.indexOf(h.OPEN_ROUND_BRACKET),n=(i=-1<r)?t.substring(0,r):t,i&&-1==v.indexOf(n))return!1;if(!i&&-1<v.indexOf(n))return!1}return!0}(u)&&(u.length<2||!function(e,t){var n,r,i,o,a,s,u,l,c=0;for(u=0,l=t.length;u<l&&(n=t[u],i=t[u+1]);u++)if(r=e.indexOf(n,c),o=e.indexOf(n,r+1),c=o,r+n.length==o&&(a=-1<n.indexOf(h.OPEN_ROUND_BRACKET)?n.substring(0,n.indexOf(h.OPEN_ROUND_BRACKET)):n,s=-1<i.indexOf(h.OPEN_ROUND_BRACKET)?i.substring(0,i.indexOf(h.OPEN_ROUND_BRACKET)):i,a!=g||s!=g))return!0;return!1}(s,u))&&(u.length<2||l&&function(e){var t,n,r,i,o=0;for(n=0,r=e.length;n<r;n++)if(t=e[n],i=t,m.test(i)?o+=-1<_.indexOf(t)?1:0:o+=-1<y.indexOf(t)?1:0,1<o)return!1;return!0}(u)))))return!1;return!0}},{"../../tokenizer/marker":83,"../../utils/split":96}],25:[function(e,t,n){var h=e("./is-mergeable"),d=e("./properties/optimize"),m=e("../level-1/sort-selectors"),g=e("../level-1/tidy-rules"),v=e("../../options/optimization-level").OptimizationLevel,b=e("../../writer/one-time").body,y=e("../../writer/one-time").rules,_=e("../../tokenizer/token");t.exports=function(e,t){for(var n=[null,[],[]],r=t.options,i=r.compatibility.selectors.adjacentSpace,o=r.level[v.One].selectorsSortingMethod,a=r.compatibility.selectors.mergeablePseudoClasses,s=r.compatibility.selectors.mergeablePseudoElements,u=r.compatibility.selectors.mergeLimit,l=r.compatibility.selectors.multiplePseudoMerging,c=0,f=e.length;c<f;c++){var p=e[c];p[0]==_.RULE?n[0]==_.RULE&&y(p[1])==y(n[1])?(Array.prototype.push.apply(n[2],p[2]),d(n[2],!0,!0,t),p[2]=[]):n[0]==_.RULE&&b(p[2])==b(n[2])&&h(y(p[1]),a,s,l)&&h(y(n[1]),a,s,l)&&n[1].length<u?(n[1]=g(n[1].concat(p[1]),!1,i,!1,t.warnings),n[1]=1<n.length?m(n[1],o):n[1],p[2]=[]):n=p:n=[null,[],[]]}}},{"../../options/optimization-level":65,"../../tokenizer/token":84,"../../writer/one-time":98,"../level-1/sort-selectors":14,"../level-1/tidy-rules":17,"./is-mergeable":24,"./properties/optimize":36}],26:[function(e,t,n){var k=e("./reorderable").canReorder,f=e("./reorderable").canReorderSingle,O=e("./extract-properties"),p=e("./rules-overlap"),S=e("../../writer/one-time").rules,D=e("../../options/optimization-level").OptimizationLevel,B=e("../../tokenizer/token");function T(e,t,n){var r,i,o,a,s,u,l,c;for(s=0,u=e.length;s<u;s++)for(i=(r=e[s])[5],l=0,c=t.length;l<c;l++)if(a=(o=t[l])[5],p(i,a,!0)&&!f(r,o,n))return!1;return!0}t.exports=function(e,t){for(var n=t.options.level[D.Two].mergeSemantically,r=t.cache.specificity,i={},o=[],a=e.length-1;0<=a;a--){var s=e[a];if(s[0]==B.NESTED_BLOCK){var u=S(s[1]),l=i[u];l||(l=[],i[u]=l),l.push(a)}}for(var c in i){var f=i[c];e:for(var p=f.length-1;0<p;p--){var h=f[p],d=e[h],m=f[p-1],g=e[m];t:for(var v=1;-1<=v;v-=2){for(var b=1==v,y=b?h+1:m-1,_=b?m:h,w=b?1:-1,E=b?d:g,A=b?g:d,x=O(E);y!=_;){var C=O(e[y]);if(y+=w,!(n&&T(x,C,r)||k(x,C,r)))continue t}A[2]=b?E[2].concat(A[2]):A[2].concat(E[2]),E[2]=[],o.push(A);continue e}}}return o}},{"../../options/optimization-level":65,"../../tokenizer/token":84,"../../writer/one-time":98,"./extract-properties":22,"./reorderable":47,"./rules-overlap":51}],27:[function(e,t,n){var g=e("./is-mergeable"),v=e("../level-1/sort-selectors"),b=e("../level-1/tidy-rules"),y=e("../../options/optimization-level").OptimizationLevel,_=e("../../writer/one-time").body,w=e("../../writer/one-time").rules,E=e("../../tokenizer/token");function a(e){return e.replace(/--[^ ,>\+~:]+/g,"")}function A(e,t){var n=a(w(e[1]));for(var r in t){var i=t[r],o=a(w(i[1]));(-1<o.indexOf(n)||-1<n.indexOf(o))&&delete t[r]}}t.exports=function(e,t){for(var n,r,i=t.options,o=i.level[y.Two].mergeSemantically,a=i.compatibility.selectors.adjacentSpace,s=i.level[y.One].selectorsSortingMethod,u=i.compatibility.selectors.mergeablePseudoClasses,l=i.compatibility.selectors.mergeablePseudoElements,c=i.compatibility.selectors.multiplePseudoMerging,f={},p=e.length-1;0<=p;p--){var h=e[p];if(h[0]==E.RULE){0<h[2].length&&!o&&(r=w(h[1]),/\.|\*| :/.test(r))&&(f={}),0<h[2].length&&o&&(n=void 0,-1<(n=w(h[1])).indexOf("__")||-1<n.indexOf("--"))&&A(h,f);var d=_(h[2]),m=f[d];m&&g(w(h[1]),u,l,c)&&g(w(m[1]),u,l,c)&&(0<h[2].length?(h[1]=b(m[1].concat(h[1]),!1,a,!1,t.warnings),h[1]=1<h[1].length?v(h[1],s):h[1]):h[1]=m[1].concat(h[1]),m[2]=[],f[d]=null),f[_(h[2])]=h}}}},{"../../options/optimization-level":65,"../../tokenizer/token":84,"../../writer/one-time":98,"../level-1/sort-selectors":14,"../level-1/tidy-rules":17,"./is-mergeable":24}],28:[function(e,t,n){var A=e("./reorderable").canReorder,x=e("./extract-properties"),C=e("./properties/optimize"),k=e("../../writer/one-time").rules,O=e("../../tokenizer/token");t.exports=function(e,t){var n,r=t.cache.specificity,i={},o=[];for(n=e.length-1;0<=n;n--)if(e[n][0]==O.RULE&&0!==e[n][2].length){var a=k(e[n][1]);i[a]=[n].concat(i[a]||[]),2==i[a].length&&o.push(a)}for(n=o.length-1;0<=n;n--){var s=i[o[n]];e:for(var u=s.length-1;0<u;u--){var l=s[u-1],c=e[l],f=s[u],p=e[f];t:for(var h=1;-1<=h;h-=2){for(var d=1==h,m=d?l+1:f-1,g=d?f:l,v=d?1:-1,b=d?c:p,y=d?p:c,_=x(b);m!=g;){var w=x(e[m]);m+=v;var E=d?A(_,w,r):A(w,_,r);if(!E&&!d)continue e;if(!E&&d)continue t}d?(Array.prototype.push.apply(b[2],y[2]),y[2]=b[2]):Array.prototype.push.apply(y[2],b[2]),C(y[2],!0,!0,t),b[2]=[]}}}}},{"../../tokenizer/token":84,"../../writer/one-time":98,"./extract-properties":22,"./properties/optimize":36,"./reorderable":47}],29:[function(e,t,n){var a=e("./merge-adjacent"),s=e("./merge-media-queries"),u=e("./merge-non-adjacent-by-body"),l=e("./merge-non-adjacent-by-selector"),c=e("./reduce-non-adjacent"),f=e("./remove-duplicate-font-at-rules"),p=e("./remove-duplicate-media-queries"),h=e("./remove-duplicates"),d=e("./remove-unused-at-rules"),m=e("./restructure"),g=e("./properties/optimize"),v=e("../../options/optimization-level").OptimizationLevel,b=e("../../tokenizer/token");function y(e,t,n){var r,i,o=t.options.level[v.Two];if(function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i[0]==b.NESTED_BLOCK){var o=/@(-moz-|-o-|-webkit-)?keyframes/.test(i[1][0][1]);y(i[2],t,!o)}}}(e,t),function e(t,n){for(var r=0,i=t.length;r<i;r++){var o=t[r];switch(o[0]){case b.RULE:g(o[2],!0,!0,n);break;case b.NESTED_BLOCK:e(o[2],n)}}}(e,t),o.removeDuplicateRules&&h(e,t),o.mergeAdjacentRules&&a(e,t),o.reduceNonAdjacentRules&&c(e,t),o.mergeNonAdjacentRules&&"body"!=o.mergeNonAdjacentRules&&l(e,t),o.mergeNonAdjacentRules&&"selector"!=o.mergeNonAdjacentRules&&u(e,t),o.restructureRules&&o.mergeAdjacentRules&&n&&(m(e,t),a(e,t)),o.restructureRules&&!o.mergeAdjacentRules&&n&&m(e,t),o.removeDuplicateFontRules&&f(e,t),o.removeDuplicateMediaBlocks&&p(e,t),o.removeUnusedAtRules&&d(e,t),o.mergeMedia)for(i=(r=s(e,t)).length-1;0<=i;i--)y(r[i][2],t,!1);return o.removeEmpty&&function e(t){for(var n=0,r=t.length;n<r;n++){var i=t[n],o=!1;switch(i[0]){case b.RULE:o=0===i[1].length||0===i[2].length;break;case b.NESTED_BLOCK:e(i[2]),o=0===i[2].length;break;case b.AT_RULE:o=0===i[1].length;break;case b.AT_RULE_BLOCK:o=0===i[2].length}o&&(t.splice(n,1),n--,r--)}}(e),e}t.exports=y},{"../../options/optimization-level":65,"../../tokenizer/token":84,"./merge-adjacent":25,"./merge-media-queries":26,"./merge-non-adjacent-by-body":27,"./merge-non-adjacent-by-selector":28,"./properties/optimize":36,"./reduce-non-adjacent":42,"./remove-duplicate-font-at-rules":43,"./remove-duplicate-media-queries":44,"./remove-duplicates":45,"./remove-unused-at-rules":46,"./restructure":50}],30:[function(e,t,n){var c=e("../../../tokenizer/marker");t.exports=function(e,t,n){var r,i,o,a=t.value.length,s=n.value.length,u=Math.max(a,s),l=Math.min(a,s)-1;for(o=0;o<u;o++)if(r=t.value[o]&&t.value[o][1]||r,i=n.value[o]&&n.value[o][1]||i,r!=c.COMMA&&i!=c.COMMA&&!e(r,i,o,o<=l))return!1;return!0}},{"../../../tokenizer/marker":83}],31:[function(e,t,n){var a=e("../compactable");function s(e,t){return e.components.filter(t)[0]}t.exports=function(e,t){var n,r=(n=t,function(e){return n.name===e.name});return s(e,r)||function(e,t){var n,r,i,o;if(a[e.name].shorthandComponents)for(i=0,o=e.components.length;i<o;i++)if(n=e.components[i],r=s(n,t))return r}(e,r)}},{"../compactable":21}],32:[function(e,t,n){t.exports=function(e){for(var t=e.value.length-1;0<=t;t--)if("inherit"==e.value[t][1])return!0;return!1}},{}],33:[function(e,t,n){var i=e("../compactable");function o(e,t){var n=i[e.name];return"components"in n&&-1<n.components.indexOf(t.name)}t.exports=function(e,t,n){return o(e,t)||!n&&!!i[e.name].shorthandComponents&&(r=t,e.components.some(function(e){return o(e,r)}));var r}},{"../compactable":21}],34:[function(e,t,n){var r=e("../../../tokenizer/marker");t.exports=function(e){return"font"!=e.name||-1==e.value[0][1].indexOf(r.INTERNAL)}},{"../../../tokenizer/marker":83}],35:[function(e,t,n){var c=e("./every-values-pair"),v=e("./has-inherit"),b=e("./populate-components"),y=e("../compactable"),_=e("../clone").deep,w=e("../restore-with-components"),E=e("../../restore-from-optimizing"),A=e("../../wrap-for-optimizing").single,x=e("../../../writer/one-time").body,C=e("../../../tokenizer/token");function f(e,t,n,r){var i,o,a,s=e[t];for(i in n)void 0!==s&&i==s.name||(o=y[i],a=n[i],s&&u(n,i,s)?delete n[i]:o.components.length>Object.keys(a).length||l(a)||p(a,i,r)&&h(a)&&(d(a)?m(e,a,i,r):g(e,a,i,r)))}function u(e,t,n){var r,i=y[t],o=y[n.name];if("overridesShorthands"in i&&-1<i.overridesShorthands.indexOf(n.name))return!0;if(o&&"componentOf"in o)for(r in e[t])if(-1<o.componentOf.indexOf(r))return!0;return!1}function l(e){var t,n;for(n in e){if(void 0!==t&&e[n].important!=t)return!0;t=e[n].important}return!1}function p(e,t,n){var r,i,o,a,s=y[t],u=[C.PROPERTY,[C.PROPERTY_NAME,t],[C.PROPERTY_VALUE,s.defaultValue]],l=A(u);for(b([l],n,[]),o=0,a=s.components.length;o<a;o++)if(r=e[s.components[o]],i=y[r.name].canOverride,!c(i.bind(null,n),l.components[o],r))return!1;return!0}function h(e){var t,n,r,i,o=null;for(n in e)if(r=e[n],"restore"in(i=y[n])){if(E([r.all[r.position]],w),t=i.restore(r,y).length,null!==o&&t!==o)return!1;o=t}return!0}function d(e){var t,n,r=null;for(t in e){if(n=v(e[t]),null!==r&&r!==n)return!0;r=n}return!1}function m(e,t,n,r){var i,o,a,s,u=function(e,t,n){var r,i,o,a,s,u,l=[],c={},f={},p=y[t],h=[C.PROPERTY,[C.PROPERTY_NAME,t],[C.PROPERTY_VALUE,p.defaultValue]],d=A(h);for(b([d],n,[]),s=0,u=p.components.length;s<u;s++)r=e[p.components[s]],v(r)?(i=r.all[r.position].slice(0,2),Array.prototype.push.apply(i,r.value),l.push(i),(o=_(r)).value=k(e,o.name),d.components[s]=o,c[r.name]=_(r)):((o=_(r)).all=r.all,d.components[s]=o,f[r.name]=r);return a=O(f,1),h[1].push(a),E([d],w),h=h.slice(0,2),Array.prototype.push.apply(h,d.value),l.unshift(h),[l,d,c]}(t,n,r),l=function(e,t,n){var r,i,o,a,s,u,l=[],c={},f={},p=y[t],h=[C.PROPERTY,[C.PROPERTY_NAME,t],[C.PROPERTY_VALUE,"inherit"]],d=A(h);for(b([d],n,[]),s=0,u=p.components.length;s<u;s++)r=e[p.components[s]],v(r)?c[r.name]=r:(i=r.all[r.position].slice(0,2),Array.prototype.push.apply(i,r.value),l.push(i),f[r.name]=_(r));return o=O(c,1),h[1].push(o),a=O(c,2),h[2].push(a),l.unshift(h),[l,d,f]}(t,n,r),c=u[0],f=l[0],p=x(c).length<x(f).length,h=p?c:f,d=p?u[1]:l[1],m=p?u[2]:l[2],g=t[Object.keys(t)[0]].all;for(i in d.position=g.length,d.shorthand=!0,d.dirty=!0,d.all=g,d.all.push(h[0]),e.push(d),t)(o=t[i]).unused=!0,o.name in m&&(a=m[o.name],s=S(h,i),a.position=g.length,a.all=g,a.all.push(s),e.push(a))}function k(e,t){var n=y[t];return"oppositeTo"in n?e[n.oppositeTo].value:[[C.PROPERTY_VALUE,n.defaultValue]]}function O(e,t){var n,r,i,o,a=[];for(o in e)i=(r=(n=e[o]).all[n.position])[t][r[t].length-1],Array.prototype.push.apply(a,i);return a.sort(s)}function s(e,t){var n=e[0],r=t[0],i=e[1],o=t[1];return n<r?-1:n===r&&i<o?-1:1}function S(e,t){var n,r;for(n=0,r=e.length;n<r;n++)if(e[n][1][1]==t)return e[n]}function g(e,t,n,r){var i,o,a,s=y[n],u=[C.PROPERTY,[C.PROPERTY_NAME,n],[C.PROPERTY_VALUE,s.defaultValue]],l=A(u);l.shorthand=!0,l.dirty=!0,b([l],r,[]);for(var c=0,f=s.components.length;c<f;c++){var p=t[s.components[c]];l.components[c]=_(p),l.important=p.important,a=p.all}for(var h in t)t[h].unused=!0;i=O(t,1),u[1].push(i),o=O(t,2),u[2].push(o),l.position=a.length,l.all=a,l.all.push(u),e.push(l)}t.exports=function(e,t){var n,r,i,o,a,s,u,l={};if(!(e.length<3)){for(o=0,a=e.length;o<a;o++)if(i=e[o],n=y[i.name],!i.unused&&!i.hack&&!i.block&&(f(e,o,l,t),n&&n.componentOf))for(s=0,u=n.componentOf.length;s<u;s++)l[r=n.componentOf[s]]=l[r]||{},l[r][i.name]=i;f(e,o,l,t)}}},{"../../../tokenizer/token":84,"../../../writer/one-time":98,"../../restore-from-optimizing":56,"../../wrap-for-optimizing":58,"../clone":20,"../compactable":21,"../restore-with-components":48,"./every-values-pair":30,"./has-inherit":32,"./populate-components":39}],36:[function(e,t,n){var c=e("./merge-into-shorthands"),f=e("./override-properties"),p=e("./populate-components"),h=e("../restore-with-components"),d=e("../../wrap-for-optimizing").all,m=e("../../remove-unused"),g=e("../../restore-from-optimizing"),v=e("../../../options/optimization-level").OptimizationLevel;t.exports=function e(t,n,r,i){var o,a,s,u=i.options.level[v.Two],l=d(t,!1,u.skipProperties);for(p(l,i.validator,i.warnings),a=0,s=l.length;a<s;a++)(o=l[a]).block&&e(o.value[0][1],n,r,i);r&&u.mergeIntoShorthands&&c(l,i.validator),n&&u.overrideProperties&&f(l,r,i.options.compatibility,i.validator),g(l,h),m(l)}},{"../../../options/optimization-level":65,"../../remove-unused":55,"../../restore-from-optimizing":56,"../../wrap-for-optimizing":58,"../restore-with-components":48,"./merge-into-shorthands":35,"./override-properties":37,"./populate-components":39}],37:[function(e,t,n){var y=e("./has-inherit"),_=e("./every-values-pair"),w=e("./find-component-in"),E=e("./is-component-of"),A=e("./is-mergeable-shorthand"),x=e("./overrides-non-component-shorthand"),C=e("./vendor-prefixes").same,k=e("../compactable"),u=e("../clone").deep,l=(u=e("../clone").deep,e("../restore-with-components")),s=e("../clone").shallow,c=e("../../restore-from-optimizing"),f=e("../../../tokenizer/token"),p=e("../../../tokenizer/marker"),r=e("../../../writer/one-time").property;function O(e,t){for(var n=0;n<e.components.length;n++){var r=e.components[n],i=k[r.name],o=i&&i.canOverride||o.sameValue,a=s(r);if(a.value=[[f.PROPERTY_VALUE,i.defaultValue]],!_(o.bind(null,t),a,r))return!0}return!1}function h(e,t){t.unused=!0,B(t,T(e)),e.value=t.value}function d(e,t){t.unused=!0,e.multiplex=!0,e.value=t.value}function S(e,t){var n,r;t.multiplex?d(e,t):e.multiplex?h(e,t):(n=e,(r=t).unused=!0,n.value=r.value)}function D(e,t){t.unused=!0;for(var n=0,r=e.components.length;n<r;n++)S(e.components[n],t.components[n],e.multiplex)}function B(e,t){e.multiplex=!0,k[e.name].shorthand?function(e,t){var n,r,i;for(r=0,i=e.components.length;r<i;r++)(n=e.components[r]).multiplex||o(n,t)}(e,t):o(e,t)}function o(e,t){for(var n,r="real"==k[e.name].intoMultiplexMode,i=r?e.value.slice(0):k[e.name].defaultValue,o=T(e),a=i.length;o<t;o++)if(e.value.push([f.PROPERTY_VALUE,p.COMMA]),Array.isArray(i))for(n=0;n<a;n++)e.value.push(r?i[n]:[f.PROPERTY_VALUE,i[n]]);else e.value.push(r?i:[f.PROPERTY_VALUE,i])}function T(e){for(var t=0,n=0,r=e.value.length;n<r;n++)e.value[n][1]==p.COMMA&&t++;return t+1}function m(e){var t=[f.PROPERTY,[f.PROPERTY_NAME,e.name]].concat(e.value);return r([t],0).length}function R(e,t,n){for(var r=0,i=t;0<=i&&(e[i].name!=n||e[i].unused||r++,!(1<r));i--);return 1<r}function F(e,t){for(var n=0,r=e.components.length;n<r;n++)if(!L(t.isUrl,e.components[n])&&L(t.isFunction,e.components[n]))return!0;return!1}function L(e,t){for(var n=0,r=t.value.length;n<r;n++)if(t.value[n][1]!=p.COMMA&&e(t.value[n][1]))return!0;return!1}function M(e,t){if(!e.multiplex&&!t.multiplex||e.multiplex&&t.multiplex)return!1;var n,r=e.multiplex?e:t,i=e.multiplex?t:e,o=u(r);c([o],l);var a=u(i);c([a],l);var s=m(o)+1+m(a);return e.multiplex?h(n=w(o,a),a):(n=w(a,o),B(a,T(o)),d(n,o)),c([a],l),s<=m(a)}function U(e){return e.name in k}function N(e,t){return!e.multiplex&&("background"==e.name||"background-image"==e.name)&&t.multiplex&&("background"==t.name||"background-image"==t.name)&&function(e){for(var t=function(e){for(var t=[],n=0,r=[],i=e.length;n<i;n++){var o=e[n];o[1]==p.COMMA?(t.push(r),r=[]):r.push(o)}return t.push(r),t}(e),n=0,r=t.length;n<r;n++)if(1==t[n].length&&"none"==t[n][0][1])return!0;return!1}(t.value)}t.exports=function(e,t,n,r){var i,o,a,s,u,l,c,f,p,h,d;e:for(p=e.length-1;0<=p;p--)if(U(o=e[p])&&!o.block){i=k[o.name].canOverride;t:for(h=p-1;0<=h;h--)if(U(a=e[h])&&!a.block&&!a.unused&&!o.unused&&(!a.hack||o.hack||o.important)&&(a.hack||a.important||!o.hack)&&(a.important!=o.important||a.hack[0]==o.hack[0])&&!(a.important==o.important&&(a.hack[0]!=o.hack[0]||a.hack[1]&&a.hack[1]!=o.hack[1])||y(o)||N(a,o)))if(o.shorthand&&E(o,a)){if(!o.important&&a.important)continue;if(!C([a],o.components))continue;if(!L(r.isFunction,a)&&F(o,r))continue;if(!A(o)){a.unused=!0;continue}s=w(o,a),i=k[a.name].canOverride,_(i.bind(null,r),a,s)&&(a.unused=!0)}else if(o.shorthand&&x(o,a)){if(!o.important&&a.important)continue;if(!C([a],o.components))continue;if(!L(r.isFunction,a)&&F(o,r))continue;for(d=(u=a.shorthand?a.components:[a]).length-1;0<=d;d--)if(l=u[d],c=w(o,l),i=k[l.name].canOverride,!_(i.bind(null,r),a,c))continue t;a.unused=!0}else if(t&&a.shorthand&&!o.shorthand&&E(a,o,!0)){if(o.important&&!a.important)continue;if(!o.important&&a.important){o.unused=!0;continue}if(R(e,p-1,a.name))continue;if(F(a,r))continue;if(!A(a))continue;if(s=w(a,o),_(i.bind(null,r),s,o)){var m=!n.properties.backgroundClipMerging&&-1<s.name.indexOf("background-clip")||!n.properties.backgroundOriginMerging&&-1<s.name.indexOf("background-origin")||!n.properties.backgroundSizeMerging&&-1<s.name.indexOf("background-size"),g=k[o.name].nonMergeableValue===o.value[0][1];if(m||g)continue;if(!n.properties.merging&&O(a,r))continue;if(s.value[0][1]!=o.value[0][1]&&(y(a)||y(o)))continue;if(M(a,o))continue;!a.multiplex&&o.multiplex&&B(a,T(o)),S(s,o),a.dirty=!0}}else if(t&&a.shorthand&&o.shorthand&&a.name==o.name){if(!a.multiplex&&o.multiplex)continue;if(!o.important&&a.important){o.unused=!0;continue e}if(o.important&&!a.important){a.unused=!0;continue}if(!A(o)){a.unused=!0;continue}for(d=a.components.length-1;0<=d;d--){var v=a.components[d],b=o.components[d];if(i=k[v.name].canOverride,!_(i.bind(null,r),v,b))continue e}D(a,o),a.dirty=!0}else if(t&&a.shorthand&&o.shorthand&&E(a,o)){if(!a.important&&o.important)continue;if(s=w(a,o),i=k[o.name].canOverride,!_(i.bind(null,r),s,o))continue;if(a.important&&!o.important){o.unused=!0;continue}if(1<k[o.name].restore(o,k).length)continue;S(s=w(a,o),o),o.dirty=!0}else if(a.name==o.name){if(f=!0,o.shorthand)for(d=o.components.length-1;0<=d&&f;d--)l=a.components[d],c=o.components[d],i=k[c.name].canOverride,f=f&&_(i.bind(null,r),l,c);else i=k[o.name].canOverride,f=_(i.bind(null,r),a,o);if(a.important&&!o.important&&f){o.unused=!0;continue}if(!a.important&&o.important&&f){a.unused=!0;continue}if(!f)continue;a.unused=!0}}}},{"../../../tokenizer/marker":83,"../../../tokenizer/token":84,"../../../writer/one-time":98,"../../restore-from-optimizing":56,"../clone":20,"../compactable":21,"../restore-with-components":48,"./every-values-pair":30,"./find-component-in":31,"./has-inherit":32,"./is-component-of":33,"./is-mergeable-shorthand":34,"./overrides-non-component-shorthand":38,"./vendor-prefixes":41}],38:[function(e,t,n){var r=e("../compactable");t.exports=function(e,t){return e.name in r&&"overridesShorthands"in r[e.name]&&-1<r[e.name].overridesShorthands.indexOf(t.name)}},{"../compactable":21}],39:[function(e,t,n){var l=e("../compactable"),c=e("../invalid-property-error");t.exports=function(e,t,n){for(var r,i,o,a=e.length-1;0<=a;a--){var s=e[a],u=l[s.name];if(u&&u.shorthand){s.shorthand=!0,s.dirty=!0;try{if(s.components=u.breakUp(s,l,t),u.shorthandComponents)for(i=0,o=s.components.length;i<o;i++)(r=s.components[i]).components=l[r.name].breakUp(r,l,t)}catch(e){if(!(e instanceof c))throw e;s.components=[],n.push(e.message)}0<s.components.length?s.multiplex=s.components[0].multiplex:s.unused=!0}}}},{"../compactable":21,"../invalid-property-error":23}],40:[function(e,t,n){var o=e("./vendor-prefixes").same;t.exports=function(e,t,n,r,i){return!(!o(t,n)||i&&e.isVariable(t)!==e.isVariable(n))}},{"./vendor-prefixes":41}],41:[function(e,t,n){var r=/(?:^|\W)(\-\w+\-)/g;function i(e){for(var t,n=[];null!==(t=r.exec(e));)-1==n.indexOf(t[0])&&n.push(t[0]);return n}t.exports={unique:i,same:function(e,t){return i(e).sort().join(",")==i(t).sort().join(",")}}},{}],42:[function(e,t,n){var _=e("./is-mergeable"),g=e("./properties/optimize"),v=e("../../utils/clone-array"),b=e("../../tokenizer/token"),w=e("../../writer/one-time").body,y=e("../../writer/one-time").rules;function E(e){for(var t=[],n=0;n<e.length;n++)t.push([e[n][1]]);return t}function A(e,t,n,r,i){for(var o=[],a=[],s=[],u=t.length-1;0<=u;u--)if(!n.filterOut(u,o)){var l=t[u].where,c=e[l],f=v(c[2]);o=o.concat(f),a.push(f),s.push(l)}g(o,!0,!1,i);for(var p=s.length,h=o.length-1,d=p-1;0<=d;)if((0===d||o[h]&&-1<a[d].indexOf(o[h]))&&-1<h)h--;else{var m=o.splice(h+1);n.callback(e[s[d]],m,p,d),d--}}t.exports=function(e,t){for(var n=t.options,r=n.compatibility.selectors.mergeablePseudoClasses,i=n.compatibility.selectors.mergeablePseudoElements,o=n.compatibility.selectors.multiplePseudoMerging,a={},s=[],u=e.length-1;0<=u;u--){var l=e[u];if(l[0]==b.RULE&&0!==l[2].length)for(var c=y(l[1]),f=1<l[1].length&&_(c,r,i,o),p=E(l[1]),h=f?[c].concat(p):[c],d=0,m=h.length;d<m;d++){var g=h[d];a[g]?s.push(g):a[g]=[],a[g].push({where:u,list:p,isPartial:f&&0<d,isComplex:f&&0===d})}}!function(e,t,n,r,i){function o(e,t){return c[e].isPartial&&0===t.length}function a(e,t,n,r){c[n-r-1].isPartial||(e[2]=t)}for(var s=0,u=t.length;s<u;s++){var l=t[s],c=n[l];A(e,c,{filterOut:o,callback:a},0,i)}}(e,s,a,0,t),function(e,t,n,r){var i=n.compatibility.selectors.mergeablePseudoClasses,o=n.compatibility.selectors.mergeablePseudoElements,a=n.compatibility.selectors.multiplePseudoMerging,s={};function u(e){return s.data[e].where<s.intoPosition}function l(e,t,n,r){0===r&&s.reducedBodies.push(t)}e:for(var c in t){var f=t[c];if(f[0].isComplex){var p=f[f.length-1].where,h=e[p],d=[],m=_(c,i,o,a)?f[0].list:[c];s.intoPosition=p,s.reducedBodies=d;for(var g=0,v=m.length;g<v;g++){var b=m[g],y=t[b];if(y.length<2)continue e;if(s.data=y,A(e,y,{filterOut:u,callback:l},0,r),w(d[d.length-1])!=w(d[0]))continue e}h[2]=d[0]}}}(e,a,n,t)}},{"../../tokenizer/token":84,"../../utils/clone-array":86,"../../writer/one-time":98,"./is-mergeable":24,"./properties/optimize":36}],43:[function(e,t,n){var a=e("../../tokenizer/token"),s=e("../../writer/one-time").all,u="@font-face";t.exports=function(e){var t,n,r,i,o=[];for(r=0,i=e.length;r<i;r++)(t=e[r])[0]!=a.AT_RULE_BLOCK&&t[1][0][1]!=u||(n=s([t]),-1<o.indexOf(n)?t[2]=[]:o.push(n))}},{"../../tokenizer/token":84,"../../writer/one-time":98}],44:[function(e,t,n){var s=e("../../tokenizer/token"),u=e("../../writer/one-time").all,l=e("../../writer/one-time").rules;t.exports=function(e){var t,n,r,i,o,a={};for(i=0,o=e.length;i<o;i++)(n=e[i])[0]==s.NESTED_BLOCK&&((t=a[r=l(n[1])+"%"+u(n[2])])&&(t[2]=[]),a[r]=n)}},{"../../tokenizer/token":84,"../../writer/one-time":98}],45:[function(e,t,n){var c=e("../../tokenizer/token"),f=e("../../writer/one-time").body,p=e("../../writer/one-time").rules;t.exports=function(e){for(var t,n,r,i,o={},a=[],s=0,u=e.length;s<u;s++)(n=e[s])[0]==c.RULE&&(o[t=p(n[1])]&&1==o[t].length?a.push(t):o[t]=o[t]||[],o[t].push(s));for(s=0,u=a.length;s<u;s++){i=[];for(var l=o[t=a[s]].length-1;0<=l;l--)n=e[o[t][l]],r=f(n[2]),-1<i.indexOf(r)?n[2]=[]:i.push(r)}}},{"../../tokenizer/token":84,"../../writer/one-time":98}],46:[function(e,t,n){var f=e("./properties/populate-components"),p=e("../wrap-for-optimizing").single,h=e("../restore-from-optimizing"),c=e("../../tokenizer/token"),d=/^(\-moz\-|\-o\-|\-webkit\-)?animation-name$/,m=/^(\-moz\-|\-o\-|\-webkit\-)?animation$/,r=/^@(\-moz\-|\-o\-|\-webkit\-)?keyframes /,i=/\s{0,31}!important$/,o=/^(['"]?)(.*)\1$/;function g(e){return e.replace(o,"$2").replace(i,"")}function a(e,t,n,r){var i,o,a,s,u,l={};for(s=0,u=e.length;s<u;s++)t(e[s],l);if(0!==Object.keys(l).length)for(i in function e(t,n,r,i){var o=n(r);var a,s;for(a=0,s=t.length;a<s;a++)switch(t[a][0]){case c.RULE:o(t[a],i);break;case c.NESTED_BLOCK:e(t[a][2],n,r,i)}}(e,n,l,r),l)for(s=0,u=(o=l[i]).length;s<u;s++)(a=o[s])[a[0]==c.AT_RULE?1:2]=[]}function s(e,t){var n;e[0]==c.AT_RULE_BLOCK&&0===e[1][0][1].indexOf("@counter-style")&&(t[n=e[1][0][1].split(" ")[1]]=t[n]||[],t[n].push(e))}function u(a){return function(e,t){var n,r,i,o;for(i=0,o=e[2].length;i<o;i++)"list-style"==(n=e[2][i])[1][1]&&(r=p(n),f([r],t.validator,t.warnings),r.components[0].value[0][1]in a&&delete a[n[2][1]],h([r])),"list-style-type"==n[1][1]&&n[2][1]in a&&delete a[n[2][1]]}}function l(e,t){var n,r,i,o;if(e[0]==c.AT_RULE_BLOCK&&"@font-face"==e[1][0][1])for(i=0,o=e[2].length;i<o;i++)if("font-family"==(n=e[2][i])[1][1]){t[r=g(n[2][1].toLowerCase())]=t[r]||[],t[r].push(e);break}}function v(c){return function(e,t){var n,r,i,o,a,s,u,l;for(a=0,s=e[2].length;a<s;a++){if("font"==(n=e[2][a])[1][1]){for(r=p(n),f([r],t.validator,t.warnings),u=0,l=(i=r.components[6]).value.length;u<l;u++)(o=g(i.value[u][1].toLowerCase()))in c&&delete c[o];h([r])}if("font-family"==n[1][1])for(u=2,l=n.length;u<l;u++)(o=g(n[u][1].toLowerCase()))in c&&delete c[o]}}}function b(e,t){var n;e[0]==c.NESTED_BLOCK&&r.test(e[1][0][1])&&(t[n=e[1][0][1].split(" ")[1]]=t[n]||[],t[n].push(e))}function y(l){return function(e,t){var n,r,i,o,a,s,u;for(o=0,a=e[2].length;o<a;o++){if(n=e[2][o],m.test(n[1][1])){for(r=p(n),f([r],t.validator,t.warnings),s=0,u=(i=r.components[7]).value.length;s<u;s++)i.value[s][1]in l&&delete l[i.value[s][1]];h([r])}if(d.test(n[1][1]))for(s=2,u=n.length;s<u;s++)n[s][1]in l&&delete l[n[s][1]]}}}function _(e,t){var n;e[0]==c.AT_RULE&&0===e[1].indexOf("@namespace")&&(t[n=e[1].split(" ")[1]]=t[n]||[],t[n].push(e))}function w(s){var u=new RegExp(Object.keys(s).join("\\||")+"\\|","g");return function(e){var t,n,r,i,o,a;for(r=0,i=e[1].length;r<i;r++)for(o=0,a=(t=e[1][r][1].match(u)).length;o<a;o++)(n=t[o].substring(0,t[o].length-1))in s&&delete s[n]}}t.exports=function(e,t){a(e,s,u,t),a(e,l,v,t),a(e,b,y,t),a(e,_,w,t)}},{"../../tokenizer/token":84,"../restore-from-optimizing":56,"../wrap-for-optimizing":58,"./properties/populate-components":39}],47:[function(e,t,n){var m=e("./rules-overlap"),g=e("./specificities-overlap"),v=/align\-items|box\-align|box\-pack|flex|justify/,b=/^border\-(top|right|bottom|left|color|style|width|radius)/;function o(e,t,n){var r,i,o=e[0],a=e[1],s=e[2],u=e[5],l=e[6],c=t[0],f=t[1],p=t[2],h=t[5],d=t[6];return!("font"==o&&"line-height"==c||"font"==c&&"line-height"==o)&&((!v.test(o)||!v.test(c))&&(!(s==p&&_(o)==_(c)&&y(o)^y(c))&&(("border"!=s||!b.test(p)||!("border"==o||o==p||a!=f&&w(o,c)))&&(("border"!=p||!b.test(s)||!("border"==c||c==s||a!=f&&w(o,c)))&&(("border"!=s||"border"!=p||o==c||!(E(o)&&A(c)||A(o)&&E(c)))&&(s!=p||(!(o!=c||s!=p||a!=f&&(i=f,!y(r=a)||!y(i)||r.split("-")[1]==i.split("-")[2]))||(o!=c&&s==p&&o!=s&&c!=p||(o!=c&&s==p&&a==f||(!(!d||!l||x(s)||x(p)||m(h,u,!1))||!g(u,h,n)))))))))))}function y(e){return/^\-(?:moz|webkit|ms|o)\-/.test(e)}function _(e){return e.replace(/^\-(?:moz|webkit|ms|o)\-/,"")}function w(e,t){return e.split("-").pop()==t.split("-").pop()}function E(e){return"border-top"==e||"border-right"==e||"border-bottom"==e||"border-left"==e}function A(e){return"border-color"==e||"border-style"==e||"border-width"==e}function x(e){return"font"==e||"line-height"==e||"list-style"==e}t.exports={canReorder:function(e,t,n){for(var r=t.length-1;0<=r;r--)for(var i=e.length-1;0<=i;i--)if(!o(e[i],t[r],n))return!1;return!0},canReorderSingle:o}},{"./rules-overlap":51,"./specificities-overlap":52}],48:[function(e,t,n){var r=e("./compactable");t.exports=function(e){var t=r[e.name];return t&&t.shorthand?t.restore(e,r):e.value}},{"./compactable":21}],49:[function(e,t,n){var g=e("./clone").shallow,v=e("../../tokenizer/token"),b=e("../../tokenizer/marker");function y(e){for(var t=0,n=e.length;t<n;t++){var r=e[t][1];if("inherit"!=r&&r!=b.COMMA&&r!=b.FORWARD_SLASH)return!1}return!0}function c(e){var t=e.components,n=t[0].value[0],r=t[1].value[0],i=t[2].value[0],o=t[3].value[0];return n[1]==r[1]&&n[1]==i[1]&&n[1]==o[1]?[n]:n[1]==i[1]&&r[1]==o[1]?[n,r]:r[1]==o[1]?[n,r,i]:[n,r,i,o]}function s(e,t,n){var r,i,o;for(i=0,o=e.length;i<o;i++)if((r=e[i]).name==n&&r.value[0][1]==t[n].defaultValue)return!0;return!1}t.exports={background:function(e,n,t){var r,i,o=e.components,a=[];function s(e){Array.prototype.unshift.apply(a,e.value)}function u(e){var t=n[e.name];return t.doubleValues&&1==t.defaultValue.length?e.value[0][1]==t.defaultValue[0]&&(!e.value[1]||e.value[1][1]==t.defaultValue[0]):t.doubleValues&&1!=t.defaultValue.length?e.value[0][1]==t.defaultValue[0]&&(e.value[1]?e.value[1][1]:e.value[0][1])==t.defaultValue[1]:e.value[0][1]==t.defaultValue}for(var l=o.length-1;0<=l;l--){var c=o[l],f=u(c);if("background-clip"==c.name){var p=o[l-1],h=u(p);i=!(r=c.value[0][1]==p.value[0][1])&&(h&&!f||!h&&!f||!h&&f&&c.value[0][1]!=p.value[0][1]),r?s(p):i&&(s(c),s(p)),l--}else if("background-size"==c.name){var d=o[l-1],m=u(d);i=!(r=!m&&f)&&(m&&!f||!m&&!f),r?s(d):i?(s(c),a.unshift([v.PROPERTY_VALUE,b.FORWARD_SLASH]),s(d)):1==d.value.length&&s(d),l--}else{if(f||n[c.name].multiplexLastOnly&&!t)continue;s(c)}}return 0===a.length&&1==e.value.length&&"0"==e.value[0][1]&&a.push(e.value[0]),0===a.length&&a.push([v.PROPERTY_VALUE,n[e.name].defaultValue]),y(a)?[a[0]]:a},borderRadius:function(e,t){if(e.multiplex){for(var n=g(e),r=g(e),i=0;i<4;i++){var o=e.components[i],a=g(e);a.value=[o.value[0]],n.components.push(a);var s=g(e);s.value=[o.value[1]||o.value[0]],r.components.push(s)}var u=c(n),l=c(r);return u.length!=l.length||u[0][1]!=l[0][1]||1<u.length&&u[1][1]!=l[1][1]||2<u.length&&u[2][1]!=l[2][1]||3<u.length&&u[3][1]!=l[3][1]?u.concat([[v.PROPERTY_VALUE,b.FORWARD_SLASH]]).concat(l):u}return c(e)},font:function(e,t){var n,r=e.components,i=[],o=0,a=0;if(0===e.value[0][1].indexOf(b.INTERNAL))return e.value[0][1]=e.value[0][1].substring(b.INTERNAL.length),e.value;for(;o<4;)(n=r[o]).value[0][1]!=t[n.name].defaultValue&&Array.prototype.push.apply(i,n.value),o++;for(Array.prototype.push.apply(i,r[o].value),r[++o].value[0][1]!=t[r[o].name].defaultValue&&(Array.prototype.push.apply(i,[[v.PROPERTY_VALUE,b.FORWARD_SLASH]]),Array.prototype.push.apply(i,r[o].value)),o++;r[o].value[a];)i.push(r[o].value[a]),r[o].value[a+1]&&i.push([v.PROPERTY_VALUE,b.COMMA]),a++;return y(i)?[i[0]]:i},fourValues:c,multiplex:function(m){return function(e,t){if(!e.multiplex)return m(e,t,!0);var n,r,i=0,o=[],a={};for(n=0,r=e.components[0].value.length;n<r;n++)e.components[0].value[n][1]==b.COMMA&&i++;for(n=0;n<=i;n++){for(var s=g(e),u=0,l=e.components.length;u<l;u++){var c=e.components[u],f=g(c);s.components.push(f);for(var p=a[f.name]||0,h=c.value.length;p<h;p++){if(c.value[p][1]==b.COMMA){a[f.name]=p+1;break}f.value.push(c.value[p])}}var d=m(s,t,n==i);Array.prototype.push.apply(o,d),n<i&&o.push([v.PROPERTY_VALUE,b.COMMA])}return o}},withoutDefaults:function(e,t){for(var n=e.components,r=[],i=n.length-1;0<=i;i--){var o=n[i],a=t[o.name];(o.value[0][1]!=a.defaultValue||"keepUnlessDefault"in a&&!s(n,t,a.keepUnlessDefault))&&r.unshift(o.value[0])}return 0===r.length&&r.push([v.PROPERTY_VALUE,t[e.name].defaultValue]),y(r)?[r[0]]:r}}},{"../../tokenizer/marker":83,"../../tokenizer/token":84,"./clone":20}],50:[function(e,t,n){var H=e("./reorderable").canReorderSingle,K=e("./extract-properties"),G=e("./is-mergeable"),Y=e("./tidy-rule-duplicates"),W=e("../../tokenizer/token"),Q=e("../../utils/clone-array"),Z=e("../../writer/one-time").body,J=e("../../writer/one-time").rules;function X(e,t){return t<e?1:-1}t.exports=function(g,e){var t,n,r,i=e.options,o=i.compatibility.selectors.mergeablePseudoClasses,a=i.compatibility.selectors.mergeablePseudoElements,s=i.compatibility.selectors.mergeLimit,u=i.compatibility.selectors.multiplePseudoMerging,l=e.cache.specificity,p={},c=[],h={},f=[],d=2,m="%";function v(e,t){var n=function(e){for(var t=[],n=0,r=e.length;n<r;n++)t.push(J(e[n][1]));return t.join(m)}(t);return h[n]=h[n]||[],h[n].push([e,t]),n}function b(e){var t,n=e.split(m),r=[];for(var i in h){var o=i.split(m);for(t=o.length-1;0<=t;t--)if(-1<n.indexOf(o[t])){r.push(i);break}}for(t=r.length-1;0<=t;t--)delete h[r[t]]}function y(e){for(var t=[],n=[],r=e.length-1;0<=r;r--)G(J(e[r][1]),o,a,u)&&(n.unshift(e[r]),0<e[r][2].length&&-1==t.indexOf(e[r])&&t.push(e[r]));return 1<t.length?n:[]}function _(e,t){var n=t[0],r=t[1],i=t[4],o=n.length+r.length+1,a=[],s=[],u=y(p[i]);if(!(u.length<2)){var l=E(u,o,1),c=l[0];if(0<c[1])return function(e,t,n){for(var r=n.length-1;0<=r;r--){var i=v(t,n[r][0]);if(1<h[i].length&&C(e,h[i])){b(i);break}}}(e,t,l);for(var f=c[0].length-1;0<=f;f--)a=c[0][f][1].concat(a),s.unshift(c[0][f]);A(e,[t],a=Y(a),s)}}function w(e,t){return e[1]>t[1]?1:e[1]==t[1]?0:-1}function E(e,t,n){return function e(t,n,r,i){var o=[[t,function(e,t,n){for(var r=0,i=e.length-1;0<=i;i--)r+=e[i][2].length>n?J(e[i][1]).length:-1;return r-(e.length-1)*t+1}(t,n,r)]];if(2<t.length&&0<i)for(var a=t.length-1;0<=a;a--){var s=Array.prototype.slice.call(t,0);s.splice(a,1),o=o.concat(e(s,n,r,i-1))}return o}(e,t,n,d-1).sort(w)}function A(e,t,n,r){var i,o,a,s,u=[];for(i=r.length-1;0<=i;i--){var l=r[i];for(o=l[2].length-1;0<=o;o--){var c=l[2][o];for(a=0,s=t.length;a<s;a++){var f=t[a],p=c[1][1],h=f[0],d=f[4];if(p==h&&Z([c])==d){l[2].splice(o,1);break}}}}for(i=t.length-1;0<=i;i--)u.unshift(t[i][3]);var m=[W.RULE,n,u];g.splice(e,0,m)}function x(e,t){var n=t[4],r=p[n];r&&1<r.length&&(function(e,t){var n,r,i=[],o=[],a=t[4],s=y(p[a]);if(!(s.length<2)){e:for(var u in p){var l=p[u];for(n=s.length-1;0<=n;n--)if(-1==l.indexOf(s[n]))continue e;i.push(u)}if(i.length<2)return!1;for(n=i.length-1;0<=n;n--)for(r=c.length-1;0<=r;r--)if(c[r][4]==i[n]){o.unshift([c[r],s]);break}return C(e,o)}}(e,t)||_(e,t))}function C(e,t){for(var n,r=0,i=[],o=t.length-1;0<=o;o--)r+=(n=t[o][0])[4].length+(0<o?1:0),i.push(n);var a=E(t[0][1],r,i.length)[0];if(0<a[1])return!1;var s=[],u=[];for(o=a[0].length-1;0<=o;o--)s=a[0][o][1].concat(s),u.unshift(a[0][o]);for(A(e,i,s=Y(s),u),o=i.length-1;0<=o;o--){n=i[o];var l=c.indexOf(n);delete p[n[4]],-1<l&&-1==f.indexOf(l)&&f.push(l)}return!0}function k(e,t,n){if(e[0]!=t[0])return!1;var r=t[4],i=p[r];return i&&-1<i.indexOf(n)}for(var O=g.length-1;0<=O;O--){var S,D,B,T,R,F=g[O];if(F[0]==W.RULE)S=!0;else{if(F[0]!=W.NESTED_BLOCK)continue;S=!1}var L=c.length,M=K(F);f=[];var U=[];for(D=M.length-1;0<=D;D--)for(B=D-1;0<=B;B--)if(!H(M[D],M[B],l)){U.push(D);break}for(D=M.length-1;0<=D;D--){var N=M[D],P=!1;for(B=0;B<L;B++){var q=c[B];-1==f.indexOf(B)&&(!H(N,q,l)&&!k(N,q,F)||p[q[4]]&&p[q[4]].length===s)&&(x(O+1,q),-1==f.indexOf(B)&&(f.push(B),delete p[q[4]])),P||(P=N[0]==q[0]&&N[1]==q[1])&&(R=B)}if(S&&!(-1<U.indexOf(D))){var z=N[4];P&&c[R][5].length+N[5].length>s?(x(O+1,c[R]),c.splice(R,1),p[z]=[F],P=!1):(p[z]=p[z]||[],p[z].push(F)),P?c[R]=(t=c[R],n=N,r=void 0,(r=Q(t))[5]=r[5].concat(n[5]),r):c.push(N)}}for(D=0,T=(f=f.sort(X)).length;D<T;D++){var I=f[D]-D;c.splice(I,1)}}for(var j=g[0]&&g[0][0]==W.AT_RULE&&0===g[0][1].indexOf("@charset")?1:0;j<g.length-1;j++){var V=g[j][0]===W.AT_RULE&&0===g[j][1].indexOf("@import"),$=g[j][0]===W.COMMENT;if(!V&&!$)break}for(O=0;O<c.length;O++)x(j,c[O])}},{"../../tokenizer/token":84,"../../utils/clone-array":86,"../../writer/one-time":98,"./extract-properties":22,"./is-mergeable":24,"./reorderable":47,"./tidy-rule-duplicates":54}],51:[function(e,t,n){var r=/\-\-.+$/;function l(e){return e.replace(r,"")}t.exports=function(e,t,n){var r,i,o,a,s,u;for(o=0,a=e.length;o<a;o++)for(r=e[o][1],s=0,u=t.length;s<u;s++){if(r==(i=t[s][1]))return!0;if(n&&l(r)==l(i))return!0}return!1}},{}],52:[function(e,t,n){var r=e("./specificity");function l(e,t){var n;return e in t||(t[e]=n=r(e)),n||t[e]}t.exports=function(e,t,n){var r,i,o,a,s,u;for(o=0,a=e.length;o<a;o++)for(r=l(e[o][1],n),s=0,u=t.length;s<u;s++)if(i=l(t[s][1],n),r[0]===i[0]&&r[1]===i[1]&&r[2]===i[2])return!0;return!1}},{"./specificity":53}],53:[function(e,t,n){var h=e("../../tokenizer/marker"),d={ADJACENT_SIBLING:"+",DESCENDANT:">",DOT:".",HASH:"#",NON_ADJACENT_SIBLING:"~",PSEUDO:":"},m=/[a-zA-Z]/,g=":not(",v=/[\s,\(>~\+]/;t.exports=function(e){var t,n,r,i,o,a,s,u,l=[0,0,0],c=0,f=!1,p=!1;for(a=0,s=e.length;a<s;a++){if(t=e[a],n);else if(t!=h.SINGLE_QUOTE||i||r)if(t==h.SINGLE_QUOTE&&!i&&r)r=!1;else if(t!=h.DOUBLE_QUOTE||i||r)if(t==h.DOUBLE_QUOTE&&i&&!r)i=!1;else{if(r||i)continue;0<c&&!f||(t==h.OPEN_ROUND_BRACKET?c++:t==h.CLOSE_ROUND_BRACKET&&1==c?(c--,f=!1):t==h.CLOSE_ROUND_BRACKET?c--:t==d.HASH?l[0]++:t==d.DOT||t==h.OPEN_SQUARE_BRACKET?l[1]++:t!=d.PSEUDO||p||(u=a,e.indexOf(g,u)===u)?t==d.PSEUDO?f=!0:(0===a||o)&&m.test(t)&&l[2]++:(l[1]++,f=!1))}else i=!0;else r=!0;n=t==h.BACK_SLASH,p=t==d.PSEUDO,o=!n&&v.test(t)}return l}},{"../../tokenizer/marker":83}],54:[function(e,t,n){function a(e,t){return e[1]>t[1]?1:-1}t.exports=function(e){for(var t=[],n=[],r=0,i=e.length;r<i;r++){var o=e[r];-1==n.indexOf(o[1])&&(n.push(o[1]),t.push(o))}return t.sort(a)}},{}],55:[function(e,t,n){t.exports=function(e){for(var t=e.length-1;0<=t;t--){var n=e[t];n.unused&&n.all.splice(n.position,1)}}},{}],56:[function(e,t,n){var u=e("./hack"),l=e("../tokenizer/marker"),c="*",f="\\",p="!important",h="_",d="!ie";t.exports=function(e,t){var n,r,i,o,a;for(o=e.length-1;0<=o;o--)(n=e[o]).unused||(n.dirty||n.important||n.hack)&&(t?(r=t(n),n.value=r):r=n.value,n.important&&((a=n).value[a.value.length-1][1]+=p),n.hack&&(s=n,s.hack[0]==u.UNDERSCORE?s.name=h+s.name:s.hack[0]==u.ASTERISK?s.name=c+s.name:s.hack[0]==u.BACKSLASH?s.value[s.value.length-1][1]+=f+s.hack[1]:s.hack[0]==u.BANG&&(s.value[s.value.length-1][1]+=l.SPACE+d)),"all"in n&&((i=n.all[n.position])[1][1]=n.name,i.splice(2,i.length-1),Array.prototype.push.apply(i,r)));var s}},{"../tokenizer/marker":83,"./hack":8}],57:[function(e,t,n){var r="var\\(\\-\\-[^\\)]+\\)",i=/^(cubic\-bezier|steps)\([^\)]+\)$/,o=new RegExp("^(\\-moz\\-|\\-webkit\\-)?calc\\([^\\)]+\\)$","i"),a=/[0-9]/,s=new RegExp("^(var\\(\\-\\-[^\\)]+\\)|[A-Z]+(\\-|[A-Z]|[0-9])+\\(.*?\\)|\\-(\\-|[A-Z]|[0-9])+\\(.*?\\))$","i"),u=/^hsl\(\s{0,31}[\-\.]?\d+\s{0,31},\s{0,31}\.?\d+%\s{0,31},\s{0,31}\.?\d+%\s{0,31}\)|hsla\(\s{0,31}[\-\.]?\d+\s{0,31},\s{0,31}\.?\d+%\s{0,31},\s{0,31}\.?\d+%\s{0,31},\s{0,31}\.?\d+\s{0,31}\)$/,l=/^(\-[a-z0-9_][a-z0-9\-_]*|[a-z][a-z0-9\-_]*)$/i,c=/^#[0-9a-f]{6}$/i,f=/^[a-z]+$/i,p=/^-([a-z0-9]|-)*$/i,h=/^rgb\(\s{0,31}[\d]{1,3}\s{0,31},\s{0,31}[\d]{1,3}\s{0,31},\s{0,31}[\d]{1,3}\s{0,31}\)|rgba\(\s{0,31}[\d]{1,3}\s{0,31},\s{0,31}[\d]{1,3}\s{0,31},\s{0,31}[\d]{1,3}\s{0,31},\s{0,31}[\.\d]+\s{0,31}\)$/,d=/^#[0-9a-f]{3}$/i,m=["ms","s"],g=/^url\([\s\S]+\)$/i,v=new RegExp("^"+r+"$","i"),b=".",y="-",_="+",w={"^":["inherit","initial","unset"],"*-style":["auto","dashed","dotted","double","groove","hidden","inset","none","outset","ridge","solid"],"animation-direction":["alternate","alternate-reverse","normal","reverse"],"animation-fill-mode":["backwards","both","forwards","none"],"animation-iteration-count":["infinite"],"animation-name":["none"],"animation-play-state":["paused","running"],"animation-timing-function":["ease","ease-in","ease-in-out","ease-out","linear","step-end","step-start"],"background-attachment":["fixed","inherit","local","scroll"],"background-clip":["border-box","content-box","inherit","padding-box","text"],"background-origin":["border-box","content-box","inherit","padding-box"],"background-position":["bottom","center","left","right","top"],"background-repeat":["no-repeat","inherit","repeat","repeat-x","repeat-y","round","space"],"background-size":["auto","cover","contain"],"border-collapse":["collapse","inherit","separate"],bottom:["auto"],clear:["both","left","none","right"],color:["transparent"],cursor:["all-scroll","auto","col-resize","crosshair","default","e-resize","help","move","n-resize","ne-resize","no-drop","not-allowed","nw-resize","pointer","progress","row-resize","s-resize","se-resize","sw-resize","text","vertical-text","w-resize","wait"],display:["block","inline","inline-block","inline-table","list-item","none","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group"],float:["left","none","right"],left:["auto"],font:["caption","icon","menu","message-box","small-caption","status-bar","unset"],"font-size":["large","larger","medium","small","smaller","x-large","x-small","xx-large","xx-small"],"font-stretch":["condensed","expanded","extra-condensed","extra-expanded","normal","semi-condensed","semi-expanded","ultra-condensed","ultra-expanded"],"font-style":["italic","normal","oblique"],"font-variant":["normal","small-caps"],"font-weight":["100","200","300","400","500","600","700","800","900","bold","bolder","lighter","normal"],"line-height":["normal"],"list-style-position":["inside","outside"],"list-style-type":["armenian","circle","decimal","decimal-leading-zero","disc","decimal|disc","georgian","lower-alpha","lower-greek","lower-latin","lower-roman","none","square","upper-alpha","upper-latin","upper-roman"],overflow:["auto","hidden","scroll","visible"],position:["absolute","fixed","relative","static"],right:["auto"],"text-align":["center","justify","left","left|right","right"],"text-decoration":["line-through","none","overline","underline"],"text-overflow":["clip","ellipsis"],top:["auto"],"vertical-align":["baseline","bottom","middle","sub","super","text-bottom","text-top","top"],visibility:["collapse","hidden","visible"],"white-space":["normal","nowrap","pre"],width:["inherit","initial","medium","thick","thin"]},E=["%","ch","cm","em","ex","in","mm","pc","pt","px","rem","vh","vm","vmax","vmin","vw"];function A(e){return"auto"!=e&&(B("color")(e)||(n=e,d.test(n)||c.test(n))||x(e)||(t=e,f.test(t)));var t,n}function x(e){return R(e)||O(e)}function C(e){return o.test(e)}function k(e){return s.test(e)}function O(e){return u.test(e)}function S(e){return l.test(e)}function D(e){return"none"==e||"inherit"==e||N(e)}function B(t){return function(e){return-1<w[t].indexOf(e)}}function T(e){return q(e)==e.length}function R(e){return h.test(e)}function F(e){return p.test(e)}function L(e){return T(e)&&0<=parseFloat(e)}function M(e){return v.test(e)}function U(e){var t=q(e);return t==e.length&&0===parseInt(e)||-1<t&&-1<m.indexOf(e.slice(t+1))}function N(e){return g.test(e)}function P(e){return"auto"==e||T(e)||B("^")(e)}function q(e){var t,n,r,i=!1,o=!1;for(n=0,r=e.length;n<r;n++)if(t=e[n],0!==n||t!=_&&t!=y){if(0<n&&o&&(t==_||t==y))return n-1;if(t!=b||i){if(t==b&&i)return n-1;if(a.test(t))continue;return n-1}i=!0}else o=!0;return n}t.exports=function(t){var n,e=E.slice(0).filter(function(e){return!(e in t.units)||!0===t.units[e]});return{colorOpacity:t.colors.opacity,isAnimationDirectionKeyword:B("animation-direction"),isAnimationFillModeKeyword:B("animation-fill-mode"),isAnimationIterationCountKeyword:B("animation-iteration-count"),isAnimationNameKeyword:B("animation-name"),isAnimationPlayStateKeyword:B("animation-play-state"),isAnimationTimingFunction:(n=B("animation-timing-function"),function(e){return n(e)||i.test(e)}),isBackgroundAttachmentKeyword:B("background-attachment"),isBackgroundClipKeyword:B("background-clip"),isBackgroundOriginKeyword:B("background-origin"),isBackgroundPositionKeyword:B("background-position"),isBackgroundRepeatKeyword:B("background-repeat"),isBackgroundSizeKeyword:B("background-size"),isColor:A,isColorFunction:x,isDynamicUnit:C,isFontKeyword:B("font"),isFontSizeKeyword:B("font-size"),isFontStretchKeyword:B("font-stretch"),isFontStyleKeyword:B("font-style"),isFontVariantKeyword:B("font-variant"),isFontWeightKeyword:B("font-weight"),isFunction:k,isGlobal:B("^"),isHslColor:O,isIdentifier:S,isImage:D,isKeyword:B,isLineHeightKeyword:B("line-height"),isListStylePositionKeyword:B("list-style-position"),isListStyleTypeKeyword:B("list-style-type"),isNumber:T,isPrefixed:F,isPositiveNumber:L,isRgbColor:R,isStyleKeyword:B("*-style"),isTime:U,isUnit:function(e,t){var n=q(t);return n==t.length&&0===parseInt(t)||-1<n&&-1<e.indexOf(t.slice(n+1))||"auto"==t||"inherit"==t}.bind(null,e),isUrl:N,isVariable:M,isWidth:B("width"),isZIndex:P}}},{}],58:[function(e,t,n){var d=e("./hack"),m=e("../tokenizer/marker"),g=e("../tokenizer/token"),v={ASTERISK:"*",BACKSLASH:"\\",BANG:"!",BANG_SUFFIX_PATTERN:/!\w+$/,IMPORTANT_TOKEN:"!important",IMPORTANT_TOKEN_PATTERN:new RegExp("!important$","i"),IMPORTANT_WORD:"important",IMPORTANT_WORD_PATTERN:new RegExp("important$","i"),SUFFIX_BANG_PATTERN:/!$/,UNDERSCORE:"_",VARIABLE_REFERENCE_PATTERN:/var\(--.+\)$/};function s(e){var t,n,r,i;for(t=2,n=e.length;t<n;t++)if((r=e[t])[0]==g.PROPERTY_VALUE&&(i=r[1],v.VARIABLE_REFERENCE_PATTERN.test(i)))return!0;return!1}function u(e){var t,n,r,i=function(e){if(e.length<3)return!1;var t=e[e.length-1];return!!v.IMPORTANT_TOKEN_PATTERN.test(t[1])||!(!v.IMPORTANT_WORD_PATTERN.test(t[1])||!v.SUFFIX_BANG_PATTERN.test(e[e.length-2][1]))}(e);i&&(n=(t=e)[t.length-1],r=t[t.length-2],v.IMPORTANT_TOKEN_PATTERN.test(n[1])?n[1]=n[1].replace(v.IMPORTANT_TOKEN_PATTERN,""):(n[1]=n[1].replace(v.IMPORTANT_WORD_PATTERN,""),r[1]=r[1].replace(v.SUFFIX_BANG_PATTERN,"")),0===n[1].length&&t.pop(),0===r[1].length&&t.pop());var o,a,s,u,l,c,f,p,h=(a=!1,s=(o=e)[1][1],u=o[o.length-1],s[0]==v.UNDERSCORE?a=[d.UNDERSCORE]:s[0]==v.ASTERISK?a=[d.ASTERISK]:u[1][0]!=v.BANG||u[1].match(v.IMPORTANT_WORD_PATTERN)?0<u[1].indexOf(v.BANG)&&!u[1].match(v.IMPORTANT_WORD_PATTERN)&&v.BANG_SUFFIX_PATTERN.test(u[1])?a=[d.BANG]:0<u[1].indexOf(v.BACKSLASH)&&u[1].indexOf(v.BACKSLASH)==u[1].length-v.BACKSLASH.length-1?a=[d.BACKSLASH,u[1].substring(u[1].indexOf(v.BACKSLASH)+1)]:0===u[1].indexOf(v.BACKSLASH)&&2==u[1].length&&(a=[d.BACKSLASH,u[1].substring(1)]):a=[d.BANG],a);return h[0]==d.ASTERISK||h[0]==d.UNDERSCORE?(p=e)[1][1]=p[1][1].substring(1):h[0]!=d.BACKSLASH&&h[0]!=d.BANG||(c=h,(f=(l=e)[l.length-1])[1]=f[1].substring(0,f[1].indexOf(c[0]==d.BACKSLASH?v.BACKSLASH:v.BANG)).trim(),0===f[1].length&&l.pop()),{block:e[2]&&e[2][0]==g.PROPERTY_BLOCK,components:[],dirty:!1,hack:h,important:i,name:e[1][1],multiplex:3<e.length&&function(e){var t,n,r;for(n=3,r=e.length;n<r;n++)if((t=e[n])[0]==g.PROPERTY_VALUE&&(t[1]==m.COMMA||t[1]==m.FORWARD_SLASH))return!0;return!1}(e),position:0,shorthand:!1,unused:!1,value:e.slice(2)}}t.exports={all:function(e,t,n){var r,i,o,a=[];for(o=e.length-1;0<=o;o--)(i=e[o])[0]==g.PROPERTY&&(!t&&s(i)||n&&-1<n.indexOf(i[1][1])||((r=u(i)).all=e,r.position=o,a.unshift(r)));return a},single:u}},{"../tokenizer/marker":83,"../tokenizer/token":84,"./hack":8}],59:[function(e,t,n){var r={"*":{colors:{opacity:!0},properties:{backgroundClipMerging:!0,backgroundOriginMerging:!0,backgroundSizeMerging:!0,colors:!0,ieBangHack:!1,ieFilters:!1,iePrefixHack:!1,ieSuffixHack:!1,merging:!0,shorterLengthUnits:!1,spaceAfterClosingBrace:!0,urlQuotes:!1,zeroUnits:!0},selectors:{adjacentSpace:!1,ie7Hack:!1,mergeablePseudoClasses:[":active",":after",":before",":empty",":checked",":disabled",":empty",":enabled",":first-child",":first-letter",":first-line",":first-of-type",":focus",":hover",":lang",":last-child",":last-of-type",":link",":not",":nth-child",":nth-last-child",":nth-last-of-type",":nth-of-type",":only-child",":only-of-type",":root",":target",":visited"],mergeablePseudoElements:["::after","::before","::first-letter","::first-line"],mergeLimit:8191,multiplePseudoMerging:!0},units:{ch:!0,in:!0,pc:!0,pt:!0,rem:!0,vh:!0,vm:!0,vmax:!0,vmin:!0,vw:!0}}};function i(e,t){for(var n in e){var r=e[n];"object"!=typeof r||Array.isArray(r)?t[n]=n in t?t[n]:r:t[n]=i(r,t[n]||{})}return t}r.ie11=r["*"],r.ie10=r["*"],r.ie9=i(r["*"],{properties:{ieFilters:!0,ieSuffixHack:!0}}),r.ie8=i(r.ie9,{colors:{opacity:!1},properties:{backgroundClipMerging:!1,backgroundOriginMerging:!1,backgroundSizeMerging:!1,iePrefixHack:!0,merging:!1},selectors:{mergeablePseudoClasses:[":after",":before",":first-child",":first-letter",":focus",":hover",":visited"],mergeablePseudoElements:[]},units:{ch:!1,rem:!1,vh:!1,vm:!1,vmax:!1,vmin:!1,vw:!1}}),r.ie7=i(r.ie8,{properties:{ieBangHack:!0},selectors:{ie7Hack:!0,mergeablePseudoClasses:[":first-child",":first-letter",":hover",":visited"]}}),t.exports=function(e){return i(r["*"],function(o){if("object"==typeof o)return o;if(!/[,\+\-]/.test(o))return r[o]||r["*"];var e=o.split(","),t=e[0]in r?r[e.shift()]:r["*"];return o={},e.forEach(function(e){var t="+"==e[0],n=e.substring(1).split("."),r=n[0],i=n[1];o[r]=o[r]||{},o[r][i]=t}),i(t,o)}(e))}},{}],60:[function(e,t,n){var r=e("../reader/load-remote-resource");t.exports=function(e){return e||r}},{"../reader/load-remote-resource":74}],61:[function(e,t,n){var r=e("../utils/override"),i={AfterAtRule:"afterAtRule",AfterBlockBegins:"afterBlockBegins",AfterBlockEnds:"afterBlockEnds",AfterComment:"afterComment",AfterProperty:"afterProperty",AfterRuleBegins:"afterRuleBegins",AfterRuleEnds:"afterRuleEnds",BeforeBlockEnds:"beforeBlockEnds",BetweenSelectors:"betweenSelectors"},o={Space:" ",Tab:"\t"},a={AroundSelectorRelation:"aroundSelectorRelation",BeforeBlockBegins:"beforeBlockBegins",BeforeValue:"beforeValue"},s={breaks:b(!1),indentBy:0,indentWith:o.Space,spaces:y(!1),wrapAt:!1},u="beautify",l="keep-breaks",c=";",f=":",p=",",h="=",d="false",m="off",g="true",v="on";function b(e){var t={};return t[i.AfterAtRule]=e,t[i.AfterBlockBegins]=e,t[i.AfterBlockEnds]=e,t[i.AfterComment]=e,t[i.AfterProperty]=e,t[i.AfterRuleBegins]=e,t[i.AfterRuleEnds]=e,t[i.BeforeBlockEnds]=e,t[i.BetweenSelectors]=e,t}function y(e){var t={};return t[a.AroundSelectorRelation]=e,t[a.BeforeBlockBegins]=e,t[a.BeforeValue]=e,t}function _(e){switch(e){case"space":return o.Space;case"tab":return o.Tab;default:return e}}t.exports={Breaks:i,Spaces:a,formatFrom:function(e){return void 0!==e&&!1!==e&&("object"==typeof e&&"indentBy"in e&&(e=r(e,{indentBy:parseInt(e.indentBy)})),"object"==typeof e&&"indentWith"in e&&(e=r(e,{indentWith:_(e.indentWith)})),"object"==typeof e?r(s,e):"object"==typeof e?r(s,e):"string"==typeof e&&e==u?r(s,{breaks:b(!0),indentBy:2,spaces:y(!0)}):"string"==typeof e&&e==l?r(s,{breaks:{afterAtRule:!0,afterBlockBegins:!0,afterBlockEnds:!0,afterComment:!0,afterRuleEnds:!0,beforeBlockEnds:!0}}):"string"==typeof e?r(s,e.split(c).reduce(function(e,t){var n=t.split(f),r=n[0],i=n[1];return"breaks"==r||"spaces"==r?e[r]=i.split(p).reduce(function(e,t){var n=t.split(h),r=n[0],i=n[1];return e[r]=function(e){switch(e){case d:case m:return!1;case g:case v:return!0;default:return e}}(i),e},{}):"indentBy"==r||"wrapAt"==r?e[r]=parseInt(i):"indentWith"==r&&(e[r]=_(i)),e},{})):s)}}},{"../utils/override":95}],62:[function(e,t,n){(function(n){var r=e("url"),i=e("../utils/override");t.exports=function(e){return i((t=n.env.HTTP_PROXY||n.env.http_proxy)?{hostname:r.parse(t).hostname,port:parseInt(r.parse(t).port)}:{},e||{});var t}}).call(this,e("_process"))},{"../utils/override":95,_process:113,url:162}],63:[function(e,t,n){var r=5e3;t.exports=function(e){return e||r}},{}],64:[function(e,t,n){t.exports=function(e){return Array.isArray(e)?e:!1===e?["none"]:void 0===e?["local"]:e.split(",")}},{}],65:[function(e,t,n){var o=e("./rounding-precision").roundingPrecisionFrom,a=e("../utils/override"),s={Zero:"0",One:"1",Two:"2"},u={};u[s.Zero]={},u[s.One]={cleanupCharsets:!0,normalizeUrls:!0,optimizeBackground:!0,optimizeBorderRadius:!0,optimizeFilter:!0,optimizeFontWeight:!0,optimizeOutline:!0,removeEmpty:!0,removeNegativePaddings:!0,removeQuotes:!0,removeWhitespace:!0,replaceMultipleZeros:!0,replaceTimeUnits:!0,replaceZeroUnits:!0,roundingPrecision:o(void 0),selectorsSortingMethod:"standard",specialComments:"all",tidyAtRules:!0,tidyBlockScopes:!0,tidySelectors:!0,transform:function(){}},u[s.Two]={mergeAdjacentRules:!0,mergeIntoShorthands:!0,mergeMedia:!0,mergeNonAdjacentRules:!0,mergeSemantically:!1,overrideProperties:!0,removeEmpty:!0,reduceNonAdjacentRules:!0,removeDuplicateFontRules:!0,removeDuplicateMediaBlocks:!0,removeDuplicateRules:!0,removeUnusedAtRules:!1,restructureRules:!1,skipProperties:[]};var l="*",c="all",r="false",i="off",f="true",p="on",h=",",d=";",m=":";function g(e,t){var n,r=a(u[e],{});for(n in r)"boolean"==typeof r[n]&&(r[n]=t);return r}function v(e){switch(e){case r:case i:return!1;case f:case p:return!0;default:return e}}function b(e,o){return e.split(d).reduce(function(e,t){var n=t.split(m),r=n[0],i=v(n[1]);return l==r||c==r?e=a(e,g(o,i)):e[r]=i,e},{})}t.exports={OptimizationLevel:s,optimizationLevelFrom:function(e){var t=a(u,{}),n=s.Zero,r=s.One,i=s.Two;return void 0===e?delete t[i]:("string"==typeof e&&(e=parseInt(e)),"number"==typeof e&&e===parseInt(i)||("number"==typeof e&&e===parseInt(r)?delete t[i]:"number"==typeof e&&e===parseInt(n)?(delete t[i],delete t[r]):("object"==typeof e&&(e=function(e){var t,n,r=a(e,{});for(n=0;n<=2;n++)(t=""+n)in r&&(void 0===r[t]||!1===r[t])&&delete r[t],t in r&&!0===r[t]&&(r[t]={}),t in r&&"string"==typeof r[t]&&(r[t]=b(r[t],t));return r}(e)),r in e&&"roundingPrecision"in e[r]&&(e[r].roundingPrecision=o(e[r].roundingPrecision)),i in e&&"skipProperties"in e[i]&&"string"==typeof e[i].skipProperties&&(e[i].skipProperties=e[i].skipProperties.split(h)),(n in e||r in e||i in e)&&(t[n]=a(t[n],e[n])),r in e&&l in e[r]&&(t[r]=a(t[r],g(r,v(e[r][l]))),delete e[r][l]),r in e&&c in e[r]&&(t[r]=a(t[r],g(r,v(e[r][c]))),delete e[r][c]),r in e||i in e?t[r]=a(t[r],e[r]):delete t[r],i in e&&l in e[i]&&(t[i]=a(t[i],g(i,v(e[i][l]))),delete e[i][l]),i in e&&c in e[i]&&(t[i]=a(t[i],g(i,v(e[i][c]))),delete e[i][c]),i in e?t[i]=a(t[i],e[i]):delete t[i]))),t}}},{"../utils/override":95,"./rounding-precision":68}],66:[function(e,r,t){(function(t){var n=e("path");r.exports=function(e){return e?n.resolve(e):t.cwd()}}).call(this,e("_process"))},{_process:113,path:111}],67:[function(e,t,n){t.exports=function(e){return void 0===e||!!e}},{}],68:[function(e,t,n){var o=e("../utils/override"),r=/^\d+$/,a=["*","all"],s="off",i=",",u="=";function l(e){return{ch:e,cm:e,em:e,ex:e,in:e,mm:e,pc:e,pt:e,px:e,q:e,rem:e,vh:e,vmax:e,vmin:e,vw:e,"%":e}}t.exports={DEFAULT:s,roundingPrecisionFrom:function(e){return o(l(s),(t=e,null==t?{}:"boolean"==typeof t?{}:"number"==typeof t&&-1==t?l(s):"number"==typeof t?l(t):"string"==typeof t&&r.test(t)?l(parseInt(t)):"string"==typeof t&&t==s?l(s):"object"==typeof t?t:t.split(i).reduce(function(e,t){var n=t.split(u),r=n[0],i=parseInt(n[1]);return(isNaN(i)||-1==i)&&(i=s),-1<a.indexOf(r)?e=o(e,l(i)):e[r]=i,e},{})));var t}}},{"../utils/override":95}],69:[function(e,t,n){(function(C,k){var O=e("fs"),S=e("path"),D=e("./is-allowed-resource"),B=e("./match-data-uri"),T=e("./rebase-local-map"),R=e("./rebase-remote-map"),F=e("../tokenizer/token"),L=e("../utils/has-protocol"),M=e("../utils/is-data-uri-resource"),U=e("../utils/is-remote-resource"),N=/^\/\*# sourceMappingURL=(\S+) \*\/$/;function P(e){var t,n,r,i=[],o=a(e.sourceTokens[0]);for(r=e.sourceTokens.length;e.index<r;e.index++)if((t=a(n=e.sourceTokens[e.index]))!=o&&(i=[],o=t),i.push(n),e.processedTokens.push(n),n[0]==F.COMMENT&&N.test(n[1]))return s(n[1],t,i,e);return e.callback(e.processedTokens)}function a(e){return(e[0]==F.AT_RULE||e[0]==F.COMMENT?e[2][0]:e[1][0][2][0])[2]}function s(e,t,n,r){return h=e,d=r,m=function(e){return e&&(r.inputSourceMapTracker.track(t,e),function e(t,n){var r;var i,o;for(i=0,o=t.length;i<o;i++)switch((r=t[i])[0]){case F.AT_RULE:q(r,n);break;case F.AT_RULE_BLOCK:e(r[1],n),e(r[2],n);break;case F.AT_RULE_BLOCK_SCOPE:q(r,n);break;case F.NESTED_BLOCK:e(r[1],n),e(r[2],n);break;case F.NESTED_BLOCK_SCOPE:case F.COMMENT:q(r,n);break;case F.PROPERTY:e(r,n);break;case F.PROPERTY_BLOCK:e(r[1],n);break;case F.PROPERTY_NAME:case F.PROPERTY_VALUE:q(r,n);break;case F.RULE:e(r[1],n),e(r[2],n);break;case F.RULE_SCOPE:q(r,n)}return t}(n,r.inputSourceMapTracker)),r.index++,P(r)},y=N.exec(h)[1],M(y)?(_=B(y),w=_[2]?_[2].split(/[=;]/)[2]:"us-ascii",E=_[3]?_[3].split(";")[1]:"utf8",A="utf8"==E?C.unescape(_[4]):_[4],(x=new k(A,E)).charset=w,v=JSON.parse(x.toString()),m(v)):U(y)?(c=function(e){var t;e?(t=JSON.parse(e),b=R(t,y),m(b)):m(null)},f=D(u=y,!0,(l=d).inline),p=!L(u),l.localOnly?(l.warnings.push('Cannot fetch remote resource from "'+u+'" as no callback given.'),c(null)):p?(l.warnings.push('Cannot fetch "'+u+'" as no protocol given.'),c(null)):f?void l.fetch(u,l.inlineRequest,l.inlineTimeout,function(e,t){if(e)return l.warnings.push('Missing source map at "'+u+'" - '+e),c(null);c(t)}):(l.warnings.push('Cannot fetch "'+u+'" as resource is not allowed.'),c(null))):(g=S.resolve(d.rebaseTo,y),s=D(i=g,!1,(o=d).inline),(v=O.existsSync(i)&&O.statSync(i).isFile()?s?(a=O.readFileSync(i,"utf-8"),JSON.parse(a)):(o.warnings.push('Cannot fetch "'+i+'" as resource is not allowed.'),null):(o.warnings.push('Ignoring local source map at "'+i+'" as resource is missing.'),null))?(b=T(v,g,d.rebaseTo),m(b)):m(null));var i,o,a,s,u,l,c,f,p,h,d,m,g,v,b,y,_,w,E,A,x}function q(e,t){var n,r,i=e[1],o=e[2],a=[];for(n=0,r=o.length;n<r;n++)a.push(t.originalPositionFor(o[n],i.length));e[2]=a}t.exports=function(e,t,n){var r={callback:n,fetch:t.options.fetch,index:0,inline:t.options.inline,inlineRequest:t.options.inlineRequest,inlineTimeout:t.options.inlineTimeout,inputSourceMapTracker:t.inputSourceMapTracker,localOnly:t.localOnly,processedTokens:[],rebaseTo:t.options.rebaseTo,sourceTokens:e,warnings:t.warnings};return t.options.sourceMap&&0<e.length?P(r):n(e)}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"../tokenizer/token":84,"../utils/has-protocol":88,"../utils/is-data-uri-resource":89,"../utils/is-remote-resource":93,"./is-allowed-resource":72,"./match-data-uri":75,"./rebase-local-map":78,"./rebase-remote-map":79,buffer:4,fs:3,path:111}],70:[function(e,t,n){var r=e("../utils/split"),i=/^\(/,o=/\)$/,a=/^@import/i,s=/['"]\s*/,u=/\s*['"]/,l=/^url\(\s*/i,c=/\s*\)/i;t.exports=function(e){var t,n;return t=e.replace(a,"").trim().replace(l,"(").replace(c,")").replace(s,"").replace(u,""),[(n=r(t," "))[0].replace(i,"").replace(o,""),n.slice(1).join(" ")]}},{"../utils/split":96}],71:[function(e,t,n){var r=e("source-map").SourceMapConsumer;t.exports=function(){var e={};return{all:function(e){return e}.bind(null,e),isTracking:function(e,t){return t in e}.bind(null,e),originalPositionFor:function e(t,n,r,i){for(var o,a,s=n[0],u=n[1],l=n[2],c={line:s,column:u+r};!o&&c.column>u;)c.column--,o=t[l].originalPositionFor(c);return!o||o.column<0?n:null===o.line&&1<s&&0<i?e(t,[s-1,u,l],r,i-1):null!==o.line?[(a=o).line,a.column,a.source]:n}.bind(null,e),track:function(e,t,n){e[t]=new r(n)}.bind(null,e)}}},{"source-map":155}],72:[function(e,t,n){var f=e("path"),p=e("url"),r=e("../utils/is-remote-resource"),h=e("../utils/has-protocol"),d="http:";function m(e){return r(e)||p.parse(d+"//"+e).host==e}t.exports=function e(t,n,r){var i,o,a,s,u,l,c=!n;if(0===r.length)return!1;for(n&&!h(t)&&(t=d+t),i=n?p.parse(t).host:t,o=n?t:f.resolve(t),l=0;l<r.length;l++)s="!"==(a=r[l])[0],u=a.substring(1),c=s&&n&&m(u)?c&&!e(t,!0,[u]):!s||n||m(u)?s?c&&!0:"all"==a||(n&&"local"==a?c||!1:!(!n||"remote"!=a)||!(!n&&"remote"==a)&&(!n&&"local"==a||a===i||a===t||!(!n||0!==o.indexOf(a))||!n&&0===o.indexOf(f.resolve(a))||n!=m(u)&&c&&!0)):c&&!e(t,!1,[u]);return c}},{"../utils/has-protocol":88,"../utils/is-remote-resource":93,path:111,url:162}],73:[function(e,t,n){var i=e("fs"),o=e("path"),a=e("./is-allowed-resource"),s=e("../utils/has-protocol"),r=e("../utils/is-remote-resource");function u(e){var t,n,r,i=Object.keys(e.uriToSource);for(r=i.length;e.index<r;e.index++){if(t=i[e.index],!(n=e.uriToSource[t]))return l(t,e);e.sourcesContent[t]=n}return e.callback()}function l(t,n){var e;return r(t)?function(n,r,i){var e=a(n,!0,r.inline),t=!s(n);{if(r.localOnly)return r.warnings.push('Cannot fetch remote resource from "'+n+'" as no callback given.'),i(null);if(t)return r.warnings.push('Cannot fetch "'+n+'" as no protocol given.'),i(null);if(!e)return r.warnings.push('Cannot fetch "'+n+'" as resource is not allowed.'),i(null)}r.fetch(n,r.inlineRequest,r.inlineTimeout,function(e,t){e&&r.warnings.push('Missing original source at "'+n+'" - '+e),i(t)})}(t,n,function(e){return n.index++,n.sourcesContent[t]=e,u(n)}):(e=function(e,t){var n=a(e,!1,t.inline),r=o.resolve(t.rebaseTo,e);{if(!i.existsSync(r)||!i.statSync(r).isFile())return t.warnings.push('Ignoring local source map at "'+r+'" as resource is missing.'),null;if(!n)return t.warnings.push('Cannot fetch "'+r+'" as resource is not allowed.'),null}return i.readFileSync(r,"utf8")}(t,n),n.index++,n.sourcesContent[t]=e,u(n))}t.exports=function(e,t){var n={callback:t,fetch:e.options.fetch,index:0,inline:e.options.inline,inlineRequest:e.options.inlineRequest,inlineTimeout:e.options.inlineTimeout,localOnly:e.localOnly,rebaseTo:e.options.rebaseTo,sourcesContent:e.sourcesContent,uriToSource:function(e){var t,n,r,i,o,a={};for(r in e)for(t=e[r],i=0,o=t.sources.length;i<o;i++)n=t.sources[i],r=t.sourceContentFor(n,!0),a[n]=r;return a}(e.inputSourceMapTracker.all()),warnings:e.warnings};return e.options.sourceMap&&e.options.sourceMapInlineSources?u(n):t()}},{"../utils/has-protocol":88,"../utils/is-remote-resource":93,"./is-allowed-resource":72,fs:3,path:111}],74:[function(e,t,n){var u=e("http"),l=e("https"),c=e("url"),f=e("../utils/is-http-resource"),p=e("../utils/is-https-resource"),h=e("../utils/override"),d="http:";t.exports=function n(r,i,o,a){var e,t=i.protocol||i.hostname,s=!1;e=h(c.parse(r),i||{}),void 0!==i.hostname&&(e.protocol=i.protocol||d,e.path=e.href),(t&&!p(t)||f(r)?u.get:l.get)(e,function(e){var t=[];if(!s){if(e.statusCode<200||399<e.statusCode)return a(e.statusCode,null);if(299<e.statusCode)return n(c.resolve(r,e.headers.location),i,o,a);e.on("data",function(e){t.push(e.toString())}),e.on("end",function(){var e=t.join("");a(null,e)})}}).on("error",function(e){s||(s=!0,a(e.message,null))}).on("timeout",function(){s||(s=!0,a("timeout",null))}).setTimeout(o)}},{"../utils/is-http-resource":90,"../utils/is-https-resource":91,"../utils/override":95,http:156,https:104,url:162}],75:[function(e,t,n){var r=/^data:(\S*?)?(;charset=[^;]+)?(;[^,]+?)?,(.+)/;t.exports=function(e){return r.exec(e)}},{}],76:[function(e,t,n){var r="/",i=/\\/g;t.exports=function(e){return e.replace(i,r)}},{}],77:[function(e,r,t){(function(c,f){var p=e("fs"),h=e("path"),d=e("./apply-source-maps"),m=e("./extract-import-url-and-media"),g=e("./is-allowed-resource"),v=e("./load-original-sources"),b=e("./normalize-path"),y=e("./rebase"),_=e("./rebase-local-map"),w=e("./rebase-remote-map"),t=e("./restore-import"),E=e("../tokenizer/tokenize"),A=e("../tokenizer/token"),n=e("../tokenizer/marker"),x=e("../utils/has-protocol"),C=e("../utils/is-import"),k=e("../utils/is-remote-resource"),O="uri:unknown";function S(e,t,n){return t.source=void 0,t.sourcesContent[void 0]=e,t.stats.originalSize+=e.length,R(e,t,{inline:t.options.inline},n)}function D(e,t,n){var r,i,o,a,s,u,l,c;for(r in e)o=e[r],i=B(r),n.push(T(i)),t.sourcesContent[i]=o.styles,o.sourceMap&&(a=o.sourceMap,s=i,u=t,void 0,l="string"==typeof a?JSON.parse(a):a,c=k(s)?w(l,s):_(l,s||O,u.options.rebaseTo),u.inputSourceMapTracker.track(s,c));return n}function B(e){var t,n,r=h.resolve("");return k(e)?e:(t=h.isAbsolute(e)?e:h.resolve(e),n=h.relative(r,t),b(n))}function T(e){return t("url("+e+")","")+n.SEMICOLON}function R(e,t,n,r){var i,o,a,s,u,l={};return t.source?k(t.source)?(l.fromBase=t.source,l.toBase=t.source):(h.isAbsolute(t.source)?l.fromBase=h.dirname(t.source):l.fromBase=h.dirname(h.resolve(t.source)),l.toBase=t.options.rebaseTo):(l.fromBase=h.resolve(""),l.toBase=t.options.rebaseTo),i=E(e,t),i=y(i,t.options.rebase,t.validator,l),1!=(u=n.inline).length||"none"!=u[0]?(o=i,s=n,F({afterContent:!1,callback:r,errors:(a=t).errors,externalContext:a,fetch:a.options.fetch,inlinedStylesheets:s.inlinedStylesheets||a.inlinedStylesheets,inline:s.inline,inlineRequest:a.options.inlineRequest,inlineTimeout:a.options.inlineTimeout,isRemote:s.isRemote||!1,localOnly:a.localOnly,outputTokens:[],rebaseTo:a.options.rebaseTo,sourceTokens:o,warnings:a.warnings})):r(i)}function F(e){var t,n,r,i,o,a,s,u,l;for(n=0,r=e.sourceTokens.length;n<r;n++){if((t=e.sourceTokens[n])[0]==A.AT_RULE&&C(t[1]))return e.sourceTokens.splice(0,n),o=e,void 0,a=m((i=t)[1]),s=a[0],u=a[1],l=i[2],k(s)?function(n,r,i,o){var e=g(n,!0,o.inline),a=n,t=n in o.externalContext.sourcesContent,s=!x(n);{if(-1<o.inlinedStylesheets.indexOf(n))return o.warnings.push('Ignoring remote @import of "'+n+'" as it has already been imported.'),o.sourceTokens=o.sourceTokens.slice(1),F(o);if(o.localOnly&&o.afterContent)return o.warnings.push('Ignoring remote @import of "'+n+'" as no callback given and after other content.'),o.sourceTokens=o.sourceTokens.slice(1),F(o);if(s)return o.warnings.push('Skipping remote @import of "'+n+'" as no protocol given.'),o.outputTokens=o.outputTokens.concat(o.sourceTokens.slice(0,1)),o.sourceTokens=o.sourceTokens.slice(1),F(o);if(o.localOnly&&!t)return o.warnings.push('Skipping remote @import of "'+n+'" as no callback given.'),o.outputTokens=o.outputTokens.concat(o.sourceTokens.slice(0,1)),o.sourceTokens=o.sourceTokens.slice(1),F(o);if(!e&&o.afterContent)return o.warnings.push('Ignoring remote @import of "'+n+'" as resource is not allowed and after other content.'),o.sourceTokens=o.sourceTokens.slice(1),F(o);if(!e)return o.warnings.push('Skipping remote @import of "'+n+'" as resource is not allowed.'),o.outputTokens=o.outputTokens.concat(o.sourceTokens.slice(0,1)),o.sourceTokens=o.sourceTokens.slice(1),F(o)}function u(e,t){return e?(o.errors.push('Broken @import declaration of "'+n+'" - '+e),f.nextTick(function(){o.outputTokens=o.outputTokens.concat(o.sourceTokens.slice(0,1)),o.sourceTokens=o.sourceTokens.slice(1),F(o)})):(o.inline=o.externalContext.options.inline,o.isRemote=!0,o.externalContext.source=a,o.externalContext.sourcesContent[n]=t,o.externalContext.stats.originalSize+=t.length,R(t,o.externalContext,o,function(e){return e=L(e,r,i),o.outputTokens=o.outputTokens.concat(e),o.sourceTokens=o.sourceTokens.slice(1),F(o)}))}return o.inlinedStylesheets.push(n),t?u(null,o.externalContext.sourcesContent[n]):o.fetch(n,o.inlineRequest,o.inlineTimeout,u)}(s,u,l,o):function(e,t,n,r){var i,o=h.resolve(""),a=h.isAbsolute(e)?h.resolve(o,"/"==e[0]?e.substring(1):e):h.resolve(r.rebaseTo,e),s=h.relative(o,a),u=g(e,!1,r.inline),l=b(s),c=l in r.externalContext.sourcesContent;if(-1<r.inlinedStylesheets.indexOf(a))r.warnings.push('Ignoring local @import of "'+e+'" as it has already been imported.');else if(c||p.existsSync(a)&&p.statSync(a).isFile())if(!u&&r.afterContent)r.warnings.push('Ignoring local @import of "'+e+'" as resource is not allowed and after other content.');else if(r.afterContent)r.warnings.push('Ignoring local @import of "'+e+'" as after other content.');else{if(u)return i=c?r.externalContext.sourcesContent[l]:p.readFileSync(a,"utf-8"),r.inlinedStylesheets.push(a),r.inline=r.externalContext.options.inline,r.externalContext.source=l,r.externalContext.sourcesContent[l]=i,r.externalContext.stats.originalSize+=i.length,R(i,r.externalContext,r,function(e){return e=L(e,t,n),r.outputTokens=r.outputTokens.concat(e),r.sourceTokens=r.sourceTokens.slice(1),F(r)});r.warnings.push('Skipping local @import of "'+e+'" as resource is not allowed.'),r.outputTokens=r.outputTokens.concat(r.sourceTokens.slice(0,1))}else r.errors.push('Ignoring local @import of "'+e+'" as resource is missing.');return r.sourceTokens=r.sourceTokens.slice(1),F(r)}(s,u,l,o);t[0]==A.AT_RULE||t[0]==A.COMMENT?e.outputTokens.push(t):(e.outputTokens.push(t),e.afterContent=!0)}return e.sourceTokens=[],e.callback(e.outputTokens)}function L(e,t,n){return t?[[A.NESTED_BLOCK,[[A.NESTED_BLOCK_SCOPE,"@media "+t,n]],e]]:e}r.exports=function(e,t,n){return r=e,i=t,o=function(e){return d(e,t,function(){return v(t,function(){return n(e)})})},"string"==typeof r?S(r,i,o):c.isBuffer(r)?S(r.toString(),i,o):Array.isArray(r)?(u=i,l=o,R(r.reduce(function(e,t){return"string"==typeof t?(n=t,(r=e).push(T(B(n))),r):D(t,u,e);var n,r},[]).join(""),u,{inline:["all"]},l)):"object"==typeof r?(s=o,R(D(r,a=i,[]).join(""),a,{inline:["all"]},s)):void 0;var r,i,o,a,s,u,l}}).call(this,{isBuffer:e("../../../is-buffer/index.js")},e("_process"))},{"../../../is-buffer/index.js":107,"../tokenizer/marker":83,"../tokenizer/token":84,"../tokenizer/tokenize":85,"../utils/has-protocol":88,"../utils/is-import":92,"../utils/is-remote-resource":93,"./apply-source-maps":69,"./extract-import-url-and-media":70,"./is-allowed-resource":72,"./load-original-sources":73,"./normalize-path":76,"./rebase":80,"./rebase-local-map":78,"./rebase-remote-map":79,"./restore-import":81,_process:113,fs:3,path:111}],78:[function(e,t,n){var a=e("path");t.exports=function(e,t,n){var r=a.resolve(""),i=a.resolve(r,t),o=a.dirname(i);return e.sources=e.sources.map(function(e){return a.relative(n,a.resolve(o,e))}),e}},{path:111}],79:[function(e,t,n){var r=e("path"),i=e("url");t.exports=function(e,t){var n=r.dirname(t);return e.sources=e.sources.map(function(e){return i.resolve(n,e)}),e}},{path:111,url:162}],80:[function(e,t,n){var a=e("./extract-import-url-and-media"),s=e("./restore-import"),c=e("./rewrite-url"),f=e("../tokenizer/token"),u=e("../utils/is-import"),p=/^\/\*# sourceMappingURL=(\S+) \*\/$/;function h(e,t,n){if(u(e[1])){var r=a(e[1]),i=c(r[0],n),o=r[1];e[1]=s(i,o)}}function d(e,t,n){var r,i,o,a,s,u;for(o=0,a=e.length;o<a;o++)for(s=2,u=(r=e[o]).length;s<u;s++)i=r[s][1],t.isUrl(i)&&(r[s][1]=c(i,n))}t.exports=function(e,t,n,r){return t?function e(t,n,r){var i,o,a,s,u,l;for(o=0,a=t.length;o<a;o++)switch((i=t[o])[0]){case f.AT_RULE:h(i,0,r);break;case f.AT_RULE_BLOCK:d(i[2],n,r);break;case f.COMMENT:s=i,u=r,l=void 0,(l=p.exec(s[1]))&&-1===l[1].indexOf("data:")&&(s[1]=s[1].replace(l[1],c(l[1],u,!0)));break;case f.NESTED_BLOCK:e(i[2],n,r);break;case f.RULE:d(i[2],n,r)}return t}(e,n,r):function(e,t,n){var r,i,o;for(i=0,o=e.length;i<o;i++)switch((r=e[i])[0]){case f.AT_RULE:h(r,0,n)}return e}(e,0,r)}},{"../tokenizer/token":84,"../utils/is-import":92,"./extract-import-url-and-media":70,"./restore-import":81,"./rewrite-url":82}],81:[function(e,t,n){t.exports=function(e,t){return("@import "+e+" "+t).trim()}},{}],82:[function(n,o,e){(function(e){var s=n("path"),u=n("url"),a='"',l="'",c="url(",f=")",p=/^["']/,h=/["']$/,r=/[\(\)]/,d=/^url\(/i,m=/\)$/,i=/\s/,t="win32"==e.platform;function g(e,t){return t?(n=e,s.isAbsolute(n)&&!v(t.toBase)?e:v(e)||"#"==e[0]||/^\w+:\w+/.test(e)?e:0===e.indexOf("data:")?"'"+e+"'":v(t.toBase)?u.resolve(t.toBase,e):t.absolute?b((o=e,a=t,s.resolve(s.join(a.fromBase||"",o)).replace(a.toBase,""))):b((r=e,i=t,s.relative(i.toBase,s.join(i.fromBase||"",r))))):e;var n,r,i,o,a}function v(e){return/^[^:]+?:\/\//.test(e)||0===e.indexOf("//")}function b(e){return t?e.replace(/\\/g,"/"):e}function y(e){return-1<e.indexOf(l)?a:-1<e.indexOf(a)?l:(n=e,i.test(n)||(t=e,r.test(t))?l:"");var t,n}o.exports=function(e,t,n){var r=e.replace(d,"").replace(m,"").trim(),i=r.replace(p,"").replace(h,"").trim(),o=r[0]==l||r[0]==a?r[0]:y(i);return n?g(i,t):c+o+g(i,t)+o+f}}).call(this,n("_process"))},{_process:113,path:111,url:162}],83:[function(e,t,n){t.exports={ASTERISK:"*",AT:"@",BACK_SLASH:"\\",CLOSE_CURLY_BRACKET:"}",CLOSE_ROUND_BRACKET:")",CLOSE_SQUARE_BRACKET:"]",COLON:":",COMMA:",",DOUBLE_QUOTE:'"',EXCLAMATION:"!",FORWARD_SLASH:"/",INTERNAL:"-clean-css-",NEW_LINE_NIX:"\n",NEW_LINE_WIN:"\r",OPEN_CURLY_BRACKET:"{",OPEN_ROUND_BRACKET:"(",OPEN_SQUARE_BRACKET:"[",SEMICOLON:";",SINGLE_QUOTE:"'",SPACE:" ",TAB:"\t",UNDERSCORE:"_"}},{}],84:[function(e,t,n){t.exports={AT_RULE:"at-rule",AT_RULE_BLOCK:"at-rule-block",AT_RULE_BLOCK_SCOPE:"at-rule-block-scope",COMMENT:"comment",NESTED_BLOCK:"nested-block",NESTED_BLOCK_SCOPE:"nested-block-scope",PROPERTY:"property",PROPERTY_BLOCK:"property-block",PROPERTY_NAME:"property-name",PROPERTY_VALUE:"property-value",RULE:"rule",RULE_SCOPE:"rule-scope"}},{}],85:[function(e,t,n){var M=e("./marker"),U=e("./token"),N=e("../utils/format-position"),P={BLOCK:"block",COMMENT:"comment",DOUBLE_QUOTE:"double-quote",RULE:"rule",SINGLE_QUOTE:"single-quote"},r=["@charset","@import"],i=["@-moz-document","@document","@-moz-keyframes","@-ms-keyframes","@-o-keyframes","@-webkit-keyframes","@keyframes","@media","@supports"],q=["@bottom-center","@bottom-left","@bottom-left-corner","@bottom-right","@bottom-right-corner","@left-bottom","@left-middle","@left-top","@right-bottom","@right-middle","@right-top","@top-center","@top-left","@top-left-corner","@top-right","@top-right-corner"],z=["@footnote","@footnotes","@left","@page-float-bottom","@page-float-top","@right"],I=/^\[\s{0,31}\d+\s{0,31}\]$/,o=/[\s\(]/,j=/[\s|\}]*$/;function V(e,t,n,r){var i=e[2];return n.inputSourceMapTracker.isTracking(i)?n.inputSourceMapTracker.originalPositionFor(e,t.length,r):e}function $(e){var t=e[0]==M.AT||e[0]==M.UNDERSCORE,n=e.join("").split(o)[0];return t&&-1<i.indexOf(n)?U.NESTED_BLOCK:t&&-1<r.indexOf(n)?U.AT_RULE:t?U.AT_RULE_BLOCK:U.RULE}function H(e){return e==U.RULE?U.RULE_SCOPE:e==U.NESTED_BLOCK?U.NESTED_BLOCK_SCOPE:e==U.AT_RULE_BLOCK?U.AT_RULE_BLOCK_SCOPE:void 0}t.exports=function(e,t){return function e(t,n,r,i){for(var o,a,s,u,l,c,f,p,h,d,m,g,v,b,y,_=[],w=_,E=[],A=[],x=r.level,C=[],k=[],O=[],S=0,D=!1,B=!1,T=!1,R=!1,F=r.position;F.index<t.length;F.index++){var L=t[F.index];if(c=x==P.SINGLE_QUOTE||x==P.DOUBLE_QUOTE,f=L==M.SPACE||L==M.TAB,p=L==M.NEW_LINE_NIX,h=L==M.NEW_LINE_NIX&&t[F.index-1]==M.NEW_LINE_WIN,d=!B&&x!=P.COMMENT&&!c&&L==M.ASTERISK&&t[F.index-1]==M.FORWARD_SLASH,g=!D&&!c&&L==M.FORWARD_SLASH&&t[F.index-1]==M.ASTERISK,m=x==P.COMMENT&&g,S=Math.max(S,0),u=0===k.length?[F.line,F.column,F.source]:u,v)k.push(L);else if(m||x!=P.COMMENT)if(d&&(x==P.BLOCK||x==P.RULE)&&1<k.length)A.push(u),k.push(L),O.push(k.slice(0,k.length-2)),k=k.slice(k.length-2),u=[F.line,F.column-1,F.source],C.push(x),x=P.COMMENT;else if(d)C.push(x),x=P.COMMENT,k.push(L);else if(m)l=k.join("").trim()+L,o=[U.COMMENT,l,[V(u,l,n)]],w.push(o),x=C.pop(),u=A.pop()||null,k=O.pop()||[];else if(g&&t[F.index+1]!=M.ASTERISK)n.warnings.push("Unexpected '*/' at "+N([F.line,F.column,F.source])+"."),k=[];else if(L!=M.SINGLE_QUOTE||c)if(L==M.SINGLE_QUOTE&&x==P.SINGLE_QUOTE)x=C.pop(),k.push(L);else if(L!=M.DOUBLE_QUOTE||c)if(L==M.DOUBLE_QUOTE&&x==P.DOUBLE_QUOTE)x=C.pop(),k.push(L);else if(!d&&!m&&L!=M.CLOSE_ROUND_BRACKET&&L!=M.OPEN_ROUND_BRACKET&&x!=P.COMMENT&&!c&&0<S)k.push(L);else if(L!=M.OPEN_ROUND_BRACKET||c||x==P.COMMENT||T)if(L!=M.CLOSE_ROUND_BRACKET||c||x==P.COMMENT||T)if(L==M.SEMICOLON&&x==P.BLOCK&&k[0]==M.AT)l=k.join("").trim(),_.push([U.AT_RULE,l,[V(u,l,n)]]),k=[];else if(L==M.COMMA&&x==P.BLOCK&&a)l=k.join("").trim(),a[1].push([H(a[0]),l,[V(u,l,n,a[1].length)]]),k=[];else if(L==M.COMMA&&x==P.BLOCK&&$(k)==U.AT_RULE)k.push(L);else if(L==M.COMMA&&x==P.BLOCK)a=[$(k),[],[]],l=k.join("").trim(),a[1].push([H(a[0]),l,[V(u,l,n,0)]]),k=[];else if(L==M.OPEN_CURLY_BRACKET&&x==P.BLOCK&&a&&a[0]==U.NESTED_BLOCK)l=k.join("").trim(),a[1].push([U.NESTED_BLOCK_SCOPE,l,[V(u,l,n)]]),_.push(a),C.push(x),F.column++,F.index++,k=[],a[2]=e(t,n,r,!0),a=null;else if(L==M.OPEN_CURLY_BRACKET&&x==P.BLOCK&&$(k)==U.NESTED_BLOCK)l=k.join("").trim(),(a=a||[U.NESTED_BLOCK,[],[]])[1].push([U.NESTED_BLOCK_SCOPE,l,[V(u,l,n)]]),_.push(a),C.push(x),F.column++,F.index++,k=[],a[2]=e(t,n,r,!0),a=null;else if(L==M.OPEN_CURLY_BRACKET&&x==P.BLOCK)l=k.join("").trim(),(a=a||[$(k),[],[]])[1].push([H(a[0]),l,[V(u,l,n,a[1].length)]]),w=a[2],_.push(a),C.push(x),x=P.RULE,k=[];else if(L==M.OPEN_CURLY_BRACKET&&x==P.RULE&&T)E.push(a),a=[U.PROPERTY_BLOCK,[]],s.push(a),w=a[1],C.push(x),x=P.RULE,T=!1;else if(L==M.OPEN_CURLY_BRACKET&&x==P.RULE&&(y=k.join("").trim(),-1<q.indexOf(y)||-1<z.indexOf(y)))l=k.join("").trim(),E.push(a),(a=[U.AT_RULE_BLOCK,[],[]])[1].push([U.AT_RULE_BLOCK_SCOPE,l,[V(u,l,n)]]),w.push(a),w=a[2],C.push(x),x=P.RULE,k=[];else if(L!=M.COLON||x!=P.RULE||T)if(L==M.SEMICOLON&&x==P.RULE&&s&&0<E.length&&0<k.length&&k[0]==M.AT)l=k.join("").trim(),a[1].push([U.AT_RULE,l,[V(u,l,n)]]),k=[];else if(L==M.SEMICOLON&&x==P.RULE&&s&&0<k.length)l=k.join("").trim(),s.push([U.PROPERTY_VALUE,l,[V(u,l,n)]]),s=null,T=!1,k=[];else if(L==M.SEMICOLON&&x==P.RULE&&s&&0===k.length)s=null,T=!1;else if(L==M.SEMICOLON&&x==P.RULE&&0<k.length&&k[0]==M.AT)l=k.join(""),w.push([U.AT_RULE,l,[V(u,l,n)]]),T=!1,k=[];else if(L==M.SEMICOLON&&x==P.RULE&&R)R=!1,k=[];else if(L==M.SEMICOLON&&x==P.RULE&&0===k.length);else if(L==M.CLOSE_CURLY_BRACKET&&x==P.RULE&&s&&T&&0<k.length&&0<E.length)l=k.join(""),s.push([U.PROPERTY_VALUE,l,[V(u,l,n)]]),s=null,a=E.pop(),w=a[2],x=C.pop(),T=!1,k=[];else if(L==M.CLOSE_CURLY_BRACKET&&x==P.RULE&&s&&0<k.length&&k[0]==M.AT&&0<E.length)l=k.join(""),a[1].push([U.AT_RULE,l,[V(u,l,n)]]),s=null,a=E.pop(),w=a[2],x=C.pop(),T=!1,k=[];else if(L==M.CLOSE_CURLY_BRACKET&&x==P.RULE&&s&&0<E.length)s=null,a=E.pop(),w=a[2],x=C.pop(),T=!1;else if(L==M.CLOSE_CURLY_BRACKET&&x==P.RULE&&s&&0<k.length)l=k.join(""),s.push([U.PROPERTY_VALUE,l,[V(u,l,n)]]),s=null,a=E.pop(),w=_,x=C.pop(),T=!1,k=[];else if(L==M.CLOSE_CURLY_BRACKET&&x==P.RULE&&0<k.length&&k[0]==M.AT)a=s=null,l=k.join("").trim(),w.push([U.AT_RULE,l,[V(u,l,n)]]),w=_,x=C.pop(),T=!1,k=[];else if(L==M.CLOSE_CURLY_BRACKET&&x==P.RULE&&C[C.length-1]==P.RULE)s=null,a=E.pop(),w=a[2],x=C.pop(),T=!1,R=!0,k=[];else if(L==M.CLOSE_CURLY_BRACKET&&x==P.RULE)a=s=null,w=_,x=C.pop(),T=!1;else if(L==M.CLOSE_CURLY_BRACKET&&x==P.BLOCK&&!i&&F.index<=t.length-1)n.warnings.push("Unexpected '}' at "+N([F.line,F.column,F.source])+"."),k.push(L);else{if(L==M.CLOSE_CURLY_BRACKET&&x==P.BLOCK)break;L==M.OPEN_ROUND_BRACKET&&x==P.RULE&&T?(k.push(L),S++):L==M.CLOSE_ROUND_BRACKET&&x==P.RULE&&T&&1==S?(k.push(L),l=k.join("").trim(),s.push([U.PROPERTY_VALUE,l,[V(u,l,n)]]),S--,k=[]):L==M.CLOSE_ROUND_BRACKET&&x==P.RULE&&T?(k.push(L),S--):L==M.FORWARD_SLASH&&t[F.index+1]!=M.ASTERISK&&x==P.RULE&&T&&0<k.length?(l=k.join("").trim(),s.push([U.PROPERTY_VALUE,l,[V(u,l,n)]]),s.push([U.PROPERTY_VALUE,L,[[F.line,F.column,F.source]]]),k=[]):L==M.FORWARD_SLASH&&t[F.index+1]!=M.ASTERISK&&x==P.RULE&&T?(s.push([U.PROPERTY_VALUE,L,[[F.line,F.column,F.source]]]),k=[]):L==M.COMMA&&x==P.RULE&&T&&0<k.length?(l=k.join("").trim(),s.push([U.PROPERTY_VALUE,l,[V(u,l,n)]]),s.push([U.PROPERTY_VALUE,L,[[F.line,F.column,F.source]]]),k=[]):L==M.COMMA&&x==P.RULE&&T?(s.push([U.PROPERTY_VALUE,L,[[F.line,F.column,F.source]]]),k=[]):L==M.CLOSE_SQUARE_BRACKET&&s&&1<s.length&&0<k.length&&(b=k,I.test(b.join("")+M.CLOSE_SQUARE_BRACKET))?(k.push(L),l=k.join("").trim(),s[s.length-1][1]+=l,k=[]):(f||p&&!h)&&x==P.RULE&&T&&s&&0<k.length?(l=k.join("").trim(),s.push([U.PROPERTY_VALUE,l,[V(u,l,n)]]),k=[]):h&&x==P.RULE&&T&&s&&1<k.length?(l=k.join("").trim(),s.push([U.PROPERTY_VALUE,l,[V(u,l,n)]]),k=[]):h&&x==P.RULE&&T?k=[]:1==k.length&&h?k.pop():(0<k.length||!f&&!p&&!h)&&k.push(L)}else l=k.join("").trim(),s=[U.PROPERTY,[U.PROPERTY_NAME,l,[V(u,l,n)]]],w.push(s),T=!0,k=[];else k.push(L),S--;else k.push(L),S++;else C.push(x),x=P.DOUBLE_QUOTE,k.push(L);else C.push(x),x=P.SINGLE_QUOTE,k.push(L);else k.push(L);v=!v&&L==M.BACK_SLASH,D=d,B=m,F.line=h||p?F.line+1:F.line,F.column=h||p?0:F.column+1}return T&&n.warnings.push("Missing '}' at "+N([F.line,F.column,F.source])+"."),T&&0<k.length&&(l=k.join("").replace(j,""),s.push([U.PROPERTY_VALUE,l,[V(u,l,n)]]),k=[]),0<k.length&&n.warnings.push("Invalid character(s) '"+k.join("")+"' at "+N(u)+". Ignoring."),_}(e,t,{level:P.BLOCK,position:{source:t.source||void 0,line:1,column:0,index:0}},!1)}},{"../utils/format-position":87,"./marker":83,"./token":84}],86:[function(e,t,n){t.exports=function e(t){for(var n=t.slice(0),r=0,i=n.length;r<i;r++)Array.isArray(n[r])&&(n[r]=e(n[r]));return n}},{}],87:[function(e,t,n){t.exports=function(e){var t=e[0],n=e[1],r=e[2];return r?r+":"+t+":"+n:t+":"+n}},{}],88:[function(e,t,n){var r=/^\/\//;t.exports=function(e){return!r.test(e)}},{}],89:[function(e,t,n){var r=/^data:(\S*?)?(;charset=[^;]+)?(;[^,]+?)?,(.+)/;t.exports=function(e){return r.test(e)}},{}],90:[function(e,t,n){var r=/^http:\/\//;t.exports=function(e){return r.test(e)}},{}],91:[function(e,t,n){var r=/^https:\/\//;t.exports=function(e){return r.test(e)}},{}],92:[function(e,t,n){var r=/^@import/i;t.exports=function(e){return r.test(e)}},{}],93:[function(e,t,n){var r=/^(\w+:\/\/|\/\/)/;t.exports=function(e){return r.test(e)}},{}],94:[function(e,t,n){var u=/([0-9]+)/;function l(e){return""+parseInt(e)==e?parseInt(e):e}t.exports=function(e,t){var n,r,i,o,a=(""+e).split(u).map(l),s=(""+t).split(u).map(l);for(i=0,o=Math.min(a.length,s.length);i<o;i++)if((n=a[i])!=(r=s[i]))return r<n?1:-1;return a.length>s.length?1:a.length==s.length?0:-1}},{}],95:[function(e,t,n){t.exports=function e(t,n){var r,i,o,a={};for(r in t)o=t[r],Array.isArray(o)?a[r]=o.slice(0):a[r]="object"==typeof o&&null!==o?e(o,{}):o;for(i in n)o=n[i],i in a&&Array.isArray(o)?a[i]=o.slice(0):a[i]=i in a&&"object"==typeof o&&null!==o?e(a[i],o):o;return a}},{}],96:[function(e,t,n){var c=e("../tokenizer/marker");t.exports=function(e,t){var n,r=c.OPEN_ROUND_BRACKET,i=c.CLOSE_ROUND_BRACKET,o=0,a=0,s=0,u=e.length,l=[];if(-1==e.indexOf(t))return[e];if(-1==e.indexOf(r))return e.split(t);for(;a<u;)e[a]==r?o++:e[a]==i&&o--,0===o&&0<a&&a+1<u&&e[a]==t&&(l.push(e.substring(s,a)),s=a+1),a++;return s<a+1&&((n=e.substring(s))[n.length-1]==t&&(n=n.substring(0,n.length-1)),l.push(n)),l}},{"../tokenizer/marker":83}],97:[function(e,t,n){var u=e("os").EOL,c="",f=e("../options/format").Breaks,p=e("../options/format").Spaces,h=e("../tokenizer/marker"),d=e("../tokenizer/token");function a(e,t,n){return!e.spaceAfterClosingBrace&&("background"==(l=t)[1][1]||"transform"==l[1][1]||"src"==l[1][1])&&(s=t)[u=n][1][s[u][1].length-1]==h.CLOSE_ROUND_BRACKET||(o=t)[(a=n)+1]&&o[a+1][1]==h.FORWARD_SLASH||t[n][1]==h.FORWARD_SLASH||(r=t)[(i=n)+1]&&r[i+1][1]==h.COMMA||t[n][1]==h.COMMA;var r,i,o,a,s,u,l}function m(e,t){for(var n,r=e.store,i=0,o=t.length;i<o;i++)r(e,t[i]),i<o-1&&r(e,(n=e).format?h.COMMA+(l(n,f.BetweenSelectors)?u:c)+n.indentWith:h.COMMA)}function g(e,t){for(var n=function(e){for(var t=e.length-1;0<=t&&e[t][0]==d.COMMENT;t--);return t}(t),r=0,i=t.length;r<i;r++)o(e,t,r,n)}function o(e,t,n,r){var i,o=e.store,a=t[n],s=a[2][0]==d.PROPERTY_BLOCK,u=n<r||s,l=n===r;switch(a[0]){case d.AT_RULE:o(e,a),o(e,w(e,f.AfterProperty,!1));break;case d.AT_RULE_BLOCK:m(e,a[1]),o(e,y(e,f.AfterRuleBegins,!0)),g(e,a[2]),o(e,_(e,f.AfterRuleEnds,!1,l));break;case d.COMMENT:o(e,a);break;case d.PROPERTY:o(e,a[1]),o(e,(i=e).format?h.COLON+(b(i,p.BeforeValue)?h.SPACE:c):h.COLON),v(e,a),o(e,u?w(e,f.AfterProperty,l):c)}}function v(e,t){var n,r,i,o=e.store;if(t[2][0]==d.PROPERTY_BLOCK)o(e,y(e,f.AfterBlockBegins,!1)),g(e,t[2][1]),o(e,_(e,f.AfterBlockEnds,!1,!0));else for(n=2,r=t.length;n<r;n++)o(e,t[n]),n<r-1&&("filter"==(i=t)[1][1]||"-ms-filter"==i[1][1]||!a(e,t,n))&&o(e,h.SPACE)}function l(e,t){return e.format&&e.format.breaks[t]}function b(e,t){return e.format&&e.format.spaces[t]}function y(e,t,n){return e.format?(e.indentBy+=e.format.indentBy,e.indentWith=e.format.indentWith.repeat(e.indentBy),(n&&b(e,p.BeforeBlockBegins)?h.SPACE:c)+h.OPEN_CURLY_BRACKET+(l(e,t)?u:c)+e.indentWith):h.OPEN_CURLY_BRACKET}function _(e,t,n,r){return e.format?(e.indentBy-=e.format.indentBy,e.indentWith=e.format.indentWith.repeat(e.indentBy),(l(e,f.AfterProperty)||n&&l(e,f.BeforeBlockEnds)?u:c)+e.indentWith+h.CLOSE_CURLY_BRACKET+(r?c:(l(e,t)?u:c)+e.indentWith)):h.CLOSE_CURLY_BRACKET}function w(e,t,n){return e.format?h.SEMICOLON+(n||!l(e,t)?c:u+e.indentWith):h.SEMICOLON}t.exports={all:function e(t,n){var r,i,o,a,s=t.store;for(o=0,a=n.length;o<a;o++)switch(i=o==a-1,(r=n[o])[0]){case d.AT_RULE:s(t,r),s(t,w(t,f.AfterAtRule,i));break;case d.AT_RULE_BLOCK:m(t,r[1]),s(t,y(t,f.AfterRuleBegins,!0)),g(t,r[2]),s(t,_(t,f.AfterRuleEnds,!1,i));break;case d.NESTED_BLOCK:m(t,r[1]),s(t,y(t,f.AfterBlockBegins,!0)),e(t,r[2]),s(t,_(t,f.AfterBlockEnds,!0,i));break;case d.COMMENT:s(t,r),s(t,l(t,f.AfterComment)?u:c);break;case d.RULE:m(t,r[1]),s(t,y(t,f.AfterRuleBegins,!0)),g(t,r[2]),s(t,_(t,f.AfterRuleEnds,!1,i))}},body:g,property:o,rules:m,value:v}},{"../options/format":61,"../tokenizer/marker":83,"../tokenizer/token":84,os:110}],98:[function(e,t,n){var r=e("./helpers");function i(e,t){e.output.push("string"==typeof t?t:t[1])}function o(){return{output:[],store:i}}t.exports={all:function(e){var t=o();return r.all(t,e),t.output.join("")},body:function(e){var t=o();return r.body(t,e),t.output.join("")},property:function(e,t){var n=o();return r.property(n,e,t,!0),n.output.join("")},rules:function(e){var t=o();return r.rules(t,e),t.output.join("")},value:function(e){var t=o();return r.value(t,e),t.output.join("")}}},{"./helpers":97}],99:[function(e,t,n){var r=e("./helpers").all,i=e("os").EOL;function o(e,t){var n="string"==typeof t?t:t[1];(0,e.wrap)(e,n),s(e,n),e.output.push(n)}function a(e,t){e.column+t.length>e.format.wrapAt&&(s(e,i),e.output.push(i))}function s(e,t){var n=t.split("\n");e.line+=n.length-1,e.column=1<n.length?0:e.column+n.pop().length}t.exports=function(e,t){var n={column:0,format:t.options.format,indentBy:0,indentWith:"",line:1,output:[],spaceAfterClosingBrace:t.options.compatibility.properties.spaceAfterClosingBrace,store:o,wrap:t.options.format.wrapAt?a:function(){}};return r(n,e),{styles:n.output.join("")}}},{"./helpers":97,os:110}],100:[function(t,d,e){(function(e){var r=t("source-map").SourceMapGenerator,i=t("./helpers").all,n=t("os").EOL,s=t("../utils/is-remote-resource"),u="win32"==e.platform,l=/\//g,c="$stdin",f="\\";function o(e,t){var n="string"==typeof t,r=n?t:t[1],i=n?null:t[2];(0,e.wrap)(e,r),p(e,r,i),e.output.push(r)}function a(e,t){e.column+t.length>e.format.wrapAt&&(p(e,n,!1),e.output.push(n))}function p(e,t,n){var r=t.split("\n");n&&function(e,t){for(var n=0,r=t.length;n<r;n++)h(e,t[n])}(e,n),e.line+=r.length-1,e.column=1<r.length?0:e.column+r.pop().length}function h(e,t){var n=t[0],r=t[1],i=t[2],o=i,a=o||c;u&&o&&!s(o)&&(a=o.replace(l,f)),e.outputMap.addMapping({generated:{line:e.line,column:e.column},source:a,original:{line:n,column:r}}),e.inlineSources&&i in e.sourcesContent&&e.outputMap.setSourceContent(a,e.sourcesContent[i])}d.exports=function(e,t){var n={column:0,format:t.options.format,indentBy:0,indentWith:"",inlineSources:t.options.sourceMapInlineSources,line:1,output:[],outputMap:new r,sourcesContent:t.sourcesContent,spaceAfterClosingBrace:t.options.compatibility.properties.spaceAfterClosingBrace,store:o,wrap:t.options.format.wrapAt?a:function(){}};return i(n,e),{sourceMap:n.outputMap,styles:n.output.join("")}}}).call(this,t("_process"))},{"../utils/is-remote-resource":93,"./helpers":97,_process:113,os:110,"source-map":155}],101:[function(e,t,n){(function(e){function t(e){return Object.prototype.toString.call(e)}n.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===t(e)},n.isBoolean=function(e){return"boolean"==typeof e},n.isNull=function(e){return null===e},n.isNullOrUndefined=function(e){return null==e},n.isNumber=function(e){return"number"==typeof e},n.isString=function(e){return"string"==typeof e},n.isSymbol=function(e){return"symbol"==typeof e},n.isUndefined=function(e){return void 0===e},n.isRegExp=function(e){return"[object RegExp]"===t(e)},n.isObject=function(e){return"object"==typeof e&&null!==e},n.isDate=function(e){return"[object Date]"===t(e)},n.isError=function(e){return"[object Error]"===t(e)||e instanceof Error},n.isFunction=function(e){return"function"==typeof e},n.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},n.isBuffer=e.isBuffer}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":107}],102:[function(e,t,n){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function u(e){return"function"==typeof e}function l(e){return"object"==typeof e&&null!==e}function c(e){return void 0===e}((t.exports=r).EventEmitter=r).prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,n,r,i,o,a;if(this._events||(this._events={}),"error"===e&&(!this._events.error||l(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var s=new Error('Uncaught, unspecified "error" event. ('+t+")");throw s.context=t,s}if(c(n=this._events[e]))return!1;if(u(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),n.apply(this,i)}else if(l(n))for(i=Array.prototype.slice.call(arguments,1),r=(a=n.slice()).length,o=0;o<r;o++)a[o].apply(this,i);return!0},r.prototype.on=r.prototype.addListener=function(e,t){var n;if(!u(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,u(t.listener)?t.listener:t),this._events[e]?l(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,l(this._events[e])&&!this._events[e].warned&&(n=c(this._maxListeners)?r.defaultMaxListeners:this._maxListeners)&&0<n&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.once=function(e,t){if(!u(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},r.prototype.removeListener=function(e,t){var n,r,i,o;if(!u(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(n=this._events[e]).length,r=-1,n===t||u(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(l(n)){for(o=i;0<o--;)if(n[o]===t||n[o].listener&&n[o].listener===t){r=o;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(u(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){return this._events&&this._events[e]?u(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(u(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},{}],103:[function(e,T,R){(function(B){!function(e){var t="object"==typeof R&&R,n="object"==typeof T&&T&&T.exports==t&&T,r="object"==typeof B&&B;r.global!==r&&r.window!==r||(e=r);var s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=/[\x01-\x7F]/g,l=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,c=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,f={"­":"shy","‌":"zwnj","‍":"zwj","‎":"lrm","⁣":"ic","⁢":"it","⁡":"af","‏":"rlm","​":"ZeroWidthSpace","⁠":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot","\t":"Tab","\n":"NewLine"," ":"puncsp"," ":"MediumSpace"," ":"thinsp"," ":"hairsp"," ":"emsp13"," ":"ensp"," ":"emsp14"," ":"emsp"," ":"numsp"," ":"nbsp","  ":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprime","‵":"bprime","⁁":"caret","`":"grave","´":"acute","˜":"tilde","^":"Hat","¯":"macr","˘":"breve","˙":"dot","¨":"die","˚":"ring","˝":"dblac","¸":"cedil","˛":"ogon","ˆ":"circ","ˇ":"caron","°":"deg","©":"copy","®":"reg","℗":"copysr","℘":"wp","℞":"rx","℧":"mho","℩":"iiota","←":"larr","↚":"nlarr","→":"rarr","↛":"nrarr","↑":"uarr","↓":"darr","↔":"harr","↮":"nharr","↕":"varr","↖":"nwarr","↗":"nearr","↘":"searr","↙":"swarr","↝":"rarrw","↝̸":"nrarrw","↞":"Larr","↟":"Uarr","↠":"Rarr","↡":"Darr","↢":"larrtl","↣":"rarrtl","↤":"mapstoleft","↥":"mapstoup","↦":"map","↧":"mapstodown","↩":"larrhk","↪":"rarrhk","↫":"larrlp","↬":"rarrlp","↭":"harrw","↰":"lsh","↱":"rsh","↲":"ldsh","↳":"rdsh","↵":"crarr","↶":"cularr","↷":"curarr","↺":"olarr","↻":"orarr","↼":"lharu","↽":"lhard","↾":"uharr","↿":"uharl","⇀":"rharu","⇁":"rhard","⇂":"dharr","⇃":"dharl","⇄":"rlarr","⇅":"udarr","⇆":"lrarr","⇇":"llarr","⇈":"uuarr","⇉":"rrarr","⇊":"ddarr","⇋":"lrhar","⇌":"rlhar","⇐":"lArr","⇍":"nlArr","⇑":"uArr","⇒":"rArr","⇏":"nrArr","⇓":"dArr","⇔":"iff","⇎":"nhArr","⇕":"vArr","⇖":"nwArr","⇗":"neArr","⇘":"seArr","⇙":"swArr","⇚":"lAarr","⇛":"rAarr","⇝":"zigrarr","⇤":"larrb","⇥":"rarrb","⇵":"duarr","⇽":"loarr","⇾":"roarr","⇿":"hoarr","∀":"forall","∁":"comp","∂":"part","∂̸":"npart","∃":"exist","∄":"nexist","∅":"empty","∇":"Del","∈":"in","∉":"notin","∋":"ni","∌":"notni","϶":"bepsi","∏":"prod","∐":"coprod","∑":"sum","+":"plus","±":"pm","÷":"div","×":"times","<":"lt","≮":"nlt","<⃒":"nvlt","=":"equals","≠":"ne","=⃥":"bne","⩵":"Equal",">":"gt","≯":"ngt",">⃒":"nvgt","¬":"not","|":"vert","¦":"brvbar","−":"minus","∓":"mp","∔":"plusdo","⁄":"frasl","∖":"setmn","∗":"lowast","∘":"compfn","√":"Sqrt","∝":"prop","∞":"infin","∟":"angrt","∠":"ang","∠⃒":"nang","∡":"angmsd","∢":"angsph","∣":"mid","∤":"nmid","∥":"par","∦":"npar","∧":"and","∨":"or","∩":"cap","∩︀":"caps","∪":"cup","∪︀":"cups","∫":"int","∬":"Int","∭":"tint","⨌":"qint","∮":"oint","∯":"Conint","∰":"Cconint","∱":"cwint","∲":"cwconint","∳":"awconint","∴":"there4","∵":"becaus","∶":"ratio","∷":"Colon","∸":"minusd","∺":"mDDot","∻":"homtht","∼":"sim","≁":"nsim","∼⃒":"nvsim","∽":"bsim","∽̱":"race","∾":"ac","∾̳":"acE","∿":"acd","≀":"wr","≂":"esim","≂̸":"nesim","≃":"sime","≄":"nsime","≅":"cong","≇":"ncong","≆":"simne","≈":"ap","≉":"nap","≊":"ape","≋":"apid","≋̸":"napid","≌":"bcong","≍":"CupCap","≭":"NotCupCap","≍⃒":"nvap","≎":"bump","≎̸":"nbump","≏":"bumpe","≏̸":"nbumpe","≐":"doteq","≐̸":"nedot","≑":"eDot","≒":"efDot","≓":"erDot","≔":"colone","≕":"ecolon","≖":"ecir","≗":"cire","≙":"wedgeq","≚":"veeeq","≜":"trie","≟":"equest","≡":"equiv","≢":"nequiv","≡⃥":"bnequiv","≤":"le","≰":"nle","≤⃒":"nvle","≥":"ge","≱":"nge","≥⃒":"nvge","≦":"lE","≦̸":"nlE","≧":"gE","≧̸":"ngE","≨︀":"lvnE","≨":"lnE","≩":"gnE","≩︀":"gvnE","≪":"ll","≪̸":"nLtv","≪⃒":"nLt","≫":"gg","≫̸":"nGtv","≫⃒":"nGt","≬":"twixt","≲":"lsim","≴":"nlsim","≳":"gsim","≵":"ngsim","≶":"lg","≸":"ntlg","≷":"gl","≹":"ntgl","≺":"pr","⊀":"npr","≻":"sc","⊁":"nsc","≼":"prcue","⋠":"nprcue","≽":"sccue","⋡":"nsccue","≾":"prsim","≿":"scsim","≿̸":"NotSucceedsTilde","⊂":"sub","⊄":"nsub","⊂⃒":"vnsub","⊃":"sup","⊅":"nsup","⊃⃒":"vnsup","⊆":"sube","⊈":"nsube","⊇":"supe","⊉":"nsupe","⊊︀":"vsubne","⊊":"subne","⊋︀":"vsupne","⊋":"supne","⊍":"cupdot","⊎":"uplus","⊏":"sqsub","⊏̸":"NotSquareSubset","⊐":"sqsup","⊐̸":"NotSquareSuperset","⊑":"sqsube","⋢":"nsqsube","⊒":"sqsupe","⋣":"nsqsupe","⊓":"sqcap","⊓︀":"sqcaps","⊔":"sqcup","⊔︀":"sqcups","⊕":"oplus","⊖":"ominus","⊗":"otimes","⊘":"osol","⊙":"odot","⊚":"ocir","⊛":"oast","⊝":"odash","⊞":"plusb","⊟":"minusb","⊠":"timesb","⊡":"sdotb","⊢":"vdash","⊬":"nvdash","⊣":"dashv","⊤":"top","⊥":"bot","⊧":"models","⊨":"vDash","⊭":"nvDash","⊩":"Vdash","⊮":"nVdash","⊪":"Vvdash","⊫":"VDash","⊯":"nVDash","⊰":"prurel","⊲":"vltri","⋪":"nltri","⊳":"vrtri","⋫":"nrtri","⊴":"ltrie","⋬":"nltrie","⊴⃒":"nvltrie","⊵":"rtrie","⋭":"nrtrie","⊵⃒":"nvrtrie","⊶":"origof","⊷":"imof","⊸":"mumap","⊹":"hercon","⊺":"intcal","⊻":"veebar","⊽":"barvee","⊾":"angrtvb","⊿":"lrtri","⋀":"Wedge","⋁":"Vee","⋂":"xcap","⋃":"xcup","⋄":"diam","⋅":"sdot","⋆":"Star","⋇":"divonx","⋈":"bowtie","⋉":"ltimes","⋊":"rtimes","⋋":"lthree","⋌":"rthree","⋍":"bsime","⋎":"cuvee","⋏":"cuwed","⋐":"Sub","⋑":"Sup","⋒":"Cap","⋓":"Cup","⋔":"fork","⋕":"epar","⋖":"ltdot","⋗":"gtdot","⋘":"Ll","⋘̸":"nLl","⋙":"Gg","⋙̸":"nGg","⋚︀":"lesg","⋚":"leg","⋛":"gel","⋛︀":"gesl","⋞":"cuepr","⋟":"cuesc","⋦":"lnsim","⋧":"gnsim","⋨":"prnsim","⋩":"scnsim","⋮":"vellip","⋯":"ctdot","⋰":"utdot","⋱":"dtdot","⋲":"disin","⋳":"isinsv","⋴":"isins","⋵":"isindot","⋵̸":"notindot","⋶":"notinvc","⋷":"notinvb","⋹":"isinE","⋹̸":"notinE","⋺":"nisd","⋻":"xnis","⋼":"nis","⋽":"notnivc","⋾":"notnivb","⌅":"barwed","⌆":"Barwed","⌌":"drcrop","⌍":"dlcrop","⌎":"urcrop","⌏":"ulcrop","⌐":"bnot","⌒":"profline","⌓":"profsurf","⌕":"telrec","⌖":"target","⌜":"ulcorn","⌝":"urcorn","⌞":"dlcorn","⌟":"drcorn","⌢":"frown","⌣":"smile","⌭":"cylcty","⌮":"profalar","⌶":"topbot","⌽":"ovbar","⌿":"solbar","⍼":"angzarr","⎰":"lmoust","⎱":"rmoust","⎴":"tbrk","⎵":"bbrk","⎶":"bbrktbrk","⏜":"OverParenthesis","⏝":"UnderParenthesis","⏞":"OverBrace","⏟":"UnderBrace","⏢":"trpezium","⏧":"elinters","␣":"blank","─":"boxh","│":"boxv","┌":"boxdr","┐":"boxdl","└":"boxur","┘":"boxul","├":"boxvr","┤":"boxvl","┬":"boxhd","┴":"boxhu","┼":"boxvh","═":"boxH","║":"boxV","╒":"boxdR","╓":"boxDr","╔":"boxDR","╕":"boxdL","╖":"boxDl","╗":"boxDL","╘":"boxuR","╙":"boxUr","╚":"boxUR","╛":"boxuL","╜":"boxUl","╝":"boxUL","╞":"boxvR","╟":"boxVr","╠":"boxVR","╡":"boxvL","╢":"boxVl","╣":"boxVL","╤":"boxHd","╥":"boxhD","╦":"boxHD","╧":"boxHu","╨":"boxhU","╩":"boxHU","╪":"boxvH","╫":"boxVh","╬":"boxVH","▀":"uhblk","▄":"lhblk","█":"block","░":"blk14","▒":"blk12","▓":"blk34","□":"squ","▪":"squf","▫":"EmptyVerySmallSquare","▭":"rect","▮":"marker","▱":"fltns","△":"xutri","▴":"utrif","▵":"utri","▸":"rtrif","▹":"rtri","▽":"xdtri","▾":"dtrif","▿":"dtri","◂":"ltrif","◃":"ltri","◊":"loz","○":"cir","◬":"tridot","◯":"xcirc","◸":"ultri","◹":"urtri","◺":"lltri","◻":"EmptySmallSquare","◼":"FilledSmallSquare","★":"starf","☆":"star","☎":"phone","♀":"female","♂":"male","♠":"spades","♣":"clubs","♥":"hearts","♦":"diams","♪":"sung","✓":"check","✗":"cross","✠":"malt","✶":"sext","❘":"VerticalSeparator","⟈":"bsolhsub","⟉":"suphsol","⟵":"xlarr","⟶":"xrarr","⟷":"xharr","⟸":"xlArr","⟹":"xrArr","⟺":"xhArr","⟼":"xmap","⟿":"dzigrarr","⤂":"nvlArr","⤃":"nvrArr","⤄":"nvHarr","⤅":"Map","⤌":"lbarr","⤍":"rbarr","⤎":"lBarr","⤏":"rBarr","⤐":"RBarr","⤑":"DDotrahd","⤒":"UpArrowBar","⤓":"DownArrowBar","⤖":"Rarrtl","⤙":"latail","⤚":"ratail","⤛":"lAtail","⤜":"rAtail","⤝":"larrfs","⤞":"rarrfs","⤟":"larrbfs","⤠":"rarrbfs","⤣":"nwarhk","⤤":"nearhk","⤥":"searhk","⤦":"swarhk","⤧":"nwnear","⤨":"toea","⤩":"tosa","⤪":"swnwar","⤳":"rarrc","⤳̸":"nrarrc","⤵":"cudarrr","⤶":"ldca","⤷":"rdca","⤸":"cudarrl","⤹":"larrpl","⤼":"curarrm","⤽":"cularrp","⥅":"rarrpl","⥈":"harrcir","⥉":"Uarrocir","⥊":"lurdshar","⥋":"ldrushar","⥎":"LeftRightVector","⥏":"RightUpDownVector","⥐":"DownLeftRightVector","⥑":"LeftUpDownVector","⥒":"LeftVectorBar","⥓":"RightVectorBar","⥔":"RightUpVectorBar","⥕":"RightDownVectorBar","⥖":"DownLeftVectorBar","⥗":"DownRightVectorBar","⥘":"LeftUpVectorBar","⥙":"LeftDownVectorBar","⥚":"LeftTeeVector","⥛":"RightTeeVector","⥜":"RightUpTeeVector","⥝":"RightDownTeeVector","⥞":"DownLeftTeeVector","⥟":"DownRightTeeVector","⥠":"LeftUpTeeVector","⥡":"LeftDownTeeVector","⥢":"lHar","⥣":"uHar","⥤":"rHar","⥥":"dHar","⥦":"luruhar","⥧":"ldrdhar","⥨":"ruluhar","⥩":"rdldhar","⥪":"lharul","⥫":"llhard","⥬":"rharul","⥭":"lrhard","⥮":"udhar","⥯":"duhar","⥰":"RoundImplies","⥱":"erarr","⥲":"simrarr","⥳":"larrsim","⥴":"rarrsim","⥵":"rarrap","⥶":"ltlarr","⥸":"gtrarr","⥹":"subrarr","⥻":"suplarr","⥼":"lfisht","⥽":"rfisht","⥾":"ufisht","⥿":"dfisht","⦚":"vzigzag","⦜":"vangrt","⦝":"angrtvbd","⦤":"ange","⦥":"range","⦦":"dwangle","⦧":"uwangle","⦨":"angmsdaa","⦩":"angmsdab","⦪":"angmsdac","⦫":"angmsdad","⦬":"angmsdae","⦭":"angmsdaf","⦮":"angmsdag","⦯":"angmsdah","⦰":"bemptyv","⦱":"demptyv","⦲":"cemptyv","⦳":"raemptyv","⦴":"laemptyv","⦵":"ohbar","⦶":"omid","⦷":"opar","⦹":"operp","⦻":"olcross","⦼":"odsold","⦾":"olcir","⦿":"ofcir","⧀":"olt","⧁":"ogt","⧂":"cirscir","⧃":"cirE","⧄":"solb","⧅":"bsolb","⧉":"boxbox","⧍":"trisb","⧎":"rtriltri","⧏":"LeftTriangleBar","⧏̸":"NotLeftTriangleBar","⧐":"RightTriangleBar","⧐̸":"NotRightTriangleBar","⧜":"iinfin","⧝":"infintie","⧞":"nvinfin","⧣":"eparsl","⧤":"smeparsl","⧥":"eqvparsl","⧫":"lozf","⧴":"RuleDelayed","⧶":"dsol","⨀":"xodot","⨁":"xoplus","⨂":"xotime","⨄":"xuplus","⨆":"xsqcup","⨍":"fpartint","⨐":"cirfnint","⨑":"awint","⨒":"rppolint","⨓":"scpolint","⨔":"npolint","⨕":"pointint","⨖":"quatint","⨗":"intlarhk","⨢":"pluscir","⨣":"plusacir","⨤":"simplus","⨥":"plusdu","⨦":"plussim","⨧":"plustwo","⨩":"mcomma","⨪":"minusdu","⨭":"loplus","⨮":"roplus","⨯":"Cross","⨰":"timesd","⨱":"timesbar","⨳":"smashp","⨴":"lotimes","⨵":"rotimes","⨶":"otimesas","⨷":"Otimes","⨸":"odiv","⨹":"triplus","⨺":"triminus","⨻":"tritime","⨼":"iprod","⨿":"amalg","⩀":"capdot","⩂":"ncup","⩃":"ncap","⩄":"capand","⩅":"cupor","⩆":"cupcap","⩇":"capcup","⩈":"cupbrcap","⩉":"capbrcup","⩊":"cupcup","⩋":"capcap","⩌":"ccups","⩍":"ccaps","⩐":"ccupssm","⩓":"And","⩔":"Or","⩕":"andand","⩖":"oror","⩗":"orslope","⩘":"andslope","⩚":"andv","⩛":"orv","⩜":"andd","⩝":"ord","⩟":"wedbar","⩦":"sdote","⩪":"simdot","⩭":"congdot","⩭̸":"ncongdot","⩮":"easter","⩯":"apacir","⩰":"apE","⩰̸":"napE","⩱":"eplus","⩲":"pluse","⩳":"Esim","⩷":"eDDot","⩸":"equivDD","⩹":"ltcir","⩺":"gtcir","⩻":"ltquest","⩼":"gtquest","⩽":"les","⩽̸":"nles","⩾":"ges","⩾̸":"nges","⩿":"lesdot","⪀":"gesdot","⪁":"lesdoto","⪂":"gesdoto","⪃":"lesdotor","⪄":"gesdotol","⪅":"lap","⪆":"gap","⪇":"lne","⪈":"gne","⪉":"lnap","⪊":"gnap","⪋":"lEg","⪌":"gEl","⪍":"lsime","⪎":"gsime","⪏":"lsimg","⪐":"gsiml","⪑":"lgE","⪒":"glE","⪓":"lesges","⪔":"gesles","⪕":"els","⪖":"egs","⪗":"elsdot","⪘":"egsdot","⪙":"el","⪚":"eg","⪝":"siml","⪞":"simg","⪟":"simlE","⪠":"simgE","⪡":"LessLess","⪡̸":"NotNestedLessLess","⪢":"GreaterGreater","⪢̸":"NotNestedGreaterGreater","⪤":"glj","⪥":"gla","⪦":"ltcc","⪧":"gtcc","⪨":"lescc","⪩":"gescc","⪪":"smt","⪫":"lat","⪬":"smte","⪬︀":"smtes","⪭":"late","⪭︀":"lates","⪮":"bumpE","⪯":"pre","⪯̸":"npre","⪰":"sce","⪰̸":"nsce","⪳":"prE","⪴":"scE","⪵":"prnE","⪶":"scnE","⪷":"prap","⪸":"scap","⪹":"prnap","⪺":"scnap","⪻":"Pr","⪼":"Sc","⪽":"subdot","⪾":"supdot","⪿":"subplus","⫀":"supplus","⫁":"submult","⫂":"supmult","⫃":"subedot","⫄":"supedot","⫅":"subE","⫅̸":"nsubE","⫆":"supE","⫆̸":"nsupE","⫇":"subsim","⫈":"supsim","⫋︀":"vsubnE","⫋":"subnE","⫌︀":"vsupnE","⫌":"supnE","⫏":"csub","⫐":"csup","⫑":"csube","⫒":"csupe","⫓":"subsup","⫔":"supsub","⫕":"subsub","⫖":"supsup","⫗":"suphsub","⫘":"supdsub","⫙":"forkv","⫚":"topfork","⫛":"mlcp","⫤":"Dashv","⫦":"Vdashl","⫧":"Barv","⫨":"vBar","⫩":"vBarv","⫫":"Vbar","⫬":"Not","⫭":"bNot","⫮":"rnmid","⫯":"cirmid","⫰":"midcir","⫱":"topcir","⫲":"nhpar","⫳":"parsim","⫽":"parsl","⫽⃥":"nparsl","♭":"flat","♮":"natur","♯":"sharp","¤":"curren","¢":"cent",$:"dollar","£":"pound","¥":"yen","€":"euro","¹":"sup1","½":"half","⅓":"frac13","¼":"frac14","⅕":"frac15","⅙":"frac16","⅛":"frac18","²":"sup2","⅔":"frac23","⅖":"frac25","³":"sup3","¾":"frac34","⅗":"frac35","⅜":"frac38","⅘":"frac45","⅚":"frac56","⅝":"frac58","⅞":"frac78","𝒶":"ascr","𝕒":"aopf","𝔞":"afr","𝔸":"Aopf","𝔄":"Afr","𝒜":"Ascr","ª":"ordf","á":"aacute","Á":"Aacute","à":"agrave","À":"Agrave","ă":"abreve","Ă":"Abreve","â":"acirc","Â":"Acirc","å":"aring","Å":"angst","ä":"auml","Ä":"Auml","ã":"atilde","Ã":"Atilde","ą":"aogon","Ą":"Aogon","ā":"amacr","Ā":"Amacr","æ":"aelig","Æ":"AElig","𝒷":"bscr","𝕓":"bopf","𝔟":"bfr","𝔹":"Bopf","ℬ":"Bscr","𝔅":"Bfr","𝔠":"cfr","𝒸":"cscr","𝕔":"copf","ℭ":"Cfr","𝒞":"Cscr","ℂ":"Copf","ć":"cacute","Ć":"Cacute","ĉ":"ccirc","Ĉ":"Ccirc","č":"ccaron","Č":"Ccaron","ċ":"cdot","Ċ":"Cdot","ç":"ccedil","Ç":"Ccedil","℅":"incare","𝔡":"dfr","ⅆ":"dd","𝕕":"dopf","𝒹":"dscr","𝒟":"Dscr","𝔇":"Dfr","ⅅ":"DD","𝔻":"Dopf","ď":"dcaron","Ď":"Dcaron","đ":"dstrok","Đ":"Dstrok","ð":"eth","Ð":"ETH","ⅇ":"ee","ℯ":"escr","𝔢":"efr","𝕖":"eopf","ℰ":"Escr","𝔈":"Efr","𝔼":"Eopf","é":"eacute","É":"Eacute","è":"egrave","È":"Egrave","ê":"ecirc","Ê":"Ecirc","ě":"ecaron","Ě":"Ecaron","ë":"euml","Ë":"Euml","ė":"edot","Ė":"Edot","ę":"eogon","Ę":"Eogon","ē":"emacr","Ē":"Emacr","𝔣":"ffr","𝕗":"fopf","𝒻":"fscr","𝔉":"Ffr","𝔽":"Fopf","ℱ":"Fscr","ff":"fflig","ffi":"ffilig","ffl":"ffllig","fi":"filig",fj:"fjlig","fl":"fllig","ƒ":"fnof","ℊ":"gscr","𝕘":"gopf","𝔤":"gfr","𝒢":"Gscr","𝔾":"Gopf","𝔊":"Gfr","ǵ":"gacute","ğ":"gbreve","Ğ":"Gbreve","ĝ":"gcirc","Ĝ":"Gcirc","ġ":"gdot","Ġ":"Gdot","Ģ":"Gcedil","𝔥":"hfr","ℎ":"planckh","𝒽":"hscr","𝕙":"hopf","ℋ":"Hscr","ℌ":"Hfr","ℍ":"Hopf","ĥ":"hcirc","Ĥ":"Hcirc","ℏ":"hbar","ħ":"hstrok","Ħ":"Hstrok","𝕚":"iopf","𝔦":"ifr","𝒾":"iscr","ⅈ":"ii","𝕀":"Iopf","ℐ":"Iscr","ℑ":"Im","í":"iacute","Í":"Iacute","ì":"igrave","Ì":"Igrave","î":"icirc","Î":"Icirc","ï":"iuml","Ï":"Iuml","ĩ":"itilde","Ĩ":"Itilde","İ":"Idot","į":"iogon","Į":"Iogon","ī":"imacr","Ī":"Imacr","ij":"ijlig","IJ":"IJlig","ı":"imath","𝒿":"jscr","𝕛":"jopf","𝔧":"jfr","𝒥":"Jscr","𝔍":"Jfr","𝕁":"Jopf","ĵ":"jcirc","Ĵ":"Jcirc","ȷ":"jmath","𝕜":"kopf","𝓀":"kscr","𝔨":"kfr","𝒦":"Kscr","𝕂":"Kopf","𝔎":"Kfr","ķ":"kcedil","Ķ":"Kcedil","𝔩":"lfr","𝓁":"lscr","ℓ":"ell","𝕝":"lopf","ℒ":"Lscr","𝔏":"Lfr","𝕃":"Lopf","ĺ":"lacute","Ĺ":"Lacute","ľ":"lcaron","Ľ":"Lcaron","ļ":"lcedil","Ļ":"Lcedil","ł":"lstrok","Ł":"Lstrok","ŀ":"lmidot","Ŀ":"Lmidot","𝔪":"mfr","𝕞":"mopf","𝓂":"mscr","𝔐":"Mfr","𝕄":"Mopf","ℳ":"Mscr","𝔫":"nfr","𝕟":"nopf","𝓃":"nscr","ℕ":"Nopf","𝒩":"Nscr","𝔑":"Nfr","ń":"nacute","Ń":"Nacute","ň":"ncaron","Ň":"Ncaron","ñ":"ntilde","Ñ":"Ntilde","ņ":"ncedil","Ņ":"Ncedil","№":"numero","ŋ":"eng","Ŋ":"ENG","𝕠":"oopf","𝔬":"ofr","ℴ":"oscr","𝒪":"Oscr","𝔒":"Ofr","𝕆":"Oopf","º":"ordm","ó":"oacute","Ó":"Oacute","ò":"ograve","Ò":"Ograve","ô":"ocirc","Ô":"Ocirc","ö":"ouml","Ö":"Ouml","ő":"odblac","Ő":"Odblac","õ":"otilde","Õ":"Otilde","ø":"oslash","Ø":"Oslash","ō":"omacr","Ō":"Omacr","œ":"oelig","Œ":"OElig","𝔭":"pfr","𝓅":"pscr","𝕡":"popf","ℙ":"Popf","𝔓":"Pfr","𝒫":"Pscr","𝕢":"qopf","𝔮":"qfr","𝓆":"qscr","𝒬":"Qscr","𝔔":"Qfr","ℚ":"Qopf","ĸ":"kgreen","𝔯":"rfr","𝕣":"ropf","𝓇":"rscr","ℛ":"Rscr","ℜ":"Re","ℝ":"Ropf","ŕ":"racute","Ŕ":"Racute","ř":"rcaron","Ř":"Rcaron","ŗ":"rcedil","Ŗ":"Rcedil","𝕤":"sopf","𝓈":"sscr","𝔰":"sfr","𝕊":"Sopf","𝔖":"Sfr","𝒮":"Sscr","Ⓢ":"oS","ś":"sacute","Ś":"Sacute","ŝ":"scirc","Ŝ":"Scirc","š":"scaron","Š":"Scaron","ş":"scedil","Ş":"Scedil","ß":"szlig","𝔱":"tfr","𝓉":"tscr","𝕥":"topf","𝒯":"Tscr","𝔗":"Tfr","𝕋":"Topf","ť":"tcaron","Ť":"Tcaron","ţ":"tcedil","Ţ":"Tcedil","™":"trade","ŧ":"tstrok","Ŧ":"Tstrok","𝓊":"uscr","𝕦":"uopf","𝔲":"ufr","𝕌":"Uopf","𝔘":"Ufr","𝒰":"Uscr","ú":"uacute","Ú":"Uacute","ù":"ugrave","Ù":"Ugrave","ŭ":"ubreve","Ŭ":"Ubreve","û":"ucirc","Û":"Ucirc","ů":"uring","Ů":"Uring","ü":"uuml","Ü":"Uuml","ű":"udblac","Ű":"Udblac","ũ":"utilde","Ũ":"Utilde","ų":"uogon","Ų":"Uogon","ū":"umacr","Ū":"Umacr","𝔳":"vfr","𝕧":"vopf","𝓋":"vscr","𝔙":"Vfr","𝕍":"Vopf","𝒱":"Vscr","𝕨":"wopf","𝓌":"wscr","𝔴":"wfr","𝒲":"Wscr","𝕎":"Wopf","𝔚":"Wfr","ŵ":"wcirc","Ŵ":"Wcirc","𝔵":"xfr","𝓍":"xscr","𝕩":"xopf","𝕏":"Xopf","𝔛":"Xfr","𝒳":"Xscr","𝔶":"yfr","𝓎":"yscr","𝕪":"yopf","𝒴":"Yscr","𝔜":"Yfr","𝕐":"Yopf","ý":"yacute","Ý":"Yacute","ŷ":"ycirc","Ŷ":"Ycirc","ÿ":"yuml","Ÿ":"Yuml","𝓏":"zscr","𝔷":"zfr","𝕫":"zopf","ℨ":"Zfr","ℤ":"Zopf","𝒵":"Zscr","ź":"zacute","Ź":"Zacute","ž":"zcaron","Ž":"Zcaron","ż":"zdot","Ż":"Zdot","Ƶ":"imped","þ":"thorn","Þ":"THORN","ʼn":"napos","α":"alpha","Α":"Alpha","β":"beta","Β":"Beta","γ":"gamma","Γ":"Gamma","δ":"delta","Δ":"Delta","ε":"epsi","ϵ":"epsiv","Ε":"Epsilon","ϝ":"gammad","Ϝ":"Gammad","ζ":"zeta","Ζ":"Zeta","η":"eta","Η":"Eta","θ":"theta","ϑ":"thetav","Θ":"Theta","ι":"iota","Ι":"Iota","κ":"kappa","ϰ":"kappav","Κ":"Kappa","λ":"lambda","Λ":"Lambda","μ":"mu","µ":"micro","Μ":"Mu","ν":"nu","Ν":"Nu","ξ":"xi","Ξ":"Xi","ο":"omicron","Ο":"Omicron","π":"pi","ϖ":"piv","Π":"Pi","ρ":"rho","ϱ":"rhov","Ρ":"Rho","σ":"sigma","Σ":"Sigma","ς":"sigmaf","τ":"tau","Τ":"Tau","υ":"upsi","Υ":"Upsilon","ϒ":"Upsi","φ":"phi","ϕ":"phiv","Φ":"Phi","χ":"chi","Χ":"Chi","ψ":"psi","Ψ":"Psi","ω":"omega","Ω":"ohm","а":"acy","А":"Acy","б":"bcy","Б":"Bcy","в":"vcy","В":"Vcy","г":"gcy","Г":"Gcy","ѓ":"gjcy","Ѓ":"GJcy","д":"dcy","Д":"Dcy","ђ":"djcy","Ђ":"DJcy","е":"iecy","Е":"IEcy","ё":"iocy","Ё":"IOcy","є":"jukcy","Є":"Jukcy","ж":"zhcy","Ж":"ZHcy","з":"zcy","З":"Zcy","ѕ":"dscy","Ѕ":"DScy","и":"icy","И":"Icy","і":"iukcy","І":"Iukcy","ї":"yicy","Ї":"YIcy","й":"jcy","Й":"Jcy","ј":"jsercy","Ј":"Jsercy","к":"kcy","К":"Kcy","ќ":"kjcy","Ќ":"KJcy","л":"lcy","Л":"Lcy","љ":"ljcy","Љ":"LJcy","м":"mcy","М":"Mcy","н":"ncy","Н":"Ncy","њ":"njcy","Њ":"NJcy","о":"ocy","О":"Ocy","п":"pcy","П":"Pcy","р":"rcy","Р":"Rcy","с":"scy","С":"Scy","т":"tcy","Т":"Tcy","ћ":"tshcy","Ћ":"TSHcy","у":"ucy","У":"Ucy","ў":"ubrcy","Ў":"Ubrcy","ф":"fcy","Ф":"Fcy","х":"khcy","Х":"KHcy","ц":"tscy","Ц":"TScy","ч":"chcy","Ч":"CHcy","џ":"dzcy","Џ":"DZcy","ш":"shcy","Ш":"SHcy","щ":"shchcy","Щ":"SHCHcy","ъ":"hardcy","Ъ":"HARDcy","ы":"ycy","Ы":"Ycy","ь":"softcy","Ь":"SOFTcy","э":"ecy","Э":"Ecy","ю":"yucy","Ю":"YUcy","я":"yacy","Я":"YAcy","ℵ":"aleph","ℶ":"beth","ℷ":"gimel","ℸ":"daleth"},p=/["&'<>`]/g,i={'"':"&quot;","&":"&amp;","'":"&#x27;","<":"&lt;",">":"&gt;","`":"&#x60;"},o=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,h=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,a=/&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)([=a-zA-Z0-9])?/g,g={aacute:"á",Aacute:"Á",abreve:"ă",Abreve:"Ă",ac:"∾",acd:"∿",acE:"∾̳",acirc:"â",Acirc:"Â",acute:"´",acy:"а",Acy:"А",aelig:"æ",AElig:"Æ",af:"⁡",afr:"𝔞",Afr:"𝔄",agrave:"à",Agrave:"À",alefsym:"ℵ",aleph:"ℵ",alpha:"α",Alpha:"Α",amacr:"ā",Amacr:"Ā",amalg:"⨿",amp:"&",AMP:"&",and:"∧",And:"⩓",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",Aogon:"Ą",aopf:"𝕒",Aopf:"𝔸",ap:"≈",apacir:"⩯",ape:"≊",apE:"⩰",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",aring:"å",Aring:"Å",ascr:"𝒶",Ascr:"𝒜",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",Bcy:"Б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",beta:"β",Beta:"Β",beth:"ℶ",between:"≬",bfr:"𝔟",Bfr:"𝔅",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bNot:"⫭",bopf:"𝕓",Bopf:"𝔹",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxhD:"╥",boxHd:"╤",boxHD:"╦",boxhu:"┴",boxhU:"╨",boxHu:"╧",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpe:"≏",bumpE:"⪮",bumpeq:"≏",Bumpeq:"≎",cacute:"ć",Cacute:"Ć",cap:"∩",Cap:"⋒",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",ccaron:"č",Ccaron:"Č",ccedil:"ç",Ccedil:"Ç",ccirc:"ĉ",Ccirc:"Ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",Cdot:"Ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",chcy:"ч",CHcy:"Ч",check:"✓",checkmark:"✓",chi:"χ",Chi:"Χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cire:"≗",cirE:"⧃",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",colone:"≔",Colone:"⩴",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",cscr:"𝒸",Cscr:"𝒞",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",Cup:"⋓",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",dArr:"⇓",Darr:"↡",dash:"‐",dashv:"⊣",Dashv:"⫤",dbkarow:"⤏",dblac:"˝",dcaron:"ď",Dcaron:"Ď",dcy:"д",Dcy:"Д",dd:"ⅆ",DD:"ⅅ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",delta:"δ",Delta:"Δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",Dfr:"𝔇",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",DJcy:"Ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",Dopf:"𝔻",dot:"˙",Dot:"¨",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",downarrow:"↓",Downarrow:"⇓",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",Dscr:"𝒟",dscy:"ѕ",DScy:"Ѕ",dsol:"⧶",dstrok:"đ",Dstrok:"Đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",DZcy:"Џ",dzigrarr:"⟿",eacute:"é",Eacute:"É",easter:"⩮",ecaron:"ě",Ecaron:"Ě",ecir:"≖",ecirc:"ê",Ecirc:"Ê",ecolon:"≕",ecy:"э",Ecy:"Э",eDDot:"⩷",edot:"ė",eDot:"≑",Edot:"Ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",Efr:"𝔈",eg:"⪚",egrave:"è",Egrave:"È",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",Emacr:"Ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",eng:"ŋ",ENG:"Ŋ",ensp:" ",eogon:"ę",Eogon:"Ę",eopf:"𝕖",Eopf:"𝔼",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",Epsilon:"Ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",esim:"≂",Esim:"⩳",eta:"η",Eta:"Η",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",fcy:"ф",Fcy:"Ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",Ffr:"𝔉",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",Fopf:"𝔽",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",gamma:"γ",Gamma:"Γ",gammad:"ϝ",Gammad:"Ϝ",gap:"⪆",gbreve:"ğ",Gbreve:"Ğ",Gcedil:"Ģ",gcirc:"ĝ",Gcirc:"Ĝ",gcy:"г",Gcy:"Г",gdot:"ġ",Gdot:"Ġ",ge:"≥",gE:"≧",gel:"⋛",gEl:"⪌",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",Gfr:"𝔊",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",GJcy:"Ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",Gopf:"𝔾",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",gscr:"ℊ",Gscr:"𝒢",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",Gt:"≫",GT:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",HARDcy:"Ъ",harr:"↔",hArr:"⇔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",hcirc:"ĥ",Hcirc:"Ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",hstrok:"ħ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",iacute:"í",Iacute:"Í",ic:"⁣",icirc:"î",Icirc:"Î",icy:"и",Icy:"И",Idot:"İ",iecy:"е",IEcy:"Е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",igrave:"ì",Igrave:"Ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",IJlig:"IJ",Im:"ℑ",imacr:"ī",Imacr:"Ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",Int:"∬",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",iocy:"ё",IOcy:"Ё",iogon:"į",Iogon:"Į",iopf:"𝕚",Iopf:"𝕀",iota:"ι",Iota:"Ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",Itilde:"Ĩ",iukcy:"і",Iukcy:"І",iuml:"ï",Iuml:"Ï",jcirc:"ĵ",Jcirc:"Ĵ",jcy:"й",Jcy:"Й",jfr:"𝔧",Jfr:"𝔍",jmath:"ȷ",jopf:"𝕛",Jopf:"𝕁",jscr:"𝒿",Jscr:"𝒥",jsercy:"ј",Jsercy:"Ј",jukcy:"є",Jukcy:"Є",kappa:"κ",Kappa:"Κ",kappav:"ϰ",kcedil:"ķ",Kcedil:"Ķ",kcy:"к",Kcy:"К",kfr:"𝔨",Kfr:"𝔎",kgreen:"ĸ",khcy:"х",KHcy:"Х",kjcy:"ќ",KJcy:"Ќ",kopf:"𝕜",Kopf:"𝕂",kscr:"𝓀",Kscr:"𝒦",lAarr:"⇚",lacute:"ĺ",Lacute:"Ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",Lambda:"Λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larr:"←",lArr:"⇐",Larr:"↞",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",lAtail:"⤛",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lceil:"⌈",lcub:"{",lcy:"л",Lcy:"Л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",leftarrow:"←",Leftarrow:"⇐",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",Leftrightarrow:"⇔",LeftRightArrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",leg:"⋚",lEg:"⪋",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",Lfr:"𝔏",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",LJcy:"Љ",ll:"≪",Ll:"⋘",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",lmidot:"ŀ",Lmidot:"Ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",Longleftarrow:"⟸",LongLeftArrow:"⟵",longleftrightarrow:"⟷",Longleftrightarrow:"⟺",LongLeftRightArrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",Longrightarrow:"⟹",LongRightArrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",Lopf:"𝕃",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",Lstrok:"Ł",lt:"<",Lt:"≪",LT:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",Map:"⤅",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",Mcy:"М",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",mfr:"𝔪",Mfr:"𝔐",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",Mopf:"𝕄",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",mu:"μ",Mu:"Μ",multimap:"⊸",mumap:"⊸",nabla:"∇",nacute:"ń",Nacute:"Ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",Ncaron:"Ň",ncedil:"ņ",Ncedil:"Ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",Ncy:"Н",ndash:"–",ne:"≠",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",nfr:"𝔫",Nfr:"𝔑",nge:"≱",ngE:"≧̸",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",ngt:"≯",nGt:"≫⃒",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",NJcy:"Њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nle:"≰",nlE:"≦̸",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nlt:"≮",nLt:"≪⃒",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",not:"¬",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrarr:"↛",nrArr:"⇏",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",Nscr:"𝒩",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsube:"⊈",nsubE:"⫅̸",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupe:"⊉",nsupE:"⫆̸",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",Ntilde:"Ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",Nu:"Ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",oacute:"ó",Oacute:"Ó",oast:"⊛",ocir:"⊚",ocirc:"ô",Ocirc:"Ô",ocy:"о",Ocy:"О",odash:"⊝",odblac:"ő",Odblac:"Ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",OElig:"Œ",ofcir:"⦿",ofr:"𝔬",Ofr:"𝔒",ogon:"˛",ograve:"ò",Ograve:"Ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",Omacr:"Ō",omega:"ω",Omega:"Ω",omicron:"ο",Omicron:"Ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",Oopf:"𝕆",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",or:"∨",Or:"⩔",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",oscr:"ℴ",Oscr:"𝒪",oslash:"ø",Oslash:"Ø",osol:"⊘",otilde:"õ",Otilde:"Õ",otimes:"⊗",Otimes:"⨷",otimesas:"⨶",ouml:"ö",Ouml:"Ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",pcy:"п",Pcy:"П",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",Pfr:"𝔓",phi:"φ",Phi:"Φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",Pi:"Π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",pr:"≺",Pr:"⪻",prap:"⪷",prcue:"≼",pre:"⪯",prE:"⪳",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",Pscr:"𝒫",psi:"ψ",Psi:"Ψ",puncsp:" ",qfr:"𝔮",Qfr:"𝔔",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",qscr:"𝓆",Qscr:"𝒬",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",racute:"ŕ",Racute:"Ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rArr:"⇒",Rarr:"↠",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",Rarrtl:"⤖",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",rceil:"⌉",rcub:"}",rcy:"р",Rcy:"Р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",Rho:"Ρ",rhov:"ϱ",RightAngleBracket:"⟩",rightarrow:"→",Rightarrow:"⇒",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",sacute:"ś",Sacute:"Ś",sbquo:"‚",sc:"≻",Sc:"⪼",scap:"⪸",scaron:"š",Scaron:"Š",sccue:"≽",sce:"⪰",scE:"⪴",scedil:"ş",Scedil:"Ş",scirc:"ŝ",Scirc:"Ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",Scy:"С",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",Sfr:"𝔖",sfrown:"⌢",sharp:"♯",shchcy:"щ",SHCHcy:"Щ",shcy:"ш",SHcy:"Ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",SOFTcy:"Ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",Sopf:"𝕊",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",Sscr:"𝒮",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",Star:"⋆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",sube:"⊆",subE:"⫅",subedot:"⫃",submult:"⫁",subne:"⊊",subnE:"⫋",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup:"⊃",Sup:"⋑",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supe:"⊇",supE:"⫆",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supne:"⊋",supnE:"⫌",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",tau:"τ",Tau:"Τ",tbrk:"⎴",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",tcy:"т",Tcy:"Т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",Tfr:"𝔗",there4:"∴",therefore:"∴",Therefore:"∴",theta:"θ",Theta:"Θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",thorn:"þ",THORN:"Þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",Topf:"𝕋",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",Tscr:"𝒯",tscy:"ц",TScy:"Ц",tshcy:"ћ",TSHcy:"Ћ",tstrok:"ŧ",Tstrok:"Ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uacute:"ú",Uacute:"Ú",uarr:"↑",uArr:"⇑",Uarr:"↟",Uarrocir:"⥉",ubrcy:"ў",Ubrcy:"Ў",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",ucy:"у",Ucy:"У",udarr:"⇅",udblac:"ű",Udblac:"Ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",Ufr:"𝔘",ugrave:"ù",Ugrave:"Ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",Umacr:"Ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",uogon:"ų",Uogon:"Ų",uopf:"𝕦",Uopf:"𝕌",uparrow:"↑",Uparrow:"⇑",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",updownarrow:"↕",Updownarrow:"⇕",UpDownArrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",upsilon:"υ",Upsilon:"Υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",Uring:"Ů",urtri:"◹",uscr:"𝓊",Uscr:"𝒰",utdot:"⋰",utilde:"ũ",Utilde:"Ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",Uuml:"Ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",vcy:"в",Vcy:"В",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",vee:"∨",Vee:"⋁",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",vfr:"𝔳",Vfr:"𝔙",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",Vopf:"𝕍",vprop:"∝",vrtri:"⊳",vscr:"𝓋",Vscr:"𝒱",vsubne:"⊊︀",vsubnE:"⫋︀",vsupne:"⊋︀",vsupnE:"⫌︀",Vvdash:"⊪",vzigzag:"⦚",wcirc:"ŵ",Wcirc:"Ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",wfr:"𝔴",Wfr:"𝔚",wopf:"𝕨",Wopf:"𝕎",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",Wscr:"𝒲",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",Xfr:"𝔛",xharr:"⟷",xhArr:"⟺",xi:"ξ",Xi:"Ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",Xopf:"𝕏",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",xscr:"𝓍",Xscr:"𝒳",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",Yacute:"Ý",yacy:"я",YAcy:"Я",ycirc:"ŷ",Ycirc:"Ŷ",ycy:"ы",Ycy:"Ы",yen:"¥",yfr:"𝔶",Yfr:"𝔜",yicy:"ї",YIcy:"Ї",yopf:"𝕪",Yopf:"𝕐",yscr:"𝓎",Yscr:"𝒴",yucy:"ю",YUcy:"Ю",yuml:"ÿ",Yuml:"Ÿ",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zcy:"з",Zcy:"З",zdot:"ż",Zdot:"Ż",zeetrf:"ℨ",ZeroWidthSpace:"​",zeta:"ζ",Zeta:"Ζ",zfr:"𝔷",Zfr:"ℨ",zhcy:"ж",ZHcy:"Ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",zscr:"𝓏",Zscr:"𝒵",zwj:"‍",zwnj:"‌"},v={aacute:"á",Aacute:"Á",acirc:"â",Acirc:"Â",acute:"´",aelig:"æ",AElig:"Æ",agrave:"à",Agrave:"À",amp:"&",AMP:"&",aring:"å",Aring:"Å",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",brvbar:"¦",ccedil:"ç",Ccedil:"Ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",Eacute:"É",ecirc:"ê",Ecirc:"Ê",egrave:"è",Egrave:"È",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",iacute:"í",Iacute:"Í",icirc:"î",Icirc:"Î",iexcl:"¡",igrave:"ì",Igrave:"Ì",iquest:"¿",iuml:"ï",Iuml:"Ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",Ntilde:"Ñ",oacute:"ó",Oacute:"Ó",ocirc:"ô",Ocirc:"Ô",ograve:"ò",Ograve:"Ò",ordf:"ª",ordm:"º",oslash:"ø",Oslash:"Ø",otilde:"õ",Otilde:"Õ",ouml:"ö",Ouml:"Ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",THORN:"Þ",times:"×",uacute:"ú",Uacute:"Ú",ucirc:"û",Ucirc:"Û",ugrave:"ù",Ugrave:"Ù",uml:"¨",uuml:"ü",Uuml:"Ü",yacute:"ý",Yacute:"Ý",yen:"¥",yuml:"ÿ"},d={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},m=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],b=String.fromCharCode,y={}.hasOwnProperty,_=function(e,t){return y.call(e,t)},w=function(e,t){if(!e)return t;var n,r={};for(n in t)r[n]=_(e,n)?e[n]:t[n];return r},E=function(e,t){var n="";return 55296<=e&&e<=57343||1114111<e?(t&&C("character reference outside the permissible Unicode range"),"�"):_(d,e)?(t&&C("disallowed character reference"),d[e]):(t&&function(e,t){for(var n=-1,r=e.length;++n<r;)if(e[n]==t)return!0;return!1}(m,e)&&C("disallowed character reference"),65535<e&&(n+=b((e-=65536)>>>10&1023|55296),e=56320|1023&e),n+=b(e))},A=function(e){return"&#x"+e.toString(16).toUpperCase()+";"},x=function(e){return"&#"+e+";"},C=function(e){throw Error("Parse error: "+e)},k=function(e,t){(t=w(t,k.options)).strict&&h.test(e)&&C("forbidden code point");var n=t.encodeEverything,r=t.useNamedReferences,i=t.allowUnsafeSymbols,o=t.decimal?x:A,a=function(e){return o(e.charCodeAt(0))};return n?(e=e.replace(u,function(e){return r&&_(f,e)?"&"+f[e]+";":a(e)}),r&&(e=e.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;").replace(/&#x66;&#x6A;/g,"&fjlig;")),r&&(e=e.replace(c,function(e){return"&"+f[e]+";"}))):r?(i||(e=e.replace(p,function(e){return"&"+f[e]+";"})),e=(e=e.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;")).replace(c,function(e){return"&"+f[e]+";"})):i||(e=e.replace(p,a)),e.replace(s,function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1);return o(1024*(t-55296)+n-56320+65536)}).replace(l,a)};k.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var O=function(e,d){var m=(d=w(d,O.options)).strict;return m&&o.test(e)&&C("malformed character reference"),e.replace(a,function(e,t,n,r,i,o,a,s){var u,l,c,f,p,h;return t?(c=t,l=n,m&&!l&&C("character reference was not terminated by a semicolon"),u=parseInt(c,10),E(u,m)):r?(f=r,l=i,m&&!l&&C("character reference was not terminated by a semicolon"),u=parseInt(f,16),E(u,m)):o?_(g,p=o)?g[p]:(m&&C("named character reference was not terminated by a semicolon"),e):(p=a,(h=s)&&d.isAttributeValue?(m&&"="==h&&C("`&` did not start a character reference"),e):(m&&C("named character reference was not terminated by a semicolon"),v[p]+(h||"")))})};O.options={isAttributeValue:!1,strict:!1};var S={version:"1.1.1",encode:k,decode:O,escape:function(e){return e.replace(p,function(e){return i[e]})},unescape:O};if("function"==typeof define&&"object"==typeof define.amd&&define.amd)define(function(){return S});else if(t&&!t.nodeType)if(n)n.exports=S;else for(var D in S)_(S,D)&&(t[D]=S[D]);else e.he=S}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],104:[function(e,t,n){var r=e("http"),i=e("url"),o=t.exports;for(var a in r)r.hasOwnProperty(a)&&(o[a]=r[a]);function s(e){if("string"==typeof e&&(e=i.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}o.request=function(e,t){return e=s(e),r.request.call(this,e,t)},o.get=function(e,t){return e=s(e),r.get.call(this,e,t)}},{http:156,url:162}],105:[function(e,t,n){n.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,l=u>>1,c=-7,f=n?i-1:0,p=n?-1:1,h=e[t+f];for(f+=p,o=h&(1<<-c)-1,h>>=-c,c+=s;0<c;o=256*o+e[t+f],f+=p,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;0<c;a=256*a+e[t+f],f+=p,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=l}return(h?-1:1)*a*Math.pow(2,o-r)},n.write=function(e,t,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<<l)-1,f=c>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,d=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),2<=(t+=1<=a+f?p/u:p*Math.pow(2,1-f))*u&&(a++,u/=2),c<=a+f?(s=0,a=c):1<=a+f?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));8<=i;e[n+h]=255&s,h+=d,s/=256,i-=8);for(a=a<<i|s,l+=i;0<l;e[n+h]=255&a,h+=d,a/=256,l-=8);e[n+h-d]|=128*m}},{}],106:[function(e,t,n){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],107:[function(e,t,n){function r(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}t.exports=function(e){return null!=e&&(r(e)||"function"==typeof(t=e).readFloatLE&&"function"==typeof t.slice&&r(t.slice(0,0))||!!e._isBuffer);var t}},{}],108:[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],109:[function(e,t,n){"use strict";var r=e("xml-char-classes");function i(e){return e.source.slice(1,-1)}t.exports=new RegExp("^["+i(r.letter)+"_]["+i(r.letter)+i(r.digit)+"\\.\\-_"+i(r.combiningChar)+i(r.extender)+"]*$")},{"xml-char-classes":165}],110:[function(e,t,n){n.endianness=function(){return"LE"},n.hostname=function(){return"undefined"!=typeof location?location.hostname:""},n.loadavg=function(){return[]},n.uptime=function(){return 0},n.freemem=function(){return Number.MAX_VALUE},n.totalmem=function(){return Number.MAX_VALUE},n.cpus=function(){return[]},n.type=function(){return"Browser"},n.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},n.networkInterfaces=n.getNetworkInterfaces=function(){return{}},n.arch=function(){return"javascript"},n.platform=function(){return"browser"},n.tmpdir=n.tmpDir=function(){return"/tmp"},n.EOL="\n",n.homedir=function(){return"/"}},{}],111:[function(e,t,l){(function(i){function o(e,t){for(var n=0,r=e.length-1;0<=r;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,a=function(e){return t.exec(e).slice(1)};function s(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}l.resolve=function(){for(var e="",t=!1,n=arguments.length-1;-1<=n&&!t;n--){var r=0<=n?arguments[n]:i.cwd();if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");r&&(e=r+"/"+e,t="/"===r.charAt(0))}return(t?"/":"")+(e=o(s(e.split("/"),function(e){return!!e}),!t).join("/"))||"."},l.normalize=function(e){var t=l.isAbsolute(e),n="/"===r(e,-1);return(e=o(s(e.split("/"),function(e){return!!e}),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e},l.isAbsolute=function(e){return"/"===e.charAt(0)},l.join=function(){var e=Array.prototype.slice.call(arguments,0);return l.normalize(s(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},l.relative=function(e,t){function n(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;0<=n&&""===e[n];n--);return n<t?[]:e.slice(t,n-t+1)}e=l.resolve(e).substr(1),t=l.resolve(t).substr(1);for(var r=n(e.split("/")),i=n(t.split("/")),o=Math.min(r.length,i.length),a=o,s=0;s<o;s++)if(r[s]!==i[s]){a=s;break}var u=[];for(s=a;s<r.length;s++)u.push("..");return(u=u.concat(i.slice(a))).join("/")},l.sep="/",l.delimiter=":",l.dirname=function(e){var t=a(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},l.basename=function(e,t){var n=a(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},l.extname=function(e){return a(e)[3]};var r="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,e("_process"))},{_process:113}],112:[function(e,t,n){(function(s){"use strict";!s.version||0===s.version.indexOf("v0.")||0===s.version.indexOf("v1.")&&0!==s.version.indexOf("v1.8.")?t.exports={nextTick:function(e,t,n,r){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,o,a=arguments.length;switch(a){case 0:case 1:return s.nextTick(e);case 2:return s.nextTick(function(){e.call(null,t)});case 3:return s.nextTick(function(){e.call(null,t,n)});case 4:return s.nextTick(function(){e.call(null,t,n,r)});default:for(i=new Array(a-1),o=0;o<i.length;)i[o++]=arguments[o];return s.nextTick(function(){e.apply(null,i)})}}}:t.exports=s}).call(this,e("_process"))},{_process:113}],113:[function(e,t,n){var r,i,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(t){if(r===setTimeout)return setTimeout(t,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(e){r=a}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var l,c=[],f=!1,p=-1;function h(){f&&l&&(f=!1,l.length?c=l.concat(c):p=-1,c.length&&d())}function d(){if(!f){var e=u(h);f=!0;for(var t=c.length;t;){for(l=c,c=[];++p<t;)l&&l[p].run();p=-1,t=c.length}l=null,f=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new m(e,t)),1!==c.length||f||u(d)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],114:[function(e,R,F){(function(T){!function(e){var t="object"==typeof F&&F&&!F.nodeType&&F,n="object"==typeof R&&R&&!R.nodeType&&R,r="object"==typeof T&&T;r.global!==r&&r.window!==r&&r.self!==r||(e=r);var i,o,v=2147483647,b=36,y=1,_=26,a=38,s=700,w=72,E=128,A="-",u=/^xn--/,l=/[^\x20-\x7E]/,c=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=b-y,x=Math.floor,C=String.fromCharCode;function k(e){throw new RangeError(f[e])}function h(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function d(e,t){var n=e.split("@"),r="";return 1<n.length&&(r=n[0]+"@",e=n[1]),r+h((e=e.replace(c,".")).split("."),t).join(".")}function O(e){for(var t,n,r=[],i=0,o=e.length;i<o;)55296<=(t=e.charCodeAt(i++))&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function S(e){return h(e,function(e){var t="";return 65535<e&&(t+=C((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=C(e)}).join("")}function D(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function B(e,t,n){var r=0;for(e=n?x(e/s):e>>1,e+=x(e/t);p*_>>1<e;r+=b)e=x(e/p);return x(r+(p+1)*e/(e+a))}function m(e){var t,n,r,i,o,a,s,u,l,c,f,p=[],h=e.length,d=0,m=E,g=w;for((n=e.lastIndexOf(A))<0&&(n=0),r=0;r<n;++r)128<=e.charCodeAt(r)&&k("not-basic"),p.push(e.charCodeAt(r));for(i=0<n?n+1:0;i<h;){for(o=d,a=1,s=b;h<=i&&k("invalid-input"),f=e.charCodeAt(i++),(b<=(u=f-48<10?f-22:f-65<26?f-65:f-97<26?f-97:b)||u>x((v-d)/a))&&k("overflow"),d+=u*a,!(u<(l=s<=g?y:g+_<=s?_:s-g));s+=b)a>x(v/(c=b-l))&&k("overflow"),a*=c;g=B(d-o,t=p.length+1,0==o),x(d/t)>v-m&&k("overflow"),m+=x(d/t),d%=t,p.splice(d++,0,m)}return S(p)}function g(e){var t,n,r,i,o,a,s,u,l,c,f,p,h,d,m,g=[];for(p=(e=O(e)).length,t=E,o=w,a=n=0;a<p;++a)(f=e[a])<128&&g.push(C(f));for(r=i=g.length,i&&g.push(A);r<p;){for(s=v,a=0;a<p;++a)t<=(f=e[a])&&f<s&&(s=f);for(s-t>x((v-n)/(h=r+1))&&k("overflow"),n+=(s-t)*h,t=s,a=0;a<p;++a)if((f=e[a])<t&&++n>v&&k("overflow"),f==t){for(u=n,l=b;!(u<(c=l<=o?y:o+_<=l?_:l-o));l+=b)m=u-c,d=b-c,g.push(C(D(c+m%d,0))),u=x(m/d);g.push(C(D(u,0))),o=B(n,h,r==i),n=0,++r}++n,++t}return g.join("")}if(i={version:"1.4.1",ucs2:{decode:O,encode:S},decode:m,encode:g,toASCII:function(e){return d(e,function(e){return l.test(e)?"xn--"+g(e):e})},toUnicode:function(e){return d(e,function(e){return u.test(e)?m(e.slice(4).toLowerCase()):e})}},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return i});else if(t&&n)if(R.exports==t)n.exports=i;else for(o in i)i.hasOwnProperty(o)&&(t[o]=i[o]);else e.punycode=i}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],115:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){t=t||"&",n=n||"=";var i={};if("string"!=typeof e||0===e.length)return i;var o=/\+/g;e=e.split(t);var a=1e3;r&&"number"==typeof r.maxKeys&&(a=r.maxKeys);var s,u,l=e.length;0<a&&a<l&&(l=a);for(var c=0;c<l;++c){var f,p,h,d,m=e[c].replace(o,"%20"),g=m.indexOf(n);0<=g?(f=m.substr(0,g),p=m.substr(g+1)):(f=m,p=""),h=decodeURIComponent(f),d=decodeURIComponent(p),s=i,u=h,Object.prototype.hasOwnProperty.call(s,u)?v(i[h])?i[h].push(d):i[h]=[i[h],d]:i[h]=d}return i};var v=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],116:[function(e,t,n){"use strict";var o=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(n,r,i,e){return r=r||"&",i=i||"=",null===n&&(n=void 0),"object"==typeof n?s(u(n),function(e){var t=encodeURIComponent(o(e))+i;return a(n[e])?s(n[e],function(e){return t+encodeURIComponent(o(e))}).join(r):t+encodeURIComponent(o(n[e]))}).join(r):e?encodeURIComponent(o(e))+i+encodeURIComponent(o(n)):""};var a=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function s(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var u=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},{}],117:[function(e,t,n){"use strict";n.decode=n.parse=e("./decode"),n.encode=n.stringify=e("./encode")},{"./decode":115,"./encode":116}],118:[function(e,t,n){"use strict";var r=e("process-nextick-args"),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=f;var o=e("core-util-is");o.inherits=e("inherits");var a=e("./_stream_readable"),s=e("./_stream_writable");o.inherits(f,a);for(var u=i(s.prototype),l=0;l<u.length;l++){var c=u[l];f.prototype[c]||(f.prototype[c]=s.prototype[c])}function f(e){if(!(this instanceof f))return new f(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",p)}function p(){this.allowHalfOpen||this._writableState.ended||r.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),f.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},{"./_stream_readable":120,"./_stream_writable":122,"core-util-is":101,inherits:106,"process-nextick-args":112}],119:[function(e,t,n){"use strict";t.exports=o;var r=e("./_stream_transform"),i=e("core-util-is");function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=e("inherits"),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},{"./_stream_transform":121,"core-util-is":101,inherits:106}],120:[function(F,L,e){(function(g,e){"use strict";var v=F("process-nextick-args");L.exports=p;var a,b=F("isarray");p.ReadableState=o;F("events").EventEmitter;var y=function(e,t){return e.listeners(t).length},i=F("./internal/streams/stream"),l=F("safe-buffer").Buffer,c=e.Uint8Array||function(){};var t=F("core-util-is");t.inherits=F("inherits");var n=F("util"),_=void 0;_=n&&n.debuglog?n.debuglog("stream"):function(){};var s,u=F("./internal/streams/BufferList"),r=F("./internal/streams/destroy");t.inherits(p,i);var f=["error","close","destroy","pause","resume"];function o(e,t){e=e||{};var n=t instanceof(a=a||F("./_stream_duplex"));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,i=e.readableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n&&(i||0===i)?i:o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new u,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=F("string_decoder/").StringDecoder),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function p(e){if(a=a||F("./_stream_duplex"),!(this instanceof p))return new p(e);this._readableState=new o(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),i.call(this)}function h(e,t,n,r,i){var o,a,s,u=e._readableState;null===t?(u.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,E(e)}(e,u)):(i||(o=function(e,t){var n;r=t,l.isBuffer(r)||r instanceof c||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(u,t)),o?e.emit("error",o):u.objectMode||t&&0<t.length?("string"==typeof t||u.objectMode||Object.getPrototypeOf(t)===l.prototype||(a=t,t=l.from(a)),r?u.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):d(e,u,t,!0):u.ended?e.emit("error",new Error("stream.push() after EOF")):(u.reading=!1,u.decoder&&!n?(t=u.decoder.write(t),u.objectMode||0!==t.length?d(e,u,t,!1):x(e,u)):d(e,u,t,!1))):r||(u.reading=!1));return!(s=u).ended&&(s.needReadable||s.length<s.highWaterMark||0===s.length)}function d(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&E(e)),x(e,t)}Object.defineProperty(p.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),p.prototype.destroy=r.destroy,p.prototype._undestroy=r.undestroy,p.prototype._destroy=function(e,t){this.push(null),t(e)},p.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=l.from(e,t),t=""),n=!0),h(this,e,t,!1,n)},p.prototype.unshift=function(e){return h(this,e,null,!0,!1)},p.prototype.isPaused=function(){return!1===this._readableState.flowing},p.prototype.setEncoding=function(e){return s||(s=F("string_decoder/").StringDecoder),this._readableState.decoder=new s(e),this._readableState.encoding=e,this};var m=8388608;function w(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=(m<=(n=e)?n=m:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++),n)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0));var n}function E(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(_("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?v.nextTick(A,e):A(e))}function A(e){_("emit readable"),e.emit("readable"),S(e)}function x(e,t){t.readingMore||(t.readingMore=!0,v.nextTick(C,e,t))}function C(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(_("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function k(e){_("readable nexttick read 0"),e.read(0)}function O(e,t){t.reading||(_("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),S(e),t.flowing&&!t.reading&&e.read(0)}function S(e){var t=e._readableState;for(_("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;e-=i.length;for(;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n).data=o.slice(a);break}++r}return t.length-=r,i}(e,t):function(e,t){var n=l.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0===(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r).data=o.slice(a);break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function B(e){var t=e._readableState;if(0<t.length)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,v.nextTick(T,t,e))}function T(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function R(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}p.prototype.read=function(e){_("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return _("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?B(this):E(this),null;if(0===(e=w(e,t))&&t.ended)return 0===t.length&&B(this),null;var r,i=t.needReadable;return _("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&_("length less than watermark",i=!0),t.ended||t.reading?_("reading or ended",i=!1):i&&(_("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=w(n,t))),null===(r=0<e?D(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&B(this)),null!==r&&this.emit("data",r),r},p.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},p.prototype.pipe=function(n,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=n;break;case 1:i.pipes=[i.pipes,n];break;default:i.pipes.push(n)}i.pipesCount+=1,_("pipe count=%d opts=%j",i.pipesCount,e);var t=(!e||!1!==e.end)&&n!==g.stdout&&n!==g.stderr?a:m;function o(e,t){_("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,_("cleanup"),n.removeListener("close",h),n.removeListener("finish",d),n.removeListener("drain",u),n.removeListener("error",p),n.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",m),r.removeListener("data",f),l=!0,!i.awaitDrain||n._writableState&&!n._writableState.needDrain||u())}function a(){_("onend"),n.end()}i.endEmitted?v.nextTick(t):r.once("end",t),n.on("unpipe",o);var s,u=(s=r,function(){var e=s._readableState;_("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&y(s,"data")&&(e.flowing=!0,S(s))});n.on("drain",u);var l=!1;var c=!1;function f(e){_("ondata"),(c=!1)!==n.write(e)||c||((1===i.pipesCount&&i.pipes===n||1<i.pipesCount&&-1!==R(i.pipes,n))&&!l&&(_("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,c=!0),r.pause())}function p(e){_("onerror",e),m(),n.removeListener("error",p),0===y(n,"error")&&n.emit("error",e)}function h(){n.removeListener("finish",d),m()}function d(){_("onfinish"),n.removeListener("close",h),m()}function m(){_("unpipe"),r.unpipe(n)}return r.on("data",f),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?b(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(n,"error",p),n.once("close",h),n.once("finish",d),n.emit("pipe",r),i.flowing||(_("pipe resume"),r.resume()),n},p.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,n);return this}var a=R(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},p.prototype.addListener=p.prototype.on=function(e,t){var n=i.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&E(this):v.nextTick(k,this))}return n},p.prototype.resume=function(){var e,t,n=this._readableState;return n.flowing||(_("resume"),n.flowing=!0,e=this,(t=n).resumeScheduled||(t.resumeScheduled=!0,v.nextTick(O,e,t))),this},p.prototype.pause=function(){return _("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(_("pause"),this._readableState.flowing=!1,this.emit("pause")),this},p.prototype.wrap=function(t){var n=this,r=this._readableState,i=!1;for(var e in t.on("end",function(){if(_("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&n.push(e)}n.push(null)}),t.on("data",function(e){(_("wrapped data"),r.decoder&&(e=r.decoder.write(e)),r.objectMode&&null==e)||(r.objectMode||e&&e.length)&&(n.push(e)||(i=!0,t.pause()))}),t)void 0===this[e]&&"function"==typeof t[e]&&(this[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e));for(var o=0;o<f.length;o++)t.on(f[o],this.emit.bind(this,f[o]));return this._read=function(e){_("wrapped _read",e),i&&(i=!1,t.resume())},this},p._fromList=D}).call(this,F("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":118,"./internal/streams/BufferList":123,"./internal/streams/destroy":124,"./internal/streams/stream":125,_process:113,"core-util-is":101,events:102,inherits:106,isarray:108,"process-nextick-args":112,"safe-buffer":144,"string_decoder/":160,util:2}],121:[function(e,t,n){"use strict";t.exports=o;var r=e("./_stream_duplex"),i=e("core-util-is");function o(e){if(!(this instanceof o))return new o(e);r.call(this,e),this._transformState={afterTransform:function(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,(n.writecb=null)!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",a)}function a(){var n=this;"function"==typeof this._flush?this._flush(function(e,t){s(n,e,t)}):s(this,null,null)}function s(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=e("inherits"),i.inherits(o,r),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},o.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},o.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,function(e){t(e),n.emit("close")})}},{"./_stream_duplex":118,"core-util-is":101,inherits:106}],122:[function(E,A,e){(function(e,t){"use strict";var v=E("process-nextick-args");function f(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}A.exports=l;var s,p=!e.browser&&-1<["v0.10","v0.9."].indexOf(e.version.slice(0,5))?setImmediate:v.nextTick;l.WritableState=u;var n=E("core-util-is");n.inherits=E("inherits");var r={deprecate:E("util-deprecate")},i=E("./internal/streams/stream"),b=E("safe-buffer").Buffer,y=t.Uint8Array||function(){};var o,a=E("./internal/streams/destroy");function _(){}function u(e,t){s=s||E("./_stream_duplex"),e=e||{};var n=t instanceof s;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var r=e.highWaterMark,i=e.writableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n&&(i||0===i)?i:o,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var a=(this.destroyed=!1)===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(f=n,f.writing=!1,f.writecb=null,f.length-=f.writelen,f.writelen=0,t)a=e,s=n,u=r,l=t,c=i,--s.pendingcb,u?(v.nextTick(c,l),v.nextTick(g,a,s),a._writableState.errorEmitted=!0,a.emit("error",l)):(c(l),a._writableState.errorEmitted=!0,a.emit("error",l),g(a,s));else{var o=m(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||d(e,n),r?p(h,e,n,o,i):h(e,n,o,i)}var a,s,u,l,c;var f}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new f(this)}function l(e){if(s=s||E("./_stream_duplex"),!(o.call(l,this)||this instanceof s))return new l(e);this._writableState=new u(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),i.call(this)}function w(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function h(e,t,n,r){var i,o;n||(i=e,0===(o=t).length&&o.needDrain&&(o.needDrain=!1,i.emit("drain"))),t.pendingcb--,r(),g(e,t)}function d(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var a=0,s=!0;n;)(i[a]=n).isBuf||(s=!1),n=n.next,a+=1;i.allBuffers=s,w(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new f(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,c=n.callback;if(w(e,t,!1,t.objectMode?1:u.length,u,l,c),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function m(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function c(t,n){t._final(function(e){n.pendingcb--,e&&t.emit("error",e),n.prefinished=!0,t.emit("prefinish"),g(t,n)})}function g(e,t){var n,r,i=m(t);return i&&(n=e,(r=t).prefinished||r.finalCalled||("function"==typeof n._final?(r.pendingcb++,r.finalCalled=!0,v.nextTick(c,n,r)):(r.prefinished=!0,n.emit("prefinish"))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),i}n.inherits(l,i),u.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(u.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(l,Symbol.hasInstance,{value:function(e){return!!o.call(this,e)||this===l&&(e&&e._writableState instanceof u)}})):o=function(e){return e instanceof this},l.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},l.prototype.write=function(e,t,n){var r,i,o,a,s,u,l,c,f,p,h,d=this._writableState,m=!1,g=!d.objectMode&&(r=e,b.isBuffer(r)||r instanceof y);return g&&!b.isBuffer(e)&&(i=e,e=b.from(i)),"function"==typeof t&&(n=t,t=null),g?t="buffer":t||(t=d.defaultEncoding),"function"!=typeof n&&(n=_),d.ended?(f=this,p=n,h=new Error("write after end"),f.emit("error",h),v.nextTick(p,h)):(g||(o=this,a=d,u=n,l=!0,c=!1,null===(s=e)?c=new TypeError("May not write null values to stream"):"string"==typeof s||void 0===s||a.objectMode||(c=new TypeError("Invalid non-string/buffer chunk")),c&&(o.emit("error",c),v.nextTick(u,c),l=!1),l))&&(d.pendingcb++,m=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=b.from(t,n));return t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var u=t.length<t.highWaterMark;u||(t.needDrain=!0);if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else w(e,t,!1,s,r,i,o);return u}(this,d,g,e,t,n)),m},l.prototype.cork=function(){this._writableState.corked++},l.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||d(this,e))},l.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},l.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},l.prototype._writev=null,l.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,t=e=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,g(e,t),n&&(t.finished?v.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),l.prototype.destroy=a.destroy,l.prototype._undestroy=a.undestroy,l.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,E("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":118,"./internal/streams/destroy":124,"./internal/streams/stream":125,_process:113,"core-util-is":101,inherits:106,"process-nextick-args":112,"safe-buffer":144,"util-deprecate":164}],123:[function(e,t,n){"use strict";var s=e("safe-buffer").Buffer,r=e("util");t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};0<this.length?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return s.alloc(0);if(1===this.length)return this.head.data;for(var t,n,r,i=s.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,n=i,r=a,t.copy(n,r),a+=o.data.length,o=o.next;return i},e}(),r&&r.inspect&&r.inspect.custom&&(t.exports.prototype[r.inspect.custom]=function(){var e=r.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":144,util:2}],124:[function(e,t,n){"use strict";var o=e("process-nextick-args");function a(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return r||i?t?t(e):!e||this._writableState&&this._writableState.errorEmitted||o.nextTick(a,this,e):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(o.nextTick(a,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":112}],125:[function(e,t,n){t.exports=e("events").EventEmitter},{events:102}],126:[function(e,t,n){(((n=t.exports=e("./lib/_stream_readable.js")).Stream=n).Readable=n).Writable=e("./lib/_stream_writable.js"),n.Duplex=e("./lib/_stream_duplex.js"),n.Transform=e("./lib/_stream_transform.js"),n.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":118,"./lib/_stream_passthrough.js":119,"./lib/_stream_readable.js":120,"./lib/_stream_transform.js":121,"./lib/_stream_writable.js":122}],127:[function(e,t,n){"use strict";t.exports={ABSOLUTE:"absolute",PATH_RELATIVE:"pathRelative",ROOT_RELATIVE:"rootRelative",SHORTEST:"shortest"}},{}],128:[function(e,t,n){"use strict";var m=e("./constants");function g(e,t){var n=t.removeEmptyQueries&&e.extra.relation.minimumPort;return e.query.string[n?"stripped":"full"]}function v(e,t){return!e.extra.relation.minimumQuery||t.output===m.ABSOLUTE||t.output===m.ROOT_RELATIVE}function b(e,t){var n=t.removeDirectoryIndexes&&e.extra.resourceIsIndex,r=e.extra.relation.minimumResource&&t.output!==m.ABSOLUTE&&t.output!==m.ROOT_RELATIVE;return!!e.resource&&!r&&!n}t.exports=function(e,t){var n,r,i,o,a,s,u,l,c,f,p,h,d="";return d+=(r=t,i="",((n=e).extra.relation.maximumHost||r.output===m.ABSOLUTE)&&(n.extra.relation.minimumScheme&&r.schemeRelative&&r.output!==m.ABSOLUTE?i+="//":i+=n.scheme+"://"),i),d+=(a=t,!(o=e).auth||a.removeAuth||!o.extra.relation.maximumHost&&a.output!==m.ABSOLUTE?"":o.auth+"@"),d+=(u=t,(s=e).host.full&&(s.extra.relation.maximumAuth||u.output===m.ABSOLUTE)?s.host.full:""),d+=(l=e).port&&!l.extra.portIsDefault&&l.extra.relation.maximumHost?":"+l.port:"",d+=function(e,t){var n="",r=e.path.absolute.string,i=e.path.relative.string,o=b(e,t);if(e.extra.relation.maximumHost||t.output===m.ABSOLUTE||t.output===m.ROOT_RELATIVE)n=r;else if(i.length<=r.length&&t.output===m.SHORTEST||t.output===m.PATH_RELATIVE){if(""===(n=i)){var a=v(e,t)&&!!g(e,t);e.extra.relation.maximumPath&&!o?n="./":!e.extra.relation.overridesQuery||o||a||(n="./")}}else n=r;return"/"!==n||o||!t.removeRootTrailingSlash||e.extra.relation.minimumPort&&t.output!==m.ABSOLUTE||(n=""),n}(e,t),d+=b(c=e,t)?c.resource:"",d+=v(f=e,p=t)?g(f,p):"",d+=(h=e).hash?h.hash:""}},{"./constants":127}],129:[function(e,t,n){"use strict";var r=e("./constants"),i=e("./format"),o=e("./options"),a=e("./util/object"),s=e("./parse"),u=e("./relate");function l(e,t){this.options=o(t,{defaultPorts:{ftp:21,http:80,https:443},directoryIndexes:["index.html"],ignore_www:!1,output:l.SHORTEST,rejectedSchemes:["data","javascript","mailto"],removeAuth:!1,removeDirectoryIndexes:!0,removeEmptyQueries:!1,removeRootTrailingSlash:!0,schemeRelative:!0,site:void 0,slashesDenoteHost:!0}),this.from=s.from(e,this.options,null)}l.prototype.relate=function(e,t,n){if(a.isPlainObject(t)?(n=t,t=e,e=null):t||(t=e,e=null),n=o(n,this.options),e=e||n.site,!(e=s.from(e,n,this.from))||!e.href)throw new Error("from value not defined.");if(e.extra.hrefInfo.minimumPathOnly)throw new Error("from value supplied is not absolute: "+e.href);return!1===(t=s.to(t,n)).valid?t.href:(t=u(e,t,n),t=i(t,n))},l.relate=function(e,t,n){return(new l).relate(e,t,n)},a.shallowMerge(l,r),t.exports=l},{"./constants":127,"./format":128,"./options":130,"./parse":133,"./relate":140,"./util/object":142}],130:[function(e,t,n){"use strict";var a=e("./util/object");t.exports=function(e,t){if(a.isPlainObject(e)){var n={};for(var r in t)t.hasOwnProperty(r)&&(void 0!==e[r]?n[r]=(i=e[r],(o=t[r])instanceof Object&&i instanceof Object?o instanceof Array&&i instanceof Array?o.concat(i):a.shallowMerge(i,o):i):n[r]=t[r]);return n}var i,o;return t}},{"./util/object":142}],131:[function(e,t,n){"use strict";t.exports=function(e,t){if(t.ignore_www){var n=e.host.full;if(n){var r=n;0===n.indexOf("www.")&&(r=n.substr(4)),e.host.stripped=r}}}},{}],132:[function(e,t,n){"use strict";t.exports=function(e){var t=!(e.scheme||e.auth||e.host.full||e.port),n=t&&!e.path.absolute.string,r=n&&!e.resource,i=r&&!e.query.string.full.length,o=i&&!e.hash;e.extra.hrefInfo.minimumPathOnly=t,e.extra.hrefInfo.minimumResourceOnly=n,e.extra.hrefInfo.minimumQueryOnly=r,e.extra.hrefInfo.minimumHashOnly=i,e.extra.hrefInfo.empty=o}},{}],133:[function(e,t,n){"use strict";var r=e("./hrefInfo"),i=e("./host"),o=e("./path"),a=e("./port"),s=e("./query"),u=e("./urlstring"),l=e("../util/path");function c(e,t){var n=u(e,t);return!1===n.valid||(i(n,t),a(n,t),o(n,t),s(n,t),r(n)),n}t.exports={from:function(e,t,n){if(e){var r=c(e,t),i=l.resolveDotSegments(r.path.absolute.array);return r.path.absolute.array=i,r.path.absolute.string="/"+l.join(i),r}return n},to:c}},{"../util/path":143,"./host":131,"./hrefInfo":132,"./path":134,"./port":135,"./query":136,"./urlstring":137}],134:[function(e,t,n){"use strict";function s(e){if("/"!==e){var t=[];return e.split("/").forEach(function(e){""!==e&&t.push(e)}),t}return[]}t.exports=function(e,t){var n,r,i=e.path.absolute.string;if(i){var o=i.lastIndexOf("/");if(-1<o){if(++o<i.length){var a=i.substr(o);"."!==a&&".."!==a?(e.resource=a,i=i.substr(0,o)):i+="/"}e.path.absolute.string=i,e.path.absolute.array=s(i)}else"."===i||".."===i?(i+="/",e.path.absolute.string=i,e.path.absolute.array=s(i)):(e.resource=i,e.path.absolute.string=null);e.extra.resourceIsIndex=(n=e.resource,r=!1,t.directoryIndexes.every(function(e){return e!==n||(r=!0,!1)}),r)}}},{}],135:[function(e,t,n){"use strict";t.exports=function(e,t){var n=-1;for(var r in t.defaultPorts)if(r===e.scheme&&t.defaultPorts.hasOwnProperty(r)){n=t.defaultPorts[r];break}-1<n&&(n=n.toString(),null===e.port&&(e.port=n),e.extra.portIsDefault=e.port===n)}},{}],136:[function(e,t,n){"use strict";var a=Object.prototype.hasOwnProperty;function r(e,t){var n=0,r="";for(var i in e)if(""!==i&&!0===a.call(e,i)){var o=e[i];""===o&&t||(r+=1==++n?"?":"&",i=encodeURIComponent(i),r+=""!==o?i+"="+encodeURIComponent(o).replace(/%20/g,"+"):i)}return r}t.exports=function(e,t){e.query.string.full=r(e.query.object,!1),t.removeEmptyQueries&&(e.query.string.stripped=r(e.query.object,!0))}},{}],137:[function(e,t,n){"use strict";var a=e("url").parse;t.exports=function(e,t){return i=e,o=!0,t.rejectedSchemes.every(function(e){return o=!(0===i.indexOf(e+":"))}),o?(n=a(e,!0,t.slashesDenoteHost),(r=n.protocol)&&r.indexOf(":")===r.length-1&&(r=r.substr(0,r.length-1)),n.host={full:n.hostname,stripped:null},n.path={absolute:{array:null,string:n.pathname},relative:{array:null,string:null}},n.query={object:n.query,string:{full:null,stripped:null}},n.extra={hrefInfo:{minimumPathOnly:null,minimumResourceOnly:null,minimumQueryOnly:null,minimumHashOnly:null,empty:null,separatorOnlyQuery:"?"===n.search},portIsDefault:null,relation:{maximumScheme:null,maximumAuth:null,maximumHost:null,maximumPort:null,maximumPath:null,maximumResource:null,maximumQuery:null,maximumHash:null,minimumScheme:null,minimumAuth:null,minimumHost:null,minimumPort:null,minimumPath:null,minimumResource:null,minimumQuery:null,minimumHash:null,overridesQuery:null},resourceIsIndex:null,slashes:n.slashes},n.resource=null,n.scheme=r,delete n.hostname,delete n.pathname,delete n.protocol,delete n.search,delete n.slashes,n):{href:e,valid:!1};var n,r,i,o}},{url:162}],138:[function(e,t,n){"use strict";var s=e("./findRelation"),u=e("../util/object"),l=e("../util/path");t.exports=function(e,t,n){var r,i,o,a;s.upToPath(e,t,n),e.extra.relation.minimumScheme&&(e.scheme=t.scheme),e.extra.relation.minimumAuth&&(e.auth=t.auth),e.extra.relation.minimumHost&&(e.host=u.clone(t.host)),e.extra.relation.minimumPort&&(i=t,(r=e).port=i.port,r.extra.portIsDefault=i.extra.portIsDefault),e.extra.relation.minimumScheme&&function(e,t){if(e.extra.relation.maximumHost||!e.extra.hrefInfo.minimumResourceOnly){var n=e.path.absolute.array,r="/";n?(e.extra.hrefInfo.minimumPathOnly&&0!==e.path.absolute.string.indexOf("/")&&(n=t.path.absolute.array.concat(n)),n=l.resolveDotSegments(n),r+=l.join(n)):n=[],e.path.absolute.array=n,e.path.absolute.string=r}else e.path=u.clone(t.path)}(e,t),s.pathOn(e,t,n),e.extra.relation.minimumResource&&(a=t,(o=e).resource=a.resource,o.extra.resourceIsIndex=a.extra.resourceIsIndex),e.extra.relation.minimumQuery&&(e.query=u.clone(t.query)),e.extra.relation.minimumHash&&(e.hash=t.hash)}},{"../util/object":142,"../util/path":143,"./findRelation":139}],139:[function(e,t,n){"use strict";t.exports={pathOn:function(e,t,n){var r=e.extra.hrefInfo.minimumQueryOnly,i=e.extra.hrefInfo.minimumHashOnly,o=e.extra.hrefInfo.empty,a=e.extra.relation.minimumPort,s=e.extra.relation.minimumScheme,u=a&&e.path.absolute.string===t.path.absolute.string,l=e.resource===t.resource||!e.resource&&t.extra.resourceIsIndex||n.removeDirectoryIndexes&&e.extra.resourceIsIndex&&!t.resource,c=u&&(l||r||i||o),f=n.removeEmptyQueries?"stripped":"full",p=e.query.string[f],h=t.query.string[f],d=c&&!!p&&p===h||(i||o)&&!e.extra.hrefInfo.separatorOnlyQuery,m=d&&e.hash===t.hash;e.extra.relation.minimumPath=u,e.extra.relation.minimumResource=c,e.extra.relation.minimumQuery=d,e.extra.relation.minimumHash=m,e.extra.relation.maximumPort=!s||s&&!u,e.extra.relation.maximumPath=!s||s&&!c,e.extra.relation.maximumResource=!s||s&&!d,e.extra.relation.maximumQuery=!s||s&&!m,e.extra.relation.maximumHash=!s||s&&!m,e.extra.relation.overridesQuery=u&&e.extra.relation.maximumResource&&!d&&!!h},upToPath:function(e,t,n){var r=e.extra.hrefInfo.minimumPathOnly,i=e.scheme===t.scheme||!e.scheme,o=i&&(e.auth===t.auth||n.removeAuth||r),a=n.ignore_www?"stripped":"full",s=o&&(e.host[a]===t.host[a]||r),u=s&&(e.port===t.port||r);e.extra.relation.minimumScheme=i,e.extra.relation.minimumAuth=o,e.extra.relation.minimumHost=s,e.extra.relation.minimumPort=u,e.extra.relation.maximumScheme=!i||i&&!o,e.extra.relation.maximumAuth=!i||i&&!s,e.extra.relation.maximumHost=!i||i&&!u}}},{}],140:[function(e,t,n){"use strict";var r=e("./absolutize"),i=e("./relativize");t.exports=function(e,t,n){return r(t,e,n),i(t,e,n),t}},{"./absolutize":138,"./relativize":141}],141:[function(e,t,n){"use strict";var l=e("../util/path");t.exports=function(e,t,n){if(e.extra.relation.minimumScheme){var r=(i=e.path.absolute.array,o=t.path.absolute.array,a=[],s=!0,u=-1,o.forEach(function(e,t){s&&(i[t]!==e?s=!1:u=t),s||a.push("..")}),i.forEach(function(e,t){u<t&&a.push(e)}),a);e.path.relative.array=r,e.path.relative.string=l.join(r)}var i,o,a,s,u}},{"../util/path":143}],142:[function(e,t,n){"use strict";t.exports={clone:function e(t){if(t instanceof Object){var n=t instanceof Array?[]:{};for(var r in t)t.hasOwnProperty(r)&&(n[r]=e(t[r]));return n}return t},isPlainObject:function(e){return!!e&&"object"==typeof e&&e.constructor===Object},shallowMerge:function(e,t){if(e instanceof Object&&t instanceof Object)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}}},{}],143:[function(e,t,n){"use strict";t.exports={join:function(e){return 0<e.length?e.join("/")+"/":""},resolveDotSegments:function(e){var t=[];return e.forEach(function(e){".."!==e?"."!==e&&t.push(e):0<t.length&&t.splice(t.length-1,1)}),t}}},{}],144:[function(e,t,n){var r=e("buffer"),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,n),n.Buffer=a),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},{buffer:4}],145:[function(e,t,n){var o=e("./util"),a=Object.prototype.hasOwnProperty,s="undefined"!=typeof Map;function u(){this._array=[],this._set=s?new Map:Object.create(null)}u.fromArray=function(e,t){for(var n=new u,r=0,i=e.length;r<i;r++)n.add(e[r],t);return n},u.prototype.size=function(){return s?this._set.size:Object.getOwnPropertyNames(this._set).length},u.prototype.add=function(e,t){var n=s?e:o.toSetString(e),r=s?this.has(e):a.call(this._set,n),i=this._array.length;r&&!t||this._array.push(e),r||(s?this._set.set(e,i):this._set[n]=i)},u.prototype.has=function(e){if(s)return this._set.has(e);var t=o.toSetString(e);return a.call(this._set,t)},u.prototype.indexOf=function(e){if(s){var t=this._set.get(e);if(0<=t)return t}else{var n=o.toSetString(e);if(a.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},u.prototype.at=function(e){if(0<=e&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},u.prototype.toArray=function(){return this._array.slice()},n.ArraySet=u},{"./util":154}],146:[function(e,t,n){var c=e("./base64");n.encode=function(e){for(var t,n,r="",i=(n=e)<0?1+(-n<<1):0+(n<<1);t=31&i,0<(i>>>=5)&&(t|=32),r+=c.encode(t),0<i;);return r},n.decode=function(e,t,n){var r,i,o,a,s=e.length,u=0,l=0;do{if(s<=t)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=c.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));r=!!(32&i),u+=(i&=31)<<l,l+=5}while(r);n.value=(a=(o=u)>>1,1==(1&o)?-a:a),n.rest=t}},{"./base64":147}],147:[function(e,t,n){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");n.encode=function(e){if(0<=e&&e<r.length)return r[e];throw new TypeError("Must be between 0 and 63: "+e)},n.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},{}],148:[function(e,t,l){l.GREATEST_LOWER_BOUND=1,l.LEAST_UPPER_BOUND=2,l.search=function(e,t,n,r){if(0===t.length)return-1;var i=function e(t,n,r,i,o,a){var s=Math.floor((n-t)/2)+t,u=o(r,i[s],!0);return 0===u?s:0<u?1<n-s?e(s,n,r,i,o,a):a==l.LEAST_UPPER_BOUND?n<i.length?n:-1:s:1<s-t?e(t,s,r,i,o,a):a==l.LEAST_UPPER_BOUND?s:t<0?-1:t}(-1,t.length,e,t,n,r||l.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;0<=i-1&&0===n(t[i],t[i-1],!0);)--i;return i}},{}],149:[function(e,t,n){var s=e("./util");function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}r.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},r.prototype.add=function(e){var t,n,r,i,o,a;t=this._last,n=e,r=t.generatedLine,i=n.generatedLine,o=t.generatedColumn,a=n.generatedColumn,r<i||i==r&&o<=a||s.compareByGeneratedPositionsInflated(t,n)<=0?this._last=e:this._sorted=!1,this._array.push(e)},r.prototype.toArray=function(){return this._sorted||(this._array.sort(s.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},n.MappingList=r},{"./util":154}],150:[function(e,t,n){function c(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function f(e,t,n,r){if(n<r){var i=n-1;c(e,(u=n,l=r,Math.round(u+Math.random()*(l-u))),r);for(var o=e[r],a=n;a<r;a++)t(e[a],o)<=0&&c(e,i+=1,a);c(e,i+1,a);var s=i+1;f(e,t,n,s-1),f(e,t,s+1,r)}var u,l}n.quickSort=function(e,t){f(e,t,0,e.length-1)}},{}],151:[function(e,t,n){var y=e("./util"),u=e("./binary-search"),f=e("./array-set").ArraySet,_=e("./base64-vlq"),w=e("./quick-sort").quickSort;function a(e){var t=e;return"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,""))),null!=t.sections?new r(t):new p(t)}function p(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var n=y.getArg(t,"version"),r=y.getArg(t,"sources"),i=y.getArg(t,"names",[]),o=y.getArg(t,"sourceRoot",null),a=y.getArg(t,"sourcesContent",null),s=y.getArg(t,"mappings"),u=y.getArg(t,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);r=r.map(String).map(y.normalize).map(function(e){return o&&y.isAbsolute(o)&&y.isAbsolute(e)?y.relative(o,e):e}),this._names=f.fromArray(i.map(String),!0),this._sources=f.fromArray(r,!0),this.sourceRoot=o,this.sourcesContent=a,this._mappings=s,this.file=u}function E(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function r(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var n=y.getArg(t,"version"),r=y.getArg(t,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new f,this._names=new f;var i={line:-1,column:0};this._sections=r.map(function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var t=y.getArg(e,"offset"),n=y.getArg(t,"line"),r=y.getArg(t,"column");if(n<i.line||n===i.line&&r<i.column)throw new Error("Section offsets must be ordered and non-overlapping.");return i=t,{generatedOffset:{generatedLine:n+1,generatedColumn:r+1},consumer:new a(y.getArg(e,"map"))}})}a.fromSourceMap=function(e){return p.fromSourceMap(e)},a.prototype._version=3,a.prototype.__generatedMappings=null,Object.defineProperty(a.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),a.prototype.__originalMappings=null,Object.defineProperty(a.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),a.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return";"===n||","===n},a.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},a.GENERATED_ORDER=1,a.ORIGINAL_ORDER=2,a.GREATEST_LOWER_BOUND=1,a.LEAST_UPPER_BOUND=2,a.prototype.eachMapping=function(e,t,n){var r,i=t||null;switch(n||a.GENERATED_ORDER){case a.GENERATED_ORDER:r=this._generatedMappings;break;case a.ORIGINAL_ORDER:r=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var o=this.sourceRoot;r.map(function(e){var t=null===e.source?null:this._sources.at(e.source);return null!=t&&null!=o&&(t=y.join(o,t)),{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}},this).forEach(e,i)},a.prototype.allGeneratedPositionsFor=function(e){var t=y.getArg(e,"line"),n={source:y.getArg(e,"source"),originalLine:t,originalColumn:y.getArg(e,"column",0)};if(null!=this.sourceRoot&&(n.source=y.relative(this.sourceRoot,n.source)),!this._sources.has(n.source))return[];n.source=this._sources.indexOf(n.source);var r=[],i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",y.compareByOriginalPositions,u.LEAST_UPPER_BOUND);if(0<=i){var o=this._originalMappings[i];if(void 0===e.column)for(var a=o.originalLine;o&&o.originalLine===a;)r.push({line:y.getArg(o,"generatedLine",null),column:y.getArg(o,"generatedColumn",null),lastColumn:y.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++i];else for(var s=o.originalColumn;o&&o.originalLine===t&&o.originalColumn==s;)r.push({line:y.getArg(o,"generatedLine",null),column:y.getArg(o,"generatedColumn",null),lastColumn:y.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++i]}return r},n.SourceMapConsumer=a,(p.prototype=Object.create(a.prototype)).consumer=a,p.fromSourceMap=function(e){var t=Object.create(p.prototype),n=t._names=f.fromArray(e._names.toArray(),!0),r=t._sources=f.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var i=e._mappings.toArray().slice(),o=t.__generatedMappings=[],a=t.__originalMappings=[],s=0,u=i.length;s<u;s++){var l=i[s],c=new E;c.generatedLine=l.generatedLine,c.generatedColumn=l.generatedColumn,l.source&&(c.source=r.indexOf(l.source),c.originalLine=l.originalLine,c.originalColumn=l.originalColumn,l.name&&(c.name=n.indexOf(l.name)),a.push(c)),o.push(c)}return w(t.__originalMappings,y.compareByOriginalPositions),t},p.prototype._version=3,Object.defineProperty(p.prototype,"sources",{get:function(){return this._sources.toArray().map(function(e){return null!=this.sourceRoot?y.join(this.sourceRoot,e):e},this)}}),p.prototype._parseMappings=function(e,t){for(var n,r,i,o,a,s=1,u=0,l=0,c=0,f=0,p=0,h=e.length,d=0,m={},g={},v=[],b=[];d<h;)if(";"===e.charAt(d))s++,d++,u=0;else if(","===e.charAt(d))d++;else{for((n=new E).generatedLine=s,o=d;o<h&&!this._charIsMappingSeparator(e,o);o++);if(i=m[r=e.slice(d,o)])d+=r.length;else{for(i=[];d<o;)_.decode(e,d,g),a=g.value,d=g.rest,i.push(a);if(2===i.length)throw new Error("Found a source, but no line and column");if(3===i.length)throw new Error("Found a source and line, but no column");m[r]=i}n.generatedColumn=u+i[0],u=n.generatedColumn,1<i.length&&(n.source=f+i[1],f+=i[1],n.originalLine=l+i[2],l=n.originalLine,n.originalLine+=1,n.originalColumn=c+i[3],c=n.originalColumn,4<i.length&&(n.name=p+i[4],p+=i[4])),b.push(n),"number"==typeof n.originalLine&&v.push(n)}w(b,y.compareByGeneratedPositionsDeflated),this.__generatedMappings=b,w(v,y.compareByOriginalPositions),this.__originalMappings=v},p.prototype._findMapping=function(e,t,n,r,i,o){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return u.search(e,t,i,o)},p.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},p.prototype.originalPositionFor=function(e){var t={generatedLine:y.getArg(e,"line"),generatedColumn:y.getArg(e,"column")},n=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",y.compareByGeneratedPositionsDeflated,y.getArg(e,"bias",a.GREATEST_LOWER_BOUND));if(0<=n){var r=this._generatedMappings[n];if(r.generatedLine===t.generatedLine){var i=y.getArg(r,"source",null);null!==i&&(i=this._sources.at(i),null!=this.sourceRoot&&(i=y.join(this.sourceRoot,i)));var o=y.getArg(r,"name",null);return null!==o&&(o=this._names.at(o)),{source:i,line:y.getArg(r,"originalLine",null),column:y.getArg(r,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}},p.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e}))},p.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=y.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var n;if(null!=this.sourceRoot&&(n=y.urlParse(this.sourceRoot))){var r=e.replace(/^file:\/\//,"");if("file"==n.scheme&&this._sources.has(r))return this.sourcesContent[this._sources.indexOf(r)];if((!n.path||"/"==n.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},p.prototype.generatedPositionFor=function(e){var t=y.getArg(e,"source");if(null!=this.sourceRoot&&(t=y.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};var n={source:t=this._sources.indexOf(t),originalLine:y.getArg(e,"line"),originalColumn:y.getArg(e,"column")},r=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",y.compareByOriginalPositions,y.getArg(e,"bias",a.GREATEST_LOWER_BOUND));if(0<=r){var i=this._originalMappings[r];if(i.source===n.source)return{line:y.getArg(i,"generatedLine",null),column:y.getArg(i,"generatedColumn",null),lastColumn:y.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},n.BasicSourceMapConsumer=p,(r.prototype=Object.create(a.prototype)).constructor=a,r.prototype._version=3,Object.defineProperty(r.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),r.prototype.originalPositionFor=function(e){var t={generatedLine:y.getArg(e,"line"),generatedColumn:y.getArg(e,"column")},n=u.search(t,this._sections,function(e,t){var n=e.generatedLine-t.generatedOffset.generatedLine;return n||e.generatedColumn-t.generatedOffset.generatedColumn}),r=this._sections[n];return r?r.consumer.originalPositionFor({line:t.generatedLine-(r.generatedOffset.generatedLine-1),column:t.generatedColumn-(r.generatedOffset.generatedLine===t.generatedLine?r.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},r.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},r.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},r.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t];if(-1!==n.consumer.sources.indexOf(y.getArg(e,"source"))){var r=n.consumer.generatedPositionFor(e);if(r)return{line:r.line+(n.generatedOffset.generatedLine-1),column:r.column+(n.generatedOffset.generatedLine===r.line?n.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},r.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var r=this._sections[n],i=r.consumer._generatedMappings,o=0;o<i.length;o++){var a=i[o],s=r.consumer._sources.at(a.source);null!==r.consumer.sourceRoot&&(s=y.join(r.consumer.sourceRoot,s)),this._sources.add(s),s=this._sources.indexOf(s);var u=r.consumer._names.at(a.name);this._names.add(u),u=this._names.indexOf(u);var l={source:s,generatedLine:a.generatedLine+(r.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(r.generatedOffset.generatedLine===a.generatedLine?r.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:u};this.__generatedMappings.push(l),"number"==typeof l.originalLine&&this.__originalMappings.push(l)}w(this.__generatedMappings,y.compareByGeneratedPositionsDeflated),w(this.__originalMappings,y.compareByOriginalPositions)},n.IndexedSourceMapConsumer=r},{"./array-set":145,"./base64-vlq":146,"./binary-search":148,"./quick-sort":150,"./util":154}],152:[function(e,t,n){var d=e("./base64-vlq"),m=e("./util"),r=e("./array-set").ArraySet,i=e("./mapping-list").MappingList;function o(e){e||(e={}),this._file=m.getArg(e,"file",null),this._sourceRoot=m.getArg(e,"sourceRoot",null),this._skipValidation=m.getArg(e,"skipValidation",!1),this._sources=new r,this._names=new r,this._mappings=new i,this._sourcesContents=null}o.prototype._version=3,o.fromSourceMap=function(n){var r=n.sourceRoot,i=new o({file:n.file,sourceRoot:r});return n.eachMapping(function(e){var t={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(t.source=e.source,null!=r&&(t.source=m.relative(r,t.source)),t.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(t.name=e.name)),i.addMapping(t)}),n.sources.forEach(function(e){var t=n.sourceContentFor(e);null!=t&&i.setSourceContent(e,t)}),i},o.prototype.addMapping=function(e){var t=m.getArg(e,"generated"),n=m.getArg(e,"original",null),r=m.getArg(e,"source",null),i=m.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,r,i),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:i})},o.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=m.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[m.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[m.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},o.prototype.applySourceMap=function(i,e,o){var a=e;if(null==e){if(null==i.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');a=i.file}var s=this._sourceRoot;null!=s&&(a=m.relative(s,a));var u=new r,l=new r;this._mappings.unsortedForEach(function(e){if(e.source===a&&null!=e.originalLine){var t=i.originalPositionFor({line:e.originalLine,column:e.originalColumn});null!=t.source&&(e.source=t.source,null!=o&&(e.source=m.join(o,e.source)),null!=s&&(e.source=m.relative(s,e.source)),e.originalLine=t.line,e.originalColumn=t.column,null!=t.name&&(e.name=t.name))}var n=e.source;null==n||u.has(n)||u.add(n);var r=e.name;null==r||l.has(r)||l.add(r)},this),this._sources=u,this._names=l,i.sources.forEach(function(e){var t=i.sourceContentFor(e);null!=t&&(null!=o&&(e=m.join(o,e)),null!=s&&(e=m.relative(s,e)),this.setSourceContent(e,t))},this)},o.prototype._validateMapping=function(e,t,n,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&0<e.line&&0<=e.column)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&0<e.line&&0<=e.column&&0<t.line&&0<=t.column&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},o.prototype._serializeMappings=function(){for(var e,t,n,r,i=0,o=1,a=0,s=0,u=0,l=0,c="",f=this._mappings.toArray(),p=0,h=f.length;p<h;p++){if(e="",(t=f[p]).generatedLine!==o)for(i=0;t.generatedLine!==o;)e+=";",o++;else if(0<p){if(!m.compareByGeneratedPositionsInflated(t,f[p-1]))continue;e+=","}e+=d.encode(t.generatedColumn-i),i=t.generatedColumn,null!=t.source&&(r=this._sources.indexOf(t.source),e+=d.encode(r-l),l=r,e+=d.encode(t.originalLine-1-s),s=t.originalLine-1,e+=d.encode(t.originalColumn-a),a=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=d.encode(n-u),u=n)),c+=e}return c},o.prototype._generateSourcesContent=function(e,n){return e.map(function(e){if(!this._sourcesContents)return null;null!=n&&(e=m.relative(n,e));var t=m.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,t)?this._sourcesContents[t]:null},this)},o.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},o.prototype.toString=function(){return JSON.stringify(this.toJSON())},n.SourceMapGenerator=o},{"./array-set":145,"./base64-vlq":146,"./mapping-list":149,"./util":154}],153:[function(e,t,n){var r=e("./source-map-generator").SourceMapGenerator,p=e("./util"),h=/(\r?\n)/,o="$$$isSourceNode$$$";function d(e,t,n,r,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==n?null:n,this.name=null==i?null:i,this[o]=!0,null!=r&&this.add(r)}d.fromStringWithSourceMap=function(e,n,r){var i=new d,o=e.split(h),a=0,s=function(){return e()+(e()||"");function e(){return a<o.length?o[a++]:void 0}},u=1,l=0,c=null;return n.eachMapping(function(e){if(null!==c){if(!(u<e.generatedLine)){var t=(n=o[a]).substr(0,e.generatedColumn-l);return o[a]=n.substr(e.generatedColumn-l),l=e.generatedColumn,f(c,t),void(c=e)}f(c,s()),u++,l=0}for(;u<e.generatedLine;)i.add(s()),u++;if(l<e.generatedColumn){var n=o[a];i.add(n.substr(0,e.generatedColumn)),o[a]=n.substr(e.generatedColumn),l=e.generatedColumn}c=e},this),a<o.length&&(c&&f(c,s()),i.add(o.splice(a).join(""))),n.sources.forEach(function(e){var t=n.sourceContentFor(e);null!=t&&(null!=r&&(e=p.join(r,e)),i.setSourceContent(e,t))}),i;function f(e,t){if(null===e||void 0===e.source)i.add(t);else{var n=r?p.join(r,e.source):e.source;i.add(new d(e.originalLine,e.originalColumn,n,t,e.name))}}},d.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else{if(!e[o]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},d.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;0<=t;t--)this.prepend(e[t]);else{if(!e[o]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},d.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n<r;n++)(t=this.children[n])[o]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},d.prototype.join=function(e){var t,n,r=this.children.length;if(0<r){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},d.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[o]?n.replaceRight(e,t):"string"==typeof n?this.children[this.children.length-1]=n.replace(e,t):this.children.push("".replace(e,t)),this},d.prototype.setSourceContent=function(e,t){this.sourceContents[p.toSetString(e)]=t},d.prototype.walkSourceContents=function(e){for(var t=0,n=this.children.length;t<n;t++)this.children[t][o]&&this.children[t].walkSourceContents(e);var r=Object.keys(this.sourceContents);for(t=0,n=r.length;t<n;t++)e(p.fromSetString(r[t]),this.sourceContents[r[t]])},d.prototype.toString=function(){var t="";return this.walk(function(e){t+=e}),t},d.prototype.toStringWithSourceMap=function(e){var i={code:"",line:1,column:0},o=new r(e),a=!1,s=null,u=null,l=null,c=null;return this.walk(function(e,t){i.code+=e,null!==t.source&&null!==t.line&&null!==t.column?(s===t.source&&u===t.line&&l===t.column&&c===t.name||o.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:i.line,column:i.column},name:t.name}),s=t.source,u=t.line,l=t.column,c=t.name,a=!0):a&&(o.addMapping({generated:{line:i.line,column:i.column}}),s=null,a=!1);for(var n=0,r=e.length;n<r;n++)10===e.charCodeAt(n)?(i.line++,i.column=0,n+1===r?(s=null,a=!1):a&&o.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:i.line,column:i.column},name:t.name})):i.column++}),this.walkSourceContents(function(e,t){o.setSourceContent(e,t)}),{code:i.code,map:o}},n.SourceNode=d},{"./source-map-generator":152,"./util":154}],154:[function(e,t,u){u.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,o=/^data:.+\,.+$/;function l(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function c(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function a(e){var t=e,n=l(e);if(n){if(!n.path)return e;t=n.path}for(var r,i=u.isAbsolute(t),o=t.split(/\/+/),a=0,s=o.length-1;0<=s;s--)"."===(r=o[s])?o.splice(s,1):".."===r?a++:0<a&&(""===r?(o.splice(s+1,a),a=0):(o.splice(s,2),a--));return""===(t=o.join("/"))&&(t=i?"/":"."),n?(n.path=t,c(n)):t}u.urlParse=l,u.urlGenerate=c,u.normalize=a,u.join=function(e,t){""===e&&(e="."),""===t&&(t=".");var n=l(t),r=l(e);if(r&&(e=r.path||"/"),n&&!n.scheme)return r&&(n.scheme=r.scheme),c(n);if(n||t.match(o))return t;if(r&&!r.host&&!r.path)return r.host=t,c(r);var i="/"===t.charAt(0)?t:a(e.replace(/\/+$/,"")+"/"+t);return r?(r.path=i,c(r)):i},u.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(n)},u.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var r=!("__proto__"in Object.create(null));function i(e){return e}function s(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;0<=n;n--)if(36!==e.charCodeAt(n))return!1;return!0}function f(e,t){return e===t?0:t<e?1:-1}u.toSetString=r?i:function(e){return s(e)?"$"+e:e},u.fromSetString=r?i:function(e){return s(e)?e.slice(1):e},u.compareByOriginalPositions=function(e,t,n){var r=e.source-t.source;return 0!==r?r:0!=(r=e.originalLine-t.originalLine)?r:0!=(r=e.originalColumn-t.originalColumn)||n?r:0!=(r=e.generatedColumn-t.generatedColumn)?r:0!=(r=e.generatedLine-t.generatedLine)?r:e.name-t.name},u.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r?r:0!=(r=e.generatedColumn-t.generatedColumn)||n?r:0!=(r=e.source-t.source)?r:0!=(r=e.originalLine-t.originalLine)?r:0!=(r=e.originalColumn-t.originalColumn)?r:e.name-t.name},u.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!=(n=e.generatedColumn-t.generatedColumn)?n:0!==(n=f(e.source,t.source))?n:0!=(n=e.originalLine-t.originalLine)?n:0!=(n=e.originalColumn-t.originalColumn)?n:f(e.name,t.name)}},{}],155:[function(e,t,n){n.SourceMapGenerator=e("./lib/source-map-generator").SourceMapGenerator,n.SourceMapConsumer=e("./lib/source-map-consumer").SourceMapConsumer,n.SourceNode=e("./lib/source-node").SourceNode},{"./lib/source-map-consumer":151,"./lib/source-map-generator":152,"./lib/source-node":153}],156:[function(n,e,i){(function(u){var l=n("./lib/request"),e=n("./lib/response"),c=n("xtend"),t=n("builtin-status-codes"),f=n("url"),r=i;r.request=function(e,t){e="string"==typeof e?f.parse(e):c(e);var n=-1===u.location.protocol.search(/^https?:$/)?"http:":"",r=e.protocol||n,i=e.hostname||e.host,o=e.port,a=e.path||"/";i&&-1!==i.indexOf(":")&&(i="["+i+"]"),e.url=(i?r+"//"+i:"")+(o?":"+o:"")+a,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var s=new l(e);return t&&s.on("response",t),s},r.get=function(e,t){var n=r.request(e,t);return n.end(),n},r.ClientRequest=l,r.IncomingMessage=e,r.Agent=function(){},r.Agent.defaultMaxSockets=4,r.STATUS_CODES=t,r.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/request":158,"./lib/response":159,"builtin-status-codes":5,url:162,xtend:166}],157:[function(e,t,s){(function(e){s.fetch=a(e.fetch)&&a(e.ReadableStream),s.writableStream=a(e.WritableStream),s.abortController=a(e.AbortController),s.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),s.blobConstructor=!0}catch(e){}var t;function n(){if(void 0!==t)return t;if(e.XMLHttpRequest){t=new e.XMLHttpRequest;try{t.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(e){t=null}}else t=null;return t}function r(e){var t=n();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}var i=void 0!==e.ArrayBuffer,o=i&&a(e.ArrayBuffer.prototype.slice);function a(e){return"function"==typeof e}s.arraybuffer=s.fetch||i&&r("arraybuffer"),s.msstream=!s.fetch&&o&&r("ms-stream"),s.mozchunkedarraybuffer=!s.fetch&&i&&r("moz-chunked-arraybuffer"),s.overrideMimeType=s.fetch||!!n()&&a(n().overrideMimeType),s.vbArray=a(e.VBArray),t=null}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],158:[function(o,s,e){(function(u,l,c){var f=o("./capability"),e=o("inherits"),t=o("./response"),a=o("readable-stream"),p=o("to-arraybuffer"),n=t.IncomingMessage,h=t.readyStates;var r=s.exports=function(t){var e,n=this;a.Writable.call(n),n._opts=t,n._body=[],n._headers={},t.auth&&n.setHeader("Authorization","Basic "+new c(t.auth).toString("base64")),Object.keys(t.headers).forEach(function(e){n.setHeader(e,t.headers[e])});var r,i,o=!0;if("disable-fetch"===t.mode||"requestTimeout"in t&&!f.abortController)o=!1,e=!0;else if("prefer-streaming"===t.mode)e=!1;else if("allow-wrong-content-type"===t.mode)e=!f.overrideMimeType;else{if(t.mode&&"default"!==t.mode&&"prefer-fast"!==t.mode)throw new Error("Invalid value for opts.mode");e=!0}n._mode=(r=e,i=o,f.fetch&&i?"fetch":f.mozchunkedarraybuffer?"moz-chunked-arraybuffer":f.msstream?"ms-stream":f.arraybuffer&&r?"arraybuffer":f.vbArray&&r?"text:vbarray":"text"),n.on("finish",function(){n._onFinish()})};e(r,a.Writable),r.prototype.setHeader=function(e,t){var n=e.toLowerCase();-1===i.indexOf(n)&&(this._headers[n]={name:e,value:t})},r.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},r.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},r.prototype._onFinish=function(){var t=this;if(!t._destroyed){var e=t._opts,r=t._headers,n=null;"GET"!==e.method&&"HEAD"!==e.method&&(n=f.arraybuffer?p(c.concat(t._body)):f.blobConstructor?new l.Blob(t._body.map(function(e){return p(e)}),{type:(r["content-type"]||{}).value||""}):c.concat(t._body).toString());var i=[];if(Object.keys(r).forEach(function(e){var t=r[e].name,n=r[e].value;Array.isArray(n)?n.forEach(function(e){i.push([t,e])}):i.push([t,n])}),"fetch"===t._mode){var o=null;if(f.abortController){var a=new AbortController;o=a.signal,t._fetchAbortController=a,"requestTimeout"in e&&0!==e.requestTimeout&&l.setTimeout(function(){t.emit("requestTimeout"),t._fetchAbortController&&t._fetchAbortController.abort()},e.requestTimeout)}l.fetch(t._opts.url,{method:t._opts.method,headers:i,body:n||void 0,mode:"cors",credentials:e.withCredentials?"include":"same-origin",signal:o}).then(function(e){t._fetchResponse=e,t._connect()},function(e){t.emit("error",e)})}else{var s=t._xhr=new l.XMLHttpRequest;try{s.open(t._opts.method,t._opts.url,!0)}catch(e){return void u.nextTick(function(){t.emit("error",e)})}"responseType"in s&&(s.responseType=t._mode.split(":")[0]),"withCredentials"in s&&(s.withCredentials=!!e.withCredentials),"text"===t._mode&&"overrideMimeType"in s&&s.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in e&&(s.timeout=e.requestTimeout,s.ontimeout=function(){t.emit("requestTimeout")}),i.forEach(function(e){s.setRequestHeader(e[0],e[1])}),t._response=null,s.onreadystatechange=function(){switch(s.readyState){case h.LOADING:case h.DONE:t._onXHRProgress()}},"moz-chunked-arraybuffer"===t._mode&&(s.onprogress=function(){t._onXHRProgress()}),s.onerror=function(){t._destroyed||t.emit("error",new Error("XHR error"))};try{s.send(n)}catch(e){return void u.nextTick(function(){t.emit("error",e)})}}}},r.prototype._onXHRProgress=function(){(function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},r.prototype._connect=function(){var t=this;t._destroyed||(t._response=new n(t._xhr,t._fetchResponse,t._mode),t._response.on("error",function(e){t.emit("error",e)}),t.emit("response",t._response))},r.prototype._write=function(e,t,n){this._body.push(e),n()},r.prototype.abort=r.prototype.destroy=function(){this._destroyed=!0,this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},r.prototype.end=function(e,t,n){"function"==typeof e&&(n=e,e=void 0),a.Writable.prototype.end.call(this,e,t,n)},r.prototype.flushHeaders=function(){},r.prototype.setTimeout=function(){},r.prototype.setNoDelay=function(){},r.prototype.setSocketKeepAlive=function(){};var i=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,o("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},o("buffer").Buffer)},{"./capability":157,"./response":159,_process:113,buffer:4,inherits:106,"readable-stream":126,"to-arraybuffer":161}],159:[function(n,e,r){(function(u,s,l){var c=n("./capability"),e=n("inherits"),f=n("readable-stream"),p=r.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},t=r.IncomingMessage=function(e,t,n){var r=this;if(f.Readable.call(r),r._mode=n,r.headers={},r.rawHeaders=[],r.trailers={},r.rawTrailers=[],r.on("end",function(){u.nextTick(function(){r.emit("close")})}),"fetch"===n){if(r._fetchResponse=t,r.url=t.url,r.statusCode=t.status,r.statusMessage=t.statusText,t.headers.forEach(function(e,t){r.headers[t.toLowerCase()]=e,r.rawHeaders.push(t,e)}),c.writableStream){var i=new WritableStream({write:function(n){return new Promise(function(e,t){r._destroyed||(r.push(new l(n))?e():r._resumeFetch=e)})},close:function(){r._destroyed||r.push(null)},abort:function(e){r._destroyed||r.emit("error",e)}});try{return void t.body.pipeTo(i)}catch(e){}}var o=t.body.getReader();!function t(){o.read().then(function(e){r._destroyed||(e.done?r.push(null):(r.push(new l(e.value)),t()))}).catch(function(e){r._destroyed||r.emit("error",e)})}()}else{if(r._xhr=e,r._pos=0,r.url=e.responseURL,r.statusCode=e.status,r.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach(function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var n=t[1].toLowerCase();"set-cookie"===n?(void 0===r.headers[n]&&(r.headers[n]=[]),r.headers[n].push(t[2])):void 0!==r.headers[n]?r.headers[n]+=", "+t[2]:r.headers[n]=t[2],r.rawHeaders.push(t[1],t[2])}}),r._charset="x-user-defined",!c.overrideMimeType){var a=r.rawHeaders["mime-type"];if(a){var s=a.match(/;\s*charset=([^;])(;|$)/);s&&(r._charset=s[1].toLowerCase())}r._charset||(r._charset="utf-8")}}};e(t,f.Readable),t.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},t.prototype._onXHRProgress=function(){var t=this,e=t._xhr,n=null;switch(t._mode){case"text:vbarray":if(e.readyState!==p.DONE)break;try{n=new s.VBArray(e.responseBody).toArray()}catch(e){}if(null!==n){t.push(new l(n));break}case"text":try{n=e.responseText}catch(e){t._mode="text:vbarray";break}if(n.length>t._pos){var r=n.substr(t._pos);if("x-user-defined"===t._charset){for(var i=new l(r.length),o=0;o<r.length;o++)i[o]=255&r.charCodeAt(o);t.push(i)}else t.push(r,t._charset);t._pos=n.length}break;case"arraybuffer":if(e.readyState!==p.DONE||!e.response)break;n=e.response,t.push(new l(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=e.response,e.readyState!==p.LOADING||!n)break;t.push(new l(new Uint8Array(n)));break;case"ms-stream":if(n=e.response,e.readyState!==p.LOADING)break;var a=new s.MSStreamReader;a.onprogress=function(){a.result.byteLength>t._pos&&(t.push(new l(new Uint8Array(a.result.slice(t._pos)))),t._pos=a.result.byteLength)},a.onload=function(){t.push(null)},a.readAsArrayBuffer(n)}t._xhr.readyState===p.DONE&&"ms-stream"!==t._mode&&t.push(null)}}).call(this,n("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n("buffer").Buffer)},{"./capability":157,_process:113,buffer:4,inherits:106,"readable-stream":126}],160:[function(e,t,n){"use strict";var r=e("safe-buffer").Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=l,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=c,this.end=f,t=3;break;default:return this.write=p,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:-1}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�".repeat(n);if(1<e.lastNeed&&1<t.length){if(128!=(192&t[1]))return e.lastNeed=1,"�".repeat(n+1);if(2<e.lastNeed&&2<t.length&&128!=(192&t[2]))return e.lastNeed=2,"�".repeat(n+2)}}(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(55296<=r&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}(n.StringDecoder=o).prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�".repeat(this.lastTotal-this.lastNeed):t},o.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=a(t[r]);if(0<=i)return 0<i&&(e.lastNeed=i-1),i;if(--r<n)return 0;if(0<=(i=a(t[r])))return 0<i&&(e.lastNeed=i-2),i;if(--r<n)return 0;if(0<=(i=a(t[r])))return 0<i&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":144}],161:[function(e,t,n){var i=e("buffer").Buffer;t.exports=function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(i.isBuffer(e)){for(var t=new Uint8Array(e.length),n=e.length,r=0;r<n;r++)t[r]=e[r];return t.buffer}throw new Error("Argument must be a Buffer")}},{buffer:4}],162:[function(e,t,n){"use strict";var F=e("punycode"),L=e("./util");function O(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}n.parse=o,n.resolve=function(e,t){return o(e,!1,!0).resolve(t)},n.resolveObject=function(e,t){return e?o(e,!1,!0).resolveObject(t):t},n.format=function(e){L.isString(e)&&(e=o(e));return e instanceof O?e.format():O.prototype.format.call(e)},n.Url=O;var M=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,U=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,i=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),N=["'"].concat(i),P=["%","/","?",";","#"].concat(N),q=["/","?","#"],z=/^[+a-z0-9A-Z_-]{0,63}$/,I=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,j={javascript:!0,"javascript:":!0},V={javascript:!0,"javascript:":!0},$={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},H=e("querystring");function o(e,t,n){if(e&&L.isObject(e)&&e instanceof O)return e;var r=new O;return r.parse(e,t,n),r}O.prototype.parse=function(e,t,n){if(!L.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),i=-1!==r&&r<e.indexOf("#")?"?":"#",o=e.split(i);o[0]=o[0].replace(/\\/g,"/");var a=e=o.join(i);if(a=a.trim(),!n&&1===e.split("#").length){var s=U.exec(a);if(s)return this.path=a,this.href=a,this.pathname=s[1],s[2]?(this.search=s[2],this.query=t?H.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var u=M.exec(a);if(u){var l=(u=u[0]).toLowerCase();this.protocol=l,a=a.substr(u.length)}if(n||u||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var c="//"===a.substr(0,2);!c||u&&V[u]||(a=a.substr(2),this.slashes=!0)}if(!V[u]&&(c||u&&!$[u])){for(var f,p,h=-1,d=0;d<q.length;d++){-1!==(m=a.indexOf(q[d]))&&(-1===h||m<h)&&(h=m)}-1!==(p=-1===h?a.lastIndexOf("@"):a.lastIndexOf("@",h))&&(f=a.slice(0,p),a=a.slice(p+1),this.auth=decodeURIComponent(f)),h=-1;for(d=0;d<P.length;d++){var m;-1!==(m=a.indexOf(P[d]))&&(-1===h||m<h)&&(h=m)}-1===h&&(h=a.length),this.host=a.slice(0,h),a=a.slice(h),this.parseHost(),this.hostname=this.hostname||"";var g="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!g)for(var v=this.hostname.split(/\./),b=(d=0,v.length);d<b;d++){var y=v[d];if(y&&!y.match(z)){for(var _="",w=0,E=y.length;w<E;w++)127<y.charCodeAt(w)?_+="x":_+=y[w];if(!_.match(z)){var A=v.slice(0,d),x=v.slice(d+1),C=y.match(I);C&&(A.push(C[1]),x.unshift(C[2])),x.length&&(a="/"+x.join(".")+a),this.hostname=A.join(".");break}}}255<this.hostname.length?this.hostname="":this.hostname=this.hostname.toLowerCase(),g||(this.hostname=F.toASCII(this.hostname));var k=this.port?":"+this.port:"",O=this.hostname||"";this.host=O+k,this.href+=this.host,g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!j[l])for(d=0,b=N.length;d<b;d++){var S=N[d];if(-1!==a.indexOf(S)){var D=encodeURIComponent(S);D===S&&(D=escape(S)),a=a.split(S).join(D)}}var B=a.indexOf("#");-1!==B&&(this.hash=a.substr(B),a=a.slice(0,B));var T=a.indexOf("?");if(-1!==T?(this.search=a.substr(T),this.query=a.substr(T+1),t&&(this.query=H.parse(this.query)),a=a.slice(0,T)):t&&(this.search="",this.query={}),a&&(this.pathname=a),$[l]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){k=this.pathname||"";var R=this.search||"";this.path=k+R}return this.href=this.format(),this},O.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&L.isObject(this.query)&&Object.keys(this.query).length&&(o=H.stringify(this.query));var a=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||$[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),a&&"?"!==a.charAt(0)&&(a="?"+a),t+i+(n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(a=a.replace("#","%23"))+r},O.prototype.resolve=function(e){return this.resolveObject(o(e,!1,!0)).format()},O.prototype.resolveObject=function(e){if(L.isString(e)){var t=new O;t.parse(e,!1,!0),e=t}for(var n=new O,r=Object.keys(this),i=0;i<r.length;i++){var o=r[i];n[o]=this[o]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),s=0;s<a.length;s++){var u=a[s];"protocol"!==u&&(n[u]=e[u])}return $[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!$[e.protocol]){for(var l=Object.keys(e),c=0;c<l.length;c++){var f=l[c];n[f]=e[f]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||V[e.protocol])n.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),n.pathname=p.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var h=n.pathname||"",d=n.search||"";n.path=h+d}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var m=n.pathname&&"/"===n.pathname.charAt(0),g=e.host||e.pathname&&"/"===e.pathname.charAt(0),v=g||m||n.host&&e.pathname,b=v,y=n.pathname&&n.pathname.split("/")||[],_=(p=e.pathname&&e.pathname.split("/")||[],n.protocol&&!$[n.protocol]);if(_&&(n.hostname="",n.port=null,n.host&&(""===y[0]?y[0]=n.host:y.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),v=v&&(""===p[0]||""===y[0])),g)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,y=p;else if(p.length)y||(y=[]),y.pop(),y=y.concat(p),n.search=e.search,n.query=e.query;else if(!L.isNullOrUndefined(e.search)){if(_)n.hostname=n.host=y.shift(),(C=!!(n.host&&0<n.host.indexOf("@"))&&n.host.split("@"))&&(n.auth=C.shift(),n.host=n.hostname=C.shift());return n.search=e.search,n.query=e.query,L.isNull(n.pathname)&&L.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!y.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var w=y.slice(-1)[0],E=(n.host||e.host||1<y.length)&&("."===w||".."===w)||""===w,A=0,x=y.length;0<=x;x--)"."===(w=y[x])?y.splice(x,1):".."===w?(y.splice(x,1),A++):A&&(y.splice(x,1),A--);if(!v&&!b)for(;A--;A)y.unshift("..");!v||""===y[0]||y[0]&&"/"===y[0].charAt(0)||y.unshift(""),E&&"/"!==y.join("/").substr(-1)&&y.push("");var C,k=""===y[0]||y[0]&&"/"===y[0].charAt(0);_&&(n.hostname=n.host=k?"":y.length?y.shift():"",(C=!!(n.host&&0<n.host.indexOf("@"))&&n.host.split("@"))&&(n.auth=C.shift(),n.host=n.hostname=C.shift()));return(v=v||n.host&&y.length)&&!k&&y.unshift(""),y.length?n.pathname=y.join("/"):(n.pathname=null,n.path=null),L.isNull(n.pathname)&&L.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},O.prototype.parseHost=function(){var e=this.host,t=r.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{"./util":163,punycode:114,querystring:117}],163:[function(e,t,n){"use strict";t.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},{}],164:[function(e,t,n){(function(n){function r(e){try{if(!n.localStorage)return!1}catch(e){return!1}var t=n.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}t.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],165:[function(e,t,n){n.baseChar=/[A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u0131\u0134-\u013E\u0141-\u0148\u014A-\u017E\u0180-\u01C3\u01CD-\u01F0\u01F4\u01F5\u01FA-\u0217\u0250-\u02A8\u02BB-\u02C1\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03CE\u03D0-\u03D6\u03DA\u03DC\u03DE\u03E0\u03E2-\u03F3\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E-\u0481\u0490-\u04C4\u04C7\u04C8\u04CB\u04CC\u04D0-\u04EB\u04EE-\u04F5\u04F8\u04F9\u0531-\u0556\u0559\u0561-\u0586\u05D0-\u05EA\u05F0-\u05F2\u0621-\u063A\u0641-\u064A\u0671-\u06B7\u06BA-\u06BE\u06C0-\u06CE\u06D0-\u06D3\u06D5\u06E5\u06E6\u0905-\u0939\u093D\u0958-\u0961\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\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-\u0A8B\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AE0\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B36-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB5\u0BB7-\u0BB9\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CDE\u0CE0\u0CE1\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D28\u0D2A-\u0D39\u0D60\u0D61\u0E01-\u0E2E\u0E30\u0E32\u0E33\u0E40-\u0E45\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD\u0EAE\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0F40-\u0F47\u0F49-\u0F69\u10A0-\u10C5\u10D0-\u10F6\u1100\u1102\u1103\u1105-\u1107\u1109\u110B\u110C\u110E-\u1112\u113C\u113E\u1140\u114C\u114E\u1150\u1154\u1155\u1159\u115F-\u1161\u1163\u1165\u1167\u1169\u116D\u116E\u1172\u1173\u1175\u119E\u11A8\u11AB\u11AE\u11AF\u11B7\u11B8\u11BA\u11BC-\u11C2\u11EB\u11F0\u11F9\u1E00-\u1E9B\u1EA0-\u1EF9\u1F00-\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\u2126\u212A\u212B\u212E\u2180-\u2182\u3041-\u3094\u30A1-\u30FA\u3105-\u312C\uAC00-\uD7A3]/,n.ideographic=/[\u3007\u3021-\u3029\u4E00-\u9FA5]/,n.letter=/[A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u0131\u0134-\u013E\u0141-\u0148\u014A-\u017E\u0180-\u01C3\u01CD-\u01F0\u01F4\u01F5\u01FA-\u0217\u0250-\u02A8\u02BB-\u02C1\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03CE\u03D0-\u03D6\u03DA\u03DC\u03DE\u03E0\u03E2-\u03F3\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E-\u0481\u0490-\u04C4\u04C7\u04C8\u04CB\u04CC\u04D0-\u04EB\u04EE-\u04F5\u04F8\u04F9\u0531-\u0556\u0559\u0561-\u0586\u05D0-\u05EA\u05F0-\u05F2\u0621-\u063A\u0641-\u064A\u0671-\u06B7\u06BA-\u06BE\u06C0-\u06CE\u06D0-\u06D3\u06D5\u06E5\u06E6\u0905-\u0939\u093D\u0958-\u0961\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\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-\u0A8B\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AE0\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B36-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB5\u0BB7-\u0BB9\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CDE\u0CE0\u0CE1\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D28\u0D2A-\u0D39\u0D60\u0D61\u0E01-\u0E2E\u0E30\u0E32\u0E33\u0E40-\u0E45\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD\u0EAE\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0F40-\u0F47\u0F49-\u0F69\u10A0-\u10C5\u10D0-\u10F6\u1100\u1102\u1103\u1105-\u1107\u1109\u110B\u110C\u110E-\u1112\u113C\u113E\u1140\u114C\u114E\u1150\u1154\u1155\u1159\u115F-\u1161\u1163\u1165\u1167\u1169\u116D\u116E\u1172\u1173\u1175\u119E\u11A8\u11AB\u11AE\u11AF\u11B7\u11B8\u11BA\u11BC-\u11C2\u11EB\u11F0\u11F9\u1E00-\u1E9B\u1EA0-\u1EF9\u1F00-\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\u2126\u212A\u212B\u212E\u2180-\u2182\u3007\u3021-\u3029\u3041-\u3094\u30A1-\u30FA\u3105-\u312C\u4E00-\u9FA5\uAC00-\uD7A3]/,n.combiningChar=/[\u0300-\u0345\u0360\u0361\u0483-\u0486\u0591-\u05A1\u05A3-\u05B9\u05BB-\u05BD\u05BF\u05C1\u05C2\u05C4\u064B-\u0652\u0670\u06D6-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0901-\u0903\u093C\u093E-\u094D\u0951-\u0954\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A02\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A70\u0A71\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0B01-\u0B03\u0B3C\u0B3E-\u0B43\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B82\u0B83\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C01-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C82\u0C83\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0D02\u0D03\u0D3E-\u0D43\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86-\u0F8B\u0F90-\u0F95\u0F97\u0F99-\u0FAD\u0FB1-\u0FB7\u0FB9\u20D0-\u20DC\u20E1\u302A-\u302F\u3099\u309A]/,n.digit=/[0-9\u0660-\u0669\u06F0-\u06F9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE7-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29]/,n.extender=/[\xB7\u02D0\u02D1\u0387\u0640\u0E46\u0EC6\u3005\u3031-\u3035\u309D\u309E\u30FC-\u30FE]/},{}],166:[function(e,t,n){t.exports=function(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)i.call(n,r)&&(e[r]=n[r])}return e};var i=Object.prototype.hasOwnProperty},{}],167:[function(e,t,n){"use strict";var r=e("./utils").createMapFromString;function i(e){return r(e,!0)}var o,a=/([^\s"'<>/=]+)/,s=[/=/],u=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^ \t\n\f\r"'`=<>]+)/.source],l="((?:"+(o=e("ncname").source.slice(1,-1))+"\\:)?"+o+")",w=new RegExp("^<"+l),E=/^\s*(\/?)>/,A=new RegExp("^<\\/"+l+"[^>]*>"),x=/^<!DOCTYPE [^>]+>/i,C=!1;"x".replace(/x(.)?/g,function(e,t){C=""===t});var k=i("area,base,basefont,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),O=i("a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,noscript,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,svg,textarea,tt,u,var"),S=i("colgroup,dd,dt,li,option,p,td,tfoot,th,thead,tr,source"),D=i("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),B=i("script,style"),T=i("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,ol,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track,ul"),R={};function F(e){var t,n=a.source+"(?:\\s*("+(t=e,s.concat(t.customAttrAssign||[]).map(function(e){return"(?:"+e.source+")"}).join("|"))+")[ \\t\\n\\f\\r]*(?:"+u.join("|")+"))?";if(e.customAttrSurround){for(var r=[],i=e.customAttrSurround.length-1;0<=i;i--)r[i]="(?:("+e.customAttrSurround[i][0].source+")\\s*"+n+"\\s*("+e.customAttrSurround[i][1].source+"))";r.push("(?:"+n+")"),n="(?:"+r.join("|")+")"}return new RegExp("^\\s*"+n)}function c(e,f){for(var o,t,n,r,a=[],s=F(f);e;){if(t=e,o&&B(o)){var i=o.toLowerCase(),u=R[i]||(R[i]=new RegExp("([\\s\\S]*?)</"+i+"[^>]*>","i"));e=e.replace(u,function(e,t){return"script"!==i&&"style"!==i&&"noscript"!==i&&(t=t.replace(/<!--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),f.chars&&f.chars(t),""}),_("</"+i+">",i)}else{var l,c=e.indexOf("<");if(0===c){if(/^<!--/.test(e)){var p=e.indexOf("--\x3e");if(0<=p){f.comment&&f.comment(e.substring(4,p)),e=e.substring(p+3),n="";continue}}if(/^<!\[/.test(e)){var h=e.indexOf("]>");if(0<=h){f.comment&&f.comment(e.substring(2,h+1),!0),e=e.substring(h+2),n="";continue}}var d=e.match(x);if(d){f.doctype&&f.doctype(d[0]),e=e.substring(d[0].length),n="";continue}var m=e.match(A);if(m){e=e.substring(m[0].length),m[0].replace(A,_),n="/"+m[1].toLowerCase();continue}var g=b(e);if(g){e=g.rest,y(g),n=g.tagName.toLowerCase();continue}}0<=c?(l=e.substring(0,c),e=e.substring(c)):(l=e,e="");var v=b(e);r=v?v.tagName:(v=e.match(A))?"/"+v[1]:"",f.chars&&f.chars(l,n,r),n=""}if(e===t)throw new Error("Parse Error: "+e)}function b(e){var t=e.match(w);if(t){var n,r,i={tagName:t[1],attrs:[]};for(e=e.slice(t[0].length);!(n=e.match(E))&&(r=e.match(s));)e=e.slice(r[0].length),i.attrs.push(r);if(n)return i.unarySlash=n[1],i.rest=e.slice(n[0].length),i}}function y(e){var t=e.tagName,n=e.unarySlash;if(f.html5&&"p"===o&&T(t)&&_("",o),!f.html5&&!O(t))for(;o&&O(o);)_("",o);S(t)&&o===t&&_("",t);var r=k(t)||"html"===t&&"head"===o||!!n,i=e.attrs.map(function(t){var n,r,e,i,o,a;function s(e){return o=t[e],void 0!==(r=t[e+1])?'"':void 0!==(r=t[e+2])?"'":(void 0===(r=t[e+3])&&D(n)&&(r=n),"")}C&&-1===t[0].indexOf('""')&&(""===t[3]&&delete t[3],""===t[4]&&delete t[4],""===t[5]&&delete t[5]);var u=1;if(f.customAttrSurround)for(var l=0,c=f.customAttrSurround.length;l<c;l++,u+=7)if(n=t[u+1]){a=s(u+2),e=t[u],i=t[u+6];break}return!n&&(n=t[u])&&(a=s(u+1)),{name:n,value:r,customAssign:o||"=",customOpen:e||"",customClose:i||"",quote:a||""}});r||(a.push({tag:t,attrs:i}),o=t,n=""),f.start&&f.start(t,i,r,n)}function _(e,t){var n;if(t){var r=t.toLowerCase();for(n=a.length-1;0<=n&&a[n].tag.toLowerCase()!==r;n--);}else n=0;if(0<=n){for(var i=a.length-1;n<=i;i--)f.end&&f.end(a[i].tag,a[i].attrs,n<i||!e);a.length=n,o=n&&a[n-1].tag}else"br"===t.toLowerCase()?f.start&&f.start(t,[],!0,""):"p"===t.toLowerCase()&&(f.start&&f.start(t,[],!1,"",!0),f.end&&f.end(t,[]))}f.partialMarkup||_()}n.HTMLParser=c,n.HTMLtoXML=function(e){var o="";return new c(e,{start:function(e,t,n){o+="<"+e;for(var r=0,i=t.length;r<i;r++)o+=" "+t[r].name+'="'+(t[r].value||"").replace(/"/g,"&#34;")+'"';o+=(n?"/":"")+">"},end:function(e){o+="</"+e+">"},chars:function(e){o+=e},comment:function(e){o+="\x3c!--"+e+"--\x3e"},ignore:function(e){o+=e}}),o},n.HTMLtoDOM=function(e,o){var a={html:!0,head:!0,body:!0,title:!0},s={link:"head",base:"head"};o?o=o.ownerDocument||o.getOwnerDocument&&o.getOwnerDocument()||o:"undefined"!=typeof DOMDocument?o=new DOMDocument:"undefined"!=typeof document&&document.implementation&&document.implementation.createDocument?o=document.implementation.createDocument("","",null):"undefined"!=typeof ActiveX&&(o=new ActiveXObject("Msxml.DOMDocument"));var t,n,u=[];if(!(o.documentElement||o.getDocumentElement&&o.getDocumentElement())&&o.createElement&&(t=o.createElement("html"),(n=o.createElement("head")).appendChild(o.createElement("title")),t.appendChild(n),t.appendChild(o.createElement("body")),o.appendChild(t)),o.getElementsByTagName)for(var r in a)a[r]=o.getElementsByTagName(r)[0];var l=a.body;return new c(e,{start:function(e,t,n){if(a[e])l=a[e];else{var r=o.createElement(e);for(var i in t)r.setAttribute(t[i].name,t[i].value);s[e]&&"boolean"!=typeof a[s[e]]?a[s[e]].appendChild(r):l&&l.appendChild&&l.appendChild(r),n||(u.push(r),l=r)}},end:function(){u.length-=1,l=u[u.length-1]},chars:function(e){l.appendChild(o.createTextNode(e))},comment:function(){},ignore:function(){}}),o}},{"./utils":169,ncname:109}],168:[function(e,t,n){"use strict";function r(){}function o(){}r.prototype.sort=function(e,t){t=t||0;for(var n=0,r=this.keys.length;n<r;n++){var i=this.keys[n],o=i.slice(1),a=e.indexOf(o,t);if(-1!==a){for(;a!==t&&(e.splice(a,1),e.splice(t,0,o)),t++,-1!==(a=e.indexOf(o,t)););return this[i].sort(e,t)}}return e},o.prototype={add:function(n){var r=this;n.forEach(function(e){var t="$"+e;r[t]||(r[t]=[],r[t].processed=0),r[t].push(n)})},createSorter:function(){var i=this,t=new r;return t.keys=Object.keys(i).sort(function(e,t){var n=i[e].length,r=i[t].length;return n<r?1:r<n?-1:e<t?-1:t<e?1:0}).filter(function(e){if(i[e].processed<i[e].length){var n=e.slice(1),r=new o;return i[e].forEach(function(e){for(var t;-1!==(t=e.indexOf(n));)e.splice(t,1);e.forEach(function(e){i["$"+e].processed++}),r.add(e.slice(0))}),t[e]=r.createSorter(),!0}return!1}),t}},t.exports=o},{}],169:[function(e,t,n){"use strict";function r(e,t){var n={};return e.forEach(function(e){n[e]=1}),t?function(e){return 1===n[e.toLowerCase()]}:function(e){return 1===n[e]}}n.createMap=r,n.createMapFromString=function(e,t){return r(e.split(/,/),t)}},{}],"html-minifier":[function(e,t,n){"use strict";var p=e("clean-css"),d=e("he").decode,h=e("./htmlparser").HTMLParser,m=e("relateurl"),g=e("./tokenchain"),v=e("uglify-js"),r=e("./utils");function M(e){return"string"!=typeof e?e:e.replace(/^[ \n\r\t\f]+/,"").replace(/[ \n\r\t\f]+$/,"")}function U(e){return e&&e.replace(/[ \n\r\t\f\xA0]+/g,function(e){return"\t"===e?"\t":e.replace(/(^|\xA0+)[^\xA0]+/g,"$1 ")})}function N(e,n,t,r,i){var o="",a="";return n.preserveLineBreaks&&(e=e.replace(/^[ \n\r\t\f]*?[\n\r][ \n\r\t\f]*/,function(){return o="\n",""}).replace(/[ \n\r\t\f]*?[\n\r][ \n\r\t\f]*$/,function(){return a="\n",""})),t&&(e=e.replace(/^[ \n\r\t\f\xA0]+/,function(e){var t=!o&&n.conservativeCollapse;return t&&"\t"===e?"\t":e.replace(/^[^\xA0]+/,"").replace(/(\xA0+)[^\xA0]+/g,"$1 ")||(t?" ":"")})),r&&(e=e.replace(/[ \n\r\t\f\xA0]+$/,function(e){var t=!a&&n.conservativeCollapse;return t&&"\t"===e?"\t":e.replace(/[^\xA0]+(\xA0+)/g," $1").replace(/[^\xA0]+$/,"")||(t?" ":"")})),i&&(e=U(e)),o+e+a}var i=r.createMapFromString,P=i("a,abbr,acronym,b,bdi,bdo,big,button,cite,code,del,dfn,em,font,i,ins,kbd,label,mark,math,nobr,object,q,rt,rp,s,samp,select,small,span,strike,strong,sub,sup,svg,textarea,time,tt,u,var"),q=i("a,abbr,acronym,b,big,del,em,font,i,ins,kbd,mark,nobr,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var"),a=i("comment,img,input,wbr");function z(e,t,n,r){var i=t&&!a(t);i&&!r.collapseInlineTagWhitespace&&(i="/"===t.charAt(0)?!P(t.slice(1)):!q(t));var o=n&&!a(n);return o&&!r.collapseInlineTagWhitespace&&(o="/"===n.charAt(0)?!q(n.slice(1)):!P(n)),N(e,r,i,o,t&&n)}function b(e,t){for(var n=e.length;n--;)if(e[n].name.toLowerCase()===t)return!0;return!1}var o=r.createMap(["text/javascript","text/ecmascript","text/jscript","application/javascript","application/x-javascript","application/ecmascript"]);function I(e){return""===(e=M(e.split(/;/,2)[0]).toLowerCase())||o(e)}function y(e){return""===(e=M(e).toLowerCase())||"text/css"===e}function j(e,t){if("style"!==e)return!1;for(var n=0,r=t.length;n<r;n++){if("type"===t[n].name.toLowerCase())return y(t[n].value)}return!0}var _=i("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),w=i("true,false");function E(e,t,n){if("link"!==e)return!1;for(var r=0,i=t.length;r<i;r++)if("rel"===t[r].name&&t[r].value===n)return!0}var A=i("img,source");function x(e,t,n,a,r){if(n&&function(e,t){var n=t.customEventAttributes;if(n){for(var r=n.length;r--;)if(n[r].test(e))return!0;return!1}return/^on[a-z]{3,}$/.test(e)}(t,a))return n=M(n).replace(/^javascript:\s*/i,""),a.minifyJS(n,!0);if("class"===t)return n=M(n),n=a.sortClassName?a.sortClassName(n):U(n);if(d=t,/^(?:a|area|link|base)$/.test(m=e)&&"href"===d||"img"===m&&/^(?:src|longdesc|usemap)$/.test(d)||"object"===m&&/^(?:classid|codebase|data|usemap)$/.test(d)||"q"===m&&"cite"===d||"blockquote"===m&&"cite"===d||("ins"===m||"del"===m)&&"cite"===d||"form"===m&&"action"===d||"input"===m&&("src"===d||"usemap"===d)||"head"===m&&"profile"===d||"script"===m&&("src"===d||"for"===d))return n=M(n),E(e,r,"canonical")?n:a.minifyURLs(n);if(p=t,/^(?:a|area|object|button)$/.test(h=e)&&"tabindex"===p||"input"===h&&("maxlength"===p||"tabindex"===p)||"select"===h&&("size"===p||"tabindex"===p)||"textarea"===h&&/^(?:rows|cols|tabindex)$/.test(p)||"colgroup"===h&&"span"===p||"col"===h&&"span"===p||("th"===h||"td"===h)&&("rowspan"===p||"colspan"===p))return M(n);if("style"===t)return(n=M(n))&&(/;$/.test(n)&&!/&#?[0-9a-zA-Z]+;$/.test(n)&&(n=n.replace(/\s*;$/,";")),c=a.minifyCSS("*{"+n+"}"),n=(f=c.match(/^\*\{([\s\S]*)\}$/))?f[1]:c),n;if(l=e,"srcset"===t&&A(l))n=M(n).split(/\s+,\s*|\s*,\s+/).map(function(e){var t=e,n="",r=e.match(/\s+([1-9][0-9]*w|[0-9]+(?:\.[0-9]+)?x)$/);if(r){t=t.slice(0,-r[0].length);var i=+r[1].slice(0,-1),o=r[1].slice(-1);1===i&&"x"===o||(n=" "+i+o)}return a.minifyURLs(t)+n}).join(", ");else if(function(e,t){if("meta"!==e)return!1;for(var n=0,r=t.length;n<r;n++)if("name"===t[n].name&&"viewport"===t[n].value)return!0}(e,r)&&"content"===t)n=n.replace(/\s+/g,"").replace(/[0-9]+\.[0-9]+/g,function(e){return(+e).toString()});else if(n&&a.customAttrCollapse&&a.customAttrCollapse.test(t))n=n.replace(/\n+|\r+|\s{2,}/g,"");else if("script"===e&&"type"===t)n=M(n.replace(/\s*;\s*/g,";"));else if(s=e,u=r,"media"===t&&(E(s,u,"stylesheet")||j(s,u)))return n=M(n),i=a.minifyCSS("@media "+n+"{a{top:0}}"),(o=i.match(/^@media ([\s\S]*?)\s*{[\s\S]*}$/))?o[1]:i;var i,o,s,u,l,c,f,p,h,d,m;return n}var V=i("html,head,body,colgroup,tbody"),$=i("html,head,body,li,dt,dd,p,rb,rt,rtc,rp,optgroup,option,colgroup,caption,thead,tbody,tfoot,tr,td,th"),H=i("meta,link,script,style,template,noscript"),K=i("dt,dd"),G=i("address,article,aside,blockquote,details,div,dl,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,hr,main,menu,nav,ol,p,pre,section,table,ul"),Y=i("a,audio,del,ins,map,noscript,video"),W=i("rb,rt,rtc,rp"),Q=i("rb,rtc,rp"),Z=i("option,optgroup"),J=i("tbody,tfoot"),X=i("thead,tbody,tfoot"),ee=i("td,th"),te=i("html,head,body"),ne=i("html,body"),re=i("head,colgroup,caption"),ie=i("dt,thead"),oe=i("a,abbr,acronym,address,applet,area,article,aside,audio,b,base,basefont,bdi,bdo,bgsound,big,blink,blockquote,body,br,button,canvas,caption,center,cite,code,col,colgroup,command,content,data,datalist,dd,del,details,dfn,dialog,dir,div,dl,dt,element,em,embed,fieldset,figcaption,figure,font,footer,form,frame,frameset,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,i,iframe,image,img,input,ins,isindex,kbd,keygen,label,legend,li,link,listing,main,map,mark,marquee,menu,menuitem,meta,meter,multicol,nav,nobr,noembed,noframes,noscript,object,ol,optgroup,option,output,p,param,picture,plaintext,pre,progress,q,rp,rt,rtc,ruby,s,samp,script,section,select,shadow,small,source,spacer,span,strike,strong,style,sub,summary,sup,table,tbody,td,template,textarea,tfoot,th,thead,time,title,tr,track,tt,u,ul,var,video,wbr,xmp");var C=new RegExp("^(?:class|id|style|title|lang|dir|on(?:focus|blur|change|click|dblclick|mouse(?:down|up|over|move|out)|key(?:press|down|up)))$");function ae(e,t){for(var n=t.length-1;0<=n;n--)if(t[n].name===e)return!0;return!1}function se(e){return!/^(?:script|style|pre|textarea)$/.test(e)}function ue(e){return!/^(?:pre|textarea)$/.test(e)}function le(e,t,n,r){var i,o,a,s,u,l,c,f,p=r.caseSensitive?e.name:e.name.toLowerCase(),h=e.value;if((r.decodeEntities&&h&&(h=d(h,{isAttributeValue:!0})),!(r.removeRedundantAttributes&&(i=n,o=p,s=t,a=(a=h)?M(a.toLowerCase()):"","script"===i&&"language"===o&&"javascript"===a||"form"===i&&"method"===o&&"get"===a||"input"===i&&"type"===o&&"text"===a||"script"===i&&"charset"===o&&!b(s,"src")||"a"===i&&"name"===o&&b(s,"id")||"area"===i&&"shape"===o&&"rect"===a)||r.removeScriptTypeAttributes&&"script"===n&&"type"===p&&I(h)||r.removeStyleLinkTypeAttributes&&("style"===n||"link"===n)&&"type"===p&&y(h)))&&(h=x(n,p,h,r,t),!r.removeEmptyAttributes||(u=n,l=p,f=r,(c=h)&&!/^\s*$/.test(c)||!("function"==typeof f.removeEmptyAttributes?f.removeEmptyAttributes(l,u):"input"===u&&"value"===l||C.test(l)))))return r.decodeEntities&&h&&(h=h.replace(/&(#?[0-9a-zA-Z]+;)/g,"&amp;$1")),{attr:e,name:p,value:h}}function ce(e,t,n,r,i){var o,a,s,u,l=e.name,c=e.value,f=e.attr,p=f.quote;if(void 0===c||n.removeAttributeQuotes&&!~c.indexOf(i)&&/^[^ \t\n\f\r"'`=<>]+$/.test(c))a=!r||t||/\/$/.test(c)?c+" ":c;else{if(!n.preventAttributesEscaping){if(void 0===n.quoteCharacter)p=(c.match(/'/g)||[]).length<(c.match(/"/g)||[]).length?"'":'"';else p="'"===n.quoteCharacter?"'":'"';c='"'===p?c.replace(/"/g,"&#34;"):c.replace(/'/g,"&#39;")}a=p+c+p,r||n.removeTagWhitespace||(a+=" ")}return void 0===c||n.collapseBooleanAttributes&&(s=l.toLowerCase(),u=c.toLowerCase(),_(s)||"draggable"===s&&!w(u))?(o=l,r||(o+=" ")):o=l+f.customAssign+a,f.customOpen+o+f.customClose}function fe(e){return e}function pe(e){for(var t;t=Math.random().toString(36).replace(/^0\.[0-9]*/,""),~e.indexOf(t););return t}var he=i("script,style");function de(i,b,e){var y=[];!function(o){if(["html5","includeAutoGeneratedTags"].forEach(function(e){e in o||(o[e]=!0)}),"function"!=typeof o.log&&(o.log=fe),o.canCollapseWhitespace||(o.canCollapseWhitespace=se),o.canTrimWhitespace||(o.canTrimWhitespace=ue),"ignoreCustomComments"in o||(o.ignoreCustomComments=[/^!/]),"ignoreCustomFragments"in o||(o.ignoreCustomFragments=[/<%[\s\S]*?%>/,/<\?[\s\S]*?\?>/]),o.minifyURLs||(o.minifyURLs=fe),"function"!=typeof o.minifyURLs){var e=o.minifyURLs;"string"==typeof e?e={site:e}:"object"!=typeof e&&(e={}),o.minifyURLs=function(t){try{return m.relate(t,e)}catch(e){return o.log(e),t}}}if(o.minifyJS||(o.minifyJS=fe),"function"!=typeof o.minifyJS){var a=o.minifyJS;"object"!=typeof a&&(a={}),(a.parse||(a.parse={})).bare_returns=!1,o.minifyJS=function(e,t){var n=e.match(/^\s*<!--.*/),r=n?e.slice(n[0].length).replace(/\n\s*-->\s*$/,""):e;a.parse.bare_returns=t;var i=v.minify(r,a);return i.error?(o.log(i.error),e):i.code.replace(/;$/,"")}}if(o.minifyCSS||(o.minifyCSS=fe),"function"!=typeof o.minifyCSS){var n=o.minifyCSS;"object"!=typeof n&&(n={}),o.minifyCSS=function(t){t=t.replace(/(url\s*\(\s*)("|'|)(.*?)\2(\s*\))/gi,function(e,t,n,r,i){return t+n+o.minifyURLs(r)+n+i});try{return new p(n).minify(t).styles}catch(e){return o.log(e),t}}}}(b=b||{}),b.collapseWhitespace&&(i=N(i,b,!0,!0));var _,w,a,E,s,A=[],x="",C="",k=[],O=[],S=[],D="",B="",t=Date.now(),o=[],u=[];function l(e){return e.replace(s,function(e,t,n){var r=u[+n];return r[1]+E+n+r[2]})}i=i.replace(/<!-- htmlmin:ignore -->([\s\S]*?)<!-- htmlmin:ignore -->/g,function(e,t){if(!a){a=pe(i);var n=new RegExp("^"+a+"([0-9]+)$");b.ignoreCustomComments?b.ignoreCustomComments.push(n):b.ignoreCustomComments=[n]}var r="\x3c!--"+a+o.length+"--\x3e";return o.push(t),r});var n=b.ignoreCustomFragments.map(function(e){return e.source});if(n.length){var r=new RegExp("\\s*(?:"+n.join("|")+")+\\s*","g");i=i.replace(r,function(e){if(!E){E=pe(i),s=new RegExp("(\\s*)"+E+"([0-9]+)(\\s*)","g");var t=b.minifyCSS;t&&(b.minifyCSS=function(e){return t(l(e))});var n=b.minifyJS;n&&(b.minifyJS=function(e,t){return n(l(e),t)})}var r=E+u.length;return u.push(/^(\s*)[\s\S]*?(\s*)$/.exec(e)),"\t"+r+"\t"})}function T(e,t){return b.canTrimWhitespace(e,t,ue)}function R(){for(var e=A.length-1;0<e&&!/^<[^/!]/.test(A[e]);)e--;A.length=Math.max(0,e)}function F(){for(var e=A.length-1;0<e&&!/^<\//.test(A[e]);)e--;A.length=Math.max(0,e)}function c(e,t){for(var n=null;0<=e&&T(n);e--){var r=A[e],i=r.match(/^<\/([\w:-]+)>$/);if(i)n=i[1];else if(/>$/.test(r)||(A[e]=z(r,null,t,b)))break}}function L(e){var t=A.length-1;if(1<A.length){var n=A[A.length-1];/^(?:<!|$)/.test(n)&&-1===n.indexOf(a)&&t--}c(t,e)}(b.sortAttributes&&"function"!=typeof b.sortAttributes||b.sortClassName&&"function"!=typeof b.sortClassName)&&function(e,s,t,n){var u=s.sortAttributes&&Object.create(null),l=s.sortClassName&&new g;function c(e){return e.map(function(e){return s.caseSensitive?e.name:e.name.toLowerCase()})}function r(e,t){return!t||-1===e.indexOf(t)}function f(e){return r(e,t)&&r(e,n)}var i=s.log;if(s.log=null,s.sortAttributes=!1,s.sortClassName=!1,function t(e){var o,a;new h(e,{start:function(e,t){u&&(u[e]||(u[e]=new g),u[e].add(c(t).filter(f)));for(var n=0,r=t.length;n<r;n++){var i=t[n];l&&"class"===(s.caseSensitive?i.name:i.name.toLowerCase())?l.add(M(i.value).split(/[ \t\n\f\r]+/).filter(f)):s.processScripts&&"type"===i.name.toLowerCase()&&(o=e,a=i.value)}},end:function(){o=""},chars:function(e){s.processScripts&&he(o)&&-1<s.processScripts.indexOf(a)&&t(e)}})}(de(e,s)),s.log=i,u){var o=Object.create(null);for(var a in u)o[a]=u[a].createSorter();s.sortAttributes=function(e,n){var t=o[e];if(t){var r=Object.create(null),i=c(n);i.forEach(function(e,t){(r[e]||(r[e]=[])).push(n[t])}),t.sort(i).forEach(function(e,t){n[t]=r[e].shift()})}}}if(l){var p=l.createSorter();s.sortClassName=function(e){return p.sort(e.split(/[ \n\f\r]+/)).join(" ")}}}(i,b,a,E),new h(i,{partialMarkup:e,html5:b.html5,start:function(e,t,n,r,i){var o=e.toLowerCase();if("svg"===o){y.push(b);var a={};for(var s in b)a[s]=b[s];a.keepClosingSlash=!0,a.caseSensitive=!0,b=a}e=b.caseSensitive?e:o,q(_=C=e)||(x=""),w=!1,k=t;var u,l,c=b.removeOptionalTags;if(c){var f=oe(e);f&&function(e,t){switch(e){case"html":case"head":return!0;case"body":return!H(t);case"colgroup":return"col"===t;case"tbody":return"tr"===t}return!1}(D,e)&&R(),D="",f&&function(e,t){switch(e){case"html":case"head":case"body":case"colgroup":case"caption":return!0;case"li":case"optgroup":case"tr":return t===e;case"dt":case"dd":return K(t);case"p":return G(t);case"rb":case"rt":case"rp":return W(t);case"rtc":return Q(t);case"option":return Z(t);case"thead":case"tbody":return J(t);case"tfoot":return"tbody"===t;case"td":case"th":return ee(t)}return!1}(B,e)&&(F(),c=!function(e,t){switch(t){case"colgroup":return"colgroup"===e;case"tbody":return X(e)}return!1}(B,e)),B=""}b.collapseWhitespace&&(O.length||L(e),n||(T(e,t)&&!O.length||O.push(e),u=e,l=t,(!b.canCollapseWhitespace(u,l,se)||S.length)&&S.push(e)));var p="<"+e,h=r&&b.keepClosingSlash;A.push(p),b.sortAttributes&&b.sortAttributes(e,t);for(var d=[],m=t.length,g=!0;0<=--m;){var v=le(t[m],t,e,b);v&&(d.unshift(ce(v,h,b,g,E)),g=!1)}0<d.length?(A.push(" "),A.push.apply(A,d)):c&&V(e)&&(D=e),A.push(A.pop()+(h?"/":"")+">"),i&&!b.includeAutoGeneratedTags&&(R(),D="")},end:function(e,t,n){var r=e.toLowerCase();"svg"===r&&(b=y.pop()),e=b.caseSensitive?e:r,b.collapseWhitespace&&(O.length?e===O[O.length-1]&&O.pop():L("/"+e),S.length&&e===S[S.length-1]&&S.pop());var i=!1;e===C&&(C="",i=!w),b.removeOptionalTags&&(i&&te(D)&&R(),D="",!oe(e)||!B||ie(B)||"p"===B&&Y(e)||F(),B=$(e)?e:""),b.removeEmptyElements&&i&&function(e,t){switch(e){case"textarea":return!1;case"audio":case"script":case"video":if(ae("src",t))return!1;break;case"iframe":if(ae("src",t)||ae("srcdoc",t))return!1;break;case"object":if(ae("data",t))return!1;break;case"applet":if(ae("code",t))return!1}return!0}(e,t)?(R(),B=D=""):(n&&!b.includeAutoGeneratedTags?B="":A.push("</"+e+">"),_="/"+e,P(e)?i&&(x+="|"):x="")},chars:function(t,e,n){if(e=""===e?"comment":e,n=""===n?"comment":n,b.decodeEntities&&t&&!he(C)&&(t=d(t)),b.collapseWhitespace){if(O.length)s&&(t=t.replace(s,function(e,t,n){return u[+n][0]}));else{if("comment"===e){var r=A[A.length-1];if(-1===r.indexOf(a)&&(r||(e=_),1<A.length&&(!r||!b.conservativeCollapse&&/ $/.test(x)))){var i=A.length-2;A[i]=A[i].replace(/\s+$/,function(e){return t=e+t,""})}}if(e)if("/nobr"===e||"wbr"===e){if(/^\s/.test(t)){for(var o=A.length-1;0<o&&0!==A[o].lastIndexOf("<"+e);)o--;c(o-1,"br")}}else q("/"===e.charAt(0)?e.slice(1):e)&&(t=N(t,b,/(?:^|\s)$/.test(x)));!(t=e||n?z(t,e,n,b):N(t,b,!0,!0))&&/\s$/.test(x)&&e&&"/"===e.charAt(0)&&c(A.length-1,n)}S.length||"html"===n||e&&n||(t=N(t,b,!1,!1,!0))}b.processScripts&&he(C)&&(t=function(e,t,n){for(var r=0,i=n.length;r<i;r++)if("type"===n[r].name.toLowerCase()&&-1<t.processScripts.indexOf(n[r].value))return de(e,t);return e}(t,b,k)),function(e,t){if("script"!==e)return!1;for(var n=0,r=t.length;n<r;n++)if("type"===t[n].name.toLowerCase())return I(t[n].value);return!0}(C,k)&&(t=b.minifyJS(t)),j(C,k)&&(t=b.minifyCSS(t)),b.removeOptionalTags&&t&&(("html"===D||"body"===D&&!/^\s/.test(t))&&R(),D="",(ne(B)||re(B)&&!/^\s/.test(t))&&F(),B=""),_=/^\s*$/.test(t)?e:"comment",b.decodeEntities&&t&&!he(C)&&(t=t.replace(/&(#?[0-9a-zA-Z]+;)/g,"&amp$1").replace(/</g,"&lt;")),x+=t,t&&(w=!0),A.push(t)},comment:function(e,t){var n,i,r=t?"<!":"\x3c!--",o=t?">":"--\x3e";e=/^\[if\s[^\]]+]|\[endif]$/.test(e)?r+(n=e,(i=b).processConditionalComments?n.replace(/^(\[if\s[^\]]+]>)([\s\S]*?)(<!\[endif])$/,function(e,t,n,r){return t+de(n,i,!0)+r}):n)+o:b.removeComments?function(e,t){for(var n=0,r=t.ignoreCustomComments.length;n<r;n++)if(t.ignoreCustomComments[n].test(e))return!0;return!1}(e,b)?"\x3c!--"+e+"--\x3e":"":r+e+o,b.removeOptionalTags&&e&&(B=D=""),A.push(e)},doctype:function(e){A.push(b.useShortDoctype?"<!DOCTYPE html>":U(e))},customAttrAssign:b.customAttrAssign,customAttrSurround:b.customAttrSurround}),b.removeOptionalTags&&(te(D)&&R(),B&&!ie(B)&&F()),b.collapseWhitespace&&L("br");var f=function(e,t){var n,r=t.maxLineLength;if(r){for(var i,o=[],a="",s=0,u=e.length;s<u;s++)i=e[s],a.length+i.length<r?a+=i:(o.push(a.replace(/^\n/,"")),a=i);o.push(a),n=o.join("\n")}else n=e.join("");return t.collapseWhitespace?N(n,t,!0,!0):n}(A,b);return s&&(f=f.replace(s,function(e,t,n,r){var i=u[+n][0];return b.collapseWhitespace?("\t"!==t&&(i=t+i),"\t"!==r&&(i+=r),N(i,{preserveLineBreaks:b.preserveLineBreaks,conservativeCollapse:!b.trimCustomFragments},/^[ \n\r\t\f]/.test(i),/[ \n\r\t\f]$/.test(i))):i})),a&&(f=f.replace(new RegExp("\x3c!--"+a+"([0-9]+)--\x3e","g"),function(e,t){return o[+t]})),b.log("minified in: "+(Date.now()-t)+"ms"),f}n.minify=function(e,t){return de(e,t)}},{"./htmlparser":167,"./tokenchain":168,"./utils":169,"clean-css":6,he:103,relateurl:129,"uglify-js":"uglify-js"}],"uglify-js":[function(e,t,n){(function(l){!function(d){"use strict";function e(e){return e.split("")}function ee(e,t){return 0<=t.indexOf(e)}function H(e,t){for(var n=0,r=t.length;n<r;++n)if(e(t[n]))return t[n]}function t(e){Object.defineProperty(e.prototype,"stack",{get:function(){var e=new Error(this.message);e.name=this.name;try{throw e}catch(e){return e.stack}}})}function o(e,t){this.message=e,this.defs=t}function K(e,t,n){!0===e&&(e={});var r=e||{};if(n)for(var i in r)ae(r,i)&&!ae(t,i)&&o.croak("`"+i+"` is not a supported option",t);for(var i in t)ae(t,i)&&(r[i]=e&&ae(e,i)?e[i]:t[i]);return r}function n(e,t){var n=0;for(var r in t)ae(t,r)&&(e[r]=t[r],n++);return n}function $(){}function te(){return!1}function ne(){return!0}function S(){return this}function D(){return null}((o.prototype=Object.create(Error.prototype)).constructor=o).prototype.name="DefaultsError",t(o),o.croak=function(e,t){throw new o(e,t)};var re=function(){function e(n,r,i){var o,a=[],s=[];function e(){var e=r(n[o],o),t=e instanceof f;return t&&(e=e.v),e instanceof l?(e=e.v)instanceof c?s.push.apply(s,i?e.v.slice().reverse():e.v):s.push(e):e!==u&&(e instanceof c?a.push.apply(a,i?e.v.slice().reverse():e.v):a.push(e)),t}if(n instanceof Array)if(i){for(o=n.length;0<=--o&&!e(););a.reverse(),s.reverse()}else for(o=0;o<n.length&&!e();++o);else for(o in n)if(ae(n,o)&&e())break;return s.concat(a)}e.at_top=function(e){return new l(e)},e.splice=function(e){return new c(e)},e.last=function(e){return new f(e)};var u=e.skip={};function l(e){this.v=e}function c(e){this.v=e}function f(e){this.v=e}return e}();function m(e,t){e.indexOf(t)<0&&e.push(t)}function B(e,n){return e.replace(/\{(.+?)\}/g,function(e,t){return n&&n[t]})}function T(e,t){for(var n=e.length;0<=--n;)e[n]===t&&e.splice(n,1)}function s(e,a){if(e.length<2)return e.slice();return function e(t){if(t.length<=1)return t;var n=Math.floor(t.length/2),r=t.slice(0,n),i=t.slice(n);return function(e,t){for(var n=[],r=0,i=0,o=0;r<e.length&&i<t.length;)a(e[r],t[i])<=0?n[o++]=e[r++]:n[o++]=t[i++];return r<e.length&&n.push.apply(n,e.slice(r)),i<t.length&&n.push.apply(n,t.slice(i)),n}(r=e(r),i=e(i))}(e)}function ie(e){e instanceof Array||(e=e.split(" "));var n="",t=[];e:for(var r=0;r<e.length;++r){for(var i=0;i<t.length;++i)if(t[i][0].length==e[r].length){t[i].push(e[r]);continue e}t.push([e[r]])}function o(e){return JSON.stringify(e).replace(/[\u2028\u2029]/g,function(e){switch(e){case"\u2028":return"\\u2028";case"\u2029":return"\\u2029"}return e})}function a(e){if(1==e.length)return n+="return str === "+o(e[0])+";";n+="switch(str){";for(var t=0;t<e.length;++t)n+="case "+o(e[t])+":";n+="return true}return false;"}if(3<t.length){t.sort(function(e,t){return t.length-e.length}),n+="switch(str.length){";for(r=0;r<t.length;++r){var s=t[r];n+="case "+s[0].length+":",a(s)}n+="}"}else a(e);return new Function("str",n)}function oe(e,t){for(var n=e.length;0<=--n;)if(!t(e[n]))return!1;return!0}function R(){this._values=Object.create(null),this._size=0}function ae(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function F(e){for(var t,n=e.parent(-1),r=0;t=e.parent(r);r++){if(t instanceof ue&&t.body===n)return!0;if(!(t instanceof Ye&&t.expressions[0]===n||"Call"==t.TYPE&&t.expression===n||t instanceof Qe&&t.expression===n||t instanceof Ze&&t.expression===n||t instanceof nt&&t.condition===n||t instanceof tt&&t.left===n||t instanceof et&&t.expression===n))return!1;n=t}}function r(e,t,n,r){arguments.length<4&&(r=se);var i=t=t?t.split(/\s+/):[];r&&r.PROPS&&(t=t.concat(r.PROPS));for(var o="return function AST_"+e+"(props){ if (props) { ",a=t.length;0<=--a;)o+="this."+t[a]+" = props."+t[a]+";";var s=r&&new r;(s&&s.initialize||n&&n.initialize)&&(o+="this.initialize();"),o+="}}";var u=new Function(o)();if(s&&(u.prototype=s,u.BASE=r),r&&r.SUBCLASSES.push(u),(u.prototype.CTOR=u).PROPS=t||null,u.SELF_PROPS=i,u.SUBCLASSES=[],e&&(u.prototype.TYPE=u.TYPE=e),n)for(a in n)ae(n,a)&&(/^\$/.test(a)?u[a.substr(1)]=n[a]:u.prototype[a]=n[a]);return u.DEFMETHOD=function(e,t){this.prototype[e]=t},void 0!==d&&(d["AST_"+e]=u),u}R.prototype={set:function(e,t){return this.has(e)||++this._size,this._values["$"+e]=t,this},add:function(e,t){return this.has(e)?this.get(e).push(t):this.set(e,[t]),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 t in this._values)e(this._values[t],t.substr(1))},size:function(){return this._size},map:function(e){var t=[];for(var n in this._values)t.push(e(this._values[n],n.substr(1)));return t},clone:function(){var e=new R;for(var t in this._values)e._values[t]=this._values[t];return e._size=this._size,e},toObject:function(){return this._values}},R.fromObject=function(e){var t=new R;return t._size=n(t._values,e),t};var O=r("Token","type value line col pos endline endcol endpos nlb comments_before comments_after file raw",{},null),se=r("Node","start end",{_clone:function(e){if(e){var t=this.clone();return t.transform(new Wt(function(e){if(e!==t)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);se.warn_function=null,se.warn=function(e,t){se.warn_function&&se.warn_function(B(e,t))};var ue=r("Statement",null,{$documentation:"Base class of all statements"}),le=r("Debugger",null,{$documentation:"Represents a debugger statement"},ue),ce=r("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"}},ue),fe=r("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)})}},ue);function L(e,t){var n=e.body;if(n instanceof ue)n._walk(t);else for(var r=0,i=n.length;r<i;r++)n[r]._walk(t)}var pe=r("Block","body",{$documentation:"A body of statements (usually bracketed)",$propdoc:{body:"[AST_Statement*] an array of statements"},_walk:function(e){return e._visit(this,function(){L(this,e)})}},ue),he=r("BlockStatement",null,{$documentation:"A block statement"},pe),de=r("EmptyStatement",null,{$documentation:"The empty statement (empty block or simply a semicolon)"},ue),g=r("StatementWithBody","body",{$documentation:"Base class for all statements that contain one nested body: `For`, `ForIn`, `Do`, `While`, `With`",$propdoc:{body:"[AST_Statement] the body; this should always be present, even if it's an AST_EmptyStatement"}},ue),me=r("LabeledStatement","label",{$documentation:"Statement with a label",$propdoc:{label:"[AST_Label] a label definition"},_walk:function(e){return e._visit(this,function(){this.label._walk(e),this.body._walk(e)})},clone:function(e){var t=this._clone(e);if(e){var n=t.label,r=this.label;t.walk(new Dt(function(e){e instanceof Re&&e.label&&e.label.thedef===r&&(e.label.thedef=n).references.push(e)}))}return t}},g),ge=r("IterationStatement",null,{$documentation:"Internal class.  All loops inherit from it."},g),ve=r("DWLoop","condition",{$documentation:"Base class for do/while statements",$propdoc:{condition:"[AST_Node] the loop condition.  Should not be instanceof AST_Statement"}},ge),be=r("Do",null,{$documentation:"A `do` statement",_walk:function(e){return e._visit(this,function(){this.body._walk(e),this.condition._walk(e)})}},ve),ye=r("While",null,{$documentation:"A `while` statement",_walk:function(e){return e._visit(this,function(){this.condition._walk(e),this.body._walk(e)})}},ve),_e=r("For","init condition step",{$documentation:"A `for` statement",$propdoc:{init:"[AST_Node?] the `for` initialization code, or null if empty",condition:"[AST_Node?] the `for` termination clause, or null if empty",step:"[AST_Node?] the `for` update clause, or null if empty"},_walk:function(e){return e._visit(this,function(){this.init&&this.init._walk(e),this.condition&&this.condition._walk(e),this.step&&this.step._walk(e),this.body._walk(e)})}},ge),we=r("ForIn","init object",{$documentation:"A `for ... in` statement",$propdoc:{init:"[AST_Node] the `for/in` initialization code",object:"[AST_Node] the object that we're looping through"},_walk:function(e){return e._visit(this,function(){this.init._walk(e),this.object._walk(e),this.body._walk(e)})}},ge),Ee=r("With","expression",{$documentation:"A `with` statement",$propdoc:{expression:"[AST_Node] the `with` expression"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e),this.body._walk(e)})}},g),Ae=r("Scope","variables functions uses_with uses_eval parent_scope enclosed cname",{$documentation:"Base class for all statements introducing a lexical scope",$propdoc:{variables:"[Object/S] a map of name -> 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)"},clone:function(e){var t=this._clone(e);return this.variables&&(t.variables=this.variables.clone()),this.functions&&(t.functions=this.functions.clone()),this.enclosed&&(t.enclosed=this.enclosed.slice()),t}},pe),xe=r("Toplevel","globals",{$documentation:"The toplevel scope",$propdoc:{globals:"[Object/S] a map of name -> SymbolDef for all undeclared names"},wrap_commonjs:function(e){var t=this.body,n="(function(exports){'$ORIG';})(typeof "+e+"=='undefined'?("+e+"={}):"+e+");";return n=(n=Yt(n)).transform(new Wt(function(e){if(e instanceof ce&&"$ORIG"==e.value)return re.splice(t)}))}},Ae),Ce=r("Lambda","name argnames uses_arguments",{$documentation:"Base class for functions",$propdoc:{name:"[AST_SymbolDeclaration?] the name of this function",argnames:"[AST_SymbolFunarg*] array of function arguments",uses_arguments:"[boolean/S] tells whether this function accesses the arguments array"},_walk:function(r){return r._visit(this,function(){this.name&&this.name._walk(r);for(var e=this.argnames,t=0,n=e.length;t<n;t++)e[t]._walk(r);L(this,r)})}},Ae),ke=r("Accessor",null,{$documentation:"A setter/getter function.  The `name` property is always null."},Ce),Oe=r("Function","inlined",{$documentation:"A function expression"},Ce),Se=r("Defun","inlined",{$documentation:"A function definition"},Ce),De=r("Jump",null,{$documentation:"Base class for “jumps” (for now that's `return`, `throw`, `break` and `continue`)"},ue),Be=r("Exit","value",{$documentation:"Base class for “exits” (`return` and `throw`)",$propdoc:{value:"[AST_Node?] the value returned or thrown by this statement; could be null for AST_Return"},_walk:function(e){return e._visit(this,this.value&&function(){this.value._walk(e)})}},De),Te=r("Return",null,{$documentation:"A `return` statement"},Be),G=r("Throw",null,{$documentation:"A `throw` statement"},Be),Re=r("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)})}},De),Fe=r("Break",null,{$documentation:"A `break` statement"},Re),Le=r("Continue",null,{$documentation:"A `continue` statement"},Re),Me=r("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)})}},g),Ue=r("Switch","expression",{$documentation:"A `switch` statement",$propdoc:{expression:"[AST_Node] the `switch` “discriminant”"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e),L(this,e)})}},pe),Ne=r("SwitchBranch",null,{$documentation:"Base class for `switch` branches"},pe),Pe=r("Default",null,{$documentation:"A `default` switch branch"},Ne),qe=r("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),L(this,e)})}},Ne),ze=r("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(){L(this,e),this.bcatch&&this.bcatch._walk(e),this.bfinally&&this.bfinally._walk(e)})}},pe),Ie=r("Catch","argname",{$documentation:"A `catch` node; only makes sense as part of a `try` statement",$propdoc:{argname:"[AST_SymbolCatch] symbol for the exception"},_walk:function(e){return e._visit(this,function(){this.argname._walk(e),L(this,e)})}},pe),je=r("Finally",null,{$documentation:"A `finally` node; only makes sense as part of a `try` statement"},pe),Ve=r("Definitions","definitions",{$documentation:"Base class for `var` nodes (variable declarations/initializations)",$propdoc:{definitions:"[AST_VarDef*] array of variable definitions"},_walk:function(r){return r._visit(this,function(){for(var e=this.definitions,t=0,n=e.length;t<n;t++)e[t]._walk(r)})}},ue),$e=r("Var",null,{$documentation:"A `var` statement"},Ve),He=r("VarDef","name value",{$documentation:"A variable declaration; only appears in a AST_Definitions node",$propdoc:{name:"[AST_SymbolVar] name of the variable",value:"[AST_Node?] initializer, or null of there's no initializer"},_walk:function(e){return e._visit(this,function(){this.name._walk(e),this.value&&this.value._walk(e)})}}),Ke=r("Call","expression args",{$documentation:"A function call expression",$propdoc:{expression:"[AST_Node] expression to invoke as function",args:"[AST_Node*] array of arguments"},_walk:function(r){return r._visit(this,function(){for(var e=this.args,t=0,n=e.length;t<n;t++)e[t]._walk(r);this.expression._walk(r)})}}),Ge=r("New",null,{$documentation:"An object instantiation.  Derives from a function call since it has exactly the same properties"},Ke),Ye=r("Sequence","expressions",{$documentation:"A sequence expression (comma-separated expressions)",$propdoc:{expressions:"[AST_Node*] array of expressions (at least two)"},_walk:function(t){return t._visit(this,function(){this.expressions.forEach(function(e){e._walk(t)})})}}),We=r("PropAccess","expression property",{$documentation:'Base class for property access expressions, i.e. `a.foo` or `a["foo"]`',$propdoc:{expression:"[AST_Node] the “container” expression",property:"[AST_Node|string] the property to access.  For AST_Dot this is always a plain string, while for AST_Sub it's an arbitrary AST_Node"}}),Qe=r("Dot",null,{$documentation:"A dotted property access expression",_walk:function(e){return e._visit(this,function(){this.expression._walk(e)})}},We),Ze=r("Sub",null,{$documentation:'Index-style property access, i.e. `a["foo"]`',_walk:function(e){return e._visit(this,function(){this.expression._walk(e),this.property._walk(e)})}},We),Je=r("Unary","operator expression",{$documentation:"Base class for unary expressions",$propdoc:{operator:"[string] the operator",expression:"[AST_Node] expression that this unary operator applies to"},_walk:function(e){return e._visit(this,function(){this.expression._walk(e)})}}),Xe=r("UnaryPrefix",null,{$documentation:"Unary prefix expression, i.e. `typeof i` or `++i`"},Je),et=r("UnaryPostfix",null,{$documentation:"Unary postfix expression, i.e. `i++`"},Je),tt=r("Binary","operator left right",{$documentation:"Binary expression, i.e. `a + b`",$propdoc:{left:"[AST_Node] left-hand side expression",operator:"[string] the operator",right:"[AST_Node] right-hand side expression"},_walk:function(e){return e._visit(this,function(){this.left._walk(e),this.right._walk(e)})}}),nt=r("Conditional","condition consequent alternative",{$documentation:"Conditional expression using the ternary operator, i.e. `a ? b : c`",$propdoc:{condition:"[AST_Node]",consequent:"[AST_Node]",alternative:"[AST_Node]"},_walk:function(e){return e._visit(this,function(){this.condition._walk(e),this.consequent._walk(e),this.alternative._walk(e)})}}),rt=r("Assign",null,{$documentation:"An assignment expression — `a = b + 5`"},tt),it=r("Array","elements",{$documentation:"An array literal",$propdoc:{elements:"[AST_Node*] array of elements"},_walk:function(r){return r._visit(this,function(){for(var e=this.elements,t=0,n=e.length;t<n;t++)e[t]._walk(r)})}}),ot=r("Object","properties",{$documentation:"An object literal",$propdoc:{properties:"[AST_ObjectProperty*] array of properties"},_walk:function(r){return r._visit(this,function(){for(var e=this.properties,t=0,n=e.length;t<n;t++)e[t]._walk(r)})}}),at=r("ObjectProperty","key value",{$documentation:"Base class for literal object properties",$propdoc:{key:"[string|AST_SymbolAccessor] property name. For ObjectKeyVal this is a string. For getters and setters this is an AST_SymbolAccessor.",value:"[AST_Node] property value.  For getters and setters this is an AST_Accessor."},_walk:function(e){return e._visit(this,function(){this.value._walk(e)})}}),st=r("ObjectKeyVal","quote",{$documentation:"A key: value object property",$propdoc:{quote:"[string] the original quote character"}},at),Y=r("ObjectSetter",null,{$documentation:"An object setter property"},at),W=r("ObjectGetter",null,{$documentation:"An object getter property"},at),ut=r("Symbol","scope name thedef",{$propdoc:{name:"[string] name of this symbol",scope:"[AST_Scope/S] the current scope (not necessarily the definition scope)",thedef:"[SymbolDef/S] the definition of this symbol"},$documentation:"Base class for all symbols"}),Q=r("SymbolAccessor",null,{$documentation:"The name of a property accessor (setter/getter function)"},ut),lt=r("SymbolDeclaration","init",{$documentation:"A declaration symbol (symbol in var, function name or argument, symbol in catch)"},ut),ct=r("SymbolVar",null,{$documentation:"Symbol defining a variable"},lt),ft=r("SymbolFunarg",null,{$documentation:"Symbol naming a function argument"},ct),pt=r("SymbolDefun",null,{$documentation:"Symbol defining a function"},lt),ht=r("SymbolLambda",null,{$documentation:"Symbol naming a function expression"},lt),dt=r("SymbolCatch",null,{$documentation:"Symbol naming the exception in catch"},lt),Z=r("Label","references",{$documentation:"Symbol naming a label (declaration)",$propdoc:{references:"[AST_LoopControl*] a list of nodes referring to this label"},initialize:function(){this.references=[],this.thedef=this}},ut),mt=r("SymbolRef",null,{$documentation:"Reference to some symbol (not definition/declaration)"},ut),J=r("LabelRef",null,{$documentation:"Reference to a label symbol"},ut),gt=r("This",null,{$documentation:"The `this` symbol"},ut),vt=r("Constant",null,{$documentation:"Base class for all constants",getValue:function(){return this.value}}),bt=r("String","value quote",{$documentation:"A string literal",$propdoc:{value:"[string] the contents of this string",quote:"[string] the original quote character"}},vt),yt=r("Number","value literal",{$documentation:"A number literal",$propdoc:{value:"[number] the numeric value",literal:"[string] numeric value as string (optional)"}},vt),_t=r("RegExp","value",{$documentation:"A regexp literal",$propdoc:{value:"[RegExp] the actual regexp"}},vt),a=r("Atom",null,{$documentation:"Base class for atoms"},vt),wt=r("Null",null,{$documentation:"The `null` atom",value:null},a),Et=r("NaN",null,{$documentation:"The impossible value",value:NaN},a),At=r("Undefined",null,{$documentation:"The `undefined` value",value:void 0},a),xt=r("Hole",null,{$documentation:"A hole in an array",value:void 0},a),Ct=r("Infinity",null,{$documentation:"The `Infinity` value",value:1/0},a),kt=r("Boolean",null,{$documentation:"Base class for booleans"},a),Ot=r("False",null,{$documentation:"The `false` atom",value:!1},kt),St=r("True",null,{$documentation:"The `true` atom",value:!0},kt);function Dt(e){this.visit=e,this.stack=[],this.directives=Object.create(null)}Dt.prototype={_visit:function(e,t){this.push(e);var n=this.visit(e,t?function(){t.call(e)}:$);return!n&&t&&t.call(e),this.pop(),n},parent:function(e){return this.stack[this.stack.length-2-(e||0)]},push:function(e){e instanceof Ce?this.directives=Object.create(this.directives):e instanceof ce&&!this.directives[e.value]&&(this.directives[e.value]=e),this.stack.push(e)},pop:function(){this.stack.pop()instanceof Ce&&(this.directives=Object.getPrototypeOf(this.directives))},self:function(){return this.stack[this.stack.length-1]},find_parent:function(e){for(var t=this.stack,n=t.length;0<=--n;){var r=t[n];if(r instanceof e)return r}},has_directive:function(e){var t=this.directives[e];if(t)return t;var n=this.stack[this.stack.length-1];if(n instanceof Ae)for(var r=0;r<n.body.length;++r){var i=n.body[r];if(!(i instanceof ce))break;if(i.value==e)return i}},loopcontrol_target:function(e){var t=this.stack;if(e.label)for(var n=t.length;0<=--n;){if((r=t[n])instanceof me&&r.label.name==e.label.name)return r.body}else for(n=t.length;0<=--n;){var r;if((r=t[n])instanceof ge||e instanceof Fe&&r instanceof Ue)return r}}};var X="break case catch const continue debugger default delete do else finally for function if in instanceof new return switch throw try typeof var void while with",M="false null true",v="abstract boolean byte char class double enum export extends final float goto implements import int interface let long native package private protected public short static super synchronized this throws transient volatile yield "+M+" "+X,U="return new delete throw else case";X=ie(X),v=ie(v),U=ie(U),M=ie(M);var N=ie(e("+-*&%=<>!?|~^")),P=/^0x[0-9a-f]+$/i,q=/^0[0-7]+$/,z=ie(["in","instanceof","typeof","new","void","delete","++","--","+","-","!","~","&","|","^","*","/","%",">>","<<",">>>","<",">","<=",">=","==","===","!=","!==","?","=","+=","-=","/=","*=","%=",">>=","<<=",">>>=","|=","^=","&=","&&","||"]),I=ie(e("  \n\r\t\f\v​           \u2028\u2029   \ufeff")),j=ie(e("\n\r\u2028\u2029")),V=ie(e("[{(,;:")),Bt=ie(e("[]{}(),;:")),u={letter:new RegExp("[\\u0041-\\u005A\\u0061-\\u007A\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"),digit:new RegExp("[\\u0030-\\u0039\\u0660-\\u0669\\u06F0-\\u06F9\\u07C0-\\u07C9\\u0966-\\u096F\\u09E6-\\u09EF\\u0A66-\\u0A6F\\u0AE6-\\u0AEF\\u0B66-\\u0B6F\\u0BE6-\\u0BEF\\u0C66-\\u0C6F\\u0CE6-\\u0CEF\\u0D66-\\u0D6F\\u0DE6-\\u0DEF\\u0E50-\\u0E59\\u0ED0-\\u0ED9\\u0F20-\\u0F29\\u1040-\\u1049\\u1090-\\u1099\\u17E0-\\u17E9\\u1810-\\u1819\\u1946-\\u194F\\u19D0-\\u19D9\\u1A80-\\u1A89\\u1A90-\\u1A99\\u1B50-\\u1B59\\u1BB0-\\u1BB9\\u1C40-\\u1C49\\u1C50-\\u1C59\\uA620-\\uA629\\uA8D0-\\uA8D9\\uA900-\\uA909\\uA9D0-\\uA9D9\\uA9F0-\\uA9F9\\uAA50-\\uAA59\\uABF0-\\uABF9\\uFF10-\\uFF19]"),non_spacing_mark:new RegExp("[\\u0300-\\u036F\\u0483-\\u0487\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0610-\\u061A\\u064B-\\u065E\\u0670\\u06D6-\\u06DC\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0900-\\u0902\\u093C\\u0941-\\u0948\\u094D\\u0951-\\u0955\\u0962\\u0963\\u0981\\u09BC\\u09C1-\\u09C4\\u09CD\\u09E2\\u09E3\\u0A01\\u0A02\\u0A3C\\u0A41\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70\\u0A71\\u0A75\\u0A81\\u0A82\\u0ABC\\u0AC1-\\u0AC5\\u0AC7\\u0AC8\\u0ACD\\u0AE2\\u0AE3\\u0B01\\u0B3C\\u0B3F\\u0B41-\\u0B44\\u0B4D\\u0B56\\u0B62\\u0B63\\u0B82\\u0BC0\\u0BCD\\u0C3E-\\u0C40\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0CBC\\u0CBF\\u0CC6\\u0CCC\\u0CCD\\u0CE2\\u0CE3\\u0D41-\\u0D44\\u0D4D\\u0D62\\u0D63\\u0DCA\\u0DD2-\\u0DD4\\u0DD6\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB4-\\u0EB9\\u0EBB\\u0EBC\\u0EC8-\\u0ECD\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F71-\\u0F7E\\u0F80-\\u0F84\\u0F86\\u0F87\\u0F90-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102D-\\u1030\\u1032-\\u1037\\u1039\\u103A\\u103D\\u103E\\u1058\\u1059\\u105E-\\u1060\\u1071-\\u1074\\u1082\\u1085\\u1086\\u108D\\u109D\\u135F\\u1712-\\u1714\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B7-\\u17BD\\u17C6\\u17C9-\\u17D3\\u17DD\\u180B-\\u180D\\u18A9\\u1920-\\u1922\\u1927\\u1928\\u1932\\u1939-\\u193B\\u1A17\\u1A18\\u1A56\\u1A58-\\u1A5E\\u1A60\\u1A62\\u1A65-\\u1A6C\\u1A73-\\u1A7C\\u1A7F\\u1B00-\\u1B03\\u1B34\\u1B36-\\u1B3A\\u1B3C\\u1B42\\u1B6B-\\u1B73\\u1B80\\u1B81\\u1BA2-\\u1BA5\\u1BA8\\u1BA9\\u1C2C-\\u1C33\\u1C36\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE0\\u1CE2-\\u1CE8\\u1CED\\u1DC0-\\u1DE6\\u1DFD-\\u1DFF\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2CEF-\\u2CF1\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\uA66F\\uA67C\\uA67D\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA825\\uA826\\uA8C4\\uA8E0-\\uA8F1\\uA926-\\uA92D\\uA947-\\uA951\\uA980-\\uA982\\uA9B3\\uA9B6-\\uA9B9\\uA9BC\\uAA29-\\uAA2E\\uAA31\\uAA32\\uAA35\\uAA36\\uAA43\\uAA4C\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uABE5\\uABE8\\uABED\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE26]"),space_combining_mark:new RegExp("[\\u0903\\u093E-\\u0940\\u0949-\\u094C\\u094E\\u0982\\u0983\\u09BE-\\u09C0\\u09C7\\u09C8\\u09CB\\u09CC\\u09D7\\u0A03\\u0A3E-\\u0A40\\u0A83\\u0ABE-\\u0AC0\\u0AC9\\u0ACB\\u0ACC\\u0B02\\u0B03\\u0B3E\\u0B40\\u0B47\\u0B48\\u0B4B\\u0B4C\\u0B57\\u0BBE\\u0BBF\\u0BC1\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCC\\u0BD7\\u0C01-\\u0C03\\u0C41-\\u0C44\\u0C82\\u0C83\\u0CBE\\u0CC0-\\u0CC4\\u0CC7\\u0CC8\\u0CCA\\u0CCB\\u0CD5\\u0CD6\\u0D02\\u0D03\\u0D3E-\\u0D40\\u0D46-\\u0D48\\u0D4A-\\u0D4C\\u0D57\\u0D82\\u0D83\\u0DCF-\\u0DD1\\u0DD8-\\u0DDF\\u0DF2\\u0DF3\\u0F3E\\u0F3F\\u0F7F\\u102B\\u102C\\u1031\\u1038\\u103B\\u103C\\u1056\\u1057\\u1062-\\u1064\\u1067-\\u106D\\u1083\\u1084\\u1087-\\u108C\\u108F\\u109A-\\u109C\\u17B6\\u17BE-\\u17C5\\u17C7\\u17C8\\u1923-\\u1926\\u1929-\\u192B\\u1930\\u1931\\u1933-\\u1938\\u19B0-\\u19C0\\u19C8\\u19C9\\u1A19-\\u1A1B\\u1A55\\u1A57\\u1A61\\u1A63\\u1A64\\u1A6D-\\u1A72\\u1B04\\u1B35\\u1B3B\\u1B3D-\\u1B41\\u1B43\\u1B44\\u1B82\\u1BA1\\u1BA6\\u1BA7\\u1BAA\\u1C24-\\u1C2B\\u1C34\\u1C35\\u1CE1\\u1CF2\\uA823\\uA824\\uA827\\uA880\\uA881\\uA8B4-\\uA8C3\\uA952\\uA953\\uA983\\uA9B4\\uA9B5\\uA9BA\\uA9BB\\uA9BD-\\uA9C0\\uAA2F\\uAA30\\uAA33\\uAA34\\uAA4D\\uAA7B\\uABE3\\uABE4\\uABE6\\uABE7\\uABE9\\uABEA\\uABEC]"),connector_punctuation:new RegExp("[\\u005F\\u203F\\u2040\\u2054\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFF3F]")};function Tt(e){return 97<=e&&e<=122||65<=e&&e<=90||170<=e&&u.letter.test(String.fromCharCode(e))}function Rt(e){return"string"==typeof e&&(e=e.charCodeAt(0)),55296<=e&&e<=56319}function Ft(e){return"string"==typeof e&&(e=e.charCodeAt(0)),56320<=e&&e<=57343}function Lt(e){return 48<=e&&e<=57}function f(e){return!v(e)&&/^[a-z_$][a-z0-9_$]*$/i.test(e)}function Mt(e){return 36==e||95==e||Tt(e)}function Ut(e){var t,n,r,i=e.charCodeAt(0);return Mt(i)||Lt(i)||8204==i||8205==i||(r=e,u.non_spacing_mark.test(r)||u.space_combining_mark.test(r))||(n=e,u.connector_punctuation.test(n))||(t=i,u.digit.test(String.fromCharCode(t)))}function Nt(e){return/^[a-z_$][a-z0-9_$]*$/i.test(e)}function Pt(e,t,n,r,i){this.message=e,this.filename=t,this.line=n,this.col=r,this.pos=i}function qt(e,t,n,r,i){throw new Pt(e,t,n,r,i)}function zt(e,t,n){return e.type==t&&(null==n||e.value==n)}((Pt.prototype=Object.create(Error.prototype)).constructor=Pt).prototype.name="SyntaxError",t(Pt);var It={};function jt(i,o,a,s){var u={text:i,filename:o,pos:0,tokpos:0,line:1,tokline:0,col:0,tokcol:0,newline_before:!1,regex_allowed:!1,comments_before:[],directives:{},directive_stack:[]};function l(){return u.text.charAt(u.pos)}function c(e,t){var n=u.text.charAt(u.pos++);if(e&&!n)throw It;return j(n)?(u.newline_before=u.newline_before||!t,++u.line,u.col=0,t||"\r"!=n||"\n"!=l()||(++u.pos,n="\n")):++u.col,n}function f(e){for(;0<e--;)c()}function p(e){return u.text.substr(u.pos,e.length)==e}function h(){u.tokline=u.line,u.tokcol=u.col,u.tokpos=u.pos}var d=!1;function m(e,t,n){u.regex_allowed="operator"==e&&!$t(t)||"keyword"==e&&U(t)||"punc"==e&&V(t),"punc"==e&&"."==t?d=!0:n||(d=!1);var r={type:e,value:t,line:u.tokline,col:u.tokcol,pos:u.tokpos,endline:u.line,endcol:u.col,endpos:u.pos,nlb:u.newline_before,file:o};return/^(?:num|string|regexp)$/i.test(e)&&(r.raw=i.substring(r.pos,r.endpos)),n||(r.comments_before=u.comments_before,r.comments_after=u.comments_before=[]),u.newline_before=!1,new O(r)}function g(){for(;I(l());)c()}function v(e){qt(e,o,u.tokline,u.tokcol,u.tokpos)}function b(i){var o=!1,a=!1,s=!1,u="."==i,e=function(e){for(var t,n="",r=0;(t=l())&&e(t,r++);)n+=c();return n}(function(e,t){var n,r=e.charCodeAt(0);switch(r){case 120:case 88:return!s&&(s=!0);case 101:case 69:return!!s||!o&&(o=a=!0);case 45:return a||0==t&&!i;case 43:return a;case a=!1,46:return!(u||s||o)&&(u=!0)}return Lt(n=r)||Tt(n)});i&&(e=i+e),q.test(e)&&k.has_directive("use strict")&&v("Legacy octal literals are not allowed in strict mode");var t=function(e){if(P.test(e))return parseInt(e.substr(2),16);if(q.test(e))return parseInt(e.substr(1),8);var t=parseFloat(e);return t==e?t:void 0}(e);if(!isNaN(t))return m("num",t);v("Invalid syntax: "+e)}function y(e){var t=c(!0,e);switch(t.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(n(2));case 117:return String.fromCharCode(n(4));case 10:return"";case 13:if("\n"==l())return c(!0,e),""}return"0"<=t&&t<="7"?function(e){var t=l();"0"<=t&&t<="7"&&(e+=c(!0))[0]<="3"&&"0"<=(t=l())&&t<="7"&&(e+=c(!0));if("0"===e)return"\0";0<e.length&&k.has_directive("use strict")&&v("Legacy octal escape sequences are not allowed in strict mode");return String.fromCharCode(parseInt(e,8))}(t):t}function n(e){for(var t=0;0<e;--e){var n=parseInt(c(!0),16);isNaN(n)&&v("Invalid hex-character pattern in string"),t=t<<4|n}return t}var _=t("Unterminated string constant",function(e){for(var t=c(),n="";;){var r=c(!0,!0);if("\\"==r)r=y(!0);else if(j(r))v("Unterminated string constant");else if(r==t)break;n+=r}var i=m("string",n);return i.quote=e,i});function w(e){var t,n=u.regex_allowed,r=function(){for(var e=u.text,t=u.pos,n=u.text.length;t<n;++t){var r=e[t];if(j(r))return t}return-1}();return-1==r?(t=u.text.substr(u.pos),u.pos=u.text.length):(t=u.text.substring(u.pos,r),u.pos=r),u.col=u.tokcol+(u.pos-u.tokpos),u.comments_before.push(m(e,t,!0)),u.regex_allowed=n,k}var e=t("Unterminated multiline comment",function(){var e=u.regex_allowed,t=function(e,t){var n=u.text.indexOf(e,u.pos);if(t&&-1==n)throw It;return n}("*/",!0),n=u.text.substring(u.pos,t).replace(/\r\n|\r|\u2028|\u2029/g,"\n");return f(n.length+2),u.comments_before.push(m("comment2",n,!0)),u.regex_allowed=e,k});function E(){for(var e,t,n=!1,r="",i=!1;null!=(e=l());)if(n)"u"!=e&&v("Expecting UnicodeEscapeSequence -- uXXXX"),Ut(e=y())||v("Unicode char: "+e.charCodeAt(0)+" is not valid in identifier"),r+=e,n=!1;else if("\\"==e)i=n=!0,c();else{if(!Ut(e))break;r+=c()}return X(r)&&i&&(t=r.charCodeAt(0).toString(16).toUpperCase(),r="\\u"+"0000".substr(t.length)+t+r.slice(1)),r}var A=t("Unterminated regular expression",function(e){for(var t,n=!1,r=!1;t=c(!0);)if(j(t))v("Unexpected line terminator");else if(n)e+="\\"+t,n=!1;else if("["==t)r=!0,e+=t;else if("]"==t&&r)r=!1,e+=t;else{if("/"==t&&!r)break;"\\"==t?n=!0:e+=t}var i=E();try{var o=new RegExp(e,i);return o.raw_source=e,m("regexp",o)}catch(e){v(e.message)}});function x(e){return m("operator",function e(t){if(!l())return t;var n=t+l();return z(n)?(c(),e(n)):t}(e||c()))}function C(){switch(c(),l()){case"/":return c(),w("comment1");case"*":return c(),e()}return u.regex_allowed?A(""):x("/")}function t(t,n){return function(e){try{return n(e)}catch(e){if(e!==It)throw e;v(t)}}}function k(e){if(null!=e)return A(e);for(s&&0==u.pos&&p("#!")&&(h(),f(2),w("comment5"));;){if(g(),h(),a){if(p("\x3c!--")){f(4),w("comment3");continue}if(p("--\x3e")&&u.newline_before){f(3),w("comment4");continue}}var t=l();if(!t)return m("eof");var n=t.charCodeAt(0);switch(n){case 34:case 39:return _(t);case 46:return c(),Lt(l().charCodeAt(0))?b("."):m("punc",".");case 47:var r=C();if(r===k)continue;return r}if(Lt(n))return b();if(Bt(t))return m("punc",c());if(N(t))return x();if(92==n||Mt(n))return void 0,i=E(),d?m("name",i):M(i)?m("atom",i):X(i)?z(i)?m("operator",i):m("keyword",i):m("name",i);break}var i;v("Unexpected character '"+t+"'")}return k.context=function(e){return e&&(u=e),u},k.add_directive=function(e){u.directive_stack[u.directive_stack.length-1].push(e),void 0===u.directives[e]?u.directives[e]=1:u.directives[e]++},k.push_directives_stack=function(){u.directive_stack.push([])},k.pop_directives_stack=function(){for(var e=u.directive_stack[u.directive_stack.length-1],t=0;t<e.length;t++)u.directives[e[t]]--;u.directive_stack.pop()},k.has_directive=function(e){return 0<u.directives[e]},k}var Vt=ie(["typeof","void","delete","--","++","!","~","-","+"]),$t=ie(["--","++"]),Ht=ie(["=","+=","-=","/=","*=","%=",">>=","<<=",">>>=","|=","^=","&="]),Kt=function(e,t){for(var n=0;n<e.length;++n)for(var r=e[n],i=0;i<r.length;++i)t[r[i]]=n+1;return t}([["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]],{}),Gt=ie(["atom","num","string","regexp","name"]);function Yt(e,u){u=K(u,{bare_returns:!1,expression:!1,filename:null,html5_comments:!0,shebang:!0,strict:!1,toplevel:null},!0);var l={input:"string"==typeof e?jt(e,u.filename,u.html5_comments,u.shebang):e,token:null,prev:null,peeked:null,in_function:0,in_directives:!0,in_loop:0,labels:[]};function c(e,t){return zt(l.token,e,t)}function f(){return l.peeked||(l.peeked=l.input())}function p(){return l.prev=l.token,l.peeked?(l.token=l.peeked,l.peeked=null):l.token=l.input(),l.in_directives=l.in_directives&&("string"==l.token.type||c("punc",";")),l.token}function h(){return l.prev}function d(e,t,n,r){var i=l.input.context();qt(e,i.filename,null!=t?t:i.tokline,null!=n?n:i.tokcol,null!=r?r:i.tokpos)}function n(e,t){d(t,e.line,e.col)}function m(e){null==e&&(e=l.token),n(e,"Unexpected token: "+e.type+" ("+e.value+")")}function g(e,t){if(c(e,t))return p();n(l.token,"Unexpected token "+l.token.type+" «"+l.token.value+"», expected "+e+" «"+t+"»")}function v(e){return g("punc",e)}function b(e){return e.nlb||!oe(e.comments_before,function(e){return!e.nlb})}function y(){return!u.strict&&(c("eof")||c("punc","}")||b(l.token))}function _(e){c("punc",";")?p():e||y()||m()}function w(){v("(");var e=V(!0);return v(")"),e}function t(r){return function(){var e=l.token,t=r.apply(null,arguments),n=h();return t.start=e,t.end=n,t}}function E(){(c("operator","/")||c("operator","/="))&&(l.peeked=null,l.token=l.input(l.token.value.substr(1)))}l.token=p();var A=t(function(e){switch(E(),l.token.type){case"string":if(l.in_directives){var t=f();-1==l.token.raw.indexOf("\\")&&(zt(t,"punc",";")||zt(t,"punc","}")||b(t)||zt(t,"eof"))?l.input.add_directive(l.token.value):l.in_directives=!1}var n=l.in_directives,r=x();return n?new ce(r.body):r;case"num":case"regexp":case"operator":case"atom":return x();case"name":return zt(f(),"punc",":")?function(){var t=U(Z);H(function(e){return e.name==t.name},l.labels)&&d("Label "+t.name+" defined twice");v(":"),l.labels.push(t);var e=A();l.labels.pop(),e instanceof ge||t.references.forEach(function(e){e instanceof Le&&(e=e.label.start,d("Continue label `"+t.name+"` refers to non-IterationStatement.",e.line,e.col,e.pos))});return new me({body:e,label:t})}():x();case"punc":switch(l.token.value){case"{":return new he({start:l.token,body:O(),end:h()});case"[":case"(":return x();case";":return l.in_directives=!1,p(),new de;default:m()}case"keyword":switch(l.token.value){case"break":return p(),C(Fe);case"continue":return p(),C(Le);case"debugger":return p(),_(),new le;case"do":p();var i=$(A);g("keyword","while");var o=w();return _(!0),new be({body:i,condition:o});case"while":return p(),new ye({condition:w(),body:$(A)});case"for":return p(),function(){v("(");var e=null;if(!c("punc",";")&&(e=c("keyword","var")?(p(),D(!0)):V(!0,!0),c("operator","in")))return e instanceof $e?1<e.definitions.length&&d("Only one variable declaration allowed in for..in loop",e.start.line,e.start.col,e.start.pos):I(e)||d("Invalid left-hand side in for..in loop",e.start.line,e.start.col,e.start.pos),p(),t=e,n=V(!0),v(")"),new we({init:t,object:n,body:$(A)});var t,n;return function(e){v(";");var t=c("punc",";")?null:V(!0);v(";");var n=c("punc",")")?null:V(!0);return v(")"),new _e({init:e,condition:t,step:n,body:$(A)})}(e)}();case"function":return!e&&l.input.has_directive("use strict")&&d("In strict mode code, functions can only be declared at top level or immediately within another function."),p(),k(Se);case"if":return p(),function(){var e=w(),t=A(),n=null;c("keyword","else")&&(p(),n=A());return new Me({condition:e,body:t,alternative:n})}();case"return":0!=l.in_function||u.bare_returns||d("'return' outside of function"),p();var a=null;return c("punc",";")?p():y()||(a=V(!0),_()),new Te({value:a});case"switch":return p(),new Ue({expression:w(),body:$(S)});case"throw":p(),b(l.token)&&d("Illegal newline after 'throw'");a=V(!0);return _(),new G({value:a});case"try":return p(),function(){var e=O(),t=null,n=null;if(c("keyword","catch")){var r=l.token;p(),v("(");var i=U(dt);v(")"),t=new Ie({start:r,argname:i,body:O(),end:h()})}if(c("keyword","finally")){var r=l.token;p(),n=new je({start:r,body:O(),end:h()})}t||n||d("Missing catch/finally blocks");return new ze({body:e,bcatch:t,bfinally:n})}();case"var":p();var s=D();return _(),s;case"with":return l.input.has_directive("use strict")&&d("Strict mode may not include a with statement"),p(),new Ee({expression:w(),body:A()})}}m()});function x(e){return new fe({body:(e=V(!0),_(),e)})}function C(e){var t,n=null;y()||(n=U(J,!0)),null!=n?((t=H(function(e){return e.name==n.name},l.labels))||d("Undefined label "+n.name),n.thedef=t):0==l.in_loop&&d(e.TYPE+" not inside a loop or switch"),_();var r=new e({label:n});return t&&t.references.push(r),r}var k=function(e){var t=e===Se,n=c("name")?U(t?pt:ht):null;t&&!n&&m(),!n||e===ke||n instanceof lt||m(h()),v("(");for(var r=[],i=!0;!c("punc",")");)i?i=!1:v(","),r.push(U(ft));p();var o=l.in_loop,a=l.labels;++l.in_function,l.in_directives=!0,l.input.push_directives_stack(),l.in_loop=0,l.labels=[];var s=O(!0);return l.input.has_directive("use strict")&&(n&&M(n),r.forEach(M)),l.input.pop_directives_stack(),--l.in_function,l.in_loop=o,l.labels=a,new e({name:n,argnames:r,body:s})};function O(e){v("{");for(var t=[];!c("punc","}");)c("eof")&&m(),t.push(A(e));return p(),t}function S(){v("{");for(var e,t=[],n=null,r=null;!c("punc","}");)c("eof")&&m(),c("keyword","case")?(r&&(r.end=h()),n=[],r=new qe({start:(e=l.token,p(),e),expression:V(!0),body:n}),t.push(r),v(":")):c("keyword","default")?(r&&(r.end=h()),n=[],r=new Pe({start:(e=l.token,p(),v(":"),e),body:n}),t.push(r)):(n||m(),n.push(A()));return r&&(r.end=h()),p(),t}var D=function(e){return new $e({start:h(),definitions:function(e){for(var t=[];t.push(new He({start:l.token,name:U(ct),value:c("operator","=")?(p(),V(!1,e)):null,end:h()})),c("punc",",");)p();return t}(e),end:h()})};var s=function(e){if(c("operator","new"))return function(e){var t=l.token;g("operator","new");var n,r=s(!1);c("punc","(")?(p(),n=B(")")):n=[];var i=new Ge({start:t,expression:r,args:n,end:h()});return N(i),P(i,e)}(e);var t=l.token;if(c("punc")){switch(t.value){case"(":p();var n=V(!0),r=t.comments_before.length;if([].unshift.apply(n.start.comments_before,t.comments_before),t.comments_before=n.start.comments_before,0==(t.comments_before_length=r)&&0<t.comments_before.length){var i=t.comments_before[0];i.nlb||(i.nlb=t.nlb,t.nlb=!1)}t.comments_after=n.start.comments_after,n.start=t,v(")");var o=h();return o.comments_before=n.end.comments_before,[].push.apply(n.end.comments_after,o.comments_after),o.comments_after=n.end.comments_after,n.end=o,n instanceof Ke&&N(n),P(n,e);case"[":return P(T(),e);case"{":return P(R(),e)}m()}if(c("keyword","function")){p();var a=k(Oe);return a.start=t,a.end=h(),P(a,e)}if(Gt(l.token.type))return P(function(){var e,t=l.token;switch(t.type){case"name":e=L(mt);break;case"num":e=new yt({start:t,end:t,value:t.value});break;case"string":e=new bt({start:t,end:t,value:t.value,quote:t.quote});break;case"regexp":e=new _t({start:t,end:t,value:t.value});break;case"atom":switch(t.value){case"false":e=new Ot({start:t,end:t});break;case"true":e=new St({start:t,end:t});break;case"null":e=new wt({start:t,end:t})}}return p(),e}(),e);m()};function B(e,t,n){for(var r=!0,i=[];!c("punc",e)&&(r?r=!1:v(","),!t||!c("punc",e));)c("punc",",")&&n?i.push(new xt({start:l.token,end:l.token})):i.push(V(!1));return p(),i}var T=t(function(){return v("["),new it({elements:B("]",!u.strict,!0)})}),a=t(function(){return k(ke)}),R=t(function(){v("{");for(var e=!0,t=[];!c("punc","}")&&(e?e=!1:v(","),u.strict||!c("punc","}"));){var n=l.token,r=n.type,i=F();if("name"==r&&!c("punc",":")){var o=new Q({start:l.token,name:""+F(),end:h()});if("get"==i){t.push(new W({start:n,key:o,value:a(),end:h()}));continue}if("set"==i){t.push(new Y({start:n,key:o,value:a(),end:h()}));continue}}v(":"),t.push(new st({start:n,quote:n.quote,key:""+i,value:V(!1),end:h()}))}return p(),new ot({properties:t})});function F(){var e=l.token;switch(e.type){case"operator":X(e.value)||m();case"num":case"string":case"name":case"keyword":case"atom":return p(),e.value;default:m()}}function L(e){var t=l.token.value;return new("this"==t?gt:e)({name:String(t),start:l.token,end:l.token})}function M(e){"arguments"!=e.name&&"eval"!=e.name||d("Unexpected "+e.name+" in strict mode",e.start.line,e.start.col,e.start.pos)}function U(e,t){if(!c("name"))return t||d("Name expected"),null;var n=L(e);return l.input.has_directive("use strict")&&n instanceof lt&&M(n),p(),n}function N(e){for(var t=e.start,n=t.comments_before,r=ae(t,"comments_before_length")?t.comments_before_length:n.length;0<=--r;){var i=n[r];if(/[@#]__PURE__/.test(i.value)){e.pure=i;break}}}var P=function(e,t){var n,r=e.start;if(c("punc","."))return p(),P(new Qe({start:r,expression:e,property:(n=l.token,"name"!=n.type&&m(),p(),n.value),end:h()}),t);if(c("punc","[")){p();var i=V(!0);return v("]"),P(new Ze({start:r,expression:e,property:i,end:h()}),t)}if(t&&c("punc","(")){p();var o=new Ke({start:r,expression:e,args:B(")"),end:h()});return N(o),P(o,!0)}return e},q=function(e){var t=l.token;if(c("operator")&&Vt(t.value)){p(),E();var n=i(Xe,t,q(e));return n.start=t,n.end=h(),n}for(var r=s(e);c("operator")&&$t(l.token.value)&&!b(l.token);)(r=i(et,l.token,r)).start=t,r.end=l.token,p();return r};function i(e,t,n){var r=t.value;switch(r){case"++":case"--":I(n)||d("Invalid use of "+r+" operator",t.line,t.col,t.pos);break;case"delete":n instanceof mt&&l.input.has_directive("use strict")&&d("Calling delete on expression not allowed in strict mode",n.start.line,n.start.col,n.start.pos)}return new e({operator:r,expression:n})}var z=function(e,t,n){var r=c("operator")?l.token.value:null;"in"==r&&n&&(r=null);var i=null!=r?Kt[r]:null;if(null!=i&&t<i){p();var o=z(q(!0),i,n);return z(new tt({start:e.start,left:e,operator:r,right:o,end:o.end}),t,n)}return e};var o=function(e){var t,n=l.token,r=(t=e,z(q(!0),0,t));if(c("operator","?")){p();var i=V(!1);return v(":"),new nt({start:n,condition:r,consequent:i,alternative:V(!1,e),end:h()})}return r};function I(e){return e instanceof We||e instanceof mt}var j=function(e){var t=l.token,n=o(e),r=l.token.value;if(c("operator")&&Ht(r)){if(I(n))return p(),new rt({start:t,left:n,operator:r,right:j(e),end:h()});d("Invalid assignment")}return n},V=function(e,t){for(var n=l.token,r=[];r.push(j(t)),e&&c("punc",",");)p(),e=!0;return 1==r.length?r[0]:new Ye({start:n,expressions:r,end:f()})};function $(e){++l.in_loop;var t=e();return--l.in_loop,t}return u.expression?V(!0):function(){var e=l.token,t=[];for(l.input.push_directives_stack();!c("eof");)t.push(A(!0));l.input.pop_directives_stack();var n=h(),r=u.toplevel;return r?(r.body=r.body.concat(t),r.end=n):r=new xe({start:e,body:t,end:n}),r}()}function Wt(e,t){Dt.call(this),this.before=e,this.after=t}function i(e,t,n){this.name=t.name,this.orig=[t],this.init=n,this.eliminated=0,this.scope=e,this.references=[],this.replaced=0,this.global=!1,this.mangled_name=null,this.undeclared=!1,this.id=i.next_id++}function p(e,t){var n=e.names_in_use;return n||(e.names_in_use=n=Object.create(e.mangled_names||null),e.cname_holes=[],e.enclosed.forEach(function(e){e.unmangleable(t)&&(n[e.name]=!0)})),n}function c(e){return e=K(e,{eval:!1,ie8:!1,keep_fnames:!1,reserved:[],toplevel:!1}),Array.isArray(e.reserved)||(e.reserved=[]),m(e.reserved,"arguments"),e}Wt.prototype=new Dt,function(o){function e(e,i){e.DEFMETHOD("transform",function(e,t){var n,r;return e.push(this),e.before&&(n=e.before(this,i,t)),n===o&&(i(n=this,e),e.after&&(r=e.after(n,t))!==o&&(n=r)),e.pop(),n})}function n(e,t){return re(e,function(e){return e.transform(t,!0)})}e(se,$),e(me,function(e,t){e.label=e.label.transform(t),e.body=e.body.transform(t)}),e(fe,function(e,t){e.body=e.body.transform(t)}),e(pe,function(e,t){e.body=n(e.body,t)}),e(ve,function(e,t){e.condition=e.condition.transform(t),e.body=e.body.transform(t)}),e(_e,function(e,t){e.init&&(e.init=e.init.transform(t)),e.condition&&(e.condition=e.condition.transform(t)),e.step&&(e.step=e.step.transform(t)),e.body=e.body.transform(t)}),e(we,function(e,t){e.init=e.init.transform(t),e.object=e.object.transform(t),e.body=e.body.transform(t)}),e(Ee,function(e,t){e.expression=e.expression.transform(t),e.body=e.body.transform(t)}),e(Be,function(e,t){e.value&&(e.value=e.value.transform(t))}),e(Re,function(e,t){e.label&&(e.label=e.label.transform(t))}),e(Me,function(e,t){e.condition=e.condition.transform(t),e.body=e.body.transform(t),e.alternative&&(e.alternative=e.alternative.transform(t))}),e(Ue,function(e,t){e.expression=e.expression.transform(t),e.body=n(e.body,t)}),e(qe,function(e,t){e.expression=e.expression.transform(t),e.body=n(e.body,t)}),e(ze,function(e,t){e.body=n(e.body,t),e.bcatch&&(e.bcatch=e.bcatch.transform(t)),e.bfinally&&(e.bfinally=e.bfinally.transform(t))}),e(Ie,function(e,t){e.argname=e.argname.transform(t),e.body=n(e.body,t)}),e(Ve,function(e,t){e.definitions=n(e.definitions,t)}),e(He,function(e,t){e.name=e.name.transform(t),e.value&&(e.value=e.value.transform(t))}),e(Ce,function(e,t){e.name&&(e.name=e.name.transform(t)),e.argnames=n(e.argnames,t),e.body=n(e.body,t)}),e(Ke,function(e,t){e.expression=e.expression.transform(t),e.args=n(e.args,t)}),e(Ye,function(e,t){e.expressions=n(e.expressions,t)}),e(Qe,function(e,t){e.expression=e.expression.transform(t)}),e(Ze,function(e,t){e.expression=e.expression.transform(t),e.property=e.property.transform(t)}),e(Je,function(e,t){e.expression=e.expression.transform(t)}),e(tt,function(e,t){e.left=e.left.transform(t),e.right=e.right.transform(t)}),e(nt,function(e,t){e.condition=e.condition.transform(t),e.consequent=e.consequent.transform(t),e.alternative=e.alternative.transform(t)}),e(it,function(e,t){e.elements=n(e.elements,t)}),e(ot,function(e,t){e.properties=n(e.properties,t)}),e(at,function(e,t){e.value=e.value.transform(t)})}(),i.next_id=1,i.prototype={unmangleable:function(e){return e||(e={}),this.global&&!e.toplevel||this.undeclared||!e.eval&&(this.scope.uses_eval||this.scope.uses_with)||e.keep_fnames&&(this.orig[0]instanceof ht||this.orig[0]instanceof pt)},mangle:function(e){var t=e.cache&&e.cache.props;if(this.global&&t&&t.has(this.name))this.mangled_name=t.get(this.name);else if(!this.mangled_name&&!this.unmangleable(e)){var n;(n=this.redefined())?this.mangled_name=n.mangled_name||n.name:this.mangled_name=function(e,r,t){var n=p(e,r),i=e.cname_holes,o=Object.create(null);if(e instanceof Oe&&e.name&&t.orig[0]instanceof ft){var a=e.name.definition();o[a.mangled_name||a.name]=!0}var s,u=[e];t.references.forEach(function(e){var t=e.scope;do{if(!(u.indexOf(t)<0))break;for(var n in p(t,r))o[n]=!0;u.push(t)}while(t=t.parent_scope)});for(var l=0,c=i.length;l<c;l++)if(s=b(i[l]),!o[s])return i.splice(l,1),e.names_in_use[s]=!0,s;for(;;)if(s=b(++e.cname),!n[s]&&f(s)&&!ee(s,r.reserved)){if(!o[s])break;i.push(e.cname)}e.names_in_use[s]=!0,r.ie8&&t.orig[0]instanceof ht&&(p(e.parent_scope,r)[s]=!0);return s}(this.scope,e,this),this.global&&t&&t.set(this.name,this.mangled_name)}},redefined:function(){return this.defun&&this.defun.variables.get(this.name)}},xe.DEFMETHOD("figure_out_scope",function(l){l=K(l,{cache:null,ie8:!1});var a=this,c=a.parent_scope=null,f=new R,p=null,s=new Dt(function(e,t){if(e instanceof Ie){var n=c;return(c=new Ae(e)).init_scope_vars(n),t(),c=n,!0}if(e instanceof Ae){e.init_scope_vars(c);n=c;var r=p,i=f;return p=c=e,f=new R,t(),c=n,p=r,f=i,!0}if(e instanceof me){var o=e.label;if(f.has(o.name))throw new Error(B("Label {name} defined twice",o));return f.set(o.name,o),t(),f.del(o.name),!0}if(e instanceof Ee)for(var a=c;a;a=a.parent_scope)a.uses_with=!0;else if(e instanceof ut&&(e.scope=c),e instanceof Z&&((e.thedef=e).references=[]),e instanceof ht)p.def_function(e,"arguments"==e.name?void 0:p);else if(e instanceof pt)(e.scope=p.parent_scope).def_function(e,p);else if(e instanceof ct){if(p.def_variable(e,"SymbolVar"==e.TYPE?null:void 0),p!==c){e.mark_enclosed(l);var s=c.find_variable(e);e.thedef!==s&&(e.thedef=s),e.reference(l)}}else if(e instanceof dt)c.def_variable(e).defun=p;else if(e instanceof J){var u=f.get(e.name);if(!u)throw new Error(B("Undefined label {name} [{line},{col}]",{name:e.name,line:e.start.line,col:e.start.col}));e.thedef=u}});a.walk(s),a.globals=new R;s=new Dt(function(e,t){if(e instanceof Re&&e.label)return e.label.thedef.references.push(e),!0;if(e instanceof mt){var n=e.name;if("eval"==n&&s.parent()instanceof Ke)for(var r=e.scope;r&&!r.uses_eval;r=r.parent_scope)r.uses_eval=!0;var i=e.scope.find_variable(n);return i?i.scope instanceof Ce&&"arguments"==n&&(i.scope.uses_arguments=!0):i=a.def_global(e),e.thedef=i,e.reference(l),!0}var o;if(e instanceof dt&&(o=e.definition().redefined()))for(r=e.scope;r&&(m(r.enclosed,o),r!==o.scope);)r=r.parent_scope});a.walk(s),l.ie8&&a.walk(new Dt(function(e,t){if(e instanceof dt){var n=e.name,r=e.thedef.references,i=e.thedef.defun,o=i.find_variable(n)||a.globals.get(n)||i.def_variable(e);return r.forEach(function(e){e.thedef=o,e.reference(l)}),e.thedef=o,e.reference(l),!0}}))}),xe.DEFMETHOD("def_global",function(e){var t=this.globals,n=e.name;if(t.has(n))return t.get(n);var r=new i(this,e);return r.undeclared=!0,r.global=!0,t.set(n,r),r}),Ae.DEFMETHOD("init_scope_vars",function(e){this.variables=new R,this.functions=new R,this.uses_with=!1,this.uses_eval=!1,this.parent_scope=e,this.enclosed=[],this.cname=-1}),Ce.DEFMETHOD("init_scope_vars",function(){Ae.prototype.init_scope_vars.apply(this,arguments),this.uses_arguments=!1,this.def_variable(new ft({name:"arguments",start:this.start,end:this.end}))}),ut.DEFMETHOD("mark_enclosed",function(e){for(var t=this.definition(),n=this.scope;n&&(m(n.enclosed,t),e.keep_fnames&&n.functions.each(function(e){m(t.scope.enclosed,e)}),n!==t.scope);)n=n.parent_scope}),ut.DEFMETHOD("reference",function(e){this.definition().references.push(this),this.mark_enclosed(e)}),Ae.DEFMETHOD("find_variable",function(e){return e instanceof ut&&(e=e.name),this.variables.get(e)||this.parent_scope&&this.parent_scope.find_variable(e)}),Ae.DEFMETHOD("def_function",function(e,t){var n=this.def_variable(e,t);return(!n.init||n.init instanceof Se)&&(n.init=t),this.functions.set(e.name,n),n}),Ae.DEFMETHOD("def_variable",function(e,t){var n=this.variables.get(e.name);return n?(n.orig.push(e),n.init&&(n.scope!==e.scope||n.init instanceof Oe)&&(n.init=t)):(n=new i(this,e,t),this.variables.set(e.name,n),n.global=!this.parent_scope),e.thedef=n}),ut.DEFMETHOD("unmangleable",function(e){var t=this.definition();return!t||t.unmangleable(e)}),Z.DEFMETHOD("unmangleable",te),ut.DEFMETHOD("unreferenced",function(){return 0==this.definition().references.length&&!(this.scope.uses_eval||this.scope.uses_with)}),ut.DEFMETHOD("definition",function(){return this.thedef}),ut.DEFMETHOD("global",function(){return this.definition().global}),xe.DEFMETHOD("mangle_names",function(a){a=c(a);var s=-1;if(a.cache&&a.cache.props){var t=this.mangled_names=Object.create(null);a.cache.props.each(function(e){t[e]=!0})}var u=[],e=new Dt(function(e,t){if(e instanceof me){var n=s;return t(),s=n,!0}if(e instanceof Ae)return t(),a.cache&&e instanceof xe&&e.globals.each(l),e.variables.each(l),!0;if(e instanceof Z){for(var r;!f(r=b(++s)););return e.mangled_name=r,!0}if(!a.ie8&&e instanceof Ie){var i=e.argname.definition(),o=i.redefined();return o&&(u.push(i),i.references.forEach(function(e){e.thedef=o,e.reference(a),e.thedef=i})),t(),o||l(i),!0}});function l(e){ee(e.name,a.reserved)||e.mangle(a)}this.walk(e),u.forEach(l)}),xe.DEFMETHOD("find_colliding_names",function(n){var r=n.cache&&n.cache.props,t=Object.create(null);return n.reserved.forEach(i),this.globals.each(o),this.walk(new Dt(function(e){e instanceof Ae&&e.variables.each(o),e instanceof dt&&o(e.definition())})),t;function i(e){t[e]=!0}function o(e){var t=e.name;if(e.global&&r&&r.has(t))t=r.get(t);else if(!e.unmangleable(n))return;i(t)}}),xe.DEFMETHOD("expand_names",function(n){b.reset(),b.sort(),n=c(n);var r=this.find_colliding_names(n),i=0;function t(t){if(!(t.global&&n.cache||t.unmangleable(n)||ee(t.name,n.reserved))){var e=t.redefined();t.name=e?e.name:function(){for(var e;e=b(i++),r[e]||!f(e););return e}(),t.orig.forEach(function(e){e.name=t.name}),t.references.forEach(function(e){e.name=t.name})}}this.globals.each(t),this.walk(new Dt(function(e){e instanceof Ae&&e.variables.each(t),e instanceof dt&&t(e.definition())}))}),se.DEFMETHOD("tail_node",S),Ye.DEFMETHOD("tail_node",function(){return this.expressions[this.expressions.length-1]}),xe.DEFMETHOD("compute_char_frequency",function(n){n=c(n),b.reset();try{se.prototype.print=function(e,t){this._print(e,t),this instanceof ut&&!this.unmangleable(n)?b.consider(this.name,-1):n.properties&&(this instanceof Qe?b.consider(this.property,-1):this instanceof Ze&&function e(t){t instanceof bt?b.consider(t.value,-1):t instanceof nt?(e(t.consequent),e(t.alternative)):t instanceof Ye&&e(t.tail_node())}(this.property))},b.consider(this.print_to_string(),1)}finally{se.prototype.print=se.prototype._print}b.sort()});var b=function(){var r,i,e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_".split(""),t="0123456789".split("");function n(){i=Object.create(null),e.forEach(function(e){i[e]=0}),t.forEach(function(e){i[e]=0})}function o(e,t){return i[t]-i[e]}function a(e){var t="",n=54;for(e++;t+=r[--e%n],e=Math.floor(e/n),n=64,0<e;);return t}return a.consider=function(e,t){for(var n=e.length;0<=--n;)i[e[n]]+=t},a.sort=function(){r=s(e,o).concat(s(t,o))},(a.reset=n)(),a}(),Qt=/^$|[;{][\s\n]*$/;function Zt(e){return"comment2"==e.type&&/@preserve|@license|@cc_on/i.test(e.value)}function Jt(s){var e=!s;s=K(s,{ascii_only:!1,beautify:!1,bracketize:!1,comments:!1,ie8:!1,indent_level:4,indent_start:0,inline_script:!0,keep_quoted_props:!1,max_line_len:!1,preamble:null,preserve_line:!1,quote_keys:!1,quote_style:0,semicolons:!0,shebang:!0,source_map:null,webkit:!1,width:80,wrap_iife:!1},!0);var u=te;if(s.comments){var t=s.comments;if("string"==typeof s.comments&&/^\/.*\/[a-zA-Z]*$/.test(s.comments)){var n=s.comments.lastIndexOf("/");t=new RegExp(s.comments.substr(1,n-1),s.comments.substr(n+1))}u=t instanceof RegExp?function(e){return"comment5"!=e.type&&t.test(e.value)}:"function"==typeof t?function(e){return"comment5"!=e.type&&t(this,e)}:"some"===t?Zt:ne}var i=0,a=0,l=1,c=0,f="",p=s.ascii_only?function(e,n){return e.replace(/[\u0000-\u001f\u007f-\uffff]/g,function(e){var t=e.charCodeAt(0).toString(16);if(t.length<=2&&!n){for(;t.length<2;)t="0"+t;return"\\x"+t}for(;t.length<4;)t="0"+t;return"\\u"+t})}:function(e){for(var t="",n=0,r=e.length;n<r;n++)Rt(e[n])&&!Ft(e[n+1])||Ft(e[n])&&!Rt(e[n-1])?t+="\\u"+e.charCodeAt(n).toString(16):t+=e[n];return t};function o(e,t){var n=function(n,e){var r=0,i=0;function t(){return"'"+n.replace(/\x27/g,"\\'")+"'"}function o(){return'"'+n.replace(/\x22/g,'\\"')+'"'}switch(n=n.replace(/[\\\b\f\n\r\v\t\x22\x27\u2028\u2029\0\ufeff]/g,function(e,t){switch(e){case'"':return++r,'"';case"'":return++i,"'";case"\\":return"\\\\";case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\v":return s.ie8?"\\x0B":"\\v";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";case"\ufeff":return"\\ufeff";case"\0":return/[0-9]/.test(n.charAt(t+1))?"\\x00":"\\0"}return e}),n=p(n),s.quote_style){case 1:return t();case 2:return o();case 3:return"'"==e?t():o();default:return i<r?t():o()}}(e,t);return s.inline_script&&(n=(n=(n=n.replace(/<\x2f(script)([>\/\t\n\f\r ])/gi,"<\\/$1$2")).replace(/\x3c!--/g,"\\x3c!--")).replace(/--\x3e/g,"--\\x3e")),n}function r(e){return function e(t,n){if(n<=0)return"";if(1==n)return t;var r=e(t,n>>1);return r+=r,1&n&&(r+=t),r}(" ",s.indent_start+i-e*s.indent_level)}var h,d,m=!1,g=!1,v=0,b=!1,y=!1,_=-1,w="",E=s.source_map&&[],A=E?function(){E.forEach(function(t){try{s.source_map.add(t.token.file,t.line,t.col,t.token.line,t.token.col,t.name||"name"!=t.token.type?t.name:t.token.value)}catch(e){se.warn("Couldn't figure out mapping for {file}:{line},{col} → {cline},{ccol} [{name}]",{file:t.token.file,line:t.token.line,col:t.token.col,cline:t.line,ccol:t.col,name:t.name||""})}}),E=[]}:$,x=s.max_line_len?function(){if(a>s.max_line_len){if(v){var e=f.slice(0,v),t=f.slice(v);if(E){var n=t.length-a;E.forEach(function(e){e.line++,e.col+=n})}f=e+"\n"+t,l++,c++,a=t.length}a>s.max_line_len&&se.warn("Output exceeds {max_line_len} characters",s)}v&&(v=0,A())}:$,C=ie("( [ + * / - , .");function k(e){var t=(e=String(e)).charAt(0);b&&t&&(b=!1,"\n"!=t&&(k("\n"),S())),y&&t&&(y=!1,/[\s;})]/.test(t)||O()),_=-1;var n=w.charAt(w.length-1);if(g&&(g=!1,(":"==n&&"}"==t||(!t||";}".indexOf(t)<0)&&";"!=n)&&(s.semicolons||C(t)?(f+=";",a++,c++):(x(),f+="\n",c++,l++,a=0,/^\s+$/.test(e)&&(g=!0)),s.beautify||(m=!1))),!s.beautify&&s.preserve_line&&U[U.length-1])for(var r=U[U.length-1].start.line;l<r;)x(),f+="\n",c++,l++,a=0,m=!1;m&&((Ut(n)&&(Ut(t)||"\\"==t)||"/"==t&&t==n||("+"==t||"-"==t)&&t==w)&&(f+=" ",a++,c++),m=!1),h&&(E.push({token:h,name:d,line:l,col:a}),h=!1,v||A()),f+=e,c+=e.length;var i=e.split(/\r?\n/),o=i.length-1;l+=o,a+=i[0].length,0<o&&(x(),a=i[o].length),w=e}var O=s.beautify?function(){k(" ")}:function(){m=!0},S=s.beautify?function(e){s.beautify&&k(r(e?.5:0))}:$,D=s.beautify?function(e,t){!0===e&&(e=F());var n=i;i=e;var r=t();return i=n,r}:function(e,t){return t()},B=s.beautify?function(){if(_<0)return k("\n");"\n"!=f[_]&&(f=f.slice(0,_)+"\n"+f.slice(_),c++,l++),_++}:s.max_line_len?function(){x(),v=f.length}:$,T=s.beautify?function(){k(";")}:function(){g=!0};function R(){g=!1,k(";")}function F(){return i+s.indent_level}function L(){return v&&x(),f}function M(){var e=f.lastIndexOf("\n");return/^ *$/.test(f.slice(e+1))}var U=[];return{get:L,toString:L,indent:S,indentation:function(){return i},current_width:function(){return a-i},should_break:function(){return s.width&&this.current_width()>=s.width},has_parens:function(){return"("==f.slice(-1)},newline:B,print:k,space:O,comma:function(){k(","),O()},colon:function(){k(":"),O()},last:function(){return w},semicolon:T,force_semicolon:R,to_utf8:p,print_name:function(e){var t;k((t=(t=e).toString(),t=p(t,!0)))},print_string:function(e,t,n){var r=o(e,t);!0===n&&-1===r.indexOf("\\")&&(Qt.test(f)||R(),R()),k(r)},encode_string:o,next_indent:F,with_indent:D,with_block:function(e){var t;return k("{"),B(),D(F(),function(){t=e()}),S(),k("}"),t},with_parens:function(e){k("(");var t=e();return k(")"),t},with_square:function(e){k("[");var t=e();return k("]"),t},add_mapping:E?function(e,t){h=e,d=t}:$,option:function(e){return s[e]},prepend_comments:e?$:function(e){var r=this,t=e.start;if(t&&(!t.comments_before||t.comments_before._dumped!==r)){var i=t.comments_before;if(i||(i=t.comments_before=[]),i._dumped=r,e instanceof Be&&e.value){var o=new Dt(function(e){var t=o.parent();if(!(t instanceof Be||t instanceof tt&&t.left===e||"Call"==t.TYPE&&t.expression===e||t instanceof nt&&t.condition===e||t instanceof Qe&&t.expression===e||t instanceof Ye&&t.expressions[0]===e||t instanceof Ze&&t.expression===e||t instanceof et))return!0;var n=e.start.comments_before;n&&n._dumped!==r&&(n._dumped=r,i=i.concat(n))});o.push(e),e.value.walk(o)}if(0==c){0<i.length&&s.shebang&&"comment5"==i[0].type&&(k("#!"+i.shift().value+"\n"),S());var n=s.preamble;n&&k(n.replace(/\r\n?|[\n\u2028\u2029]|\s*$/g,"\n"))}if(0!=(i=i.filter(u,e)).length){var a=M();i.forEach(function(e,t){a||(e.nlb?(k("\n"),S(),a=!0):0<t&&O()),/comment[134]/.test(e.type)?(k("//"+e.value.replace(/[@#]__PURE__/g," ")+"\n"),S(),a=!0):"comment2"==e.type&&(k("/*"+e.value.replace(/[@#]__PURE__/g," ")+"*/"),a=!1)}),a||(t.nlb?(k("\n"),S()):O())}}},append_comments:e||u===te?$:function(e,n){var t=e.end;if(t){var r=t[n?"comments_before":"comments_after"];if(r&&r._dumped!==this&&(e instanceof ue||oe(r,function(e){return!/comment[134]/.test(e.type)}))){r._dumped=this;var i=f.length;r.filter(u,e).forEach(function(e,t){y=!1,b?(k("\n"),S(),b=!1):e.nlb&&(0<t||!M())?(k("\n"),S()):(0<t||!n)&&O(),/comment[134]/.test(e.type)?(k("//"+e.value.replace(/[@#]__PURE__/g," ")),b=!0):"comment2"==e.type&&(k("/*"+e.value.replace(/[@#]__PURE__/g," ")+"*/"),y=!0)}),f.length>i&&(_=i)}}},line:function(){return l},col:function(){return a},pos:function(){return c},push_node:function(e){U.push(e)},pop_node:function(){return U.pop()},parent:function(e){return U[U.length-2-(e||0)]}}}function Xt(e,t){if(!(this instanceof Xt))return new Xt(e,t);Wt.call(this,this.before,this.after),this.options=K(e,{arguments:!t,booleans:!t,collapse_vars:!t,comparisons:!t,conditionals:!t,dead_code:!t,drop_console:!1,drop_debugger:!t,evaluate:!t,expression:!1,global_defs:{},hoist_funs:!1,hoist_props:!t,hoist_vars:!1,ie8:!1,if_return:!t,inline:!t,join_vars:!t,keep_fargs:!0,keep_fnames:!1,keep_infinity:!1,loops:!t,negate_iife:!t,passes:1,properties:!t,pure_getters:!t&&"strict",pure_funcs:null,reduce_funcs:!t,reduce_vars:!t,sequences:!t,side_effects:!t,switches:!t,top_retain:null,toplevel:!(!e||!e.top_retain),typeofs:!t,unsafe:!1,unsafe_comps:!1,unsafe_Function:!1,unsafe_math:!1,unsafe_proto:!1,unsafe_regexp:!1,unsafe_undefined:!1,unused:!t,warnings:!1},!0);var n=this.options.global_defs;if("object"==typeof n)for(var r in n)/^@/.test(r)&&ae(n,r)&&(n[r.slice(1)]=Yt(n[r],{expression:!0}));!0===this.options.inline&&(this.options.inline=3);var i=this.options.pure_funcs;this.pure_funcs="function"==typeof i?i:i?function(e){return i.indexOf(e.expression.print_to_string())<0}:ne;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 0<=o.indexOf(e.name)});var a=this.options.toplevel;this.toplevel="string"==typeof a?{funcs:/funcs/.test(a),vars:/vars/.test(a)}:{funcs:a,vars:a};var s=this.options.sequences;this.sequences_limit=1==s?800:0|s,this.warnings_produced={}}function y(e,t){e.walk(new Dt(function(e){return e instanceof Ye?y(e.tail_node(),t):e instanceof bt?t(e.value):e instanceof nt&&(y(e.consequent,t),y(e.alternative,t)),!0}))}function h(e,t){var n=(t=K(t,{builtins:!1,cache:null,debug:!1,keep_quoted:!1,only_cache:!1,regex:null,reserved:null},!0)).reserved;Array.isArray(n)||(n=[]),t.builtins||function(t){function n(e){m(t,e)}["null","true","false","Infinity","-Infinity","undefined"].forEach(n),[Object,Array,Function,Number,String,Boolean,Error,Math,Date,RegExp].forEach(function(e){Object.getOwnPropertyNames(e).map(n),e.prototype&&Object.getOwnPropertyNames(e.prototype).map(n)})}(n);var r,i=-1;t.cache?(r=t.cache.props).each(function(e){m(n,e)}):r=new R;var o,a=t.regex,s=!1!==t.debug;s&&(o=!0===t.debug?"":t.debug);var u=[],l=[];return e.walk(new Dt(function(e){e instanceof st?p(e.key):e instanceof at?p(e.key.name):e instanceof Qe?p(e.property):e instanceof Ze&&y(e.property,p)})),e.transform(new Wt(function(e){e instanceof st?e.key=h(e.key):e instanceof at?e.key.name=h(e.key.name):e instanceof Qe?e.property=h(e.property):!t.keep_quoted&&e instanceof Ze&&(e.property=function n(e){return e.transform(new Wt(function(e){if(e instanceof Ye){var t=e.expressions.length-1;e.expressions[t]=n(e.expressions[t])}else e instanceof bt?e.value=h(e.value):e instanceof nt&&(e.consequent=n(e.consequent),e.alternative=n(e.alternative));return e}))}(e.property))}));function c(e){return!(0<=l.indexOf(e))&&(!(0<=n.indexOf(e))&&(t.only_cache?r.has(e):!/^-?[0-9]+(\.[0-9]+)?(e[+-][0-9]+)?$/.test(e)))}function f(e){return!(a&&!a.test(e))&&(!(0<=n.indexOf(e))&&(r.has(e)||0<=u.indexOf(e)))}function p(e){c(e)&&m(u,e),f(e)||m(l,e)}function h(e){if(!f(e))return e;var t=r.get(e);if(!t){if(s){var n="_$"+e+"$"+o+"_";c(n)&&(t=n)}if(!t)for(;!c(t=b(++i)););r.set(e,t)}return t}}!function(){function e(e,t){e.DEFMETHOD("_codegen",t)}var o=!1,a=null,s=null;function n(e,t){Array.isArray(e)?e.forEach(function(e){n(e,t)}):e.DEFMETHOD("needs_parens",t)}function r(e,n,r,t){var i=e.length-1;o=t,e.forEach(function(e,t){!0!==o||e instanceof ce||e instanceof de||e instanceof fe&&e.body instanceof bt||(o=!1),e instanceof de||(r.indent(),e.print(r),t==i&&n||(r.newline(),n&&r.newline())),!0===o&&e instanceof fe&&e.body instanceof bt&&(o=!1)}),o=!1}function i(e,t){t.print("{"),t.with_indent(t.next_indent(),function(){t.append_comments(e,!0)}),t.print("}")}function u(e,t,n){0<e.body.length?t.with_block(function(){r(e.body,!1,t,n)}):i(e,t)}function l(e,t,n){var r=!1;n&&e.walk(new Dt(function(e){return!!(r||e instanceof Ae)||(e instanceof tt&&"in"==e.operator?r=!0:void 0)})),e.print(t,r)}function c(e,t,n){n.option("quote_keys")?n.print_string(e):""+ +e==e&&0<=e?n.print(h(e)):(v(e)?!n.option("ie8"):Nt(e))?t&&n.option("keep_quoted_props")?n.print_string(e,t):n.print_name(e):n.print_string(e,t)}function f(e,t){t.option("bracketize")?d(e,t):!e||e instanceof de?t.force_semicolon():e.print(t)}function p(e,t){return 0<e.args.length||t.option("beautify")}function h(e){var t,n=e.toString(10),r=[n.replace(/^0\./,".").replace("e+","e")];return Math.floor(e)===e?(0<=e?r.push("0x"+e.toString(16).toLowerCase(),"0"+e.toString(8)):r.push("-0x"+(-e).toString(16).toLowerCase(),"-0"+(-e).toString(8)),(t=/^(.*?)(0+)$/.exec(e))&&r.push(t[1]+"e"+t[2].length)):(t=/^0?\.(0+)(.*)$/.exec(e))&&r.push(t[2]+"e-"+(t[1].length+t[2].length),n.substr(n.indexOf("."))),function(e){for(var t=e[0],n=t.length,r=1;r<e.length;++r)e[r].length<n&&(n=(t=e[r]).length);return t}(r)}function d(e,t){!e||e instanceof de?t.print("{}"):e instanceof he?e.print(t):t.with_block(function(){t.indent(),e.print(t),t.newline()})}function t(e,t){e.DEFMETHOD("add_source_map",function(e){t(this,e)})}function m(e,t){t.add_mapping(e.start)}se.DEFMETHOD("print",function(e,t){var n=this,r=n._codegen;function i(){e.prepend_comments(n),n.add_source_map(e),r(n,e),e.append_comments(n)}n instanceof Ae?a=n:!s&&n instanceof ce&&"use asm"==n.value&&(s=a),e.push_node(n),t||n.needs_parens(e)?e.with_parens(i):i(),e.pop_node(),n===s&&(s=null)}),se.DEFMETHOD("_print",se.prototype.print),se.DEFMETHOD("print_to_string",function(e){var t=Jt(e);return this.print(t),t.get()}),n(se,te),n(Oe,function(e){if(!e.has_parens()&&F(e))return!0;var t;if(e.option("webkit")&&((t=e.parent())instanceof We&&t.expression===this))return!0;return!!e.option("wrap_iife")&&((t=e.parent())instanceof Ke&&t.expression===this)}),n(ot,function(e){return!e.has_parens()&&F(e)}),n(Je,function(e){var t=e.parent();return t instanceof We&&t.expression===this||t instanceof Ke&&t.expression===this}),n(Ye,function(e){var t=e.parent();return t instanceof Ke||t instanceof Je||t instanceof tt||t instanceof He||t instanceof We||t instanceof it||t instanceof at||t instanceof nt}),n(tt,function(e){var t=e.parent();if(t instanceof Ke&&t.expression===this)return!0;if(t instanceof Je)return!0;if(t instanceof We&&t.expression===this)return!0;if(t instanceof tt){var n=t.operator,r=Kt[n],i=this.operator,o=Kt[i];if(o<r||r==o&&this===t.right)return!0}}),n(We,function(e){var t=e.parent();if(t instanceof Ge&&t.expression===this){var n=!1;return this.walk(new Dt(function(e){return!!(n||e instanceof Ae)||(e instanceof Ke?n=!0:void 0)})),n}}),n(Ke,function(e){var t,n=e.parent();return n instanceof Ge&&n.expression===this||this.expression instanceof Oe&&n instanceof We&&n.expression===this&&(t=e.parent(1))instanceof rt&&t.left===n}),n(Ge,function(e){var t=e.parent();if(!p(this,e)&&(t instanceof We||t instanceof Ke&&t.expression===this))return!0}),n(yt,function(e){var t=e.parent();if(t instanceof We&&t.expression===this){var n=this.getValue();if(n<0||/^0/.test(h(n)))return!0}}),n([rt,nt],function(e){var t=e.parent();return t instanceof Je||(t instanceof tt&&!(t instanceof rt)||(t instanceof Ke&&t.expression===this||(t instanceof nt&&t.condition===this||(t instanceof We&&t.expression===this||void 0))))}),e(ce,function(e,t){t.print_string(e.value,e.quote),t.semicolon()}),e(le,function(e,t){t.print("debugger"),t.semicolon()}),g.DEFMETHOD("_do_print_body",function(e){f(this.body,e)}),e(ue,function(e,t){e.body.print(t),t.semicolon()}),e(xe,function(e,t){r(e.body,!0,t,!0),t.print("")}),e(me,function(e,t){e.label.print(t),t.colon(),e.body.print(t)}),e(fe,function(e,t){e.body.print(t),t.semicolon()}),e(he,function(e,t){u(e,t)}),e(de,function(e,t){t.semicolon()}),e(be,function(e,t){t.print("do"),t.space(),d(e.body,t),t.space(),t.print("while"),t.space(),t.with_parens(function(){e.condition.print(t)}),t.semicolon()}),e(ye,function(e,t){t.print("while"),t.space(),t.with_parens(function(){e.condition.print(t)}),t.space(),e._do_print_body(t)}),e(_e,function(e,t){t.print("for"),t.space(),t.with_parens(function(){e.init?(e.init instanceof Ve?e.init.print(t):l(e.init,t,!0),t.print(";"),t.space()):t.print(";"),e.condition?(e.condition.print(t),t.print(";"),t.space()):t.print(";"),e.step&&e.step.print(t)}),t.space(),e._do_print_body(t)}),e(we,function(e,t){t.print("for"),t.space(),t.with_parens(function(){e.init.print(t),t.space(),t.print("in"),t.space(),e.object.print(t)}),t.space(),e._do_print_body(t)}),e(Ee,function(e,t){t.print("with"),t.space(),t.with_parens(function(){e.expression.print(t)}),t.space(),e._do_print_body(t)}),Ce.DEFMETHOD("_do_print",function(n,e){var t=this;e||n.print("function"),t.name&&(n.space(),t.name.print(n)),n.with_parens(function(){t.argnames.forEach(function(e,t){t&&n.comma(),e.print(n)})}),n.space(),u(t,n,!0)}),e(Ce,function(e,t){e._do_print(t)}),Be.DEFMETHOD("_do_print",function(e,t){e.print(t),this.value&&(e.space(),this.value.print(e)),e.semicolon()}),e(Te,function(e,t){e._do_print(t,"return")}),e(G,function(e,t){e._do_print(t,"throw")}),Re.DEFMETHOD("_do_print",function(e,t){e.print(t),this.label&&(e.space(),this.label.print(e)),e.semicolon()}),e(Fe,function(e,t){e._do_print(t,"break")}),e(Le,function(e,t){e._do_print(t,"continue")}),e(Me,function(e,t){t.print("if"),t.space(),t.with_parens(function(){e.condition.print(t)}),t.space(),e.alternative?(!function(e,t){var n=e.body;if(t.option("bracketize")||t.option("ie8")&&n instanceof be)return d(n,t);if(!n)return t.force_semicolon();for(;;)if(n instanceof Me){if(!n.alternative)return d(e.body,t);n=n.alternative}else{if(!(n instanceof g))break;n=n.body}f(e.body,t)}(e,t),t.space(),t.print("else"),t.space(),e.alternative instanceof Me?e.alternative.print(t):f(e.alternative,t)):e._do_print_body(t)}),e(Ue,function(e,n){n.print("switch"),n.space(),n.with_parens(function(){e.expression.print(n)}),n.space();var r=e.body.length-1;r<0?i(e,n):n.with_block(function(){e.body.forEach(function(e,t){n.indent(!0),e.print(n),t<r&&0<e.body.length&&n.newline()})})}),Ne.DEFMETHOD("_do_print_body",function(t){t.newline(),this.body.forEach(function(e){t.indent(),e.print(t),t.newline()})}),e(Pe,function(e,t){t.print("default:"),e._do_print_body(t)}),e(qe,function(e,t){t.print("case"),t.space(),e.expression.print(t),t.print(":"),e._do_print_body(t)}),e(ze,function(e,t){t.print("try"),t.space(),u(e,t),e.bcatch&&(t.space(),e.bcatch.print(t)),e.bfinally&&(t.space(),e.bfinally.print(t))}),e(Ie,function(e,t){t.print("catch"),t.space(),t.with_parens(function(){e.argname.print(t)}),t.space(),u(e,t)}),e(je,function(e,t){t.print("finally"),t.space(),u(e,t)}),Ve.DEFMETHOD("_do_print",function(n,e){n.print(e),n.space(),this.definitions.forEach(function(e,t){t&&n.comma(),e.print(n)});var t=n.parent();(t instanceof _e||t instanceof we)&&t.init===this||n.semicolon()}),e($e,function(e,t){e._do_print(t,"var")}),e(He,function(e,t){if(e.name.print(t),e.value){t.space(),t.print("="),t.space();var n=t.parent(1),r=n instanceof _e||n instanceof we;l(e.value,t,r)}}),e(Ke,function(e,n){e.expression.print(n),e instanceof Ge&&!p(e,n)||((e.expression instanceof Ke||e.expression instanceof Ce)&&n.add_mapping(e.start),n.with_parens(function(){e.args.forEach(function(e,t){t&&n.comma(),e.print(n)})}))}),e(Ge,function(e,t){t.print("new"),t.space(),Ke.prototype._codegen(e,t)}),Ye.DEFMETHOD("_do_print",function(n){this.expressions.forEach(function(e,t){0<t&&(n.comma(),n.should_break()&&(n.newline(),n.indent())),e.print(n)})}),e(Ye,function(e,t){e._do_print(t)}),e(Qe,function(e,t){var n=e.expression;n.print(t);var r=e.property;t.option("ie8")&&v(r)?(t.print("["),t.add_mapping(e.end),t.print_string(r),t.print("]")):(n instanceof yt&&0<=n.getValue()&&(/[xa-f.)]/i.test(t.last())||t.print(".")),t.print("."),t.add_mapping(e.end),t.print_name(r))}),e(Ze,function(e,t){e.expression.print(t),t.print("["),e.property.print(t),t.print("]")}),e(Xe,function(e,t){var n=e.operator;t.print(n),(/^[a-z]/i.test(n)||/[+-]$/.test(n)&&e.expression instanceof Xe&&/^[+-]/.test(e.expression.operator))&&t.space(),e.expression.print(t)}),e(et,function(e,t){e.expression.print(t),t.print(e.operator)}),e(tt,function(e,t){var n=e.operator;e.left.print(t),">"==n[0]&&e.left instanceof et&&"--"==e.left.operator?t.print(" "):t.space(),t.print(n),("<"==n||"<<"==n)&&e.right instanceof Xe&&"!"==e.right.operator&&e.right.expression instanceof Xe&&"--"==e.right.expression.operator?t.print(" "):t.space(),e.right.print(t)}),e(nt,function(e,t){e.condition.print(t),t.space(),t.print("?"),t.space(),e.consequent.print(t),t.space(),t.colon(),e.alternative.print(t)}),e(it,function(t,r){r.with_square(function(){var e=t.elements,n=e.length;0<n&&r.space(),e.forEach(function(e,t){t&&r.comma(),e.print(r),t===n-1&&e instanceof xt&&r.comma()}),0<n&&r.space()})}),e(ot,function(e,n){0<e.properties.length?n.with_block(function(){e.properties.forEach(function(e,t){t&&(n.print(","),n.newline()),n.indent(),e.print(n)}),n.newline()}):i(e,n)}),e(st,function(e,t){c(e.key,e.quote,t),t.colon(),e.value.print(t)}),at.DEFMETHOD("_print_getter_setter",function(e,t){t.print(e),t.space(),c(this.key.name,this.quote,t),this.value._do_print(t,!0)}),e(Y,function(e,t){e._print_getter_setter("set",t)}),e(W,function(e,t){e._print_getter_setter("get",t)}),e(ut,function(e,t){var n=e.definition();t.print_name(n?n.mangled_name||n.name:e.name)}),e(xt,$),e(gt,function(e,t){t.print("this")}),e(vt,function(e,t){t.print(e.getValue())}),e(bt,function(e,t){t.print_string(e.getValue(),e.quote,o)}),e(yt,function(e,t){s&&e.start&&null!=e.start.raw?t.print(e.start.raw):t.print(h(e.getValue()))}),e(_t,function(e,t){var n=e.getValue(),r=n.toString();n.raw_source&&(r="/"+n.raw_source+r.slice(r.lastIndexOf("/"))),r=t.to_utf8(r),t.print(r);var i=t.parent();i instanceof tt&&/^in/.test(i.operator)&&i.left===e&&t.print(" ")}),t(se,$),t(ce,m),t(le,m),t(ut,m),t(De,m),t(g,m),t(me,$),t(Ce,m),t(Ue,m),t(Ne,m),t(he,m),t(xe,$),t(Ge,m),t(ze,m),t(Ie,m),t(je,m),t(Ve,m),t(vt,m),t(Y,function(e,t){t.add_mapping(e.start,e.key.name)}),t(W,function(e,t){t.add_mapping(e.start,e.key.name)}),t(at,function(e,t){t.add_mapping(e.start,e.key)})}(),n(Xt.prototype=new Wt,{option:function(e){return this.options[e]},exposed:function(e){if(e.global)for(var t=0,n=e.orig.length;t<n;t++)if(!this.toplevel[e.orig[t]instanceof pt?"funcs":"vars"])return!0;return!1},in_boolean_context:function(){if(!this.option("booleans"))return!1;for(var e,t=this.self(),n=0;e=this.parent(n);n++){if(e instanceof fe||e instanceof nt&&e.condition===t||e instanceof ve&&e.condition===t||e instanceof _e&&e.condition===t||e instanceof Me&&e.condition===t||e instanceof Xe&&"!"==e.operator&&e.expression===t)return!0;if(!(e instanceof tt&&("&&"==e.operator||"||"==e.operator)||e instanceof nt||e.tail_node()===t))return!1;t=e}},compress:function(e){this.option("expression")&&e.process_expression(!0);for(var t=+this.options.passes||1,n=1/0,r=!1,i={ie8:this.option("ie8")},o=0;o<t;o++)if(e.figure_out_scope(i),(0<o||this.option("reduce_vars"))&&e.reset_opt_flags(this),e=e.transform(this),1<t){var a=0;if(e.walk(new Dt(function(){a++})),this.info("pass "+o+": last_count: "+n+", count: "+a),a<n)n=a,r=!1;else{if(r)break;r=!0}}return this.option("expression")&&e.process_expression(!1),e},info:function(){"verbose"==this.options.warnings&&se.warn.apply(se,arguments)},warn:function(e,t){if(this.options.warnings){var n=B(e,t);n in this.warnings_produced||(this.warnings_produced[n]=!0,se.warn.apply(se,arguments))}},clear_warnings:function(){this.warnings_produced={}},before:function(e,t,n){if(e._squeezed)return e;var r=!1;e instanceof Ae&&(e=(e=e.hoist_properties(this)).hoist_declarations(this),r=!0),t(e,this),t(e,this);var i=e.optimize(this);return r&&i instanceof Ae&&(i.drop_unused(this),t(i,this)),i===e&&(i._squeezed=!0),i}}),function(){function e(e,n){e.DEFMETHOD("optimize",function(e){if(this._optimized)return this;if(e.has_directive("use asm"))return this;var t=n(this,e);return t._optimized=!0,t})}function G(e){if(e instanceof gt)return!0;if(e instanceof mt)return e.definition().orig[0]instanceof ht;if(e instanceof We){if((e=e.expression)instanceof mt){if(e.is_immutable())return!1;e=e.fixed_value()}return!e||(!!e.is_constant()||G(e))}return!1}function o(e,t){for(var n,r=0;(n=e.parent(r++))&&!(n instanceof Ae);)if(n instanceof Ie){n=n.argname.definition().scope;break}return n.find_variable(t)}function Y(e,t,n){return n||(n={}),t&&(n.start||(n.start=t.start),n.end||(n.end=t.end)),new e(n)}function M(e,t){return 1==t.length?t[0]:Y(Ye,e,{expressions:t.reduce(f,[])})}function U(e,t){switch(typeof e){case"string":return Y(bt,t,{value:e});case"number":return isNaN(e)?Y(Et,t):isFinite(e)?1/e<0?Y(Xe,t,{operator:"-",expression:Y(yt,t,{value:-e})}):Y(yt,t,{value:e}):e<0?Y(Xe,t,{operator:"-",expression:Y(Ct,t)}):Y(Ct,t);case"boolean":return Y(e?St:Ot,t);case"undefined":return Y(At,t);default:if(null===e)return Y(wt,t,{value:null});if(e instanceof RegExp)return Y(_t,t,{value:e});throw new Error(B("Can't handle constant of type: {type}",{type:typeof e}))}}function W(e,t,n){return e instanceof Xe&&"delete"==e.operator||e instanceof Ke&&e.expression===t&&(n instanceof We||n instanceof mt&&"eval"==n.name)?M(t,[Y(yt,t,{value:0}),n]):n}function f(e,t){return t instanceof Ye?e.push.apply(e,t.expressions):e.push(t),e}function y(e){if(null===e)return[];if(e instanceof he)return e.body;if(e instanceof de)return[];if(e instanceof ue)return[e];throw new Error("Can't convert thing to statement array")}function N(e){return null===e||(e instanceof de||e instanceof he&&0==e.body.length)}function _(e){return e instanceof ge&&e.body instanceof he?e.body:e}function Q(e){for(;e instanceof We;)e=e.expression;return e}function P(e){return"Call"==e.TYPE&&(e.expression instanceof Oe||P(e.expression))}function q(e){return e instanceof mt&&e.definition().undeclared}e(se,function(e,t){return e}),se.DEFMETHOD("equivalent_to",function(e){return this.TYPE==e.TYPE&&this.print_to_string()==e.print_to_string()}),Ae.DEFMETHOD("process_expression",function(r,i){var o=this,a=new Wt(function(e){if(r&&e instanceof fe)return Y(Te,e,{value:e.body});if(!r&&e instanceof Te){if(i){var t=e.value&&e.value.drop_side_effect_free(i,!0);return t?Y(fe,e,{body:t}):Y(de,e)}return Y(fe,e,{body:e.value||Y(Xe,e,{operator:"void",expression:Y(yt,e,{value:0})})})}if(e instanceof Ce&&e!==o)return e;if(e instanceof pe){var n=e.body.length-1;0<=n&&(e.body[n]=e.body[n].transform(a))}else e instanceof Me?(e.body=e.body.transform(a),e.alternative&&(e.alternative=e.alternative.transform(a))):e instanceof Ee&&(e.body=e.body.transform(a));return e});o.transform(a)}),function(e){function r(e,t){t.assignments=0,t.chained=!1,t.direct_access=!1,t.escaped=!1,t.scope.uses_eval||t.scope.uses_with?t.fixed=!1:e.exposed(t)?t.fixed=!1:t.fixed=t.init,t.recursive_refs=0,t.references=[],t.should_replace=void 0,t.single_use=void 0}function a(t,n,e){e.variables.each(function(e){r(n,e),null===e.fixed?(e.safe_ids=t.safe_ids,l(t,e,!0)):e.fixed&&(t.loop_ids[e.id]=t.in_loop,l(t,e,!0))})}function s(e){e.safe_ids=Object.create(e.safe_ids)}function u(e){e.safe_ids=Object.getPrototypeOf(e.safe_ids)}function l(e,t,n){e.safe_ids[t.id]=n}function c(e,t){if(e.safe_ids[t.id]){if(null==t.fixed){var n=t.orig[0];if(n instanceof ft||"arguments"==n.name)return!1;t.fixed=Y(At,n)}return!0}return t.fixed instanceof Se}function o(e,t,n){return void 0===t.fixed||(null===t.fixed&&t.safe_ids?(t.safe_ids[t.id]=!1,delete t.safe_ids,!0):!!ae(e.safe_ids,t.id)&&(!!c(e,t)&&(!1!==t.fixed&&(!(null!=t.fixed&&(!n||t.references.length>t.assignments))&&oe(t.orig,function(e){return!(e instanceof pt||e instanceof ht)})))))}function f(e,t){if(!((t=p(t))instanceof se)){var n;if(e instanceof it){var r=e.elements;if("length"==t)return U(r.length,e);"number"==typeof t&&t in r&&(n=r[t])}else if(e instanceof ot){t=""+t;for(var i=e.properties,o=i.length;0<=--o;){if(!(i[o]instanceof st))return;n||i[o].key!==t||(n=i[o].value)}}return n instanceof mt&&n.fixed_value()||n}}e(se,$);var n=new Dt(function(e){if(e instanceof ut){var t=e.definition();t&&(e instanceof mt&&t.references.push(e),t.fixed=!1)}});e(ke,function(e,t,n){return s(e),a(e,n,this),t(),u(e),!0}),e(rt,function(e){var t=this;if(t.left instanceof mt){var n=t.left.definition(),r=n.fixed;if((r||"="==t.operator)&&o(e,n,t.right))return n.references.push(t.left),n.assignments++,"="!=t.operator&&(n.chained=!0),n.fixed="="==t.operator?function(){return t.right}:function(){return Y(tt,t,{operator:t.operator.slice(0,-1),left:r instanceof se?r:r(),right:t.right})},l(e,n,!1),t.right.walk(e),l(e,n,!0),!0}}),e(tt,function(e){if(J(this.operator))return this.left.walk(e),s(e),this.right.walk(e),u(e),!0}),e(qe,function(e){return s(e),this.expression.walk(e),u(e),s(e),L(this,e),u(e),!0}),e(nt,function(e){return this.condition.walk(e),s(e),this.consequent.walk(e),u(e),s(e),this.alternative.walk(e),u(e),!0}),e(Pe,function(e,t){return s(e),t(),u(e),!0}),e(Se,function(e,t,n){this.inlined=!1;var r=e.safe_ids;return e.safe_ids=Object.create(null),a(e,n,this),t(),e.safe_ids=r,!0}),e(be,function(e){var t=e.in_loop;return e.in_loop=this,s(e),this.body.walk(e),this.condition.walk(e),u(e),e.in_loop=t,!0}),e(_e,function(e){this.init&&this.init.walk(e);var t=e.in_loop;return(e.in_loop=this).condition&&(s(e),this.condition.walk(e),u(e)),s(e),this.body.walk(e),u(e),this.step&&(s(e),this.step.walk(e),u(e)),e.in_loop=t,!0}),e(we,function(e){this.init.walk(n),this.object.walk(e);var t=e.in_loop;return e.in_loop=this,s(e),this.body.walk(e),u(e),e.in_loop=t,!0}),e(Oe,function(r,e,t){var i,o=this;return o.inlined=!1,s(r),a(r,t,o),!o.name&&(i=r.parent())instanceof Ke&&i.expression===o&&o.argnames.forEach(function(e,t){var n=e.definition();o.uses_arguments||void 0!==n.fixed?n.fixed=!1:(n.fixed=function(){return i.args[t]||Y(At,i)},r.loop_ids[n.id]=r.in_loop,l(r,n,!0))}),e(),u(r),!0}),e(Me,function(e){return this.condition.walk(e),s(e),this.body.walk(e),u(e),this.alternative&&(s(e),this.alternative.walk(e),u(e)),!0}),e(me,function(e){return s(e),this.body.walk(e),u(e),!0}),e(dt,function(){this.definition().fixed=!1}),e(mt,function(e,t,n){var r,i,o,a,s=this.definition();s.references.push(this),1==s.references.length&&!s.fixed&&s.orig[0]instanceof pt&&(e.loop_ids[s.id]=e.in_loop),void 0!==s.fixed&&c(e,s)&&"m"!=s.single_use?s.fixed&&((r=this.fixed_value())instanceof Ce&&j(e,s)?s.recursive_refs++:r&&(o=e,a=s,n.option("unused")&&!a.scope.uses_eval&&!a.scope.uses_with&&a.references.length-a.recursive_refs==1&&o.loop_ids[a.id]===o.in_loop)?s.single_use=r instanceof Ce||s.scope===this.scope&&r.is_constant_expression():s.single_use=!1,function e(t,n,r,i,o){var a=t.parent(i);if(X(n,a)||!o&&a instanceof Ke&&a.expression===n&&(!(r instanceof Oe)||!(a instanceof Ge)&&r.contains_this()))return!0;if(a instanceof it)return e(t,a,a,i+1);if(a instanceof st&&n===a.value){var s=t.parent(i+1);return e(t,s,s,i+2)}return a instanceof We&&a.expression===n?!o&&e(t,a,f(r,a.property),i+1):void 0}(e,this,r,0,!!(i=r)&&(i.is_constant()||i instanceof Ce||i instanceof gt))&&(s.single_use?s.single_use="m":s.fixed=!1)):s.fixed=!1,function e(t,n,r,i,o,a,s){var u=t.parent(a);if(!o||!o.is_constant()){if(u instanceof rt&&"="==u.operator&&i===u.right||u instanceof Ke&&i!==u.expression||u instanceof Be&&i===u.value&&i.scope!==n.scope||u instanceof He&&i===u.value)return!(1<s)||o&&o.is_constant_expression(r)||(s=1),void((!n.escaped||n.escaped>s)&&(n.escaped=s));if(u instanceof it||u instanceof tt&&J(u.operator)||u instanceof nt&&i!==u.condition||u instanceof Ye&&i===u.tail_node())e(t,n,r,u,u,a+1,s);else if(u instanceof st&&i===u.value){var l=t.parent(a+1);e(t,n,r,l,l,a+2,s)}else if(u instanceof We&&i===u.expression&&(e(t,n,r,u,o=f(o,u.property),a+1,s+1),o))return;0==a&&(n.direct_access=!0)}}(e,s,this.scope,this,r,0,1)}),e(xe,function(e,t,n){this.globals.each(function(e){r(n,e)}),a(e,n,this)}),e(ze,function(e){return s(e),L(this,e),u(e),this.bcatch&&(s(e),this.bcatch.walk(e),u(e)),this.bfinally&&this.bfinally.walk(e),!0}),e(Je,function(e,t){var n=this;if(("++"==n.operator||"--"==n.operator)&&n.expression instanceof mt){var r=n.expression.definition(),i=r.fixed;if(i&&o(e,r,!0))return r.references.push(n.expression),r.assignments++,r.chained=!0,r.fixed=function(){return Y(tt,n,{operator:n.operator.slice(0,-1),left:Y(Xe,n,{operator:"+",expression:i instanceof se?i:i()}),right:Y(yt,n,{value:1})})},l(e,r,!0),!0}}),e(He,function(e,t){var n=this,r=n.name.definition();if(n.value){if(o(e,r,n.value))return r.fixed=function(){return n.value},e.loop_ids[r.id]=e.in_loop,l(e,r,!1),t(),l(e,r,!0),!0;r.fixed=!1}}),e(ye,function(e){var t=e.in_loop;return e.in_loop=this,s(e),this.condition.walk(e),this.body.walk(e),u(e),e.in_loop=t,!0})}(function(e,t){e.DEFMETHOD("reduce_vars",t)}),xe.DEFMETHOD("reset_opt_flags",function(n){var r=n.option("reduce_vars"),i=new Dt(function(e,t){if(e._squeezed=!1,e._optimized=!1,r)return e.reduce_vars(i,t,n)});i.safe_ids=Object.create(null),i.in_loop=null,i.loop_ids=Object.create(null),this.walk(i)}),ut.DEFMETHOD("fixed_value",function(){var e=this.definition().fixed;return!e||e instanceof se?e:e()}),mt.DEFMETHOD("is_immutable",function(){var e=this.definition().orig;return 1==e.length&&e[0]instanceof ht});var t=ie("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");mt.DEFMETHOD("is_declared",function(e){return!this.definition().undeclared||e.option("unsafe")&&t(this.name)});var n,r,i,a,z=ie("Infinity NaN undefined");function Z(e){return e instanceof Ct||e instanceof Et||e instanceof At}function s(e,l){var V,$,H;!function(){var e=l.self(),t=0;do{if(e instanceof Ie||e instanceof je)t++;else if(e instanceof ge)V=!0;else{if(e instanceof Ae){H=e;break}e instanceof ze&&($=!0)}}while(e=l.parent(t++))}();for(var K,t=10;K=!1,i(e),l.option("dead_code")&&o(e,l),l.option("if_return")&&r(e,l),0<l.sequences_limit&&(a(e,l),s(e,l)),l.option("join_vars")&&u(e),l.option("collapse_vars")&&n(e,l),K&&0<t--;);function n(n,l){if(H.uses_eval||H.uses_with)return n;for(var c,e,t,f=[],o=n.length,s=new Wt(function(e,t){if(S)return e;if(!O)return e!==u[p]?e:++p<u.length?R(e):(O=!0,(m=function e(t,n,r){var i=s.parent(n);if(i instanceof rt)return r&&!(i.left instanceof We||i.left.name in E)?e(i,n+1,r):t;if(i instanceof tt)return!r||J(i.operator)&&i.left!==t?t:e(i,n+1,r);if(i instanceof Ke)return t;if(i instanceof qe)return t;if(i instanceof nt)return r&&i.condition===t?e(i,n+1,r):t;if(i instanceof Ve)return e(i,n+1,!0);if(i instanceof Be)return r?e(i,n+1,r):t;if(i instanceof Me)return r&&i.condition===t?e(i,n+1,r):t;if(i instanceof ge)return t;if(i instanceof Ye)return e(i,n+1,i.tail_node()!==t);if(i instanceof fe)return e(i,n+1,!0);if(i instanceof Ue)return t;if(i instanceof Je)return t;if(i instanceof He)return t;return null}(e,0))===e&&(S=!0),e);var n,r,i=s.parent();if(e instanceof rt&&"="!=e.operator&&v.equivalent_to(e.left)||e instanceof Ke&&v instanceof We&&v.equivalent_to(e.expression)||e instanceof le||e instanceof ge&&!(e instanceof _e)||e instanceof Re||e instanceof ze||e instanceof Ee||i instanceof _e&&e!==i.init||!x&&e instanceof mt&&!e.is_declared(l))return S=!0,e;if(!g&&(i instanceof tt&&J(i.operator)&&i.left!==e||i instanceof nt&&i.condition!==e||i instanceof Me&&i.condition!==e)&&(g=i),B&&!(e instanceof lt)&&(_&&v.equivalent_to(e)||w&&(n=b.equivalent_to(e)))){if(g&&(n||!A||!x))return S=!0,e;if(X(e,i))return d&&D++,e;if(K=S=!0,D++,l.info("Collapsing {name} [{file}:{line},{col}]",{name:e.print_to_string(),file:e.start.file,line:e.start.line,col:e.start.col}),h instanceof et)return Y(Xe,h,h);if(h instanceof He){if(d)return S=!1,e;var o=h.name.definition(),a=h.value;return o.references.length-o.replaced!=1||l.exposed(o)?Y(rt,h,{operator:"=",left:Y(mt,h.name,h.name),right:a}):(o.replaced++,k&&Z(a)?a.transform(l):W(i,e,a))}return h.write_only=!1,h}return(e instanceof Ke||e instanceof Be&&(y||v instanceof We||j(v))||e instanceof We&&(y||e.expression.may_throw_on_access(l))||e instanceof mt&&(function(e){var t=E[e.name];if(!t)return;if(t!==v)return!0;w=!1}(e)||y&&j(e))||e instanceof He&&e.value&&(e.name.name in E||y&&j(e.name))||(r=X(e.left,e))&&(r instanceof We||r.name in E)||C&&($?e.has_side_effects(l):function e(t,n){if(t instanceof rt)return e(t.left,!0);if(t instanceof Je)return e(t.expression,!0);if(t instanceof He)return t.value&&e(t.value);if(n){if(t instanceof Qe)return e(t.expression,!0);if(t instanceof Ze)return e(t.expression,!0);if(t instanceof mt)return t.definition().scope!==H}return!1}(e)))&&(m=e)instanceof Ae&&(S=!0),R(e)},function(e){S||(m===e&&(S=!0),g===e&&(g=null))}),r=new Wt(function(e){if(S)return e;if(!O){if(e!==u[p])return e;if(++p<u.length)return;return O=!0,e}return e instanceof mt&&e.name==T.name?(--D||(S=!0),X(e,r.parent())?e:(T.replaced++,d.replaced--,h.value)):e instanceof Pe||e instanceof Ae?e:void 0});0<=--o;){0==o&&l.option("unused")&&F();var u=[];for(L(n[o]);0<f.length;){u=f.pop();var p=0,h=u[u.length-1],d=null,m=null,g=null,v=M(h),b=U(h),y=v&&v.has_side_effects(l),_=v&&!y&&!G(v),w=b&&N(b);if(_||w){var E=P(h),A=(t=void 0,(t=Q(e=v))instanceof mt&&t.definition().scope===H&&!(V&&(t.name in E&&E[t.name]!==e||h instanceof Je||h instanceof rt&&"="!=h.operator)));y||(y=z(h));var x=I(),C=h.may_throw(l),k=h.name instanceof ft,O=k,S=!1,D=0,B=!c||!O;if(!B){for(var i=l.self().argnames.lastIndexOf(h.name)+1;!S&&i<c.length;i++)c[i].transform(s);B=!0}for(var a=o;!S&&a<n.length;a++)n[a].transform(s);if(d){var T=h.name.definition();if(S&&T.references.length-T.replaced>D)D=!1;else{S=!1,p=0,O=k;for(a=o;!S&&a<n.length;a++)n[a].transform(r);d.single_use=!1}}D&&!q(h)&&n.splice(o,1)}}}function R(e){if(e instanceof Ae)return e;if(e instanceof Ue){e.expression=e.expression.transform(s);for(var t=0,n=e.body.length;!S&&t<n;t++){var r=e.body[t];if(r instanceof qe){if(!O){if(r!==u[p])continue;p++}if(r.expression=r.expression.transform(s),!x)break}}return S=!0,e}}function F(){var e,n=l.self();if(n instanceof Oe&&!n.name&&!n.uses_arguments&&!n.uses_eval&&(e=l.parent())instanceof Ke&&e.expression===n){var r=l.has_directive("use strict");r&&!ee(r,n.body)&&(r=!1);var t=n.argnames.length;c=e.args.slice(t);for(var i=Object.create(null),o=t;0<=--o;){var a=n.argnames[o],s=e.args[o];if(c.unshift(Y(He,a,{name:a,value:s})),!(a.name in i)){if(i[a.name]=!0,s){var u=new Dt(function(e){if(!s)return!0;if(e instanceof mt&&n.variables.has(e.name)){var t=e.definition().scope;if(t!==H)for(;t=t.parent_scope;)if(t===H)return!0;s=null}return e instanceof gt&&(r||!u.find_parent(Ae))?(s=null,!0):void 0});s.walk(u)}else s=Y(At,a).transform(l);s&&f.unshift([Y(He,a,{name:a,value:s})])}}}}function L(e){u.push(e),e instanceof rt?(f.push(u.slice()),L(e.right)):e instanceof tt?(L(e.left),L(e.right)):e instanceof Ke?(L(e.expression),e.args.forEach(L)):e instanceof qe?L(e.expression):e instanceof nt?(L(e.condition),L(e.consequent),L(e.alternative)):e instanceof Ve?e.definitions.forEach(L):e instanceof ve?(L(e.condition),e.body instanceof pe||L(e.body)):e instanceof Be?e.value&&L(e.value):e instanceof _e?(e.init&&L(e.init),e.condition&&L(e.condition),e.step&&L(e.step),e.body instanceof pe||L(e.body)):e instanceof we?(L(e.object),e.body instanceof pe||L(e.body)):e instanceof Me?(L(e.condition),e.body instanceof pe||L(e.body),!e.alternative||e.alternative instanceof pe||L(e.alternative)):e instanceof Ye?e.expressions.forEach(L):e instanceof fe?L(e.body):e instanceof Ue?(L(e.expression),e.body.forEach(L)):e instanceof Je?"++"==e.operator||"--"==e.operator?f.push(u.slice()):L(e.expression):e instanceof He&&e.value&&(f.push(u.slice()),L(e.value)),u.pop()}function M(e){if(!(e instanceof He))return e[e instanceof rt?"left":"expression"];var t=e.name.definition();if(ee(e.name,t.orig)){var n=t.orig.length-t.eliminated,r=t.references.length-t.replaced;return 1<n&&!(e.name instanceof ft)||(1<r?function(e){var t=e.value;if(t instanceof mt&&"arguments"!=t.name){var n=t.definition();if(!n.undeclared)return d=n}}(e):!l.exposed(t))?Y(mt,e.name,e.name):void 0}}function U(e){if(h instanceof rt&&"="==h.operator)return h.right}function N(e){if(e.is_constant())return!0;if(e instanceof it)return!1;if(e instanceof Oe)return!1;if(e instanceof ot)return!1;if(e instanceof _t)return!1;if(e instanceof ut)return!0;if(!(v instanceof mt))return!1;if(e.has_side_effects(l))return!1;var t,n=v.definition();return e.walk(new Dt(function(e){if(t)return!0;e instanceof mt&&e.definition()===n&&(t=!0)})),!t}function P(e){var n=Object.create(null);h instanceof He&&(n[h.name.name]=v);var r=new Dt(function(e){var t=Q(e);(t instanceof mt||t instanceof gt)&&(n[t.name]=n[t.name]||X(e,r.parent()))});return e.walk(r),n}function q(r){if(r.name instanceof ft){var e=l.self().argnames.indexOf(r.name),t=l.parent().args;return t[e]&&(t[e]=Y(yt,t[e],{value:0})),!0}var i=!1;return n[o].transform(new Wt(function(e,t,n){return i?e:e===r||e.body===r?(i=!0,e instanceof He?(e.value=null,e):n?re.skip:null):void 0},function(e){if(e instanceof Ye)switch(e.expressions.length){case 0:return null;case 1:return e.expressions[0]}}))}function z(e){return!(e instanceof Je)&&(t=e,t[t instanceof rt?"right":"value"]).has_side_effects(l);var t}function I(){if(y)return!1;if(d)return!0;if(v instanceof mt){var e=v.definition();if(e.references.length-e.replaced==(h instanceof He?1:2))return!0}return!1}function j(e){var t=e.definition();return!(1==t.orig.length&&t.orig[0]instanceof pt)&&(t.scope!==H||!oe(t.references,function(e){var t=e.scope;return"Scope"==t.TYPE&&(t=t.parent_scope),t===H}))}}function i(e){for(var t=[],n=0;n<e.length;){var r=e[n];r instanceof he?(K=!0,i(r.body),[].splice.apply(e,[n,1].concat(r.body)),n+=r.body.length):r instanceof de?(K=!0,e.splice(n,1)):r instanceof ce?t.indexOf(r.value)<0?(n++,t.push(r.value)):(K=!0,e.splice(n,1)):n++}}function r(i,r){for(var o=r.self(),e=function(e){for(var t=0,n=e.length;0<=--n;){var r=e[n];if(r instanceof Me&&r.body instanceof Te&&1<++t)return!0}return!1}(i),a=o instanceof Ce,t=i.length;0<=--t;){var n=i[t],s=g(t),u=i[s];if(a&&!u&&n instanceof Te){if(!n.value){K=!0,i.splice(t,1);continue}if(n.value instanceof Xe&&"void"==n.value.operator){K=!0,i[t]=Y(fe,n,{body:n.value.expression});continue}}if(n instanceof Me){var l;if(h(l=A(n.body))){l.label&&T(l.label.thedef.references,l),K=!0,(n=n.clone()).condition=n.condition.negate(r);var c=m(n.body,l);n.body=Y(he,n,{body:y(n.alternative).concat(d())}),n.alternative=Y(he,n,{body:c}),i[t]=n.transform(r);continue}if(h(l=A(n.alternative))){l.label&&T(l.label.thedef.references,l),K=!0,(n=n.clone()).body=Y(he,n.body,{body:y(n.body).concat(d())});c=m(n.alternative,l);n.alternative=Y(he,n.alternative,{body:c}),i[t]=n.transform(r);continue}}if(n instanceof Me&&n.body instanceof Te){var f=n.body.value;if(!f&&!n.alternative&&(a&&!u||u instanceof Te&&!u.value)){K=!0,i[t]=Y(fe,n.condition,{body:n.condition});continue}if(f&&!n.alternative&&u instanceof Te&&u.value){K=!0,(n=n.clone()).alternative=u,i.splice(t,1,n.transform(r)),i.splice(s,1);continue}if(f&&!n.alternative&&(!u&&a&&e||u instanceof Te)){K=!0,(n=n.clone()).alternative=u||Y(Te,n,{value:null}),i.splice(t,1,n.transform(r)),u&&i.splice(s,1);continue}var p=i[v(t)];if(r.option("sequences")&&a&&!n.alternative&&p instanceof Me&&p.body instanceof Te&&g(s)==i.length&&u instanceof fe){K=!0,(n=n.clone()).alternative=Y(he,u,{body:[u,Y(Te,u,{value:null})]}),i.splice(t,1,n.transform(r)),i.splice(s,1);continue}}}function h(e){if(!e)return!1;var t,n=e instanceof Re?r.loopcontrol_target(e):null;return e instanceof Te&&a&&(!(t=e.value)||t instanceof Xe&&"void"==t.operator)||e instanceof Le&&o===_(n)||e instanceof Fe&&n instanceof he&&o===n}function d(){var e=i.slice(t+1);return i.length=t+1,e.filter(function(e){return!(e instanceof Se)||(i.push(e),!1)})}function m(e,t){var n=y(e).slice(0,-1);return t.value&&n.push(Y(fe,t.value,{body:t.value.expression})),n}function g(e){for(var t=e+1,n=i.length;t<n;t++){var r=i[t];if(!(r instanceof $e&&b(r)))break}return t}function v(e){for(var t=e;0<=--t;){var n=i[t];if(!(n instanceof $e&&b(n)))break}return t}}function o(t,n){for(var e,r=n.self(),i=0,o=0,a=t.length;i<a;i++){var s=t[i];if(s instanceof Re){var u=n.loopcontrol_target(s);s instanceof Fe&&!(u instanceof ge)&&_(u)===r||s instanceof Le&&_(u)===r?s.label&&T(s.label.thedef.references,s):t[o++]=s}else t[o++]=s;if(A(s)){e=t.slice(i+1);break}}t.length=o,K=o!=a,e&&e.forEach(function(e){w(n,e,t)})}function b(e){return oe(e.definitions,function(e){return!e.value})}function a(t,e){if(!(t.length<2)){for(var n=[],r=0,i=0,o=t.length;i<o;i++){var a=t[i];if(a instanceof fe){n.length>=e.sequences_limit&&u();var s=a.body;0<n.length&&(s=s.drop_side_effect_free(e)),s&&f(n,s)}else a instanceof Ve&&b(a)||a instanceof Se||u(),t[r++]=a}u(),(t.length=r)!=o&&(K=!0)}function u(){if(n.length){var e=M(n[0],n);t[r++]=Y(fe,e,{body:e}),n=[]}}}function p(e,t){if(!(e instanceof he))return e;for(var n=null,r=0,i=e.body.length;r<i;r++){var o=e.body[r];if(o instanceof $e&&b(o))t.push(o);else{if(n)return!1;n=o}}return n}function s(e,n){function t(e){i--,K=!0;var t=r.body;return M(t,[t,e]).transform(n)}for(var r,i=0,o=0;o<e.length;o++){var a=e[o];if(r)if(a instanceof Be)a.value=t(a.value||Y(At,a).transform(n));else if(a instanceof _e){if(!(a.init instanceof Ve)){var s=!1;r.body.walk(new Dt(function(e){return!!(s||e instanceof Ae)||(e instanceof tt&&"in"==e.operator?s=!0:void 0)})),s||(a.init?a.init=t(a.init):(a.init=r.body,i--,K=!0))}}else a instanceof we?a.object=t(a.object):a instanceof Me?a.condition=t(a.condition):a instanceof Ue?a.expression=t(a.expression):a instanceof Ee&&(a.expression=t(a.expression));if(n.option("conditionals")&&a instanceof Me){var u=[],l=p(a.body,u),c=p(a.alternative,u);if(!1!==l&&!1!==c&&0<u.length){var f=u.length;u.push(Y(Me,a,{condition:a.condition,body:l||Y(de,a.body),alternative:c})),u.unshift(i,1),[].splice.apply(e,u),o+=f,i+=f+1,r=null,K=!0;continue}}e[i++]=a,r=a instanceof fe?a:null}e.length=i}function c(e,t){if(e instanceof Ve){var n,r=e.definitions[e.definitions.length-1];if(r.value instanceof ot)if(t instanceof rt?n=[t]:t instanceof Ye&&(n=t.expressions.slice()),n){var i=!1;do{var o=n[0];if(!(o instanceof rt))break;if("="!=o.operator)break;if(!(o.left instanceof We))break;var a=o.left.expression;if(!(a instanceof mt))break;if(r.name.name!=a.name)break;if(!o.right.is_constant_expression(H))break;var s=o.left.property;if(s instanceof se&&(s=s.evaluate(l)),s instanceof se)break;s=""+s;var u=l.has_directive("use strict")?function(e){return e.key!=s&&e.key.name!=s}:function(e){return e.key.name!=s};if(!oe(r.value.properties,u))break;r.value.properties.push(Y(st,o,{key:s,value:o.right})),n.shift(),i=!0}while(n.length);return i&&n}}}function u(n){for(var e,t=0,r=-1,i=n.length;t<i;t++){var o=n[t],a=n[r];if(o instanceof Ve)a&&a.TYPE==o.TYPE?(a.definitions=a.definitions.concat(o.definitions),K=!0):e&&e.TYPE==o.TYPE&&b(o)?(e.definitions=e.definitions.concat(o.definitions),K=!0):e=n[++r]=o;else if(o instanceof Be)o.value=u(o.value);else if(o instanceof _e){(s=c(a,o.init))?(K=!0,o.init=s.length?M(o.init,s):null,n[++r]=o):a instanceof $e&&(!o.init||o.init.TYPE==a.TYPE)?(o.init&&(a.definitions=a.definitions.concat(o.init.definitions)),o.init=a,n[r]=o,K=!0):e&&o.init&&e.TYPE==o.init.TYPE&&b(o.init)?(e.definitions=e.definitions.concat(o.init.definitions),o.init=null,n[++r]=o,K=!0):n[++r]=o}else if(o instanceof we)o.object=u(o.object);else if(o instanceof Me)o.condition=u(o.condition);else if(o instanceof fe){var s;if(s=c(a,o.body)){if(K=!0,!s.length)continue;o.body=M(o.body,s)}n[++r]=o}else o instanceof Ue?o.expression=u(o.expression):o instanceof Ee?o.expression=u(o.expression):n[++r]=o}function u(e){n[++r]=o;var t=c(a,e);return t?(K=!0,t.length?M(e,t):e instanceof Ye?e.tail_node().left:e.left):e}n.length=r+1}}function w(t,e,n){e instanceof Se||t.warn("Dropping unreachable code [{file}:{line},{col}]",e.start),e.walk(new Dt(function(e){return e instanceof Ve?(t.warn("Declarations in unreachable code! [{file}:{line},{col}]",e.start),e.remove_initializers(),n.push(e),!0):e instanceof Se?(n.push(e),!0):e instanceof Ae||void 0}))}function p(e){return e instanceof vt?e.getValue():e instanceof Xe&&"void"==e.operator&&e.expression instanceof vt?void 0:e}function v(e,t){return e.is_undefined||e instanceof At||e instanceof Xe&&"void"==e.operator&&!e.expression.has_side_effects(t)}!function(e){function n(e){return/strict/.test(e.option("pure_getters"))}se.DEFMETHOD("may_throw_on_access",function(e){return!e.option("pure_getters")||this._dot_throw(e)}),e(se,n),e(wt,ne),e(At,ne),e(vt,te),e(it,te),e(ot,function(e){if(!n(e))return!1;for(var t=this.properties.length;0<=--t;)if(this.properties[t].value instanceof ke)return!0;return!1}),e(Ce,te),e(et,te),e(Xe,function(){return"void"==this.operator}),e(tt,function(e){return("&&"==this.operator||"||"==this.operator)&&(this.left._dot_throw(e)||this.right._dot_throw(e))}),e(rt,function(e){return"="==this.operator&&this.right._dot_throw(e)}),e(nt,function(e){return this.consequent._dot_throw(e)||this.alternative._dot_throw(e)}),e(Qe,function(e){if(!n(e))return!1;var t=this.expression;return t instanceof mt&&(t=t.fixed_value()),!(t instanceof Ce&&"prototype"==this.property)}),e(Ye,function(e){return this.tail_node()._dot_throw(e)}),e(mt,function(e){if(this.is_undefined)return!0;if(!n(e))return!1;if(q(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,t){e.DEFMETHOD("_dot_throw",t)}),r=["!","delete"],i=["in","instanceof","==","!=","===","!==","<","<=",">=",">"],(n=function(e,t){e.DEFMETHOD("is_boolean",t)})(se,te),n(Xe,function(){return ee(this.operator,r)}),n(tt,function(){return ee(this.operator,i)||J(this.operator)&&this.left.is_boolean()&&this.right.is_boolean()}),n(nt,function(){return this.consequent.is_boolean()&&this.alternative.is_boolean()}),n(rt,function(){return"="==this.operator&&this.right.is_boolean()}),n(Ye,function(){return this.tail_node().is_boolean()}),n(St,ne),n(Ot,ne),function(e){e(se,te),e(yt,ne);var t=ie("+ - ~ ++ --");e(Je,function(){return t(this.operator)});var n=ie("- * / % & | ^ << >> >>>");e(tt,function(e){return n(this.operator)||"+"==this.operator&&this.left.is_number(e)&&this.right.is_number(e)}),e(rt,function(e){return n(this.operator.slice(0,-1))||"="==this.operator&&this.right.is_number(e)}),e(Ye,function(e){return this.tail_node().is_number(e)}),e(nt,function(e){return this.consequent.is_number(e)&&this.alternative.is_number(e)})}(function(e,t){e.DEFMETHOD("is_number",t)}),(a=function(e,t){e.DEFMETHOD("is_string",t)})(se,te),a(bt,ne),a(Xe,function(){return"typeof"==this.operator}),a(tt,function(e){return"+"==this.operator&&(this.left.is_string(e)||this.right.is_string(e))}),a(rt,function(e){return("="==this.operator||"+="==this.operator)&&this.right.is_string(e)}),a(Ye,function(e){return this.tail_node().is_string(e)}),a(nt,function(e){return this.consequent.is_string(e)&&this.alternative.is_string(e)});var u,J=ie("&& ||"),l=ie("delete ++ --");function X(e,t){return t instanceof Je&&l(t.operator)?t.expression:t instanceof rt&&t.left===e?e:void 0}function E(e,t){return e.print_to_string().length>t.print_to_string().length?t:e}function I(e,t,n){return(F(e)?function(e,t){return E(Y(fe,e,{body:e}),Y(fe,t,{body:t})).body}:E)(t,n)}function c(e){for(var t in e)e[t]=ie(e[t])}u=function(e,t){e.DEFMETHOD("_find_defs",t)},se.DEFMETHOD("resolve_defines",function(e){if(e.option("global_defs")){var t=this._find_defs(e,"");if(t){for(var n,r=this,i=0;n=r,(r=e.parent(i++))instanceof We&&r.expression===n;);if(!X(n,r))return t;e.warn("global_defs "+this.print_to_string()+" redefined [{file}:{line},{col}]",this.start)}}}),u(se,$),u(Qe,function(e,t){return this.expression._find_defs(e,"."+this.property+t)}),u(mt,function(e,t){if(this.global()){var n,r=e.option("global_defs");if(r&&ae(r,n=this.name+t)){var i=function t(e,n){if(e instanceof se)return Y(e.CTOR,n,e);if(Array.isArray(e))return Y(it,n,{elements:e.map(function(e){return t(e,n)})});if(e&&"object"==typeof e){var r=[];for(var i in e)ae(e,i)&&r.push(Y(st,n,{key:i,value:t(e[i],n)}));return Y(ot,n,{properties:r})}return U(e,n)}(r[n],this),o=e.find_parent(xe);return i.walk(new Dt(function(e){e instanceof mt&&(e.scope=o,e.thedef=o.def_global(e))})),i}}});var h=["constructor","toString","valueOf"],d={Array:["indexOf","join","lastIndexOf","slice"].concat(h),Boolean:h,Function:h,Number:["toExponential","toFixed","toPrecision"].concat(h),Object:h,RegExp:["test"].concat(h),String:["charAt","charCodeAt","concat","indexOf","italics","lastIndexOf","match","replace","search","slice","split","substr","substring","toLowerCase","toUpperCase","trim"].concat(h)};c(d);var m={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"]};c(m),function(e){se.DEFMETHOD("evaluate",function(e){if(!e.option("evaluate"))return this;var t=[],n=this._eval(e,t,1);return t.forEach(function(e){delete e._eval}),!n||n instanceof RegExp?n:"function"==typeof n||"object"==typeof n?this:n});var t=ie("! ~ - + void");se.DEFMETHOD("is_constant",function(){return this instanceof vt?!(this instanceof _t):this instanceof Xe&&this.expression instanceof vt&&t(this.operator)}),e(ue,function(){throw new Error(B("Cannot evaluate a statement [{file}:{line},{col}]",this.start))}),e(Ce,S),e(se,S),e(vt,function(){return this.getValue()}),e(Oe,function(e){if(e.option("unsafe")){var t=function(){};return t.node=this,t.toString=function(){return"function(){}"},t}return this}),e(it,function(e,t,n){if(e.option("unsafe")){for(var r=[],i=0,o=this.elements.length;i<o;i++){var a=this.elements[i],s=a._eval(e,t,n);if(a===s)return this;r.push(s)}return r}return this}),e(ot,function(e,t,n){if(e.option("unsafe")){for(var r={},i=0,o=this.properties.length;i<o;i++){var a=this.properties[i],s=a.key;if(s instanceof ut)s=s.name;else if(s instanceof se&&(s=s._eval(e,t,n))===a.key)return this;if("function"==typeof Object.prototype[s])return this;if(!(a.value instanceof Oe)&&(r[s]=a.value._eval(e,t,n),r[s]===a.value))return this}return r}return this});var i=ie("! typeof void");e(Xe,function(e,t,n){var r=this.expression;if(e.option("typeofs")&&"typeof"==this.operator&&(r instanceof Ce||r instanceof mt&&r.fixed_value()instanceof Ce))return"function";if(i(this.operator)||n++,(r=r._eval(e,t,n))===this.expression)return this;switch(this.operator){case"!":return!r;case"typeof":return r instanceof RegExp?this:typeof r;case"void":return;case"~":return~r;case"-":return-r;case"+":return+r}return this});var a=ie("&& || === !==");e(tt,function(e,t,n){a(this.operator)||n++;var r=this.left._eval(e,t,n);if(r===this.left)return this;var i,o=this.right._eval(e,t,n);if(o===this.right)return this;switch(this.operator){case"&&":i=r&&o;break;case"||":i=r||o;break;case"|":i=r|o;break;case"&":i=r&o;break;case"^":i=r^o;break;case"+":i=r+o;break;case"*":i=r*o;break;case"/":i=r/o;break;case"%":i=r%o;break;case"-":i=r-o;break;case"<<":i=r<<o;break;case">>":i=r>>o;break;case">>>":i=r>>>o;break;case"==":i=r==o;break;case"===":i=r===o;break;case"!=":i=r!=o;break;case"!==":i=r!==o;break;case"<":i=r<o;break;case"<=":i=r<=o;break;case">":i=o<r;break;case">=":i=o<=r;break;default:return this}return isNaN(i)&&e.find_parent(Ee)?this:i}),e(nt,function(e,t,n){var r=this.condition._eval(e,t,n);if(r===this.condition)return this;var i=r?this.consequent:this.alternative,o=i._eval(e,t,n);return o===i?this:o}),e(mt,function(e,t,n){var r,i=this.fixed_value();if(!i)return this;if(0<=t.indexOf(i))r=i._eval();else{if(this._eval=S,r=i._eval(e,t,n),delete this._eval,r===i)return this;i._eval=function(){return r},t.push(i)}if(r&&"object"==typeof r){var o=this.definition().escaped;if(o&&o<n)return this}return r});var p={Array:Array,Math:Math,Number:Number,Object:Object,String:String},s={Math:["E","LN10","LN2","LOG2E","LOG10E","PI","SQRT1_2","SQRT2"],Number:["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"]};c(s),e(We,function(e,t,n){if(e.option("unsafe")){var r=this.property;if(r instanceof se&&(r=r._eval(e,t,n))===this.property)return this;var i,o=this.expression;if(q(o)){if(!(s[o.name]||te)(r))return this;i=p[o.name]}else{if(!(i=o._eval(e,t,n+1))||i===o||!ae(i,r))return this;if("function"==typeof i)switch(r){case"name":return i.node.name?i.node.name.name:"";case"length":return i.node.argnames.length;default:return this}}return i[r]}return this}),e(Ke,function(t,e,n){var r=this.expression;if(t.option("unsafe")&&r instanceof We){var i,o=r.property;if(o instanceof se&&(o=o._eval(t,e,n))===r.property)return this;var a=r.expression;if(q(a)){if(!(m[a.name]||te)(o))return this;i=p[a.name]}else if((i=a._eval(t,e,n+1))===a||!(i&&d[i.constructor.name]||te)(o))return this;for(var s=[],u=0,l=this.args.length;u<l;u++){var c=this.args[u],f=c._eval(t,e,n);if(c===f)return this;s.push(f)}try{return i[o].apply(i,s)}catch(e){t.warn("Error evaluating {code} [{file}:{line},{col}]",{code:this.print_to_string(),file:this.start.file,line:this.start.line,col:this.start.col})}}return this}),e(Ge,S)}(function(e,t){e.DEFMETHOD("_eval",t)}),function(e){function o(e){return Y(Xe,e,{operator:"!",expression:e})}function i(e,t,n){var r=o(e);if(n){var i=Y(fe,t,{body:t});return E(r,i)===i?t:r}return E(r,t)}e(se,function(){return o(this)}),e(ue,function(){throw new Error("Cannot negate a statement")}),e(Oe,function(){return o(this)}),e(Xe,function(){return"!"==this.operator?this.expression:o(this)}),e(Ye,function(e){var t=this.expressions.slice();return t.push(t.pop().negate(e)),M(this,t)}),e(nt,function(e,t){var n=this.clone();return n.consequent=n.consequent.negate(e),n.alternative=n.alternative.negate(e),i(this,n,t)}),e(tt,function(e,t){var n=this.clone(),r=this.operator;if(e.option("unsafe_comps"))switch(r){case"<=":return n.operator=">",n;case"<":return n.operator=">=",n;case">=":return n.operator="<",n;case">":return n.operator="<=",n}switch(r){case"==":return n.operator="!=",n;case"!=":return n.operator="==",n;case"===":return n.operator="!==",n;case"!==":return n.operator="===",n;case"&&":return n.operator="||",n.left=n.left.negate(e,t),n.right=n.right.negate(e),i(this,n,t);case"||":return n.operator="&&",n.left=n.left.negate(e,t),n.right=n.right.negate(e),i(this,n,t)}return o(this)})}(function(e,n){e.DEFMETHOD("negate",function(e,t){return n.call(this,e,t)})});var g=ie("Boolean decodeURI decodeURIComponent Date encodeURI encodeURIComponent Error escape EvalError isFinite isNaN Number Object parseFloat parseInt RangeError ReferenceError String SyntaxError TypeError unescape URIError");function A(e){return e&&e.aborts()}Ke.DEFMETHOD("is_expr_pure",function(e){if(e.option("unsafe")){var t=this.expression;if(q(t)&&g(t.name))return!0;if(t instanceof Qe&&q(t.expression)&&(m[t.expression.name]||te)(t.property))return!0}return this.pure||!e.pure_funcs(this)}),se.DEFMETHOD("is_call_pure",te),Qe.DEFMETHOD("is_call_pure",function(e){if(e.option("unsafe")){var t=this.expression,n=te;return t instanceof it?n=d.Array:t.is_boolean()?n=d.Boolean:t.is_number(e)?n=d.Number:t instanceof _t?n=d.RegExp:t.is_string(e)?n=d.String:this.may_throw_on_access(e)||(n=d.Object),n(this.property)}}),function(e){function t(e,t){for(var n=e.length;0<=--n;)if(e[n].has_side_effects(t))return!0;return!1}e(se,ne),e(de,te),e(vt,te),e(gt,te),e(pe,function(e){return t(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))||t(this.args,e)}),e(Ue,function(e){return this.expression.has_side_effects(e)||t(this.body,e)}),e(qe,function(e){return this.expression.has_side_effects(e)||t(this.body,e)}),e(ze,function(e){return t(this.body,e)||this.bcatch&&this.bcatch.has_side_effects(e)||this.bfinally&&this.bfinally.has_side_effects(e)}),e(Me,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(me,function(e){return this.body.has_side_effects(e)}),e(fe,function(e){return this.body.has_side_effects(e)}),e(Ce,te),e(tt,function(e){return this.left.has_side_effects(e)||this.right.has_side_effects(e)}),e(rt,ne),e(nt,function(e){return this.condition.has_side_effects(e)||this.consequent.has_side_effects(e)||this.alternative.has_side_effects(e)}),e(Je,function(e){return l(this.operator)||this.expression.has_side_effects(e)}),e(mt,function(e){return!this.is_declared(e)}),e(lt,te),e(ot,function(e){return t(this.properties,e)}),e(at,function(e){return this.value.has_side_effects(e)}),e(it,function(e){return t(this.elements,e)}),e(Qe,function(e){return this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)}),e(Ze,function(e){return this.expression.may_throw_on_access(e)||this.expression.has_side_effects(e)||this.property.has_side_effects(e)}),e(Ye,function(e){return t(this.expressions,e)}),e(Ve,function(e){return t(this.definitions,e)}),e(He,function(e){return this.value})}(function(e,t){e.DEFMETHOD("has_side_effects",t)}),function(e){function t(e,t){for(var n=e.length;0<=--n;)if(e[n].may_throw(t))return!0;return!1}e(se,ne),e(vt,te),e(de,te),e(Ce,te),e(lt,te),e(gt,te),e(it,function(e){return t(this.elements,e)}),e(rt,function(e){return!!this.right.may_throw(e)||!(!e.has_directive("use strict")&&"="==this.operator&&this.left instanceof mt)&&this.left.may_throw(e)}),e(tt,function(e){return this.left.may_throw(e)||this.right.may_throw(e)}),e(pe,function(e){return t(this.body,e)}),e(Ke,function(e){return!!t(this.args,e)||!this.is_expr_pure(e)&&(!!this.expression.may_throw(e)||(!(this.expression instanceof Ce)||t(this.expression.body,e)))}),e(qe,function(e){return this.expression.may_throw(e)||t(this.body,e)}),e(nt,function(e){return this.condition.may_throw(e)||this.consequent.may_throw(e)||this.alternative.may_throw(e)}),e(Ve,function(e){return t(this.definitions,e)}),e(Qe,function(e){return this.expression.may_throw_on_access(e)||this.expression.may_throw(e)}),e(Me,function(e){return this.condition.may_throw(e)||this.body&&this.body.may_throw(e)||this.alternative&&this.alternative.may_throw(e)}),e(me,function(e){return this.body.may_throw(e)}),e(ot,function(e){return t(this.properties,e)}),e(at,function(e){return this.value.may_throw(e)}),e(Te,function(e){return this.value&&this.value.may_throw(e)}),e(Ye,function(e){return t(this.expressions,e)}),e(fe,function(e){return this.body.may_throw(e)}),e(Ze,function(e){return this.expression.may_throw_on_access(e)||this.expression.may_throw(e)||this.property.may_throw(e)}),e(Ue,function(e){return this.expression.may_throw(e)||t(this.body,e)}),e(mt,function(e){return!this.is_declared(e)}),e(ze,function(e){return this.bcatch?this.bcatch.may_throw(e):t(this.body,e)||this.bfinally&&this.bfinally.may_throw(e)}),e(Je,function(e){return!("typeof"==this.operator&&this.expression instanceof mt)&&this.expression.may_throw(e)}),e(He,function(e){return!!this.value&&this.value.may_throw(e)})}(function(e,t){e.DEFMETHOD("may_throw",t)}),function(e){function t(e){for(var t=e.length;0<=--t;)if(!e[t].is_constant_expression())return!1;return!0}e(se,te),e(vt,ne),e(Ce,function(r){var i=this,o=!0;return i.walk(new Dt(function(e){if(!o)return!0;if(e instanceof mt){if(i.inlined)return o=!1,!0;var t=e.definition();if(ee(t,i.enclosed)&&!i.variables.has(t.name)){if(r){var n=r.find_variable(e);if(t.undeclared?!n:n===t)return o="f",!0}o=!1}return!0}})),o}),e(Je,function(){return this.expression.is_constant_expression()}),e(tt,function(){return this.left.is_constant_expression()&&this.right.is_constant_expression()}),e(it,function(){return t(this.elements)}),e(ot,function(){return t(this.properties)}),e(at,function(){return this.value.is_constant_expression()})}(function(e,t){e.DEFMETHOD("is_constant_expression",t)}),function(e){function t(){var e=this.body.length;return 0<e&&A(this.body[e-1])}e(ue,D),e(De,S),e(he,t),e(Ne,t),e(Me,function(){return this.alternative&&A(this.body)&&A(this.alternative)&&this})}(function(e,t){e.DEFMETHOD("aborts",t)}),e(ce,function(e,t){return t.has_directive(e.value)!==e?Y(de,e):e}),e(le,function(e,t){return t.option("drop_debugger")?Y(de,e):e}),e(me,function(e,t){return e.body instanceof Fe&&t.loopcontrol_target(e.body)===e.body?Y(de,e):0==e.label.references.length?e.body:e}),e(pe,function(e,t){return s(e.body,t),e}),e(he,function(e,t){switch(s(e.body,t),e.body.length){case 1:return e.body[0];case 0:return Y(de,e)}return e}),e(Ce,function(e,t){return s(e.body,t),t.option("side_effects")&&1==e.body.length&&e.body[0]===t.has_directive("use strict")&&(e.body.length=0),e}),Ae.DEFMETHOD("drop_unused",function(y){if(y.option("unused")&&!y.has_directive("use asm")){var _=this;if(!_.uses_eval&&!_.uses_with){var w=!(_ instanceof xe)||y.toplevel.funcs,E=!(_ instanceof xe)||y.toplevel.vars,A=/keep_assign/.test(y.option("unused"))?te:function(e,t){var n;if(e instanceof rt&&(e.write_only||"="==e.operator)?n=e.left:e instanceof Je&&e.write_only&&(n=e.expression),/strict/.test(y.option("pure_getters")))for(;n instanceof We&&!n.expression.may_throw_on_access(y);)n instanceof Ze&&t.unshift(n.property),n=n.expression;return n},s=[],x=Object.create(null),C=Object.create(null),u=Object.create(null),l=Object.create(null);_ instanceof xe&&y.top_retain&&_.variables.each(function(e){!y.top_retain(e)||e.id in x||(x[e.id]=!0,s.push(e))});var k=new R,r=new R,O=this,c=new Dt(function(e,t){if(e!==_){if(e instanceof Se){var n=e.name.definition();return w||O!==_||n.id in x||(x[n.id]=!0,s.push(n)),r.add(n.id,e),!0}return e instanceof ft&&O===_&&k.add(e.definition().id,e),e instanceof Ve&&O===_?(e.definitions.forEach(function(e){var t=e.name.definition();e.name instanceof ct&&k.add(t.id,e),E||t.id in x||(x[t.id]=!0,s.push(t)),e.value&&(r.add(t.id,e.value),e.value.has_side_effects(y)&&e.value.walk(c),t.chained||e.name.fixed_value()!==e.value||(C[t.id]=e))}),!0):i(e,t)}});_.walk(c),c=new Dt(i);for(var e=0;e<s.length;e++){var t=r.get(s[e].id);t&&t.forEach(function(e){e.walk(c)})}var S=new Wt(function(a,e,t){var n=S.parent();if(E){var r=[];if((f=A(a,r))instanceof mt){var i=(s=f.definition()).id in x,o=null;if(a instanceof rt?(!i||a.left===f&&s.id in C&&C[s.id]!==a)&&(o=a.right):i||(o=Y(yt,a,{value:0})),o)return r.push(o),W(n,a,M(a,r.map(function(e){return e.transform(S)})))}}if(O===_){var s;if(a instanceof Oe&&a.name&&!y.option("keep_fnames"))(s=a.name.definition()).id in x&&!(1<s.orig.length)||(a.name=null);if(a instanceof Ce&&!(a instanceof ke))for(var u=!y.option("keep_fargs"),l=a.argnames,c=l.length;0<=--c;){var f;(f=l[c]).definition().id in x?u=!1:(f.__unused=!0,u&&(l.pop(),y[f.unreferenced()?"warn":"info"]("Dropping unused function argument {name} [{file}:{line},{col}]",b(f))))}if(w&&a instanceof Se&&a!==_)if(!((s=a.name.definition()).id in x))return y[a.name.unreferenced()?"warn":"info"]("Dropping unused function {name} [{file}:{line},{col}]",b(a.name)),s.eliminated++,Y(de,a);if(a instanceof Ve&&!(n instanceof we&&n.init===a)){var p=[],h=[],d=[],m=[];switch(a.definitions.forEach(function(e){e.value&&(e.value=e.value.transform(S));var t=e.name.definition();if(!E||t.id in x){if(e.value&&t.id in C&&C[t.id]!==e&&(e.value=e.value.drop_side_effect_free(y)),e.name instanceof ct){var n=k.get(t.id);if(1<n.length&&(!e.value||t.orig.indexOf(e.name)>t.eliminated)){if(y.warn("Dropping duplicated definition of variable {name} [{file}:{line},{col}]",b(e.name)),e.value){var r=Y(mt,e.name,e.name);t.references.push(r);var i=Y(rt,e,{operator:"=",left:r,right:e.value});C[t.id]===e&&(C[t.id]=i),m.push(i.transform(S))}return T(n,e),void t.eliminated++}}e.value?(0<m.length&&(0<d.length?(m.push(e.value),e.value=M(e.value,m)):p.push(Y(fe,a,{body:M(a,m)})),m=[]),d.push(e)):h.push(e)}else if(t.orig[0]instanceof dt){(o=e.value&&e.value.drop_side_effect_free(y))&&m.push(o),e.value=null,h.push(e)}else{var o;(o=e.value&&e.value.drop_side_effect_free(y))?(y.warn("Side effects in initialization of unused variable {name} [{file}:{line},{col}]",b(e.name)),m.push(o)):y[e.name.unreferenced()?"warn":"info"]("Dropping unused variable {name} [{file}:{line},{col}]",b(e.name)),t.eliminated++}}),(0<h.length||0<d.length)&&(a.definitions=h.concat(d),p.push(a)),0<m.length&&p.push(Y(fe,a,{body:M(a,m)})),p.length){case 0:return t?re.skip:Y(de,a);case 1:return p[0];default:return t?re.splice(p):Y(he,a,{body:p})}}if(a instanceof _e)return e(a,this),a.init instanceof he&&(g=a.init,a.init=g.body.pop(),g.body.push(a)),a.init instanceof fe?a.init=a.init.body:N(a.init)&&(a.init=null),g?t?re.splice(g.body):g:a;if(a instanceof me&&a.body instanceof _e){if(e(a,this),a.body instanceof he){var g=a.body;return a.body=g.body.pop(),g.body.push(a),t?re.splice(g.body):g}return a}if(a instanceof Ae){var v=O;return e(O=a,this),O=v,a}}function b(e){return{name:e.name,file:e.start.file,line:e.start.line,col:e.start.col}}});_.transform(S)}}function f(e,t,n){e.id in x||(t&&n?(x[e.id]=!0,s.push(e)):(u[e.id]=t,l[e.id]=n))}function i(e,t){var n,r=[],i=A(e,r);if(i instanceof mt&&_.variables.get(i.name)===(n=i.definition())){if(r.forEach(function(e){e.walk(c)}),e instanceof rt)if(e.right.walk(c),e.left===i)n.chained||i.fixed_value()!==e.right||(C[n.id]=e),e.write_only||f(n,!0,l[n.id]);else{var o=i.fixed_value();o&&o.is_constant()||f(n,u[n.id],!0)}return!0}if(e instanceof mt)return(n=e.definition()).id in x||(x[n.id]=!0,s.push(n)),!0;if(e instanceof Ae){var a=O;return O=e,t(),O=a,!0}}}),Ae.DEFMETHOD("hoist_declarations",function(i){var o=this;if(i.has_directive("use asm"))return o;var a=i.option("hoist_funs"),s=i.option("hoist_vars");if(a||s){var u=[],l=[],c=new R,f=0,t=0;o.walk(new Dt(function(e){return e instanceof Ae&&e!==o||(e instanceof $e?(++t,!0):void 0)})),s=s&&1<t;var p=new Wt(function(e){if(e!==o){if(e instanceof ce)return u.push(e),Y(de,e);if(a&&e instanceof Se&&(p.parent()===o||!i.has_directive("use strict")))return l.push(e),Y(de,e);if(s&&e instanceof $e){e.definitions.forEach(function(e){c.set(e.name.name,e),++f});var t=e.to_assignments(i),n=p.parent();if(n instanceof we&&n.init===e){if(null==t){var r=e.definitions[0].name;return Y(mt,r,r)}return t}return n instanceof _e&&n.init===e?t:t?Y(fe,e,{body:t}):Y(de,e)}if(e instanceof Ae)return e}});if(o=o.transform(p),0<f){var n=[];if(c.each(function(t,e){o instanceof Ce&&H(function(e){return e.name==t.name.name},o.argnames)?c.del(e):((t=t.clone()).value=null,n.push(t),c.set(e,t))}),0<n.length){for(var e=0;e<o.body.length;){if(o.body[e]instanceof fe){var r,h,d=o.body[e].body;if(d instanceof rt&&"="==d.operator&&(r=d.left)instanceof ut&&c.has(r.name)){if((m=c.get(r.name)).value)break;m.value=d.right,T(n,m),n.push(m),o.body.splice(e,1);continue}if(d instanceof Ye&&(h=d.expressions[0])instanceof rt&&"="==h.operator&&(r=h.left)instanceof ut&&c.has(r.name)){var m;if((m=c.get(r.name)).value)break;m.value=h.right,T(n,m),n.push(m),o.body[e].body=M(d,d.expressions.slice(1));continue}}if(o.body[e]instanceof de)o.body.splice(e,1);else{if(!(o.body[e]instanceof he))break;var g=[e,1].concat(o.body[e].body);o.body.splice.apply(o.body,g)}}n=Y($e,o,{definitions:n}),l.push(n)}}o.body=u.concat(l,o.body)}return o}),Ae.DEFMETHOD("var_names",function(){var n=this._var_names;return n||(this._var_names=n=Object.create(null),this.enclosed.forEach(function(e){n[e.name]=!0}),this.variables.each(function(e,t){n[t]=!0})),n}),Ae.DEFMETHOD("make_var_name",function(e){for(var t=this.var_names(),n=e=e.replace(/(?:^[^a-z_$]|[^a-z0-9_$])/gi,"_"),r=0;t[n];r++)n=e+"$"+r;return t[n]=!0,n}),Ae.DEFMETHOD("hoist_properties",function(e){var u=this;if(!e.option("hoist_props")||e.has_directive("use asm"))return u;var r=u instanceof xe&&e.top_retain||te,l=Object.create(null);return u.transform(new Wt(function(i,e){var t;if(i instanceof He&&((s=i.name).scope===u&&1!=(n=s.definition()).escaped&&!n.single_use&&!n.direct_access&&!r(n)&&(t=s.fixed_value())===i.value&&t instanceof ot)){e(i,this);var o=new R,a=[];return t.properties.forEach(function(e){var t,n,r;a.push(Y(He,i,{name:(t=e.key,n=Y(s.CTOR,s,{name:u.make_var_name(s.name+"_"+t),scope:u}),r=u.def_variable(n),o.set(t,r),u.enclosed.push(r),n),value:e.value}))}),l[n.id]=o,re.splice(a)}if(i instanceof We&&i.expression instanceof mt&&(o=l[i.expression.definition().id])){var s,n=o.get(p(i.property));return(s=Y(mt,i,{name:n.name,scope:i.expression.scope,thedef:n})).reference({}),s}}))}),function(e){function a(e,t,n){var r=e.length;if(!r)return null;for(var i=[],o=!1,a=0;a<r;a++){var s=e[a].drop_side_effect_free(t,n);o|=s!==e[a],s&&(i.push(s),n=!1)}return o?i.length?i:null:e}e(se,S),e(vt,D),e(gt,D),e(Ke,function(t,e){if(!this.is_expr_pure(t)){if(this.expression.is_call_pure(t)){var n=this.args.slice();return n.unshift(this.expression.expression),(n=a(n,t,e))&&M(this,n)}if(this.expression instanceof Oe&&(!this.expression.name||!this.expression.name.definition().references.length)){var r=this.clone(),i=r.expression;return i.process_expression(!1,t),i.walk(new Dt(function(e){return e instanceof Te&&e.value?(e.value=e.value.drop_side_effect_free(t),!0):e instanceof Ae&&e!==i||void 0})),r}return this}this.pure&&t.warn("Dropping __PURE__ call [{file}:{line},{col}]",this.start);var o=a(this.args,t,e);return o&&M(this,o)}),e(ke,D),e(Oe,D),e(tt,function(e,t){var n=this.right.drop_side_effect_free(e);if(!n)return this.left.drop_side_effect_free(e,t);if(J(this.operator)){if(n===this.right)return this;var r=this.clone();return r.right=n,r}var i=this.left.drop_side_effect_free(e,t);return i?M(this,[i,n]):this.right.drop_side_effect_free(e,t)}),e(rt,function(e){var t=this.left;return t.has_side_effects(e)||e.has_directive("use strict")&&t instanceof We&&t.expression.is_constant()?this:(this.write_only=!0,Q(t).is_constant_expression(e.find_parent(Ae))?this.right.drop_side_effect_free(e):this)}),e(nt,function(e){var t=this.consequent.drop_side_effect_free(e),n=this.alternative.drop_side_effect_free(e);if(t===this.consequent&&n===this.alternative)return this;if(!t)return n?Y(tt,this,{operator:"||",left:this.condition,right:n}):this.condition.drop_side_effect_free(e);if(!n)return Y(tt,this,{operator:"&&",left:this.condition,right:t});var r=this.clone();return r.consequent=t,r.alternative=n,r}),e(Je,function(e,t){if(l(this.operator))return this.write_only=!this.expression.has_side_effects(e),this;if("typeof"==this.operator&&this.expression instanceof mt)return null;var n=this.expression.drop_side_effect_free(e,t);return t&&n&&P(n)?n===this.expression&&"!"==this.operator?this:n.negate(e,t):n}),e(mt,function(e){return this.is_declared(e)?null:this}),e(ot,function(e,t){var n=a(this.properties,e,t);return n&&M(this,n)}),e(at,function(e,t){return this.value.drop_side_effect_free(e,t)}),e(it,function(e,t){var n=a(this.elements,e,t);return n&&M(this,n)}),e(Qe,function(e,t){return this.expression.may_throw_on_access(e)?this:this.expression.drop_side_effect_free(e,t)}),e(Ze,function(e,t){if(this.expression.may_throw_on_access(e))return this;var n=this.expression.drop_side_effect_free(e,t);if(!n)return this.property.drop_side_effect_free(e,t);var r=this.property.drop_side_effect_free(e);return r?M(this,[n,r]):n}),e(Ye,function(e){var t=this.tail_node(),n=t.drop_side_effect_free(e);if(n===t)return this;var r=this.expressions.slice(0,-1);return n&&r.push(n),M(this,r)})}(function(e,t){e.DEFMETHOD("drop_side_effect_free",t)}),e(fe,function(e,t){if(t.option("side_effects")){var n=e.body,r=n.drop_side_effect_free(t,!0);if(!r)return t.warn("Dropping side-effect-free statement [{file}:{line},{col}]",e.start),Y(de,e);if(r!==n)return Y(fe,e,{body:r})}return e}),e(ye,function(e,t){return t.option("loops")?Y(_e,e,e).optimize(t):e}),e(be,function(t,e){if(!e.option("loops"))return t;var n=t.condition.tail_node().evaluate(e);if(!(n instanceof se)){if(n)return Y(_e,t,{body:Y(he,t.body,{body:[t.body,Y(fe,t.condition,{body:t.condition})]})}).optimize(e);var r=!1,i=new Dt(function(e){return!!(e instanceof Ae||r)||(e instanceof Re&&i.loopcontrol_target(e)===t?r=!0:void 0)}),o=e.parent();if((o instanceof me?o:t).walk(i),!r)return Y(he,t.body,{body:[t.body,Y(fe,t.condition,{body:t.condition})]}).optimize(e)}return t.body instanceof fe?Y(_e,t,{condition:M(t.condition,[t.body.body,t.condition]),body:Y(de,t)}).optimize(e):t}),e(_e,function(e,t){if(!t.option("loops"))return e;if(t.option("side_effects")&&e.init&&(e.init=e.init.drop_side_effect_free(t)),e.condition){var n=e.condition.evaluate(t);if(!(n instanceof se))if(n)e.condition=null;else if(!t.option("dead_code")){var r=e.condition;e.condition=U(n,e.condition),e.condition=E(e.condition.transform(t),r)}if(t.option("dead_code")&&(n instanceof se&&(n=e.condition.tail_node().evaluate(t)),!n)){var i=[];return w(t,e.body,i),e.init instanceof ue?i.push(e.init):e.init&&i.push(Y(fe,e.init,{body:e.init})),i.push(Y(fe,e.condition,{body:e.condition})),Y(he,e,{body:i}).optimize(t)}}return function t(n,r){var e=n.body instanceof he?n.body.body[0]:n.body;if(r.option("dead_code")&&o(e)){var i=[];return n.init instanceof ue?i.push(n.init):n.init&&i.push(Y(fe,n.init,{body:n.init})),n.condition&&i.push(Y(fe,n.condition,{body:n.condition})),w(r,n.body,i),Y(he,n,{body:i})}return e instanceof Me&&(o(e.body)?(n.condition?n.condition=Y(tt,n.condition,{left:n.condition,operator:"&&",right:e.condition.negate(r)}):n.condition=e.condition.negate(r),a(e.alternative)):o(e.alternative)&&(n.condition?n.condition=Y(tt,n.condition,{left:n.condition,operator:"&&",right:e.condition}):n.condition=e.condition,a(e.body))),n;function o(e){return e instanceof Fe&&r.loopcontrol_target(e)===r.self()}function a(e){e=y(e),n.body instanceof he?(n.body=n.body.clone(),n.body.body=e.concat(n.body.body.slice(1)),n.body=n.body.transform(r)):n.body=Y(he,n.body,{body:e}).transform(r),n=t(n,r)}}(e,t)}),e(Me,function(e,t){if(N(e.alternative)&&(e.alternative=null),!t.option("conditionals"))return e;var n=e.condition.evaluate(t);if(!(t.option("dead_code")||n instanceof se)){var r=e.condition;e.condition=U(n,r),e.condition=E(e.condition.transform(t),r)}if(t.option("dead_code")){if(n instanceof se&&(n=e.condition.tail_node().evaluate(t)),!n){t.warn("Condition always false [{file}:{line},{col}]",e.condition.start);var i=[];return w(t,e.body,i),i.push(Y(fe,e.condition,{body:e.condition})),e.alternative&&i.push(e.alternative),Y(he,e,{body:i}).optimize(t)}if(!(n instanceof se)){t.warn("Condition always true [{file}:{line},{col}]",e.condition.start);i=[];return e.alternative&&w(t,e.alternative,i),i.push(Y(fe,e.condition,{body:e.condition})),i.push(e.body),Y(he,e,{body:i}).optimize(t)}}var o=e.condition.negate(t),a=e.condition.print_to_string().length,s=o.print_to_string().length,u=s<a;if(e.alternative&&u){u=!1,e.condition=o;var l=e.body;e.body=e.alternative||Y(de,e),e.alternative=l}if(N(e.body)&&N(e.alternative))return Y(fe,e.condition,{body:e.condition.clone()}).optimize(t);if(e.body instanceof fe&&e.alternative instanceof fe)return Y(fe,e,{body:Y(nt,e,{condition:e.condition,consequent:e.body.body,alternative:e.alternative.body})}).optimize(t);if(N(e.alternative)&&e.body instanceof fe)return a===s&&!u&&e.condition instanceof tt&&"||"==e.condition.operator&&(u=!0),u?Y(fe,e,{body:Y(tt,e,{operator:"||",left:o,right:e.body.body})}).optimize(t):Y(fe,e,{body:Y(tt,e,{operator:"&&",left:e.condition,right:e.body.body})}).optimize(t);if(e.body instanceof de&&e.alternative instanceof fe)return Y(fe,e,{body:Y(tt,e,{operator:"||",left:e.condition,right:e.alternative.body})}).optimize(t);if(e.body instanceof Be&&e.alternative instanceof Be&&e.body.TYPE==e.alternative.TYPE)return Y(e.body.CTOR,e,{value:Y(nt,e,{condition:e.condition,consequent:e.body.value||Y(At,e.body),alternative:e.alternative.value||Y(At,e.alternative)}).transform(t)}).optimize(t);if(e.body instanceof Me&&!e.body.alternative&&!e.alternative&&(e=Y(Me,e,{condition:Y(tt,e.condition,{operator:"&&",left:e.condition,right:e.body.condition}),body:e.body.body,alternative:null})),A(e.body)&&e.alternative){var c=e.alternative;return e.alternative=null,Y(he,e,{body:[e,c]}).optimize(t)}if(A(e.alternative)){i=e.body;return e.body=e.alternative,e.condition=u?o:e.condition.negate(t),e.alternative=null,Y(he,e,{body:[e,i]}).optimize(t)}return e}),e(Ue,function(t,n){if(!n.option("switches"))return t;var e,r=t.expression.evaluate(n);if(!(r instanceof se)){var i=t.expression;t.expression=U(r,i),t.expression=E(t.expression.transform(n),i)}if(!n.option("dead_code"))return t;r instanceof se&&(r=t.expression.tail_node().evaluate(n));for(var o,a,s=[],u=[],l=0,c=t.body.length;l<c&&!a;l++){if((e=t.body[l])instanceof Pe)o?b(e,u[u.length-1]):o=e;else if(!(r instanceof se)){if(!((g=e.expression.evaluate(n))instanceof se)&&g!==r){b(e,u[u.length-1]);continue}if(g instanceof se&&(g=e.expression.tail_node().evaluate(n)),g===r&&(a=e,o)){var f=u.indexOf(o);u.splice(f,1),b(o,u[f-1]),o=null}}if(A(e)){var p=u[u.length-1];A(p)&&p.body.length==e.body.length&&Y(he,p,p).equivalent_to(Y(he,e,e))&&(p.body=[])}u.push(e)}for(;l<c;)b(t.body[l++],u[u.length-1]);for(0<u.length&&(u[0].body=s.concat(u[0].body)),t.body=u;e=u[u.length-1];){var h=e.body[e.body.length-1];if(h instanceof Fe&&n.loopcontrol_target(h)===t&&e.body.pop(),e.body.length||e instanceof qe&&(o||e.expression.has_side_effects(n)))break;u.pop()===o&&(o=null)}if(0==u.length)return Y(he,t,{body:s.concat(Y(fe,t.expression,{body:t.expression}))}).optimize(n);if(1==u.length&&(u[0]===a||u[0]===o)){var d=!1,m=new Dt(function(e){if(d||e instanceof Ce||e instanceof fe)return!0;e instanceof Fe&&m.loopcontrol_target(e)===t&&(d=!0)});if(t.walk(m),!d){var g,v=u[0].body.slice();return(g=u[0].expression)&&v.unshift(Y(fe,g,{body:g})),v.unshift(Y(fe,t.expression,{body:t.expression})),Y(he,t,{body:v}).optimize(n)}}return t;function b(e,t){t&&!A(t)?t.body=t.body.concat(e.body):w(n,e,s)}}),e(ze,function(e,t){if(s(e.body,t),e.bcatch&&e.bfinally&&oe(e.bfinally.body,N)&&(e.bfinally=null),t.option("dead_code")&&oe(e.body,N)){var n=[];return e.bcatch&&(w(t,e.bcatch,n),n.forEach(function(e){e instanceof Ve&&e.definitions.forEach(function(e){var t=e.name.definition().redefined();t&&(e.name=e.name.clone(),e.name.thedef=t)})})),e.bfinally&&(n=n.concat(e.bfinally.body)),Y(he,e,{body:n}).optimize(t)}return e}),Ve.DEFMETHOD("remove_initializers",function(){this.definitions.forEach(function(e){e.value=null})}),Ve.DEFMETHOD("to_assignments",function(e){var r=e.option("reduce_vars"),t=this.definitions.reduce(function(e,t){if(t.value){var n=Y(mt,t.name,t.name);e.push(Y(rt,t,{operator:"=",left:n,right:t.value})),r&&(n.definition().fixed=!1)}return(t=t.name.definition()).eliminated++,t.replaced--,e},[]);return 0==t.length?null:M(this,t)}),e(Ve,function(e,t){return 0==e.definitions.length?Y(de,e):e}),e(Ke,function(s,i){var e=s.expression,p=e;i.option("reduce_vars")&&p instanceof mt&&(p=p.fixed_value());var t=p instanceof Ce;if(i.option("unused")&&t&&!p.uses_arguments&&!p.uses_eval){for(var n=0,r=0,o=0,a=s.args.length;o<a;o++){var u=o>=p.argnames.length;if(u||p.argnames[o].__unused){if(h=s.args[o].drop_side_effect_free(i))s.args[n++]=h;else if(!u){s.args[n++]=Y(yt,s.args[o],{value:0});continue}}else s.args[n++]=s.args[o];r=n}s.args.length=r}if(i.option("unsafe"))if(q(e))switch(e.name){case"Array":if(1!=s.args.length)return Y(it,s,{elements:s.args}).optimize(i);break;case"Object":if(0==s.args.length)return Y(ot,s,{properties:[]});break;case"String":if(0==s.args.length)return Y(bt,s,{value:""});if(s.args.length<=1)return Y(tt,s,{left:s.args[0],operator:"+",right:Y(bt,s,{value:""})}).optimize(i);break;case"Number":if(0==s.args.length)return Y(yt,s,{value:0});if(1==s.args.length)return Y(Xe,s,{expression:s.args[0],operator:"+"}).optimize(i);case"Boolean":if(0==s.args.length)return Y(Ot,s);if(1==s.args.length)return Y(Xe,s,{expression:Y(Xe,s,{expression:s.args[0],operator:"!"}),operator:"!"}).optimize(i);break;case"RegExp":var l=[];if(oe(s.args,function(e){var t=e.evaluate(i);return l.unshift(t),e!==t}))try{return I(i,s,Y(_t,s,{value:RegExp.apply(RegExp,l)}))}catch(e){i.warn("Error converting {expr} [{file}:{line},{col}]",{expr:s.print_to_string(),file:s.start.file,line:s.start.line,col:s.start.col})}}else if(e instanceof Qe)switch(e.property){case"toString":if(0==s.args.length&&!e.expression.may_throw_on_access(i))return Y(tt,s,{left:Y(bt,s,{value:""}),operator:"+",right:e.expression}).optimize(i);break;case"join":var c;if(e.expression instanceof it)if(!(0<s.args.length&&(c=s.args[0].evaluate(i))===s.args[0])){var f,h,d=[],m=[];return e.expression.elements.forEach(function(e){var t=e.evaluate(i);t!==e?m.push(t):(0<m.length&&(d.push(Y(bt,s,{value:m.join(c)})),m.length=0),d.push(e))}),0<m.length&&d.push(Y(bt,s,{value:m.join(c)})),0==d.length?Y(bt,s,{value:""}):1==d.length?d[0].is_string(i)?d[0]:Y(tt,d[0],{operator:"+",left:Y(bt,s,{value:""}),right:d[0]}):""==c?(f=d[0].is_string(i)||d[1].is_string(i)?d.shift():Y(bt,s,{value:""}),d.reduce(function(e,t){return Y(tt,t,{operator:"+",left:e,right:t})},f).optimize(i)):((h=s.clone()).expression=h.expression.clone(),h.expression.expression=h.expression.expression.clone(),h.expression.expression.elements=d,I(i,s,h))}break;case"charAt":if(e.expression.is_string(i)){var g=s.args[0],v=g?g.evaluate(i):0;if(v!==g)return Y(Ze,e,{expression:e.expression,property:U(0|v,g||e)}).optimize(i)}break;case"apply":if(2==s.args.length&&s.args[1]instanceof it)return(C=s.args[1].elements.slice()).unshift(s.args[0]),Y(Ke,s,{expression:Y(Qe,e,{expression:e.expression,property:"call"}),args:C}).optimize(i);break;case"call":var b=e.expression;if(b instanceof mt&&(b=b.fixed_value()),b instanceof Ce&&!b.contains_this())return M(this,[s.args[0],Y(Ke,s,{expression:e.expression,args:s.args.slice(1)})]).optimize(i)}if(i.option("unsafe_Function")&&q(e)&&"Function"==e.name){if(0==s.args.length)return Y(Oe,s,{argnames:[],body:[]});if(oe(s.args,function(e){return e instanceof bt}))try{var y=Yt(A="n(function("+s.args.slice(0,-1).map(function(e){return e.value}).join(",")+"){"+s.args[s.args.length-1].value+"})"),_={ie8:i.option("ie8")};y.figure_out_scope(_);var w,E=new Xt(i.options);(y=y.transform(E)).figure_out_scope(_),y.compute_char_frequency(_),y.mangle_names(_),y.walk(new Dt(function(e){return!!w||(e instanceof Ce?(w=e,!0):void 0)}));var A=Jt();return he.prototype._codegen.call(w,w,A),s.args=[Y(bt,s,{value:w.argnames.map(function(e){return e.print_to_string()}).join(",")}),Y(bt,s.args[s.args.length-1],{value:A.get().replace(/^\{|\}$/g,"")})],s}catch(e){if(!(e instanceof Pt))throw e;i.warn("Error parsing code passed to new Function [{file}:{line},{col}]",s.args[s.args.length-1].start),i.warn(e.toString())}}var x=t&&p.body[0];if(i.option("inline")&&x instanceof Te&&(!(O=x.value)||O.is_constant_expression())){var C=s.args.concat(O||Y(At,s));return M(s,C).optimize(i)}if(t){var k,O,S,D,B=-1;if(i.option("inline")&&!p.uses_arguments&&!p.uses_eval&&!(p.name&&p instanceof Oe)&&(O=function(e){var t=p.body.length;if(i.option("inline")<3)return 1==t&&F(e);e=null;for(var n=0;n<t;n++){var r=p.body[n];if(r instanceof $e){if(e&&!oe(r.definitions,function(e){return!e.value}))return!1}else{if(r instanceof de)continue;if(e)return!1;e=r}}return F(e)}(x))&&(e===p||i.option("unused")&&1==(k=e.definition()).references.length&&!j(i,k)&&p.is_constant_expression(e.scope))&&!s.pure&&!p.contains_this()&&function(){var e=Object.create(null);do{if((S=i.parent(++B))instanceof Ie)e[S.argname.name]=!0;else if(S instanceof ge)D=[];else if(S instanceof mt&&S.fixed_value()instanceof Ae)return!1}while(!(S instanceof Ae));var t=!(S instanceof xe)||i.toplevel.vars,n=i.option("inline");return!(!function(e,t){for(var n=p.body.length,r=0;r<n;r++){var i=p.body[r];if(i instanceof $e){if(!t)return!1;for(var o=i.definitions.length;0<=--o;){var a=i.definitions[o].name;if(e[a.name]||z(a.name)||S.var_names()[a.name])return!1;D&&D.push(a.definition())}}}return!0}(e,3<=n&&t)||!function(e,t){for(var n=0,r=p.argnames.length;n<r;n++){var i=p.argnames[n];if(!i.__unused){if(!t||e[i.name]||z(i.name)||S.var_names()[i.name])return!1;D&&D.push(i.definition())}}return!0}(e,2<=n&&t)||D&&0!=D.length&&V(p,D))}())return p._squeezed=!0,M(s,function(){var e=[],t=[];(function(e,t){for(var n=p.argnames.length,r=s.args.length;--r>=n;)t.push(s.args[r]);for(r=n;0<=--r;){var i=p.argnames[r],o=s.args[r];if(i.__unused||S.var_names()[i.name])o&&t.push(o);else{var a=Y(ct,i,i);i.definition().orig.push(a),!o&&D&&(o=Y(At,s)),L(e,t,a,o)}}e.reverse(),t.reverse()})(e,t),function(e,t){for(var n=t.length,r=0,i=p.body.length;r<i;r++){var o=p.body[r];if(o instanceof $e)for(var a=0,s=o.definitions.length;a<s;a++){var u=o.definitions[a],l=u.name;if(L(e,t,l,u.value),D){var c=l.definition(),f=Y(mt,l,l);c.references.push(f),t.splice(n++,0,Y(rt,u,{operator:"=",left:f,right:Y(At,l)}))}}}}(e,t),t.push(O),e.length&&(o=S.body.indexOf(i.parent(B-1))+1,S.body.splice(o,0,Y($e,p,{definitions:e})));return t}()).optimize(i);if(i.option("side_effects")&&oe(p.body,N)){C=s.args.concat(Y(At,s));return M(s,C).optimize(i)}}if(i.option("drop_console")&&e instanceof We){for(var T=e.expression;T.expression;)T=T.expression;if(q(T)&&"console"==T.name)return Y(At,s).optimize(i)}if(i.option("negate_iife")&&i.parent()instanceof fe&&P(s))return s.negate(i,!0);var R=s.evaluate(i);return R!==s?(R=U(R,s).optimize(i),I(i,R,s)):s;function F(e){return e?e instanceof Te?e.value?e.value.clone(!0):Y(At,s):e instanceof fe?Y(Xe,e,{operator:"void",expression:e.body.clone(!0)}):void 0:Y(At,s)}function L(e,t,n,r){var i=n.definition();S.variables.set(n.name,i),S.enclosed.push(i),S.var_names()[n.name]||(S.var_names()[n.name]=!0,e.push(Y(He,n,{name:n,value:null})));var o=Y(mt,n,n);i.references.push(o),r&&t.push(Y(rt,s,{operator:"=",left:o,right:r}))}}),e(Ge,function(e,t){if(t.option("unsafe")){var n=e.expression;if(q(n))switch(n.name){case"Object":case"RegExp":case"Function":case"Error":case"Array":return Y(Ke,e,e).transform(t)}}return e}),e(Ye,function(e,n){if(!n.option("side_effects"))return e;var r,i,o=[];r=F(n),i=e.expressions.length-1,e.expressions.forEach(function(e,t){t<i&&(e=e.drop_side_effect_free(n,r)),e&&(f(o,e),r=!1)});var t=o.length-1;return function(){for(;0<t&&v(o[t],n);)t--;t<o.length-1&&(o[t]=Y(Xe,e,{operator:"void",expression:o[t]}),o.length=t+1)}(),0==t?(e=W(n.parent(),n.self(),o[0]))instanceof Ye||(e=e.optimize(n)):e.expressions=o,e}),Je.DEFMETHOD("lift_sequences",function(e){if(e.option("sequences")&&this.expression instanceof Ye){var t=this.expression.expressions.slice(),n=this.clone();return n.expression=t.pop(),t.push(n),M(this,t).optimize(e)}return this}),e(et,function(e,t){return e.lift_sequences(t)}),e(Xe,function(e,t){var n=e.expression;if("delete"==e.operator&&!(n instanceof mt||n instanceof We||Z(n)))return n instanceof Ye?((n=n.expressions.slice()).push(Y(St,e)),M(e,n).optimize(t)):M(e,[n,Y(St,e)]).optimize(t);var r=e.lift_sequences(t);if(r!==e)return r;if(t.option("side_effects")&&"void"==e.operator)return(n=n.drop_side_effect_free(t))?(e.expression=n,e):Y(At,e).optimize(t);if(t.in_boolean_context())switch(e.operator){case"!":if(n instanceof Xe&&"!"==n.operator)return n.expression;n instanceof tt&&(e=I(t,e,n.negate(t,F(t))));break;case"typeof":return t.warn("Boolean expression always true [{file}:{line},{col}]",e.start),(n instanceof mt?Y(St,e):M(e,[n,Y(St,e)])).optimize(t)}if("-"==e.operator&&n instanceof Ct&&(n=n.transform(t)),n instanceof tt&&("+"==e.operator||"-"==e.operator)&&("*"==n.operator||"/"==n.operator||"%"==n.operator))return Y(tt,e,{operator:n.operator,left:Y(Xe,n.left,{operator:e.operator,expression:n.left}),right:n.right});if("-"!=e.operator||!(n instanceof yt||n instanceof Ct)){var i=e.evaluate(t);if(i!==e)return I(t,i=U(i,e).optimize(t),e)}return e}),tt.DEFMETHOD("lift_sequences",function(e){if(e.option("sequences")){if(this.left instanceof Ye){var t=this.left.expressions.slice();return(n=this.clone()).left=t.pop(),t.push(n),M(this,t).optimize(e)}if(this.right instanceof Ye&&!this.left.has_side_effects(e)){for(var n,r="="==this.operator&&this.left instanceof mt,i=(t=this.right.expressions).length-1,o=0;o<i&&(r||!t[o].has_side_effects(e));o++);if(o==i)return t=t.slice(),(n=this.clone()).right=t.pop(),t.push(n),M(this,t).optimize(e);if(0<o)return(n=this.clone()).right=M(this.right,t.slice(o)),(t=t.slice(0,o)).push(n),M(this,t).optimize(e)}}return this});var b=ie("== === != !== * & | ^");function j(e,t){for(var n,r=0;n=e.parent(r);r++)if(n instanceof Ce){var i=n.name;if(i&&i.definition()===t)break}return n}function x(e,t){return e instanceof mt||e.TYPE===t.TYPE}function V(n,t){var r=!1,i=new Dt(function(e){return!!r||(e instanceof mt&&ee(e.definition(),t)?r=!0:void 0)}),o=new Dt(function(e){if(r)return!0;if(e instanceof Ae&&e!==n){var t=o.parent();if(t instanceof Ke&&t.expression===e)return;return e.walk(i),!0}});return n.walk(o),r}e(tt,function(n,e){function r(){return n.left.is_constant()||n.right.is_constant()||!n.left.has_side_effects(e)&&!n.right.has_side_effects(e)}function t(e){if(r()){e&&(n.operator=e);var t=n.left;n.left=n.right,n.right=t}}if(b(n.operator)&&n.right.is_constant()&&!n.left.is_constant()&&(n.left instanceof tt&&Kt[n.left.operator]>=Kt[n.operator]||t()),n=n.lift_sequences(e),e.option("comparisons"))switch(n.operator){case"===":case"!==":var i=!0;(n.left.is_string(e)&&n.right.is_string(e)||n.left.is_number(e)&&n.right.is_number(e)||n.left.is_boolean()&&n.right.is_boolean()||n.left.equivalent_to(n.right))&&(n.operator=n.operator.substr(0,2));case"==":case"!=":if(!i&&v(n.left,e))n.left=Y(wt,n.left);else if(e.option("typeofs")&&n.left instanceof bt&&"undefined"==n.left.value&&n.right instanceof Xe&&"typeof"==n.right.operator){var o=n.right.expression;(o instanceof mt?!o.is_declared(e):o instanceof We&&e.option("ie8"))||(n.right=o,n.left=Y(At,n.left).optimize(e),2==n.operator.length&&(n.operator+="="))}else if(n.left instanceof mt&&n.right instanceof mt&&n.left.definition()===n.right.definition()&&((u=n.left.fixed_value())instanceof it||u instanceof Ce||u instanceof ot))return Y("="==n.operator[0]?St:Ot,n);break;case"&&":case"||":var a=n.left;if(a.operator==n.operator&&(a=a.right),a instanceof tt&&a.operator==("&&"==n.operator?"!==":"===")&&n.right instanceof tt&&a.operator==n.right.operator&&(v(a.left,e)&&n.right.left instanceof wt||a.left instanceof wt&&v(n.right.left,e))&&!a.right.has_side_effects(e)&&a.right.equivalent_to(n.right.right)){var s=Y(tt,n,{operator:a.operator.slice(0,-1),left:Y(wt,n),right:a.right});return a!==n.left&&(s=Y(tt,n,{operator:n.operator,left:n.left.left,right:s})),s}}var u;if("+"==n.operator&&e.in_boolean_context()){var l=n.left.evaluate(e),c=n.right.evaluate(e);if(l&&"string"==typeof l)return e.warn("+ in boolean context always true [{file}:{line},{col}]",n.start),M(n,[n.right,Y(St,n)]).optimize(e);if(c&&"string"==typeof c)return e.warn("+ in boolean context always true [{file}:{line},{col}]",n.start),M(n,[n.left,Y(St,n)]).optimize(e)}if(e.option("comparisons")&&n.is_boolean()){if(!(e.parent()instanceof tt)||e.parent()instanceof rt){var f=Y(Xe,n,{operator:"!",expression:n.negate(e,F(e))});n=I(e,n,f)}switch(n.operator){case">":t("<");break;case">=":t("<=")}}if("+"==n.operator){if(n.right instanceof bt&&""==n.right.getValue()&&n.left.is_string(e))return n.left;if(n.left instanceof bt&&""==n.left.getValue()&&n.right.is_string(e))return n.right;if(n.left instanceof tt&&"+"==n.left.operator&&n.left.left instanceof bt&&""==n.left.left.getValue()&&n.right.is_string(e))return n.left=n.left.right,n.transform(e)}if(e.option("evaluate")){switch(n.operator){case"&&":if(!(l=!!n.left.truthy||!n.left.falsy&&n.left.evaluate(e)))return e.warn("Condition left of && always false [{file}:{line},{col}]",n.start),W(e.parent(),e.self(),n.left).optimize(e);if(!(l instanceof se))return e.warn("Condition left of && always true [{file}:{line},{col}]",n.start),M(n,[n.left,n.right]).optimize(e);if(c=n.right.evaluate(e)){if(!(c instanceof se)){if("&&"==(p=e.parent()).operator&&p.left===e.self()||e.in_boolean_context())return e.warn("Dropping side-effect-free && [{file}:{line},{col}]",n.start),n.left.optimize(e)}}else{if(e.in_boolean_context())return e.warn("Boolean && always false [{file}:{line},{col}]",n.start),M(n,[n.left,Y(Ot,n)]).optimize(e);n.falsy=!0}if("||"==n.left.operator)if(!(h=n.left.right.evaluate(e)))return Y(nt,n,{condition:n.left.left,consequent:n.right,alternative:n.left.right}).optimize(e);break;case"||":var p,h;if(!(l=!!n.left.truthy||!n.left.falsy&&n.left.evaluate(e)))return e.warn("Condition left of || always false [{file}:{line},{col}]",n.start),M(n,[n.left,n.right]).optimize(e);if(!(l instanceof se))return e.warn("Condition left of || always true [{file}:{line},{col}]",n.start),W(e.parent(),e.self(),n.left).optimize(e);if(c=n.right.evaluate(e)){if(!(c instanceof se)){if(e.in_boolean_context())return e.warn("Boolean || always true [{file}:{line},{col}]",n.start),M(n,[n.left,Y(St,n)]).optimize(e);n.truthy=!0}}else if("||"==(p=e.parent()).operator&&p.left===e.self()||e.in_boolean_context())return e.warn("Dropping side-effect-free || [{file}:{line},{col}]",n.start),n.left.optimize(e);if("&&"==n.left.operator)if((h=n.left.right.evaluate(e))&&!(h instanceof se))return Y(nt,n,{condition:n.left.left,consequent:n.left.right,alternative:n.right}).optimize(e)}var d=!0;switch(n.operator){case"+":if(n.left instanceof vt&&n.right instanceof tt&&"+"==n.right.operator&&n.right.left instanceof vt&&n.right.is_string(e)&&(n=Y(tt,n,{operator:"+",left:Y(bt,n.left,{value:""+n.left.getValue()+n.right.left.getValue(),start:n.left.start,end:n.right.left.end}),right:n.right.right})),n.right instanceof vt&&n.left instanceof tt&&"+"==n.left.operator&&n.left.right instanceof vt&&n.left.is_string(e)&&(n=Y(tt,n,{operator:"+",left:n.left.left,right:Y(bt,n.right,{value:""+n.left.right.getValue()+n.right.getValue(),start:n.left.right.start,end:n.right.end})})),n.left instanceof tt&&"+"==n.left.operator&&n.left.is_string(e)&&n.left.right instanceof vt&&n.right instanceof tt&&"+"==n.right.operator&&n.right.left instanceof vt&&n.right.is_string(e)&&(n=Y(tt,n,{operator:"+",left:Y(tt,n.left,{operator:"+",left:n.left.left,right:Y(bt,n.left.right,{value:""+n.left.right.getValue()+n.right.left.getValue(),start:n.left.right.start,end:n.right.left.end})}),right:n.right.right})),n.right instanceof Xe&&"-"==n.right.operator&&n.left.is_number(e)){n=Y(tt,n,{operator:"-",left:n.left,right:n.right.expression});break}if(n.left instanceof Xe&&"-"==n.left.operator&&r()&&n.right.is_number(e)){n=Y(tt,n,{operator:"-",left:n.right,right:n.left.expression});break}case"*":d=e.option("unsafe_math");case"&":case"|":case"^":if(n.left.is_number(e)&&n.right.is_number(e)&&r()&&!(n.left instanceof tt&&n.left.operator!=n.operator&&Kt[n.left.operator]>=Kt[n.operator])){var m=Y(tt,n,{operator:n.operator,left:n.right,right:n.left});n=n.right instanceof vt&&!(n.left instanceof vt)?I(e,m,n):I(e,n,m)}d&&n.is_number(e)&&(n.right instanceof tt&&n.right.operator==n.operator&&(n=Y(tt,n,{operator:n.operator,left:Y(tt,n.left,{operator:n.operator,left:n.left,right:n.right.left,start:n.left.start,end:n.right.left.end}),right:n.right.right})),n.right instanceof vt&&n.left instanceof tt&&n.left.operator==n.operator&&(n.left.left instanceof vt?n=Y(tt,n,{operator:n.operator,left:Y(tt,n.left,{operator:n.operator,left:n.left.left,right:n.right,start:n.left.left.start,end:n.right.end}),right:n.left.right}):n.left.right instanceof vt&&(n=Y(tt,n,{operator:n.operator,left:Y(tt,n.left,{operator:n.operator,left:n.left.right,right:n.right,start:n.left.right.start,end:n.right.end}),right:n.left.left}))),n.left instanceof tt&&n.left.operator==n.operator&&n.left.right instanceof vt&&n.right instanceof tt&&n.right.operator==n.operator&&n.right.left instanceof vt&&(n=Y(tt,n,{operator:n.operator,left:Y(tt,n.left,{operator:n.operator,left:Y(tt,n.left.left,{operator:n.operator,left:n.left.right,right:n.right.left,start:n.left.right.start,end:n.right.left.end}),right:n.left.left}),right:n.right.right})))}}if(n.right instanceof tt&&n.right.operator==n.operator&&(J(n.operator)||"+"==n.operator&&(n.right.left.is_string(e)||n.left.is_string(e)&&n.right.right.is_string(e))))return n.left=Y(tt,n.left,{operator:n.operator,left:n.left,right:n.right.left}),n.right=n.right.right,n.transform(e);var g=n.evaluate(e);return g!==n?(g=U(g,n).optimize(e),I(e,g,n)):n}),e(mt,function(e,t){var n,r=e.resolve_defines(t);if(r)return r.optimize(t);if(!t.option("ie8")&&q(e)&&(!e.scope.uses_with||!t.find_parent(Ee)))switch(e.name){case"undefined":return Y(At,e).optimize(t);case"NaN":return Y(Et,e).optimize(t);case"Infinity":return Y(Ct,e).optimize(t)}if(t.option("reduce_vars")&&X(e,t.parent())!==e){var i=e.definition(),o=e.fixed_value(),a=i.single_use;if(a&&o instanceof Ce)if(i.scope===e.scope||t.option("reduce_funcs")&&1!=i.escaped&&!o.inlined){if(j(t,i))a=!1;else if((i.scope!==e.scope||i.orig[0]instanceof ft)&&"f"==(a=o.is_constant_expression(e.scope)))for(var s=e.scope;(s instanceof Se||s instanceof Oe)&&(s.inlined=!0),s=s.parent_scope;);}else a=!1;if(a&&o){var u;if(o instanceof Se&&(o._squeezed=!0,o=Y(Oe,o,o)),0<i.recursive_refs&&o.name instanceof pt){var l=(u=o.clone(!0)).name.definition(),c=u.variables.get(u.name.name),f=c&&c.orig[0];f instanceof ht||(((f=Y(ht,u.name,u.name)).scope=u).name=f,c=u.def_function(f)),u.walk(new Dt(function(e){e instanceof mt&&e.definition()===l&&(e.thedef=c).references.push(e)}))}else(u=o.optimize(t))===o&&(u=o.clone(!0));return u}if(o&&void 0===i.should_replace){var p;if(o instanceof gt)i.orig[0]instanceof ft||!oe(i.references,function(e){return i.scope===e.scope})||(p=o);else{var h=o.evaluate(t);h===o||!t.option("unsafe_regexp")&&h instanceof RegExp||(p=U(h,o))}if(p){var d,m=p.optimize(t).print_to_string().length;o.walk(new Dt(function(e){if(e instanceof mt&&(n=!0),n)return!0})),n?d=function(){var e=p.optimize(t);return e===p?e.clone(!0):e}:(m=Math.min(m,o.print_to_string().length),d=function(){var e=E(p.optimize(t),o);return e===p||e===o?e.clone(!0):e});var g=i.name.length,v=0;t.option("unused")&&!t.exposed(i)&&(v=(g+2+m)/(i.references.length-i.assignments)),i.should_replace=m<=g+v&&d}else i.should_replace=!1}if(i.should_replace)return i.should_replace()}return e}),e(At,function(e,t){if(t.option("unsafe_undefined")){var n=o(t,"undefined");if(n){var r=Y(mt,e,{name:"undefined",scope:n.scope,thedef:n});return r.is_undefined=!0,r}}var i=X(t.self(),t.parent());return i&&x(i,e)?e:Y(Xe,e,{operator:"void",expression:Y(yt,e,{value:0})})}),e(Ct,function(e,t){var n=X(t.self(),t.parent());return n&&x(n,e)?e:!t.option("keep_infinity")||n&&!x(n,e)||o(t,"Infinity")?Y(tt,e,{operator:"/",left:Y(yt,e,{value:1}),right:Y(yt,e,{value:0})}):e}),e(Et,function(e,t){var n=X(t.self(),t.parent());return n&&!x(n,e)||o(t,"NaN")?Y(tt,e,{operator:"/",left:Y(yt,e,{value:0}),right:Y(yt,e,{value:0})}):e});var C=["+","-","/","*","%",">>","<<",">>>","|","^","&"],k=["*","|","^","&"];function O(e,t){return t.in_boolean_context()?I(t,e,M(e,[e,Y(St,e)]).optimize(t)):e}e(rt,function(a,s){var e;if(s.option("dead_code")&&a.left instanceof mt&&(e=a.left.definition()).scope===s.find_parent(Ce)){var t,n=0,r=a;do{if(t=r,(r=s.parent(n++))instanceof Be){if(i(n,r))break;if(V(e.scope,[e]))break;return"="==a.operator?a.right:(e.fixed=!1,Y(tt,a,{operator:a.operator.slice(0,-1),left:a.left,right:a.right}).optimize(s))}}while(r instanceof tt&&r.right===t||r instanceof Ye&&r.tail_node()===t)}return"="==(a=a.lift_sequences(s)).operator&&a.left instanceof mt&&a.right instanceof tt&&(a.right.left instanceof mt&&a.right.left.name==a.left.name&&ee(a.right.operator,C)?(a.operator=a.right.operator+"=",a.right=a.right.right):a.right.right instanceof mt&&a.right.right.name==a.left.name&&ee(a.right.operator,k)&&!a.right.left.has_side_effects(s)&&(a.operator=a.right.operator+"=",a.right=a.right.left)),a;function i(e,t){var n=a.right;a.right=Y(wt,n);var r=t.may_throw(s);a.right=n;for(var i,o=a.left.definition().scope;(i=s.parent(e++))!==o;)if(i instanceof ze){if(i.bfinally)return!0;if(r&&i.bcatch)return!0}}}),e(nt,function(e,t){if(!t.option("conditionals"))return e;if(e.condition instanceof Ye){var n=e.condition.expressions.slice();return e.condition=n.pop(),n.push(e),M(e,n)}var r=e.condition.evaluate(t);if(r!==e.condition)return r?(t.warn("Condition always true [{file}:{line},{col}]",e.start),W(t.parent(),t.self(),e.consequent)):(t.warn("Condition always false [{file}:{line},{col}]",e.start),W(t.parent(),t.self(),e.alternative));var i=r.negate(t,F(t));I(t,r,i)===i&&(e=Y(nt,e,{condition:i,consequent:e.alternative,alternative:e.consequent}));var o,a=e.condition,s=e.consequent,u=e.alternative;if(a instanceof mt&&s instanceof mt&&a.definition()===s.definition())return Y(tt,e,{operator:"||",left:a,right:u});if(s instanceof rt&&u instanceof rt&&s.operator==u.operator&&s.left.equivalent_to(u.left)&&(!e.condition.has_side_effects(t)||"="==s.operator&&!s.left.has_side_effects(t)))return Y(rt,e,{operator:s.operator,left:s.left,right:Y(nt,e,{condition:e.condition,consequent:s.right,alternative:u.right})});if(s instanceof Ke&&u.TYPE===s.TYPE&&0<s.args.length&&s.args.length==u.args.length&&s.expression.equivalent_to(u.expression)&&!e.condition.has_side_effects(t)&&!s.expression.has_side_effects(t)&&"number"==typeof(o=function(){for(var e=s.args,t=u.args,n=0,r=e.length;n<r;n++)if(!e[n].equivalent_to(t[n])){for(var i=n+1;i<r;i++)if(!e[i].equivalent_to(t[i]))return;return n}}())){var l=s.clone();return l.args[o]=Y(nt,e,{condition:e.condition,consequent:s.args[o],alternative:u.args[o]}),l}if(s instanceof nt&&s.alternative.equivalent_to(u))return Y(nt,e,{condition:Y(tt,e,{left:e.condition,operator:"&&",right:s.condition}),consequent:s.consequent,alternative:u});if(s.equivalent_to(u))return M(e,[e.condition,s]).optimize(t);if((s instanceof Ye||u instanceof Ye)&&s.tail_node().equivalent_to(u.tail_node()))return M(e,[Y(nt,e,{condition:e.condition,consequent:d(s),alternative:d(u)}),s.tail_node()]).optimize(t);if(s instanceof tt&&"||"==s.operator&&s.right.equivalent_to(u))return Y(tt,e,{operator:"||",left:Y(tt,e,{operator:"&&",left:e.condition,right:s.left}),right:u}).optimize(t);var c=t.in_boolean_context();return p(e.consequent)?h(e.alternative)?f(e.condition):Y(tt,e,{operator:"||",left:f(e.condition),right:e.alternative}):h(e.consequent)?p(e.alternative)?f(e.condition.negate(t)):Y(tt,e,{operator:"&&",left:f(e.condition.negate(t)),right:e.alternative}):p(e.alternative)?Y(tt,e,{operator:"||",left:f(e.condition.negate(t)),right:e.consequent}):h(e.alternative)?Y(tt,e,{operator:"&&",left:f(e.condition),right:e.consequent}):e;function f(e){return e.is_boolean()?e:Y(Xe,e,{operator:"!",expression:e.negate(t)})}function p(e){return e instanceof St||c&&e instanceof vt&&e.getValue()||e instanceof Xe&&"!"==e.operator&&e.expression instanceof vt&&!e.expression.getValue()}function h(e){return e instanceof Ot||c&&e instanceof vt&&!e.getValue()||e instanceof Xe&&"!"==e.operator&&e.expression instanceof vt&&e.expression.getValue()}function d(e){return e instanceof Ye?M(e,e.expressions.slice(0,-1)):Y(yt,e,{value:0})}}),e(kt,function(e,t){if(t.in_boolean_context())return Y(yt,e,{value:+e.value});if(t.option("booleans")){var n=t.parent();return n instanceof tt&&("=="==n.operator||"!="==n.operator)?(t.warn("Non-strict equality against boolean: {operator} {value} [{file}:{line},{col}]",{operator:n.operator,value:e.value,file:n.start.file,line:n.start.line,col:n.start.col}),Y(yt,e,{value:+e.value})):Y(Xe,e,{operator:"!",expression:Y(yt,e,{value:1-e.value})})}return e}),e(Ze,function(e,t){var n,r=e.expression,i=e.property;if(t.option("properties")){var o=i.evaluate(t);if(o!==i){if("string"==typeof o)if("undefined"==o)o=void 0;else(d=parseFloat(o)).toString()==o&&(o=d);i=e.property=E(i,U(o,i).transform(t));var a=""+o;if(Nt(a)&&a.length<=i.print_to_string().length+1)return Y(Qe,e,{expression:r,property:a}).optimize(t)}}if(X(e,t.parent()))return e;if(o!==i){var s=e.flatten_object(a,t);s&&(r=e.expression=s.expression,i=e.property=s.property)}if(t.option("properties")&&t.option("side_effects")&&i instanceof yt&&r instanceof it){var u=i.getValue(),l=r.elements;if(u in l){for(var c=!0,f=[],p=l.length;--p>u;){(d=l[p].drop_side_effect_free(t))&&(f.unshift(d),c&&d.has_side_effects(t)&&(c=!1))}var h=l[u];for(h=h instanceof xt?Y(At,h):h,c||f.unshift(h);0<=--p;){var d;(d=l[p].drop_side_effect_free(t))?f.unshift(d):u--}return c?(f.push(h),M(e,f).optimize(t)):Y(Ze,e,{expression:Y(it,r,{elements:f}),property:Y(yt,i,{value:u})})}}if(t.option("arguments")&&r instanceof mt&&"arguments"==r.name&&1==r.definition().orig.length&&(n=r.scope)instanceof Ce&&i instanceof yt){u=i.getValue();var m=n.argnames[u];if(!m&&!t.option("keep_fargs"))for(;u>=n.argnames.length;)m=Y(ft,n,{name:n.make_var_name("argument_"+n.argnames.length),scope:n}),n.argnames.push(m),n.enclosed.push(n.def_variable(m));if(m){var g=Y(mt,e,m);return g.reference({}),g}}var v=e.evaluate(t);return v!==e?I(t,v=U(v,e).optimize(t),e):e}),Ce.DEFMETHOD("contains_this",function(){var t,n=this;return n.walk(new Dt(function(e){return!!t||(e instanceof gt?t=!0:e!==n&&e instanceof Ae||void 0)})),t}),We.DEFMETHOD("flatten_object",function(e,t){if(t.option("properties")){var n=this.expression;if(n instanceof ot)for(var r=n.properties,i=r.length;0<=--i;){var o=r[i];if(""+o.key==e){if(!oe(r,function(e){return e instanceof st}))break;var a=o.value;if(a instanceof Oe&&!(t.parent()instanceof Ge)&&a.contains_this())break;return Y(Ze,this,{expression:Y(it,n,{elements:r.map(function(e){return e.value})}),property:Y(yt,this,{value:i})})}}}}),e(Qe,function(e,t){"arguments"!=e.property&&"caller"!=e.property||t.warn("Function.protoype.{prop} not supported [{file}:{line},{col}]",{prop:e.property,file:e.start.file,line:e.start.line,col:e.start.col});var n=e.resolve_defines(t);if(n)return n.optimize(t);if(X(e,t.parent()))return e;if(t.option("unsafe_proto")&&e.expression instanceof Qe&&"prototype"==e.expression.property){var r=e.expression.expression;if(q(r))switch(r.name){case"Array":e.expression=Y(it,e.expression,{elements:[]});break;case"Function":e.expression=Y(Oe,e.expression,{argnames:[],body:[]});break;case"Number":e.expression=Y(yt,e.expression,{value:0});break;case"Object":e.expression=Y(ot,e.expression,{properties:[]});break;case"RegExp":e.expression=Y(_t,e.expression,{value:/t/});break;case"String":e.expression=Y(bt,e.expression,{value:""})}}var i=e.flatten_object(e.property,t);if(i)return i.optimize(t);var o=e.evaluate(t);return o!==e?I(t,o=U(o,e).optimize(t),e):e}),e(it,O),e(ot,O),e(_t,O),e(Te,function(e,t){return e.value&&v(e.value,t)&&(e.value=null),e}),e(He,function(e,t){var n=t.option("global_defs");return n&&ae(n,e.name.name)&&t.warn("global_defs "+e.name.name+" redefined [{file}:{line},{col}]",e.start),e})}(),function(){var t=function(e){for(var t=!0,n=0;n<e.length;n++)t&&e[n]instanceof ue&&e[n].body instanceof bt?e[n]=new ce({start:e[n].start,end:e[n].end,value:e[n].body.value}):!t||e[n]instanceof ue&&e[n].body instanceof bt||(t=!1);return e},r={Program:function(e){return new xe({start:s(e),end:u(e),body:t(e.body.map(l))})},FunctionDeclaration:function(e){return new Se({start:s(e),end:u(e),name:l(e.id),argnames:e.params.map(l),body:t(l(e.body).body)})},FunctionExpression:function(e){return new Oe({start:s(e),end:u(e),name:l(e.id),argnames:e.params.map(l),body:t(l(e.body).body)})},ExpressionStatement:function(e){return new fe({start:s(e),end:u(e),body:l(e.expression)})},TryStatement:function(e){var t=e.handlers||[e.handler];if(1<t.length||e.guardedHandlers&&e.guardedHandlers.length)throw new Error("Multiple catch clauses are not supported.");return new ze({start:s(e),end:u(e),body:l(e.block).body,bcatch:l(t[0]),bfinally:e.finalizer?new je(l(e.finalizer)):null})},Property:function(e){var t=e.key,n={start:s(t),end:u(e.value),key:"Identifier"==t.type?t.name:t.value,value:l(e.value)};return"init"==e.kind?new st(n):(n.key=new Q({name:n.key}),n.value=new ke(n.value),"get"==e.kind?new W(n):"set"==e.kind?new Y(n):void 0)},ArrayExpression:function(e){return new it({start:s(e),end:u(e),elements:e.elements.map(function(e){return null===e?new xt:l(e)})})},ObjectExpression:function(e){return new ot({start:s(e),end:u(e),properties:e.properties.map(function(e){return e.type="Property",l(e)})})},SequenceExpression:function(e){return new Ye({start:s(e),end:u(e),expressions:e.expressions.map(l)})},MemberExpression:function(e){return new(e.computed?Ze:Qe)({start:s(e),end:u(e),property:e.computed?l(e.property):e.property.name,expression:l(e.object)})},SwitchCase:function(e){return new(e.test?qe:Pe)({start:s(e),end:u(e),expression:l(e.test),body:e.consequent.map(l)})},VariableDeclaration:function(e){return new $e({start:s(e),end:u(e),definitions:e.declarations.map(l)})},Literal:function(e){var t=e.value,n={start:s(e),end:u(e)};if(null===t)return new wt(n);switch(typeof t){case"string":return n.value=t,new bt(n);case"number":return n.value=t,new yt(n);case"boolean":return new(t?St:Ot)(n);default:var r=e.regex;return r&&r.pattern?n.value=new RegExp(r.pattern,r.flags).toString():n.value=e.regex&&e.raw?e.raw:t,new _t(n)}},Identifier:function(e){var t=o[o.length-2];return new("LabeledStatement"==t.type?Z:"VariableDeclarator"==t.type&&t.id===e?ct:"FunctionExpression"==t.type?t.id===e?ht:ft:"FunctionDeclaration"==t.type?t.id===e?pt:ft:"CatchClause"==t.type?dt:"BreakStatement"==t.type||"ContinueStatement"==t.type?J:mt)({start:s(e),end:u(e),name:e.name})}};function i(e){if("Literal"==e.type)return null!=e.raw?e.raw:e.value+""}function s(e){var t=e.loc,n=t&&t.start,r=e.range;return new O({file:t&&t.source,line:n&&n.line,col:n&&n.column,pos:r?r[0]:e.start,endline:n&&n.line,endcol:n&&n.column,endpos:r?r[0]:e.start,raw:i(e)})}function u(e){var t=e.loc,n=t&&t.end,r=e.range;return new O({file:t&&t.source,line:n&&n.line,col:n&&n.column,pos:r?r[1]:e.end,endline:n&&n.line,endcol:n&&n.column,endpos:r?r[1]:e.end,raw:i(e)})}function e(e,t,n){var o="function From_Moz_"+e+"(M){\n";o+="return new U2."+t.name+"({\nstart: my_start_token(M),\nend: my_end_token(M)";var a="function To_Moz_"+e+"(M){\n";a+="return {\ntype: "+JSON.stringify(e),n&&n.split(/\s*,\s*/).forEach(function(e){var t=/([a-z0-9$_]+)(=|@|>|%)([a-z0-9$_]+)/i.exec(e);if(!t)throw new Error("Can't understand property map: "+e);var n=t[1],r=t[2],i=t[3];switch(o+=",\n"+i+": ",a+=",\n"+n+": ",r){case"@":o+="M."+n+".map(from_moz)",a+="M."+i+".map(to_moz)";break;case">":o+="from_moz(M."+n+")",a+="to_moz(M."+i+")";break;case"=":o+="M."+n,a+="M."+i;break;case"%":o+="from_moz(M."+n+").body",a+="to_moz_block(M)";break;default:throw new Error("Can't understand operator in propmap: "+e)}}),o+="\n})\n}",a+="\n}\n}",o=new Function("U2","my_start_token","my_end_token","from_moz","return("+o+")")(d,s,u,l),a=new Function("to_moz","to_moz_block","to_moz_scope","return("+a+")")(f,p,h),r[e]=o,c(t,a)}r.UpdateExpression=r.UnaryExpression=function(e){return new(("prefix"in e?e.prefix:"UnaryExpression"==e.type)?Xe:et)({start:s(e),end:u(e),operator:e.operator,expression:l(e.argument)})},e("EmptyStatement",de),e("BlockStatement",he,"body@body"),e("IfStatement",Me,"test>condition, consequent>body, alternate>alternative"),e("LabeledStatement",me,"label>label, body>body"),e("BreakStatement",Fe,"label>label"),e("ContinueStatement",Le,"label>label"),e("WithStatement",Ee,"object>expression, body>body"),e("SwitchStatement",Ue,"discriminant>expression, cases@body"),e("ReturnStatement",Te,"argument>value"),e("ThrowStatement",G,"argument>value"),e("WhileStatement",ye,"test>condition, body>body"),e("DoWhileStatement",be,"test>condition, body>body"),e("ForStatement",_e,"init>init, test>condition, update>step, body>body"),e("ForInStatement",we,"left>init, right>object, body>body"),e("DebuggerStatement",le),e("VariableDeclarator",He,"id>name, init>value"),e("CatchClause",Ie,"param>argname, body%body"),e("ThisExpression",gt),e("BinaryExpression",tt,"operator=operator, left>left, right>right"),e("LogicalExpression",tt,"operator=operator, left>left, right>right"),e("AssignmentExpression",rt,"operator=operator, left>left, right>right"),e("ConditionalExpression",nt,"test>condition, consequent>consequent, alternate>alternative"),e("NewExpression",Ge,"callee>expression, arguments@args"),e("CallExpression",Ke,"callee>expression, arguments@args"),c(xe,function(e){return h("Program",e)}),c(Se,function(e){return{type:"FunctionDeclaration",id:f(e.name),params:e.argnames.map(f),body:h("BlockStatement",e)}}),c(Oe,function(e){return{type:"FunctionExpression",id:f(e.name),params:e.argnames.map(f),body:h("BlockStatement",e)}}),c(ce,function(e){return{type:"ExpressionStatement",expression:{type:"Literal",value:e.value}}}),c(fe,function(e){return{type:"ExpressionStatement",expression:f(e.body)}}),c(Ne,function(e){return{type:"SwitchCase",test:f(e.expression),consequent:e.body.map(f)}}),c(ze,function(e){return{type:"TryStatement",block:p(e),handler:f(e.bcatch),guardedHandlers:[],finalizer:f(e.bfinally)}}),c(Ie,function(e){return{type:"CatchClause",param:f(e.argname),guard:null,body:p(e)}}),c(Ve,function(e){return{type:"VariableDeclaration",kind:"var",declarations:e.definitions.map(f)}}),c(Ye,function(e){return{type:"SequenceExpression",expressions:e.expressions.map(f)}}),c(We,function(e){var t=e instanceof Ze;return{type:"MemberExpression",object:f(e.expression),computed:t,property:t?f(e.property):{type:"Identifier",name:e.property}}}),c(Je,function(e){return{type:"++"==e.operator||"--"==e.operator?"UpdateExpression":"UnaryExpression",operator:e.operator,prefix:e instanceof Xe,argument:f(e.expression)}}),c(tt,function(e){return{type:"&&"==e.operator||"||"==e.operator?"LogicalExpression":"BinaryExpression",left:f(e.left),operator:e.operator,right:f(e.right)}}),c(it,function(e){return{type:"ArrayExpression",elements:e.elements.map(f)}}),c(ot,function(e){return{type:"ObjectExpression",properties:e.properties.map(f)}}),c(at,function(e){var t,n={type:"Literal",value:e.key instanceof Q?e.key.name:e.key};return e instanceof st?t="init":e instanceof W?t="get":e instanceof Y&&(t="set"),{type:"Property",kind:t,key:n,value:f(e.value)}}),c(ut,function(e){var t=e.definition();return{type:"Identifier",name:t?t.mangled_name||t.name:e.name}}),c(_t,function(e){var t=e.value;return{type:"Literal",value:t,raw:t.toString(),regex:{pattern:t.source,flags:t.toString().match(/[gimuy]*$/)[0]}}}),c(vt,function(e){var t=e.value;return"number"==typeof t&&(t<0||0===t&&1/t<0)?{type:"UnaryExpression",operator:"-",prefix:!0,argument:{type:"Literal",value:-t,raw:e.start.raw}}:{type:"Literal",value:t,raw:e.start.raw}}),c(a,function(e){return{type:"Identifier",name:String(e.value)}}),kt.DEFMETHOD("to_mozilla_ast",vt.prototype.to_mozilla_ast),wt.DEFMETHOD("to_mozilla_ast",vt.prototype.to_mozilla_ast),xt.DEFMETHOD("to_mozilla_ast",function(){return null}),pe.DEFMETHOD("to_mozilla_ast",he.prototype.to_mozilla_ast),Ce.DEFMETHOD("to_mozilla_ast",Oe.prototype.to_mozilla_ast);var o=null;function l(e){o.push(e);var t=null!=e?r[e.type](e):null;return o.pop(),t}function c(e,i){e.DEFMETHOD("to_mozilla_ast",function(){return t=i(e=this),n=e.start,r=e.end,null!=n.pos&&null!=r.endpos&&(t.range=[n.pos,r.endpos]),n.line&&(t.loc={start:{line:n.line,column:n.col},end:r.endline?{line:r.endline,column:r.endcol}:null},n.file&&(t.loc.source=n.file)),t;var e,t,n,r})}function f(e){return null!=e?e.to_mozilla_ast():null}function p(e){return{type:"BlockStatement",body:e.body.map(f)}}function h(e,t){var n=t.body.map(f);return t.body[0]instanceof fe&&t.body[0].body instanceof bt&&n.unshift(f(new de(t.body[0]))),{type:e,body:n}}se.from_mozilla_ast=function(e){var t=o;o=[];var n=l(e);return o=t,n}}();var _="undefined"==typeof atob?function(e){return new l(e,"base64").toString()}:atob,w="undefined"==typeof btoa?function(e){return new l(e).toString("base64")}:btoa;function E(t,n,e){n[t]&&e.forEach(function(e){n[e]&&("object"!=typeof n[e]&&(n[e]={}),t in n[e]||(n[e][t]=n[t]))})}function A(e){e&&("props"in e?e.props instanceof R||(e.props=R.fromObject(e.props)):e.props=new R)}function x(e){return{props:e.props.toObject()}}d.Dictionary=R,d.TreeWalker=Dt,d.TreeTransformer=Wt,d.minify=function(e,t){var n,r,i=se.warn_function;try{var o,a=(t=K(t,{compress:{},ie8:!1,keep_fnames:!1,mangle:{},nameCache:null,output:{},parse:{},rename:void 0,sourceMap:!1,timings:!1,toplevel:!1,warnings:!1,wrap:!1},!0)).timings&&{start:Date.now()};void 0===t.rename&&(t.rename=t.compress&&t.mangle),E("ie8",t,["compress","mangle","output"]),E("keep_fnames",t,["compress","mangle"]),E("toplevel",t,["compress","mangle"]),E("warnings",t,["compress"]),t.mangle&&(t.mangle=K(t.mangle,{cache:t.nameCache&&(t.nameCache.vars||{}),eval:!1,ie8:!1,keep_fnames:!1,properties:!1,reserved:[],toplevel:!1},!0),t.mangle.properties&&("object"!=typeof t.mangle.properties&&(t.mangle.properties={}),t.mangle.properties.keep_quoted&&(o=t.mangle.properties.reserved,Array.isArray(o)||(o=[]),t.mangle.properties.reserved=o),!t.nameCache||"cache"in t.mangle.properties||(t.mangle.properties.cache=t.nameCache.props||{})),A(t.mangle.cache),A(t.mangle.properties.cache)),t.sourceMap&&(t.sourceMap=K(t.sourceMap,{content:null,filename:null,includeSources:!1,root:null,url:null},!0));var s,u=[];if(t.warnings&&!se.warn_function&&(se.warn_function=function(e){u.push(e)}),a&&(a.parse=Date.now()),e instanceof xe)s=e;else{for(var l in"string"==typeof e&&(e=[e]),t.parse=t.parse||{},t.parse.toplevel=null,e)if(ae(e,l)&&(t.parse.filename=l,t.parse.toplevel=Yt(e[l],t.parse),t.sourceMap&&"inline"==t.sourceMap.content)){if(1<Object.keys(e).length)throw new Error("inline source map only works with singular input");t.sourceMap.content=(n=e[l],(r=/\n\/\/# sourceMappingURL=data:application\/json(;.*?)?;base64,(.*)/.exec(n))?_(r[2]):(se.warn("inline source map not found"),null))}s=t.parse.toplevel}o&&function(e,t){function n(e){m(t,e)}e.walk(new Dt(function(e){e instanceof st&&e.quote?n(e.key):e instanceof Ze&&y(e.property,n)}))}(s,o),t.wrap&&(s=s.wrap_commonjs(t.wrap)),a&&(a.rename=Date.now()),t.rename&&(s.figure_out_scope(t.mangle),s.expand_names(t.mangle)),a&&(a.compress=Date.now()),t.compress&&(s=new Xt(t.compress).compress(s)),a&&(a.scope=Date.now()),t.mangle&&s.figure_out_scope(t.mangle),a&&(a.mangle=Date.now()),t.mangle&&(s.compute_char_frequency(t.mangle),s.mangle_names(t.mangle)),a&&(a.properties=Date.now()),t.mangle&&t.mangle.properties&&(s=h(s,t.mangle.properties)),a&&(a.output=Date.now());var c={};if(t.output.ast&&(c.ast=s),!ae(t.output,"code")||t.output.code){if(t.sourceMap&&("string"==typeof t.sourceMap.content&&(t.sourceMap.content=JSON.parse(t.sourceMap.content)),t.output.source_map=function(s){s=K(s,{file:null,root:null,orig:null,orig_line_diff:0,dest_line_diff:0});var u=new MOZ_SourceMap.SourceMapGenerator({file:s.file,sourceRoot:s.root}),l=s.orig&&new MOZ_SourceMap.SourceMapConsumer(s.orig);return l&&Array.isArray(s.orig.sources)&&l._sources.toArray().forEach(function(e){var t=l.sourceContentFor(e,!0);t&&u.setSourceContent(e,t)}),{add:function(e,t,n,r,i,o){if(l){var a=l.originalPositionFor({line:r,column:i});if(null===a.source)return;e=a.source,r=a.line,i=a.column,o=a.name||o}u.addMapping({generated:{line:t+s.dest_line_diff,column:n},original:{line:r+s.orig_line_diff,column:i},source:e,name:o})},get:function(){return u},toString:function(){return JSON.stringify(u.toJSON())}}}({file:t.sourceMap.filename,orig:t.sourceMap.content,root:t.sourceMap.root}),t.sourceMap.includeSources)){if(e instanceof xe)throw new Error("original source content unavailable");for(var l in e)ae(e,l)&&t.output.source_map.get().setSourceContent(l,e[l])}delete t.output.ast,delete t.output.code;var f=Jt(t.output);s.print(f),c.code=f.get(),t.sourceMap&&(c.map=t.output.source_map.toString(),"inline"==t.sourceMap.url?c.code+="\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,"+w(c.map):t.sourceMap.url&&(c.code+="\n//# sourceMappingURL="+t.sourceMap.url))}return t.nameCache&&t.mangle&&(t.mangle.cache&&(t.nameCache.vars=x(t.mangle.cache)),t.mangle.properties&&t.mangle.properties.cache&&(t.nameCache.props=x(t.mangle.properties.cache))),a&&(a.end=Date.now(),c.timings={parse:.001*(a.rename-a.parse),rename:.001*(a.compress-a.rename),compress:.001*(a.scope-a.compress),scope:.001*(a.mangle-a.scope),mangle:.001*(a.properties-a.mangle),properties:.001*(a.output-a.properties),output:.001*(a.end-a.output),total:.001*(a.end-a.start)}),u.length&&(c.warnings=u),c}catch(e){return{error:e}}finally{se.warn_function=i}},d.parse=Yt,d._push_uniq=m}(void 0===n?n={}:n)}).call(this,e("buffer").Buffer)},{buffer:4}]},{},["html-minifier"]);
\ No newline at end of file
index bfc6bbf..61e5a66 100644 (file)
@@ -9,7 +9,7 @@
   <body>
     <div id="outer-wrapper">
       <div id="wrapper">
-        <h1>HTML Minifier <span>(v3.5.10)</span></h1>
+        <h1>HTML Minifier <span>(v3.5.11)</span></h1>
         <textarea rows="8" cols="40" id="input"></textarea>
         <div class="minify-button">
           <button type="button" id="minify-btn">Minify</button>
index a35de6e..8c3cb9b 100644 (file)
@@ -1,7 +1,7 @@
 {
   "name": "html-minifier",
   "description": "Highly configurable, well-tested, JavaScript-based HTML minifier.",
-  "version": "3.5.10",
+  "version": "3.5.11",
   "keywords": [
     "cli",
     "compress",